~ubuntu-branches/ubuntu/vivid/qgo/vivid-proposed

« back to all changes in this revision

Viewing changes to configure~

  • Committer: Package Import Robot
  • Author(s): Yann Dirson
  • Date: 2012-05-19 19:05:05 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20120519190505-b23f5tzx7y8cu946
Tags: 2~svn764-1
* The "Raise dead" release (Closes: #673520), new maintainer.
* New upstream snapshot with Qt4 support (Closes: #604589), adjusted
  build-deps.
* Switched to source format "3.0 (quilt)", adjusted build-deps.
* Switched to dh and debhelper compat level 9, adjusted build-deps.
* Build with -fpermissive.
* New build-dep libasound2-dev, remove obsolete build-dep on libxinerama-dev.
* Refreshed patches 01_gnugo and 04_desktop, leaving 20_kfreebsd away
  for this release, and removing the remaining ones, now obsolete.
* Added patch 02_usrgames for FHS-correct install location.
* Adjusted icon names in menu file.

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.59.
4
 
#
5
 
# Copyright (C) 2003 Free Software Foundation, Inc.
6
 
# This configure script is free software; the Free Software Foundation
7
 
# gives unlimited permission to copy, distribute and modify it.
8
 
## --------------------- ##
9
 
## M4sh Initialization.  ##
10
 
## --------------------- ##
11
 
 
12
 
# Be Bourne compatible
13
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
 
  emulate sh
15
 
  NULLCMD=:
16
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
 
  # is contrary to our usage.  Disable this feature.
18
 
  alias -g '${1+"$@"}'='"$@"'
19
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
 
  set -o posix
21
 
fi
22
 
DUALCASE=1; export DUALCASE # for MKS sh
23
 
 
24
 
# Support unset when possible.
25
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
 
  as_unset=unset
27
 
else
28
 
  as_unset=false
29
 
fi
30
 
 
31
 
 
32
 
# Work around bugs in pre-3.0 UWIN ksh.
33
 
$as_unset ENV MAIL MAILPATH
34
 
PS1='$ '
35
 
PS2='> '
36
 
PS4='+ '
37
 
 
38
 
# NLS nuisances.
39
 
for as_var in \
40
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
 
  LC_TELEPHONE LC_TIME
43
 
do
44
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
 
    eval $as_var=C; export $as_var
46
 
  else
47
 
    $as_unset $as_var
48
 
  fi
49
 
done
50
 
 
51
 
# Required to use basename.
52
 
if expr a : '\(a\)' >/dev/null 2>&1; then
53
 
  as_expr=expr
54
 
else
55
 
  as_expr=false
56
 
fi
57
 
 
58
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59
 
  as_basename=basename
60
 
else
61
 
  as_basename=false
62
 
fi
63
 
 
64
 
 
65
 
# Name of the executable.
66
 
as_me=`$as_basename "$0" ||
67
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
 
         X"$0" : 'X\(//\)$' \| \
69
 
         X"$0" : 'X\(/\)$' \| \
70
 
         .     : '\(.\)' 2>/dev/null ||
71
 
echo X/"$0" |
72
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
74
 
          /^X\/\(\/\).*/{ s//\1/; q; }
75
 
          s/.*/./; q'`
76
 
 
77
 
 
78
 
# PATH needs CR, and LINENO needs CR and PATH.
79
 
# Avoid depending upon Character Ranges.
80
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
 
as_cr_digits='0123456789'
84
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
85
 
 
86
 
# The user is always right.
87
 
if test "${PATH_SEPARATOR+set}" != set; then
88
 
  echo "#! /bin/sh" >conf$$.sh
89
 
  echo  "exit 0"   >>conf$$.sh
90
 
  chmod +x conf$$.sh
91
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92
 
    PATH_SEPARATOR=';'
93
 
  else
94
 
    PATH_SEPARATOR=:
95
 
  fi
96
 
  rm -f conf$$.sh
97
 
fi
98
 
 
99
 
 
100
 
  as_lineno_1=$LINENO
101
 
  as_lineno_2=$LINENO
102
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
104
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105
 
  # Find who we are.  Look in the path if we contain no path at all
106
 
  # relative or not.
107
 
  case $0 in
108
 
    *[\\/]* ) as_myself=$0 ;;
109
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
 
for as_dir in $PATH
111
 
do
112
 
  IFS=$as_save_IFS
113
 
  test -z "$as_dir" && as_dir=.
114
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
 
done
116
 
 
117
 
       ;;
118
 
  esac
119
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
120
 
  # in which case we are not to be found in the path.
121
 
  if test "x$as_myself" = x; then
122
 
    as_myself=$0
123
 
  fi
124
 
  if test ! -f "$as_myself"; then
125
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
 
   { (exit 1); exit 1; }; }
127
 
  fi
128
 
  case $CONFIG_SHELL in
129
 
  '')
130
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
 
do
133
 
  IFS=$as_save_IFS
134
 
  test -z "$as_dir" && as_dir=.
135
 
  for as_base in sh bash ksh sh5; do
136
 
         case $as_dir in
137
 
         /*)
138
 
           if ("$as_dir/$as_base" -c '
139
 
  as_lineno_1=$LINENO
140
 
  as_lineno_2=$LINENO
141
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
 
             CONFIG_SHELL=$as_dir/$as_base
147
 
             export CONFIG_SHELL
148
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149
 
           fi;;
150
 
         esac
151
 
       done
152
 
done
153
 
;;
154
 
  esac
155
 
 
156
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
 
  # line-number line before each line; the second 'sed' does the real
159
 
  # work.  The second script uses 'N' to pair each line-number line
160
 
  # with the numbered line, and appends trailing '-' during
161
 
  # substitution so that $LINENO is not a special case at line end.
162
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
 
  sed '=' <$as_myself |
165
 
    sed '
166
 
      N
167
 
      s,$,-,
168
 
      : loop
169
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170
 
      t loop
171
 
      s,-$,,
172
 
      s,^['$as_cr_digits']*\n,,
173
 
    ' >$as_me.lineno &&
174
 
  chmod +x $as_me.lineno ||
175
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
 
   { (exit 1); exit 1; }; }
177
 
 
178
 
  # Don't try to exec as it changes $[0], causing all sort of problems
179
 
  # (the dirname of $[0] is not the place where we might find the
180
 
  # original and so on.  Autoconf is especially sensible to this).
181
 
  . ./$as_me.lineno
182
 
  # Exit status is that of the last command.
183
 
  exit
184
 
}
185
 
 
186
 
 
187
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
 
  *c*,-n*) ECHO_N= ECHO_C='
189
 
' ECHO_T='      ' ;;
190
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192
 
esac
193
 
 
194
 
if expr a : '\(a\)' >/dev/null 2>&1; then
195
 
  as_expr=expr
196
 
else
197
 
  as_expr=false
198
 
fi
199
 
 
200
 
rm -f conf$$ conf$$.exe conf$$.file
201
 
echo >conf$$.file
202
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
 
  # We could just check for DJGPP; but this test a) works b) is more generic
204
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
 
  if test -f conf$$.exe; then
206
 
    # Don't use ln at all; we don't have any links
207
 
    as_ln_s='cp -p'
208
 
  else
209
 
    as_ln_s='ln -s'
210
 
  fi
211
 
elif ln conf$$.file conf$$ 2>/dev/null; then
212
 
  as_ln_s=ln
213
 
else
214
 
  as_ln_s='cp -p'
215
 
fi
216
 
rm -f conf$$ conf$$.exe conf$$.file
217
 
 
218
 
if mkdir -p . 2>/dev/null; then
219
 
  as_mkdir_p=:
220
 
else
221
 
  test -d ./-p && rmdir ./-p
222
 
  as_mkdir_p=false
223
 
fi
224
 
 
225
 
as_executable_p="test -f"
226
 
 
227
 
# Sed expression to map a string onto a valid CPP name.
228
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
 
 
230
 
# Sed expression to map a string onto a valid variable name.
231
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
 
 
233
 
 
234
 
# IFS
235
 
# We need space, tab and new line, in precisely that order.
236
 
as_nl='
237
 
'
238
 
IFS="   $as_nl"
239
 
 
240
 
# CDPATH.
241
 
$as_unset CDPATH
242
 
 
243
 
 
244
 
# Name of the host.
245
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
 
# so uname gets run too.
247
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
 
 
249
 
exec 6>&1
250
 
 
251
 
#
252
 
# Initializations.
253
 
#
254
 
ac_default_prefix=/usr/local
255
 
ac_config_libobj_dir=.
256
 
cross_compiling=no
257
 
subdirs=
258
 
MFLAGS=
259
 
MAKEFLAGS=
260
 
SHELL=${CONFIG_SHELL-/bin/sh}
261
 
 
262
 
# Maximum number of lines to put in a shell here document.
263
 
# This variable seems obsolete.  It should probably be removed, and
264
 
# only ac_max_sed_lines should be used.
265
 
: ${ac_max_here_lines=38}
266
 
 
267
 
# Identity of this package.
268
 
PACKAGE_NAME=
269
 
PACKAGE_TARNAME=
270
 
PACKAGE_VERSION=
271
 
PACKAGE_STRING=
272
 
PACKAGE_BUGREPORT=
273
 
 
274
 
ac_unique_file="acinclude.m4"
275
 
ac_default_prefix=/usr/local
276
 
# Factoring default headers for most tests.
277
 
ac_includes_default="\
278
 
#include <stdio.h>
279
 
#if HAVE_SYS_TYPES_H
280
 
# include <sys/types.h>
281
 
#endif
282
 
#if HAVE_SYS_STAT_H
283
 
# include <sys/stat.h>
284
 
#endif
285
 
#if STDC_HEADERS
286
 
# include <stdlib.h>
287
 
# include <stddef.h>
288
 
#else
289
 
# if HAVE_STDLIB_H
290
 
#  include <stdlib.h>
291
 
# endif
292
 
#endif
293
 
#if HAVE_STRING_H
294
 
# if !STDC_HEADERS && HAVE_MEMORY_H
295
 
#  include <memory.h>
296
 
# endif
297
 
# include <string.h>
298
 
#endif
299
 
#if HAVE_STRINGS_H
300
 
# include <strings.h>
301
 
#endif
302
 
#if HAVE_INTTYPES_H
303
 
# include <inttypes.h>
304
 
#else
305
 
# if HAVE_STDINT_H
306
 
#  include <stdint.h>
307
 
# endif
308
 
#endif
309
 
#if HAVE_UNISTD_H
310
 
# include <unistd.h>
311
 
#endif"
312
 
 
313
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE WOVERLOADED_VIRTUAL USE_EXCEPTIONS USE_RTTI CXXCPP NOOPT_CXXFLAGS NOOPT_CFLAGS REPO NOREPO KDE_USE_FINAL_TRUE KDE_USE_FINAL_FALSE KDE_USE_CLOSURE_TRUE KDE_USE_CLOSURE_FALSE KDE_CXXFLAGS LN_S RANLIB ac_ct_RANLIB LIBTOOL KDE_PLUGIN all_includes all_libraries MSGFMT GMSGFMT XGETTEXT LIBUTIL LIBCOMPAT LIBCRYPT LIBSOCKET LIBRESOLV X_EXTRA_LIBS LIBUCB EGREP LIBDL X_INCLUDES X_LDFLAGS x_libraries x_includes LIBSM X_PRE_LIBS LIB_X11 LIBXINERAMA QTE_NORTTI LIB_XEXT LIBPTHREAD USE_THREADS KDE_MT_LDFLAGS KDE_MT_LIBS USER_INCLUDES USER_LDFLAGS LIBZ LIBPNG LIBJPEG qt_libraries qt_includes QT_INCLUDES QT_LDFLAGS MOC UIC UIC_TR LIB_QT LIB_QPE kde_qtver TOPSUBDIRS LIBOBJS LTLIBOBJS'
314
 
ac_subst_files=''
315
 
 
316
 
# Initialize some variables set by options.
317
 
ac_init_help=
318
 
ac_init_version=false
319
 
# The variables have the same names as the options, with
320
 
# dashes changed to underlines.
321
 
cache_file=/dev/null
322
 
exec_prefix=NONE
323
 
no_create=
324
 
no_recursion=
325
 
prefix=NONE
326
 
program_prefix=NONE
327
 
program_suffix=NONE
328
 
program_transform_name=s,x,x,
329
 
silent=
330
 
site=
331
 
srcdir=
332
 
verbose=
333
 
x_includes=NONE
334
 
x_libraries=NONE
335
 
 
336
 
# Installation directory options.
337
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
338
 
# and all the variables that are supposed to be based on exec_prefix
339
 
# by default will actually change.
340
 
# Use braces instead of parens because sh, perl, etc. also accept them.
341
 
bindir='${exec_prefix}/bin'
342
 
sbindir='${exec_prefix}/sbin'
343
 
libexecdir='${exec_prefix}/libexec'
344
 
datadir='${prefix}/share'
345
 
sysconfdir='${prefix}/etc'
346
 
sharedstatedir='${prefix}/com'
347
 
localstatedir='${prefix}/var'
348
 
libdir='${exec_prefix}/lib'
349
 
includedir='${prefix}/include'
350
 
oldincludedir='/usr/include'
351
 
infodir='${prefix}/info'
352
 
mandir='${prefix}/man'
353
 
 
354
 
ac_prev=
355
 
for ac_option
356
 
do
357
 
  # If the previous option needs an argument, assign it.
358
 
  if test -n "$ac_prev"; then
359
 
    eval "$ac_prev=\$ac_option"
360
 
    ac_prev=
361
 
    continue
362
 
  fi
363
 
 
364
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
 
 
366
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
367
 
 
368
 
  case $ac_option in
369
 
 
370
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
371
 
    ac_prev=bindir ;;
372
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373
 
    bindir=$ac_optarg ;;
374
 
 
375
 
  -build | --build | --buil | --bui | --bu)
376
 
    ac_prev=build_alias ;;
377
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378
 
    build_alias=$ac_optarg ;;
379
 
 
380
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
381
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382
 
    ac_prev=cache_file ;;
383
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385
 
    cache_file=$ac_optarg ;;
386
 
 
387
 
  --config-cache | -C)
388
 
    cache_file=config.cache ;;
389
 
 
390
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391
 
    ac_prev=datadir ;;
392
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393
 
  | --da=*)
394
 
    datadir=$ac_optarg ;;
395
 
 
396
 
  -disable-* | --disable-*)
397
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398
 
    # Reject names that are not valid shell variable names.
399
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401
 
   { (exit 1); exit 1; }; }
402
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403
 
    eval "enable_$ac_feature=no" ;;
404
 
 
405
 
  -enable-* | --enable-*)
406
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407
 
    # Reject names that are not valid shell variable names.
408
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410
 
   { (exit 1); exit 1; }; }
411
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412
 
    case $ac_option in
413
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414
 
      *) ac_optarg=yes ;;
415
 
    esac
416
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
417
 
 
418
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420
 
  | --exec | --exe | --ex)
421
 
    ac_prev=exec_prefix ;;
422
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424
 
  | --exec=* | --exe=* | --ex=*)
425
 
    exec_prefix=$ac_optarg ;;
426
 
 
427
 
  -gas | --gas | --ga | --g)
428
 
    # Obsolete; use --with-gas.
429
 
    with_gas=yes ;;
430
 
 
431
 
  -help | --help | --hel | --he | -h)
432
 
    ac_init_help=long ;;
433
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434
 
    ac_init_help=recursive ;;
435
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436
 
    ac_init_help=short ;;
437
 
 
438
 
  -host | --host | --hos | --ho)
439
 
    ac_prev=host_alias ;;
440
 
  -host=* | --host=* | --hos=* | --ho=*)
441
 
    host_alias=$ac_optarg ;;
442
 
 
443
 
  -includedir | --includedir | --includedi | --included | --include \
444
 
  | --includ | --inclu | --incl | --inc)
445
 
    ac_prev=includedir ;;
446
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
448
 
    includedir=$ac_optarg ;;
449
 
 
450
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
451
 
    ac_prev=infodir ;;
452
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453
 
    infodir=$ac_optarg ;;
454
 
 
455
 
  -libdir | --libdir | --libdi | --libd)
456
 
    ac_prev=libdir ;;
457
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
458
 
    libdir=$ac_optarg ;;
459
 
 
460
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461
 
  | --libexe | --libex | --libe)
462
 
    ac_prev=libexecdir ;;
463
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464
 
  | --libexe=* | --libex=* | --libe=*)
465
 
    libexecdir=$ac_optarg ;;
466
 
 
467
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
468
 
  | --localstate | --localstat | --localsta | --localst \
469
 
  | --locals | --local | --loca | --loc | --lo)
470
 
    ac_prev=localstatedir ;;
471
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474
 
    localstatedir=$ac_optarg ;;
475
 
 
476
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477
 
    ac_prev=mandir ;;
478
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479
 
    mandir=$ac_optarg ;;
480
 
 
481
 
  -nfp | --nfp | --nf)
482
 
    # Obsolete; use --without-fp.
483
 
    with_fp=no ;;
484
 
 
485
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486
 
  | --no-cr | --no-c | -n)
487
 
    no_create=yes ;;
488
 
 
489
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491
 
    no_recursion=yes ;;
492
 
 
493
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495
 
  | --oldin | --oldi | --old | --ol | --o)
496
 
    ac_prev=oldincludedir ;;
497
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500
 
    oldincludedir=$ac_optarg ;;
501
 
 
502
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503
 
    ac_prev=prefix ;;
504
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505
 
    prefix=$ac_optarg ;;
506
 
 
507
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
508
 
  | --program-pre | --program-pr | --program-p)
509
 
    ac_prev=program_prefix ;;
510
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
511
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512
 
    program_prefix=$ac_optarg ;;
513
 
 
514
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
515
 
  | --program-suf | --program-su | --program-s)
516
 
    ac_prev=program_suffix ;;
517
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
518
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519
 
    program_suffix=$ac_optarg ;;
520
 
 
521
 
  -program-transform-name | --program-transform-name \
522
 
  | --program-transform-nam | --program-transform-na \
523
 
  | --program-transform-n | --program-transform- \
524
 
  | --program-transform | --program-transfor \
525
 
  | --program-transfo | --program-transf \
526
 
  | --program-trans | --program-tran \
527
 
  | --progr-tra | --program-tr | --program-t)
528
 
    ac_prev=program_transform_name ;;
529
 
  -program-transform-name=* | --program-transform-name=* \
530
 
  | --program-transform-nam=* | --program-transform-na=* \
531
 
  | --program-transform-n=* | --program-transform-=* \
532
 
  | --program-transform=* | --program-transfor=* \
533
 
  | --program-transfo=* | --program-transf=* \
534
 
  | --program-trans=* | --program-tran=* \
535
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
536
 
    program_transform_name=$ac_optarg ;;
537
 
 
538
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539
 
  | -silent | --silent | --silen | --sile | --sil)
540
 
    silent=yes ;;
541
 
 
542
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543
 
    ac_prev=sbindir ;;
544
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545
 
  | --sbi=* | --sb=*)
546
 
    sbindir=$ac_optarg ;;
547
 
 
548
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
549
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550
 
  | --sharedst | --shareds | --shared | --share | --shar \
551
 
  | --sha | --sh)
552
 
    ac_prev=sharedstatedir ;;
553
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556
 
  | --sha=* | --sh=*)
557
 
    sharedstatedir=$ac_optarg ;;
558
 
 
559
 
  -site | --site | --sit)
560
 
    ac_prev=site ;;
561
 
  -site=* | --site=* | --sit=*)
562
 
    site=$ac_optarg ;;
563
 
 
564
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565
 
    ac_prev=srcdir ;;
566
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567
 
    srcdir=$ac_optarg ;;
568
 
 
569
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570
 
  | --syscon | --sysco | --sysc | --sys | --sy)
571
 
    ac_prev=sysconfdir ;;
572
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574
 
    sysconfdir=$ac_optarg ;;
575
 
 
576
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
577
 
    ac_prev=target_alias ;;
578
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579
 
    target_alias=$ac_optarg ;;
580
 
 
581
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
582
 
    verbose=yes ;;
583
 
 
584
 
  -version | --version | --versio | --versi | --vers | -V)
585
 
    ac_init_version=: ;;
586
 
 
587
 
  -with-* | --with-*)
588
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589
 
    # Reject names that are not valid shell variable names.
590
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
592
 
   { (exit 1); exit 1; }; }
593
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
594
 
    case $ac_option in
595
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596
 
      *) ac_optarg=yes ;;
597
 
    esac
598
 
    eval "with_$ac_package='$ac_optarg'" ;;
599
 
 
600
 
  -without-* | --without-*)
601
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602
 
    # Reject names that are not valid shell variable names.
603
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
605
 
   { (exit 1); exit 1; }; }
606
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
607
 
    eval "with_$ac_package=no" ;;
608
 
 
609
 
  --x)
610
 
    # Obsolete; use --with-x.
611
 
    with_x=yes ;;
612
 
 
613
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614
 
  | --x-incl | --x-inc | --x-in | --x-i)
615
 
    ac_prev=x_includes ;;
616
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618
 
    x_includes=$ac_optarg ;;
619
 
 
620
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
621
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622
 
    ac_prev=x_libraries ;;
623
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625
 
    x_libraries=$ac_optarg ;;
626
 
 
627
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
628
 
Try \`$0 --help' for more information." >&2
629
 
   { (exit 1); exit 1; }; }
630
 
    ;;
631
 
 
632
 
  *=*)
633
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634
 
    # Reject names that are not valid shell variable names.
635
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637
 
   { (exit 1); exit 1; }; }
638
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639
 
    eval "$ac_envvar='$ac_optarg'"
640
 
    export $ac_envvar ;;
641
 
 
642
 
  *)
643
 
    # FIXME: should be removed in autoconf 3.0.
644
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648
 
    ;;
649
 
 
650
 
  esac
651
 
done
652
 
 
653
 
if test -n "$ac_prev"; then
654
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
656
 
   { (exit 1); exit 1; }; }
657
 
fi
658
 
 
659
 
# Be sure to have absolute paths.
660
 
for ac_var in exec_prefix prefix
661
 
do
662
 
  eval ac_val=$`echo $ac_var`
663
 
  case $ac_val in
664
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666
 
   { (exit 1); exit 1; }; };;
667
 
  esac
668
 
done
669
 
 
670
 
# Be sure to have absolute paths.
671
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672
 
              localstatedir libdir includedir oldincludedir infodir mandir
673
 
do
674
 
  eval ac_val=$`echo $ac_var`
675
 
  case $ac_val in
676
 
    [\\/$]* | ?:[\\/]* ) ;;
677
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678
 
   { (exit 1); exit 1; }; };;
679
 
  esac
680
 
done
681
 
 
682
 
# There might be people who depend on the old broken behavior: `$host'
683
 
# used to hold the argument of --host etc.
684
 
# FIXME: To remove some day.
685
 
build=$build_alias
686
 
host=$host_alias
687
 
target=$target_alias
688
 
 
689
 
# FIXME: To remove some day.
690
 
if test "x$host_alias" != x; then
691
 
  if test "x$build_alias" = x; then
692
 
    cross_compiling=maybe
693
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694
 
    If a cross compiler is detected then cross compile mode will be used." >&2
695
 
  elif test "x$build_alias" != "x$host_alias"; then
696
 
    cross_compiling=yes
697
 
  fi
698
 
fi
699
 
 
700
 
ac_tool_prefix=
701
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
 
 
703
 
test "$silent" = yes && exec 6>/dev/null
704
 
 
705
 
 
706
 
# Find the source files, if location was not specified.
707
 
if test -z "$srcdir"; then
708
 
  ac_srcdir_defaulted=yes
709
 
  # Try the directory containing this script, then its parent.
710
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
711
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712
 
         X"$0" : 'X\(//\)[^/]' \| \
713
 
         X"$0" : 'X\(//\)$' \| \
714
 
         X"$0" : 'X\(/\)' \| \
715
 
         .     : '\(.\)' 2>/dev/null ||
716
 
echo X"$0" |
717
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719
 
          /^X\(\/\/\)$/{ s//\1/; q; }
720
 
          /^X\(\/\).*/{ s//\1/; q; }
721
 
          s/.*/./; q'`
722
 
  srcdir=$ac_confdir
723
 
  if test ! -r $srcdir/$ac_unique_file; then
724
 
    srcdir=..
725
 
  fi
726
 
else
727
 
  ac_srcdir_defaulted=no
728
 
fi
729
 
if test ! -r $srcdir/$ac_unique_file; then
730
 
  if test "$ac_srcdir_defaulted" = yes; then
731
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732
 
   { (exit 1); exit 1; }; }
733
 
  else
734
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735
 
   { (exit 1); exit 1; }; }
736
 
  fi
737
 
fi
738
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740
 
   { (exit 1); exit 1; }; }
741
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742
 
ac_env_build_alias_set=${build_alias+set}
743
 
ac_env_build_alias_value=$build_alias
744
 
ac_cv_env_build_alias_set=${build_alias+set}
745
 
ac_cv_env_build_alias_value=$build_alias
746
 
ac_env_host_alias_set=${host_alias+set}
747
 
ac_env_host_alias_value=$host_alias
748
 
ac_cv_env_host_alias_set=${host_alias+set}
749
 
ac_cv_env_host_alias_value=$host_alias
750
 
ac_env_target_alias_set=${target_alias+set}
751
 
ac_env_target_alias_value=$target_alias
752
 
ac_cv_env_target_alias_set=${target_alias+set}
753
 
ac_cv_env_target_alias_value=$target_alias
754
 
ac_env_CC_set=${CC+set}
755
 
ac_env_CC_value=$CC
756
 
ac_cv_env_CC_set=${CC+set}
757
 
ac_cv_env_CC_value=$CC
758
 
ac_env_CFLAGS_set=${CFLAGS+set}
759
 
ac_env_CFLAGS_value=$CFLAGS
760
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
761
 
ac_cv_env_CFLAGS_value=$CFLAGS
762
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
763
 
ac_env_LDFLAGS_value=$LDFLAGS
764
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
766
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767
 
ac_env_CPPFLAGS_value=$CPPFLAGS
768
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770
 
ac_env_CPP_set=${CPP+set}
771
 
ac_env_CPP_value=$CPP
772
 
ac_cv_env_CPP_set=${CPP+set}
773
 
ac_cv_env_CPP_value=$CPP
774
 
ac_env_CXX_set=${CXX+set}
775
 
ac_env_CXX_value=$CXX
776
 
ac_cv_env_CXX_set=${CXX+set}
777
 
ac_cv_env_CXX_value=$CXX
778
 
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
779
 
ac_env_CXXFLAGS_value=$CXXFLAGS
780
 
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
781
 
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
782
 
ac_env_CXXCPP_set=${CXXCPP+set}
783
 
ac_env_CXXCPP_value=$CXXCPP
784
 
ac_cv_env_CXXCPP_set=${CXXCPP+set}
785
 
ac_cv_env_CXXCPP_value=$CXXCPP
786
 
 
787
 
#
788
 
# Report the --help message.
789
 
#
790
 
if test "$ac_init_help" = "long"; then
791
 
  # Omit some internal or obsolete options to make the list less imposing.
792
 
  # This message is too long to be a string in the A/UX 3.1 sh.
793
 
  cat <<_ACEOF
794
 
\`configure' configures this package to adapt to many kinds of systems.
795
 
 
796
 
Usage: $0 [OPTION]... [VAR=VALUE]...
797
 
 
798
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
799
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
800
 
 
801
 
Defaults for the options are specified in brackets.
802
 
 
803
 
Configuration:
804
 
  -h, --help              display this help and exit
805
 
      --help=short        display options specific to this package
806
 
      --help=recursive    display the short help of all the included packages
807
 
  -V, --version           display version information and exit
808
 
  -q, --quiet, --silent   do not print \`checking...' messages
809
 
      --cache-file=FILE   cache test results in FILE [disabled]
810
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
811
 
  -n, --no-create         do not create output files
812
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
813
 
 
814
 
_ACEOF
815
 
 
816
 
  cat <<_ACEOF
817
 
Installation directories:
818
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
819
 
                          [$ac_default_prefix]
820
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
821
 
                          [PREFIX]
822
 
 
823
 
By default, \`make install' will install all the files in
824
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
825
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
826
 
for instance \`--prefix=\$HOME'.
827
 
 
828
 
For better control, use the options below.
829
 
 
830
 
Fine tuning of the installation directories:
831
 
  --bindir=DIR           user executables [EPREFIX/bin]
832
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
833
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
834
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
835
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
836
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
837
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
838
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
839
 
  --includedir=DIR       C header files [PREFIX/include]
840
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
841
 
  --infodir=DIR          info documentation [PREFIX/info]
842
 
  --mandir=DIR           man documentation [PREFIX/man]
843
 
_ACEOF
844
 
 
845
 
  cat <<\_ACEOF
846
 
 
847
 
Program names:
848
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
849
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
850
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
851
 
 
852
 
System types:
853
 
  --build=BUILD     configure for building on BUILD [guessed]
854
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
855
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
856
 
_ACEOF
857
 
fi
858
 
 
859
 
if test -n "$ac_init_help"; then
860
 
 
861
 
  cat <<\_ACEOF
862
 
 
863
 
Optional Features:
864
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
865
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
866
 
  --disable-dependency-tracking Speeds up one-time builds
867
 
  --enable-dependency-tracking  Do not reject slow dependency extractors
868
 
  --enable-debug=ARG    enables debug symbols (yes|no|full) default=no
869
 
  --disable-debug         disables debug output and debug symbols default=no
870
 
  --enable-strict         compiles with strict compiler options (may not work!)
871
 
  --enable-warnings       compiles with -Wall and similiar
872
 
  --enable-profile        creates profiling infos default=no
873
 
  --enable-pch            enables precompiled header support (currently only KCC) default=no
874
 
  --enable-final          build size optimized apps (experimental - needs lots of memory)
875
 
  --disable-closure       don't delay template instantiation
876
 
  --enable-shared=PKGS  build shared libraries default=yes
877
 
  --enable-static=PKGS  build static libraries default=no
878
 
  --enable-fast-install=PKGS  optimize for fast installation default=yes
879
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
880
 
  --enable-objprelink     prelink apps using objprelink (experimental only tested on linux/386)
881
 
  --enable-embedded       link to Qt-embedded, don't use X
882
 
  --enable-qtopia         link to Qt-embedded, link to the Qtopia Environment
883
 
  --disable-mt            link to non-threaded Qt (deprecated)
884
 
  --enable-kernel-threads Enable the use of the LinuxThreads port on FreeBSD/i386 only.
885
 
  --disable-threading     disables threading even if libpthread found
886
 
 
887
 
Optional Packages:
888
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
889
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
890
 
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
891
 
  --with-pic              try to use only PIC/non-PIC objects default=use both
892
 
  --with-xinerama         enable support for Xinerama
893
 
  --with-extra-includes=DIR
894
 
                          adds non standard include paths
895
 
  --with-extra-libs=DIR   adds non standard library paths
896
 
  --with-qt-dir=DIR       where the root of Qt is installed
897
 
  --with-qt-includes=DIR  where the Qt includes are.
898
 
  --with-qt-libraries=DIR where the Qt library is installed.
899
 
 
900
 
Some influential environment variables:
901
 
  CC          C compiler command
902
 
  CFLAGS      C compiler flags
903
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
904
 
              nonstandard directory <lib dir>
905
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
906
 
              headers in a nonstandard directory <include dir>
907
 
  CPP         C preprocessor
908
 
  CXX         C++ compiler command
909
 
  CXXFLAGS    C++ compiler flags
910
 
  CXXCPP      C++ preprocessor
911
 
 
912
 
Use these variables to override the choices made by `configure' or to help
913
 
it to find libraries and programs with nonstandard names/locations.
914
 
 
915
 
_ACEOF
916
 
fi
917
 
 
918
 
if test "$ac_init_help" = "recursive"; then
919
 
  # If there are subdirs, report their specific --help.
920
 
  ac_popdir=`pwd`
921
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922
 
    test -d $ac_dir || continue
923
 
    ac_builddir=.
924
 
 
925
 
if test "$ac_dir" != .; then
926
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927
 
  # A "../" for each directory in $ac_dir_suffix.
928
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929
 
else
930
 
  ac_dir_suffix= ac_top_builddir=
931
 
fi
932
 
 
933
 
case $srcdir in
934
 
  .)  # No --srcdir option.  We are building in place.
935
 
    ac_srcdir=.
936
 
    if test -z "$ac_top_builddir"; then
937
 
       ac_top_srcdir=.
938
 
    else
939
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940
 
    fi ;;
941
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
942
 
    ac_srcdir=$srcdir$ac_dir_suffix;
943
 
    ac_top_srcdir=$srcdir ;;
944
 
  *) # Relative path.
945
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
947
 
esac
948
 
 
949
 
# Do not use `cd foo && pwd` to compute absolute paths, because
950
 
# the directories may not exist.
951
 
case `pwd` in
952
 
.) ac_abs_builddir="$ac_dir";;
953
 
*)
954
 
  case "$ac_dir" in
955
 
  .) ac_abs_builddir=`pwd`;;
956
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
958
 
  esac;;
959
 
esac
960
 
case $ac_abs_builddir in
961
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
962
 
*)
963
 
  case ${ac_top_builddir}. in
964
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
965
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967
 
  esac;;
968
 
esac
969
 
case $ac_abs_builddir in
970
 
.) ac_abs_srcdir=$ac_srcdir;;
971
 
*)
972
 
  case $ac_srcdir in
973
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
974
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976
 
  esac;;
977
 
esac
978
 
case $ac_abs_builddir in
979
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
980
 
*)
981
 
  case $ac_top_srcdir in
982
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
983
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985
 
  esac;;
986
 
esac
987
 
 
988
 
    cd $ac_dir
989
 
    # Check for guested configure; otherwise get Cygnus style configure.
990
 
    if test -f $ac_srcdir/configure.gnu; then
991
 
      echo
992
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
993
 
    elif test -f $ac_srcdir/configure; then
994
 
      echo
995
 
      $SHELL $ac_srcdir/configure  --help=recursive
996
 
    elif test -f $ac_srcdir/configure.ac ||
997
 
           test -f $ac_srcdir/configure.in; then
998
 
      echo
999
 
      $ac_configure --help
1000
 
    else
1001
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002
 
    fi
1003
 
    cd $ac_popdir
1004
 
  done
1005
 
fi
1006
 
 
1007
 
test -n "$ac_init_help" && exit 0
1008
 
if $ac_init_version; then
1009
 
  cat <<\_ACEOF
1010
 
 
1011
 
Copyright (C) 2003 Free Software Foundation, Inc.
1012
 
This configure script is free software; the Free Software Foundation
1013
 
gives unlimited permission to copy, distribute and modify it.
1014
 
_ACEOF
1015
 
  exit 0
1016
 
fi
1017
 
exec 5>config.log
1018
 
cat >&5 <<_ACEOF
1019
 
This file contains any messages produced by compilers while
1020
 
running configure, to aid debugging if configure makes a mistake.
1021
 
 
1022
 
It was created by $as_me, which was
1023
 
generated by GNU Autoconf 2.59.  Invocation command line was
1024
 
 
1025
 
  $ $0 $@
1026
 
 
1027
 
_ACEOF
1028
 
{
1029
 
cat <<_ASUNAME
1030
 
## --------- ##
1031
 
## Platform. ##
1032
 
## --------- ##
1033
 
 
1034
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1035
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1036
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1037
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1038
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1039
 
 
1040
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1041
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1042
 
 
1043
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1044
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1045
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1046
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1047
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1048
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1049
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1050
 
 
1051
 
_ASUNAME
1052
 
 
1053
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1054
 
for as_dir in $PATH
1055
 
do
1056
 
  IFS=$as_save_IFS
1057
 
  test -z "$as_dir" && as_dir=.
1058
 
  echo "PATH: $as_dir"
1059
 
done
1060
 
 
1061
 
} >&5
1062
 
 
1063
 
cat >&5 <<_ACEOF
1064
 
 
1065
 
 
1066
 
## ----------- ##
1067
 
## Core tests. ##
1068
 
## ----------- ##
1069
 
 
1070
 
_ACEOF
1071
 
 
1072
 
 
1073
 
# Keep a trace of the command line.
1074
 
# Strip out --no-create and --no-recursion so they do not pile up.
1075
 
# Strip out --silent because we don't want to record it for future runs.
1076
 
# Also quote any args containing shell meta-characters.
1077
 
# Make two passes to allow for proper duplicate-argument suppression.
1078
 
ac_configure_args=
1079
 
ac_configure_args0=
1080
 
ac_configure_args1=
1081
 
ac_sep=
1082
 
ac_must_keep_next=false
1083
 
for ac_pass in 1 2
1084
 
do
1085
 
  for ac_arg
1086
 
  do
1087
 
    case $ac_arg in
1088
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1089
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090
 
    | -silent | --silent | --silen | --sile | --sil)
1091
 
      continue ;;
1092
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1094
 
    esac
1095
 
    case $ac_pass in
1096
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1097
 
    2)
1098
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1099
 
      if test $ac_must_keep_next = true; then
1100
 
        ac_must_keep_next=false # Got value, back to normal.
1101
 
      else
1102
 
        case $ac_arg in
1103
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1104
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1105
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1106
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1107
 
            case "$ac_configure_args0 " in
1108
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1109
 
            esac
1110
 
            ;;
1111
 
          -* ) ac_must_keep_next=true ;;
1112
 
        esac
1113
 
      fi
1114
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1115
 
      # Get rid of the leading space.
1116
 
      ac_sep=" "
1117
 
      ;;
1118
 
    esac
1119
 
  done
1120
 
done
1121
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1122
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1123
 
 
1124
 
# When interrupted or exit'd, cleanup temporary files, and complete
1125
 
# config.log.  We remove comments because anyway the quotes in there
1126
 
# would cause problems or look ugly.
1127
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1128
 
# such as our DU 5.0 friend, will then `close' the trap.
1129
 
trap 'exit_status=$?
1130
 
  # Save into config.log some information that might help in debugging.
1131
 
  {
1132
 
    echo
1133
 
 
1134
 
    cat <<\_ASBOX
1135
 
## ---------------- ##
1136
 
## Cache variables. ##
1137
 
## ---------------- ##
1138
 
_ASBOX
1139
 
    echo
1140
 
    # The following way of writing the cache mishandles newlines in values,
1141
 
{
1142
 
  (set) 2>&1 |
1143
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1144
 
    *ac_space=\ *)
1145
 
      sed -n \
1146
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1147
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1148
 
      ;;
1149
 
    *)
1150
 
      sed -n \
1151
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1152
 
      ;;
1153
 
    esac;
1154
 
}
1155
 
    echo
1156
 
 
1157
 
    cat <<\_ASBOX
1158
 
## ----------------- ##
1159
 
## Output variables. ##
1160
 
## ----------------- ##
1161
 
_ASBOX
1162
 
    echo
1163
 
    for ac_var in $ac_subst_vars
1164
 
    do
1165
 
      eval ac_val=$`echo $ac_var`
1166
 
      echo "$ac_var='"'"'$ac_val'"'"'"
1167
 
    done | sort
1168
 
    echo
1169
 
 
1170
 
    if test -n "$ac_subst_files"; then
1171
 
      cat <<\_ASBOX
1172
 
## ------------- ##
1173
 
## Output files. ##
1174
 
## ------------- ##
1175
 
_ASBOX
1176
 
      echo
1177
 
      for ac_var in $ac_subst_files
1178
 
      do
1179
 
        eval ac_val=$`echo $ac_var`
1180
 
        echo "$ac_var='"'"'$ac_val'"'"'"
1181
 
      done | sort
1182
 
      echo
1183
 
    fi
1184
 
 
1185
 
    if test -s confdefs.h; then
1186
 
      cat <<\_ASBOX
1187
 
## ----------- ##
1188
 
## confdefs.h. ##
1189
 
## ----------- ##
1190
 
_ASBOX
1191
 
      echo
1192
 
      sed "/^$/d" confdefs.h | sort
1193
 
      echo
1194
 
    fi
1195
 
    test "$ac_signal" != 0 &&
1196
 
      echo "$as_me: caught signal $ac_signal"
1197
 
    echo "$as_me: exit $exit_status"
1198
 
  } >&5
1199
 
  rm -f core *.core &&
1200
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1201
 
    exit $exit_status
1202
 
     ' 0
1203
 
for ac_signal in 1 2 13 15; do
1204
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1205
 
done
1206
 
ac_signal=0
1207
 
 
1208
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1209
 
rm -rf conftest* confdefs.h
1210
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1211
 
echo >confdefs.h
1212
 
 
1213
 
# Predefined preprocessor variables.
1214
 
 
1215
 
cat >>confdefs.h <<_ACEOF
1216
 
#define PACKAGE_NAME "$PACKAGE_NAME"
1217
 
_ACEOF
1218
 
 
1219
 
 
1220
 
cat >>confdefs.h <<_ACEOF
1221
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1222
 
_ACEOF
1223
 
 
1224
 
 
1225
 
cat >>confdefs.h <<_ACEOF
1226
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1227
 
_ACEOF
1228
 
 
1229
 
 
1230
 
cat >>confdefs.h <<_ACEOF
1231
 
#define PACKAGE_STRING "$PACKAGE_STRING"
1232
 
_ACEOF
1233
 
 
1234
 
 
1235
 
cat >>confdefs.h <<_ACEOF
1236
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1237
 
_ACEOF
1238
 
 
1239
 
 
1240
 
# Let the site file select an alternate cache file if it wants to.
1241
 
# Prefer explicitly selected file to automatically selected ones.
1242
 
if test -z "$CONFIG_SITE"; then
1243
 
  if test "x$prefix" != xNONE; then
1244
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1245
 
  else
1246
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1247
 
  fi
1248
 
fi
1249
 
for ac_site_file in $CONFIG_SITE; do
1250
 
  if test -r "$ac_site_file"; then
1251
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1252
 
echo "$as_me: loading site script $ac_site_file" >&6;}
1253
 
    sed 's/^/| /' "$ac_site_file" >&5
1254
 
    . "$ac_site_file"
1255
 
  fi
1256
 
done
1257
 
 
1258
 
if test -r "$cache_file"; then
1259
 
  # Some versions of bash will fail to source /dev/null (special
1260
 
  # files actually), so we avoid doing that.
1261
 
  if test -f "$cache_file"; then
1262
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1263
 
echo "$as_me: loading cache $cache_file" >&6;}
1264
 
    case $cache_file in
1265
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1266
 
      *)                      . ./$cache_file;;
1267
 
    esac
1268
 
  fi
1269
 
else
1270
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1271
 
echo "$as_me: creating cache $cache_file" >&6;}
1272
 
  >$cache_file
1273
 
fi
1274
 
 
1275
 
# Check that the precious variables saved in the cache have kept the same
1276
 
# value.
1277
 
ac_cache_corrupted=false
1278
 
for ac_var in `(set) 2>&1 |
1279
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1280
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1281
 
  eval ac_new_set=\$ac_env_${ac_var}_set
1282
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1283
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
1284
 
  case $ac_old_set,$ac_new_set in
1285
 
    set,)
1286
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1287
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1288
 
      ac_cache_corrupted=: ;;
1289
 
    ,set)
1290
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1291
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1292
 
      ac_cache_corrupted=: ;;
1293
 
    ,);;
1294
 
    *)
1295
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
1296
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1297
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1298
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1299
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1300
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1301
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1302
 
        ac_cache_corrupted=:
1303
 
      fi;;
1304
 
  esac
1305
 
  # Pass precious variables to config.status.
1306
 
  if test "$ac_new_set" = set; then
1307
 
    case $ac_new_val in
1308
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1309
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1310
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1311
 
    esac
1312
 
    case " $ac_configure_args " in
1313
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1314
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1315
 
    esac
1316
 
  fi
1317
 
done
1318
 
if $ac_cache_corrupted; then
1319
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1320
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1321
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1322
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1323
 
   { (exit 1); exit 1; }; }
1324
 
fi
1325
 
 
1326
 
ac_ext=c
1327
 
ac_cpp='$CPP $CPPFLAGS'
1328
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1329
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1330
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1331
 
 
1332
 
 
1333
 
 
1334
 
 
1335
 
 
1336
 
 
1337
 
 
1338
 
 
1339
 
 
1340
 
 
1341
 
 
1342
 
 
1343
 
 
1344
 
 
1345
 
 
1346
 
 
1347
 
 
1348
 
 
1349
 
 
1350
 
ac_aux_dir=
1351
 
for ac_dir in admin $srcdir/admin; do
1352
 
  if test -f $ac_dir/install-sh; then
1353
 
    ac_aux_dir=$ac_dir
1354
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1355
 
    break
1356
 
  elif test -f $ac_dir/install.sh; then
1357
 
    ac_aux_dir=$ac_dir
1358
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1359
 
    break
1360
 
  elif test -f $ac_dir/shtool; then
1361
 
    ac_aux_dir=$ac_dir
1362
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1363
 
    break
1364
 
  fi
1365
 
done
1366
 
if test -z "$ac_aux_dir"; then
1367
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
1368
 
echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
1369
 
   { (exit 1); exit 1; }; }
1370
 
fi
1371
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1372
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1373
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1374
 
 
1375
 
 
1376
 
CPPFLAGS="-DDATADIR='\"${datadir}\"' $CPPFLAGS"
1377
 
 
1378
 
# Make sure we can run config.sub.
1379
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
1380
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1381
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1382
 
   { (exit 1); exit 1; }; }
1383
 
 
1384
 
echo "$as_me:$LINENO: checking build system type" >&5
1385
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1386
 
if test "${ac_cv_build+set}" = set; then
1387
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1388
 
else
1389
 
  ac_cv_build_alias=$build_alias
1390
 
test -z "$ac_cv_build_alias" &&
1391
 
  ac_cv_build_alias=`$ac_config_guess`
1392
 
test -z "$ac_cv_build_alias" &&
1393
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1394
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1395
 
   { (exit 1); exit 1; }; }
1396
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1397
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1398
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1399
 
   { (exit 1); exit 1; }; }
1400
 
 
1401
 
fi
1402
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1403
 
echo "${ECHO_T}$ac_cv_build" >&6
1404
 
build=$ac_cv_build
1405
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1406
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1407
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1408
 
 
1409
 
 
1410
 
echo "$as_me:$LINENO: checking host system type" >&5
1411
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1412
 
if test "${ac_cv_host+set}" = set; then
1413
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1414
 
else
1415
 
  ac_cv_host_alias=$host_alias
1416
 
test -z "$ac_cv_host_alias" &&
1417
 
  ac_cv_host_alias=$ac_cv_build_alias
1418
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1419
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1420
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1421
 
   { (exit 1); exit 1; }; }
1422
 
 
1423
 
fi
1424
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1425
 
echo "${ECHO_T}$ac_cv_host" >&6
1426
 
host=$ac_cv_host
1427
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430
 
 
1431
 
 
1432
 
echo "$as_me:$LINENO: checking target system type" >&5
1433
 
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1434
 
if test "${ac_cv_target+set}" = set; then
1435
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1436
 
else
1437
 
  ac_cv_target_alias=$target_alias
1438
 
test "x$ac_cv_target_alias" = "x" &&
1439
 
  ac_cv_target_alias=$ac_cv_host_alias
1440
 
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1441
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1442
 
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1443
 
   { (exit 1); exit 1; }; }
1444
 
 
1445
 
fi
1446
 
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1447
 
echo "${ECHO_T}$ac_cv_target" >&6
1448
 
target=$ac_cv_target
1449
 
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450
 
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451
 
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452
 
 
1453
 
 
1454
 
# The aliases save the names the user supplied, while $host etc.
1455
 
# will get canonicalized.
1456
 
test -n "$target_alias" &&
1457
 
  test "$program_prefix$program_suffix$program_transform_name" = \
1458
 
    NONENONEs,x,x, &&
1459
 
  program_prefix=${target_alias}-
1460
 
ac_ext=c
1461
 
ac_cpp='$CPP $CPPFLAGS'
1462
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465
 
if test -n "$ac_tool_prefix"; then
1466
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1467
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1468
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1469
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470
 
if test "${ac_cv_prog_CC+set}" = set; then
1471
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1472
 
else
1473
 
  if test -n "$CC"; then
1474
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1475
 
else
1476
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477
 
for as_dir in $PATH
1478
 
do
1479
 
  IFS=$as_save_IFS
1480
 
  test -z "$as_dir" && as_dir=.
1481
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1482
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1484
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485
 
    break 2
1486
 
  fi
1487
 
done
1488
 
done
1489
 
 
1490
 
fi
1491
 
fi
1492
 
CC=$ac_cv_prog_CC
1493
 
if test -n "$CC"; then
1494
 
  echo "$as_me:$LINENO: result: $CC" >&5
1495
 
echo "${ECHO_T}$CC" >&6
1496
 
else
1497
 
  echo "$as_me:$LINENO: result: no" >&5
1498
 
echo "${ECHO_T}no" >&6
1499
 
fi
1500
 
 
1501
 
fi
1502
 
if test -z "$ac_cv_prog_CC"; then
1503
 
  ac_ct_CC=$CC
1504
 
  # Extract the first word of "gcc", so it can be a program name with args.
1505
 
set dummy gcc; ac_word=$2
1506
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1507
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1509
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1510
 
else
1511
 
  if test -n "$ac_ct_CC"; then
1512
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1513
 
else
1514
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515
 
for as_dir in $PATH
1516
 
do
1517
 
  IFS=$as_save_IFS
1518
 
  test -z "$as_dir" && as_dir=.
1519
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1520
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521
 
    ac_cv_prog_ac_ct_CC="gcc"
1522
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523
 
    break 2
1524
 
  fi
1525
 
done
1526
 
done
1527
 
 
1528
 
fi
1529
 
fi
1530
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1531
 
if test -n "$ac_ct_CC"; then
1532
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1533
 
echo "${ECHO_T}$ac_ct_CC" >&6
1534
 
else
1535
 
  echo "$as_me:$LINENO: result: no" >&5
1536
 
echo "${ECHO_T}no" >&6
1537
 
fi
1538
 
 
1539
 
  CC=$ac_ct_CC
1540
 
else
1541
 
  CC="$ac_cv_prog_CC"
1542
 
fi
1543
 
 
1544
 
if test -z "$CC"; then
1545
 
  if test -n "$ac_tool_prefix"; then
1546
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1547
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
1548
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1549
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550
 
if test "${ac_cv_prog_CC+set}" = set; then
1551
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1552
 
else
1553
 
  if test -n "$CC"; then
1554
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1555
 
else
1556
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557
 
for as_dir in $PATH
1558
 
do
1559
 
  IFS=$as_save_IFS
1560
 
  test -z "$as_dir" && as_dir=.
1561
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1562
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1564
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565
 
    break 2
1566
 
  fi
1567
 
done
1568
 
done
1569
 
 
1570
 
fi
1571
 
fi
1572
 
CC=$ac_cv_prog_CC
1573
 
if test -n "$CC"; then
1574
 
  echo "$as_me:$LINENO: result: $CC" >&5
1575
 
echo "${ECHO_T}$CC" >&6
1576
 
else
1577
 
  echo "$as_me:$LINENO: result: no" >&5
1578
 
echo "${ECHO_T}no" >&6
1579
 
fi
1580
 
 
1581
 
fi
1582
 
if test -z "$ac_cv_prog_CC"; then
1583
 
  ac_ct_CC=$CC
1584
 
  # Extract the first word of "cc", so it can be a program name with args.
1585
 
set dummy cc; ac_word=$2
1586
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1587
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1589
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1590
 
else
1591
 
  if test -n "$ac_ct_CC"; then
1592
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1593
 
else
1594
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595
 
for as_dir in $PATH
1596
 
do
1597
 
  IFS=$as_save_IFS
1598
 
  test -z "$as_dir" && as_dir=.
1599
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1600
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601
 
    ac_cv_prog_ac_ct_CC="cc"
1602
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603
 
    break 2
1604
 
  fi
1605
 
done
1606
 
done
1607
 
 
1608
 
fi
1609
 
fi
1610
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1611
 
if test -n "$ac_ct_CC"; then
1612
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1613
 
echo "${ECHO_T}$ac_ct_CC" >&6
1614
 
else
1615
 
  echo "$as_me:$LINENO: result: no" >&5
1616
 
echo "${ECHO_T}no" >&6
1617
 
fi
1618
 
 
1619
 
  CC=$ac_ct_CC
1620
 
else
1621
 
  CC="$ac_cv_prog_CC"
1622
 
fi
1623
 
 
1624
 
fi
1625
 
if test -z "$CC"; then
1626
 
  # Extract the first word of "cc", so it can be a program name with args.
1627
 
set dummy cc; ac_word=$2
1628
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1629
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630
 
if test "${ac_cv_prog_CC+set}" = set; then
1631
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1632
 
else
1633
 
  if test -n "$CC"; then
1634
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1635
 
else
1636
 
  ac_prog_rejected=no
1637
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638
 
for as_dir in $PATH
1639
 
do
1640
 
  IFS=$as_save_IFS
1641
 
  test -z "$as_dir" && as_dir=.
1642
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1643
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1645
 
       ac_prog_rejected=yes
1646
 
       continue
1647
 
     fi
1648
 
    ac_cv_prog_CC="cc"
1649
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650
 
    break 2
1651
 
  fi
1652
 
done
1653
 
done
1654
 
 
1655
 
if test $ac_prog_rejected = yes; then
1656
 
  # We found a bogon in the path, so make sure we never use it.
1657
 
  set dummy $ac_cv_prog_CC
1658
 
  shift
1659
 
  if test $# != 0; then
1660
 
    # We chose a different compiler from the bogus one.
1661
 
    # However, it has the same basename, so the bogon will be chosen
1662
 
    # first if we set CC to just the basename; use the full file name.
1663
 
    shift
1664
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1665
 
  fi
1666
 
fi
1667
 
fi
1668
 
fi
1669
 
CC=$ac_cv_prog_CC
1670
 
if test -n "$CC"; then
1671
 
  echo "$as_me:$LINENO: result: $CC" >&5
1672
 
echo "${ECHO_T}$CC" >&6
1673
 
else
1674
 
  echo "$as_me:$LINENO: result: no" >&5
1675
 
echo "${ECHO_T}no" >&6
1676
 
fi
1677
 
 
1678
 
fi
1679
 
if test -z "$CC"; then
1680
 
  if test -n "$ac_tool_prefix"; then
1681
 
  for ac_prog in cl
1682
 
  do
1683
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1684
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1685
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1686
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687
 
if test "${ac_cv_prog_CC+set}" = set; then
1688
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1689
 
else
1690
 
  if test -n "$CC"; then
1691
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1692
 
else
1693
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694
 
for as_dir in $PATH
1695
 
do
1696
 
  IFS=$as_save_IFS
1697
 
  test -z "$as_dir" && as_dir=.
1698
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1699
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1701
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702
 
    break 2
1703
 
  fi
1704
 
done
1705
 
done
1706
 
 
1707
 
fi
1708
 
fi
1709
 
CC=$ac_cv_prog_CC
1710
 
if test -n "$CC"; then
1711
 
  echo "$as_me:$LINENO: result: $CC" >&5
1712
 
echo "${ECHO_T}$CC" >&6
1713
 
else
1714
 
  echo "$as_me:$LINENO: result: no" >&5
1715
 
echo "${ECHO_T}no" >&6
1716
 
fi
1717
 
 
1718
 
    test -n "$CC" && break
1719
 
  done
1720
 
fi
1721
 
if test -z "$CC"; then
1722
 
  ac_ct_CC=$CC
1723
 
  for ac_prog in cl
1724
 
do
1725
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1726
 
set dummy $ac_prog; ac_word=$2
1727
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1728
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1730
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1731
 
else
1732
 
  if test -n "$ac_ct_CC"; then
1733
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1734
 
else
1735
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736
 
for as_dir in $PATH
1737
 
do
1738
 
  IFS=$as_save_IFS
1739
 
  test -z "$as_dir" && as_dir=.
1740
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1741
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
1743
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744
 
    break 2
1745
 
  fi
1746
 
done
1747
 
done
1748
 
 
1749
 
fi
1750
 
fi
1751
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1752
 
if test -n "$ac_ct_CC"; then
1753
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1754
 
echo "${ECHO_T}$ac_ct_CC" >&6
1755
 
else
1756
 
  echo "$as_me:$LINENO: result: no" >&5
1757
 
echo "${ECHO_T}no" >&6
1758
 
fi
1759
 
 
1760
 
  test -n "$ac_ct_CC" && break
1761
 
done
1762
 
 
1763
 
  CC=$ac_ct_CC
1764
 
fi
1765
 
 
1766
 
fi
1767
 
 
1768
 
 
1769
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1770
 
See \`config.log' for more details." >&5
1771
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
1772
 
See \`config.log' for more details." >&2;}
1773
 
   { (exit 1); exit 1; }; }
1774
 
 
1775
 
# Provide some information about the compiler.
1776
 
echo "$as_me:$LINENO:" \
1777
 
     "checking for C compiler version" >&5
1778
 
ac_compiler=`set X $ac_compile; echo $2`
1779
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1780
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
1781
 
  ac_status=$?
1782
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783
 
  (exit $ac_status); }
1784
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1785
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
1786
 
  ac_status=$?
1787
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788
 
  (exit $ac_status); }
1789
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1790
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
1791
 
  ac_status=$?
1792
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793
 
  (exit $ac_status); }
1794
 
 
1795
 
cat >conftest.$ac_ext <<_ACEOF
1796
 
/* confdefs.h.  */
1797
 
_ACEOF
1798
 
cat confdefs.h >>conftest.$ac_ext
1799
 
cat >>conftest.$ac_ext <<_ACEOF
1800
 
/* end confdefs.h.  */
1801
 
 
1802
 
int
1803
 
main ()
1804
 
{
1805
 
 
1806
 
  ;
1807
 
  return 0;
1808
 
}
1809
 
_ACEOF
1810
 
ac_clean_files_save=$ac_clean_files
1811
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1812
 
# Try to create an executable without -o first, disregard a.out.
1813
 
# It will help us diagnose broken compilers, and finding out an intuition
1814
 
# of exeext.
1815
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1816
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1817
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1818
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1819
 
  (eval $ac_link_default) 2>&5
1820
 
  ac_status=$?
1821
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822
 
  (exit $ac_status); }; then
1823
 
  # Find the output, starting from the most likely.  This scheme is
1824
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1825
 
# resort.
1826
 
 
1827
 
# Be careful to initialize this variable, since it used to be cached.
1828
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1829
 
ac_cv_exeext=
1830
 
# b.out is created by i960 compilers.
1831
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1832
 
do
1833
 
  test -f "$ac_file" || continue
1834
 
  case $ac_file in
1835
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1836
 
        ;;
1837
 
    conftest.$ac_ext )
1838
 
        # This is the source file.
1839
 
        ;;
1840
 
    [ab].out )
1841
 
        # We found the default executable, but exeext='' is most
1842
 
        # certainly right.
1843
 
        break;;
1844
 
    *.* )
1845
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1846
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1847
 
        # but it would be cool to find out if it's true.  Does anybody
1848
 
        # maintain Libtool? --akim.
1849
 
        export ac_cv_exeext
1850
 
        break;;
1851
 
    * )
1852
 
        break;;
1853
 
  esac
1854
 
done
1855
 
else
1856
 
  echo "$as_me: failed program was:" >&5
1857
 
sed 's/^/| /' conftest.$ac_ext >&5
1858
 
 
1859
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1860
 
See \`config.log' for more details." >&5
1861
 
echo "$as_me: error: C compiler cannot create executables
1862
 
See \`config.log' for more details." >&2;}
1863
 
   { (exit 77); exit 77; }; }
1864
 
fi
1865
 
 
1866
 
ac_exeext=$ac_cv_exeext
1867
 
echo "$as_me:$LINENO: result: $ac_file" >&5
1868
 
echo "${ECHO_T}$ac_file" >&6
1869
 
 
1870
 
# Check the compiler produces executables we can run.  If not, either
1871
 
# the compiler is broken, or we cross compile.
1872
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1873
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1874
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1875
 
# If not cross compiling, check that we can run a simple program.
1876
 
if test "$cross_compiling" != yes; then
1877
 
  if { ac_try='./$ac_file'
1878
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879
 
  (eval $ac_try) 2>&5
1880
 
  ac_status=$?
1881
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882
 
  (exit $ac_status); }; }; then
1883
 
    cross_compiling=no
1884
 
  else
1885
 
    if test "$cross_compiling" = maybe; then
1886
 
        cross_compiling=yes
1887
 
    else
1888
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1889
 
If you meant to cross compile, use \`--host'.
1890
 
See \`config.log' for more details." >&5
1891
 
echo "$as_me: error: cannot run C compiled programs.
1892
 
If you meant to cross compile, use \`--host'.
1893
 
See \`config.log' for more details." >&2;}
1894
 
   { (exit 1); exit 1; }; }
1895
 
    fi
1896
 
  fi
1897
 
fi
1898
 
echo "$as_me:$LINENO: result: yes" >&5
1899
 
echo "${ECHO_T}yes" >&6
1900
 
 
1901
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1902
 
ac_clean_files=$ac_clean_files_save
1903
 
# Check the compiler produces executables we can run.  If not, either
1904
 
# the compiler is broken, or we cross compile.
1905
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1906
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1907
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1908
 
echo "${ECHO_T}$cross_compiling" >&6
1909
 
 
1910
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1911
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1912
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1913
 
  (eval $ac_link) 2>&5
1914
 
  ac_status=$?
1915
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916
 
  (exit $ac_status); }; then
1917
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1918
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1919
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
1920
 
# `rm'.
1921
 
for ac_file in conftest.exe conftest conftest.*; do
1922
 
  test -f "$ac_file" || continue
1923
 
  case $ac_file in
1924
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1925
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1926
 
          export ac_cv_exeext
1927
 
          break;;
1928
 
    * ) break;;
1929
 
  esac
1930
 
done
1931
 
else
1932
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1933
 
See \`config.log' for more details." >&5
1934
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1935
 
See \`config.log' for more details." >&2;}
1936
 
   { (exit 1); exit 1; }; }
1937
 
fi
1938
 
 
1939
 
rm -f conftest$ac_cv_exeext
1940
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1941
 
echo "${ECHO_T}$ac_cv_exeext" >&6
1942
 
 
1943
 
rm -f conftest.$ac_ext
1944
 
EXEEXT=$ac_cv_exeext
1945
 
ac_exeext=$EXEEXT
1946
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1947
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1948
 
if test "${ac_cv_objext+set}" = set; then
1949
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1950
 
else
1951
 
  cat >conftest.$ac_ext <<_ACEOF
1952
 
/* confdefs.h.  */
1953
 
_ACEOF
1954
 
cat confdefs.h >>conftest.$ac_ext
1955
 
cat >>conftest.$ac_ext <<_ACEOF
1956
 
/* end confdefs.h.  */
1957
 
 
1958
 
int
1959
 
main ()
1960
 
{
1961
 
 
1962
 
  ;
1963
 
  return 0;
1964
 
}
1965
 
_ACEOF
1966
 
rm -f conftest.o conftest.obj
1967
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968
 
  (eval $ac_compile) 2>&5
1969
 
  ac_status=$?
1970
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971
 
  (exit $ac_status); }; then
1972
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1973
 
  case $ac_file in
1974
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1975
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1976
 
       break;;
1977
 
  esac
1978
 
done
1979
 
else
1980
 
  echo "$as_me: failed program was:" >&5
1981
 
sed 's/^/| /' conftest.$ac_ext >&5
1982
 
 
1983
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1984
 
See \`config.log' for more details." >&5
1985
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1986
 
See \`config.log' for more details." >&2;}
1987
 
   { (exit 1); exit 1; }; }
1988
 
fi
1989
 
 
1990
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1991
 
fi
1992
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1993
 
echo "${ECHO_T}$ac_cv_objext" >&6
1994
 
OBJEXT=$ac_cv_objext
1995
 
ac_objext=$OBJEXT
1996
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1997
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1998
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1999
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2000
 
else
2001
 
  cat >conftest.$ac_ext <<_ACEOF
2002
 
/* confdefs.h.  */
2003
 
_ACEOF
2004
 
cat confdefs.h >>conftest.$ac_ext
2005
 
cat >>conftest.$ac_ext <<_ACEOF
2006
 
/* end confdefs.h.  */
2007
 
 
2008
 
int
2009
 
main ()
2010
 
{
2011
 
#ifndef __GNUC__
2012
 
       choke me
2013
 
#endif
2014
 
 
2015
 
  ;
2016
 
  return 0;
2017
 
}
2018
 
_ACEOF
2019
 
rm -f conftest.$ac_objext
2020
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2021
 
  (eval $ac_compile) 2>conftest.er1
2022
 
  ac_status=$?
2023
 
  grep -v '^ *+' conftest.er1 >conftest.err
2024
 
  rm -f conftest.er1
2025
 
  cat conftest.err >&5
2026
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027
 
  (exit $ac_status); } &&
2028
 
         { ac_try='test -z "$ac_c_werror_flag"
2029
 
                         || test ! -s conftest.err'
2030
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031
 
  (eval $ac_try) 2>&5
2032
 
  ac_status=$?
2033
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034
 
  (exit $ac_status); }; } &&
2035
 
         { ac_try='test -s conftest.$ac_objext'
2036
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037
 
  (eval $ac_try) 2>&5
2038
 
  ac_status=$?
2039
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040
 
  (exit $ac_status); }; }; then
2041
 
  ac_compiler_gnu=yes
2042
 
else
2043
 
  echo "$as_me: failed program was:" >&5
2044
 
sed 's/^/| /' conftest.$ac_ext >&5
2045
 
 
2046
 
ac_compiler_gnu=no
2047
 
fi
2048
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2049
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2050
 
 
2051
 
fi
2052
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2053
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2054
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
2055
 
ac_test_CFLAGS=${CFLAGS+set}
2056
 
ac_save_CFLAGS=$CFLAGS
2057
 
CFLAGS="-g"
2058
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2059
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2060
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2061
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2062
 
else
2063
 
  cat >conftest.$ac_ext <<_ACEOF
2064
 
/* confdefs.h.  */
2065
 
_ACEOF
2066
 
cat confdefs.h >>conftest.$ac_ext
2067
 
cat >>conftest.$ac_ext <<_ACEOF
2068
 
/* end confdefs.h.  */
2069
 
 
2070
 
int
2071
 
main ()
2072
 
{
2073
 
 
2074
 
  ;
2075
 
  return 0;
2076
 
}
2077
 
_ACEOF
2078
 
rm -f conftest.$ac_objext
2079
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080
 
  (eval $ac_compile) 2>conftest.er1
2081
 
  ac_status=$?
2082
 
  grep -v '^ *+' conftest.er1 >conftest.err
2083
 
  rm -f conftest.er1
2084
 
  cat conftest.err >&5
2085
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086
 
  (exit $ac_status); } &&
2087
 
         { ac_try='test -z "$ac_c_werror_flag"
2088
 
                         || test ! -s conftest.err'
2089
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090
 
  (eval $ac_try) 2>&5
2091
 
  ac_status=$?
2092
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093
 
  (exit $ac_status); }; } &&
2094
 
         { ac_try='test -s conftest.$ac_objext'
2095
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096
 
  (eval $ac_try) 2>&5
2097
 
  ac_status=$?
2098
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099
 
  (exit $ac_status); }; }; then
2100
 
  ac_cv_prog_cc_g=yes
2101
 
else
2102
 
  echo "$as_me: failed program was:" >&5
2103
 
sed 's/^/| /' conftest.$ac_ext >&5
2104
 
 
2105
 
ac_cv_prog_cc_g=no
2106
 
fi
2107
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2108
 
fi
2109
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2110
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2111
 
if test "$ac_test_CFLAGS" = set; then
2112
 
  CFLAGS=$ac_save_CFLAGS
2113
 
elif test $ac_cv_prog_cc_g = yes; then
2114
 
  if test "$GCC" = yes; then
2115
 
    CFLAGS="-g -O2"
2116
 
  else
2117
 
    CFLAGS="-g"
2118
 
  fi
2119
 
else
2120
 
  if test "$GCC" = yes; then
2121
 
    CFLAGS="-O2"
2122
 
  else
2123
 
    CFLAGS=
2124
 
  fi
2125
 
fi
2126
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2127
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2128
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2129
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2130
 
else
2131
 
  ac_cv_prog_cc_stdc=no
2132
 
ac_save_CC=$CC
2133
 
cat >conftest.$ac_ext <<_ACEOF
2134
 
/* confdefs.h.  */
2135
 
_ACEOF
2136
 
cat confdefs.h >>conftest.$ac_ext
2137
 
cat >>conftest.$ac_ext <<_ACEOF
2138
 
/* end confdefs.h.  */
2139
 
#include <stdarg.h>
2140
 
#include <stdio.h>
2141
 
#include <sys/types.h>
2142
 
#include <sys/stat.h>
2143
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2144
 
struct buf { int x; };
2145
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2146
 
static char *e (p, i)
2147
 
     char **p;
2148
 
     int i;
2149
 
{
2150
 
  return p[i];
2151
 
}
2152
 
static char *f (char * (*g) (char **, int), char **p, ...)
2153
 
{
2154
 
  char *s;
2155
 
  va_list v;
2156
 
  va_start (v,p);
2157
 
  s = g (p, va_arg (v,int));
2158
 
  va_end (v);
2159
 
  return s;
2160
 
}
2161
 
 
2162
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2163
 
   function prototypes and stuff, but not '\xHH' hex character constants.
2164
 
   These don't provoke an error unfortunately, instead are silently treated
2165
 
   as 'x'.  The following induces an error, until -std1 is added to get
2166
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2167
 
   array size at least.  It's necessary to write '\x00'==0 to get something
2168
 
   that's true only with -std1.  */
2169
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2170
 
 
2171
 
int test (int i, double x);
2172
 
struct s1 {int (*f) (int a);};
2173
 
struct s2 {int (*f) (double a);};
2174
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2175
 
int argc;
2176
 
char **argv;
2177
 
int
2178
 
main ()
2179
 
{
2180
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2181
 
  ;
2182
 
  return 0;
2183
 
}
2184
 
_ACEOF
2185
 
# Don't try gcc -ansi; that turns off useful extensions and
2186
 
# breaks some systems' header files.
2187
 
# AIX                   -qlanglvl=ansi
2188
 
# Ultrix and OSF/1      -std1
2189
 
# HP-UX 10.20 and later -Ae
2190
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2191
 
# SVR4                  -Xc -D__EXTENSIONS__
2192
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2193
 
do
2194
 
  CC="$ac_save_CC $ac_arg"
2195
 
  rm -f conftest.$ac_objext
2196
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197
 
  (eval $ac_compile) 2>conftest.er1
2198
 
  ac_status=$?
2199
 
  grep -v '^ *+' conftest.er1 >conftest.err
2200
 
  rm -f conftest.er1
2201
 
  cat conftest.err >&5
2202
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203
 
  (exit $ac_status); } &&
2204
 
         { ac_try='test -z "$ac_c_werror_flag"
2205
 
                         || test ! -s conftest.err'
2206
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207
 
  (eval $ac_try) 2>&5
2208
 
  ac_status=$?
2209
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210
 
  (exit $ac_status); }; } &&
2211
 
         { ac_try='test -s conftest.$ac_objext'
2212
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213
 
  (eval $ac_try) 2>&5
2214
 
  ac_status=$?
2215
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216
 
  (exit $ac_status); }; }; then
2217
 
  ac_cv_prog_cc_stdc=$ac_arg
2218
 
break
2219
 
else
2220
 
  echo "$as_me: failed program was:" >&5
2221
 
sed 's/^/| /' conftest.$ac_ext >&5
2222
 
 
2223
 
fi
2224
 
rm -f conftest.err conftest.$ac_objext
2225
 
done
2226
 
rm -f conftest.$ac_ext conftest.$ac_objext
2227
 
CC=$ac_save_CC
2228
 
 
2229
 
fi
2230
 
 
2231
 
case "x$ac_cv_prog_cc_stdc" in
2232
 
  x|xno)
2233
 
    echo "$as_me:$LINENO: result: none needed" >&5
2234
 
echo "${ECHO_T}none needed" >&6 ;;
2235
 
  *)
2236
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2237
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2238
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2239
 
esac
2240
 
 
2241
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2242
 
# in C++ we need to declare it.  In case someone uses the same compiler
2243
 
# for both compiling C and C++ we need to have the C++ compiler decide
2244
 
# the declaration of exit, since it's the most demanding environment.
2245
 
cat >conftest.$ac_ext <<_ACEOF
2246
 
#ifndef __cplusplus
2247
 
  choke me
2248
 
#endif
2249
 
_ACEOF
2250
 
rm -f conftest.$ac_objext
2251
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252
 
  (eval $ac_compile) 2>conftest.er1
2253
 
  ac_status=$?
2254
 
  grep -v '^ *+' conftest.er1 >conftest.err
2255
 
  rm -f conftest.er1
2256
 
  cat conftest.err >&5
2257
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258
 
  (exit $ac_status); } &&
2259
 
         { ac_try='test -z "$ac_c_werror_flag"
2260
 
                         || test ! -s conftest.err'
2261
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262
 
  (eval $ac_try) 2>&5
2263
 
  ac_status=$?
2264
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265
 
  (exit $ac_status); }; } &&
2266
 
         { ac_try='test -s conftest.$ac_objext'
2267
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268
 
  (eval $ac_try) 2>&5
2269
 
  ac_status=$?
2270
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271
 
  (exit $ac_status); }; }; then
2272
 
  for ac_declaration in \
2273
 
   '' \
2274
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2275
 
   'extern "C" void std::exit (int); using std::exit;' \
2276
 
   'extern "C" void exit (int) throw ();' \
2277
 
   'extern "C" void exit (int);' \
2278
 
   'void exit (int);'
2279
 
do
2280
 
  cat >conftest.$ac_ext <<_ACEOF
2281
 
/* confdefs.h.  */
2282
 
_ACEOF
2283
 
cat confdefs.h >>conftest.$ac_ext
2284
 
cat >>conftest.$ac_ext <<_ACEOF
2285
 
/* end confdefs.h.  */
2286
 
$ac_declaration
2287
 
#include <stdlib.h>
2288
 
int
2289
 
main ()
2290
 
{
2291
 
exit (42);
2292
 
  ;
2293
 
  return 0;
2294
 
}
2295
 
_ACEOF
2296
 
rm -f conftest.$ac_objext
2297
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298
 
  (eval $ac_compile) 2>conftest.er1
2299
 
  ac_status=$?
2300
 
  grep -v '^ *+' conftest.er1 >conftest.err
2301
 
  rm -f conftest.er1
2302
 
  cat conftest.err >&5
2303
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304
 
  (exit $ac_status); } &&
2305
 
         { ac_try='test -z "$ac_c_werror_flag"
2306
 
                         || test ! -s conftest.err'
2307
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308
 
  (eval $ac_try) 2>&5
2309
 
  ac_status=$?
2310
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311
 
  (exit $ac_status); }; } &&
2312
 
         { ac_try='test -s conftest.$ac_objext'
2313
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314
 
  (eval $ac_try) 2>&5
2315
 
  ac_status=$?
2316
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317
 
  (exit $ac_status); }; }; then
2318
 
  :
2319
 
else
2320
 
  echo "$as_me: failed program was:" >&5
2321
 
sed 's/^/| /' conftest.$ac_ext >&5
2322
 
 
2323
 
continue
2324
 
fi
2325
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2326
 
  cat >conftest.$ac_ext <<_ACEOF
2327
 
/* confdefs.h.  */
2328
 
_ACEOF
2329
 
cat confdefs.h >>conftest.$ac_ext
2330
 
cat >>conftest.$ac_ext <<_ACEOF
2331
 
/* end confdefs.h.  */
2332
 
$ac_declaration
2333
 
int
2334
 
main ()
2335
 
{
2336
 
exit (42);
2337
 
  ;
2338
 
  return 0;
2339
 
}
2340
 
_ACEOF
2341
 
rm -f conftest.$ac_objext
2342
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343
 
  (eval $ac_compile) 2>conftest.er1
2344
 
  ac_status=$?
2345
 
  grep -v '^ *+' conftest.er1 >conftest.err
2346
 
  rm -f conftest.er1
2347
 
  cat conftest.err >&5
2348
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349
 
  (exit $ac_status); } &&
2350
 
         { ac_try='test -z "$ac_c_werror_flag"
2351
 
                         || test ! -s conftest.err'
2352
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353
 
  (eval $ac_try) 2>&5
2354
 
  ac_status=$?
2355
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356
 
  (exit $ac_status); }; } &&
2357
 
         { ac_try='test -s conftest.$ac_objext'
2358
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359
 
  (eval $ac_try) 2>&5
2360
 
  ac_status=$?
2361
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362
 
  (exit $ac_status); }; }; then
2363
 
  break
2364
 
else
2365
 
  echo "$as_me: failed program was:" >&5
2366
 
sed 's/^/| /' conftest.$ac_ext >&5
2367
 
 
2368
 
fi
2369
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2370
 
done
2371
 
rm -f conftest*
2372
 
if test -n "$ac_declaration"; then
2373
 
  echo '#ifdef __cplusplus' >>confdefs.h
2374
 
  echo $ac_declaration      >>confdefs.h
2375
 
  echo '#endif'             >>confdefs.h
2376
 
fi
2377
 
 
2378
 
else
2379
 
  echo "$as_me: failed program was:" >&5
2380
 
sed 's/^/| /' conftest.$ac_ext >&5
2381
 
 
2382
 
fi
2383
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2384
 
ac_ext=c
2385
 
ac_cpp='$CPP $CPPFLAGS'
2386
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389
 
 
2390
 
 
2391
 
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2392
 
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2393
 
if test "${ac_cv_c_bigendian+set}" = set; then
2394
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2395
 
else
2396
 
  # See if sys/param.h defines the BYTE_ORDER macro.
2397
 
cat >conftest.$ac_ext <<_ACEOF
2398
 
/* confdefs.h.  */
2399
 
_ACEOF
2400
 
cat confdefs.h >>conftest.$ac_ext
2401
 
cat >>conftest.$ac_ext <<_ACEOF
2402
 
/* end confdefs.h.  */
2403
 
#include <sys/types.h>
2404
 
#include <sys/param.h>
2405
 
 
2406
 
int
2407
 
main ()
2408
 
{
2409
 
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2410
 
 bogus endian macros
2411
 
#endif
2412
 
 
2413
 
  ;
2414
 
  return 0;
2415
 
}
2416
 
_ACEOF
2417
 
rm -f conftest.$ac_objext
2418
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2419
 
  (eval $ac_compile) 2>conftest.er1
2420
 
  ac_status=$?
2421
 
  grep -v '^ *+' conftest.er1 >conftest.err
2422
 
  rm -f conftest.er1
2423
 
  cat conftest.err >&5
2424
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425
 
  (exit $ac_status); } &&
2426
 
         { ac_try='test -z "$ac_c_werror_flag"
2427
 
                         || test ! -s conftest.err'
2428
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429
 
  (eval $ac_try) 2>&5
2430
 
  ac_status=$?
2431
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432
 
  (exit $ac_status); }; } &&
2433
 
         { ac_try='test -s conftest.$ac_objext'
2434
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435
 
  (eval $ac_try) 2>&5
2436
 
  ac_status=$?
2437
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438
 
  (exit $ac_status); }; }; then
2439
 
  # It does; now see whether it defined to BIG_ENDIAN or not.
2440
 
cat >conftest.$ac_ext <<_ACEOF
2441
 
/* confdefs.h.  */
2442
 
_ACEOF
2443
 
cat confdefs.h >>conftest.$ac_ext
2444
 
cat >>conftest.$ac_ext <<_ACEOF
2445
 
/* end confdefs.h.  */
2446
 
#include <sys/types.h>
2447
 
#include <sys/param.h>
2448
 
 
2449
 
int
2450
 
main ()
2451
 
{
2452
 
#if BYTE_ORDER != BIG_ENDIAN
2453
 
 not big endian
2454
 
#endif
2455
 
 
2456
 
  ;
2457
 
  return 0;
2458
 
}
2459
 
_ACEOF
2460
 
rm -f conftest.$ac_objext
2461
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2462
 
  (eval $ac_compile) 2>conftest.er1
2463
 
  ac_status=$?
2464
 
  grep -v '^ *+' conftest.er1 >conftest.err
2465
 
  rm -f conftest.er1
2466
 
  cat conftest.err >&5
2467
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468
 
  (exit $ac_status); } &&
2469
 
         { ac_try='test -z "$ac_c_werror_flag"
2470
 
                         || test ! -s conftest.err'
2471
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472
 
  (eval $ac_try) 2>&5
2473
 
  ac_status=$?
2474
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475
 
  (exit $ac_status); }; } &&
2476
 
         { ac_try='test -s conftest.$ac_objext'
2477
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478
 
  (eval $ac_try) 2>&5
2479
 
  ac_status=$?
2480
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481
 
  (exit $ac_status); }; }; then
2482
 
  ac_cv_c_bigendian=yes
2483
 
else
2484
 
  echo "$as_me: failed program was:" >&5
2485
 
sed 's/^/| /' conftest.$ac_ext >&5
2486
 
 
2487
 
ac_cv_c_bigendian=no
2488
 
fi
2489
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2490
 
else
2491
 
  echo "$as_me: failed program was:" >&5
2492
 
sed 's/^/| /' conftest.$ac_ext >&5
2493
 
 
2494
 
# It does not; compile a test program.
2495
 
if test "$cross_compiling" = yes; then
2496
 
  # try to guess the endianness by grepping values into an object file
2497
 
  ac_cv_c_bigendian=unknown
2498
 
  cat >conftest.$ac_ext <<_ACEOF
2499
 
/* confdefs.h.  */
2500
 
_ACEOF
2501
 
cat confdefs.h >>conftest.$ac_ext
2502
 
cat >>conftest.$ac_ext <<_ACEOF
2503
 
/* end confdefs.h.  */
2504
 
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2505
 
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2506
 
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2507
 
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2508
 
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2509
 
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2510
 
int
2511
 
main ()
2512
 
{
2513
 
 _ascii (); _ebcdic ();
2514
 
  ;
2515
 
  return 0;
2516
 
}
2517
 
_ACEOF
2518
 
rm -f conftest.$ac_objext
2519
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520
 
  (eval $ac_compile) 2>conftest.er1
2521
 
  ac_status=$?
2522
 
  grep -v '^ *+' conftest.er1 >conftest.err
2523
 
  rm -f conftest.er1
2524
 
  cat conftest.err >&5
2525
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526
 
  (exit $ac_status); } &&
2527
 
         { ac_try='test -z "$ac_c_werror_flag"
2528
 
                         || test ! -s conftest.err'
2529
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530
 
  (eval $ac_try) 2>&5
2531
 
  ac_status=$?
2532
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533
 
  (exit $ac_status); }; } &&
2534
 
         { ac_try='test -s conftest.$ac_objext'
2535
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536
 
  (eval $ac_try) 2>&5
2537
 
  ac_status=$?
2538
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539
 
  (exit $ac_status); }; }; then
2540
 
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2541
 
  ac_cv_c_bigendian=yes
2542
 
fi
2543
 
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2544
 
  if test "$ac_cv_c_bigendian" = unknown; then
2545
 
    ac_cv_c_bigendian=no
2546
 
  else
2547
 
    # finding both strings is unlikely to happen, but who knows?
2548
 
    ac_cv_c_bigendian=unknown
2549
 
  fi
2550
 
fi
2551
 
else
2552
 
  echo "$as_me: failed program was:" >&5
2553
 
sed 's/^/| /' conftest.$ac_ext >&5
2554
 
 
2555
 
fi
2556
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2557
 
else
2558
 
  cat >conftest.$ac_ext <<_ACEOF
2559
 
/* confdefs.h.  */
2560
 
_ACEOF
2561
 
cat confdefs.h >>conftest.$ac_ext
2562
 
cat >>conftest.$ac_ext <<_ACEOF
2563
 
/* end confdefs.h.  */
2564
 
int
2565
 
main ()
2566
 
{
2567
 
  /* Are we little or big endian?  From Harbison&Steele.  */
2568
 
  union
2569
 
  {
2570
 
    long l;
2571
 
    char c[sizeof (long)];
2572
 
  } u;
2573
 
  u.l = 1;
2574
 
  exit (u.c[sizeof (long) - 1] == 1);
2575
 
}
2576
 
_ACEOF
2577
 
rm -f conftest$ac_exeext
2578
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2579
 
  (eval $ac_link) 2>&5
2580
 
  ac_status=$?
2581
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2583
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584
 
  (eval $ac_try) 2>&5
2585
 
  ac_status=$?
2586
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587
 
  (exit $ac_status); }; }; then
2588
 
  ac_cv_c_bigendian=no
2589
 
else
2590
 
  echo "$as_me: program exited with status $ac_status" >&5
2591
 
echo "$as_me: failed program was:" >&5
2592
 
sed 's/^/| /' conftest.$ac_ext >&5
2593
 
 
2594
 
( exit $ac_status )
2595
 
ac_cv_c_bigendian=yes
2596
 
fi
2597
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2598
 
fi
2599
 
fi
2600
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2601
 
fi
2602
 
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2603
 
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2604
 
case $ac_cv_c_bigendian in
2605
 
  yes)
2606
 
 
2607
 
cat >>confdefs.h <<\_ACEOF
2608
 
#define WORDS_BIGENDIAN 1
2609
 
_ACEOF
2610
 
 ;;
2611
 
  no)
2612
 
     ;;
2613
 
  *)
2614
 
    { { echo "$as_me:$LINENO: error: unknown endianness
2615
 
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2616
 
echo "$as_me: error: unknown endianness
2617
 
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2618
 
   { (exit 1); exit 1; }; } ;;
2619
 
esac
2620
 
 
2621
 
 
2622
 
am__api_version="1.6"
2623
 
 
2624
 
 
2625
 
          test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
2626
 
  test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
2627
 
  test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
2628
 
  # Find a good install program.  We prefer a C program (faster),
2629
 
# so one script is as good as another.  But avoid the broken or
2630
 
# incompatible versions:
2631
 
# SysV /etc/install, /usr/sbin/install
2632
 
# SunOS /usr/etc/install
2633
 
# IRIX /sbin/install
2634
 
# AIX /bin/install
2635
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
2636
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2637
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2638
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2639
 
# OS/2's system install, which has a completely different semantic
2640
 
# ./install, which can be erroneously created by make from ./install.sh.
2641
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2642
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2643
 
if test -z "$INSTALL"; then
2644
 
if test "${ac_cv_path_install+set}" = set; then
2645
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2646
 
else
2647
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648
 
for as_dir in $PATH
2649
 
do
2650
 
  IFS=$as_save_IFS
2651
 
  test -z "$as_dir" && as_dir=.
2652
 
  # Account for people who put trailing slashes in PATH elements.
2653
 
case $as_dir/ in
2654
 
  ./ | .// | /cC/* | \
2655
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2656
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2657
 
  /usr/ucb/* ) ;;
2658
 
  *)
2659
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
2660
 
    # Don't use installbsd from OSF since it installs stuff as root
2661
 
    # by default.
2662
 
    for ac_prog in ginstall scoinst install; do
2663
 
      for ac_exec_ext in '' $ac_executable_extensions; do
2664
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2665
 
          if test $ac_prog = install &&
2666
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2667
 
            # AIX install.  It has an incompatible calling convention.
2668
 
            :
2669
 
          elif test $ac_prog = install &&
2670
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2671
 
            # program-specific install script used by HP pwplus--don't use.
2672
 
            :
2673
 
          else
2674
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2675
 
            break 3
2676
 
          fi
2677
 
        fi
2678
 
      done
2679
 
    done
2680
 
    ;;
2681
 
esac
2682
 
done
2683
 
 
2684
 
 
2685
 
fi
2686
 
  if test "${ac_cv_path_install+set}" = set; then
2687
 
    INSTALL=$ac_cv_path_install
2688
 
  else
2689
 
    # As a last resort, use the slow shell script.  We don't cache a
2690
 
    # path for INSTALL within a source directory, because that will
2691
 
    # break other packages using the cache if that directory is
2692
 
    # removed, or if the path is relative.
2693
 
    INSTALL=$ac_install_sh
2694
 
  fi
2695
 
fi
2696
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
2697
 
echo "${ECHO_T}$INSTALL" >&6
2698
 
 
2699
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2700
 
# It thinks the first close brace ends the variable substitution.
2701
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2702
 
 
2703
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2704
 
 
2705
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2706
 
 
2707
 
 
2708
 
  if test -z "$kde_save_INSTALL_given" ; then
2709
 
    # OK, user hasn't given any INSTALL, autoconf found one for us
2710
 
    # now we test, if it supports the -p flag
2711
 
    echo "$as_me:$LINENO: checking for -p flag to install" >&5
2712
 
echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6
2713
 
    rm -f confinst.$$.* > /dev/null 2>&1
2714
 
    echo "Testtest" > confinst.$$.orig
2715
 
    ac_res=no
2716
 
    if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
2717
 
      if test -f confinst.$$.new ; then
2718
 
        # OK, -p seems to do no harm to install
2719
 
        INSTALL="${INSTALL} -p"
2720
 
        ac_res=yes
2721
 
      fi
2722
 
    fi
2723
 
    rm -f confinst.$$.*
2724
 
    echo "$as_me:$LINENO: result: $ac_res" >&5
2725
 
echo "${ECHO_T}$ac_res" >&6
2726
 
  fi
2727
 
 
2728
 
  if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
2729
 
    INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
2730
 
  fi
2731
 
  if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
2732
 
    INSTALL_SCRIPT='${INSTALL}'
2733
 
  fi
2734
 
 
2735
 
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2736
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2737
 
# Just in case
2738
 
sleep 1
2739
 
echo timestamp > conftest.file
2740
 
# Do `set' in a subshell so we don't clobber the current shell's
2741
 
# arguments.  Must try -L first in case configure is actually a
2742
 
# symlink; some systems play weird games with the mod time of symlinks
2743
 
# (eg FreeBSD returns the mod time of the symlink's containing
2744
 
# directory).
2745
 
if (
2746
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2747
 
   if test "$*" = "X"; then
2748
 
      # -L didn't work.
2749
 
      set X `ls -t $srcdir/configure conftest.file`
2750
 
   fi
2751
 
   rm -f conftest.file
2752
 
   if test "$*" != "X $srcdir/configure conftest.file" \
2753
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
2754
 
 
2755
 
      # If neither matched, then we have a broken ls.  This can happen
2756
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2757
 
      # broken ls alias from the environment.  This has actually
2758
 
      # happened.  Such a system could not be considered "sane".
2759
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2760
 
alias in your environment" >&5
2761
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2762
 
alias in your environment" >&2;}
2763
 
   { (exit 1); exit 1; }; }
2764
 
   fi
2765
 
 
2766
 
   test "$2" = conftest.file
2767
 
   )
2768
 
then
2769
 
   # Ok.
2770
 
   :
2771
 
else
2772
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2773
 
Check your system clock" >&5
2774
 
echo "$as_me: error: newly created file is older than distributed files!
2775
 
Check your system clock" >&2;}
2776
 
   { (exit 1); exit 1; }; }
2777
 
fi
2778
 
echo "$as_me:$LINENO: result: yes" >&5
2779
 
echo "${ECHO_T}yes" >&6
2780
 
test "$program_prefix" != NONE &&
2781
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2782
 
# Use a double $ so make ignores it.
2783
 
test "$program_suffix" != NONE &&
2784
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2785
 
# Double any \ or $.  echo might interpret backslashes.
2786
 
# By default was `s,x,x', remove it if useless.
2787
 
cat <<\_ACEOF >conftest.sed
2788
 
s/[\\$]/&&/g;s/;s,x,x,$//
2789
 
_ACEOF
2790
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2791
 
rm conftest.sed
2792
 
 
2793
 
 
2794
 
# expand $ac_aux_dir to an absolute path
2795
 
am_aux_dir=`cd $ac_aux_dir && pwd`
2796
 
 
2797
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2798
 
# Use eval to expand $SHELL
2799
 
if eval "$MISSING --run true"; then
2800
 
  am_missing_run="$MISSING --run "
2801
 
else
2802
 
  am_missing_run=
2803
 
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2804
 
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2805
 
fi
2806
 
 
2807
 
for ac_prog in gawk mawk nawk awk
2808
 
do
2809
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2810
 
set dummy $ac_prog; ac_word=$2
2811
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2812
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813
 
if test "${ac_cv_prog_AWK+set}" = set; then
2814
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2815
 
else
2816
 
  if test -n "$AWK"; then
2817
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2818
 
else
2819
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820
 
for as_dir in $PATH
2821
 
do
2822
 
  IFS=$as_save_IFS
2823
 
  test -z "$as_dir" && as_dir=.
2824
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2825
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826
 
    ac_cv_prog_AWK="$ac_prog"
2827
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828
 
    break 2
2829
 
  fi
2830
 
done
2831
 
done
2832
 
 
2833
 
fi
2834
 
fi
2835
 
AWK=$ac_cv_prog_AWK
2836
 
if test -n "$AWK"; then
2837
 
  echo "$as_me:$LINENO: result: $AWK" >&5
2838
 
echo "${ECHO_T}$AWK" >&6
2839
 
else
2840
 
  echo "$as_me:$LINENO: result: no" >&5
2841
 
echo "${ECHO_T}no" >&6
2842
 
fi
2843
 
 
2844
 
  test -n "$AWK" && break
2845
 
done
2846
 
 
2847
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2848
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2849
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2850
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2851
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2852
 
else
2853
 
  cat >conftest.make <<\_ACEOF
2854
 
all:
2855
 
        @echo 'ac_maketemp="$(MAKE)"'
2856
 
_ACEOF
2857
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2858
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2859
 
if test -n "$ac_maketemp"; then
2860
 
  eval ac_cv_prog_make_${ac_make}_set=yes
2861
 
else
2862
 
  eval ac_cv_prog_make_${ac_make}_set=no
2863
 
fi
2864
 
rm -f conftest.make
2865
 
fi
2866
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2867
 
  echo "$as_me:$LINENO: result: yes" >&5
2868
 
echo "${ECHO_T}yes" >&6
2869
 
  SET_MAKE=
2870
 
else
2871
 
  echo "$as_me:$LINENO: result: no" >&5
2872
 
echo "${ECHO_T}no" >&6
2873
 
  SET_MAKE="MAKE=${MAKE-make}"
2874
 
fi
2875
 
 
2876
 
rm -f .deps 2>/dev/null
2877
 
mkdir .deps 2>/dev/null
2878
 
if test -d .deps; then
2879
 
  DEPDIR=.deps
2880
 
else
2881
 
  # MS-DOS does not allow filenames that begin with a dot.
2882
 
  DEPDIR=_deps
2883
 
fi
2884
 
rmdir .deps 2>/dev/null
2885
 
 
2886
 
 
2887
 
          ac_config_commands="$ac_config_commands depfiles"
2888
 
 
2889
 
 
2890
 
am_make=${MAKE-make}
2891
 
cat > confinc << 'END'
2892
 
doit:
2893
 
        @echo done
2894
 
END
2895
 
# If we don't find an include directive, just comment out the code.
2896
 
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2897
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2898
 
am__include="#"
2899
 
am__quote=
2900
 
_am_result=none
2901
 
# First try GNU make style include.
2902
 
echo "include confinc" > confmf
2903
 
# We grep out `Entering directory' and `Leaving directory'
2904
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2905
 
# In particular we don't look at `^make:' because GNU make might
2906
 
# be invoked under some other name (usually "gmake"), in which
2907
 
# case it prints its new name instead of `make'.
2908
 
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2909
 
   am__include=include
2910
 
   am__quote=
2911
 
   _am_result=GNU
2912
 
fi
2913
 
# Now try BSD make style include.
2914
 
if test "$am__include" = "#"; then
2915
 
   echo '.include "confinc"' > confmf
2916
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2917
 
      am__include=.include
2918
 
      am__quote="\""
2919
 
      _am_result=BSD
2920
 
   fi
2921
 
fi
2922
 
 
2923
 
 
2924
 
echo "$as_me:$LINENO: result: $_am_result" >&5
2925
 
echo "${ECHO_T}$_am_result" >&6
2926
 
rm -f confinc confmf
2927
 
 
2928
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2929
 
if test "${enable_dependency_tracking+set}" = set; then
2930
 
  enableval="$enable_dependency_tracking"
2931
 
 
2932
 
fi;
2933
 
if test "x$enable_dependency_tracking" != xno; then
2934
 
  am_depcomp="$ac_aux_dir/depcomp"
2935
 
  AMDEPBACKSLASH='\'
2936
 
fi
2937
 
 
2938
 
 
2939
 
if test "x$enable_dependency_tracking" != xno; then
2940
 
  AMDEP_TRUE=
2941
 
  AMDEP_FALSE='#'
2942
 
else
2943
 
  AMDEP_TRUE='#'
2944
 
  AMDEP_FALSE=
2945
 
fi
2946
 
 
2947
 
 
2948
 
 
2949
 
 # test to see if srcdir already configured
2950
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2951
 
   test -f $srcdir/config.status; then
2952
 
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2953
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2954
 
   { (exit 1); exit 1; }; }
2955
 
fi
2956
 
 
2957
 
# Define the identity of the package.
2958
 
 PACKAGE=qgo
2959
 
 VERSION=0.2.2
2960
 
 
2961
 
 
2962
 
cat >>confdefs.h <<_ACEOF
2963
 
#define PACKAGE "$PACKAGE"
2964
 
_ACEOF
2965
 
 
2966
 
 
2967
 
cat >>confdefs.h <<_ACEOF
2968
 
#define VERSION "$VERSION"
2969
 
_ACEOF
2970
 
 
2971
 
# Some tools Automake needs.
2972
 
 
2973
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2974
 
 
2975
 
 
2976
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2977
 
 
2978
 
 
2979
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2980
 
 
2981
 
 
2982
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2983
 
 
2984
 
 
2985
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2986
 
 
2987
 
 
2988
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
2989
 
 
2990
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2991
 
 
2992
 
# Installed binaries are usually stripped using `strip' when the user
2993
 
# run `make install-strip'.  However `strip' might not be the right
2994
 
# tool to use in cross-compilation environments, therefore Automake
2995
 
# will honor the `STRIP' environment variable to overrule this program.
2996
 
if test "$cross_compiling" != no; then
2997
 
  if test -n "$ac_tool_prefix"; then
2998
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2999
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
3000
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3001
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3002
 
if test "${ac_cv_prog_STRIP+set}" = set; then
3003
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3004
 
else
3005
 
  if test -n "$STRIP"; then
3006
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3007
 
else
3008
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009
 
for as_dir in $PATH
3010
 
do
3011
 
  IFS=$as_save_IFS
3012
 
  test -z "$as_dir" && as_dir=.
3013
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3014
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3015
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3016
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3017
 
    break 2
3018
 
  fi
3019
 
done
3020
 
done
3021
 
 
3022
 
fi
3023
 
fi
3024
 
STRIP=$ac_cv_prog_STRIP
3025
 
if test -n "$STRIP"; then
3026
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
3027
 
echo "${ECHO_T}$STRIP" >&6
3028
 
else
3029
 
  echo "$as_me:$LINENO: result: no" >&5
3030
 
echo "${ECHO_T}no" >&6
3031
 
fi
3032
 
 
3033
 
fi
3034
 
if test -z "$ac_cv_prog_STRIP"; then
3035
 
  ac_ct_STRIP=$STRIP
3036
 
  # Extract the first word of "strip", so it can be a program name with args.
3037
 
set dummy strip; ac_word=$2
3038
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3039
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3040
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3041
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3042
 
else
3043
 
  if test -n "$ac_ct_STRIP"; then
3044
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3045
 
else
3046
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047
 
for as_dir in $PATH
3048
 
do
3049
 
  IFS=$as_save_IFS
3050
 
  test -z "$as_dir" && as_dir=.
3051
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3052
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053
 
    ac_cv_prog_ac_ct_STRIP="strip"
3054
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3055
 
    break 2
3056
 
  fi
3057
 
done
3058
 
done
3059
 
 
3060
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3061
 
fi
3062
 
fi
3063
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3064
 
if test -n "$ac_ct_STRIP"; then
3065
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3066
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
3067
 
else
3068
 
  echo "$as_me:$LINENO: result: no" >&5
3069
 
echo "${ECHO_T}no" >&6
3070
 
fi
3071
 
 
3072
 
  STRIP=$ac_ct_STRIP
3073
 
else
3074
 
  STRIP="$ac_cv_prog_STRIP"
3075
 
fi
3076
 
 
3077
 
fi
3078
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3079
 
 
3080
 
# We need awk for the "check" target.  The system "awk" is bad on
3081
 
# some platforms.
3082
 
 
3083
 
 
3084
 
depcc="$CC"   am_compiler_list=
3085
 
 
3086
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3087
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3088
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3089
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3090
 
else
3091
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3092
 
  # We make a subdir and do the tests there.  Otherwise we can end up
3093
 
  # making bogus files that we don't know about and never remove.  For
3094
 
  # instance it was reported that on HP-UX the gcc test will end up
3095
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3096
 
  # in D'.
3097
 
  mkdir conftest.dir
3098
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
3099
 
  # using a relative directory.
3100
 
  cp "$am_depcomp" conftest.dir
3101
 
  cd conftest.dir
3102
 
 
3103
 
  am_cv_CC_dependencies_compiler_type=none
3104
 
  if test "$am_compiler_list" = ""; then
3105
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3106
 
  fi
3107
 
  for depmode in $am_compiler_list; do
3108
 
    # We need to recreate these files for each test, as the compiler may
3109
 
    # overwrite some of them when testing with obscure command lines.
3110
 
    # This happens at least with the AIX C compiler.
3111
 
    echo '#include "conftest.h"' > conftest.c
3112
 
    echo 'int i;' > conftest.h
3113
 
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3114
 
 
3115
 
    case $depmode in
3116
 
    nosideeffect)
3117
 
      # after this tag, mechanisms are not by side-effect, so they'll
3118
 
      # only be used when explicitly requested
3119
 
      if test "x$enable_dependency_tracking" = xyes; then
3120
 
        continue
3121
 
      else
3122
 
        break
3123
 
      fi
3124
 
      ;;
3125
 
    none) break ;;
3126
 
    esac
3127
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3128
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3129
 
    # handle `-M -o', and we need to detect this.
3130
 
    if depmode=$depmode \
3131
 
       source=conftest.c object=conftest.o \
3132
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
3133
 
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3134
 
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
3135
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3136
 
      am_cv_CC_dependencies_compiler_type=$depmode
3137
 
      break
3138
 
    fi
3139
 
  done
3140
 
 
3141
 
  cd ..
3142
 
  rm -rf conftest.dir
3143
 
else
3144
 
  am_cv_CC_dependencies_compiler_type=none
3145
 
fi
3146
 
 
3147
 
fi
3148
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3149
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3150
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3151
 
 
3152
 
 
3153
 
 
3154
 
 
3155
 
 
3156
 
 
3157
 
if test "x$prefix" = "xNONE"; then
3158
 
  prefix=$ac_default_prefix
3159
 
  ac_configure_args="$ac_configure_args --prefix $prefix"
3160
 
fi
3161
 
 
3162
 
# Add the stamp file to the list of files AC keeps track of,
3163
 
# along with our hook.
3164
 
          ac_config_headers="$ac_config_headers config.h"
3165
 
 
3166
 
 
3167
 
 
3168
 
 
3169
 
 
3170
 
  # Check whether --enable-debug or --disable-debug was given.
3171
 
if test "${enable_debug+set}" = set; then
3172
 
  enableval="$enable_debug"
3173
 
 
3174
 
    case $enableval in
3175
 
      yes)
3176
 
        kde_use_debug_code="yes"
3177
 
        kde_use_debug_define=no
3178
 
        ;;
3179
 
      full)
3180
 
        kde_use_debug_code="full"
3181
 
        kde_use_debug_define=no
3182
 
        ;;
3183
 
      *)
3184
 
        kde_use_debug_code="no"
3185
 
        kde_use_debug_define=yes
3186
 
        ;;
3187
 
    esac
3188
 
 
3189
 
else
3190
 
  kde_use_debug_code="no"
3191
 
      kde_use_debug_define=no
3192
 
 
3193
 
fi;
3194
 
 
3195
 
    # Check whether --enable-dummyoption or --disable-dummyoption was given.
3196
 
if test "${enable_dummyoption+set}" = set; then
3197
 
  enableval="$enable_dummyoption"
3198
 
 
3199
 
fi;
3200
 
 
3201
 
  # Check whether --enable-strict or --disable-strict was given.
3202
 
if test "${enable_strict+set}" = set; then
3203
 
  enableval="$enable_strict"
3204
 
 
3205
 
    if test $enableval = "no"; then
3206
 
         kde_use_strict_options="no"
3207
 
       else
3208
 
         kde_use_strict_options="yes"
3209
 
    fi
3210
 
 
3211
 
else
3212
 
  kde_use_strict_options="no"
3213
 
fi;
3214
 
 
3215
 
  # Check whether --enable-warnings or --disable-warnings was given.
3216
 
if test "${enable_warnings+set}" = set; then
3217
 
  enableval="$enable_warnings"
3218
 
 
3219
 
    if test $enableval = "no"; then
3220
 
         kde_use_warnings="no"
3221
 
       else
3222
 
         kde_use_warnings="yes"
3223
 
    fi
3224
 
 
3225
 
else
3226
 
  kde_use_warnings="no"
3227
 
fi;
3228
 
 
3229
 
    if test "$kde_use_debug_code" != "no"; then
3230
 
    kde_use_warnings=yes
3231
 
  fi
3232
 
 
3233
 
  # Check whether --enable-profile or --disable-profile was given.
3234
 
if test "${enable_profile+set}" = set; then
3235
 
  enableval="$enable_profile"
3236
 
  kde_use_profiling=$enableval
3237
 
else
3238
 
  kde_use_profiling="no"
3239
 
 
3240
 
fi;
3241
 
 
3242
 
    CFLAGS=" $CFLAGS"
3243
 
 
3244
 
  ac_ext=c
3245
 
ac_cpp='$CPP $CPPFLAGS'
3246
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249
 
if test -n "$ac_tool_prefix"; then
3250
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3251
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3252
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3253
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3254
 
if test "${ac_cv_prog_CC+set}" = set; then
3255
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3256
 
else
3257
 
  if test -n "$CC"; then
3258
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3259
 
else
3260
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261
 
for as_dir in $PATH
3262
 
do
3263
 
  IFS=$as_save_IFS
3264
 
  test -z "$as_dir" && as_dir=.
3265
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3266
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3268
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269
 
    break 2
3270
 
  fi
3271
 
done
3272
 
done
3273
 
 
3274
 
fi
3275
 
fi
3276
 
CC=$ac_cv_prog_CC
3277
 
if test -n "$CC"; then
3278
 
  echo "$as_me:$LINENO: result: $CC" >&5
3279
 
echo "${ECHO_T}$CC" >&6
3280
 
else
3281
 
  echo "$as_me:$LINENO: result: no" >&5
3282
 
echo "${ECHO_T}no" >&6
3283
 
fi
3284
 
 
3285
 
fi
3286
 
if test -z "$ac_cv_prog_CC"; then
3287
 
  ac_ct_CC=$CC
3288
 
  # Extract the first word of "gcc", so it can be a program name with args.
3289
 
set dummy gcc; ac_word=$2
3290
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3291
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3292
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3293
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3294
 
else
3295
 
  if test -n "$ac_ct_CC"; then
3296
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3297
 
else
3298
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299
 
for as_dir in $PATH
3300
 
do
3301
 
  IFS=$as_save_IFS
3302
 
  test -z "$as_dir" && as_dir=.
3303
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3304
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305
 
    ac_cv_prog_ac_ct_CC="gcc"
3306
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307
 
    break 2
3308
 
  fi
3309
 
done
3310
 
done
3311
 
 
3312
 
fi
3313
 
fi
3314
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3315
 
if test -n "$ac_ct_CC"; then
3316
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3317
 
echo "${ECHO_T}$ac_ct_CC" >&6
3318
 
else
3319
 
  echo "$as_me:$LINENO: result: no" >&5
3320
 
echo "${ECHO_T}no" >&6
3321
 
fi
3322
 
 
3323
 
  CC=$ac_ct_CC
3324
 
else
3325
 
  CC="$ac_cv_prog_CC"
3326
 
fi
3327
 
 
3328
 
if test -z "$CC"; then
3329
 
  if test -n "$ac_tool_prefix"; then
3330
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3331
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
3332
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3333
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334
 
if test "${ac_cv_prog_CC+set}" = set; then
3335
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3336
 
else
3337
 
  if test -n "$CC"; then
3338
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3339
 
else
3340
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341
 
for as_dir in $PATH
3342
 
do
3343
 
  IFS=$as_save_IFS
3344
 
  test -z "$as_dir" && as_dir=.
3345
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3346
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3348
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349
 
    break 2
3350
 
  fi
3351
 
done
3352
 
done
3353
 
 
3354
 
fi
3355
 
fi
3356
 
CC=$ac_cv_prog_CC
3357
 
if test -n "$CC"; then
3358
 
  echo "$as_me:$LINENO: result: $CC" >&5
3359
 
echo "${ECHO_T}$CC" >&6
3360
 
else
3361
 
  echo "$as_me:$LINENO: result: no" >&5
3362
 
echo "${ECHO_T}no" >&6
3363
 
fi
3364
 
 
3365
 
fi
3366
 
if test -z "$ac_cv_prog_CC"; then
3367
 
  ac_ct_CC=$CC
3368
 
  # Extract the first word of "cc", so it can be a program name with args.
3369
 
set dummy cc; ac_word=$2
3370
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3371
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3372
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3373
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3374
 
else
3375
 
  if test -n "$ac_ct_CC"; then
3376
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3377
 
else
3378
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379
 
for as_dir in $PATH
3380
 
do
3381
 
  IFS=$as_save_IFS
3382
 
  test -z "$as_dir" && as_dir=.
3383
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3384
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385
 
    ac_cv_prog_ac_ct_CC="cc"
3386
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387
 
    break 2
3388
 
  fi
3389
 
done
3390
 
done
3391
 
 
3392
 
fi
3393
 
fi
3394
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395
 
if test -n "$ac_ct_CC"; then
3396
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3397
 
echo "${ECHO_T}$ac_ct_CC" >&6
3398
 
else
3399
 
  echo "$as_me:$LINENO: result: no" >&5
3400
 
echo "${ECHO_T}no" >&6
3401
 
fi
3402
 
 
3403
 
  CC=$ac_ct_CC
3404
 
else
3405
 
  CC="$ac_cv_prog_CC"
3406
 
fi
3407
 
 
3408
 
fi
3409
 
if test -z "$CC"; then
3410
 
  # Extract the first word of "cc", so it can be a program name with args.
3411
 
set dummy cc; ac_word=$2
3412
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3413
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3414
 
if test "${ac_cv_prog_CC+set}" = set; then
3415
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3416
 
else
3417
 
  if test -n "$CC"; then
3418
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3419
 
else
3420
 
  ac_prog_rejected=no
3421
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422
 
for as_dir in $PATH
3423
 
do
3424
 
  IFS=$as_save_IFS
3425
 
  test -z "$as_dir" && as_dir=.
3426
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3427
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3429
 
       ac_prog_rejected=yes
3430
 
       continue
3431
 
     fi
3432
 
    ac_cv_prog_CC="cc"
3433
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3434
 
    break 2
3435
 
  fi
3436
 
done
3437
 
done
3438
 
 
3439
 
if test $ac_prog_rejected = yes; then
3440
 
  # We found a bogon in the path, so make sure we never use it.
3441
 
  set dummy $ac_cv_prog_CC
3442
 
  shift
3443
 
  if test $# != 0; then
3444
 
    # We chose a different compiler from the bogus one.
3445
 
    # However, it has the same basename, so the bogon will be chosen
3446
 
    # first if we set CC to just the basename; use the full file name.
3447
 
    shift
3448
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3449
 
  fi
3450
 
fi
3451
 
fi
3452
 
fi
3453
 
CC=$ac_cv_prog_CC
3454
 
if test -n "$CC"; then
3455
 
  echo "$as_me:$LINENO: result: $CC" >&5
3456
 
echo "${ECHO_T}$CC" >&6
3457
 
else
3458
 
  echo "$as_me:$LINENO: result: no" >&5
3459
 
echo "${ECHO_T}no" >&6
3460
 
fi
3461
 
 
3462
 
fi
3463
 
if test -z "$CC"; then
3464
 
  if test -n "$ac_tool_prefix"; then
3465
 
  for ac_prog in cl
3466
 
  do
3467
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3468
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3469
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3470
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3471
 
if test "${ac_cv_prog_CC+set}" = set; then
3472
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3473
 
else
3474
 
  if test -n "$CC"; then
3475
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3476
 
else
3477
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478
 
for as_dir in $PATH
3479
 
do
3480
 
  IFS=$as_save_IFS
3481
 
  test -z "$as_dir" && as_dir=.
3482
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3483
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3485
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3486
 
    break 2
3487
 
  fi
3488
 
done
3489
 
done
3490
 
 
3491
 
fi
3492
 
fi
3493
 
CC=$ac_cv_prog_CC
3494
 
if test -n "$CC"; then
3495
 
  echo "$as_me:$LINENO: result: $CC" >&5
3496
 
echo "${ECHO_T}$CC" >&6
3497
 
else
3498
 
  echo "$as_me:$LINENO: result: no" >&5
3499
 
echo "${ECHO_T}no" >&6
3500
 
fi
3501
 
 
3502
 
    test -n "$CC" && break
3503
 
  done
3504
 
fi
3505
 
if test -z "$CC"; then
3506
 
  ac_ct_CC=$CC
3507
 
  for ac_prog in cl
3508
 
do
3509
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3510
 
set dummy $ac_prog; ac_word=$2
3511
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3512
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3513
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3514
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3515
 
else
3516
 
  if test -n "$ac_ct_CC"; then
3517
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3518
 
else
3519
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520
 
for as_dir in $PATH
3521
 
do
3522
 
  IFS=$as_save_IFS
3523
 
  test -z "$as_dir" && as_dir=.
3524
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3525
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3526
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
3527
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3528
 
    break 2
3529
 
  fi
3530
 
done
3531
 
done
3532
 
 
3533
 
fi
3534
 
fi
3535
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3536
 
if test -n "$ac_ct_CC"; then
3537
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3538
 
echo "${ECHO_T}$ac_ct_CC" >&6
3539
 
else
3540
 
  echo "$as_me:$LINENO: result: no" >&5
3541
 
echo "${ECHO_T}no" >&6
3542
 
fi
3543
 
 
3544
 
  test -n "$ac_ct_CC" && break
3545
 
done
3546
 
 
3547
 
  CC=$ac_ct_CC
3548
 
fi
3549
 
 
3550
 
fi
3551
 
 
3552
 
 
3553
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3554
 
See \`config.log' for more details." >&5
3555
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
3556
 
See \`config.log' for more details." >&2;}
3557
 
   { (exit 1); exit 1; }; }
3558
 
 
3559
 
# Provide some information about the compiler.
3560
 
echo "$as_me:$LINENO:" \
3561
 
     "checking for C compiler version" >&5
3562
 
ac_compiler=`set X $ac_compile; echo $2`
3563
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3564
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
3565
 
  ac_status=$?
3566
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567
 
  (exit $ac_status); }
3568
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3569
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
3570
 
  ac_status=$?
3571
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572
 
  (exit $ac_status); }
3573
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3574
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
3575
 
  ac_status=$?
3576
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577
 
  (exit $ac_status); }
3578
 
 
3579
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3580
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3581
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3582
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3583
 
else
3584
 
  cat >conftest.$ac_ext <<_ACEOF
3585
 
/* confdefs.h.  */
3586
 
_ACEOF
3587
 
cat confdefs.h >>conftest.$ac_ext
3588
 
cat >>conftest.$ac_ext <<_ACEOF
3589
 
/* end confdefs.h.  */
3590
 
 
3591
 
int
3592
 
main ()
3593
 
{
3594
 
#ifndef __GNUC__
3595
 
       choke me
3596
 
#endif
3597
 
 
3598
 
  ;
3599
 
  return 0;
3600
 
}
3601
 
_ACEOF
3602
 
rm -f conftest.$ac_objext
3603
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3604
 
  (eval $ac_compile) 2>conftest.er1
3605
 
  ac_status=$?
3606
 
  grep -v '^ *+' conftest.er1 >conftest.err
3607
 
  rm -f conftest.er1
3608
 
  cat conftest.err >&5
3609
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610
 
  (exit $ac_status); } &&
3611
 
         { ac_try='test -z "$ac_c_werror_flag"
3612
 
                         || test ! -s conftest.err'
3613
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614
 
  (eval $ac_try) 2>&5
3615
 
  ac_status=$?
3616
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617
 
  (exit $ac_status); }; } &&
3618
 
         { ac_try='test -s conftest.$ac_objext'
3619
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620
 
  (eval $ac_try) 2>&5
3621
 
  ac_status=$?
3622
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623
 
  (exit $ac_status); }; }; then
3624
 
  ac_compiler_gnu=yes
3625
 
else
3626
 
  echo "$as_me: failed program was:" >&5
3627
 
sed 's/^/| /' conftest.$ac_ext >&5
3628
 
 
3629
 
ac_compiler_gnu=no
3630
 
fi
3631
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3632
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3633
 
 
3634
 
fi
3635
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3636
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3637
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
3638
 
ac_test_CFLAGS=${CFLAGS+set}
3639
 
ac_save_CFLAGS=$CFLAGS
3640
 
CFLAGS="-g"
3641
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3642
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3643
 
if test "${ac_cv_prog_cc_g+set}" = set; then
3644
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3645
 
else
3646
 
  cat >conftest.$ac_ext <<_ACEOF
3647
 
/* confdefs.h.  */
3648
 
_ACEOF
3649
 
cat confdefs.h >>conftest.$ac_ext
3650
 
cat >>conftest.$ac_ext <<_ACEOF
3651
 
/* end confdefs.h.  */
3652
 
 
3653
 
int
3654
 
main ()
3655
 
{
3656
 
 
3657
 
  ;
3658
 
  return 0;
3659
 
}
3660
 
_ACEOF
3661
 
rm -f conftest.$ac_objext
3662
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3663
 
  (eval $ac_compile) 2>conftest.er1
3664
 
  ac_status=$?
3665
 
  grep -v '^ *+' conftest.er1 >conftest.err
3666
 
  rm -f conftest.er1
3667
 
  cat conftest.err >&5
3668
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669
 
  (exit $ac_status); } &&
3670
 
         { ac_try='test -z "$ac_c_werror_flag"
3671
 
                         || test ! -s conftest.err'
3672
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673
 
  (eval $ac_try) 2>&5
3674
 
  ac_status=$?
3675
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676
 
  (exit $ac_status); }; } &&
3677
 
         { ac_try='test -s conftest.$ac_objext'
3678
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679
 
  (eval $ac_try) 2>&5
3680
 
  ac_status=$?
3681
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682
 
  (exit $ac_status); }; }; then
3683
 
  ac_cv_prog_cc_g=yes
3684
 
else
3685
 
  echo "$as_me: failed program was:" >&5
3686
 
sed 's/^/| /' conftest.$ac_ext >&5
3687
 
 
3688
 
ac_cv_prog_cc_g=no
3689
 
fi
3690
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3691
 
fi
3692
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3693
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3694
 
if test "$ac_test_CFLAGS" = set; then
3695
 
  CFLAGS=$ac_save_CFLAGS
3696
 
elif test $ac_cv_prog_cc_g = yes; then
3697
 
  if test "$GCC" = yes; then
3698
 
    CFLAGS="-g -O2"
3699
 
  else
3700
 
    CFLAGS="-g"
3701
 
  fi
3702
 
else
3703
 
  if test "$GCC" = yes; then
3704
 
    CFLAGS="-O2"
3705
 
  else
3706
 
    CFLAGS=
3707
 
  fi
3708
 
fi
3709
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3710
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3711
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3712
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3713
 
else
3714
 
  ac_cv_prog_cc_stdc=no
3715
 
ac_save_CC=$CC
3716
 
cat >conftest.$ac_ext <<_ACEOF
3717
 
/* confdefs.h.  */
3718
 
_ACEOF
3719
 
cat confdefs.h >>conftest.$ac_ext
3720
 
cat >>conftest.$ac_ext <<_ACEOF
3721
 
/* end confdefs.h.  */
3722
 
#include <stdarg.h>
3723
 
#include <stdio.h>
3724
 
#include <sys/types.h>
3725
 
#include <sys/stat.h>
3726
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3727
 
struct buf { int x; };
3728
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3729
 
static char *e (p, i)
3730
 
     char **p;
3731
 
     int i;
3732
 
{
3733
 
  return p[i];
3734
 
}
3735
 
static char *f (char * (*g) (char **, int), char **p, ...)
3736
 
{
3737
 
  char *s;
3738
 
  va_list v;
3739
 
  va_start (v,p);
3740
 
  s = g (p, va_arg (v,int));
3741
 
  va_end (v);
3742
 
  return s;
3743
 
}
3744
 
 
3745
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3746
 
   function prototypes and stuff, but not '\xHH' hex character constants.
3747
 
   These don't provoke an error unfortunately, instead are silently treated
3748
 
   as 'x'.  The following induces an error, until -std1 is added to get
3749
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3750
 
   array size at least.  It's necessary to write '\x00'==0 to get something
3751
 
   that's true only with -std1.  */
3752
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3753
 
 
3754
 
int test (int i, double x);
3755
 
struct s1 {int (*f) (int a);};
3756
 
struct s2 {int (*f) (double a);};
3757
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3758
 
int argc;
3759
 
char **argv;
3760
 
int
3761
 
main ()
3762
 
{
3763
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3764
 
  ;
3765
 
  return 0;
3766
 
}
3767
 
_ACEOF
3768
 
# Don't try gcc -ansi; that turns off useful extensions and
3769
 
# breaks some systems' header files.
3770
 
# AIX                   -qlanglvl=ansi
3771
 
# Ultrix and OSF/1      -std1
3772
 
# HP-UX 10.20 and later -Ae
3773
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
3774
 
# SVR4                  -Xc -D__EXTENSIONS__
3775
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3776
 
do
3777
 
  CC="$ac_save_CC $ac_arg"
3778
 
  rm -f conftest.$ac_objext
3779
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3780
 
  (eval $ac_compile) 2>conftest.er1
3781
 
  ac_status=$?
3782
 
  grep -v '^ *+' conftest.er1 >conftest.err
3783
 
  rm -f conftest.er1
3784
 
  cat conftest.err >&5
3785
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786
 
  (exit $ac_status); } &&
3787
 
         { ac_try='test -z "$ac_c_werror_flag"
3788
 
                         || test ! -s conftest.err'
3789
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790
 
  (eval $ac_try) 2>&5
3791
 
  ac_status=$?
3792
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793
 
  (exit $ac_status); }; } &&
3794
 
         { ac_try='test -s conftest.$ac_objext'
3795
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796
 
  (eval $ac_try) 2>&5
3797
 
  ac_status=$?
3798
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799
 
  (exit $ac_status); }; }; then
3800
 
  ac_cv_prog_cc_stdc=$ac_arg
3801
 
break
3802
 
else
3803
 
  echo "$as_me: failed program was:" >&5
3804
 
sed 's/^/| /' conftest.$ac_ext >&5
3805
 
 
3806
 
fi
3807
 
rm -f conftest.err conftest.$ac_objext
3808
 
done
3809
 
rm -f conftest.$ac_ext conftest.$ac_objext
3810
 
CC=$ac_save_CC
3811
 
 
3812
 
fi
3813
 
 
3814
 
case "x$ac_cv_prog_cc_stdc" in
3815
 
  x|xno)
3816
 
    echo "$as_me:$LINENO: result: none needed" >&5
3817
 
echo "${ECHO_T}none needed" >&6 ;;
3818
 
  *)
3819
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3820
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3821
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
3822
 
esac
3823
 
 
3824
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
3825
 
# in C++ we need to declare it.  In case someone uses the same compiler
3826
 
# for both compiling C and C++ we need to have the C++ compiler decide
3827
 
# the declaration of exit, since it's the most demanding environment.
3828
 
cat >conftest.$ac_ext <<_ACEOF
3829
 
#ifndef __cplusplus
3830
 
  choke me
3831
 
#endif
3832
 
_ACEOF
3833
 
rm -f conftest.$ac_objext
3834
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3835
 
  (eval $ac_compile) 2>conftest.er1
3836
 
  ac_status=$?
3837
 
  grep -v '^ *+' conftest.er1 >conftest.err
3838
 
  rm -f conftest.er1
3839
 
  cat conftest.err >&5
3840
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841
 
  (exit $ac_status); } &&
3842
 
         { ac_try='test -z "$ac_c_werror_flag"
3843
 
                         || test ! -s conftest.err'
3844
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845
 
  (eval $ac_try) 2>&5
3846
 
  ac_status=$?
3847
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848
 
  (exit $ac_status); }; } &&
3849
 
         { ac_try='test -s conftest.$ac_objext'
3850
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851
 
  (eval $ac_try) 2>&5
3852
 
  ac_status=$?
3853
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854
 
  (exit $ac_status); }; }; then
3855
 
  for ac_declaration in \
3856
 
   '' \
3857
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
3858
 
   'extern "C" void std::exit (int); using std::exit;' \
3859
 
   'extern "C" void exit (int) throw ();' \
3860
 
   'extern "C" void exit (int);' \
3861
 
   'void exit (int);'
3862
 
do
3863
 
  cat >conftest.$ac_ext <<_ACEOF
3864
 
/* confdefs.h.  */
3865
 
_ACEOF
3866
 
cat confdefs.h >>conftest.$ac_ext
3867
 
cat >>conftest.$ac_ext <<_ACEOF
3868
 
/* end confdefs.h.  */
3869
 
$ac_declaration
3870
 
#include <stdlib.h>
3871
 
int
3872
 
main ()
3873
 
{
3874
 
exit (42);
3875
 
  ;
3876
 
  return 0;
3877
 
}
3878
 
_ACEOF
3879
 
rm -f conftest.$ac_objext
3880
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3881
 
  (eval $ac_compile) 2>conftest.er1
3882
 
  ac_status=$?
3883
 
  grep -v '^ *+' conftest.er1 >conftest.err
3884
 
  rm -f conftest.er1
3885
 
  cat conftest.err >&5
3886
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887
 
  (exit $ac_status); } &&
3888
 
         { ac_try='test -z "$ac_c_werror_flag"
3889
 
                         || test ! -s conftest.err'
3890
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891
 
  (eval $ac_try) 2>&5
3892
 
  ac_status=$?
3893
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894
 
  (exit $ac_status); }; } &&
3895
 
         { ac_try='test -s conftest.$ac_objext'
3896
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897
 
  (eval $ac_try) 2>&5
3898
 
  ac_status=$?
3899
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900
 
  (exit $ac_status); }; }; then
3901
 
  :
3902
 
else
3903
 
  echo "$as_me: failed program was:" >&5
3904
 
sed 's/^/| /' conftest.$ac_ext >&5
3905
 
 
3906
 
continue
3907
 
fi
3908
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3909
 
  cat >conftest.$ac_ext <<_ACEOF
3910
 
/* confdefs.h.  */
3911
 
_ACEOF
3912
 
cat confdefs.h >>conftest.$ac_ext
3913
 
cat >>conftest.$ac_ext <<_ACEOF
3914
 
/* end confdefs.h.  */
3915
 
$ac_declaration
3916
 
int
3917
 
main ()
3918
 
{
3919
 
exit (42);
3920
 
  ;
3921
 
  return 0;
3922
 
}
3923
 
_ACEOF
3924
 
rm -f conftest.$ac_objext
3925
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3926
 
  (eval $ac_compile) 2>conftest.er1
3927
 
  ac_status=$?
3928
 
  grep -v '^ *+' conftest.er1 >conftest.err
3929
 
  rm -f conftest.er1
3930
 
  cat conftest.err >&5
3931
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932
 
  (exit $ac_status); } &&
3933
 
         { ac_try='test -z "$ac_c_werror_flag"
3934
 
                         || test ! -s conftest.err'
3935
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936
 
  (eval $ac_try) 2>&5
3937
 
  ac_status=$?
3938
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939
 
  (exit $ac_status); }; } &&
3940
 
         { ac_try='test -s conftest.$ac_objext'
3941
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942
 
  (eval $ac_try) 2>&5
3943
 
  ac_status=$?
3944
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945
 
  (exit $ac_status); }; }; then
3946
 
  break
3947
 
else
3948
 
  echo "$as_me: failed program was:" >&5
3949
 
sed 's/^/| /' conftest.$ac_ext >&5
3950
 
 
3951
 
fi
3952
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3953
 
done
3954
 
rm -f conftest*
3955
 
if test -n "$ac_declaration"; then
3956
 
  echo '#ifdef __cplusplus' >>confdefs.h
3957
 
  echo $ac_declaration      >>confdefs.h
3958
 
  echo '#endif'             >>confdefs.h
3959
 
fi
3960
 
 
3961
 
else
3962
 
  echo "$as_me: failed program was:" >&5
3963
 
sed 's/^/| /' conftest.$ac_ext >&5
3964
 
 
3965
 
fi
3966
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3967
 
ac_ext=c
3968
 
ac_cpp='$CPP $CPPFLAGS'
3969
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3970
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3972
 
 
3973
 
 
3974
 
  ac_ext=c
3975
 
ac_cpp='$CPP $CPPFLAGS'
3976
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3980
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3981
 
# On Suns, sometimes $CPP names a directory.
3982
 
if test -n "$CPP" && test -d "$CPP"; then
3983
 
  CPP=
3984
 
fi
3985
 
if test -z "$CPP"; then
3986
 
  if test "${ac_cv_prog_CPP+set}" = set; then
3987
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3988
 
else
3989
 
      # Double quotes because CPP needs to be expanded
3990
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3991
 
    do
3992
 
      ac_preproc_ok=false
3993
 
for ac_c_preproc_warn_flag in '' yes
3994
 
do
3995
 
  # Use a header file that comes with gcc, so configuring glibc
3996
 
  # with a fresh cross-compiler works.
3997
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3998
 
  # <limits.h> exists even on freestanding compilers.
3999
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4000
 
  # not just through cpp. "Syntax error" is here to catch this case.
4001
 
  cat >conftest.$ac_ext <<_ACEOF
4002
 
/* confdefs.h.  */
4003
 
_ACEOF
4004
 
cat confdefs.h >>conftest.$ac_ext
4005
 
cat >>conftest.$ac_ext <<_ACEOF
4006
 
/* end confdefs.h.  */
4007
 
#ifdef __STDC__
4008
 
# include <limits.h>
4009
 
#else
4010
 
# include <assert.h>
4011
 
#endif
4012
 
                     Syntax error
4013
 
_ACEOF
4014
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4015
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4016
 
  ac_status=$?
4017
 
  grep -v '^ *+' conftest.er1 >conftest.err
4018
 
  rm -f conftest.er1
4019
 
  cat conftest.err >&5
4020
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021
 
  (exit $ac_status); } >/dev/null; then
4022
 
  if test -s conftest.err; then
4023
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4024
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4025
 
  else
4026
 
    ac_cpp_err=
4027
 
  fi
4028
 
else
4029
 
  ac_cpp_err=yes
4030
 
fi
4031
 
if test -z "$ac_cpp_err"; then
4032
 
  :
4033
 
else
4034
 
  echo "$as_me: failed program was:" >&5
4035
 
sed 's/^/| /' conftest.$ac_ext >&5
4036
 
 
4037
 
  # Broken: fails on valid input.
4038
 
continue
4039
 
fi
4040
 
rm -f conftest.err conftest.$ac_ext
4041
 
 
4042
 
  # OK, works on sane cases.  Now check whether non-existent headers
4043
 
  # can be detected and how.
4044
 
  cat >conftest.$ac_ext <<_ACEOF
4045
 
/* confdefs.h.  */
4046
 
_ACEOF
4047
 
cat confdefs.h >>conftest.$ac_ext
4048
 
cat >>conftest.$ac_ext <<_ACEOF
4049
 
/* end confdefs.h.  */
4050
 
#include <ac_nonexistent.h>
4051
 
_ACEOF
4052
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4053
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4054
 
  ac_status=$?
4055
 
  grep -v '^ *+' conftest.er1 >conftest.err
4056
 
  rm -f conftest.er1
4057
 
  cat conftest.err >&5
4058
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059
 
  (exit $ac_status); } >/dev/null; then
4060
 
  if test -s conftest.err; then
4061
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4062
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4063
 
  else
4064
 
    ac_cpp_err=
4065
 
  fi
4066
 
else
4067
 
  ac_cpp_err=yes
4068
 
fi
4069
 
if test -z "$ac_cpp_err"; then
4070
 
  # Broken: success on invalid input.
4071
 
continue
4072
 
else
4073
 
  echo "$as_me: failed program was:" >&5
4074
 
sed 's/^/| /' conftest.$ac_ext >&5
4075
 
 
4076
 
  # Passes both tests.
4077
 
ac_preproc_ok=:
4078
 
break
4079
 
fi
4080
 
rm -f conftest.err conftest.$ac_ext
4081
 
 
4082
 
done
4083
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4084
 
rm -f conftest.err conftest.$ac_ext
4085
 
if $ac_preproc_ok; then
4086
 
  break
4087
 
fi
4088
 
 
4089
 
    done
4090
 
    ac_cv_prog_CPP=$CPP
4091
 
 
4092
 
fi
4093
 
  CPP=$ac_cv_prog_CPP
4094
 
else
4095
 
  ac_cv_prog_CPP=$CPP
4096
 
fi
4097
 
echo "$as_me:$LINENO: result: $CPP" >&5
4098
 
echo "${ECHO_T}$CPP" >&6
4099
 
ac_preproc_ok=false
4100
 
for ac_c_preproc_warn_flag in '' yes
4101
 
do
4102
 
  # Use a header file that comes with gcc, so configuring glibc
4103
 
  # with a fresh cross-compiler works.
4104
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4105
 
  # <limits.h> exists even on freestanding compilers.
4106
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4107
 
  # not just through cpp. "Syntax error" is here to catch this case.
4108
 
  cat >conftest.$ac_ext <<_ACEOF
4109
 
/* confdefs.h.  */
4110
 
_ACEOF
4111
 
cat confdefs.h >>conftest.$ac_ext
4112
 
cat >>conftest.$ac_ext <<_ACEOF
4113
 
/* end confdefs.h.  */
4114
 
#ifdef __STDC__
4115
 
# include <limits.h>
4116
 
#else
4117
 
# include <assert.h>
4118
 
#endif
4119
 
                     Syntax error
4120
 
_ACEOF
4121
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4123
 
  ac_status=$?
4124
 
  grep -v '^ *+' conftest.er1 >conftest.err
4125
 
  rm -f conftest.er1
4126
 
  cat conftest.err >&5
4127
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128
 
  (exit $ac_status); } >/dev/null; then
4129
 
  if test -s conftest.err; then
4130
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4131
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4132
 
  else
4133
 
    ac_cpp_err=
4134
 
  fi
4135
 
else
4136
 
  ac_cpp_err=yes
4137
 
fi
4138
 
if test -z "$ac_cpp_err"; then
4139
 
  :
4140
 
else
4141
 
  echo "$as_me: failed program was:" >&5
4142
 
sed 's/^/| /' conftest.$ac_ext >&5
4143
 
 
4144
 
  # Broken: fails on valid input.
4145
 
continue
4146
 
fi
4147
 
rm -f conftest.err conftest.$ac_ext
4148
 
 
4149
 
  # OK, works on sane cases.  Now check whether non-existent headers
4150
 
  # can be detected and how.
4151
 
  cat >conftest.$ac_ext <<_ACEOF
4152
 
/* confdefs.h.  */
4153
 
_ACEOF
4154
 
cat confdefs.h >>conftest.$ac_ext
4155
 
cat >>conftest.$ac_ext <<_ACEOF
4156
 
/* end confdefs.h.  */
4157
 
#include <ac_nonexistent.h>
4158
 
_ACEOF
4159
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4160
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4161
 
  ac_status=$?
4162
 
  grep -v '^ *+' conftest.er1 >conftest.err
4163
 
  rm -f conftest.er1
4164
 
  cat conftest.err >&5
4165
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166
 
  (exit $ac_status); } >/dev/null; then
4167
 
  if test -s conftest.err; then
4168
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4169
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4170
 
  else
4171
 
    ac_cpp_err=
4172
 
  fi
4173
 
else
4174
 
  ac_cpp_err=yes
4175
 
fi
4176
 
if test -z "$ac_cpp_err"; then
4177
 
  # Broken: success on invalid input.
4178
 
continue
4179
 
else
4180
 
  echo "$as_me: failed program was:" >&5
4181
 
sed 's/^/| /' conftest.$ac_ext >&5
4182
 
 
4183
 
  # Passes both tests.
4184
 
ac_preproc_ok=:
4185
 
break
4186
 
fi
4187
 
rm -f conftest.err conftest.$ac_ext
4188
 
 
4189
 
done
4190
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4191
 
rm -f conftest.err conftest.$ac_ext
4192
 
if $ac_preproc_ok; then
4193
 
  :
4194
 
else
4195
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4196
 
See \`config.log' for more details." >&5
4197
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4198
 
See \`config.log' for more details." >&2;}
4199
 
   { (exit 1); exit 1; }; }
4200
 
fi
4201
 
 
4202
 
ac_ext=c
4203
 
ac_cpp='$CPP $CPPFLAGS'
4204
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207
 
 
4208
 
 
4209
 
  if test "$GCC" = "yes"; then
4210
 
    if test "$kde_use_debug_code" != "no"; then
4211
 
      if test $kde_use_debug_code = "full"; then
4212
 
        CFLAGS="-g3 $CFLAGS"
4213
 
      else
4214
 
        CFLAGS="-g -O2 $CFLAGS"
4215
 
      fi
4216
 
    else
4217
 
      CFLAGS="-O2 $CFLAGS"
4218
 
    fi
4219
 
  fi
4220
 
 
4221
 
  if test "$kde_use_debug_define" = "yes"; then
4222
 
    CFLAGS="-DNDEBUG $CFLAGS"
4223
 
  fi
4224
 
 
4225
 
 
4226
 
  case "$host" in
4227
 
  *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
4228
 
  *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
4229
 
  esac
4230
 
 
4231
 
  if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
4232
 
     LDFLAGS=""
4233
 
  fi
4234
 
 
4235
 
  CXXFLAGS=" $CXXFLAGS"
4236
 
 
4237
 
  ac_ext=cc
4238
 
ac_cpp='$CXXCPP $CPPFLAGS'
4239
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4242
 
if test -n "$ac_tool_prefix"; then
4243
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4244
 
  do
4245
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4246
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4247
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4248
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4249
 
if test "${ac_cv_prog_CXX+set}" = set; then
4250
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4251
 
else
4252
 
  if test -n "$CXX"; then
4253
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4254
 
else
4255
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256
 
for as_dir in $PATH
4257
 
do
4258
 
  IFS=$as_save_IFS
4259
 
  test -z "$as_dir" && as_dir=.
4260
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4261
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4263
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4264
 
    break 2
4265
 
  fi
4266
 
done
4267
 
done
4268
 
 
4269
 
fi
4270
 
fi
4271
 
CXX=$ac_cv_prog_CXX
4272
 
if test -n "$CXX"; then
4273
 
  echo "$as_me:$LINENO: result: $CXX" >&5
4274
 
echo "${ECHO_T}$CXX" >&6
4275
 
else
4276
 
  echo "$as_me:$LINENO: result: no" >&5
4277
 
echo "${ECHO_T}no" >&6
4278
 
fi
4279
 
 
4280
 
    test -n "$CXX" && break
4281
 
  done
4282
 
fi
4283
 
if test -z "$CXX"; then
4284
 
  ac_ct_CXX=$CXX
4285
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4286
 
do
4287
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4288
 
set dummy $ac_prog; ac_word=$2
4289
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4290
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4291
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4292
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4293
 
else
4294
 
  if test -n "$ac_ct_CXX"; then
4295
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4296
 
else
4297
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298
 
for as_dir in $PATH
4299
 
do
4300
 
  IFS=$as_save_IFS
4301
 
  test -z "$as_dir" && as_dir=.
4302
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4303
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4304
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4305
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4306
 
    break 2
4307
 
  fi
4308
 
done
4309
 
done
4310
 
 
4311
 
fi
4312
 
fi
4313
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4314
 
if test -n "$ac_ct_CXX"; then
4315
 
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4316
 
echo "${ECHO_T}$ac_ct_CXX" >&6
4317
 
else
4318
 
  echo "$as_me:$LINENO: result: no" >&5
4319
 
echo "${ECHO_T}no" >&6
4320
 
fi
4321
 
 
4322
 
  test -n "$ac_ct_CXX" && break
4323
 
done
4324
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4325
 
 
4326
 
  CXX=$ac_ct_CXX
4327
 
fi
4328
 
 
4329
 
 
4330
 
# Provide some information about the compiler.
4331
 
echo "$as_me:$LINENO:" \
4332
 
     "checking for C++ compiler version" >&5
4333
 
ac_compiler=`set X $ac_compile; echo $2`
4334
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4335
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
4336
 
  ac_status=$?
4337
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338
 
  (exit $ac_status); }
4339
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4340
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
4341
 
  ac_status=$?
4342
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343
 
  (exit $ac_status); }
4344
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4345
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
4346
 
  ac_status=$?
4347
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348
 
  (exit $ac_status); }
4349
 
 
4350
 
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4351
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4352
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4353
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4354
 
else
4355
 
  cat >conftest.$ac_ext <<_ACEOF
4356
 
/* confdefs.h.  */
4357
 
_ACEOF
4358
 
cat confdefs.h >>conftest.$ac_ext
4359
 
cat >>conftest.$ac_ext <<_ACEOF
4360
 
/* end confdefs.h.  */
4361
 
 
4362
 
int
4363
 
main ()
4364
 
{
4365
 
#ifndef __GNUC__
4366
 
       choke me
4367
 
#endif
4368
 
 
4369
 
  ;
4370
 
  return 0;
4371
 
}
4372
 
_ACEOF
4373
 
rm -f conftest.$ac_objext
4374
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375
 
  (eval $ac_compile) 2>conftest.er1
4376
 
  ac_status=$?
4377
 
  grep -v '^ *+' conftest.er1 >conftest.err
4378
 
  rm -f conftest.er1
4379
 
  cat conftest.err >&5
4380
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381
 
  (exit $ac_status); } &&
4382
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4383
 
                         || test ! -s conftest.err'
4384
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385
 
  (eval $ac_try) 2>&5
4386
 
  ac_status=$?
4387
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388
 
  (exit $ac_status); }; } &&
4389
 
         { ac_try='test -s conftest.$ac_objext'
4390
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391
 
  (eval $ac_try) 2>&5
4392
 
  ac_status=$?
4393
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394
 
  (exit $ac_status); }; }; then
4395
 
  ac_compiler_gnu=yes
4396
 
else
4397
 
  echo "$as_me: failed program was:" >&5
4398
 
sed 's/^/| /' conftest.$ac_ext >&5
4399
 
 
4400
 
ac_compiler_gnu=no
4401
 
fi
4402
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4404
 
 
4405
 
fi
4406
 
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4407
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4408
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
4409
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
4410
 
ac_save_CXXFLAGS=$CXXFLAGS
4411
 
CXXFLAGS="-g"
4412
 
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4413
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4414
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
4415
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4416
 
else
4417
 
  cat >conftest.$ac_ext <<_ACEOF
4418
 
/* confdefs.h.  */
4419
 
_ACEOF
4420
 
cat confdefs.h >>conftest.$ac_ext
4421
 
cat >>conftest.$ac_ext <<_ACEOF
4422
 
/* end confdefs.h.  */
4423
 
 
4424
 
int
4425
 
main ()
4426
 
{
4427
 
 
4428
 
  ;
4429
 
  return 0;
4430
 
}
4431
 
_ACEOF
4432
 
rm -f conftest.$ac_objext
4433
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434
 
  (eval $ac_compile) 2>conftest.er1
4435
 
  ac_status=$?
4436
 
  grep -v '^ *+' conftest.er1 >conftest.err
4437
 
  rm -f conftest.er1
4438
 
  cat conftest.err >&5
4439
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440
 
  (exit $ac_status); } &&
4441
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4442
 
                         || test ! -s conftest.err'
4443
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444
 
  (eval $ac_try) 2>&5
4445
 
  ac_status=$?
4446
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447
 
  (exit $ac_status); }; } &&
4448
 
         { ac_try='test -s conftest.$ac_objext'
4449
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450
 
  (eval $ac_try) 2>&5
4451
 
  ac_status=$?
4452
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453
 
  (exit $ac_status); }; }; then
4454
 
  ac_cv_prog_cxx_g=yes
4455
 
else
4456
 
  echo "$as_me: failed program was:" >&5
4457
 
sed 's/^/| /' conftest.$ac_ext >&5
4458
 
 
4459
 
ac_cv_prog_cxx_g=no
4460
 
fi
4461
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4462
 
fi
4463
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4464
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4465
 
if test "$ac_test_CXXFLAGS" = set; then
4466
 
  CXXFLAGS=$ac_save_CXXFLAGS
4467
 
elif test $ac_cv_prog_cxx_g = yes; then
4468
 
  if test "$GXX" = yes; then
4469
 
    CXXFLAGS="-g -O2"
4470
 
  else
4471
 
    CXXFLAGS="-g"
4472
 
  fi
4473
 
else
4474
 
  if test "$GXX" = yes; then
4475
 
    CXXFLAGS="-O2"
4476
 
  else
4477
 
    CXXFLAGS=
4478
 
  fi
4479
 
fi
4480
 
for ac_declaration in \
4481
 
   '' \
4482
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4483
 
   'extern "C" void std::exit (int); using std::exit;' \
4484
 
   'extern "C" void exit (int) throw ();' \
4485
 
   'extern "C" void exit (int);' \
4486
 
   'void exit (int);'
4487
 
do
4488
 
  cat >conftest.$ac_ext <<_ACEOF
4489
 
/* confdefs.h.  */
4490
 
_ACEOF
4491
 
cat confdefs.h >>conftest.$ac_ext
4492
 
cat >>conftest.$ac_ext <<_ACEOF
4493
 
/* end confdefs.h.  */
4494
 
$ac_declaration
4495
 
#include <stdlib.h>
4496
 
int
4497
 
main ()
4498
 
{
4499
 
exit (42);
4500
 
  ;
4501
 
  return 0;
4502
 
}
4503
 
_ACEOF
4504
 
rm -f conftest.$ac_objext
4505
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506
 
  (eval $ac_compile) 2>conftest.er1
4507
 
  ac_status=$?
4508
 
  grep -v '^ *+' conftest.er1 >conftest.err
4509
 
  rm -f conftest.er1
4510
 
  cat conftest.err >&5
4511
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512
 
  (exit $ac_status); } &&
4513
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4514
 
                         || test ! -s conftest.err'
4515
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516
 
  (eval $ac_try) 2>&5
4517
 
  ac_status=$?
4518
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519
 
  (exit $ac_status); }; } &&
4520
 
         { ac_try='test -s conftest.$ac_objext'
4521
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522
 
  (eval $ac_try) 2>&5
4523
 
  ac_status=$?
4524
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525
 
  (exit $ac_status); }; }; then
4526
 
  :
4527
 
else
4528
 
  echo "$as_me: failed program was:" >&5
4529
 
sed 's/^/| /' conftest.$ac_ext >&5
4530
 
 
4531
 
continue
4532
 
fi
4533
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4534
 
  cat >conftest.$ac_ext <<_ACEOF
4535
 
/* confdefs.h.  */
4536
 
_ACEOF
4537
 
cat confdefs.h >>conftest.$ac_ext
4538
 
cat >>conftest.$ac_ext <<_ACEOF
4539
 
/* end confdefs.h.  */
4540
 
$ac_declaration
4541
 
int
4542
 
main ()
4543
 
{
4544
 
exit (42);
4545
 
  ;
4546
 
  return 0;
4547
 
}
4548
 
_ACEOF
4549
 
rm -f conftest.$ac_objext
4550
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4551
 
  (eval $ac_compile) 2>conftest.er1
4552
 
  ac_status=$?
4553
 
  grep -v '^ *+' conftest.er1 >conftest.err
4554
 
  rm -f conftest.er1
4555
 
  cat conftest.err >&5
4556
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557
 
  (exit $ac_status); } &&
4558
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4559
 
                         || test ! -s conftest.err'
4560
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561
 
  (eval $ac_try) 2>&5
4562
 
  ac_status=$?
4563
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564
 
  (exit $ac_status); }; } &&
4565
 
         { ac_try='test -s conftest.$ac_objext'
4566
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567
 
  (eval $ac_try) 2>&5
4568
 
  ac_status=$?
4569
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570
 
  (exit $ac_status); }; }; then
4571
 
  break
4572
 
else
4573
 
  echo "$as_me: failed program was:" >&5
4574
 
sed 's/^/| /' conftest.$ac_ext >&5
4575
 
 
4576
 
fi
4577
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4578
 
done
4579
 
rm -f conftest*
4580
 
if test -n "$ac_declaration"; then
4581
 
  echo '#ifdef __cplusplus' >>confdefs.h
4582
 
  echo $ac_declaration      >>confdefs.h
4583
 
  echo '#endif'             >>confdefs.h
4584
 
fi
4585
 
 
4586
 
ac_ext=c
4587
 
ac_cpp='$CPP $CPPFLAGS'
4588
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591
 
 
4592
 
depcc="$CXX"  am_compiler_list=
4593
 
 
4594
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4595
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4596
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4597
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4598
 
else
4599
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4600
 
  # We make a subdir and do the tests there.  Otherwise we can end up
4601
 
  # making bogus files that we don't know about and never remove.  For
4602
 
  # instance it was reported that on HP-UX the gcc test will end up
4603
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4604
 
  # in D'.
4605
 
  mkdir conftest.dir
4606
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
4607
 
  # using a relative directory.
4608
 
  cp "$am_depcomp" conftest.dir
4609
 
  cd conftest.dir
4610
 
 
4611
 
  am_cv_CXX_dependencies_compiler_type=none
4612
 
  if test "$am_compiler_list" = ""; then
4613
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4614
 
  fi
4615
 
  for depmode in $am_compiler_list; do
4616
 
    # We need to recreate these files for each test, as the compiler may
4617
 
    # overwrite some of them when testing with obscure command lines.
4618
 
    # This happens at least with the AIX C compiler.
4619
 
    echo '#include "conftest.h"' > conftest.c
4620
 
    echo 'int i;' > conftest.h
4621
 
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
4622
 
 
4623
 
    case $depmode in
4624
 
    nosideeffect)
4625
 
      # after this tag, mechanisms are not by side-effect, so they'll
4626
 
      # only be used when explicitly requested
4627
 
      if test "x$enable_dependency_tracking" = xyes; then
4628
 
        continue
4629
 
      else
4630
 
        break
4631
 
      fi
4632
 
      ;;
4633
 
    none) break ;;
4634
 
    esac
4635
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4636
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4637
 
    # handle `-M -o', and we need to detect this.
4638
 
    if depmode=$depmode \
4639
 
       source=conftest.c object=conftest.o \
4640
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
4641
 
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
4642
 
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
4643
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4644
 
      am_cv_CXX_dependencies_compiler_type=$depmode
4645
 
      break
4646
 
    fi
4647
 
  done
4648
 
 
4649
 
  cd ..
4650
 
  rm -rf conftest.dir
4651
 
else
4652
 
  am_cv_CXX_dependencies_compiler_type=none
4653
 
fi
4654
 
 
4655
 
fi
4656
 
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4657
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4658
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4659
 
 
4660
 
 
4661
 
 
4662
 
  if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
4663
 
    if test "$kde_use_debug_code" != "no"; then
4664
 
      if test "$CXX" = "KCC"; then
4665
 
        CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
4666
 
      else
4667
 
        if test "$kde_use_debug_code" = "full"; then
4668
 
          CXXFLAGS="-g3 $CXXFLAGS"
4669
 
        else
4670
 
          CXXFLAGS="-g -O2 $CXXFLAGS"
4671
 
        fi
4672
 
      fi
4673
 
 
4674
 
echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
4675
 
echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6
4676
 
kde_cache=`echo fno-builtin | sed 'y% .=/+-%____p_%'`
4677
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4678
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4679
 
else
4680
 
 
4681
 
 
4682
 
 
4683
 
 
4684
 
ac_ext=cc
4685
 
ac_cpp='$CXXCPP $CPPFLAGS'
4686
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4687
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4688
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4689
 
 
4690
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4691
 
 
4692
 
 
4693
 
 
4694
 
  save_CXXFLAGS="$CXXFLAGS"
4695
 
  CXXFLAGS="$CXXFLAGS -fno-builtin"
4696
 
  cat >conftest.$ac_ext <<_ACEOF
4697
 
/* confdefs.h.  */
4698
 
_ACEOF
4699
 
cat confdefs.h >>conftest.$ac_ext
4700
 
cat >>conftest.$ac_ext <<_ACEOF
4701
 
/* end confdefs.h.  */
4702
 
 
4703
 
int
4704
 
main ()
4705
 
{
4706
 
 return 0;
4707
 
  ;
4708
 
  return 0;
4709
 
}
4710
 
_ACEOF
4711
 
rm -f conftest.$ac_objext conftest$ac_exeext
4712
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4713
 
  (eval $ac_link) 2>conftest.er1
4714
 
  ac_status=$?
4715
 
  grep -v '^ *+' conftest.er1 >conftest.err
4716
 
  rm -f conftest.er1
4717
 
  cat conftest.err >&5
4718
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719
 
  (exit $ac_status); } &&
4720
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4721
 
                         || test ! -s conftest.err'
4722
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723
 
  (eval $ac_try) 2>&5
4724
 
  ac_status=$?
4725
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726
 
  (exit $ac_status); }; } &&
4727
 
         { ac_try='test -s conftest$ac_exeext'
4728
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729
 
  (eval $ac_try) 2>&5
4730
 
  ac_status=$?
4731
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732
 
  (exit $ac_status); }; }; then
4733
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
4734
 
else
4735
 
  echo "$as_me: failed program was:" >&5
4736
 
sed 's/^/| /' conftest.$ac_ext >&5
4737
 
 
4738
 
fi
4739
 
rm -f conftest.err conftest.$ac_objext \
4740
 
      conftest$ac_exeext conftest.$ac_ext
4741
 
  CXXFLAGS="$save_CXXFLAGS"
4742
 
  ac_ext=c
4743
 
ac_cpp='$CPP $CPPFLAGS'
4744
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4745
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4746
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4747
 
 
4748
 
 
4749
 
fi
4750
 
 
4751
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4752
 
 echo "$as_me:$LINENO: result: yes" >&5
4753
 
echo "${ECHO_T}yes" >&6
4754
 
 :
4755
 
 CXXFLAGS="-fno-builtin $CXXFLAGS"
4756
 
else
4757
 
 echo "$as_me:$LINENO: result: no" >&5
4758
 
echo "${ECHO_T}no" >&6
4759
 
 :
4760
 
 
4761
 
fi
4762
 
 
4763
 
 
4764
 
 
4765
 
echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
4766
 
echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6
4767
 
kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-%____p_%'`
4768
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4769
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4770
 
else
4771
 
 
4772
 
 
4773
 
 
4774
 
   ac_ext=cc
4775
 
ac_cpp='$CXXCPP $CPPFLAGS'
4776
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4777
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4778
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4779
 
 
4780
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4781
 
 
4782
 
 
4783
 
  save_CXXFLAGS="$CXXFLAGS"
4784
 
  CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
4785
 
  cat >conftest.$ac_ext <<_ACEOF
4786
 
/* confdefs.h.  */
4787
 
_ACEOF
4788
 
cat confdefs.h >>conftest.$ac_ext
4789
 
cat >>conftest.$ac_ext <<_ACEOF
4790
 
/* end confdefs.h.  */
4791
 
 
4792
 
int
4793
 
main ()
4794
 
{
4795
 
 return 0;
4796
 
  ;
4797
 
  return 0;
4798
 
}
4799
 
_ACEOF
4800
 
rm -f conftest.$ac_objext conftest$ac_exeext
4801
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4802
 
  (eval $ac_link) 2>conftest.er1
4803
 
  ac_status=$?
4804
 
  grep -v '^ *+' conftest.er1 >conftest.err
4805
 
  rm -f conftest.er1
4806
 
  cat conftest.err >&5
4807
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808
 
  (exit $ac_status); } &&
4809
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4810
 
                         || test ! -s conftest.err'
4811
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812
 
  (eval $ac_try) 2>&5
4813
 
  ac_status=$?
4814
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815
 
  (exit $ac_status); }; } &&
4816
 
         { ac_try='test -s conftest$ac_exeext'
4817
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818
 
  (eval $ac_try) 2>&5
4819
 
  ac_status=$?
4820
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821
 
  (exit $ac_status); }; }; then
4822
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
4823
 
else
4824
 
  echo "$as_me: failed program was:" >&5
4825
 
sed 's/^/| /' conftest.$ac_ext >&5
4826
 
 
4827
 
fi
4828
 
rm -f conftest.err conftest.$ac_objext \
4829
 
      conftest$ac_exeext conftest.$ac_ext
4830
 
  CXXFLAGS="$save_CXXFLAGS"
4831
 
  ac_ext=c
4832
 
ac_cpp='$CPP $CPPFLAGS'
4833
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4836
 
 
4837
 
 
4838
 
fi
4839
 
 
4840
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4841
 
 echo "$as_me:$LINENO: result: yes" >&5
4842
 
echo "${ECHO_T}yes" >&6
4843
 
 :
4844
 
 WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
4845
 
else
4846
 
 echo "$as_me:$LINENO: result: no" >&5
4847
 
echo "${ECHO_T}no" >&6
4848
 
 :
4849
 
 WOVERLOADED_VRITUAL=""
4850
 
fi
4851
 
 
4852
 
 
4853
 
    else
4854
 
      if test "$CXX" = "KCC"; then
4855
 
        CXXFLAGS="+K3 $CXXFLAGS"
4856
 
      else
4857
 
        CXXFLAGS="-O2 $CXXFLAGS"
4858
 
      fi
4859
 
    fi
4860
 
  fi
4861
 
 
4862
 
  if test "$kde_use_debug_define" = "yes"; then
4863
 
    CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
4864
 
  fi
4865
 
 
4866
 
  if test "$kde_use_profiling" = "yes"; then
4867
 
 
4868
 
echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
4869
 
echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6
4870
 
kde_cache=`echo pg | sed 'y% .=/+-%____p_%'`
4871
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4872
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4873
 
else
4874
 
 
4875
 
 
4876
 
 
4877
 
   ac_ext=cc
4878
 
ac_cpp='$CXXCPP $CPPFLAGS'
4879
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4882
 
 
4883
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4884
 
 
4885
 
 
4886
 
  save_CXXFLAGS="$CXXFLAGS"
4887
 
  CXXFLAGS="$CXXFLAGS -pg"
4888
 
  cat >conftest.$ac_ext <<_ACEOF
4889
 
/* confdefs.h.  */
4890
 
_ACEOF
4891
 
cat confdefs.h >>conftest.$ac_ext
4892
 
cat >>conftest.$ac_ext <<_ACEOF
4893
 
/* end confdefs.h.  */
4894
 
 
4895
 
int
4896
 
main ()
4897
 
{
4898
 
 return 0;
4899
 
  ;
4900
 
  return 0;
4901
 
}
4902
 
_ACEOF
4903
 
rm -f conftest.$ac_objext conftest$ac_exeext
4904
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4905
 
  (eval $ac_link) 2>conftest.er1
4906
 
  ac_status=$?
4907
 
  grep -v '^ *+' conftest.er1 >conftest.err
4908
 
  rm -f conftest.er1
4909
 
  cat conftest.err >&5
4910
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911
 
  (exit $ac_status); } &&
4912
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4913
 
                         || test ! -s conftest.err'
4914
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915
 
  (eval $ac_try) 2>&5
4916
 
  ac_status=$?
4917
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918
 
  (exit $ac_status); }; } &&
4919
 
         { ac_try='test -s conftest$ac_exeext'
4920
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921
 
  (eval $ac_try) 2>&5
4922
 
  ac_status=$?
4923
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924
 
  (exit $ac_status); }; }; then
4925
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
4926
 
else
4927
 
  echo "$as_me: failed program was:" >&5
4928
 
sed 's/^/| /' conftest.$ac_ext >&5
4929
 
 
4930
 
fi
4931
 
rm -f conftest.err conftest.$ac_objext \
4932
 
      conftest$ac_exeext conftest.$ac_ext
4933
 
  CXXFLAGS="$save_CXXFLAGS"
4934
 
  ac_ext=c
4935
 
ac_cpp='$CPP $CPPFLAGS'
4936
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4939
 
 
4940
 
 
4941
 
fi
4942
 
 
4943
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4944
 
 echo "$as_me:$LINENO: result: yes" >&5
4945
 
echo "${ECHO_T}yes" >&6
4946
 
 :
4947
 
 
4948
 
      CFLAGS="-pg $CFLAGS"
4949
 
      CXXFLAGS="-pg $CXXFLAGS"
4950
 
 
4951
 
else
4952
 
 echo "$as_me:$LINENO: result: no" >&5
4953
 
echo "${ECHO_T}no" >&6
4954
 
 :
4955
 
 
4956
 
fi
4957
 
 
4958
 
  fi
4959
 
 
4960
 
  if test "$kde_use_warnings" = "yes"; then
4961
 
      if test "$GCC" = "yes"; then
4962
 
        case $host in
4963
 
          *-*-linux-gnu)
4964
 
            CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
4965
 
            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion $CXXFLAGS"
4966
 
          ;;
4967
 
        esac
4968
 
        CXXFLAGS="-Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
4969
 
 
4970
 
echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
4971
 
echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6
4972
 
kde_cache=`echo Wundef | sed 'y% .=/+-%____p_%'`
4973
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4974
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4975
 
else
4976
 
 
4977
 
 
4978
 
 
4979
 
   ac_ext=cc
4980
 
ac_cpp='$CXXCPP $CPPFLAGS'
4981
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4982
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4983
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4984
 
 
4985
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4986
 
 
4987
 
 
4988
 
  save_CXXFLAGS="$CXXFLAGS"
4989
 
  CXXFLAGS="$CXXFLAGS -Wundef"
4990
 
  cat >conftest.$ac_ext <<_ACEOF
4991
 
/* confdefs.h.  */
4992
 
_ACEOF
4993
 
cat confdefs.h >>conftest.$ac_ext
4994
 
cat >>conftest.$ac_ext <<_ACEOF
4995
 
/* end confdefs.h.  */
4996
 
 
4997
 
int
4998
 
main ()
4999
 
{
5000
 
 return 0;
5001
 
  ;
5002
 
  return 0;
5003
 
}
5004
 
_ACEOF
5005
 
rm -f conftest.$ac_objext conftest$ac_exeext
5006
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5007
 
  (eval $ac_link) 2>conftest.er1
5008
 
  ac_status=$?
5009
 
  grep -v '^ *+' conftest.er1 >conftest.err
5010
 
  rm -f conftest.er1
5011
 
  cat conftest.err >&5
5012
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013
 
  (exit $ac_status); } &&
5014
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5015
 
                         || test ! -s conftest.err'
5016
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017
 
  (eval $ac_try) 2>&5
5018
 
  ac_status=$?
5019
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020
 
  (exit $ac_status); }; } &&
5021
 
         { ac_try='test -s conftest$ac_exeext'
5022
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023
 
  (eval $ac_try) 2>&5
5024
 
  ac_status=$?
5025
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026
 
  (exit $ac_status); }; }; then
5027
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5028
 
else
5029
 
  echo "$as_me: failed program was:" >&5
5030
 
sed 's/^/| /' conftest.$ac_ext >&5
5031
 
 
5032
 
fi
5033
 
rm -f conftest.err conftest.$ac_objext \
5034
 
      conftest$ac_exeext conftest.$ac_ext
5035
 
  CXXFLAGS="$save_CXXFLAGS"
5036
 
  ac_ext=c
5037
 
ac_cpp='$CPP $CPPFLAGS'
5038
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5041
 
 
5042
 
 
5043
 
fi
5044
 
 
5045
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5046
 
 echo "$as_me:$LINENO: result: yes" >&5
5047
 
echo "${ECHO_T}yes" >&6
5048
 
 :
5049
 
 CXXFLAGS="-Wundef $CXXFLAGS"
5050
 
else
5051
 
 echo "$as_me:$LINENO: result: no" >&5
5052
 
echo "${ECHO_T}no" >&6
5053
 
 :
5054
 
 
5055
 
fi
5056
 
 
5057
 
 
5058
 
echo "$as_me:$LINENO: checking whether $CXX supports -Wbad-function-cast" >&5
5059
 
echo $ECHO_N "checking whether $CXX supports -Wbad-function-cast... $ECHO_C" >&6
5060
 
kde_cache=`echo Wbad-function-cast | sed 'y% .=/+-%____p_%'`
5061
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5062
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5063
 
else
5064
 
 
5065
 
 
5066
 
 
5067
 
   ac_ext=cc
5068
 
ac_cpp='$CXXCPP $CPPFLAGS'
5069
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5072
 
 
5073
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5074
 
 
5075
 
 
5076
 
  save_CXXFLAGS="$CXXFLAGS"
5077
 
  CXXFLAGS="$CXXFLAGS -Wbad-function-cast"
5078
 
  cat >conftest.$ac_ext <<_ACEOF
5079
 
/* confdefs.h.  */
5080
 
_ACEOF
5081
 
cat confdefs.h >>conftest.$ac_ext
5082
 
cat >>conftest.$ac_ext <<_ACEOF
5083
 
/* end confdefs.h.  */
5084
 
 
5085
 
int
5086
 
main ()
5087
 
{
5088
 
 return 0;
5089
 
  ;
5090
 
  return 0;
5091
 
}
5092
 
_ACEOF
5093
 
rm -f conftest.$ac_objext conftest$ac_exeext
5094
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5095
 
  (eval $ac_link) 2>conftest.er1
5096
 
  ac_status=$?
5097
 
  grep -v '^ *+' conftest.er1 >conftest.err
5098
 
  rm -f conftest.er1
5099
 
  cat conftest.err >&5
5100
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101
 
  (exit $ac_status); } &&
5102
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5103
 
                         || test ! -s conftest.err'
5104
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105
 
  (eval $ac_try) 2>&5
5106
 
  ac_status=$?
5107
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108
 
  (exit $ac_status); }; } &&
5109
 
         { ac_try='test -s conftest$ac_exeext'
5110
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111
 
  (eval $ac_try) 2>&5
5112
 
  ac_status=$?
5113
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114
 
  (exit $ac_status); }; }; then
5115
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5116
 
else
5117
 
  echo "$as_me: failed program was:" >&5
5118
 
sed 's/^/| /' conftest.$ac_ext >&5
5119
 
 
5120
 
fi
5121
 
rm -f conftest.err conftest.$ac_objext \
5122
 
      conftest$ac_exeext conftest.$ac_ext
5123
 
  CXXFLAGS="$save_CXXFLAGS"
5124
 
  ac_ext=c
5125
 
ac_cpp='$CPP $CPPFLAGS'
5126
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5129
 
 
5130
 
 
5131
 
fi
5132
 
 
5133
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5134
 
 echo "$as_me:$LINENO: result: yes" >&5
5135
 
echo "${ECHO_T}yes" >&6
5136
 
 :
5137
 
 CXXFLAGS="-Wbad-function-cast $CXXFLAGS"
5138
 
else
5139
 
 echo "$as_me:$LINENO: result: no" >&5
5140
 
echo "${ECHO_T}no" >&6
5141
 
 :
5142
 
 
5143
 
fi
5144
 
 
5145
 
 
5146
 
echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
5147
 
echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6
5148
 
kde_cache=`echo Wno-long-long | sed 'y% .=/+-%____p_%'`
5149
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5150
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5151
 
else
5152
 
 
5153
 
 
5154
 
 
5155
 
   ac_ext=cc
5156
 
ac_cpp='$CXXCPP $CPPFLAGS'
5157
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5158
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5159
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5160
 
 
5161
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5162
 
 
5163
 
 
5164
 
  save_CXXFLAGS="$CXXFLAGS"
5165
 
  CXXFLAGS="$CXXFLAGS -Wno-long-long"
5166
 
  cat >conftest.$ac_ext <<_ACEOF
5167
 
/* confdefs.h.  */
5168
 
_ACEOF
5169
 
cat confdefs.h >>conftest.$ac_ext
5170
 
cat >>conftest.$ac_ext <<_ACEOF
5171
 
/* end confdefs.h.  */
5172
 
 
5173
 
int
5174
 
main ()
5175
 
{
5176
 
 return 0;
5177
 
  ;
5178
 
  return 0;
5179
 
}
5180
 
_ACEOF
5181
 
rm -f conftest.$ac_objext conftest$ac_exeext
5182
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5183
 
  (eval $ac_link) 2>conftest.er1
5184
 
  ac_status=$?
5185
 
  grep -v '^ *+' conftest.er1 >conftest.err
5186
 
  rm -f conftest.er1
5187
 
  cat conftest.err >&5
5188
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189
 
  (exit $ac_status); } &&
5190
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5191
 
                         || test ! -s conftest.err'
5192
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193
 
  (eval $ac_try) 2>&5
5194
 
  ac_status=$?
5195
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196
 
  (exit $ac_status); }; } &&
5197
 
         { ac_try='test -s conftest$ac_exeext'
5198
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199
 
  (eval $ac_try) 2>&5
5200
 
  ac_status=$?
5201
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202
 
  (exit $ac_status); }; }; then
5203
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5204
 
else
5205
 
  echo "$as_me: failed program was:" >&5
5206
 
sed 's/^/| /' conftest.$ac_ext >&5
5207
 
 
5208
 
fi
5209
 
rm -f conftest.err conftest.$ac_objext \
5210
 
      conftest$ac_exeext conftest.$ac_ext
5211
 
  CXXFLAGS="$save_CXXFLAGS"
5212
 
  ac_ext=c
5213
 
ac_cpp='$CPP $CPPFLAGS'
5214
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217
 
 
5218
 
 
5219
 
fi
5220
 
 
5221
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5222
 
 echo "$as_me:$LINENO: result: yes" >&5
5223
 
echo "${ECHO_T}yes" >&6
5224
 
 :
5225
 
 CXXFLAGS="-Wno-long-long $CXXFLAGS"
5226
 
else
5227
 
 echo "$as_me:$LINENO: result: no" >&5
5228
 
echo "${ECHO_T}no" >&6
5229
 
 :
5230
 
 
5231
 
fi
5232
 
 
5233
 
 
5234
 
echo "$as_me:$LINENO: checking whether $CXX supports -Wnon-virtual-dtor" >&5
5235
 
echo $ECHO_N "checking whether $CXX supports -Wnon-virtual-dtor... $ECHO_C" >&6
5236
 
kde_cache=`echo Wnon-virtual-dtor | sed 'y% .=/+-%____p_%'`
5237
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5238
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5239
 
else
5240
 
 
5241
 
 
5242
 
 
5243
 
   ac_ext=cc
5244
 
ac_cpp='$CXXCPP $CPPFLAGS'
5245
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5248
 
 
5249
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5250
 
 
5251
 
 
5252
 
  save_CXXFLAGS="$CXXFLAGS"
5253
 
  CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor"
5254
 
  cat >conftest.$ac_ext <<_ACEOF
5255
 
/* confdefs.h.  */
5256
 
_ACEOF
5257
 
cat confdefs.h >>conftest.$ac_ext
5258
 
cat >>conftest.$ac_ext <<_ACEOF
5259
 
/* end confdefs.h.  */
5260
 
 
5261
 
int
5262
 
main ()
5263
 
{
5264
 
 return 0;
5265
 
  ;
5266
 
  return 0;
5267
 
}
5268
 
_ACEOF
5269
 
rm -f conftest.$ac_objext conftest$ac_exeext
5270
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5271
 
  (eval $ac_link) 2>conftest.er1
5272
 
  ac_status=$?
5273
 
  grep -v '^ *+' conftest.er1 >conftest.err
5274
 
  rm -f conftest.er1
5275
 
  cat conftest.err >&5
5276
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277
 
  (exit $ac_status); } &&
5278
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5279
 
                         || test ! -s conftest.err'
5280
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281
 
  (eval $ac_try) 2>&5
5282
 
  ac_status=$?
5283
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284
 
  (exit $ac_status); }; } &&
5285
 
         { ac_try='test -s conftest$ac_exeext'
5286
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287
 
  (eval $ac_try) 2>&5
5288
 
  ac_status=$?
5289
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290
 
  (exit $ac_status); }; }; then
5291
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5292
 
else
5293
 
  echo "$as_me: failed program was:" >&5
5294
 
sed 's/^/| /' conftest.$ac_ext >&5
5295
 
 
5296
 
fi
5297
 
rm -f conftest.err conftest.$ac_objext \
5298
 
      conftest$ac_exeext conftest.$ac_ext
5299
 
  CXXFLAGS="$save_CXXFLAGS"
5300
 
  ac_ext=c
5301
 
ac_cpp='$CPP $CPPFLAGS'
5302
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305
 
 
5306
 
 
5307
 
fi
5308
 
 
5309
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5310
 
 echo "$as_me:$LINENO: result: yes" >&5
5311
 
echo "${ECHO_T}yes" >&6
5312
 
 :
5313
 
 CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"
5314
 
else
5315
 
 echo "$as_me:$LINENO: result: no" >&5
5316
 
echo "${ECHO_T}no" >&6
5317
 
 :
5318
 
 
5319
 
fi
5320
 
 
5321
 
     fi
5322
 
  fi
5323
 
 
5324
 
  if test "$GCC" = "yes" && test "$kde_use_strict_options" = "yes"; then
5325
 
    CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
5326
 
  fi
5327
 
 
5328
 
  if test "$GXX" = "yes"; then
5329
 
 
5330
 
echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
5331
 
echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6
5332
 
kde_cache=`echo fno-exceptions | sed 'y% .=/+-%____p_%'`
5333
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5334
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5335
 
else
5336
 
 
5337
 
 
5338
 
 
5339
 
   ac_ext=cc
5340
 
ac_cpp='$CXXCPP $CPPFLAGS'
5341
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5344
 
 
5345
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5346
 
 
5347
 
 
5348
 
  save_CXXFLAGS="$CXXFLAGS"
5349
 
  CXXFLAGS="$CXXFLAGS -fno-exceptions"
5350
 
  cat >conftest.$ac_ext <<_ACEOF
5351
 
/* confdefs.h.  */
5352
 
_ACEOF
5353
 
cat confdefs.h >>conftest.$ac_ext
5354
 
cat >>conftest.$ac_ext <<_ACEOF
5355
 
/* end confdefs.h.  */
5356
 
 
5357
 
int
5358
 
main ()
5359
 
{
5360
 
 return 0;
5361
 
  ;
5362
 
  return 0;
5363
 
}
5364
 
_ACEOF
5365
 
rm -f conftest.$ac_objext conftest$ac_exeext
5366
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5367
 
  (eval $ac_link) 2>conftest.er1
5368
 
  ac_status=$?
5369
 
  grep -v '^ *+' conftest.er1 >conftest.err
5370
 
  rm -f conftest.er1
5371
 
  cat conftest.err >&5
5372
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373
 
  (exit $ac_status); } &&
5374
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5375
 
                         || test ! -s conftest.err'
5376
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377
 
  (eval $ac_try) 2>&5
5378
 
  ac_status=$?
5379
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380
 
  (exit $ac_status); }; } &&
5381
 
         { ac_try='test -s conftest$ac_exeext'
5382
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383
 
  (eval $ac_try) 2>&5
5384
 
  ac_status=$?
5385
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386
 
  (exit $ac_status); }; }; then
5387
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5388
 
else
5389
 
  echo "$as_me: failed program was:" >&5
5390
 
sed 's/^/| /' conftest.$ac_ext >&5
5391
 
 
5392
 
fi
5393
 
rm -f conftest.err conftest.$ac_objext \
5394
 
      conftest$ac_exeext conftest.$ac_ext
5395
 
  CXXFLAGS="$save_CXXFLAGS"
5396
 
  ac_ext=c
5397
 
ac_cpp='$CPP $CPPFLAGS'
5398
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5401
 
 
5402
 
 
5403
 
fi
5404
 
 
5405
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5406
 
 echo "$as_me:$LINENO: result: yes" >&5
5407
 
echo "${ECHO_T}yes" >&6
5408
 
 :
5409
 
 CXXFLAGS="$CXXFLAGS -fno-exceptions"
5410
 
else
5411
 
 echo "$as_me:$LINENO: result: no" >&5
5412
 
echo "${ECHO_T}no" >&6
5413
 
 :
5414
 
 
5415
 
fi
5416
 
 
5417
 
 
5418
 
echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
5419
 
echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6
5420
 
kde_cache=`echo fno-check-new | sed 'y% .=/+-%____p_%'`
5421
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5422
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5423
 
else
5424
 
 
5425
 
 
5426
 
 
5427
 
   ac_ext=cc
5428
 
ac_cpp='$CXXCPP $CPPFLAGS'
5429
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5432
 
 
5433
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5434
 
 
5435
 
 
5436
 
  save_CXXFLAGS="$CXXFLAGS"
5437
 
  CXXFLAGS="$CXXFLAGS -fno-check-new"
5438
 
  cat >conftest.$ac_ext <<_ACEOF
5439
 
/* confdefs.h.  */
5440
 
_ACEOF
5441
 
cat confdefs.h >>conftest.$ac_ext
5442
 
cat >>conftest.$ac_ext <<_ACEOF
5443
 
/* end confdefs.h.  */
5444
 
 
5445
 
int
5446
 
main ()
5447
 
{
5448
 
 return 0;
5449
 
  ;
5450
 
  return 0;
5451
 
}
5452
 
_ACEOF
5453
 
rm -f conftest.$ac_objext conftest$ac_exeext
5454
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5455
 
  (eval $ac_link) 2>conftest.er1
5456
 
  ac_status=$?
5457
 
  grep -v '^ *+' conftest.er1 >conftest.err
5458
 
  rm -f conftest.er1
5459
 
  cat conftest.err >&5
5460
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461
 
  (exit $ac_status); } &&
5462
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5463
 
                         || test ! -s conftest.err'
5464
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465
 
  (eval $ac_try) 2>&5
5466
 
  ac_status=$?
5467
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468
 
  (exit $ac_status); }; } &&
5469
 
         { ac_try='test -s conftest$ac_exeext'
5470
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471
 
  (eval $ac_try) 2>&5
5472
 
  ac_status=$?
5473
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474
 
  (exit $ac_status); }; }; then
5475
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5476
 
else
5477
 
  echo "$as_me: failed program was:" >&5
5478
 
sed 's/^/| /' conftest.$ac_ext >&5
5479
 
 
5480
 
fi
5481
 
rm -f conftest.err conftest.$ac_objext \
5482
 
      conftest$ac_exeext conftest.$ac_ext
5483
 
  CXXFLAGS="$save_CXXFLAGS"
5484
 
  ac_ext=c
5485
 
ac_cpp='$CPP $CPPFLAGS'
5486
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5487
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5488
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5489
 
 
5490
 
 
5491
 
fi
5492
 
 
5493
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5494
 
 echo "$as_me:$LINENO: result: yes" >&5
5495
 
echo "${ECHO_T}yes" >&6
5496
 
 :
5497
 
 CXXFLAGS="$CXXFLAGS -fno-check-new"
5498
 
else
5499
 
 echo "$as_me:$LINENO: result: no" >&5
5500
 
echo "${ECHO_T}no" >&6
5501
 
 :
5502
 
 
5503
 
fi
5504
 
 
5505
 
 
5506
 
echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
5507
 
echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6
5508
 
kde_cache=`echo fexceptions | sed 'y% .=/+-%____p_%'`
5509
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5510
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5511
 
else
5512
 
 
5513
 
 
5514
 
 
5515
 
   ac_ext=cc
5516
 
ac_cpp='$CXXCPP $CPPFLAGS'
5517
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5520
 
 
5521
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5522
 
 
5523
 
 
5524
 
  save_CXXFLAGS="$CXXFLAGS"
5525
 
  CXXFLAGS="$CXXFLAGS -fexceptions"
5526
 
  cat >conftest.$ac_ext <<_ACEOF
5527
 
/* confdefs.h.  */
5528
 
_ACEOF
5529
 
cat confdefs.h >>conftest.$ac_ext
5530
 
cat >>conftest.$ac_ext <<_ACEOF
5531
 
/* end confdefs.h.  */
5532
 
 
5533
 
int
5534
 
main ()
5535
 
{
5536
 
 return 0;
5537
 
  ;
5538
 
  return 0;
5539
 
}
5540
 
_ACEOF
5541
 
rm -f conftest.$ac_objext conftest$ac_exeext
5542
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5543
 
  (eval $ac_link) 2>conftest.er1
5544
 
  ac_status=$?
5545
 
  grep -v '^ *+' conftest.er1 >conftest.err
5546
 
  rm -f conftest.er1
5547
 
  cat conftest.err >&5
5548
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549
 
  (exit $ac_status); } &&
5550
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5551
 
                         || test ! -s conftest.err'
5552
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553
 
  (eval $ac_try) 2>&5
5554
 
  ac_status=$?
5555
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556
 
  (exit $ac_status); }; } &&
5557
 
         { ac_try='test -s conftest$ac_exeext'
5558
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559
 
  (eval $ac_try) 2>&5
5560
 
  ac_status=$?
5561
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562
 
  (exit $ac_status); }; }; then
5563
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5564
 
else
5565
 
  echo "$as_me: failed program was:" >&5
5566
 
sed 's/^/| /' conftest.$ac_ext >&5
5567
 
 
5568
 
fi
5569
 
rm -f conftest.err conftest.$ac_objext \
5570
 
      conftest$ac_exeext conftest.$ac_ext
5571
 
  CXXFLAGS="$save_CXXFLAGS"
5572
 
  ac_ext=c
5573
 
ac_cpp='$CPP $CPPFLAGS'
5574
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5575
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5576
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5577
 
 
5578
 
 
5579
 
fi
5580
 
 
5581
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5582
 
 echo "$as_me:$LINENO: result: yes" >&5
5583
 
echo "${ECHO_T}yes" >&6
5584
 
 :
5585
 
 USE_EXCEPTIONS="-fexceptions"
5586
 
else
5587
 
 echo "$as_me:$LINENO: result: no" >&5
5588
 
echo "${ECHO_T}no" >&6
5589
 
 :
5590
 
 USE_EXCEPTIONS=
5591
 
fi
5592
 
 
5593
 
  fi
5594
 
  if test "$CXX" = "KCC"; then
5595
 
 
5596
 
    # Check whether --enable-pch or --disable-pch was given.
5597
 
if test "${enable_pch+set}" = set; then
5598
 
  enableval="$enable_pch"
5599
 
 
5600
 
      kde_use_pch=$enableval
5601
 
 
5602
 
else
5603
 
  kde_use_pch=no
5604
 
fi;
5605
 
 
5606
 
    if test "$kde_use_pch" = "yes"; then
5607
 
 
5608
 
echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
5609
 
echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6
5610
 
kde_cache=`echo -pch | sed 'y% .=/+-%____p_%'`
5611
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5612
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5613
 
else
5614
 
 
5615
 
 
5616
 
 
5617
 
   ac_ext=cc
5618
 
ac_cpp='$CXXCPP $CPPFLAGS'
5619
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5620
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5621
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5622
 
 
5623
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5624
 
 
5625
 
 
5626
 
  save_CXXFLAGS="$CXXFLAGS"
5627
 
  CXXFLAGS="$CXXFLAGS --pch"
5628
 
  cat >conftest.$ac_ext <<_ACEOF
5629
 
/* confdefs.h.  */
5630
 
_ACEOF
5631
 
cat confdefs.h >>conftest.$ac_ext
5632
 
cat >>conftest.$ac_ext <<_ACEOF
5633
 
/* end confdefs.h.  */
5634
 
 
5635
 
int
5636
 
main ()
5637
 
{
5638
 
 return 0;
5639
 
  ;
5640
 
  return 0;
5641
 
}
5642
 
_ACEOF
5643
 
rm -f conftest.$ac_objext conftest$ac_exeext
5644
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5645
 
  (eval $ac_link) 2>conftest.er1
5646
 
  ac_status=$?
5647
 
  grep -v '^ *+' conftest.er1 >conftest.err
5648
 
  rm -f conftest.er1
5649
 
  cat conftest.err >&5
5650
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651
 
  (exit $ac_status); } &&
5652
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5653
 
                         || test ! -s conftest.err'
5654
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655
 
  (eval $ac_try) 2>&5
5656
 
  ac_status=$?
5657
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658
 
  (exit $ac_status); }; } &&
5659
 
         { ac_try='test -s conftest$ac_exeext'
5660
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661
 
  (eval $ac_try) 2>&5
5662
 
  ac_status=$?
5663
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664
 
  (exit $ac_status); }; }; then
5665
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5666
 
else
5667
 
  echo "$as_me: failed program was:" >&5
5668
 
sed 's/^/| /' conftest.$ac_ext >&5
5669
 
 
5670
 
fi
5671
 
rm -f conftest.err conftest.$ac_objext \
5672
 
      conftest$ac_exeext conftest.$ac_ext
5673
 
  CXXFLAGS="$save_CXXFLAGS"
5674
 
  ac_ext=c
5675
 
ac_cpp='$CPP $CPPFLAGS'
5676
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5677
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5678
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5679
 
 
5680
 
 
5681
 
fi
5682
 
 
5683
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5684
 
 echo "$as_me:$LINENO: result: yes" >&5
5685
 
echo "${ECHO_T}yes" >&6
5686
 
 :
5687
 
 CXXFLAGS="$CXXFLAGS --pch"
5688
 
else
5689
 
 echo "$as_me:$LINENO: result: no" >&5
5690
 
echo "${ECHO_T}no" >&6
5691
 
 :
5692
 
 
5693
 
fi
5694
 
 
5695
 
                                              fi
5696
 
 
5697
 
echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
5698
 
echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6
5699
 
kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-%____p_%'`
5700
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5701
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5702
 
else
5703
 
 
5704
 
 
5705
 
 
5706
 
   ac_ext=cc
5707
 
ac_cpp='$CXXCPP $CPPFLAGS'
5708
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5709
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5710
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5711
 
 
5712
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5713
 
 
5714
 
 
5715
 
  save_CXXFLAGS="$CXXFLAGS"
5716
 
  CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
5717
 
  cat >conftest.$ac_ext <<_ACEOF
5718
 
/* confdefs.h.  */
5719
 
_ACEOF
5720
 
cat confdefs.h >>conftest.$ac_ext
5721
 
cat >>conftest.$ac_ext <<_ACEOF
5722
 
/* end confdefs.h.  */
5723
 
 
5724
 
int
5725
 
main ()
5726
 
{
5727
 
 return 0;
5728
 
  ;
5729
 
  return 0;
5730
 
}
5731
 
_ACEOF
5732
 
rm -f conftest.$ac_objext conftest$ac_exeext
5733
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734
 
  (eval $ac_link) 2>conftest.er1
5735
 
  ac_status=$?
5736
 
  grep -v '^ *+' conftest.er1 >conftest.err
5737
 
  rm -f conftest.er1
5738
 
  cat conftest.err >&5
5739
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740
 
  (exit $ac_status); } &&
5741
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5742
 
                         || test ! -s conftest.err'
5743
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744
 
  (eval $ac_try) 2>&5
5745
 
  ac_status=$?
5746
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747
 
  (exit $ac_status); }; } &&
5748
 
         { ac_try='test -s conftest$ac_exeext'
5749
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750
 
  (eval $ac_try) 2>&5
5751
 
  ac_status=$?
5752
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753
 
  (exit $ac_status); }; }; then
5754
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5755
 
else
5756
 
  echo "$as_me: failed program was:" >&5
5757
 
sed 's/^/| /' conftest.$ac_ext >&5
5758
 
 
5759
 
fi
5760
 
rm -f conftest.err conftest.$ac_objext \
5761
 
      conftest$ac_exeext conftest.$ac_ext
5762
 
  CXXFLAGS="$save_CXXFLAGS"
5763
 
  ac_ext=c
5764
 
ac_cpp='$CPP $CPPFLAGS'
5765
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5766
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5767
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5768
 
 
5769
 
 
5770
 
fi
5771
 
 
5772
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5773
 
 echo "$as_me:$LINENO: result: yes" >&5
5774
 
echo "${ECHO_T}yes" >&6
5775
 
 :
5776
 
 CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
5777
 
else
5778
 
 echo "$as_me:$LINENO: result: no" >&5
5779
 
echo "${ECHO_T}no" >&6
5780
 
 :
5781
 
 
5782
 
fi
5783
 
 
5784
 
 
5785
 
echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
5786
 
echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6
5787
 
kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-%____p_%'`
5788
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5789
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5790
 
else
5791
 
 
5792
 
 
5793
 
 
5794
 
   ac_ext=cc
5795
 
ac_cpp='$CXXCPP $CPPFLAGS'
5796
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5799
 
 
5800
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5801
 
 
5802
 
 
5803
 
  save_CXXFLAGS="$CXXFLAGS"
5804
 
  CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
5805
 
  cat >conftest.$ac_ext <<_ACEOF
5806
 
/* confdefs.h.  */
5807
 
_ACEOF
5808
 
cat confdefs.h >>conftest.$ac_ext
5809
 
cat >>conftest.$ac_ext <<_ACEOF
5810
 
/* end confdefs.h.  */
5811
 
 
5812
 
int
5813
 
main ()
5814
 
{
5815
 
 return 0;
5816
 
  ;
5817
 
  return 0;
5818
 
}
5819
 
_ACEOF
5820
 
rm -f conftest.$ac_objext conftest$ac_exeext
5821
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5822
 
  (eval $ac_link) 2>conftest.er1
5823
 
  ac_status=$?
5824
 
  grep -v '^ *+' conftest.er1 >conftest.err
5825
 
  rm -f conftest.er1
5826
 
  cat conftest.err >&5
5827
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828
 
  (exit $ac_status); } &&
5829
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5830
 
                         || test ! -s conftest.err'
5831
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832
 
  (eval $ac_try) 2>&5
5833
 
  ac_status=$?
5834
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835
 
  (exit $ac_status); }; } &&
5836
 
         { ac_try='test -s conftest$ac_exeext'
5837
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838
 
  (eval $ac_try) 2>&5
5839
 
  ac_status=$?
5840
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841
 
  (exit $ac_status); }; }; then
5842
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5843
 
else
5844
 
  echo "$as_me: failed program was:" >&5
5845
 
sed 's/^/| /' conftest.$ac_ext >&5
5846
 
 
5847
 
fi
5848
 
rm -f conftest.err conftest.$ac_objext \
5849
 
      conftest$ac_exeext conftest.$ac_ext
5850
 
  CXXFLAGS="$save_CXXFLAGS"
5851
 
  ac_ext=c
5852
 
ac_cpp='$CPP $CPPFLAGS'
5853
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5854
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5856
 
 
5857
 
 
5858
 
fi
5859
 
 
5860
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5861
 
 echo "$as_me:$LINENO: result: yes" >&5
5862
 
echo "${ECHO_T}yes" >&6
5863
 
 :
5864
 
 CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
5865
 
else
5866
 
 echo "$as_me:$LINENO: result: no" >&5
5867
 
echo "${ECHO_T}no" >&6
5868
 
 :
5869
 
 
5870
 
fi
5871
 
 
5872
 
 
5873
 
echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
5874
 
echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6
5875
 
kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-%____p_%'`
5876
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5877
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5878
 
else
5879
 
 
5880
 
 
5881
 
 
5882
 
   ac_ext=cc
5883
 
ac_cpp='$CXXCPP $CPPFLAGS'
5884
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5885
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5886
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5887
 
 
5888
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5889
 
 
5890
 
 
5891
 
  save_CXXFLAGS="$CXXFLAGS"
5892
 
  CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
5893
 
  cat >conftest.$ac_ext <<_ACEOF
5894
 
/* confdefs.h.  */
5895
 
_ACEOF
5896
 
cat confdefs.h >>conftest.$ac_ext
5897
 
cat >>conftest.$ac_ext <<_ACEOF
5898
 
/* end confdefs.h.  */
5899
 
 
5900
 
int
5901
 
main ()
5902
 
{
5903
 
 return 0;
5904
 
  ;
5905
 
  return 0;
5906
 
}
5907
 
_ACEOF
5908
 
rm -f conftest.$ac_objext conftest$ac_exeext
5909
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910
 
  (eval $ac_link) 2>conftest.er1
5911
 
  ac_status=$?
5912
 
  grep -v '^ *+' conftest.er1 >conftest.err
5913
 
  rm -f conftest.er1
5914
 
  cat conftest.err >&5
5915
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916
 
  (exit $ac_status); } &&
5917
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5918
 
                         || test ! -s conftest.err'
5919
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920
 
  (eval $ac_try) 2>&5
5921
 
  ac_status=$?
5922
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923
 
  (exit $ac_status); }; } &&
5924
 
         { ac_try='test -s conftest$ac_exeext'
5925
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926
 
  (eval $ac_try) 2>&5
5927
 
  ac_status=$?
5928
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929
 
  (exit $ac_status); }; }; then
5930
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5931
 
else
5932
 
  echo "$as_me: failed program was:" >&5
5933
 
sed 's/^/| /' conftest.$ac_ext >&5
5934
 
 
5935
 
fi
5936
 
rm -f conftest.err conftest.$ac_objext \
5937
 
      conftest$ac_exeext conftest.$ac_ext
5938
 
  CXXFLAGS="$save_CXXFLAGS"
5939
 
  ac_ext=c
5940
 
ac_cpp='$CPP $CPPFLAGS'
5941
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5942
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5943
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5944
 
 
5945
 
 
5946
 
fi
5947
 
 
5948
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5949
 
 echo "$as_me:$LINENO: result: yes" >&5
5950
 
echo "${ECHO_T}yes" >&6
5951
 
 :
5952
 
 CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
5953
 
else
5954
 
 echo "$as_me:$LINENO: result: no" >&5
5955
 
echo "${ECHO_T}no" >&6
5956
 
 :
5957
 
 
5958
 
fi
5959
 
 
5960
 
 
5961
 
echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
5962
 
echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6
5963
 
kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-%____p_%'`
5964
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5965
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5966
 
else
5967
 
 
5968
 
 
5969
 
 
5970
 
   ac_ext=cc
5971
 
ac_cpp='$CXXCPP $CPPFLAGS'
5972
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5973
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5974
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5975
 
 
5976
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5977
 
 
5978
 
 
5979
 
  save_CXXFLAGS="$CXXFLAGS"
5980
 
  CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
5981
 
  cat >conftest.$ac_ext <<_ACEOF
5982
 
/* confdefs.h.  */
5983
 
_ACEOF
5984
 
cat confdefs.h >>conftest.$ac_ext
5985
 
cat >>conftest.$ac_ext <<_ACEOF
5986
 
/* end confdefs.h.  */
5987
 
 
5988
 
int
5989
 
main ()
5990
 
{
5991
 
 return 0;
5992
 
  ;
5993
 
  return 0;
5994
 
}
5995
 
_ACEOF
5996
 
rm -f conftest.$ac_objext conftest$ac_exeext
5997
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5998
 
  (eval $ac_link) 2>conftest.er1
5999
 
  ac_status=$?
6000
 
  grep -v '^ *+' conftest.er1 >conftest.err
6001
 
  rm -f conftest.er1
6002
 
  cat conftest.err >&5
6003
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004
 
  (exit $ac_status); } &&
6005
 
         { ac_try='test -z "$ac_cxx_werror_flag"
6006
 
                         || test ! -s conftest.err'
6007
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008
 
  (eval $ac_try) 2>&5
6009
 
  ac_status=$?
6010
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011
 
  (exit $ac_status); }; } &&
6012
 
         { ac_try='test -s conftest$ac_exeext'
6013
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014
 
  (eval $ac_try) 2>&5
6015
 
  ac_status=$?
6016
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017
 
  (exit $ac_status); }; }; then
6018
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
6019
 
else
6020
 
  echo "$as_me: failed program was:" >&5
6021
 
sed 's/^/| /' conftest.$ac_ext >&5
6022
 
 
6023
 
fi
6024
 
rm -f conftest.err conftest.$ac_objext \
6025
 
      conftest$ac_exeext conftest.$ac_ext
6026
 
  CXXFLAGS="$save_CXXFLAGS"
6027
 
  ac_ext=c
6028
 
ac_cpp='$CPP $CPPFLAGS'
6029
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6030
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6031
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6032
 
 
6033
 
 
6034
 
fi
6035
 
 
6036
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6037
 
 echo "$as_me:$LINENO: result: yes" >&5
6038
 
echo "${ECHO_T}yes" >&6
6039
 
 :
6040
 
 CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
6041
 
else
6042
 
 echo "$as_me:$LINENO: result: no" >&5
6043
 
echo "${ECHO_T}no" >&6
6044
 
 :
6045
 
 
6046
 
fi
6047
 
 
6048
 
 
6049
 
echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
6050
 
echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6
6051
 
kde_cache=`echo -one_per | sed 'y% .=/+-%____p_%'`
6052
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6053
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6054
 
else
6055
 
 
6056
 
 
6057
 
 
6058
 
   ac_ext=cc
6059
 
ac_cpp='$CXXCPP $CPPFLAGS'
6060
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6061
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6062
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6063
 
 
6064
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6065
 
 
6066
 
 
6067
 
  save_CXXFLAGS="$CXXFLAGS"
6068
 
  CXXFLAGS="$CXXFLAGS --one_per"
6069
 
  cat >conftest.$ac_ext <<_ACEOF
6070
 
/* confdefs.h.  */
6071
 
_ACEOF
6072
 
cat confdefs.h >>conftest.$ac_ext
6073
 
cat >>conftest.$ac_ext <<_ACEOF
6074
 
/* end confdefs.h.  */
6075
 
 
6076
 
int
6077
 
main ()
6078
 
{
6079
 
 return 0;
6080
 
  ;
6081
 
  return 0;
6082
 
}
6083
 
_ACEOF
6084
 
rm -f conftest.$ac_objext conftest$ac_exeext
6085
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6086
 
  (eval $ac_link) 2>conftest.er1
6087
 
  ac_status=$?
6088
 
  grep -v '^ *+' conftest.er1 >conftest.err
6089
 
  rm -f conftest.er1
6090
 
  cat conftest.err >&5
6091
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092
 
  (exit $ac_status); } &&
6093
 
         { ac_try='test -z "$ac_cxx_werror_flag"
6094
 
                         || test ! -s conftest.err'
6095
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096
 
  (eval $ac_try) 2>&5
6097
 
  ac_status=$?
6098
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099
 
  (exit $ac_status); }; } &&
6100
 
         { ac_try='test -s conftest$ac_exeext'
6101
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102
 
  (eval $ac_try) 2>&5
6103
 
  ac_status=$?
6104
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105
 
  (exit $ac_status); }; }; then
6106
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
6107
 
else
6108
 
  echo "$as_me: failed program was:" >&5
6109
 
sed 's/^/| /' conftest.$ac_ext >&5
6110
 
 
6111
 
fi
6112
 
rm -f conftest.err conftest.$ac_objext \
6113
 
      conftest$ac_exeext conftest.$ac_ext
6114
 
  CXXFLAGS="$save_CXXFLAGS"
6115
 
  ac_ext=c
6116
 
ac_cpp='$CPP $CPPFLAGS'
6117
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6118
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6119
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6120
 
 
6121
 
 
6122
 
fi
6123
 
 
6124
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6125
 
 echo "$as_me:$LINENO: result: yes" >&5
6126
 
echo "${ECHO_T}yes" >&6
6127
 
 :
6128
 
 CXXFLAGS="$CXXFLAGS --one_per"
6129
 
else
6130
 
 echo "$as_me:$LINENO: result: no" >&5
6131
 
echo "${ECHO_T}no" >&6
6132
 
 :
6133
 
 
6134
 
fi
6135
 
 
6136
 
  fi
6137
 
 
6138
 
    USE_RTTI=
6139
 
 
6140
 
 
6141
 
  case "$host" in
6142
 
      *-*-irix*)  test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
6143
 
      *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
6144
 
      *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
6145
 
      *-*-solaris*)
6146
 
        if test "$GXX" = yes; then
6147
 
          libstdcpp=`$CXX -print-file-name=libstdc++.so`
6148
 
          if test ! -f $libstdcpp; then
6149
 
             { { 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
6150
 
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;}
6151
 
   { (exit 1); exit 1; }; }
6152
 
          fi
6153
 
        fi
6154
 
        ;;
6155
 
  esac
6156
 
 
6157
 
  if test "x$kde_use_qt_emb" != "xyes"; then
6158
 
  __val=$CXX
6159
 
  __forbid=" -fno-rtti -rpath "
6160
 
  if test -n "$__val"; then
6161
 
    __new=""
6162
 
    ac_save_IFS=$IFS
6163
 
    IFS="       "
6164
 
    for i in $__val; do
6165
 
      case "$__forbid" in
6166
 
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
6167
 
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
6168
 
        *) # Careful to not add spaces, where there were none, because otherwise
6169
 
           # libtool gets confused, if we change e.g. CXX
6170
 
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6171
 
      esac
6172
 
    done
6173
 
    IFS=$ac_save_IFS
6174
 
    CXX=$__new
6175
 
  fi
6176
 
 
6177
 
  __val=$CXXFLAGS
6178
 
  __forbid=" -fno-rtti -rpath "
6179
 
  if test -n "$__val"; then
6180
 
    __new=""
6181
 
    ac_save_IFS=$IFS
6182
 
    IFS="       "
6183
 
    for i in $__val; do
6184
 
      case "$__forbid" in
6185
 
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
6186
 
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
6187
 
        *) # Careful to not add spaces, where there were none, because otherwise
6188
 
           # libtool gets confused, if we change e.g. CXX
6189
 
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6190
 
      esac
6191
 
    done
6192
 
    IFS=$ac_save_IFS
6193
 
    CXXFLAGS=$__new
6194
 
  fi
6195
 
 
6196
 
else
6197
 
  __val=$CXX
6198
 
  __forbid=" -rpath "
6199
 
  if test -n "$__val"; then
6200
 
    __new=""
6201
 
    ac_save_IFS=$IFS
6202
 
    IFS="       "
6203
 
    for i in $__val; do
6204
 
      case "$__forbid" in
6205
 
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
6206
 
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
6207
 
        *) # Careful to not add spaces, where there were none, because otherwise
6208
 
           # libtool gets confused, if we change e.g. CXX
6209
 
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6210
 
      esac
6211
 
    done
6212
 
    IFS=$ac_save_IFS
6213
 
    CXX=$__new
6214
 
  fi
6215
 
 
6216
 
  __val=$CXXFLAGS
6217
 
  __forbid=" -rpath "
6218
 
  if test -n "$__val"; then
6219
 
    __new=""
6220
 
    ac_save_IFS=$IFS
6221
 
    IFS="       "
6222
 
    for i in $__val; do
6223
 
      case "$__forbid" in
6224
 
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
6225
 
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
6226
 
        *) # Careful to not add spaces, where there were none, because otherwise
6227
 
           # libtool gets confused, if we change e.g. CXX
6228
 
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6229
 
      esac
6230
 
    done
6231
 
    IFS=$ac_save_IFS
6232
 
    CXXFLAGS=$__new
6233
 
  fi
6234
 
 
6235
 
fi
6236
 
 
6237
 
 
6238
 
  ac_ext=cc
6239
 
ac_cpp='$CXXCPP $CPPFLAGS'
6240
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6241
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6242
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6243
 
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6244
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6245
 
if test -z "$CXXCPP"; then
6246
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6247
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6248
 
else
6249
 
      # Double quotes because CXXCPP needs to be expanded
6250
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
6251
 
    do
6252
 
      ac_preproc_ok=false
6253
 
for ac_cxx_preproc_warn_flag in '' yes
6254
 
do
6255
 
  # Use a header file that comes with gcc, so configuring glibc
6256
 
  # with a fresh cross-compiler works.
6257
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6258
 
  # <limits.h> exists even on freestanding compilers.
6259
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6260
 
  # not just through cpp. "Syntax error" is here to catch this case.
6261
 
  cat >conftest.$ac_ext <<_ACEOF
6262
 
/* confdefs.h.  */
6263
 
_ACEOF
6264
 
cat confdefs.h >>conftest.$ac_ext
6265
 
cat >>conftest.$ac_ext <<_ACEOF
6266
 
/* end confdefs.h.  */
6267
 
#ifdef __STDC__
6268
 
# include <limits.h>
6269
 
#else
6270
 
# include <assert.h>
6271
 
#endif
6272
 
                     Syntax error
6273
 
_ACEOF
6274
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6275
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6276
 
  ac_status=$?
6277
 
  grep -v '^ *+' conftest.er1 >conftest.err
6278
 
  rm -f conftest.er1
6279
 
  cat conftest.err >&5
6280
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281
 
  (exit $ac_status); } >/dev/null; then
6282
 
  if test -s conftest.err; then
6283
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6284
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6285
 
  else
6286
 
    ac_cpp_err=
6287
 
  fi
6288
 
else
6289
 
  ac_cpp_err=yes
6290
 
fi
6291
 
if test -z "$ac_cpp_err"; then
6292
 
  :
6293
 
else
6294
 
  echo "$as_me: failed program was:" >&5
6295
 
sed 's/^/| /' conftest.$ac_ext >&5
6296
 
 
6297
 
  # Broken: fails on valid input.
6298
 
continue
6299
 
fi
6300
 
rm -f conftest.err conftest.$ac_ext
6301
 
 
6302
 
  # OK, works on sane cases.  Now check whether non-existent headers
6303
 
  # can be detected and how.
6304
 
  cat >conftest.$ac_ext <<_ACEOF
6305
 
/* confdefs.h.  */
6306
 
_ACEOF
6307
 
cat confdefs.h >>conftest.$ac_ext
6308
 
cat >>conftest.$ac_ext <<_ACEOF
6309
 
/* end confdefs.h.  */
6310
 
#include <ac_nonexistent.h>
6311
 
_ACEOF
6312
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6313
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6314
 
  ac_status=$?
6315
 
  grep -v '^ *+' conftest.er1 >conftest.err
6316
 
  rm -f conftest.er1
6317
 
  cat conftest.err >&5
6318
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319
 
  (exit $ac_status); } >/dev/null; then
6320
 
  if test -s conftest.err; then
6321
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6322
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6323
 
  else
6324
 
    ac_cpp_err=
6325
 
  fi
6326
 
else
6327
 
  ac_cpp_err=yes
6328
 
fi
6329
 
if test -z "$ac_cpp_err"; then
6330
 
  # Broken: success on invalid input.
6331
 
continue
6332
 
else
6333
 
  echo "$as_me: failed program was:" >&5
6334
 
sed 's/^/| /' conftest.$ac_ext >&5
6335
 
 
6336
 
  # Passes both tests.
6337
 
ac_preproc_ok=:
6338
 
break
6339
 
fi
6340
 
rm -f conftest.err conftest.$ac_ext
6341
 
 
6342
 
done
6343
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6344
 
rm -f conftest.err conftest.$ac_ext
6345
 
if $ac_preproc_ok; then
6346
 
  break
6347
 
fi
6348
 
 
6349
 
    done
6350
 
    ac_cv_prog_CXXCPP=$CXXCPP
6351
 
 
6352
 
fi
6353
 
  CXXCPP=$ac_cv_prog_CXXCPP
6354
 
else
6355
 
  ac_cv_prog_CXXCPP=$CXXCPP
6356
 
fi
6357
 
echo "$as_me:$LINENO: result: $CXXCPP" >&5
6358
 
echo "${ECHO_T}$CXXCPP" >&6
6359
 
ac_preproc_ok=false
6360
 
for ac_cxx_preproc_warn_flag in '' yes
6361
 
do
6362
 
  # Use a header file that comes with gcc, so configuring glibc
6363
 
  # with a fresh cross-compiler works.
6364
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6365
 
  # <limits.h> exists even on freestanding compilers.
6366
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6367
 
  # not just through cpp. "Syntax error" is here to catch this case.
6368
 
  cat >conftest.$ac_ext <<_ACEOF
6369
 
/* confdefs.h.  */
6370
 
_ACEOF
6371
 
cat confdefs.h >>conftest.$ac_ext
6372
 
cat >>conftest.$ac_ext <<_ACEOF
6373
 
/* end confdefs.h.  */
6374
 
#ifdef __STDC__
6375
 
# include <limits.h>
6376
 
#else
6377
 
# include <assert.h>
6378
 
#endif
6379
 
                     Syntax error
6380
 
_ACEOF
6381
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6382
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6383
 
  ac_status=$?
6384
 
  grep -v '^ *+' conftest.er1 >conftest.err
6385
 
  rm -f conftest.er1
6386
 
  cat conftest.err >&5
6387
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388
 
  (exit $ac_status); } >/dev/null; then
6389
 
  if test -s conftest.err; then
6390
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6391
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6392
 
  else
6393
 
    ac_cpp_err=
6394
 
  fi
6395
 
else
6396
 
  ac_cpp_err=yes
6397
 
fi
6398
 
if test -z "$ac_cpp_err"; then
6399
 
  :
6400
 
else
6401
 
  echo "$as_me: failed program was:" >&5
6402
 
sed 's/^/| /' conftest.$ac_ext >&5
6403
 
 
6404
 
  # Broken: fails on valid input.
6405
 
continue
6406
 
fi
6407
 
rm -f conftest.err conftest.$ac_ext
6408
 
 
6409
 
  # OK, works on sane cases.  Now check whether non-existent headers
6410
 
  # can be detected and how.
6411
 
  cat >conftest.$ac_ext <<_ACEOF
6412
 
/* confdefs.h.  */
6413
 
_ACEOF
6414
 
cat confdefs.h >>conftest.$ac_ext
6415
 
cat >>conftest.$ac_ext <<_ACEOF
6416
 
/* end confdefs.h.  */
6417
 
#include <ac_nonexistent.h>
6418
 
_ACEOF
6419
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6420
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6421
 
  ac_status=$?
6422
 
  grep -v '^ *+' conftest.er1 >conftest.err
6423
 
  rm -f conftest.er1
6424
 
  cat conftest.err >&5
6425
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426
 
  (exit $ac_status); } >/dev/null; then
6427
 
  if test -s conftest.err; then
6428
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6429
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6430
 
  else
6431
 
    ac_cpp_err=
6432
 
  fi
6433
 
else
6434
 
  ac_cpp_err=yes
6435
 
fi
6436
 
if test -z "$ac_cpp_err"; then
6437
 
  # Broken: success on invalid input.
6438
 
continue
6439
 
else
6440
 
  echo "$as_me: failed program was:" >&5
6441
 
sed 's/^/| /' conftest.$ac_ext >&5
6442
 
 
6443
 
  # Passes both tests.
6444
 
ac_preproc_ok=:
6445
 
break
6446
 
fi
6447
 
rm -f conftest.err conftest.$ac_ext
6448
 
 
6449
 
done
6450
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6451
 
rm -f conftest.err conftest.$ac_ext
6452
 
if $ac_preproc_ok; then
6453
 
  :
6454
 
else
6455
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6456
 
See \`config.log' for more details." >&5
6457
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6458
 
See \`config.log' for more details." >&2;}
6459
 
   { (exit 1); exit 1; }; }
6460
 
fi
6461
 
 
6462
 
ac_ext=c
6463
 
ac_cpp='$CPP $CPPFLAGS'
6464
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6465
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6466
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6467
 
 
6468
 
 
6469
 
  # the following is to allow programs, that are known to
6470
 
  # have problems when compiled with -O2
6471
 
  if test -n "$CXXFLAGS"; then
6472
 
      kde_safe_IFS=$IFS
6473
 
      IFS=" "
6474
 
      NOOPT_CXXFLAGS=""
6475
 
      for i in $CXXFLAGS; do
6476
 
        case $i in
6477
 
          -O*)
6478
 
                ;;
6479
 
          *)
6480
 
                NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS $i"
6481
 
                ;;
6482
 
        esac
6483
 
      done
6484
 
      IFS=$kde_safe_IFS
6485
 
  fi
6486
 
 
6487
 
  if test -n "$CFLAGS"; then
6488
 
      kde_safe_IFS=$IFS
6489
 
      IFS=" "
6490
 
      NOOPT_CFLAGS=""
6491
 
      for i in $CFLAGS; do
6492
 
        case $i in
6493
 
          -O*)
6494
 
                ;;
6495
 
          *)
6496
 
                NOOPT_CFLAGS="$NOOPT_CFLAGS $i"
6497
 
                ;;
6498
 
        esac
6499
 
      done
6500
 
      IFS=$kde_safe_IFS
6501
 
  fi
6502
 
 
6503
 
  if test "x$kde_use_qt_emb" = "xyes"; then
6504
 
    NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS -fno-rtti -DQWS"
6505
 
  fi
6506
 
 
6507
 
 
6508
 
 
6509
 
 
6510
 
 
6511
 
  # Check whether --enable-final or --disable-final was given.
6512
 
if test "${enable_final+set}" = set; then
6513
 
  enableval="$enable_final"
6514
 
  kde_use_final=$enableval
6515
 
else
6516
 
  kde_use_final=no
6517
 
fi;
6518
 
 
6519
 
 
6520
 
  REPO=""
6521
 
  NOREPO=""
6522
 
 
6523
 
 
6524
 
echo "$as_me:$LINENO: checking whether $CXX supports -frepo" >&5
6525
 
echo $ECHO_N "checking whether $CXX supports -frepo... $ECHO_C" >&6
6526
 
kde_cache=`echo frepo | sed 'y% .=/+-%____p_%'`
6527
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6528
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6529
 
else
6530
 
 
6531
 
 
6532
 
 
6533
 
   ac_ext=cc
6534
 
ac_cpp='$CXXCPP $CPPFLAGS'
6535
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6536
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6537
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6538
 
 
6539
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6540
 
 
6541
 
 
6542
 
  save_CXXFLAGS="$CXXFLAGS"
6543
 
  CXXFLAGS="$CXXFLAGS -frepo"
6544
 
  cat >conftest.$ac_ext <<_ACEOF
6545
 
/* confdefs.h.  */
6546
 
_ACEOF
6547
 
cat confdefs.h >>conftest.$ac_ext
6548
 
cat >>conftest.$ac_ext <<_ACEOF
6549
 
/* end confdefs.h.  */
6550
 
 
6551
 
int
6552
 
main ()
6553
 
{
6554
 
 return 0;
6555
 
  ;
6556
 
  return 0;
6557
 
}
6558
 
_ACEOF
6559
 
rm -f conftest.$ac_objext conftest$ac_exeext
6560
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6561
 
  (eval $ac_link) 2>conftest.er1
6562
 
  ac_status=$?
6563
 
  grep -v '^ *+' conftest.er1 >conftest.err
6564
 
  rm -f conftest.er1
6565
 
  cat conftest.err >&5
6566
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567
 
  (exit $ac_status); } &&
6568
 
         { ac_try='test -z "$ac_cxx_werror_flag"
6569
 
                         || test ! -s conftest.err'
6570
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571
 
  (eval $ac_try) 2>&5
6572
 
  ac_status=$?
6573
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574
 
  (exit $ac_status); }; } &&
6575
 
         { ac_try='test -s conftest$ac_exeext'
6576
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577
 
  (eval $ac_try) 2>&5
6578
 
  ac_status=$?
6579
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580
 
  (exit $ac_status); }; }; then
6581
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
6582
 
else
6583
 
  echo "$as_me: failed program was:" >&5
6584
 
sed 's/^/| /' conftest.$ac_ext >&5
6585
 
 
6586
 
fi
6587
 
rm -f conftest.err conftest.$ac_objext \
6588
 
      conftest$ac_exeext conftest.$ac_ext
6589
 
  CXXFLAGS="$save_CXXFLAGS"
6590
 
  ac_ext=c
6591
 
ac_cpp='$CPP $CPPFLAGS'
6592
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6595
 
 
6596
 
 
6597
 
fi
6598
 
 
6599
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6600
 
 echo "$as_me:$LINENO: result: yes" >&5
6601
 
echo "${ECHO_T}yes" >&6
6602
 
 :
6603
 
 
6604
 
     REPO="-frepo"
6605
 
     NOREPO="-fno-repo"
6606
 
 
6607
 
else
6608
 
 echo "$as_me:$LINENO: result: no" >&5
6609
 
echo "${ECHO_T}no" >&6
6610
 
 :
6611
 
 
6612
 
fi
6613
 
 
6614
 
 
6615
 
  if test -z "$REPO"; then
6616
 
 
6617
 
echo "$as_me:$LINENO: checking whether $CXX supports -instances=explicit" >&5
6618
 
echo $ECHO_N "checking whether $CXX supports -instances=explicit... $ECHO_C" >&6
6619
 
kde_cache=`echo instances=explicit | sed 'y% .=/+-%____p_%'`
6620
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6621
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6622
 
else
6623
 
 
6624
 
 
6625
 
 
6626
 
   ac_ext=cc
6627
 
ac_cpp='$CXXCPP $CPPFLAGS'
6628
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6629
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6630
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6631
 
 
6632
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6633
 
 
6634
 
 
6635
 
  save_CXXFLAGS="$CXXFLAGS"
6636
 
  CXXFLAGS="$CXXFLAGS -instances=explicit"
6637
 
  cat >conftest.$ac_ext <<_ACEOF
6638
 
/* confdefs.h.  */
6639
 
_ACEOF
6640
 
cat confdefs.h >>conftest.$ac_ext
6641
 
cat >>conftest.$ac_ext <<_ACEOF
6642
 
/* end confdefs.h.  */
6643
 
 
6644
 
int
6645
 
main ()
6646
 
{
6647
 
 return 0;
6648
 
  ;
6649
 
  return 0;
6650
 
}
6651
 
_ACEOF
6652
 
rm -f conftest.$ac_objext conftest$ac_exeext
6653
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6654
 
  (eval $ac_link) 2>conftest.er1
6655
 
  ac_status=$?
6656
 
  grep -v '^ *+' conftest.er1 >conftest.err
6657
 
  rm -f conftest.er1
6658
 
  cat conftest.err >&5
6659
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660
 
  (exit $ac_status); } &&
6661
 
         { ac_try='test -z "$ac_cxx_werror_flag"
6662
 
                         || test ! -s conftest.err'
6663
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664
 
  (eval $ac_try) 2>&5
6665
 
  ac_status=$?
6666
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667
 
  (exit $ac_status); }; } &&
6668
 
         { ac_try='test -s conftest$ac_exeext'
6669
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670
 
  (eval $ac_try) 2>&5
6671
 
  ac_status=$?
6672
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673
 
  (exit $ac_status); }; }; then
6674
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
6675
 
else
6676
 
  echo "$as_me: failed program was:" >&5
6677
 
sed 's/^/| /' conftest.$ac_ext >&5
6678
 
 
6679
 
fi
6680
 
rm -f conftest.err conftest.$ac_objext \
6681
 
      conftest$ac_exeext conftest.$ac_ext
6682
 
  CXXFLAGS="$save_CXXFLAGS"
6683
 
  ac_ext=c
6684
 
ac_cpp='$CPP $CPPFLAGS'
6685
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6686
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6687
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6688
 
 
6689
 
 
6690
 
fi
6691
 
 
6692
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6693
 
 echo "$as_me:$LINENO: result: yes" >&5
6694
 
echo "${ECHO_T}yes" >&6
6695
 
 :
6696
 
 
6697
 
     REPO="-instances=explicit"
6698
 
     NOREPO="-instances=extern"
6699
 
 
6700
 
else
6701
 
 echo "$as_me:$LINENO: result: no" >&5
6702
 
echo "${ECHO_T}no" >&6
6703
 
 :
6704
 
 
6705
 
fi
6706
 
 
6707
 
  fi
6708
 
 
6709
 
  if test -n "$REPO"; then
6710
 
 
6711
 
cat >>confdefs.h <<_ACEOF
6712
 
#define HAVE_TEMPLATE_REPOSITORY 1
6713
 
_ACEOF
6714
 
 
6715
 
 
6716
 
  fi
6717
 
 
6718
 
 
6719
 
 
6720
 
 
6721
 
  if test "x$kde_use_final" = "xyes"; then
6722
 
      KDE_USE_FINAL_TRUE=""
6723
 
      KDE_USE_FINAL_FALSE="#"
6724
 
   else
6725
 
      KDE_USE_FINAL_TRUE="#"
6726
 
      KDE_USE_FINAL_FALSE=""
6727
 
  fi
6728
 
 
6729
 
 
6730
 
 
6731
 
  # Check whether --enable-closure or --disable-closure was given.
6732
 
if test "${enable_closure+set}" = set; then
6733
 
  enableval="$enable_closure"
6734
 
  kde_use_closure=$enableval
6735
 
else
6736
 
  kde_use_closure=yes
6737
 
fi;
6738
 
 
6739
 
  if test "x$kde_use_closure" = "xyes"; then
6740
 
       KDE_USE_CLOSURE_TRUE=""
6741
 
       KDE_USE_CLOSURE_FALSE="#"
6742
 
#       CXXFLAGS="$CXXFLAGS $REPO"
6743
 
  else
6744
 
       KDE_USE_CLOSURE_TRUE="#"
6745
 
       KDE_USE_CLOSURE_FALSE=""
6746
 
  fi
6747
 
 
6748
 
 
6749
 
 
6750
 
 
6751
 
 
6752
 
 
6753
 
  KDE_CXXFLAGS=
6754
 
 
6755
 
 
6756
 
 
6757
 
CXXFLAGS="$NOOPT_CXXFLAGS" CFLAGS="$NOOPT_CFLAGS"
6758
 
# Check whether --enable-shared or --disable-shared was given.
6759
 
if test "${enable_shared+set}" = set; then
6760
 
  enableval="$enable_shared"
6761
 
  p=${PACKAGE-default}
6762
 
case $enableval in
6763
 
yes) enable_shared=yes ;;
6764
 
no) enable_shared=no ;;
6765
 
*)
6766
 
  enable_shared=no
6767
 
  # Look at the argument we got.  We use all the common list separators.
6768
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6769
 
  for pkg in $enableval; do
6770
 
    if test "X$pkg" = "X$p"; then
6771
 
      enable_shared=yes
6772
 
    fi
6773
 
  done
6774
 
  IFS="$ac_save_ifs"
6775
 
  ;;
6776
 
esac
6777
 
else
6778
 
  enable_shared=yes
6779
 
fi;
6780
 
# Check whether --enable-static or --disable-static was given.
6781
 
if test "${enable_static+set}" = set; then
6782
 
  enableval="$enable_static"
6783
 
  p=${PACKAGE-default}
6784
 
case $enableval in
6785
 
yes) enable_static=yes ;;
6786
 
no) enable_static=no ;;
6787
 
*)
6788
 
  enable_static=no
6789
 
  # Look at the argument we got.  We use all the common list separators.
6790
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6791
 
  for pkg in $enableval; do
6792
 
    if test "X$pkg" = "X$p"; then
6793
 
      enable_static=yes
6794
 
    fi
6795
 
  done
6796
 
  IFS="$ac_save_ifs"
6797
 
  ;;
6798
 
esac
6799
 
else
6800
 
  enable_static=no
6801
 
fi;
6802
 
 
6803
 
# Check whether --enable-fast-install or --disable-fast-install was given.
6804
 
if test "${enable_fast_install+set}" = set; then
6805
 
  enableval="$enable_fast_install"
6806
 
  p=${PACKAGE-default}
6807
 
case $enableval in
6808
 
yes) enable_fast_install=yes ;;
6809
 
no) enable_fast_install=no ;;
6810
 
*)
6811
 
  enable_fast_install=no
6812
 
  # Look at the argument we got.  We use all the common list separators.
6813
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6814
 
  for pkg in $enableval; do
6815
 
    if test "X$pkg" = "X$p"; then
6816
 
      enable_fast_install=yes
6817
 
    fi
6818
 
  done
6819
 
  IFS="$ac_save_ifs"
6820
 
  ;;
6821
 
esac
6822
 
else
6823
 
  enable_fast_install=yes
6824
 
fi;
6825
 
 
6826
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
6827
 
if test "${with_gnu_ld+set}" = set; then
6828
 
  withval="$with_gnu_ld"
6829
 
  test "$withval" = no || with_gnu_ld=yes
6830
 
else
6831
 
  with_gnu_ld=no
6832
 
fi;
6833
 
ac_prog=ld
6834
 
if test "$GCC" = yes; then
6835
 
  # Check if gcc -print-prog-name=ld gives a path.
6836
 
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6837
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6838
 
  case $host in
6839
 
  *-*-mingw*)
6840
 
    # gcc leaves a trailing carriage return which upsets mingw
6841
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6842
 
  *)
6843
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6844
 
  esac
6845
 
  case $ac_prog in
6846
 
    # Accept absolute paths.
6847
 
    [\\/]* | [A-Za-z]:[\\/]*)
6848
 
      re_direlt='/[^/][^/]*/\.\./'
6849
 
      # Canonicalize the path of ld
6850
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6851
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6852
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6853
 
      done
6854
 
      test -z "$LD" && LD="$ac_prog"
6855
 
      ;;
6856
 
  "")
6857
 
    # If it fails, then pretend we aren't using GCC.
6858
 
    ac_prog=ld
6859
 
    ;;
6860
 
  *)
6861
 
    # If it is relative, then search for the first ld in PATH.
6862
 
    with_gnu_ld=unknown
6863
 
    ;;
6864
 
  esac
6865
 
elif test "$with_gnu_ld" = yes; then
6866
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
6867
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6868
 
else
6869
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6870
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6871
 
fi
6872
 
if test "${lt_cv_path_LD+set}" = set; then
6873
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6874
 
else
6875
 
  if test -z "$LD"; then
6876
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6877
 
  for ac_dir in $PATH; do
6878
 
    test -z "$ac_dir" && ac_dir=.
6879
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6880
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
6881
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
6882
 
      # but apparently some GNU ld's only accept -v.
6883
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
6884
 
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6885
 
        test "$with_gnu_ld" != no && break
6886
 
      else
6887
 
        test "$with_gnu_ld" != yes && break
6888
 
      fi
6889
 
    fi
6890
 
  done
6891
 
  IFS="$ac_save_ifs"
6892
 
else
6893
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6894
 
fi
6895
 
fi
6896
 
 
6897
 
LD="$lt_cv_path_LD"
6898
 
if test -n "$LD"; then
6899
 
  echo "$as_me:$LINENO: result: $LD" >&5
6900
 
echo "${ECHO_T}$LD" >&6
6901
 
else
6902
 
  echo "$as_me:$LINENO: result: no" >&5
6903
 
echo "${ECHO_T}no" >&6
6904
 
fi
6905
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6906
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6907
 
   { (exit 1); exit 1; }; }
6908
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6909
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6910
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
6911
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6912
 
else
6913
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6914
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6915
 
  lt_cv_prog_gnu_ld=yes
6916
 
else
6917
 
  lt_cv_prog_gnu_ld=no
6918
 
fi
6919
 
fi
6920
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6921
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6922
 
with_gnu_ld=$lt_cv_prog_gnu_ld
6923
 
 
6924
 
 
6925
 
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6926
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6927
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
6928
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6929
 
else
6930
 
  lt_cv_ld_reload_flag='-r'
6931
 
fi
6932
 
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6933
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6934
 
reload_flag=$lt_cv_ld_reload_flag
6935
 
test -n "$reload_flag" && reload_flag=" $reload_flag"
6936
 
 
6937
 
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6938
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6939
 
if test "${lt_cv_path_NM+set}" = set; then
6940
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6941
 
else
6942
 
  if test -n "$NM"; then
6943
 
  # Let the user override the test.
6944
 
  lt_cv_path_NM="$NM"
6945
 
else
6946
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6947
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6948
 
    test -z "$ac_dir" && ac_dir=.
6949
 
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
6950
 
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
6951
 
      # Check to see if the nm accepts a BSD-compat flag.
6952
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6953
 
      #   nm: unknown option "B" ignored
6954
 
      # Tru64's nm complains that /dev/null is an invalid object file
6955
 
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
6956
 
        lt_cv_path_NM="$tmp_nm -B"
6957
 
        break
6958
 
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
6959
 
        lt_cv_path_NM="$tmp_nm -p"
6960
 
        break
6961
 
      else
6962
 
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6963
 
        continue # so that we can try to find one that supports BSD flags
6964
 
      fi
6965
 
    fi
6966
 
  done
6967
 
  IFS="$ac_save_ifs"
6968
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6969
 
fi
6970
 
fi
6971
 
 
6972
 
NM="$lt_cv_path_NM"
6973
 
echo "$as_me:$LINENO: result: $NM" >&5
6974
 
echo "${ECHO_T}$NM" >&6
6975
 
 
6976
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
6977
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6978
 
LN_S=$as_ln_s
6979
 
if test "$LN_S" = "ln -s"; then
6980
 
  echo "$as_me:$LINENO: result: yes" >&5
6981
 
echo "${ECHO_T}yes" >&6
6982
 
else
6983
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6984
 
echo "${ECHO_T}no, using $LN_S" >&6
6985
 
fi
6986
 
 
6987
 
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
6988
 
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
6989
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
6990
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6991
 
else
6992
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6993
 
lt_cv_file_magic_test_file=
6994
 
lt_cv_deplibs_check_method='unknown'
6995
 
# Need to set the preceding variable on all platforms that support
6996
 
# interlibrary dependencies.
6997
 
# 'none' -- dependencies not supported.
6998
 
# `unknown' -- same as none, but documents that we really don't know.
6999
 
# 'pass_all' -- all dependencies passed with no checks.
7000
 
# 'test_compile' -- check by making test program.
7001
 
# 'file_magic [regex]' -- check by looking for files in library path
7002
 
# which responds to the $file_magic_cmd with a given egrep regex.
7003
 
# If you have `file' or equivalent on your system and you're not sure
7004
 
# whether `pass_all' will *always* work, you probably want this one.
7005
 
 
7006
 
case $host_os in
7007
 
aix*)
7008
 
  lt_cv_deplibs_check_method=pass_all
7009
 
  ;;
7010
 
 
7011
 
beos*)
7012
 
  lt_cv_deplibs_check_method=pass_all
7013
 
  ;;
7014
 
 
7015
 
bsdi4*)
7016
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7017
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
7018
 
  lt_cv_file_magic_test_file=/shlib/libc.so
7019
 
  ;;
7020
 
 
7021
 
cygwin* | mingw* |pw32*)
7022
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7023
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
7024
 
  ;;
7025
 
 
7026
 
darwin* | rhapsody*)
7027
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
7028
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
7029
 
  case "$host_os" in
7030
 
  rhapsody* | darwin1.012)
7031
 
    lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
7032
 
    ;;
7033
 
  *) # Darwin 1.3 on
7034
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
7035
 
    ;;
7036
 
  esac
7037
 
  ;;
7038
 
 
7039
 
freebsd* )
7040
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7041
 
    case $host_cpu in
7042
 
    i*86 )
7043
 
      # Not sure whether the presence of OpenBSD here was a mistake.
7044
 
      # Let's accept both of them until this is cleared up.
7045
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
7046
 
      lt_cv_file_magic_cmd=/usr/bin/file
7047
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7048
 
      ;;
7049
 
    esac
7050
 
  else
7051
 
    lt_cv_deplibs_check_method=pass_all
7052
 
  fi
7053
 
  ;;
7054
 
 
7055
 
gnu*)
7056
 
  lt_cv_deplibs_check_method=pass_all
7057
 
  ;;
7058
 
 
7059
 
hpux10.20*|hpux11*)
7060
 
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7061
 
  lt_cv_file_magic_cmd=/usr/bin/file
7062
 
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
7063
 
  ;;
7064
 
 
7065
 
irix5* | irix6*)
7066
 
  case $host_os in
7067
 
  irix5*)
7068
 
    # this will be overridden with pass_all, but let us keep it just in case
7069
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
7070
 
    ;;
7071
 
  *)
7072
 
    case $LD in
7073
 
    *-32|*"-32 ") libmagic=32-bit;;
7074
 
    *-n32|*"-n32 ") libmagic=N32;;
7075
 
    *-64|*"-64 ") libmagic=64-bit;;
7076
 
    *) libmagic=never-match;;
7077
 
    esac
7078
 
    # this will be overridden with pass_all, but let us keep it just in case
7079
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
7080
 
    ;;
7081
 
  esac
7082
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
7083
 
  lt_cv_deplibs_check_method=pass_all
7084
 
  ;;
7085
 
 
7086
 
# This must be Linux ELF.
7087
 
linux*)
7088
 
  case $host_cpu in
7089
 
  alpha* | i*86 | powerpc* | sparc* | ia64* | s390* | m68k* | arm* | mips* | hppa* | sh* )
7090
 
    lt_cv_deplibs_check_method=pass_all ;;
7091
 
  *)
7092
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
7093
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
7094
 
  esac
7095
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
7096
 
  ;;
7097
 
 
7098
 
netbsd*)
7099
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7100
 
    lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
7101
 
  else
7102
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
7103
 
  fi
7104
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
7105
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7106
 
  ;;
7107
 
 
7108
 
openbsd* )
7109
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7110
 
    case "$host_cpu" in
7111
 
    i*86 )
7112
 
            lt_cv_deplibs_check_method='file_magic OpenBSD/i[3-9]86 demand paged shared library'
7113
 
            lt_cv_file_magic_cmd=/usr/bin/file
7114
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7115
 
      ;;
7116
 
    esac
7117
 
  else
7118
 
    lt_cv_deplibs_check_method=pass_all
7119
 
  fi
7120
 
  ;;
7121
 
 
7122
 
newsos6)
7123
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7124
 
  lt_cv_file_magic_cmd=/usr/bin/file
7125
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7126
 
  ;;
7127
 
 
7128
 
osf3* | osf4* | osf5*)
7129
 
  # this will be overridden with pass_all, but let us keep it just in case
7130
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
7131
 
  lt_cv_file_magic_test_file=/shlib/libc.so
7132
 
  lt_cv_deplibs_check_method=pass_all
7133
 
  ;;
7134
 
 
7135
 
sco3.2v5*)
7136
 
  lt_cv_deplibs_check_method=pass_all
7137
 
  ;;
7138
 
 
7139
 
solaris*)
7140
 
  lt_cv_deplibs_check_method=pass_all
7141
 
  lt_cv_file_magic_test_file=/lib/libc.so
7142
 
  ;;
7143
 
 
7144
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7145
 
  case $host_vendor in
7146
 
  ncr)
7147
 
    lt_cv_deplibs_check_method=pass_all
7148
 
    ;;
7149
 
  motorola)
7150
 
    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]'
7151
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7152
 
    ;;
7153
 
  esac
7154
 
  ;;
7155
 
esac
7156
 
 
7157
 
fi
7158
 
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7159
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7160
 
file_magic_cmd=$lt_cv_file_magic_cmd
7161
 
deplibs_check_method=$lt_cv_deplibs_check_method
7162
 
 
7163
 
 
7164
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7165
 
 
7166
 
# Only perform the check for file, if the check method requires it
7167
 
case $deplibs_check_method in
7168
 
file_magic*)
7169
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7170
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7171
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7172
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7173
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7174
 
else
7175
 
  case $MAGIC_CMD in
7176
 
  /*)
7177
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7178
 
  ;;
7179
 
  ?:/*)
7180
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
7181
 
  ;;
7182
 
  *)
7183
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
7184
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7185
 
  ac_dummy="/usr/bin:$PATH"
7186
 
  for ac_dir in $ac_dummy; do
7187
 
    test -z "$ac_dir" && ac_dir=.
7188
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
7189
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7190
 
      if test -n "$file_magic_test_file"; then
7191
 
        case $deplibs_check_method in
7192
 
        "file_magic "*)
7193
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7194
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7195
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7196
 
            egrep "$file_magic_regex" > /dev/null; then
7197
 
            :
7198
 
          else
7199
 
            cat <<EOF 1>&2
7200
 
 
7201
 
*** Warning: the command libtool uses to detect shared libraries,
7202
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7203
 
*** The result is that libtool may fail to recognize shared libraries
7204
 
*** as such.  This will affect the creation of libtool libraries that
7205
 
*** depend on shared libraries, but programs linked with such libtool
7206
 
*** libraries will work regardless of this problem.  Nevertheless, you
7207
 
*** may want to report the problem to your system manager and/or to
7208
 
*** bug-libtool@gnu.org
7209
 
 
7210
 
EOF
7211
 
          fi ;;
7212
 
        esac
7213
 
      fi
7214
 
      break
7215
 
    fi
7216
 
  done
7217
 
  IFS="$ac_save_ifs"
7218
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
7219
 
  ;;
7220
 
esac
7221
 
fi
7222
 
 
7223
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7224
 
if test -n "$MAGIC_CMD"; then
7225
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7226
 
echo "${ECHO_T}$MAGIC_CMD" >&6
7227
 
else
7228
 
  echo "$as_me:$LINENO: result: no" >&5
7229
 
echo "${ECHO_T}no" >&6
7230
 
fi
7231
 
 
7232
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
7233
 
  if test -n "$ac_tool_prefix"; then
7234
 
    echo "$as_me:$LINENO: checking for file" >&5
7235
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
7236
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7237
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7238
 
else
7239
 
  case $MAGIC_CMD in
7240
 
  /*)
7241
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7242
 
  ;;
7243
 
  ?:/*)
7244
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
7245
 
  ;;
7246
 
  *)
7247
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
7248
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7249
 
  ac_dummy="/usr/bin:$PATH"
7250
 
  for ac_dir in $ac_dummy; do
7251
 
    test -z "$ac_dir" && ac_dir=.
7252
 
    if test -f $ac_dir/file; then
7253
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7254
 
      if test -n "$file_magic_test_file"; then
7255
 
        case $deplibs_check_method in
7256
 
        "file_magic "*)
7257
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7258
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7259
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7260
 
            egrep "$file_magic_regex" > /dev/null; then
7261
 
            :
7262
 
          else
7263
 
            cat <<EOF 1>&2
7264
 
 
7265
 
*** Warning: the command libtool uses to detect shared libraries,
7266
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7267
 
*** The result is that libtool may fail to recognize shared libraries
7268
 
*** as such.  This will affect the creation of libtool libraries that
7269
 
*** depend on shared libraries, but programs linked with such libtool
7270
 
*** libraries will work regardless of this problem.  Nevertheless, you
7271
 
*** may want to report the problem to your system manager and/or to
7272
 
*** bug-libtool@gnu.org
7273
 
 
7274
 
EOF
7275
 
          fi ;;
7276
 
        esac
7277
 
      fi
7278
 
      break
7279
 
    fi
7280
 
  done
7281
 
  IFS="$ac_save_ifs"
7282
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
7283
 
  ;;
7284
 
esac
7285
 
fi
7286
 
 
7287
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7288
 
if test -n "$MAGIC_CMD"; then
7289
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7290
 
echo "${ECHO_T}$MAGIC_CMD" >&6
7291
 
else
7292
 
  echo "$as_me:$LINENO: result: no" >&5
7293
 
echo "${ECHO_T}no" >&6
7294
 
fi
7295
 
 
7296
 
  else
7297
 
    MAGIC_CMD=:
7298
 
  fi
7299
 
fi
7300
 
 
7301
 
  fi
7302
 
  ;;
7303
 
esac
7304
 
 
7305
 
if test -n "$ac_tool_prefix"; then
7306
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7307
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7308
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7309
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7310
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
7311
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7312
 
else
7313
 
  if test -n "$RANLIB"; then
7314
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7315
 
else
7316
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317
 
for as_dir in $PATH
7318
 
do
7319
 
  IFS=$as_save_IFS
7320
 
  test -z "$as_dir" && as_dir=.
7321
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7322
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7324
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325
 
    break 2
7326
 
  fi
7327
 
done
7328
 
done
7329
 
 
7330
 
fi
7331
 
fi
7332
 
RANLIB=$ac_cv_prog_RANLIB
7333
 
if test -n "$RANLIB"; then
7334
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
7335
 
echo "${ECHO_T}$RANLIB" >&6
7336
 
else
7337
 
  echo "$as_me:$LINENO: result: no" >&5
7338
 
echo "${ECHO_T}no" >&6
7339
 
fi
7340
 
 
7341
 
fi
7342
 
if test -z "$ac_cv_prog_RANLIB"; then
7343
 
  ac_ct_RANLIB=$RANLIB
7344
 
  # Extract the first word of "ranlib", so it can be a program name with args.
7345
 
set dummy ranlib; ac_word=$2
7346
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7347
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7348
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7349
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7350
 
else
7351
 
  if test -n "$ac_ct_RANLIB"; then
7352
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7353
 
else
7354
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355
 
for as_dir in $PATH
7356
 
do
7357
 
  IFS=$as_save_IFS
7358
 
  test -z "$as_dir" && as_dir=.
7359
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7360
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7362
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363
 
    break 2
7364
 
  fi
7365
 
done
7366
 
done
7367
 
 
7368
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7369
 
fi
7370
 
fi
7371
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7372
 
if test -n "$ac_ct_RANLIB"; then
7373
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7374
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7375
 
else
7376
 
  echo "$as_me:$LINENO: result: no" >&5
7377
 
echo "${ECHO_T}no" >&6
7378
 
fi
7379
 
 
7380
 
  RANLIB=$ac_ct_RANLIB
7381
 
else
7382
 
  RANLIB="$ac_cv_prog_RANLIB"
7383
 
fi
7384
 
 
7385
 
if test -n "$ac_tool_prefix"; then
7386
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7387
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
7388
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7389
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7390
 
if test "${ac_cv_prog_STRIP+set}" = set; then
7391
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7392
 
else
7393
 
  if test -n "$STRIP"; then
7394
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7395
 
else
7396
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397
 
for as_dir in $PATH
7398
 
do
7399
 
  IFS=$as_save_IFS
7400
 
  test -z "$as_dir" && as_dir=.
7401
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7402
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7404
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405
 
    break 2
7406
 
  fi
7407
 
done
7408
 
done
7409
 
 
7410
 
fi
7411
 
fi
7412
 
STRIP=$ac_cv_prog_STRIP
7413
 
if test -n "$STRIP"; then
7414
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
7415
 
echo "${ECHO_T}$STRIP" >&6
7416
 
else
7417
 
  echo "$as_me:$LINENO: result: no" >&5
7418
 
echo "${ECHO_T}no" >&6
7419
 
fi
7420
 
 
7421
 
fi
7422
 
if test -z "$ac_cv_prog_STRIP"; then
7423
 
  ac_ct_STRIP=$STRIP
7424
 
  # Extract the first word of "strip", so it can be a program name with args.
7425
 
set dummy strip; ac_word=$2
7426
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7427
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7428
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7429
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7430
 
else
7431
 
  if test -n "$ac_ct_STRIP"; then
7432
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7433
 
else
7434
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435
 
for as_dir in $PATH
7436
 
do
7437
 
  IFS=$as_save_IFS
7438
 
  test -z "$as_dir" && as_dir=.
7439
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7440
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7441
 
    ac_cv_prog_ac_ct_STRIP="strip"
7442
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443
 
    break 2
7444
 
  fi
7445
 
done
7446
 
done
7447
 
 
7448
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7449
 
fi
7450
 
fi
7451
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7452
 
if test -n "$ac_ct_STRIP"; then
7453
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7454
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
7455
 
else
7456
 
  echo "$as_me:$LINENO: result: no" >&5
7457
 
echo "${ECHO_T}no" >&6
7458
 
fi
7459
 
 
7460
 
  STRIP=$ac_ct_STRIP
7461
 
else
7462
 
  STRIP="$ac_cv_prog_STRIP"
7463
 
fi
7464
 
 
7465
 
 
7466
 
# Check for any special flags to pass to ltconfig.
7467
 
libtool_flags="--cache-file=$cache_file"
7468
 
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
7469
 
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
7470
 
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
7471
 
test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
7472
 
test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
7473
 
 
7474
 
 
7475
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7476
 
if test "${enable_libtool_lock+set}" = set; then
7477
 
  enableval="$enable_libtool_lock"
7478
 
 
7479
 
fi;
7480
 
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
7481
 
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
7482
 
 
7483
 
 
7484
 
# Check whether --with-pic or --without-pic was given.
7485
 
if test "${with_pic+set}" = set; then
7486
 
  withval="$with_pic"
7487
 
  pic_mode="$withval"
7488
 
else
7489
 
  pic_mode=default
7490
 
fi;
7491
 
test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
7492
 
test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
7493
 
 
7494
 
# Some flags need to be propagated to the compiler or linker for good
7495
 
# libtool support.
7496
 
case $host in
7497
 
*-*-irix6*)
7498
 
  # Find out which ABI we are using.
7499
 
  echo '#line 7499 "configure"' > conftest.$ac_ext
7500
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7501
 
  (eval $ac_compile) 2>&5
7502
 
  ac_status=$?
7503
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504
 
  (exit $ac_status); }; then
7505
 
    case `/usr/bin/file conftest.$ac_objext` in
7506
 
    *32-bit*)
7507
 
      LD="${LD-ld} -32"
7508
 
      ;;
7509
 
    *N32*)
7510
 
      LD="${LD-ld} -n32"
7511
 
      ;;
7512
 
    *64-bit*)
7513
 
      LD="${LD-ld} -64"
7514
 
      ;;
7515
 
    esac
7516
 
  fi
7517
 
  rm -rf conftest*
7518
 
  ;;
7519
 
 
7520
 
*-*-sco3.2v5*)
7521
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7522
 
  SAVE_CFLAGS="$CFLAGS"
7523
 
  CFLAGS="$CFLAGS -belf"
7524
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7525
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7526
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
7527
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7528
 
else
7529
 
 
7530
 
 
7531
 
     ac_ext=c
7532
 
ac_cpp='$CPP $CPPFLAGS'
7533
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7536
 
 
7537
 
     cat >conftest.$ac_ext <<_ACEOF
7538
 
/* confdefs.h.  */
7539
 
_ACEOF
7540
 
cat confdefs.h >>conftest.$ac_ext
7541
 
cat >>conftest.$ac_ext <<_ACEOF
7542
 
/* end confdefs.h.  */
7543
 
 
7544
 
int
7545
 
main ()
7546
 
{
7547
 
 
7548
 
  ;
7549
 
  return 0;
7550
 
}
7551
 
_ACEOF
7552
 
rm -f conftest.$ac_objext conftest$ac_exeext
7553
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7554
 
  (eval $ac_link) 2>conftest.er1
7555
 
  ac_status=$?
7556
 
  grep -v '^ *+' conftest.er1 >conftest.err
7557
 
  rm -f conftest.er1
7558
 
  cat conftest.err >&5
7559
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560
 
  (exit $ac_status); } &&
7561
 
         { ac_try='test -z "$ac_c_werror_flag"
7562
 
                         || test ! -s conftest.err'
7563
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564
 
  (eval $ac_try) 2>&5
7565
 
  ac_status=$?
7566
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567
 
  (exit $ac_status); }; } &&
7568
 
         { ac_try='test -s conftest$ac_exeext'
7569
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570
 
  (eval $ac_try) 2>&5
7571
 
  ac_status=$?
7572
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573
 
  (exit $ac_status); }; }; then
7574
 
  lt_cv_cc_needs_belf=yes
7575
 
else
7576
 
  echo "$as_me: failed program was:" >&5
7577
 
sed 's/^/| /' conftest.$ac_ext >&5
7578
 
 
7579
 
lt_cv_cc_needs_belf=no
7580
 
fi
7581
 
rm -f conftest.err conftest.$ac_objext \
7582
 
      conftest$ac_exeext conftest.$ac_ext
7583
 
     ac_ext=c
7584
 
ac_cpp='$CPP $CPPFLAGS'
7585
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7586
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7587
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7588
 
 
7589
 
fi
7590
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7591
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7592
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7593
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7594
 
    CFLAGS="$SAVE_CFLAGS"
7595
 
  fi
7596
 
  ;;
7597
 
 
7598
 
 
7599
 
esac
7600
 
 
7601
 
 
7602
 
# Save cache, so that ltconfig can load it
7603
 
cat >confcache <<\_ACEOF
7604
 
# This file is a shell script that caches the results of configure
7605
 
# tests run on this system so they can be shared between configure
7606
 
# scripts and configure runs, see configure's option --config-cache.
7607
 
# It is not useful on other systems.  If it contains results you don't
7608
 
# want to keep, you may remove or edit it.
7609
 
#
7610
 
# config.status only pays attention to the cache file if you give it
7611
 
# the --recheck option to rerun configure.
7612
 
#
7613
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
7614
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
7615
 
# following values.
7616
 
 
7617
 
_ACEOF
7618
 
 
7619
 
# The following way of writing the cache mishandles newlines in values,
7620
 
# but we know of no workaround that is simple, portable, and efficient.
7621
 
# So, don't put newlines in cache variables' values.
7622
 
# Ultrix sh set writes to stderr and can't be redirected directly,
7623
 
# and sets the high bit in the cache file unless we assign to the vars.
7624
 
{
7625
 
  (set) 2>&1 |
7626
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
7627
 
    *ac_space=\ *)
7628
 
      # `set' does not quote correctly, so add quotes (double-quote
7629
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
7630
 
      sed -n \
7631
 
        "s/'/'\\\\''/g;
7632
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7633
 
      ;;
7634
 
    *)
7635
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
7636
 
      sed -n \
7637
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7638
 
      ;;
7639
 
    esac;
7640
 
} |
7641
 
  sed '
7642
 
     t clear
7643
 
     : clear
7644
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7645
 
     t end
7646
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7647
 
     : end' >>confcache
7648
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
7649
 
  if test -w $cache_file; then
7650
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7651
 
    cat confcache >$cache_file
7652
 
  else
7653
 
    echo "not updating unwritable cache $cache_file"
7654
 
  fi
7655
 
fi
7656
 
rm -f confcache
7657
 
 
7658
 
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
7659
 
AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
7660
 
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7661
 
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7662
 
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7663
 
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7664
 
deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
7665
 
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
7666
 
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
7667
 
|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
7668
 
echo "$as_me: error: libtool configure failed" >&2;}
7669
 
   { (exit 1); exit 1; }; }
7670
 
 
7671
 
# Reload cache, that may have been modified by ltconfig
7672
 
if test -r "$cache_file"; then
7673
 
  # Some versions of bash will fail to source /dev/null (special
7674
 
  # files actually), so we avoid doing that.
7675
 
  if test -f "$cache_file"; then
7676
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
7677
 
echo "$as_me: loading cache $cache_file" >&6;}
7678
 
    case $cache_file in
7679
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
7680
 
      *)                      . ./$cache_file;;
7681
 
    esac
7682
 
  fi
7683
 
else
7684
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
7685
 
echo "$as_me: creating cache $cache_file" >&6;}
7686
 
  >$cache_file
7687
 
fi
7688
 
 
7689
 
 
7690
 
# This can be used to rebuild libtool when needed
7691
 
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
7692
 
 
7693
 
# Always use our own libtool.
7694
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7695
 
 
7696
 
# Redirect the config.log output again, so that the ltconfig log is not
7697
 
# clobbered by the next message.
7698
 
exec 5>>./config.log
7699
 
 
7700
 
 
7701
 
 
7702
 
LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
7703
 
lt_save_CC="$CC"
7704
 
lt_save_CFLAGS="$CFLAGS"
7705
 
AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
7706
 
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7707
 
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7708
 
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7709
 
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7710
 
deplibs_check_method="$deplibs_check_method" \
7711
 
file_magic_cmd="$file_magic_cmd" \
7712
 
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7713
 
--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
7714
 
|| { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
7715
 
echo "$as_me: error: libtool tag configuration failed" >&2;}
7716
 
   { (exit 1); exit 1; }; }
7717
 
CC="$lt_save_CC"
7718
 
CFLAGS="$lt_save_CFLAGS"
7719
 
 
7720
 
# Redirect the config.log output again, so that the ltconfig log is not
7721
 
# clobbered by the next message.
7722
 
exec 5>>./config.log
7723
 
 
7724
 
 
7725
 
 
7726
 
 
7727
 
 
7728
 
 
7729
 
 
7730
 
 
7731
 
 
7732
 
 
7733
 
ac_ext=c
7734
 
ac_cpp='$CPP $CPPFLAGS'
7735
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738
 
 
7739
 
 
7740
 
 
7741
 
ac_ext=c
7742
 
ac_cpp='$CPP $CPPFLAGS'
7743
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7744
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7745
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7746
 
 
7747
 
 
7748
 
 
7749
 
 
7750
 
 
7751
 
 
7752
 
 
7753
 
 
7754
 
 
7755
 
LIBTOOL_SHELL="/bin/sh ./libtool"
7756
 
#  LIBTOOL="$LIBTOOL --silent"
7757
 
KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
7758
 
 
7759
 
 
7760
 
# Check whether --enable-objprelink or --disable-objprelink was given.
7761
 
if test "${enable_objprelink+set}" = set; then
7762
 
  enableval="$enable_objprelink"
7763
 
  kde_use_objprelink=$enableval
7764
 
else
7765
 
  kde_use_objprelink=no
7766
 
fi;
7767
 
  if test "x$kde_use_objprelink" = "xyes"; then
7768
 
 
7769
 
 
7770
 
   echo "$as_me:$LINENO: checking for objprelink" >&5
7771
 
echo $ECHO_N "checking for objprelink... $ECHO_C" >&6
7772
 
   if test -n "$OBJPRELINK"; then
7773
 
        kde_cv_path="$OBJPRELINK";
7774
 
   else
7775
 
        kde_cache=`echo objprelink | sed 'y%./+-%__p_%'`
7776
 
 
7777
 
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
7778
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7779
 
else
7780
 
 
7781
 
        kde_cv_path="NONE"
7782
 
        dirs=""
7783
 
        kde_save_IFS=$IFS
7784
 
        IFS=':'
7785
 
        for dir in $PATH; do
7786
 
          dirs="$dirs $dir"
7787
 
        done
7788
 
        IFS=$kde_save_IFS
7789
 
 
7790
 
        for dir in $dirs; do
7791
 
          if test -x "$dir/objprelink"; then
7792
 
            if test -n ""
7793
 
            then
7794
 
              evalstr="$dir/objprelink  2>&1 "
7795
 
              if eval $evalstr; then
7796
 
                kde_cv_path="$dir/objprelink"
7797
 
                break
7798
 
              fi
7799
 
            else
7800
 
                kde_cv_path="$dir/objprelink"
7801
 
                break
7802
 
            fi
7803
 
          fi
7804
 
        done
7805
 
 
7806
 
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
7807
 
 
7808
 
 
7809
 
fi
7810
 
 
7811
 
 
7812
 
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
7813
 
 
7814
 
   fi
7815
 
 
7816
 
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
7817
 
      echo "$as_me:$LINENO: result: not found" >&5
7818
 
echo "${ECHO_T}not found" >&6
7819
 
      kde_use_objprelink=no
7820
 
   else
7821
 
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
7822
 
echo "${ECHO_T}$kde_cv_path" >&6
7823
 
      OBJPRELINK=$kde_cv_path
7824
 
 
7825
 
   fi
7826
 
 
7827
 
 
7828
 
      if test "x$kde_use_objprelink" = "xyes"; then
7829
 
      echo "$as_me:$LINENO: checking Patching libtool to run objprelink." >&5
7830
 
echo $ECHO_N "checking Patching libtool to run objprelink.... $ECHO_C" >&6
7831
 
      mv libtool libtool.orig
7832
 
      cat > libtool <<\EOF
7833
 
#! /bin/sh
7834
 
for n ; do case $n in
7835
 
  *.o)  test -r $n && echo objprelink $n && objprelink $n ;;
7836
 
  *.lo) m=`basename $n .lo`".o" && test -r $m && echo objprelink $m && objprelink $m
7837
 
        m=".libs/$m" && test -r $m && echo objprelink $m && objprelink $m ;;
7838
 
esac; done
7839
 
EOF
7840
 
      cat >> libtool libtool.orig
7841
 
      rm libtool.orig
7842
 
      chmod a+x libtool
7843
 
      echo "$as_me:$LINENO: result: done" >&5
7844
 
echo "${ECHO_T}done" >&6
7845
 
        fi
7846
 
  fi
7847
 
 
7848
 
 
7849
 
all_libraries="$all_libraries $USER_LDFLAGS"
7850
 
all_includes="$all_includes $USER_INCLUDES"
7851
 
 
7852
 
 
7853
 
 
7854
 
 
7855
 
 
7856
 
    # Extract the first word of "msgfmt", so it can be a program name with args.
7857
 
set dummy msgfmt; ac_word=$2
7858
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7859
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7860
 
if test "${ac_cv_path_MSGFMT+set}" = set; then
7861
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7862
 
else
7863
 
  case "$MSGFMT" in
7864
 
  /*)
7865
 
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7866
 
  ;;
7867
 
  *)
7868
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7869
 
  for ac_dir in $PATH; do
7870
 
    test -z "$ac_dir" && ac_dir=.
7871
 
    if test -f $ac_dir/$ac_word; then
7872
 
      if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
7873
 
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7874
 
        break
7875
 
      fi
7876
 
    fi
7877
 
  done
7878
 
  IFS="$ac_save_ifs"
7879
 
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7880
 
  ;;
7881
 
esac
7882
 
fi
7883
 
MSGFMT="$ac_cv_path_MSGFMT"
7884
 
if test -n "$MSGFMT"; then
7885
 
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
7886
 
echo "${ECHO_T}$MSGFMT" >&6
7887
 
else
7888
 
  echo "$as_me:$LINENO: result: no" >&5
7889
 
echo "${ECHO_T}no" >&6
7890
 
fi
7891
 
 
7892
 
    # Extract the first word of "gmsgfmt", so it can be a program name with args.
7893
 
set dummy gmsgfmt; ac_word=$2
7894
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7895
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7896
 
if test "${ac_cv_path_GMSGFMT+set}" = set; then
7897
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7898
 
else
7899
 
  case $GMSGFMT in
7900
 
  [\\/]* | ?:[\\/]*)
7901
 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7902
 
  ;;
7903
 
  *)
7904
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905
 
for as_dir in $PATH
7906
 
do
7907
 
  IFS=$as_save_IFS
7908
 
  test -z "$as_dir" && as_dir=.
7909
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7910
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7911
 
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7912
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7913
 
    break 2
7914
 
  fi
7915
 
done
7916
 
done
7917
 
 
7918
 
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7919
 
  ;;
7920
 
esac
7921
 
fi
7922
 
GMSGFMT=$ac_cv_path_GMSGFMT
7923
 
 
7924
 
if test -n "$GMSGFMT"; then
7925
 
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7926
 
echo "${ECHO_T}$GMSGFMT" >&6
7927
 
else
7928
 
  echo "$as_me:$LINENO: result: no" >&5
7929
 
echo "${ECHO_T}no" >&6
7930
 
fi
7931
 
 
7932
 
 
7933
 
     if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
7934
 
        echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
7935
 
echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
7936
 
        GMSGFMT=":"
7937
 
      fi
7938
 
      MSGFMT=$GMSGFMT
7939
 
 
7940
 
 
7941
 
 
7942
 
      # Extract the first word of "xgettext", so it can be a program name with args.
7943
 
set dummy xgettext; ac_word=$2
7944
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7945
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7946
 
if test "${ac_cv_path_XGETTEXT+set}" = set; then
7947
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7948
 
else
7949
 
  case "$XGETTEXT" in
7950
 
  /*)
7951
 
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7952
 
  ;;
7953
 
  *)
7954
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7955
 
  for ac_dir in $PATH; do
7956
 
    test -z "$ac_dir" && ac_dir=.
7957
 
    if test -f $ac_dir/$ac_word; then
7958
 
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7959
 
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7960
 
        break
7961
 
      fi
7962
 
    fi
7963
 
  done
7964
 
  IFS="$ac_save_ifs"
7965
 
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7966
 
  ;;
7967
 
esac
7968
 
fi
7969
 
XGETTEXT="$ac_cv_path_XGETTEXT"
7970
 
if test -n "$XGETTEXT"; then
7971
 
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7972
 
echo "${ECHO_T}$XGETTEXT" >&6
7973
 
else
7974
 
  echo "$as_me:$LINENO: result: no" >&5
7975
 
echo "${ECHO_T}no" >&6
7976
 
fi
7977
 
 
7978
 
 
7979
 
            if test "$XGETTEXT" != ":"; then
7980
 
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7981
 
          : ;
7982
 
        else
7983
 
          echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7984
 
echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7985
 
          XGETTEXT=":"
7986
 
        fi
7987
 
      fi
7988
 
 
7989
 
 
7990
 
 
7991
 
 
7992
 
 
7993
 
if test -z "3"; then
7994
 
  kde_qtver=3
7995
 
  kde_qtsubver=1
7996
 
else
7997
 
  kde_qtsubver=`echo "3" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
7998
 
  # following is the check if subversion isn�t found in passed argument
7999
 
  if test "$kde_qtsubver" = "3"; then
8000
 
    kde_qtsubver=1
8001
 
  fi
8002
 
  kde_qtver=`echo "3" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
8003
 
  if test "$kde_qtver" = "1"; then
8004
 
    kde_qtsubver=42
8005
 
  fi
8006
 
fi
8007
 
 
8008
 
if test -z ""; then
8009
 
  if test "$kde_qtver" = "2"; then
8010
 
    if test $kde_qtsubver -gt 0; then
8011
 
      kde_qt_minversion=">= Qt 2.2.2"
8012
 
    else
8013
 
      kde_qt_minversion=">= Qt 2.0.2"
8014
 
    fi
8015
 
  fi
8016
 
  if test "$kde_qtver" = "3"; then
8017
 
    kde_qt_minversion=">= Qt 3.0.3"
8018
 
  fi
8019
 
  if test "$kde_qtver" = "1"; then
8020
 
    kde_qt_minversion=">= 1.42 and < 2.0"
8021
 
  fi
8022
 
else
8023
 
   kde_qt_minversion=
8024
 
fi
8025
 
 
8026
 
if test -z ""; then
8027
 
   if test $kde_qtver = 3; then
8028
 
     kde_qt_verstring="QT_VERSION >= 303"
8029
 
   fi
8030
 
   if test $kde_qtver = 2; then
8031
 
     if test $kde_qtsubver -gt 0; then
8032
 
       kde_qt_verstring="QT_VERSION >= 222"
8033
 
     else
8034
 
       kde_qt_verstring="QT_VERSION >= 200"
8035
 
     fi
8036
 
   fi
8037
 
   if test $kde_qtver = 1; then
8038
 
    kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
8039
 
   fi
8040
 
else
8041
 
   kde_qt_verstring=
8042
 
fi
8043
 
 
8044
 
if test $kde_qtver = 3; then
8045
 
  kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt"
8046
 
fi
8047
 
if test $kde_qtver = 2; then
8048
 
   kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
8049
 
fi
8050
 
if test $kde_qtver = 1; then
8051
 
   kde_qt_dirs="$QTDIR /usr/lib/qt"
8052
 
fi
8053
 
 
8054
 
 
8055
 
echo "$as_me:$LINENO: checking for egrep" >&5
8056
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
8057
 
if test "${ac_cv_prog_egrep+set}" = set; then
8058
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8059
 
else
8060
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
8061
 
    then ac_cv_prog_egrep='grep -E'
8062
 
    else ac_cv_prog_egrep='egrep'
8063
 
    fi
8064
 
fi
8065
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
8066
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
8067
 
 EGREP=$ac_cv_prog_egrep
8068
 
 
8069
 
 
8070
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8071
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8072
 
if test "${ac_cv_header_stdc+set}" = set; then
8073
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8074
 
else
8075
 
  cat >conftest.$ac_ext <<_ACEOF
8076
 
/* confdefs.h.  */
8077
 
_ACEOF
8078
 
cat confdefs.h >>conftest.$ac_ext
8079
 
cat >>conftest.$ac_ext <<_ACEOF
8080
 
/* end confdefs.h.  */
8081
 
#include <stdlib.h>
8082
 
#include <stdarg.h>
8083
 
#include <string.h>
8084
 
#include <float.h>
8085
 
 
8086
 
int
8087
 
main ()
8088
 
{
8089
 
 
8090
 
  ;
8091
 
  return 0;
8092
 
}
8093
 
_ACEOF
8094
 
rm -f conftest.$ac_objext
8095
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8096
 
  (eval $ac_compile) 2>conftest.er1
8097
 
  ac_status=$?
8098
 
  grep -v '^ *+' conftest.er1 >conftest.err
8099
 
  rm -f conftest.er1
8100
 
  cat conftest.err >&5
8101
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102
 
  (exit $ac_status); } &&
8103
 
         { ac_try='test -z "$ac_c_werror_flag"
8104
 
                         || test ! -s conftest.err'
8105
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106
 
  (eval $ac_try) 2>&5
8107
 
  ac_status=$?
8108
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109
 
  (exit $ac_status); }; } &&
8110
 
         { ac_try='test -s conftest.$ac_objext'
8111
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112
 
  (eval $ac_try) 2>&5
8113
 
  ac_status=$?
8114
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115
 
  (exit $ac_status); }; }; then
8116
 
  ac_cv_header_stdc=yes
8117
 
else
8118
 
  echo "$as_me: failed program was:" >&5
8119
 
sed 's/^/| /' conftest.$ac_ext >&5
8120
 
 
8121
 
ac_cv_header_stdc=no
8122
 
fi
8123
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8124
 
 
8125
 
if test $ac_cv_header_stdc = yes; then
8126
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8127
 
  cat >conftest.$ac_ext <<_ACEOF
8128
 
/* confdefs.h.  */
8129
 
_ACEOF
8130
 
cat confdefs.h >>conftest.$ac_ext
8131
 
cat >>conftest.$ac_ext <<_ACEOF
8132
 
/* end confdefs.h.  */
8133
 
#include <string.h>
8134
 
 
8135
 
_ACEOF
8136
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8137
 
  $EGREP "memchr" >/dev/null 2>&1; then
8138
 
  :
8139
 
else
8140
 
  ac_cv_header_stdc=no
8141
 
fi
8142
 
rm -f conftest*
8143
 
 
8144
 
fi
8145
 
 
8146
 
if test $ac_cv_header_stdc = yes; then
8147
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8148
 
  cat >conftest.$ac_ext <<_ACEOF
8149
 
/* confdefs.h.  */
8150
 
_ACEOF
8151
 
cat confdefs.h >>conftest.$ac_ext
8152
 
cat >>conftest.$ac_ext <<_ACEOF
8153
 
/* end confdefs.h.  */
8154
 
#include <stdlib.h>
8155
 
 
8156
 
_ACEOF
8157
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8158
 
  $EGREP "free" >/dev/null 2>&1; then
8159
 
  :
8160
 
else
8161
 
  ac_cv_header_stdc=no
8162
 
fi
8163
 
rm -f conftest*
8164
 
 
8165
 
fi
8166
 
 
8167
 
if test $ac_cv_header_stdc = yes; then
8168
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8169
 
  if test "$cross_compiling" = yes; then
8170
 
  :
8171
 
else
8172
 
  cat >conftest.$ac_ext <<_ACEOF
8173
 
/* confdefs.h.  */
8174
 
_ACEOF
8175
 
cat confdefs.h >>conftest.$ac_ext
8176
 
cat >>conftest.$ac_ext <<_ACEOF
8177
 
/* end confdefs.h.  */
8178
 
#include <ctype.h>
8179
 
#if ((' ' & 0x0FF) == 0x020)
8180
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8181
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8182
 
#else
8183
 
# define ISLOWER(c) \
8184
 
                   (('a' <= (c) && (c) <= 'i') \
8185
 
                     || ('j' <= (c) && (c) <= 'r') \
8186
 
                     || ('s' <= (c) && (c) <= 'z'))
8187
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8188
 
#endif
8189
 
 
8190
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8191
 
int
8192
 
main ()
8193
 
{
8194
 
  int i;
8195
 
  for (i = 0; i < 256; i++)
8196
 
    if (XOR (islower (i), ISLOWER (i))
8197
 
        || toupper (i) != TOUPPER (i))
8198
 
      exit(2);
8199
 
  exit (0);
8200
 
}
8201
 
_ACEOF
8202
 
rm -f conftest$ac_exeext
8203
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8204
 
  (eval $ac_link) 2>&5
8205
 
  ac_status=$?
8206
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8208
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209
 
  (eval $ac_try) 2>&5
8210
 
  ac_status=$?
8211
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212
 
  (exit $ac_status); }; }; then
8213
 
  :
8214
 
else
8215
 
  echo "$as_me: program exited with status $ac_status" >&5
8216
 
echo "$as_me: failed program was:" >&5
8217
 
sed 's/^/| /' conftest.$ac_ext >&5
8218
 
 
8219
 
( exit $ac_status )
8220
 
ac_cv_header_stdc=no
8221
 
fi
8222
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8223
 
fi
8224
 
fi
8225
 
fi
8226
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8227
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
8228
 
if test $ac_cv_header_stdc = yes; then
8229
 
 
8230
 
cat >>confdefs.h <<\_ACEOF
8231
 
#define STDC_HEADERS 1
8232
 
_ACEOF
8233
 
 
8234
 
fi
8235
 
 
8236
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8237
 
 
8238
 
 
8239
 
 
8240
 
 
8241
 
 
8242
 
 
8243
 
 
8244
 
 
8245
 
 
8246
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8247
 
                  inttypes.h stdint.h unistd.h
8248
 
do
8249
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8250
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
8251
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8252
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8253
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8254
 
else
8255
 
  cat >conftest.$ac_ext <<_ACEOF
8256
 
/* confdefs.h.  */
8257
 
_ACEOF
8258
 
cat confdefs.h >>conftest.$ac_ext
8259
 
cat >>conftest.$ac_ext <<_ACEOF
8260
 
/* end confdefs.h.  */
8261
 
$ac_includes_default
8262
 
 
8263
 
#include <$ac_header>
8264
 
_ACEOF
8265
 
rm -f conftest.$ac_objext
8266
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8267
 
  (eval $ac_compile) 2>conftest.er1
8268
 
  ac_status=$?
8269
 
  grep -v '^ *+' conftest.er1 >conftest.err
8270
 
  rm -f conftest.er1
8271
 
  cat conftest.err >&5
8272
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273
 
  (exit $ac_status); } &&
8274
 
         { ac_try='test -z "$ac_c_werror_flag"
8275
 
                         || test ! -s conftest.err'
8276
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277
 
  (eval $ac_try) 2>&5
8278
 
  ac_status=$?
8279
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280
 
  (exit $ac_status); }; } &&
8281
 
         { ac_try='test -s conftest.$ac_objext'
8282
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283
 
  (eval $ac_try) 2>&5
8284
 
  ac_status=$?
8285
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286
 
  (exit $ac_status); }; }; then
8287
 
  eval "$as_ac_Header=yes"
8288
 
else
8289
 
  echo "$as_me: failed program was:" >&5
8290
 
sed 's/^/| /' conftest.$ac_ext >&5
8291
 
 
8292
 
eval "$as_ac_Header=no"
8293
 
fi
8294
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8295
 
fi
8296
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8297
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8298
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8299
 
  cat >>confdefs.h <<_ACEOF
8300
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8301
 
_ACEOF
8302
 
 
8303
 
fi
8304
 
 
8305
 
done
8306
 
 
8307
 
 
8308
 
 
8309
 
   ac_ext=c
8310
 
ac_cpp='$CPP $CPPFLAGS'
8311
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8312
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8313
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8314
 
 
8315
 
      echo "$as_me:$LINENO: checking for main in -lutil" >&5
8316
 
echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6
8317
 
if test "${ac_cv_lib_util_main+set}" = set; then
8318
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8319
 
else
8320
 
  ac_check_lib_save_LIBS=$LIBS
8321
 
LIBS="-lutil  $LIBS"
8322
 
cat >conftest.$ac_ext <<_ACEOF
8323
 
/* confdefs.h.  */
8324
 
_ACEOF
8325
 
cat confdefs.h >>conftest.$ac_ext
8326
 
cat >>conftest.$ac_ext <<_ACEOF
8327
 
/* end confdefs.h.  */
8328
 
 
8329
 
 
8330
 
int
8331
 
main ()
8332
 
{
8333
 
main ();
8334
 
  ;
8335
 
  return 0;
8336
 
}
8337
 
_ACEOF
8338
 
rm -f conftest.$ac_objext conftest$ac_exeext
8339
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8340
 
  (eval $ac_link) 2>conftest.er1
8341
 
  ac_status=$?
8342
 
  grep -v '^ *+' conftest.er1 >conftest.err
8343
 
  rm -f conftest.er1
8344
 
  cat conftest.err >&5
8345
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346
 
  (exit $ac_status); } &&
8347
 
         { ac_try='test -z "$ac_c_werror_flag"
8348
 
                         || test ! -s conftest.err'
8349
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350
 
  (eval $ac_try) 2>&5
8351
 
  ac_status=$?
8352
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353
 
  (exit $ac_status); }; } &&
8354
 
         { ac_try='test -s conftest$ac_exeext'
8355
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356
 
  (eval $ac_try) 2>&5
8357
 
  ac_status=$?
8358
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359
 
  (exit $ac_status); }; }; then
8360
 
  ac_cv_lib_util_main=yes
8361
 
else
8362
 
  echo "$as_me: failed program was:" >&5
8363
 
sed 's/^/| /' conftest.$ac_ext >&5
8364
 
 
8365
 
ac_cv_lib_util_main=no
8366
 
fi
8367
 
rm -f conftest.err conftest.$ac_objext \
8368
 
      conftest$ac_exeext conftest.$ac_ext
8369
 
LIBS=$ac_check_lib_save_LIBS
8370
 
fi
8371
 
echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
8372
 
echo "${ECHO_T}$ac_cv_lib_util_main" >&6
8373
 
if test $ac_cv_lib_util_main = yes; then
8374
 
  LIBUTIL="-lutil"
8375
 
fi
8376
 
 
8377
 
   echo "$as_me:$LINENO: checking for main in -lcompat" >&5
8378
 
echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
8379
 
if test "${ac_cv_lib_compat_main+set}" = set; then
8380
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8381
 
else
8382
 
  ac_check_lib_save_LIBS=$LIBS
8383
 
LIBS="-lcompat  $LIBS"
8384
 
cat >conftest.$ac_ext <<_ACEOF
8385
 
/* confdefs.h.  */
8386
 
_ACEOF
8387
 
cat confdefs.h >>conftest.$ac_ext
8388
 
cat >>conftest.$ac_ext <<_ACEOF
8389
 
/* end confdefs.h.  */
8390
 
 
8391
 
 
8392
 
int
8393
 
main ()
8394
 
{
8395
 
main ();
8396
 
  ;
8397
 
  return 0;
8398
 
}
8399
 
_ACEOF
8400
 
rm -f conftest.$ac_objext conftest$ac_exeext
8401
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8402
 
  (eval $ac_link) 2>conftest.er1
8403
 
  ac_status=$?
8404
 
  grep -v '^ *+' conftest.er1 >conftest.err
8405
 
  rm -f conftest.er1
8406
 
  cat conftest.err >&5
8407
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408
 
  (exit $ac_status); } &&
8409
 
         { ac_try='test -z "$ac_c_werror_flag"
8410
 
                         || test ! -s conftest.err'
8411
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412
 
  (eval $ac_try) 2>&5
8413
 
  ac_status=$?
8414
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415
 
  (exit $ac_status); }; } &&
8416
 
         { ac_try='test -s conftest$ac_exeext'
8417
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418
 
  (eval $ac_try) 2>&5
8419
 
  ac_status=$?
8420
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421
 
  (exit $ac_status); }; }; then
8422
 
  ac_cv_lib_compat_main=yes
8423
 
else
8424
 
  echo "$as_me: failed program was:" >&5
8425
 
sed 's/^/| /' conftest.$ac_ext >&5
8426
 
 
8427
 
ac_cv_lib_compat_main=no
8428
 
fi
8429
 
rm -f conftest.err conftest.$ac_objext \
8430
 
      conftest$ac_exeext conftest.$ac_ext
8431
 
LIBS=$ac_check_lib_save_LIBS
8432
 
fi
8433
 
echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
8434
 
echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
8435
 
if test $ac_cv_lib_compat_main = yes; then
8436
 
  LIBCOMPAT="-lcompat"
8437
 
fi
8438
 
 
8439
 
   kde_have_crypt=
8440
 
   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8441
 
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8442
 
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8443
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8444
 
else
8445
 
  ac_check_lib_save_LIBS=$LIBS
8446
 
LIBS="-lcrypt  $LIBS"
8447
 
cat >conftest.$ac_ext <<_ACEOF
8448
 
/* confdefs.h.  */
8449
 
_ACEOF
8450
 
cat confdefs.h >>conftest.$ac_ext
8451
 
cat >>conftest.$ac_ext <<_ACEOF
8452
 
/* end confdefs.h.  */
8453
 
 
8454
 
/* Override any gcc2 internal prototype to avoid an error.  */
8455
 
#ifdef __cplusplus
8456
 
extern "C"
8457
 
#endif
8458
 
/* We use char because int might match the return type of a gcc2
8459
 
   builtin and then its argument prototype would still apply.  */
8460
 
char crypt ();
8461
 
int
8462
 
main ()
8463
 
{
8464
 
crypt ();
8465
 
  ;
8466
 
  return 0;
8467
 
}
8468
 
_ACEOF
8469
 
rm -f conftest.$ac_objext conftest$ac_exeext
8470
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8471
 
  (eval $ac_link) 2>conftest.er1
8472
 
  ac_status=$?
8473
 
  grep -v '^ *+' conftest.er1 >conftest.err
8474
 
  rm -f conftest.er1
8475
 
  cat conftest.err >&5
8476
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477
 
  (exit $ac_status); } &&
8478
 
         { ac_try='test -z "$ac_c_werror_flag"
8479
 
                         || test ! -s conftest.err'
8480
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481
 
  (eval $ac_try) 2>&5
8482
 
  ac_status=$?
8483
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484
 
  (exit $ac_status); }; } &&
8485
 
         { ac_try='test -s conftest$ac_exeext'
8486
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487
 
  (eval $ac_try) 2>&5
8488
 
  ac_status=$?
8489
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490
 
  (exit $ac_status); }; }; then
8491
 
  ac_cv_lib_crypt_crypt=yes
8492
 
else
8493
 
  echo "$as_me: failed program was:" >&5
8494
 
sed 's/^/| /' conftest.$ac_ext >&5
8495
 
 
8496
 
ac_cv_lib_crypt_crypt=no
8497
 
fi
8498
 
rm -f conftest.err conftest.$ac_objext \
8499
 
      conftest$ac_exeext conftest.$ac_ext
8500
 
LIBS=$ac_check_lib_save_LIBS
8501
 
fi
8502
 
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8503
 
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8504
 
if test $ac_cv_lib_crypt_crypt = yes; then
8505
 
  LIBCRYPT="-lcrypt"; kde_have_crypt=yes
8506
 
else
8507
 
  echo "$as_me:$LINENO: checking for crypt in -lc" >&5
8508
 
echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
8509
 
if test "${ac_cv_lib_c_crypt+set}" = set; then
8510
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8511
 
else
8512
 
  ac_check_lib_save_LIBS=$LIBS
8513
 
LIBS="-lc  $LIBS"
8514
 
cat >conftest.$ac_ext <<_ACEOF
8515
 
/* confdefs.h.  */
8516
 
_ACEOF
8517
 
cat confdefs.h >>conftest.$ac_ext
8518
 
cat >>conftest.$ac_ext <<_ACEOF
8519
 
/* end confdefs.h.  */
8520
 
 
8521
 
/* Override any gcc2 internal prototype to avoid an error.  */
8522
 
#ifdef __cplusplus
8523
 
extern "C"
8524
 
#endif
8525
 
/* We use char because int might match the return type of a gcc2
8526
 
   builtin and then its argument prototype would still apply.  */
8527
 
char crypt ();
8528
 
int
8529
 
main ()
8530
 
{
8531
 
crypt ();
8532
 
  ;
8533
 
  return 0;
8534
 
}
8535
 
_ACEOF
8536
 
rm -f conftest.$ac_objext conftest$ac_exeext
8537
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8538
 
  (eval $ac_link) 2>conftest.er1
8539
 
  ac_status=$?
8540
 
  grep -v '^ *+' conftest.er1 >conftest.err
8541
 
  rm -f conftest.er1
8542
 
  cat conftest.err >&5
8543
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544
 
  (exit $ac_status); } &&
8545
 
         { ac_try='test -z "$ac_c_werror_flag"
8546
 
                         || test ! -s conftest.err'
8547
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548
 
  (eval $ac_try) 2>&5
8549
 
  ac_status=$?
8550
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551
 
  (exit $ac_status); }; } &&
8552
 
         { ac_try='test -s conftest$ac_exeext'
8553
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554
 
  (eval $ac_try) 2>&5
8555
 
  ac_status=$?
8556
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557
 
  (exit $ac_status); }; }; then
8558
 
  ac_cv_lib_c_crypt=yes
8559
 
else
8560
 
  echo "$as_me: failed program was:" >&5
8561
 
sed 's/^/| /' conftest.$ac_ext >&5
8562
 
 
8563
 
ac_cv_lib_c_crypt=no
8564
 
fi
8565
 
rm -f conftest.err conftest.$ac_objext \
8566
 
      conftest$ac_exeext conftest.$ac_ext
8567
 
LIBS=$ac_check_lib_save_LIBS
8568
 
fi
8569
 
echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
8570
 
echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
8571
 
if test $ac_cv_lib_c_crypt = yes; then
8572
 
  kde_have_crypt=yes
8573
 
else
8574
 
 
8575
 
        { echo "$as_me:$LINENO: WARNING: you have no crypt in either libcrypt or libc.
8576
 
You should install libcrypt from another source or configure with PAM
8577
 
support" >&5
8578
 
echo "$as_me: WARNING: you have no crypt in either libcrypt or libc.
8579
 
You should install libcrypt from another source or configure with PAM
8580
 
support" >&2;}
8581
 
        kde_have_crypt=no
8582
 
 
8583
 
fi
8584
 
 
8585
 
fi
8586
 
 
8587
 
 
8588
 
   if test $kde_have_crypt = yes; then
8589
 
 
8590
 
cat >>confdefs.h <<_ACEOF
8591
 
#define HAVE_CRYPT 1
8592
 
_ACEOF
8593
 
 
8594
 
   fi
8595
 
 
8596
 
  echo "$as_me:$LINENO: checking for socklen_t" >&5
8597
 
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
8598
 
  if test "${ac_cv_socklen_t+set}" = set; then
8599
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8600
 
else
8601
 
 
8602
 
 
8603
 
 
8604
 
     ac_ext=cc
8605
 
ac_cpp='$CXXCPP $CPPFLAGS'
8606
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8607
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8608
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8609
 
 
8610
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8611
 
 
8612
 
 
8613
 
    cat >conftest.$ac_ext <<_ACEOF
8614
 
/* confdefs.h.  */
8615
 
_ACEOF
8616
 
cat confdefs.h >>conftest.$ac_ext
8617
 
cat >>conftest.$ac_ext <<_ACEOF
8618
 
/* end confdefs.h.  */
8619
 
 
8620
 
#include <sys/types.h>
8621
 
#include <sys/socket.h>
8622
 
 
8623
 
int
8624
 
main ()
8625
 
{
8626
 
 
8627
 
socklen_t a=0;
8628
 
getsockname(0,(struct sockaddr*)0, &a);
8629
 
 
8630
 
  ;
8631
 
  return 0;
8632
 
}
8633
 
_ACEOF
8634
 
rm -f conftest.$ac_objext
8635
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8636
 
  (eval $ac_compile) 2>conftest.er1
8637
 
  ac_status=$?
8638
 
  grep -v '^ *+' conftest.er1 >conftest.err
8639
 
  rm -f conftest.er1
8640
 
  cat conftest.err >&5
8641
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642
 
  (exit $ac_status); } &&
8643
 
         { ac_try='test -z "$ac_cxx_werror_flag"
8644
 
                         || test ! -s conftest.err'
8645
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646
 
  (eval $ac_try) 2>&5
8647
 
  ac_status=$?
8648
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649
 
  (exit $ac_status); }; } &&
8650
 
         { ac_try='test -s conftest.$ac_objext'
8651
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652
 
  (eval $ac_try) 2>&5
8653
 
  ac_status=$?
8654
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655
 
  (exit $ac_status); }; }; then
8656
 
  ac_cv_socklen_t=socklen_t
8657
 
else
8658
 
  echo "$as_me: failed program was:" >&5
8659
 
sed 's/^/| /' conftest.$ac_ext >&5
8660
 
 
8661
 
cat >conftest.$ac_ext <<_ACEOF
8662
 
/* confdefs.h.  */
8663
 
_ACEOF
8664
 
cat confdefs.h >>conftest.$ac_ext
8665
 
cat >>conftest.$ac_ext <<_ACEOF
8666
 
/* end confdefs.h.  */
8667
 
 
8668
 
#include <sys/types.h>
8669
 
#include <sys/socket.h>
8670
 
 
8671
 
int
8672
 
main ()
8673
 
{
8674
 
 
8675
 
int a=0;
8676
 
getsockname(0,(struct sockaddr*)0, &a);
8677
 
 
8678
 
  ;
8679
 
  return 0;
8680
 
}
8681
 
_ACEOF
8682
 
rm -f conftest.$ac_objext
8683
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8684
 
  (eval $ac_compile) 2>conftest.er1
8685
 
  ac_status=$?
8686
 
  grep -v '^ *+' conftest.er1 >conftest.err
8687
 
  rm -f conftest.er1
8688
 
  cat conftest.err >&5
8689
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690
 
  (exit $ac_status); } &&
8691
 
         { ac_try='test -z "$ac_cxx_werror_flag"
8692
 
                         || test ! -s conftest.err'
8693
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694
 
  (eval $ac_try) 2>&5
8695
 
  ac_status=$?
8696
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697
 
  (exit $ac_status); }; } &&
8698
 
         { ac_try='test -s conftest.$ac_objext'
8699
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700
 
  (eval $ac_try) 2>&5
8701
 
  ac_status=$?
8702
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703
 
  (exit $ac_status); }; }; then
8704
 
  ac_cv_socklen_t=int
8705
 
else
8706
 
  echo "$as_me: failed program was:" >&5
8707
 
sed 's/^/| /' conftest.$ac_ext >&5
8708
 
 
8709
 
ac_cv_socklen_t=size_t
8710
 
 
8711
 
fi
8712
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8713
 
 
8714
 
fi
8715
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8716
 
    ac_ext=c
8717
 
ac_cpp='$CPP $CPPFLAGS'
8718
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8719
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8720
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8721
 
 
8722
 
 
8723
 
fi
8724
 
 
8725
 
 
8726
 
  echo "$as_me:$LINENO: result: $ac_cv_socklen_t" >&5
8727
 
echo "${ECHO_T}$ac_cv_socklen_t" >&6
8728
 
  if test "$ac_cv_socklen_t" != "socklen_t"; then
8729
 
 
8730
 
cat >>confdefs.h <<_ACEOF
8731
 
#define socklen_t $ac_cv_socklen_t
8732
 
_ACEOF
8733
 
 
8734
 
  fi
8735
 
 
8736
 
cat >>confdefs.h <<_ACEOF
8737
 
#define ksize_t socklen_t
8738
 
_ACEOF
8739
 
 
8740
 
 
8741
 
 
8742
 
   ac_ext=c
8743
 
ac_cpp='$CPP $CPPFLAGS'
8744
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8745
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8746
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8747
 
 
8748
 
   echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8749
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8750
 
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8751
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8752
 
else
8753
 
  ac_check_lib_save_LIBS=$LIBS
8754
 
LIBS="-ldnet  $LIBS"
8755
 
cat >conftest.$ac_ext <<_ACEOF
8756
 
/* confdefs.h.  */
8757
 
_ACEOF
8758
 
cat confdefs.h >>conftest.$ac_ext
8759
 
cat >>conftest.$ac_ext <<_ACEOF
8760
 
/* end confdefs.h.  */
8761
 
 
8762
 
/* Override any gcc2 internal prototype to avoid an error.  */
8763
 
#ifdef __cplusplus
8764
 
extern "C"
8765
 
#endif
8766
 
/* We use char because int might match the return type of a gcc2
8767
 
   builtin and then its argument prototype would still apply.  */
8768
 
char dnet_ntoa ();
8769
 
int
8770
 
main ()
8771
 
{
8772
 
dnet_ntoa ();
8773
 
  ;
8774
 
  return 0;
8775
 
}
8776
 
_ACEOF
8777
 
rm -f conftest.$ac_objext conftest$ac_exeext
8778
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8779
 
  (eval $ac_link) 2>conftest.er1
8780
 
  ac_status=$?
8781
 
  grep -v '^ *+' conftest.er1 >conftest.err
8782
 
  rm -f conftest.er1
8783
 
  cat conftest.err >&5
8784
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785
 
  (exit $ac_status); } &&
8786
 
         { ac_try='test -z "$ac_c_werror_flag"
8787
 
                         || test ! -s conftest.err'
8788
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789
 
  (eval $ac_try) 2>&5
8790
 
  ac_status=$?
8791
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792
 
  (exit $ac_status); }; } &&
8793
 
         { ac_try='test -s conftest$ac_exeext'
8794
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795
 
  (eval $ac_try) 2>&5
8796
 
  ac_status=$?
8797
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798
 
  (exit $ac_status); }; }; then
8799
 
  ac_cv_lib_dnet_dnet_ntoa=yes
8800
 
else
8801
 
  echo "$as_me: failed program was:" >&5
8802
 
sed 's/^/| /' conftest.$ac_ext >&5
8803
 
 
8804
 
ac_cv_lib_dnet_dnet_ntoa=no
8805
 
fi
8806
 
rm -f conftest.err conftest.$ac_objext \
8807
 
      conftest$ac_exeext conftest.$ac_ext
8808
 
LIBS=$ac_check_lib_save_LIBS
8809
 
fi
8810
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8811
 
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8812
 
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8813
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8814
 
fi
8815
 
 
8816
 
   if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8817
 
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8818
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8819
 
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8820
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8821
 
else
8822
 
  ac_check_lib_save_LIBS=$LIBS
8823
 
LIBS="-ldnet_stub  $LIBS"
8824
 
cat >conftest.$ac_ext <<_ACEOF
8825
 
/* confdefs.h.  */
8826
 
_ACEOF
8827
 
cat confdefs.h >>conftest.$ac_ext
8828
 
cat >>conftest.$ac_ext <<_ACEOF
8829
 
/* end confdefs.h.  */
8830
 
 
8831
 
/* Override any gcc2 internal prototype to avoid an error.  */
8832
 
#ifdef __cplusplus
8833
 
extern "C"
8834
 
#endif
8835
 
/* We use char because int might match the return type of a gcc2
8836
 
   builtin and then its argument prototype would still apply.  */
8837
 
char dnet_ntoa ();
8838
 
int
8839
 
main ()
8840
 
{
8841
 
dnet_ntoa ();
8842
 
  ;
8843
 
  return 0;
8844
 
}
8845
 
_ACEOF
8846
 
rm -f conftest.$ac_objext conftest$ac_exeext
8847
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8848
 
  (eval $ac_link) 2>conftest.er1
8849
 
  ac_status=$?
8850
 
  grep -v '^ *+' conftest.er1 >conftest.err
8851
 
  rm -f conftest.er1
8852
 
  cat conftest.err >&5
8853
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854
 
  (exit $ac_status); } &&
8855
 
         { ac_try='test -z "$ac_c_werror_flag"
8856
 
                         || test ! -s conftest.err'
8857
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858
 
  (eval $ac_try) 2>&5
8859
 
  ac_status=$?
8860
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861
 
  (exit $ac_status); }; } &&
8862
 
         { ac_try='test -s conftest$ac_exeext'
8863
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864
 
  (eval $ac_try) 2>&5
8865
 
  ac_status=$?
8866
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867
 
  (exit $ac_status); }; }; then
8868
 
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
8869
 
else
8870
 
  echo "$as_me: failed program was:" >&5
8871
 
sed 's/^/| /' conftest.$ac_ext >&5
8872
 
 
8873
 
ac_cv_lib_dnet_stub_dnet_ntoa=no
8874
 
fi
8875
 
rm -f conftest.err conftest.$ac_objext \
8876
 
      conftest$ac_exeext conftest.$ac_ext
8877
 
LIBS=$ac_check_lib_save_LIBS
8878
 
fi
8879
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8880
 
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8881
 
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8882
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8883
 
fi
8884
 
 
8885
 
   fi
8886
 
   echo "$as_me:$LINENO: checking for inet_ntoa" >&5
8887
 
echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6
8888
 
if test "${ac_cv_func_inet_ntoa+set}" = set; then
8889
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8890
 
else
8891
 
  cat >conftest.$ac_ext <<_ACEOF
8892
 
/* confdefs.h.  */
8893
 
_ACEOF
8894
 
cat confdefs.h >>conftest.$ac_ext
8895
 
cat >>conftest.$ac_ext <<_ACEOF
8896
 
/* end confdefs.h.  */
8897
 
/* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa.
8898
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8899
 
#define inet_ntoa innocuous_inet_ntoa
8900
 
 
8901
 
/* System header to define __stub macros and hopefully few prototypes,
8902
 
    which can conflict with char inet_ntoa (); below.
8903
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8904
 
    <limits.h> exists even on freestanding compilers.  */
8905
 
 
8906
 
#ifdef __STDC__
8907
 
# include <limits.h>
8908
 
#else
8909
 
# include <assert.h>
8910
 
#endif
8911
 
 
8912
 
#undef inet_ntoa
8913
 
 
8914
 
/* Override any gcc2 internal prototype to avoid an error.  */
8915
 
#ifdef __cplusplus
8916
 
extern "C"
8917
 
{
8918
 
#endif
8919
 
/* We use char because int might match the return type of a gcc2
8920
 
   builtin and then its argument prototype would still apply.  */
8921
 
char inet_ntoa ();
8922
 
/* The GNU C library defines this for functions which it implements
8923
 
    to always fail with ENOSYS.  Some functions are actually named
8924
 
    something starting with __ and the normal name is an alias.  */
8925
 
#if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
8926
 
choke me
8927
 
#else
8928
 
char (*f) () = inet_ntoa;
8929
 
#endif
8930
 
#ifdef __cplusplus
8931
 
}
8932
 
#endif
8933
 
 
8934
 
int
8935
 
main ()
8936
 
{
8937
 
return f != inet_ntoa;
8938
 
  ;
8939
 
  return 0;
8940
 
}
8941
 
_ACEOF
8942
 
rm -f conftest.$ac_objext conftest$ac_exeext
8943
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8944
 
  (eval $ac_link) 2>conftest.er1
8945
 
  ac_status=$?
8946
 
  grep -v '^ *+' conftest.er1 >conftest.err
8947
 
  rm -f conftest.er1
8948
 
  cat conftest.err >&5
8949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950
 
  (exit $ac_status); } &&
8951
 
         { ac_try='test -z "$ac_c_werror_flag"
8952
 
                         || test ! -s conftest.err'
8953
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954
 
  (eval $ac_try) 2>&5
8955
 
  ac_status=$?
8956
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957
 
  (exit $ac_status); }; } &&
8958
 
         { ac_try='test -s conftest$ac_exeext'
8959
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960
 
  (eval $ac_try) 2>&5
8961
 
  ac_status=$?
8962
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963
 
  (exit $ac_status); }; }; then
8964
 
  ac_cv_func_inet_ntoa=yes
8965
 
else
8966
 
  echo "$as_me: failed program was:" >&5
8967
 
sed 's/^/| /' conftest.$ac_ext >&5
8968
 
 
8969
 
ac_cv_func_inet_ntoa=no
8970
 
fi
8971
 
rm -f conftest.err conftest.$ac_objext \
8972
 
      conftest$ac_exeext conftest.$ac_ext
8973
 
fi
8974
 
echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
8975
 
echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6
8976
 
 
8977
 
   if test $ac_cv_func_inet_ntoa = no; then
8978
 
     echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
8979
 
echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
8980
 
if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
8981
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8982
 
else
8983
 
  ac_check_lib_save_LIBS=$LIBS
8984
 
LIBS="-lnsl  $LIBS"
8985
 
cat >conftest.$ac_ext <<_ACEOF
8986
 
/* confdefs.h.  */
8987
 
_ACEOF
8988
 
cat confdefs.h >>conftest.$ac_ext
8989
 
cat >>conftest.$ac_ext <<_ACEOF
8990
 
/* end confdefs.h.  */
8991
 
 
8992
 
/* Override any gcc2 internal prototype to avoid an error.  */
8993
 
#ifdef __cplusplus
8994
 
extern "C"
8995
 
#endif
8996
 
/* We use char because int might match the return type of a gcc2
8997
 
   builtin and then its argument prototype would still apply.  */
8998
 
char inet_ntoa ();
8999
 
int
9000
 
main ()
9001
 
{
9002
 
inet_ntoa ();
9003
 
  ;
9004
 
  return 0;
9005
 
}
9006
 
_ACEOF
9007
 
rm -f conftest.$ac_objext conftest$ac_exeext
9008
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9009
 
  (eval $ac_link) 2>conftest.er1
9010
 
  ac_status=$?
9011
 
  grep -v '^ *+' conftest.er1 >conftest.err
9012
 
  rm -f conftest.er1
9013
 
  cat conftest.err >&5
9014
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015
 
  (exit $ac_status); } &&
9016
 
         { ac_try='test -z "$ac_c_werror_flag"
9017
 
                         || test ! -s conftest.err'
9018
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019
 
  (eval $ac_try) 2>&5
9020
 
  ac_status=$?
9021
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022
 
  (exit $ac_status); }; } &&
9023
 
         { ac_try='test -s conftest$ac_exeext'
9024
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025
 
  (eval $ac_try) 2>&5
9026
 
  ac_status=$?
9027
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028
 
  (exit $ac_status); }; }; then
9029
 
  ac_cv_lib_nsl_inet_ntoa=yes
9030
 
else
9031
 
  echo "$as_me: failed program was:" >&5
9032
 
sed 's/^/| /' conftest.$ac_ext >&5
9033
 
 
9034
 
ac_cv_lib_nsl_inet_ntoa=no
9035
 
fi
9036
 
rm -f conftest.err conftest.$ac_objext \
9037
 
      conftest$ac_exeext conftest.$ac_ext
9038
 
LIBS=$ac_check_lib_save_LIBS
9039
 
fi
9040
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
9041
 
echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
9042
 
if test $ac_cv_lib_nsl_inet_ntoa = yes; then
9043
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9044
 
fi
9045
 
 
9046
 
   fi
9047
 
   echo "$as_me:$LINENO: checking for connect" >&5
9048
 
echo $ECHO_N "checking for connect... $ECHO_C" >&6
9049
 
if test "${ac_cv_func_connect+set}" = set; then
9050
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9051
 
else
9052
 
  cat >conftest.$ac_ext <<_ACEOF
9053
 
/* confdefs.h.  */
9054
 
_ACEOF
9055
 
cat confdefs.h >>conftest.$ac_ext
9056
 
cat >>conftest.$ac_ext <<_ACEOF
9057
 
/* end confdefs.h.  */
9058
 
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
9059
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9060
 
#define connect innocuous_connect
9061
 
 
9062
 
/* System header to define __stub macros and hopefully few prototypes,
9063
 
    which can conflict with char connect (); below.
9064
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9065
 
    <limits.h> exists even on freestanding compilers.  */
9066
 
 
9067
 
#ifdef __STDC__
9068
 
# include <limits.h>
9069
 
#else
9070
 
# include <assert.h>
9071
 
#endif
9072
 
 
9073
 
#undef connect
9074
 
 
9075
 
/* Override any gcc2 internal prototype to avoid an error.  */
9076
 
#ifdef __cplusplus
9077
 
extern "C"
9078
 
{
9079
 
#endif
9080
 
/* We use char because int might match the return type of a gcc2
9081
 
   builtin and then its argument prototype would still apply.  */
9082
 
char connect ();
9083
 
/* The GNU C library defines this for functions which it implements
9084
 
    to always fail with ENOSYS.  Some functions are actually named
9085
 
    something starting with __ and the normal name is an alias.  */
9086
 
#if defined (__stub_connect) || defined (__stub___connect)
9087
 
choke me
9088
 
#else
9089
 
char (*f) () = connect;
9090
 
#endif
9091
 
#ifdef __cplusplus
9092
 
}
9093
 
#endif
9094
 
 
9095
 
int
9096
 
main ()
9097
 
{
9098
 
return f != connect;
9099
 
  ;
9100
 
  return 0;
9101
 
}
9102
 
_ACEOF
9103
 
rm -f conftest.$ac_objext conftest$ac_exeext
9104
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9105
 
  (eval $ac_link) 2>conftest.er1
9106
 
  ac_status=$?
9107
 
  grep -v '^ *+' conftest.er1 >conftest.err
9108
 
  rm -f conftest.er1
9109
 
  cat conftest.err >&5
9110
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111
 
  (exit $ac_status); } &&
9112
 
         { ac_try='test -z "$ac_c_werror_flag"
9113
 
                         || test ! -s conftest.err'
9114
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115
 
  (eval $ac_try) 2>&5
9116
 
  ac_status=$?
9117
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118
 
  (exit $ac_status); }; } &&
9119
 
         { ac_try='test -s conftest$ac_exeext'
9120
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121
 
  (eval $ac_try) 2>&5
9122
 
  ac_status=$?
9123
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124
 
  (exit $ac_status); }; }; then
9125
 
  ac_cv_func_connect=yes
9126
 
else
9127
 
  echo "$as_me: failed program was:" >&5
9128
 
sed 's/^/| /' conftest.$ac_ext >&5
9129
 
 
9130
 
ac_cv_func_connect=no
9131
 
fi
9132
 
rm -f conftest.err conftest.$ac_objext \
9133
 
      conftest$ac_exeext conftest.$ac_ext
9134
 
fi
9135
 
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9136
 
echo "${ECHO_T}$ac_cv_func_connect" >&6
9137
 
 
9138
 
   if test $ac_cv_func_connect = no; then
9139
 
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9140
 
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9141
 
if test "${ac_cv_lib_socket_connect+set}" = set; then
9142
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9143
 
else
9144
 
  ac_check_lib_save_LIBS=$LIBS
9145
 
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9146
 
cat >conftest.$ac_ext <<_ACEOF
9147
 
/* confdefs.h.  */
9148
 
_ACEOF
9149
 
cat confdefs.h >>conftest.$ac_ext
9150
 
cat >>conftest.$ac_ext <<_ACEOF
9151
 
/* end confdefs.h.  */
9152
 
 
9153
 
/* Override any gcc2 internal prototype to avoid an error.  */
9154
 
#ifdef __cplusplus
9155
 
extern "C"
9156
 
#endif
9157
 
/* We use char because int might match the return type of a gcc2
9158
 
   builtin and then its argument prototype would still apply.  */
9159
 
char connect ();
9160
 
int
9161
 
main ()
9162
 
{
9163
 
connect ();
9164
 
  ;
9165
 
  return 0;
9166
 
}
9167
 
_ACEOF
9168
 
rm -f conftest.$ac_objext conftest$ac_exeext
9169
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9170
 
  (eval $ac_link) 2>conftest.er1
9171
 
  ac_status=$?
9172
 
  grep -v '^ *+' conftest.er1 >conftest.err
9173
 
  rm -f conftest.er1
9174
 
  cat conftest.err >&5
9175
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176
 
  (exit $ac_status); } &&
9177
 
         { ac_try='test -z "$ac_c_werror_flag"
9178
 
                         || test ! -s conftest.err'
9179
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180
 
  (eval $ac_try) 2>&5
9181
 
  ac_status=$?
9182
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183
 
  (exit $ac_status); }; } &&
9184
 
         { ac_try='test -s conftest$ac_exeext'
9185
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186
 
  (eval $ac_try) 2>&5
9187
 
  ac_status=$?
9188
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189
 
  (exit $ac_status); }; }; then
9190
 
  ac_cv_lib_socket_connect=yes
9191
 
else
9192
 
  echo "$as_me: failed program was:" >&5
9193
 
sed 's/^/| /' conftest.$ac_ext >&5
9194
 
 
9195
 
ac_cv_lib_socket_connect=no
9196
 
fi
9197
 
rm -f conftest.err conftest.$ac_objext \
9198
 
      conftest$ac_exeext conftest.$ac_ext
9199
 
LIBS=$ac_check_lib_save_LIBS
9200
 
fi
9201
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9202
 
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9203
 
if test $ac_cv_lib_socket_connect = yes; then
9204
 
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9205
 
fi
9206
 
 
9207
 
   fi
9208
 
 
9209
 
   echo "$as_me:$LINENO: checking for remove" >&5
9210
 
echo $ECHO_N "checking for remove... $ECHO_C" >&6
9211
 
if test "${ac_cv_func_remove+set}" = set; then
9212
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9213
 
else
9214
 
  cat >conftest.$ac_ext <<_ACEOF
9215
 
/* confdefs.h.  */
9216
 
_ACEOF
9217
 
cat confdefs.h >>conftest.$ac_ext
9218
 
cat >>conftest.$ac_ext <<_ACEOF
9219
 
/* end confdefs.h.  */
9220
 
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
9221
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9222
 
#define remove innocuous_remove
9223
 
 
9224
 
/* System header to define __stub macros and hopefully few prototypes,
9225
 
    which can conflict with char remove (); below.
9226
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9227
 
    <limits.h> exists even on freestanding compilers.  */
9228
 
 
9229
 
#ifdef __STDC__
9230
 
# include <limits.h>
9231
 
#else
9232
 
# include <assert.h>
9233
 
#endif
9234
 
 
9235
 
#undef remove
9236
 
 
9237
 
/* Override any gcc2 internal prototype to avoid an error.  */
9238
 
#ifdef __cplusplus
9239
 
extern "C"
9240
 
{
9241
 
#endif
9242
 
/* We use char because int might match the return type of a gcc2
9243
 
   builtin and then its argument prototype would still apply.  */
9244
 
char remove ();
9245
 
/* The GNU C library defines this for functions which it implements
9246
 
    to always fail with ENOSYS.  Some functions are actually named
9247
 
    something starting with __ and the normal name is an alias.  */
9248
 
#if defined (__stub_remove) || defined (__stub___remove)
9249
 
choke me
9250
 
#else
9251
 
char (*f) () = remove;
9252
 
#endif
9253
 
#ifdef __cplusplus
9254
 
}
9255
 
#endif
9256
 
 
9257
 
int
9258
 
main ()
9259
 
{
9260
 
return f != remove;
9261
 
  ;
9262
 
  return 0;
9263
 
}
9264
 
_ACEOF
9265
 
rm -f conftest.$ac_objext conftest$ac_exeext
9266
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9267
 
  (eval $ac_link) 2>conftest.er1
9268
 
  ac_status=$?
9269
 
  grep -v '^ *+' conftest.er1 >conftest.err
9270
 
  rm -f conftest.er1
9271
 
  cat conftest.err >&5
9272
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273
 
  (exit $ac_status); } &&
9274
 
         { ac_try='test -z "$ac_c_werror_flag"
9275
 
                         || test ! -s conftest.err'
9276
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277
 
  (eval $ac_try) 2>&5
9278
 
  ac_status=$?
9279
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280
 
  (exit $ac_status); }; } &&
9281
 
         { ac_try='test -s conftest$ac_exeext'
9282
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9283
 
  (eval $ac_try) 2>&5
9284
 
  ac_status=$?
9285
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286
 
  (exit $ac_status); }; }; then
9287
 
  ac_cv_func_remove=yes
9288
 
else
9289
 
  echo "$as_me: failed program was:" >&5
9290
 
sed 's/^/| /' conftest.$ac_ext >&5
9291
 
 
9292
 
ac_cv_func_remove=no
9293
 
fi
9294
 
rm -f conftest.err conftest.$ac_objext \
9295
 
      conftest$ac_exeext conftest.$ac_ext
9296
 
fi
9297
 
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9298
 
echo "${ECHO_T}$ac_cv_func_remove" >&6
9299
 
 
9300
 
   if test $ac_cv_func_remove = no; then
9301
 
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9302
 
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9303
 
if test "${ac_cv_lib_posix_remove+set}" = set; then
9304
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9305
 
else
9306
 
  ac_check_lib_save_LIBS=$LIBS
9307
 
LIBS="-lposix  $LIBS"
9308
 
cat >conftest.$ac_ext <<_ACEOF
9309
 
/* confdefs.h.  */
9310
 
_ACEOF
9311
 
cat confdefs.h >>conftest.$ac_ext
9312
 
cat >>conftest.$ac_ext <<_ACEOF
9313
 
/* end confdefs.h.  */
9314
 
 
9315
 
/* Override any gcc2 internal prototype to avoid an error.  */
9316
 
#ifdef __cplusplus
9317
 
extern "C"
9318
 
#endif
9319
 
/* We use char because int might match the return type of a gcc2
9320
 
   builtin and then its argument prototype would still apply.  */
9321
 
char remove ();
9322
 
int
9323
 
main ()
9324
 
{
9325
 
remove ();
9326
 
  ;
9327
 
  return 0;
9328
 
}
9329
 
_ACEOF
9330
 
rm -f conftest.$ac_objext conftest$ac_exeext
9331
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9332
 
  (eval $ac_link) 2>conftest.er1
9333
 
  ac_status=$?
9334
 
  grep -v '^ *+' conftest.er1 >conftest.err
9335
 
  rm -f conftest.er1
9336
 
  cat conftest.err >&5
9337
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338
 
  (exit $ac_status); } &&
9339
 
         { ac_try='test -z "$ac_c_werror_flag"
9340
 
                         || test ! -s conftest.err'
9341
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342
 
  (eval $ac_try) 2>&5
9343
 
  ac_status=$?
9344
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345
 
  (exit $ac_status); }; } &&
9346
 
         { ac_try='test -s conftest$ac_exeext'
9347
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348
 
  (eval $ac_try) 2>&5
9349
 
  ac_status=$?
9350
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351
 
  (exit $ac_status); }; }; then
9352
 
  ac_cv_lib_posix_remove=yes
9353
 
else
9354
 
  echo "$as_me: failed program was:" >&5
9355
 
sed 's/^/| /' conftest.$ac_ext >&5
9356
 
 
9357
 
ac_cv_lib_posix_remove=no
9358
 
fi
9359
 
rm -f conftest.err conftest.$ac_objext \
9360
 
      conftest$ac_exeext conftest.$ac_ext
9361
 
LIBS=$ac_check_lib_save_LIBS
9362
 
fi
9363
 
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9364
 
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9365
 
if test $ac_cv_lib_posix_remove = yes; then
9366
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9367
 
fi
9368
 
 
9369
 
   fi
9370
 
 
9371
 
   # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9372
 
   echo "$as_me:$LINENO: checking for shmat" >&5
9373
 
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9374
 
if test "${ac_cv_func_shmat+set}" = set; then
9375
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9376
 
else
9377
 
  cat >conftest.$ac_ext <<_ACEOF
9378
 
/* confdefs.h.  */
9379
 
_ACEOF
9380
 
cat confdefs.h >>conftest.$ac_ext
9381
 
cat >>conftest.$ac_ext <<_ACEOF
9382
 
/* end confdefs.h.  */
9383
 
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
9384
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9385
 
#define shmat innocuous_shmat
9386
 
 
9387
 
/* System header to define __stub macros and hopefully few prototypes,
9388
 
    which can conflict with char shmat (); below.
9389
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9390
 
    <limits.h> exists even on freestanding compilers.  */
9391
 
 
9392
 
#ifdef __STDC__
9393
 
# include <limits.h>
9394
 
#else
9395
 
# include <assert.h>
9396
 
#endif
9397
 
 
9398
 
#undef shmat
9399
 
 
9400
 
/* Override any gcc2 internal prototype to avoid an error.  */
9401
 
#ifdef __cplusplus
9402
 
extern "C"
9403
 
{
9404
 
#endif
9405
 
/* We use char because int might match the return type of a gcc2
9406
 
   builtin and then its argument prototype would still apply.  */
9407
 
char shmat ();
9408
 
/* The GNU C library defines this for functions which it implements
9409
 
    to always fail with ENOSYS.  Some functions are actually named
9410
 
    something starting with __ and the normal name is an alias.  */
9411
 
#if defined (__stub_shmat) || defined (__stub___shmat)
9412
 
choke me
9413
 
#else
9414
 
char (*f) () = shmat;
9415
 
#endif
9416
 
#ifdef __cplusplus
9417
 
}
9418
 
#endif
9419
 
 
9420
 
int
9421
 
main ()
9422
 
{
9423
 
return f != shmat;
9424
 
  ;
9425
 
  return 0;
9426
 
}
9427
 
_ACEOF
9428
 
rm -f conftest.$ac_objext conftest$ac_exeext
9429
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9430
 
  (eval $ac_link) 2>conftest.er1
9431
 
  ac_status=$?
9432
 
  grep -v '^ *+' conftest.er1 >conftest.err
9433
 
  rm -f conftest.er1
9434
 
  cat conftest.err >&5
9435
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436
 
  (exit $ac_status); } &&
9437
 
         { ac_try='test -z "$ac_c_werror_flag"
9438
 
                         || test ! -s conftest.err'
9439
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440
 
  (eval $ac_try) 2>&5
9441
 
  ac_status=$?
9442
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443
 
  (exit $ac_status); }; } &&
9444
 
         { ac_try='test -s conftest$ac_exeext'
9445
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446
 
  (eval $ac_try) 2>&5
9447
 
  ac_status=$?
9448
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449
 
  (exit $ac_status); }; }; then
9450
 
  ac_cv_func_shmat=yes
9451
 
else
9452
 
  echo "$as_me: failed program was:" >&5
9453
 
sed 's/^/| /' conftest.$ac_ext >&5
9454
 
 
9455
 
ac_cv_func_shmat=no
9456
 
fi
9457
 
rm -f conftest.err conftest.$ac_objext \
9458
 
      conftest$ac_exeext conftest.$ac_ext
9459
 
fi
9460
 
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9461
 
echo "${ECHO_T}$ac_cv_func_shmat" >&6
9462
 
if test $ac_cv_func_shmat = yes; then
9463
 
  :
9464
 
else
9465
 
  echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9466
 
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9467
 
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9468
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9469
 
else
9470
 
  ac_check_lib_save_LIBS=$LIBS
9471
 
LIBS="-lipc  $LIBS"
9472
 
cat >conftest.$ac_ext <<_ACEOF
9473
 
/* confdefs.h.  */
9474
 
_ACEOF
9475
 
cat confdefs.h >>conftest.$ac_ext
9476
 
cat >>conftest.$ac_ext <<_ACEOF
9477
 
/* end confdefs.h.  */
9478
 
 
9479
 
/* Override any gcc2 internal prototype to avoid an error.  */
9480
 
#ifdef __cplusplus
9481
 
extern "C"
9482
 
#endif
9483
 
/* We use char because int might match the return type of a gcc2
9484
 
   builtin and then its argument prototype would still apply.  */
9485
 
char shmat ();
9486
 
int
9487
 
main ()
9488
 
{
9489
 
shmat ();
9490
 
  ;
9491
 
  return 0;
9492
 
}
9493
 
_ACEOF
9494
 
rm -f conftest.$ac_objext conftest$ac_exeext
9495
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9496
 
  (eval $ac_link) 2>conftest.er1
9497
 
  ac_status=$?
9498
 
  grep -v '^ *+' conftest.er1 >conftest.err
9499
 
  rm -f conftest.er1
9500
 
  cat conftest.err >&5
9501
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502
 
  (exit $ac_status); } &&
9503
 
         { ac_try='test -z "$ac_c_werror_flag"
9504
 
                         || test ! -s conftest.err'
9505
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506
 
  (eval $ac_try) 2>&5
9507
 
  ac_status=$?
9508
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509
 
  (exit $ac_status); }; } &&
9510
 
         { ac_try='test -s conftest$ac_exeext'
9511
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512
 
  (eval $ac_try) 2>&5
9513
 
  ac_status=$?
9514
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515
 
  (exit $ac_status); }; }; then
9516
 
  ac_cv_lib_ipc_shmat=yes
9517
 
else
9518
 
  echo "$as_me: failed program was:" >&5
9519
 
sed 's/^/| /' conftest.$ac_ext >&5
9520
 
 
9521
 
ac_cv_lib_ipc_shmat=no
9522
 
fi
9523
 
rm -f conftest.err conftest.$ac_objext \
9524
 
      conftest$ac_exeext conftest.$ac_ext
9525
 
LIBS=$ac_check_lib_save_LIBS
9526
 
fi
9527
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9528
 
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9529
 
if test $ac_cv_lib_ipc_shmat = yes; then
9530
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9531
 
fi
9532
 
 
9533
 
fi
9534
 
 
9535
 
 
9536
 
   # Solaris 2.6 and others need -lresolv for res_init
9537
 
 
9538
 
for ac_func in res_init
9539
 
do
9540
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9541
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
9542
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9543
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
9544
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9545
 
else
9546
 
  cat >conftest.$ac_ext <<_ACEOF
9547
 
/* confdefs.h.  */
9548
 
_ACEOF
9549
 
cat confdefs.h >>conftest.$ac_ext
9550
 
cat >>conftest.$ac_ext <<_ACEOF
9551
 
/* end confdefs.h.  */
9552
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9553
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9554
 
#define $ac_func innocuous_$ac_func
9555
 
 
9556
 
/* System header to define __stub macros and hopefully few prototypes,
9557
 
    which can conflict with char $ac_func (); below.
9558
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9559
 
    <limits.h> exists even on freestanding compilers.  */
9560
 
 
9561
 
#ifdef __STDC__
9562
 
# include <limits.h>
9563
 
#else
9564
 
# include <assert.h>
9565
 
#endif
9566
 
 
9567
 
#undef $ac_func
9568
 
 
9569
 
/* Override any gcc2 internal prototype to avoid an error.  */
9570
 
#ifdef __cplusplus
9571
 
extern "C"
9572
 
{
9573
 
#endif
9574
 
/* We use char because int might match the return type of a gcc2
9575
 
   builtin and then its argument prototype would still apply.  */
9576
 
char $ac_func ();
9577
 
/* The GNU C library defines this for functions which it implements
9578
 
    to always fail with ENOSYS.  Some functions are actually named
9579
 
    something starting with __ and the normal name is an alias.  */
9580
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9581
 
choke me
9582
 
#else
9583
 
char (*f) () = $ac_func;
9584
 
#endif
9585
 
#ifdef __cplusplus
9586
 
}
9587
 
#endif
9588
 
 
9589
 
int
9590
 
main ()
9591
 
{
9592
 
return f != $ac_func;
9593
 
  ;
9594
 
  return 0;
9595
 
}
9596
 
_ACEOF
9597
 
rm -f conftest.$ac_objext conftest$ac_exeext
9598
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9599
 
  (eval $ac_link) 2>conftest.er1
9600
 
  ac_status=$?
9601
 
  grep -v '^ *+' conftest.er1 >conftest.err
9602
 
  rm -f conftest.er1
9603
 
  cat conftest.err >&5
9604
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605
 
  (exit $ac_status); } &&
9606
 
         { ac_try='test -z "$ac_c_werror_flag"
9607
 
                         || test ! -s conftest.err'
9608
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609
 
  (eval $ac_try) 2>&5
9610
 
  ac_status=$?
9611
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612
 
  (exit $ac_status); }; } &&
9613
 
         { ac_try='test -s conftest$ac_exeext'
9614
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615
 
  (eval $ac_try) 2>&5
9616
 
  ac_status=$?
9617
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618
 
  (exit $ac_status); }; }; then
9619
 
  eval "$as_ac_var=yes"
9620
 
else
9621
 
  echo "$as_me: failed program was:" >&5
9622
 
sed 's/^/| /' conftest.$ac_ext >&5
9623
 
 
9624
 
eval "$as_ac_var=no"
9625
 
fi
9626
 
rm -f conftest.err conftest.$ac_objext \
9627
 
      conftest$ac_exeext conftest.$ac_ext
9628
 
fi
9629
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9630
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9631
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
9632
 
  cat >>confdefs.h <<_ACEOF
9633
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9634
 
_ACEOF
9635
 
 
9636
 
else
9637
 
 
9638
 
     kde_libs_safe="$LIBS"
9639
 
     LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
9640
 
     cat >conftest.$ac_ext <<_ACEOF
9641
 
/* confdefs.h.  */
9642
 
_ACEOF
9643
 
cat confdefs.h >>conftest.$ac_ext
9644
 
cat >>conftest.$ac_ext <<_ACEOF
9645
 
/* end confdefs.h.  */
9646
 
 
9647
 
#include <resolv.h>
9648
 
 
9649
 
int
9650
 
main ()
9651
 
{
9652
 
 
9653
 
res_init();
9654
 
 
9655
 
  ;
9656
 
  return 0;
9657
 
}
9658
 
_ACEOF
9659
 
rm -f conftest.$ac_objext conftest$ac_exeext
9660
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9661
 
  (eval $ac_link) 2>conftest.er1
9662
 
  ac_status=$?
9663
 
  grep -v '^ *+' conftest.er1 >conftest.err
9664
 
  rm -f conftest.er1
9665
 
  cat conftest.err >&5
9666
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667
 
  (exit $ac_status); } &&
9668
 
         { ac_try='test -z "$ac_c_werror_flag"
9669
 
                         || test ! -s conftest.err'
9670
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671
 
  (eval $ac_try) 2>&5
9672
 
  ac_status=$?
9673
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674
 
  (exit $ac_status); }; } &&
9675
 
         { ac_try='test -s conftest$ac_exeext'
9676
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677
 
  (eval $ac_try) 2>&5
9678
 
  ac_status=$?
9679
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680
 
  (exit $ac_status); }; }; then
9681
 
  LIBRESOLV="-lresolv"
9682
 
        X_EXTRA_LIBS="$X_EXTRA_LIBS $LIBRESOLV"
9683
 
 
9684
 
cat >>confdefs.h <<\_ACEOF
9685
 
#define HAVE_RES_INIT 1
9686
 
_ACEOF
9687
 
 
9688
 
 
9689
 
else
9690
 
  echo "$as_me: failed program was:" >&5
9691
 
sed 's/^/| /' conftest.$ac_ext >&5
9692
 
 
9693
 
fi
9694
 
rm -f conftest.err conftest.$ac_objext \
9695
 
      conftest$ac_exeext conftest.$ac_ext
9696
 
     LIBS=$kde_libs_safe
9697
 
 
9698
 
fi
9699
 
done
9700
 
 
9701
 
 
9702
 
   LIBSOCKET="$X_EXTRA_LIBS"
9703
 
 
9704
 
 
9705
 
 
9706
 
   echo "$as_me:$LINENO: checking for killpg in -lucb" >&5
9707
 
echo $ECHO_N "checking for killpg in -lucb... $ECHO_C" >&6
9708
 
if test "${ac_cv_lib_ucb_killpg+set}" = set; then
9709
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9710
 
else
9711
 
  ac_check_lib_save_LIBS=$LIBS
9712
 
LIBS="-lucb  $LIBS"
9713
 
cat >conftest.$ac_ext <<_ACEOF
9714
 
/* confdefs.h.  */
9715
 
_ACEOF
9716
 
cat confdefs.h >>conftest.$ac_ext
9717
 
cat >>conftest.$ac_ext <<_ACEOF
9718
 
/* end confdefs.h.  */
9719
 
 
9720
 
/* Override any gcc2 internal prototype to avoid an error.  */
9721
 
#ifdef __cplusplus
9722
 
extern "C"
9723
 
#endif
9724
 
/* We use char because int might match the return type of a gcc2
9725
 
   builtin and then its argument prototype would still apply.  */
9726
 
char killpg ();
9727
 
int
9728
 
main ()
9729
 
{
9730
 
killpg ();
9731
 
  ;
9732
 
  return 0;
9733
 
}
9734
 
_ACEOF
9735
 
rm -f conftest.$ac_objext conftest$ac_exeext
9736
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737
 
  (eval $ac_link) 2>conftest.er1
9738
 
  ac_status=$?
9739
 
  grep -v '^ *+' conftest.er1 >conftest.err
9740
 
  rm -f conftest.er1
9741
 
  cat conftest.err >&5
9742
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743
 
  (exit $ac_status); } &&
9744
 
         { ac_try='test -z "$ac_c_werror_flag"
9745
 
                         || test ! -s conftest.err'
9746
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747
 
  (eval $ac_try) 2>&5
9748
 
  ac_status=$?
9749
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750
 
  (exit $ac_status); }; } &&
9751
 
         { ac_try='test -s conftest$ac_exeext'
9752
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753
 
  (eval $ac_try) 2>&5
9754
 
  ac_status=$?
9755
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756
 
  (exit $ac_status); }; }; then
9757
 
  ac_cv_lib_ucb_killpg=yes
9758
 
else
9759
 
  echo "$as_me: failed program was:" >&5
9760
 
sed 's/^/| /' conftest.$ac_ext >&5
9761
 
 
9762
 
ac_cv_lib_ucb_killpg=no
9763
 
fi
9764
 
rm -f conftest.err conftest.$ac_objext \
9765
 
      conftest$ac_exeext conftest.$ac_ext
9766
 
LIBS=$ac_check_lib_save_LIBS
9767
 
fi
9768
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5
9769
 
echo "${ECHO_T}$ac_cv_lib_ucb_killpg" >&6
9770
 
if test $ac_cv_lib_ucb_killpg = yes; then
9771
 
  LIBUCB="-lucb"
9772
 
fi
9773
 
 
9774
 
 
9775
 
   case $host in     *-*-lynxos* )
9776
 
        echo "$as_me:$LINENO: checking LynxOS header file wrappers" >&5
9777
 
echo $ECHO_N "checking LynxOS header file wrappers... $ECHO_C" >&6
9778
 
        CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
9779
 
        echo "$as_me:$LINENO: result: disabled" >&5
9780
 
echo "${ECHO_T}disabled" >&6
9781
 
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9782
 
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9783
 
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9784
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9785
 
else
9786
 
  ac_check_lib_save_LIBS=$LIBS
9787
 
LIBS="-lbsd  $LIBS"
9788
 
cat >conftest.$ac_ext <<_ACEOF
9789
 
/* confdefs.h.  */
9790
 
_ACEOF
9791
 
cat confdefs.h >>conftest.$ac_ext
9792
 
cat >>conftest.$ac_ext <<_ACEOF
9793
 
/* end confdefs.h.  */
9794
 
 
9795
 
/* Override any gcc2 internal prototype to avoid an error.  */
9796
 
#ifdef __cplusplus
9797
 
extern "C"
9798
 
#endif
9799
 
/* We use char because int might match the return type of a gcc2
9800
 
   builtin and then its argument prototype would still apply.  */
9801
 
char gethostbyname ();
9802
 
int
9803
 
main ()
9804
 
{
9805
 
gethostbyname ();
9806
 
  ;
9807
 
  return 0;
9808
 
}
9809
 
_ACEOF
9810
 
rm -f conftest.$ac_objext conftest$ac_exeext
9811
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9812
 
  (eval $ac_link) 2>conftest.er1
9813
 
  ac_status=$?
9814
 
  grep -v '^ *+' conftest.er1 >conftest.err
9815
 
  rm -f conftest.er1
9816
 
  cat conftest.err >&5
9817
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818
 
  (exit $ac_status); } &&
9819
 
         { ac_try='test -z "$ac_c_werror_flag"
9820
 
                         || test ! -s conftest.err'
9821
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822
 
  (eval $ac_try) 2>&5
9823
 
  ac_status=$?
9824
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825
 
  (exit $ac_status); }; } &&
9826
 
         { ac_try='test -s conftest$ac_exeext'
9827
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828
 
  (eval $ac_try) 2>&5
9829
 
  ac_status=$?
9830
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831
 
  (exit $ac_status); }; }; then
9832
 
  ac_cv_lib_bsd_gethostbyname=yes
9833
 
else
9834
 
  echo "$as_me: failed program was:" >&5
9835
 
sed 's/^/| /' conftest.$ac_ext >&5
9836
 
 
9837
 
ac_cv_lib_bsd_gethostbyname=no
9838
 
fi
9839
 
rm -f conftest.err conftest.$ac_objext \
9840
 
      conftest$ac_exeext conftest.$ac_ext
9841
 
LIBS=$ac_check_lib_save_LIBS
9842
 
fi
9843
 
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9844
 
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9845
 
if test $ac_cv_lib_bsd_gethostbyname = yes; then
9846
 
  LIBSOCKET="-lbsd"
9847
 
fi
9848
 
          ;;
9849
 
    esac
9850
 
 
9851
 
     echo "$as_me:$LINENO: checking for int" >&5
9852
 
echo $ECHO_N "checking for int... $ECHO_C" >&6
9853
 
if test "${ac_cv_type_int+set}" = set; then
9854
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9855
 
else
9856
 
  cat >conftest.$ac_ext <<_ACEOF
9857
 
/* confdefs.h.  */
9858
 
_ACEOF
9859
 
cat confdefs.h >>conftest.$ac_ext
9860
 
cat >>conftest.$ac_ext <<_ACEOF
9861
 
/* end confdefs.h.  */
9862
 
$ac_includes_default
9863
 
int
9864
 
main ()
9865
 
{
9866
 
if ((int *) 0)
9867
 
  return 0;
9868
 
if (sizeof (int))
9869
 
  return 0;
9870
 
  ;
9871
 
  return 0;
9872
 
}
9873
 
_ACEOF
9874
 
rm -f conftest.$ac_objext
9875
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9876
 
  (eval $ac_compile) 2>conftest.er1
9877
 
  ac_status=$?
9878
 
  grep -v '^ *+' conftest.er1 >conftest.err
9879
 
  rm -f conftest.er1
9880
 
  cat conftest.err >&5
9881
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882
 
  (exit $ac_status); } &&
9883
 
         { ac_try='test -z "$ac_c_werror_flag"
9884
 
                         || test ! -s conftest.err'
9885
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886
 
  (eval $ac_try) 2>&5
9887
 
  ac_status=$?
9888
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889
 
  (exit $ac_status); }; } &&
9890
 
         { ac_try='test -s conftest.$ac_objext'
9891
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892
 
  (eval $ac_try) 2>&5
9893
 
  ac_status=$?
9894
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895
 
  (exit $ac_status); }; }; then
9896
 
  ac_cv_type_int=yes
9897
 
else
9898
 
  echo "$as_me: failed program was:" >&5
9899
 
sed 's/^/| /' conftest.$ac_ext >&5
9900
 
 
9901
 
ac_cv_type_int=no
9902
 
fi
9903
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9904
 
fi
9905
 
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
9906
 
echo "${ECHO_T}$ac_cv_type_int" >&6
9907
 
 
9908
 
echo "$as_me:$LINENO: checking size of int" >&5
9909
 
echo $ECHO_N "checking size of int... $ECHO_C" >&6
9910
 
if test "${ac_cv_sizeof_int+set}" = set; then
9911
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9912
 
else
9913
 
  if test "$ac_cv_type_int" = yes; then
9914
 
  # The cast to unsigned long works around a bug in the HP C Compiler
9915
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9916
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9917
 
  # This bug is HP SR number 8606223364.
9918
 
  if test "$cross_compiling" = yes; then
9919
 
  # Depending upon the size, compute the lo and hi bounds.
9920
 
cat >conftest.$ac_ext <<_ACEOF
9921
 
/* confdefs.h.  */
9922
 
_ACEOF
9923
 
cat confdefs.h >>conftest.$ac_ext
9924
 
cat >>conftest.$ac_ext <<_ACEOF
9925
 
/* end confdefs.h.  */
9926
 
$ac_includes_default
9927
 
int
9928
 
main ()
9929
 
{
9930
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
9931
 
test_array [0] = 0
9932
 
 
9933
 
  ;
9934
 
  return 0;
9935
 
}
9936
 
_ACEOF
9937
 
rm -f conftest.$ac_objext
9938
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9939
 
  (eval $ac_compile) 2>conftest.er1
9940
 
  ac_status=$?
9941
 
  grep -v '^ *+' conftest.er1 >conftest.err
9942
 
  rm -f conftest.er1
9943
 
  cat conftest.err >&5
9944
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945
 
  (exit $ac_status); } &&
9946
 
         { ac_try='test -z "$ac_c_werror_flag"
9947
 
                         || test ! -s conftest.err'
9948
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949
 
  (eval $ac_try) 2>&5
9950
 
  ac_status=$?
9951
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952
 
  (exit $ac_status); }; } &&
9953
 
         { ac_try='test -s conftest.$ac_objext'
9954
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955
 
  (eval $ac_try) 2>&5
9956
 
  ac_status=$?
9957
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958
 
  (exit $ac_status); }; }; then
9959
 
  ac_lo=0 ac_mid=0
9960
 
  while :; do
9961
 
    cat >conftest.$ac_ext <<_ACEOF
9962
 
/* confdefs.h.  */
9963
 
_ACEOF
9964
 
cat confdefs.h >>conftest.$ac_ext
9965
 
cat >>conftest.$ac_ext <<_ACEOF
9966
 
/* end confdefs.h.  */
9967
 
$ac_includes_default
9968
 
int
9969
 
main ()
9970
 
{
9971
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
9972
 
test_array [0] = 0
9973
 
 
9974
 
  ;
9975
 
  return 0;
9976
 
}
9977
 
_ACEOF
9978
 
rm -f conftest.$ac_objext
9979
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9980
 
  (eval $ac_compile) 2>conftest.er1
9981
 
  ac_status=$?
9982
 
  grep -v '^ *+' conftest.er1 >conftest.err
9983
 
  rm -f conftest.er1
9984
 
  cat conftest.err >&5
9985
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986
 
  (exit $ac_status); } &&
9987
 
         { ac_try='test -z "$ac_c_werror_flag"
9988
 
                         || test ! -s conftest.err'
9989
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990
 
  (eval $ac_try) 2>&5
9991
 
  ac_status=$?
9992
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993
 
  (exit $ac_status); }; } &&
9994
 
         { ac_try='test -s conftest.$ac_objext'
9995
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996
 
  (eval $ac_try) 2>&5
9997
 
  ac_status=$?
9998
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999
 
  (exit $ac_status); }; }; then
10000
 
  ac_hi=$ac_mid; break
10001
 
else
10002
 
  echo "$as_me: failed program was:" >&5
10003
 
sed 's/^/| /' conftest.$ac_ext >&5
10004
 
 
10005
 
ac_lo=`expr $ac_mid + 1`
10006
 
                    if test $ac_lo -le $ac_mid; then
10007
 
                      ac_lo= ac_hi=
10008
 
                      break
10009
 
                    fi
10010
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
10011
 
fi
10012
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10013
 
  done
10014
 
else
10015
 
  echo "$as_me: failed program was:" >&5
10016
 
sed 's/^/| /' conftest.$ac_ext >&5
10017
 
 
10018
 
cat >conftest.$ac_ext <<_ACEOF
10019
 
/* confdefs.h.  */
10020
 
_ACEOF
10021
 
cat confdefs.h >>conftest.$ac_ext
10022
 
cat >>conftest.$ac_ext <<_ACEOF
10023
 
/* end confdefs.h.  */
10024
 
$ac_includes_default
10025
 
int
10026
 
main ()
10027
 
{
10028
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
10029
 
test_array [0] = 0
10030
 
 
10031
 
  ;
10032
 
  return 0;
10033
 
}
10034
 
_ACEOF
10035
 
rm -f conftest.$ac_objext
10036
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10037
 
  (eval $ac_compile) 2>conftest.er1
10038
 
  ac_status=$?
10039
 
  grep -v '^ *+' conftest.er1 >conftest.err
10040
 
  rm -f conftest.er1
10041
 
  cat conftest.err >&5
10042
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043
 
  (exit $ac_status); } &&
10044
 
         { ac_try='test -z "$ac_c_werror_flag"
10045
 
                         || test ! -s conftest.err'
10046
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047
 
  (eval $ac_try) 2>&5
10048
 
  ac_status=$?
10049
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050
 
  (exit $ac_status); }; } &&
10051
 
         { ac_try='test -s conftest.$ac_objext'
10052
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053
 
  (eval $ac_try) 2>&5
10054
 
  ac_status=$?
10055
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056
 
  (exit $ac_status); }; }; then
10057
 
  ac_hi=-1 ac_mid=-1
10058
 
  while :; do
10059
 
    cat >conftest.$ac_ext <<_ACEOF
10060
 
/* confdefs.h.  */
10061
 
_ACEOF
10062
 
cat confdefs.h >>conftest.$ac_ext
10063
 
cat >>conftest.$ac_ext <<_ACEOF
10064
 
/* end confdefs.h.  */
10065
 
$ac_includes_default
10066
 
int
10067
 
main ()
10068
 
{
10069
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
10070
 
test_array [0] = 0
10071
 
 
10072
 
  ;
10073
 
  return 0;
10074
 
}
10075
 
_ACEOF
10076
 
rm -f conftest.$ac_objext
10077
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10078
 
  (eval $ac_compile) 2>conftest.er1
10079
 
  ac_status=$?
10080
 
  grep -v '^ *+' conftest.er1 >conftest.err
10081
 
  rm -f conftest.er1
10082
 
  cat conftest.err >&5
10083
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084
 
  (exit $ac_status); } &&
10085
 
         { ac_try='test -z "$ac_c_werror_flag"
10086
 
                         || test ! -s conftest.err'
10087
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088
 
  (eval $ac_try) 2>&5
10089
 
  ac_status=$?
10090
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091
 
  (exit $ac_status); }; } &&
10092
 
         { ac_try='test -s conftest.$ac_objext'
10093
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094
 
  (eval $ac_try) 2>&5
10095
 
  ac_status=$?
10096
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097
 
  (exit $ac_status); }; }; then
10098
 
  ac_lo=$ac_mid; break
10099
 
else
10100
 
  echo "$as_me: failed program was:" >&5
10101
 
sed 's/^/| /' conftest.$ac_ext >&5
10102
 
 
10103
 
ac_hi=`expr '(' $ac_mid ')' - 1`
10104
 
                       if test $ac_mid -le $ac_hi; then
10105
 
                         ac_lo= ac_hi=
10106
 
                         break
10107
 
                       fi
10108
 
                       ac_mid=`expr 2 '*' $ac_mid`
10109
 
fi
10110
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10111
 
  done
10112
 
else
10113
 
  echo "$as_me: failed program was:" >&5
10114
 
sed 's/^/| /' conftest.$ac_ext >&5
10115
 
 
10116
 
ac_lo= ac_hi=
10117
 
fi
10118
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10119
 
fi
10120
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10121
 
# Binary search between lo and hi bounds.
10122
 
while test "x$ac_lo" != "x$ac_hi"; do
10123
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10124
 
  cat >conftest.$ac_ext <<_ACEOF
10125
 
/* confdefs.h.  */
10126
 
_ACEOF
10127
 
cat confdefs.h >>conftest.$ac_ext
10128
 
cat >>conftest.$ac_ext <<_ACEOF
10129
 
/* end confdefs.h.  */
10130
 
$ac_includes_default
10131
 
int
10132
 
main ()
10133
 
{
10134
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
10135
 
test_array [0] = 0
10136
 
 
10137
 
  ;
10138
 
  return 0;
10139
 
}
10140
 
_ACEOF
10141
 
rm -f conftest.$ac_objext
10142
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10143
 
  (eval $ac_compile) 2>conftest.er1
10144
 
  ac_status=$?
10145
 
  grep -v '^ *+' conftest.er1 >conftest.err
10146
 
  rm -f conftest.er1
10147
 
  cat conftest.err >&5
10148
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149
 
  (exit $ac_status); } &&
10150
 
         { ac_try='test -z "$ac_c_werror_flag"
10151
 
                         || test ! -s conftest.err'
10152
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153
 
  (eval $ac_try) 2>&5
10154
 
  ac_status=$?
10155
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156
 
  (exit $ac_status); }; } &&
10157
 
         { ac_try='test -s conftest.$ac_objext'
10158
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159
 
  (eval $ac_try) 2>&5
10160
 
  ac_status=$?
10161
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162
 
  (exit $ac_status); }; }; then
10163
 
  ac_hi=$ac_mid
10164
 
else
10165
 
  echo "$as_me: failed program was:" >&5
10166
 
sed 's/^/| /' conftest.$ac_ext >&5
10167
 
 
10168
 
ac_lo=`expr '(' $ac_mid ')' + 1`
10169
 
fi
10170
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10171
 
done
10172
 
case $ac_lo in
10173
 
?*) ac_cv_sizeof_int=$ac_lo;;
10174
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
10175
 
See \`config.log' for more details." >&5
10176
 
echo "$as_me: error: cannot compute sizeof (int), 77
10177
 
See \`config.log' for more details." >&2;}
10178
 
   { (exit 1); exit 1; }; } ;;
10179
 
esac
10180
 
else
10181
 
  if test "$cross_compiling" = yes; then
10182
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10183
 
See \`config.log' for more details." >&5
10184
 
echo "$as_me: error: cannot run test program while cross compiling
10185
 
See \`config.log' for more details." >&2;}
10186
 
   { (exit 1); exit 1; }; }
10187
 
else
10188
 
  cat >conftest.$ac_ext <<_ACEOF
10189
 
/* confdefs.h.  */
10190
 
_ACEOF
10191
 
cat confdefs.h >>conftest.$ac_ext
10192
 
cat >>conftest.$ac_ext <<_ACEOF
10193
 
/* end confdefs.h.  */
10194
 
$ac_includes_default
10195
 
long longval () { return (long) (sizeof (int)); }
10196
 
unsigned long ulongval () { return (long) (sizeof (int)); }
10197
 
#include <stdio.h>
10198
 
#include <stdlib.h>
10199
 
int
10200
 
main ()
10201
 
{
10202
 
 
10203
 
  FILE *f = fopen ("conftest.val", "w");
10204
 
  if (! f)
10205
 
    exit (1);
10206
 
  if (((long) (sizeof (int))) < 0)
10207
 
    {
10208
 
      long i = longval ();
10209
 
      if (i != ((long) (sizeof (int))))
10210
 
        exit (1);
10211
 
      fprintf (f, "%ld\n", i);
10212
 
    }
10213
 
  else
10214
 
    {
10215
 
      unsigned long i = ulongval ();
10216
 
      if (i != ((long) (sizeof (int))))
10217
 
        exit (1);
10218
 
      fprintf (f, "%lu\n", i);
10219
 
    }
10220
 
  exit (ferror (f) || fclose (f) != 0);
10221
 
 
10222
 
  ;
10223
 
  return 0;
10224
 
}
10225
 
_ACEOF
10226
 
rm -f conftest$ac_exeext
10227
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10228
 
  (eval $ac_link) 2>&5
10229
 
  ac_status=$?
10230
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10232
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233
 
  (eval $ac_try) 2>&5
10234
 
  ac_status=$?
10235
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236
 
  (exit $ac_status); }; }; then
10237
 
  ac_cv_sizeof_int=`cat conftest.val`
10238
 
else
10239
 
  echo "$as_me: program exited with status $ac_status" >&5
10240
 
echo "$as_me: failed program was:" >&5
10241
 
sed 's/^/| /' conftest.$ac_ext >&5
10242
 
 
10243
 
( exit $ac_status )
10244
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
10245
 
See \`config.log' for more details." >&5
10246
 
echo "$as_me: error: cannot compute sizeof (int), 77
10247
 
See \`config.log' for more details." >&2;}
10248
 
   { (exit 1); exit 1; }; }
10249
 
fi
10250
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10251
 
fi
10252
 
fi
10253
 
rm -f conftest.val
10254
 
else
10255
 
  ac_cv_sizeof_int=0
10256
 
fi
10257
 
fi
10258
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10259
 
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
10260
 
cat >>confdefs.h <<_ACEOF
10261
 
#define SIZEOF_INT $ac_cv_sizeof_int
10262
 
_ACEOF
10263
 
 
10264
 
  echo "$as_me:$LINENO: checking for long" >&5
10265
 
echo $ECHO_N "checking for long... $ECHO_C" >&6
10266
 
if test "${ac_cv_type_long+set}" = set; then
10267
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10268
 
else
10269
 
  cat >conftest.$ac_ext <<_ACEOF
10270
 
/* confdefs.h.  */
10271
 
_ACEOF
10272
 
cat confdefs.h >>conftest.$ac_ext
10273
 
cat >>conftest.$ac_ext <<_ACEOF
10274
 
/* end confdefs.h.  */
10275
 
$ac_includes_default
10276
 
int
10277
 
main ()
10278
 
{
10279
 
if ((long *) 0)
10280
 
  return 0;
10281
 
if (sizeof (long))
10282
 
  return 0;
10283
 
  ;
10284
 
  return 0;
10285
 
}
10286
 
_ACEOF
10287
 
rm -f conftest.$ac_objext
10288
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10289
 
  (eval $ac_compile) 2>conftest.er1
10290
 
  ac_status=$?
10291
 
  grep -v '^ *+' conftest.er1 >conftest.err
10292
 
  rm -f conftest.er1
10293
 
  cat conftest.err >&5
10294
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295
 
  (exit $ac_status); } &&
10296
 
         { ac_try='test -z "$ac_c_werror_flag"
10297
 
                         || test ! -s conftest.err'
10298
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299
 
  (eval $ac_try) 2>&5
10300
 
  ac_status=$?
10301
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302
 
  (exit $ac_status); }; } &&
10303
 
         { ac_try='test -s conftest.$ac_objext'
10304
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305
 
  (eval $ac_try) 2>&5
10306
 
  ac_status=$?
10307
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308
 
  (exit $ac_status); }; }; then
10309
 
  ac_cv_type_long=yes
10310
 
else
10311
 
  echo "$as_me: failed program was:" >&5
10312
 
sed 's/^/| /' conftest.$ac_ext >&5
10313
 
 
10314
 
ac_cv_type_long=no
10315
 
fi
10316
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10317
 
fi
10318
 
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
10319
 
echo "${ECHO_T}$ac_cv_type_long" >&6
10320
 
 
10321
 
echo "$as_me:$LINENO: checking size of long" >&5
10322
 
echo $ECHO_N "checking size of long... $ECHO_C" >&6
10323
 
if test "${ac_cv_sizeof_long+set}" = set; then
10324
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10325
 
else
10326
 
  if test "$ac_cv_type_long" = yes; then
10327
 
  # The cast to unsigned long works around a bug in the HP C Compiler
10328
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10329
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10330
 
  # This bug is HP SR number 8606223364.
10331
 
  if test "$cross_compiling" = yes; then
10332
 
  # Depending upon the size, compute the lo and hi bounds.
10333
 
cat >conftest.$ac_ext <<_ACEOF
10334
 
/* confdefs.h.  */
10335
 
_ACEOF
10336
 
cat confdefs.h >>conftest.$ac_ext
10337
 
cat >>conftest.$ac_ext <<_ACEOF
10338
 
/* end confdefs.h.  */
10339
 
$ac_includes_default
10340
 
int
10341
 
main ()
10342
 
{
10343
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
10344
 
test_array [0] = 0
10345
 
 
10346
 
  ;
10347
 
  return 0;
10348
 
}
10349
 
_ACEOF
10350
 
rm -f conftest.$ac_objext
10351
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10352
 
  (eval $ac_compile) 2>conftest.er1
10353
 
  ac_status=$?
10354
 
  grep -v '^ *+' conftest.er1 >conftest.err
10355
 
  rm -f conftest.er1
10356
 
  cat conftest.err >&5
10357
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358
 
  (exit $ac_status); } &&
10359
 
         { ac_try='test -z "$ac_c_werror_flag"
10360
 
                         || test ! -s conftest.err'
10361
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362
 
  (eval $ac_try) 2>&5
10363
 
  ac_status=$?
10364
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365
 
  (exit $ac_status); }; } &&
10366
 
         { ac_try='test -s conftest.$ac_objext'
10367
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368
 
  (eval $ac_try) 2>&5
10369
 
  ac_status=$?
10370
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371
 
  (exit $ac_status); }; }; then
10372
 
  ac_lo=0 ac_mid=0
10373
 
  while :; do
10374
 
    cat >conftest.$ac_ext <<_ACEOF
10375
 
/* confdefs.h.  */
10376
 
_ACEOF
10377
 
cat confdefs.h >>conftest.$ac_ext
10378
 
cat >>conftest.$ac_ext <<_ACEOF
10379
 
/* end confdefs.h.  */
10380
 
$ac_includes_default
10381
 
int
10382
 
main ()
10383
 
{
10384
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
10385
 
test_array [0] = 0
10386
 
 
10387
 
  ;
10388
 
  return 0;
10389
 
}
10390
 
_ACEOF
10391
 
rm -f conftest.$ac_objext
10392
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10393
 
  (eval $ac_compile) 2>conftest.er1
10394
 
  ac_status=$?
10395
 
  grep -v '^ *+' conftest.er1 >conftest.err
10396
 
  rm -f conftest.er1
10397
 
  cat conftest.err >&5
10398
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399
 
  (exit $ac_status); } &&
10400
 
         { ac_try='test -z "$ac_c_werror_flag"
10401
 
                         || test ! -s conftest.err'
10402
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403
 
  (eval $ac_try) 2>&5
10404
 
  ac_status=$?
10405
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406
 
  (exit $ac_status); }; } &&
10407
 
         { ac_try='test -s conftest.$ac_objext'
10408
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409
 
  (eval $ac_try) 2>&5
10410
 
  ac_status=$?
10411
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412
 
  (exit $ac_status); }; }; then
10413
 
  ac_hi=$ac_mid; break
10414
 
else
10415
 
  echo "$as_me: failed program was:" >&5
10416
 
sed 's/^/| /' conftest.$ac_ext >&5
10417
 
 
10418
 
ac_lo=`expr $ac_mid + 1`
10419
 
                    if test $ac_lo -le $ac_mid; then
10420
 
                      ac_lo= ac_hi=
10421
 
                      break
10422
 
                    fi
10423
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
10424
 
fi
10425
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10426
 
  done
10427
 
else
10428
 
  echo "$as_me: failed program was:" >&5
10429
 
sed 's/^/| /' conftest.$ac_ext >&5
10430
 
 
10431
 
cat >conftest.$ac_ext <<_ACEOF
10432
 
/* confdefs.h.  */
10433
 
_ACEOF
10434
 
cat confdefs.h >>conftest.$ac_ext
10435
 
cat >>conftest.$ac_ext <<_ACEOF
10436
 
/* end confdefs.h.  */
10437
 
$ac_includes_default
10438
 
int
10439
 
main ()
10440
 
{
10441
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
10442
 
test_array [0] = 0
10443
 
 
10444
 
  ;
10445
 
  return 0;
10446
 
}
10447
 
_ACEOF
10448
 
rm -f conftest.$ac_objext
10449
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10450
 
  (eval $ac_compile) 2>conftest.er1
10451
 
  ac_status=$?
10452
 
  grep -v '^ *+' conftest.er1 >conftest.err
10453
 
  rm -f conftest.er1
10454
 
  cat conftest.err >&5
10455
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456
 
  (exit $ac_status); } &&
10457
 
         { ac_try='test -z "$ac_c_werror_flag"
10458
 
                         || test ! -s conftest.err'
10459
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460
 
  (eval $ac_try) 2>&5
10461
 
  ac_status=$?
10462
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463
 
  (exit $ac_status); }; } &&
10464
 
         { ac_try='test -s conftest.$ac_objext'
10465
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466
 
  (eval $ac_try) 2>&5
10467
 
  ac_status=$?
10468
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469
 
  (exit $ac_status); }; }; then
10470
 
  ac_hi=-1 ac_mid=-1
10471
 
  while :; do
10472
 
    cat >conftest.$ac_ext <<_ACEOF
10473
 
/* confdefs.h.  */
10474
 
_ACEOF
10475
 
cat confdefs.h >>conftest.$ac_ext
10476
 
cat >>conftest.$ac_ext <<_ACEOF
10477
 
/* end confdefs.h.  */
10478
 
$ac_includes_default
10479
 
int
10480
 
main ()
10481
 
{
10482
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
10483
 
test_array [0] = 0
10484
 
 
10485
 
  ;
10486
 
  return 0;
10487
 
}
10488
 
_ACEOF
10489
 
rm -f conftest.$ac_objext
10490
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10491
 
  (eval $ac_compile) 2>conftest.er1
10492
 
  ac_status=$?
10493
 
  grep -v '^ *+' conftest.er1 >conftest.err
10494
 
  rm -f conftest.er1
10495
 
  cat conftest.err >&5
10496
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497
 
  (exit $ac_status); } &&
10498
 
         { ac_try='test -z "$ac_c_werror_flag"
10499
 
                         || test ! -s conftest.err'
10500
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501
 
  (eval $ac_try) 2>&5
10502
 
  ac_status=$?
10503
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504
 
  (exit $ac_status); }; } &&
10505
 
         { ac_try='test -s conftest.$ac_objext'
10506
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507
 
  (eval $ac_try) 2>&5
10508
 
  ac_status=$?
10509
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510
 
  (exit $ac_status); }; }; then
10511
 
  ac_lo=$ac_mid; break
10512
 
else
10513
 
  echo "$as_me: failed program was:" >&5
10514
 
sed 's/^/| /' conftest.$ac_ext >&5
10515
 
 
10516
 
ac_hi=`expr '(' $ac_mid ')' - 1`
10517
 
                       if test $ac_mid -le $ac_hi; then
10518
 
                         ac_lo= ac_hi=
10519
 
                         break
10520
 
                       fi
10521
 
                       ac_mid=`expr 2 '*' $ac_mid`
10522
 
fi
10523
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10524
 
  done
10525
 
else
10526
 
  echo "$as_me: failed program was:" >&5
10527
 
sed 's/^/| /' conftest.$ac_ext >&5
10528
 
 
10529
 
ac_lo= ac_hi=
10530
 
fi
10531
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10532
 
fi
10533
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10534
 
# Binary search between lo and hi bounds.
10535
 
while test "x$ac_lo" != "x$ac_hi"; do
10536
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10537
 
  cat >conftest.$ac_ext <<_ACEOF
10538
 
/* confdefs.h.  */
10539
 
_ACEOF
10540
 
cat confdefs.h >>conftest.$ac_ext
10541
 
cat >>conftest.$ac_ext <<_ACEOF
10542
 
/* end confdefs.h.  */
10543
 
$ac_includes_default
10544
 
int
10545
 
main ()
10546
 
{
10547
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
10548
 
test_array [0] = 0
10549
 
 
10550
 
  ;
10551
 
  return 0;
10552
 
}
10553
 
_ACEOF
10554
 
rm -f conftest.$ac_objext
10555
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10556
 
  (eval $ac_compile) 2>conftest.er1
10557
 
  ac_status=$?
10558
 
  grep -v '^ *+' conftest.er1 >conftest.err
10559
 
  rm -f conftest.er1
10560
 
  cat conftest.err >&5
10561
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562
 
  (exit $ac_status); } &&
10563
 
         { ac_try='test -z "$ac_c_werror_flag"
10564
 
                         || test ! -s conftest.err'
10565
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566
 
  (eval $ac_try) 2>&5
10567
 
  ac_status=$?
10568
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569
 
  (exit $ac_status); }; } &&
10570
 
         { ac_try='test -s conftest.$ac_objext'
10571
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572
 
  (eval $ac_try) 2>&5
10573
 
  ac_status=$?
10574
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575
 
  (exit $ac_status); }; }; then
10576
 
  ac_hi=$ac_mid
10577
 
else
10578
 
  echo "$as_me: failed program was:" >&5
10579
 
sed 's/^/| /' conftest.$ac_ext >&5
10580
 
 
10581
 
ac_lo=`expr '(' $ac_mid ')' + 1`
10582
 
fi
10583
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10584
 
done
10585
 
case $ac_lo in
10586
 
?*) ac_cv_sizeof_long=$ac_lo;;
10587
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
10588
 
See \`config.log' for more details." >&5
10589
 
echo "$as_me: error: cannot compute sizeof (long), 77
10590
 
See \`config.log' for more details." >&2;}
10591
 
   { (exit 1); exit 1; }; } ;;
10592
 
esac
10593
 
else
10594
 
  if test "$cross_compiling" = yes; then
10595
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10596
 
See \`config.log' for more details." >&5
10597
 
echo "$as_me: error: cannot run test program while cross compiling
10598
 
See \`config.log' for more details." >&2;}
10599
 
   { (exit 1); exit 1; }; }
10600
 
else
10601
 
  cat >conftest.$ac_ext <<_ACEOF
10602
 
/* confdefs.h.  */
10603
 
_ACEOF
10604
 
cat confdefs.h >>conftest.$ac_ext
10605
 
cat >>conftest.$ac_ext <<_ACEOF
10606
 
/* end confdefs.h.  */
10607
 
$ac_includes_default
10608
 
long longval () { return (long) (sizeof (long)); }
10609
 
unsigned long ulongval () { return (long) (sizeof (long)); }
10610
 
#include <stdio.h>
10611
 
#include <stdlib.h>
10612
 
int
10613
 
main ()
10614
 
{
10615
 
 
10616
 
  FILE *f = fopen ("conftest.val", "w");
10617
 
  if (! f)
10618
 
    exit (1);
10619
 
  if (((long) (sizeof (long))) < 0)
10620
 
    {
10621
 
      long i = longval ();
10622
 
      if (i != ((long) (sizeof (long))))
10623
 
        exit (1);
10624
 
      fprintf (f, "%ld\n", i);
10625
 
    }
10626
 
  else
10627
 
    {
10628
 
      unsigned long i = ulongval ();
10629
 
      if (i != ((long) (sizeof (long))))
10630
 
        exit (1);
10631
 
      fprintf (f, "%lu\n", i);
10632
 
    }
10633
 
  exit (ferror (f) || fclose (f) != 0);
10634
 
 
10635
 
  ;
10636
 
  return 0;
10637
 
}
10638
 
_ACEOF
10639
 
rm -f conftest$ac_exeext
10640
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641
 
  (eval $ac_link) 2>&5
10642
 
  ac_status=$?
10643
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10645
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646
 
  (eval $ac_try) 2>&5
10647
 
  ac_status=$?
10648
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649
 
  (exit $ac_status); }; }; then
10650
 
  ac_cv_sizeof_long=`cat conftest.val`
10651
 
else
10652
 
  echo "$as_me: program exited with status $ac_status" >&5
10653
 
echo "$as_me: failed program was:" >&5
10654
 
sed 's/^/| /' conftest.$ac_ext >&5
10655
 
 
10656
 
( exit $ac_status )
10657
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
10658
 
See \`config.log' for more details." >&5
10659
 
echo "$as_me: error: cannot compute sizeof (long), 77
10660
 
See \`config.log' for more details." >&2;}
10661
 
   { (exit 1); exit 1; }; }
10662
 
fi
10663
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10664
 
fi
10665
 
fi
10666
 
rm -f conftest.val
10667
 
else
10668
 
  ac_cv_sizeof_long=0
10669
 
fi
10670
 
fi
10671
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
10672
 
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
10673
 
cat >>confdefs.h <<_ACEOF
10674
 
#define SIZEOF_LONG $ac_cv_sizeof_long
10675
 
_ACEOF
10676
 
 
10677
 
  echo "$as_me:$LINENO: checking for char *" >&5
10678
 
echo $ECHO_N "checking for char *... $ECHO_C" >&6
10679
 
if test "${ac_cv_type_char_p+set}" = set; then
10680
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10681
 
else
10682
 
  cat >conftest.$ac_ext <<_ACEOF
10683
 
/* confdefs.h.  */
10684
 
_ACEOF
10685
 
cat confdefs.h >>conftest.$ac_ext
10686
 
cat >>conftest.$ac_ext <<_ACEOF
10687
 
/* end confdefs.h.  */
10688
 
$ac_includes_default
10689
 
int
10690
 
main ()
10691
 
{
10692
 
if ((char * *) 0)
10693
 
  return 0;
10694
 
if (sizeof (char *))
10695
 
  return 0;
10696
 
  ;
10697
 
  return 0;
10698
 
}
10699
 
_ACEOF
10700
 
rm -f conftest.$ac_objext
10701
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10702
 
  (eval $ac_compile) 2>conftest.er1
10703
 
  ac_status=$?
10704
 
  grep -v '^ *+' conftest.er1 >conftest.err
10705
 
  rm -f conftest.er1
10706
 
  cat conftest.err >&5
10707
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708
 
  (exit $ac_status); } &&
10709
 
         { ac_try='test -z "$ac_c_werror_flag"
10710
 
                         || test ! -s conftest.err'
10711
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712
 
  (eval $ac_try) 2>&5
10713
 
  ac_status=$?
10714
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715
 
  (exit $ac_status); }; } &&
10716
 
         { ac_try='test -s conftest.$ac_objext'
10717
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718
 
  (eval $ac_try) 2>&5
10719
 
  ac_status=$?
10720
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721
 
  (exit $ac_status); }; }; then
10722
 
  ac_cv_type_char_p=yes
10723
 
else
10724
 
  echo "$as_me: failed program was:" >&5
10725
 
sed 's/^/| /' conftest.$ac_ext >&5
10726
 
 
10727
 
ac_cv_type_char_p=no
10728
 
fi
10729
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10730
 
fi
10731
 
echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
10732
 
echo "${ECHO_T}$ac_cv_type_char_p" >&6
10733
 
 
10734
 
echo "$as_me:$LINENO: checking size of char *" >&5
10735
 
echo $ECHO_N "checking size of char *... $ECHO_C" >&6
10736
 
if test "${ac_cv_sizeof_char_p+set}" = set; then
10737
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10738
 
else
10739
 
  if test "$ac_cv_type_char_p" = yes; then
10740
 
  # The cast to unsigned long works around a bug in the HP C Compiler
10741
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10742
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10743
 
  # This bug is HP SR number 8606223364.
10744
 
  if test "$cross_compiling" = yes; then
10745
 
  # Depending upon the size, compute the lo and hi bounds.
10746
 
cat >conftest.$ac_ext <<_ACEOF
10747
 
/* confdefs.h.  */
10748
 
_ACEOF
10749
 
cat confdefs.h >>conftest.$ac_ext
10750
 
cat >>conftest.$ac_ext <<_ACEOF
10751
 
/* end confdefs.h.  */
10752
 
$ac_includes_default
10753
 
int
10754
 
main ()
10755
 
{
10756
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
10757
 
test_array [0] = 0
10758
 
 
10759
 
  ;
10760
 
  return 0;
10761
 
}
10762
 
_ACEOF
10763
 
rm -f conftest.$ac_objext
10764
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10765
 
  (eval $ac_compile) 2>conftest.er1
10766
 
  ac_status=$?
10767
 
  grep -v '^ *+' conftest.er1 >conftest.err
10768
 
  rm -f conftest.er1
10769
 
  cat conftest.err >&5
10770
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771
 
  (exit $ac_status); } &&
10772
 
         { ac_try='test -z "$ac_c_werror_flag"
10773
 
                         || test ! -s conftest.err'
10774
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775
 
  (eval $ac_try) 2>&5
10776
 
  ac_status=$?
10777
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778
 
  (exit $ac_status); }; } &&
10779
 
         { ac_try='test -s conftest.$ac_objext'
10780
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781
 
  (eval $ac_try) 2>&5
10782
 
  ac_status=$?
10783
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784
 
  (exit $ac_status); }; }; then
10785
 
  ac_lo=0 ac_mid=0
10786
 
  while :; do
10787
 
    cat >conftest.$ac_ext <<_ACEOF
10788
 
/* confdefs.h.  */
10789
 
_ACEOF
10790
 
cat confdefs.h >>conftest.$ac_ext
10791
 
cat >>conftest.$ac_ext <<_ACEOF
10792
 
/* end confdefs.h.  */
10793
 
$ac_includes_default
10794
 
int
10795
 
main ()
10796
 
{
10797
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
10798
 
test_array [0] = 0
10799
 
 
10800
 
  ;
10801
 
  return 0;
10802
 
}
10803
 
_ACEOF
10804
 
rm -f conftest.$ac_objext
10805
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10806
 
  (eval $ac_compile) 2>conftest.er1
10807
 
  ac_status=$?
10808
 
  grep -v '^ *+' conftest.er1 >conftest.err
10809
 
  rm -f conftest.er1
10810
 
  cat conftest.err >&5
10811
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812
 
  (exit $ac_status); } &&
10813
 
         { ac_try='test -z "$ac_c_werror_flag"
10814
 
                         || test ! -s conftest.err'
10815
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816
 
  (eval $ac_try) 2>&5
10817
 
  ac_status=$?
10818
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819
 
  (exit $ac_status); }; } &&
10820
 
         { ac_try='test -s conftest.$ac_objext'
10821
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822
 
  (eval $ac_try) 2>&5
10823
 
  ac_status=$?
10824
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825
 
  (exit $ac_status); }; }; then
10826
 
  ac_hi=$ac_mid; break
10827
 
else
10828
 
  echo "$as_me: failed program was:" >&5
10829
 
sed 's/^/| /' conftest.$ac_ext >&5
10830
 
 
10831
 
ac_lo=`expr $ac_mid + 1`
10832
 
                    if test $ac_lo -le $ac_mid; then
10833
 
                      ac_lo= ac_hi=
10834
 
                      break
10835
 
                    fi
10836
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
10837
 
fi
10838
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10839
 
  done
10840
 
else
10841
 
  echo "$as_me: failed program was:" >&5
10842
 
sed 's/^/| /' conftest.$ac_ext >&5
10843
 
 
10844
 
cat >conftest.$ac_ext <<_ACEOF
10845
 
/* confdefs.h.  */
10846
 
_ACEOF
10847
 
cat confdefs.h >>conftest.$ac_ext
10848
 
cat >>conftest.$ac_ext <<_ACEOF
10849
 
/* end confdefs.h.  */
10850
 
$ac_includes_default
10851
 
int
10852
 
main ()
10853
 
{
10854
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
10855
 
test_array [0] = 0
10856
 
 
10857
 
  ;
10858
 
  return 0;
10859
 
}
10860
 
_ACEOF
10861
 
rm -f conftest.$ac_objext
10862
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10863
 
  (eval $ac_compile) 2>conftest.er1
10864
 
  ac_status=$?
10865
 
  grep -v '^ *+' conftest.er1 >conftest.err
10866
 
  rm -f conftest.er1
10867
 
  cat conftest.err >&5
10868
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869
 
  (exit $ac_status); } &&
10870
 
         { ac_try='test -z "$ac_c_werror_flag"
10871
 
                         || test ! -s conftest.err'
10872
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873
 
  (eval $ac_try) 2>&5
10874
 
  ac_status=$?
10875
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876
 
  (exit $ac_status); }; } &&
10877
 
         { ac_try='test -s conftest.$ac_objext'
10878
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879
 
  (eval $ac_try) 2>&5
10880
 
  ac_status=$?
10881
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882
 
  (exit $ac_status); }; }; then
10883
 
  ac_hi=-1 ac_mid=-1
10884
 
  while :; do
10885
 
    cat >conftest.$ac_ext <<_ACEOF
10886
 
/* confdefs.h.  */
10887
 
_ACEOF
10888
 
cat confdefs.h >>conftest.$ac_ext
10889
 
cat >>conftest.$ac_ext <<_ACEOF
10890
 
/* end confdefs.h.  */
10891
 
$ac_includes_default
10892
 
int
10893
 
main ()
10894
 
{
10895
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
10896
 
test_array [0] = 0
10897
 
 
10898
 
  ;
10899
 
  return 0;
10900
 
}
10901
 
_ACEOF
10902
 
rm -f conftest.$ac_objext
10903
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10904
 
  (eval $ac_compile) 2>conftest.er1
10905
 
  ac_status=$?
10906
 
  grep -v '^ *+' conftest.er1 >conftest.err
10907
 
  rm -f conftest.er1
10908
 
  cat conftest.err >&5
10909
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910
 
  (exit $ac_status); } &&
10911
 
         { ac_try='test -z "$ac_c_werror_flag"
10912
 
                         || test ! -s conftest.err'
10913
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914
 
  (eval $ac_try) 2>&5
10915
 
  ac_status=$?
10916
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917
 
  (exit $ac_status); }; } &&
10918
 
         { ac_try='test -s conftest.$ac_objext'
10919
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920
 
  (eval $ac_try) 2>&5
10921
 
  ac_status=$?
10922
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923
 
  (exit $ac_status); }; }; then
10924
 
  ac_lo=$ac_mid; break
10925
 
else
10926
 
  echo "$as_me: failed program was:" >&5
10927
 
sed 's/^/| /' conftest.$ac_ext >&5
10928
 
 
10929
 
ac_hi=`expr '(' $ac_mid ')' - 1`
10930
 
                       if test $ac_mid -le $ac_hi; then
10931
 
                         ac_lo= ac_hi=
10932
 
                         break
10933
 
                       fi
10934
 
                       ac_mid=`expr 2 '*' $ac_mid`
10935
 
fi
10936
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10937
 
  done
10938
 
else
10939
 
  echo "$as_me: failed program was:" >&5
10940
 
sed 's/^/| /' conftest.$ac_ext >&5
10941
 
 
10942
 
ac_lo= ac_hi=
10943
 
fi
10944
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10945
 
fi
10946
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10947
 
# Binary search between lo and hi bounds.
10948
 
while test "x$ac_lo" != "x$ac_hi"; do
10949
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10950
 
  cat >conftest.$ac_ext <<_ACEOF
10951
 
/* confdefs.h.  */
10952
 
_ACEOF
10953
 
cat confdefs.h >>conftest.$ac_ext
10954
 
cat >>conftest.$ac_ext <<_ACEOF
10955
 
/* end confdefs.h.  */
10956
 
$ac_includes_default
10957
 
int
10958
 
main ()
10959
 
{
10960
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
10961
 
test_array [0] = 0
10962
 
 
10963
 
  ;
10964
 
  return 0;
10965
 
}
10966
 
_ACEOF
10967
 
rm -f conftest.$ac_objext
10968
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969
 
  (eval $ac_compile) 2>conftest.er1
10970
 
  ac_status=$?
10971
 
  grep -v '^ *+' conftest.er1 >conftest.err
10972
 
  rm -f conftest.er1
10973
 
  cat conftest.err >&5
10974
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975
 
  (exit $ac_status); } &&
10976
 
         { ac_try='test -z "$ac_c_werror_flag"
10977
 
                         || test ! -s conftest.err'
10978
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979
 
  (eval $ac_try) 2>&5
10980
 
  ac_status=$?
10981
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982
 
  (exit $ac_status); }; } &&
10983
 
         { ac_try='test -s conftest.$ac_objext'
10984
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985
 
  (eval $ac_try) 2>&5
10986
 
  ac_status=$?
10987
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988
 
  (exit $ac_status); }; }; then
10989
 
  ac_hi=$ac_mid
10990
 
else
10991
 
  echo "$as_me: failed program was:" >&5
10992
 
sed 's/^/| /' conftest.$ac_ext >&5
10993
 
 
10994
 
ac_lo=`expr '(' $ac_mid ')' + 1`
10995
 
fi
10996
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10997
 
done
10998
 
case $ac_lo in
10999
 
?*) ac_cv_sizeof_char_p=$ac_lo;;
11000
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
11001
 
See \`config.log' for more details." >&5
11002
 
echo "$as_me: error: cannot compute sizeof (char *), 77
11003
 
See \`config.log' for more details." >&2;}
11004
 
   { (exit 1); exit 1; }; } ;;
11005
 
esac
11006
 
else
11007
 
  if test "$cross_compiling" = yes; then
11008
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11009
 
See \`config.log' for more details." >&5
11010
 
echo "$as_me: error: cannot run test program while cross compiling
11011
 
See \`config.log' for more details." >&2;}
11012
 
   { (exit 1); exit 1; }; }
11013
 
else
11014
 
  cat >conftest.$ac_ext <<_ACEOF
11015
 
/* confdefs.h.  */
11016
 
_ACEOF
11017
 
cat confdefs.h >>conftest.$ac_ext
11018
 
cat >>conftest.$ac_ext <<_ACEOF
11019
 
/* end confdefs.h.  */
11020
 
$ac_includes_default
11021
 
long longval () { return (long) (sizeof (char *)); }
11022
 
unsigned long ulongval () { return (long) (sizeof (char *)); }
11023
 
#include <stdio.h>
11024
 
#include <stdlib.h>
11025
 
int
11026
 
main ()
11027
 
{
11028
 
 
11029
 
  FILE *f = fopen ("conftest.val", "w");
11030
 
  if (! f)
11031
 
    exit (1);
11032
 
  if (((long) (sizeof (char *))) < 0)
11033
 
    {
11034
 
      long i = longval ();
11035
 
      if (i != ((long) (sizeof (char *))))
11036
 
        exit (1);
11037
 
      fprintf (f, "%ld\n", i);
11038
 
    }
11039
 
  else
11040
 
    {
11041
 
      unsigned long i = ulongval ();
11042
 
      if (i != ((long) (sizeof (char *))))
11043
 
        exit (1);
11044
 
      fprintf (f, "%lu\n", i);
11045
 
    }
11046
 
  exit (ferror (f) || fclose (f) != 0);
11047
 
 
11048
 
  ;
11049
 
  return 0;
11050
 
}
11051
 
_ACEOF
11052
 
rm -f conftest$ac_exeext
11053
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11054
 
  (eval $ac_link) 2>&5
11055
 
  ac_status=$?
11056
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11058
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059
 
  (eval $ac_try) 2>&5
11060
 
  ac_status=$?
11061
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062
 
  (exit $ac_status); }; }; then
11063
 
  ac_cv_sizeof_char_p=`cat conftest.val`
11064
 
else
11065
 
  echo "$as_me: program exited with status $ac_status" >&5
11066
 
echo "$as_me: failed program was:" >&5
11067
 
sed 's/^/| /' conftest.$ac_ext >&5
11068
 
 
11069
 
( exit $ac_status )
11070
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
11071
 
See \`config.log' for more details." >&5
11072
 
echo "$as_me: error: cannot compute sizeof (char *), 77
11073
 
See \`config.log' for more details." >&2;}
11074
 
   { (exit 1); exit 1; }; }
11075
 
fi
11076
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11077
 
fi
11078
 
fi
11079
 
rm -f conftest.val
11080
 
else
11081
 
  ac_cv_sizeof_char_p=0
11082
 
fi
11083
 
fi
11084
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
11085
 
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
11086
 
cat >>confdefs.h <<_ACEOF
11087
 
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
11088
 
_ACEOF
11089
 
 
11090
 
  echo "$as_me:$LINENO: checking for char" >&5
11091
 
echo $ECHO_N "checking for char... $ECHO_C" >&6
11092
 
if test "${ac_cv_type_char+set}" = set; then
11093
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11094
 
else
11095
 
  cat >conftest.$ac_ext <<_ACEOF
11096
 
/* confdefs.h.  */
11097
 
_ACEOF
11098
 
cat confdefs.h >>conftest.$ac_ext
11099
 
cat >>conftest.$ac_ext <<_ACEOF
11100
 
/* end confdefs.h.  */
11101
 
$ac_includes_default
11102
 
int
11103
 
main ()
11104
 
{
11105
 
if ((char *) 0)
11106
 
  return 0;
11107
 
if (sizeof (char))
11108
 
  return 0;
11109
 
  ;
11110
 
  return 0;
11111
 
}
11112
 
_ACEOF
11113
 
rm -f conftest.$ac_objext
11114
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11115
 
  (eval $ac_compile) 2>conftest.er1
11116
 
  ac_status=$?
11117
 
  grep -v '^ *+' conftest.er1 >conftest.err
11118
 
  rm -f conftest.er1
11119
 
  cat conftest.err >&5
11120
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121
 
  (exit $ac_status); } &&
11122
 
         { ac_try='test -z "$ac_c_werror_flag"
11123
 
                         || test ! -s conftest.err'
11124
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125
 
  (eval $ac_try) 2>&5
11126
 
  ac_status=$?
11127
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128
 
  (exit $ac_status); }; } &&
11129
 
         { ac_try='test -s conftest.$ac_objext'
11130
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131
 
  (eval $ac_try) 2>&5
11132
 
  ac_status=$?
11133
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134
 
  (exit $ac_status); }; }; then
11135
 
  ac_cv_type_char=yes
11136
 
else
11137
 
  echo "$as_me: failed program was:" >&5
11138
 
sed 's/^/| /' conftest.$ac_ext >&5
11139
 
 
11140
 
ac_cv_type_char=no
11141
 
fi
11142
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11143
 
fi
11144
 
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11145
 
echo "${ECHO_T}$ac_cv_type_char" >&6
11146
 
 
11147
 
echo "$as_me:$LINENO: checking size of char" >&5
11148
 
echo $ECHO_N "checking size of char... $ECHO_C" >&6
11149
 
if test "${ac_cv_sizeof_char+set}" = set; then
11150
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11151
 
else
11152
 
  if test "$ac_cv_type_char" = yes; then
11153
 
  # The cast to unsigned long works around a bug in the HP C Compiler
11154
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11155
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11156
 
  # This bug is HP SR number 8606223364.
11157
 
  if test "$cross_compiling" = yes; then
11158
 
  # Depending upon the size, compute the lo and hi bounds.
11159
 
cat >conftest.$ac_ext <<_ACEOF
11160
 
/* confdefs.h.  */
11161
 
_ACEOF
11162
 
cat confdefs.h >>conftest.$ac_ext
11163
 
cat >>conftest.$ac_ext <<_ACEOF
11164
 
/* end confdefs.h.  */
11165
 
$ac_includes_default
11166
 
int
11167
 
main ()
11168
 
{
11169
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11170
 
test_array [0] = 0
11171
 
 
11172
 
  ;
11173
 
  return 0;
11174
 
}
11175
 
_ACEOF
11176
 
rm -f conftest.$ac_objext
11177
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11178
 
  (eval $ac_compile) 2>conftest.er1
11179
 
  ac_status=$?
11180
 
  grep -v '^ *+' conftest.er1 >conftest.err
11181
 
  rm -f conftest.er1
11182
 
  cat conftest.err >&5
11183
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184
 
  (exit $ac_status); } &&
11185
 
         { ac_try='test -z "$ac_c_werror_flag"
11186
 
                         || test ! -s conftest.err'
11187
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188
 
  (eval $ac_try) 2>&5
11189
 
  ac_status=$?
11190
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191
 
  (exit $ac_status); }; } &&
11192
 
         { ac_try='test -s conftest.$ac_objext'
11193
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194
 
  (eval $ac_try) 2>&5
11195
 
  ac_status=$?
11196
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197
 
  (exit $ac_status); }; }; then
11198
 
  ac_lo=0 ac_mid=0
11199
 
  while :; do
11200
 
    cat >conftest.$ac_ext <<_ACEOF
11201
 
/* confdefs.h.  */
11202
 
_ACEOF
11203
 
cat confdefs.h >>conftest.$ac_ext
11204
 
cat >>conftest.$ac_ext <<_ACEOF
11205
 
/* end confdefs.h.  */
11206
 
$ac_includes_default
11207
 
int
11208
 
main ()
11209
 
{
11210
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11211
 
test_array [0] = 0
11212
 
 
11213
 
  ;
11214
 
  return 0;
11215
 
}
11216
 
_ACEOF
11217
 
rm -f conftest.$ac_objext
11218
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11219
 
  (eval $ac_compile) 2>conftest.er1
11220
 
  ac_status=$?
11221
 
  grep -v '^ *+' conftest.er1 >conftest.err
11222
 
  rm -f conftest.er1
11223
 
  cat conftest.err >&5
11224
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225
 
  (exit $ac_status); } &&
11226
 
         { ac_try='test -z "$ac_c_werror_flag"
11227
 
                         || test ! -s conftest.err'
11228
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229
 
  (eval $ac_try) 2>&5
11230
 
  ac_status=$?
11231
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232
 
  (exit $ac_status); }; } &&
11233
 
         { ac_try='test -s conftest.$ac_objext'
11234
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235
 
  (eval $ac_try) 2>&5
11236
 
  ac_status=$?
11237
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238
 
  (exit $ac_status); }; }; then
11239
 
  ac_hi=$ac_mid; break
11240
 
else
11241
 
  echo "$as_me: failed program was:" >&5
11242
 
sed 's/^/| /' conftest.$ac_ext >&5
11243
 
 
11244
 
ac_lo=`expr $ac_mid + 1`
11245
 
                    if test $ac_lo -le $ac_mid; then
11246
 
                      ac_lo= ac_hi=
11247
 
                      break
11248
 
                    fi
11249
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
11250
 
fi
11251
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11252
 
  done
11253
 
else
11254
 
  echo "$as_me: failed program was:" >&5
11255
 
sed 's/^/| /' conftest.$ac_ext >&5
11256
 
 
11257
 
cat >conftest.$ac_ext <<_ACEOF
11258
 
/* confdefs.h.  */
11259
 
_ACEOF
11260
 
cat confdefs.h >>conftest.$ac_ext
11261
 
cat >>conftest.$ac_ext <<_ACEOF
11262
 
/* end confdefs.h.  */
11263
 
$ac_includes_default
11264
 
int
11265
 
main ()
11266
 
{
11267
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11268
 
test_array [0] = 0
11269
 
 
11270
 
  ;
11271
 
  return 0;
11272
 
}
11273
 
_ACEOF
11274
 
rm -f conftest.$ac_objext
11275
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11276
 
  (eval $ac_compile) 2>conftest.er1
11277
 
  ac_status=$?
11278
 
  grep -v '^ *+' conftest.er1 >conftest.err
11279
 
  rm -f conftest.er1
11280
 
  cat conftest.err >&5
11281
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282
 
  (exit $ac_status); } &&
11283
 
         { ac_try='test -z "$ac_c_werror_flag"
11284
 
                         || test ! -s conftest.err'
11285
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286
 
  (eval $ac_try) 2>&5
11287
 
  ac_status=$?
11288
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289
 
  (exit $ac_status); }; } &&
11290
 
         { ac_try='test -s conftest.$ac_objext'
11291
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292
 
  (eval $ac_try) 2>&5
11293
 
  ac_status=$?
11294
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295
 
  (exit $ac_status); }; }; then
11296
 
  ac_hi=-1 ac_mid=-1
11297
 
  while :; do
11298
 
    cat >conftest.$ac_ext <<_ACEOF
11299
 
/* confdefs.h.  */
11300
 
_ACEOF
11301
 
cat confdefs.h >>conftest.$ac_ext
11302
 
cat >>conftest.$ac_ext <<_ACEOF
11303
 
/* end confdefs.h.  */
11304
 
$ac_includes_default
11305
 
int
11306
 
main ()
11307
 
{
11308
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11309
 
test_array [0] = 0
11310
 
 
11311
 
  ;
11312
 
  return 0;
11313
 
}
11314
 
_ACEOF
11315
 
rm -f conftest.$ac_objext
11316
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11317
 
  (eval $ac_compile) 2>conftest.er1
11318
 
  ac_status=$?
11319
 
  grep -v '^ *+' conftest.er1 >conftest.err
11320
 
  rm -f conftest.er1
11321
 
  cat conftest.err >&5
11322
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323
 
  (exit $ac_status); } &&
11324
 
         { ac_try='test -z "$ac_c_werror_flag"
11325
 
                         || test ! -s conftest.err'
11326
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327
 
  (eval $ac_try) 2>&5
11328
 
  ac_status=$?
11329
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330
 
  (exit $ac_status); }; } &&
11331
 
         { ac_try='test -s conftest.$ac_objext'
11332
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333
 
  (eval $ac_try) 2>&5
11334
 
  ac_status=$?
11335
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336
 
  (exit $ac_status); }; }; then
11337
 
  ac_lo=$ac_mid; break
11338
 
else
11339
 
  echo "$as_me: failed program was:" >&5
11340
 
sed 's/^/| /' conftest.$ac_ext >&5
11341
 
 
11342
 
ac_hi=`expr '(' $ac_mid ')' - 1`
11343
 
                       if test $ac_mid -le $ac_hi; then
11344
 
                         ac_lo= ac_hi=
11345
 
                         break
11346
 
                       fi
11347
 
                       ac_mid=`expr 2 '*' $ac_mid`
11348
 
fi
11349
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11350
 
  done
11351
 
else
11352
 
  echo "$as_me: failed program was:" >&5
11353
 
sed 's/^/| /' conftest.$ac_ext >&5
11354
 
 
11355
 
ac_lo= ac_hi=
11356
 
fi
11357
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11358
 
fi
11359
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11360
 
# Binary search between lo and hi bounds.
11361
 
while test "x$ac_lo" != "x$ac_hi"; do
11362
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11363
 
  cat >conftest.$ac_ext <<_ACEOF
11364
 
/* confdefs.h.  */
11365
 
_ACEOF
11366
 
cat confdefs.h >>conftest.$ac_ext
11367
 
cat >>conftest.$ac_ext <<_ACEOF
11368
 
/* end confdefs.h.  */
11369
 
$ac_includes_default
11370
 
int
11371
 
main ()
11372
 
{
11373
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11374
 
test_array [0] = 0
11375
 
 
11376
 
  ;
11377
 
  return 0;
11378
 
}
11379
 
_ACEOF
11380
 
rm -f conftest.$ac_objext
11381
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11382
 
  (eval $ac_compile) 2>conftest.er1
11383
 
  ac_status=$?
11384
 
  grep -v '^ *+' conftest.er1 >conftest.err
11385
 
  rm -f conftest.er1
11386
 
  cat conftest.err >&5
11387
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388
 
  (exit $ac_status); } &&
11389
 
         { ac_try='test -z "$ac_c_werror_flag"
11390
 
                         || test ! -s conftest.err'
11391
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392
 
  (eval $ac_try) 2>&5
11393
 
  ac_status=$?
11394
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395
 
  (exit $ac_status); }; } &&
11396
 
         { ac_try='test -s conftest.$ac_objext'
11397
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11398
 
  (eval $ac_try) 2>&5
11399
 
  ac_status=$?
11400
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401
 
  (exit $ac_status); }; }; then
11402
 
  ac_hi=$ac_mid
11403
 
else
11404
 
  echo "$as_me: failed program was:" >&5
11405
 
sed 's/^/| /' conftest.$ac_ext >&5
11406
 
 
11407
 
ac_lo=`expr '(' $ac_mid ')' + 1`
11408
 
fi
11409
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11410
 
done
11411
 
case $ac_lo in
11412
 
?*) ac_cv_sizeof_char=$ac_lo;;
11413
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11414
 
See \`config.log' for more details." >&5
11415
 
echo "$as_me: error: cannot compute sizeof (char), 77
11416
 
See \`config.log' for more details." >&2;}
11417
 
   { (exit 1); exit 1; }; } ;;
11418
 
esac
11419
 
else
11420
 
  if test "$cross_compiling" = yes; then
11421
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11422
 
See \`config.log' for more details." >&5
11423
 
echo "$as_me: error: cannot run test program while cross compiling
11424
 
See \`config.log' for more details." >&2;}
11425
 
   { (exit 1); exit 1; }; }
11426
 
else
11427
 
  cat >conftest.$ac_ext <<_ACEOF
11428
 
/* confdefs.h.  */
11429
 
_ACEOF
11430
 
cat confdefs.h >>conftest.$ac_ext
11431
 
cat >>conftest.$ac_ext <<_ACEOF
11432
 
/* end confdefs.h.  */
11433
 
$ac_includes_default
11434
 
long longval () { return (long) (sizeof (char)); }
11435
 
unsigned long ulongval () { return (long) (sizeof (char)); }
11436
 
#include <stdio.h>
11437
 
#include <stdlib.h>
11438
 
int
11439
 
main ()
11440
 
{
11441
 
 
11442
 
  FILE *f = fopen ("conftest.val", "w");
11443
 
  if (! f)
11444
 
    exit (1);
11445
 
  if (((long) (sizeof (char))) < 0)
11446
 
    {
11447
 
      long i = longval ();
11448
 
      if (i != ((long) (sizeof (char))))
11449
 
        exit (1);
11450
 
      fprintf (f, "%ld\n", i);
11451
 
    }
11452
 
  else
11453
 
    {
11454
 
      unsigned long i = ulongval ();
11455
 
      if (i != ((long) (sizeof (char))))
11456
 
        exit (1);
11457
 
      fprintf (f, "%lu\n", i);
11458
 
    }
11459
 
  exit (ferror (f) || fclose (f) != 0);
11460
 
 
11461
 
  ;
11462
 
  return 0;
11463
 
}
11464
 
_ACEOF
11465
 
rm -f conftest$ac_exeext
11466
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11467
 
  (eval $ac_link) 2>&5
11468
 
  ac_status=$?
11469
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11471
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472
 
  (eval $ac_try) 2>&5
11473
 
  ac_status=$?
11474
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475
 
  (exit $ac_status); }; }; then
11476
 
  ac_cv_sizeof_char=`cat conftest.val`
11477
 
else
11478
 
  echo "$as_me: program exited with status $ac_status" >&5
11479
 
echo "$as_me: failed program was:" >&5
11480
 
sed 's/^/| /' conftest.$ac_ext >&5
11481
 
 
11482
 
( exit $ac_status )
11483
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11484
 
See \`config.log' for more details." >&5
11485
 
echo "$as_me: error: cannot compute sizeof (char), 77
11486
 
See \`config.log' for more details." >&2;}
11487
 
   { (exit 1); exit 1; }; }
11488
 
fi
11489
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11490
 
fi
11491
 
fi
11492
 
rm -f conftest.val
11493
 
else
11494
 
  ac_cv_sizeof_char=0
11495
 
fi
11496
 
fi
11497
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11498
 
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11499
 
cat >>confdefs.h <<_ACEOF
11500
 
#define SIZEOF_CHAR $ac_cv_sizeof_char
11501
 
_ACEOF
11502
 
 
11503
 
 
11504
 
 
11505
 
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11506
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11507
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11508
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11509
 
else
11510
 
  ac_check_lib_save_LIBS=$LIBS
11511
 
LIBS="-ldl  $LIBS"
11512
 
cat >conftest.$ac_ext <<_ACEOF
11513
 
/* confdefs.h.  */
11514
 
_ACEOF
11515
 
cat confdefs.h >>conftest.$ac_ext
11516
 
cat >>conftest.$ac_ext <<_ACEOF
11517
 
/* end confdefs.h.  */
11518
 
 
11519
 
/* Override any gcc2 internal prototype to avoid an error.  */
11520
 
#ifdef __cplusplus
11521
 
extern "C"
11522
 
#endif
11523
 
/* We use char because int might match the return type of a gcc2
11524
 
   builtin and then its argument prototype would still apply.  */
11525
 
char dlopen ();
11526
 
int
11527
 
main ()
11528
 
{
11529
 
dlopen ();
11530
 
  ;
11531
 
  return 0;
11532
 
}
11533
 
_ACEOF
11534
 
rm -f conftest.$ac_objext conftest$ac_exeext
11535
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11536
 
  (eval $ac_link) 2>conftest.er1
11537
 
  ac_status=$?
11538
 
  grep -v '^ *+' conftest.er1 >conftest.err
11539
 
  rm -f conftest.er1
11540
 
  cat conftest.err >&5
11541
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542
 
  (exit $ac_status); } &&
11543
 
         { ac_try='test -z "$ac_c_werror_flag"
11544
 
                         || test ! -s conftest.err'
11545
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546
 
  (eval $ac_try) 2>&5
11547
 
  ac_status=$?
11548
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549
 
  (exit $ac_status); }; } &&
11550
 
         { ac_try='test -s conftest$ac_exeext'
11551
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552
 
  (eval $ac_try) 2>&5
11553
 
  ac_status=$?
11554
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555
 
  (exit $ac_status); }; }; then
11556
 
  ac_cv_lib_dl_dlopen=yes
11557
 
else
11558
 
  echo "$as_me: failed program was:" >&5
11559
 
sed 's/^/| /' conftest.$ac_ext >&5
11560
 
 
11561
 
ac_cv_lib_dl_dlopen=no
11562
 
fi
11563
 
rm -f conftest.err conftest.$ac_objext \
11564
 
      conftest$ac_exeext conftest.$ac_ext
11565
 
LIBS=$ac_check_lib_save_LIBS
11566
 
fi
11567
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11568
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11569
 
if test $ac_cv_lib_dl_dlopen = yes; then
11570
 
 
11571
 
LIBDL="-ldl"
11572
 
ac_cv_have_dlfcn=yes
11573
 
 
11574
 
fi
11575
 
 
11576
 
 
11577
 
echo "$as_me:$LINENO: checking for shl_unload in -ldld" >&5
11578
 
echo $ECHO_N "checking for shl_unload in -ldld... $ECHO_C" >&6
11579
 
if test "${ac_cv_lib_dld_shl_unload+set}" = set; then
11580
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11581
 
else
11582
 
  ac_check_lib_save_LIBS=$LIBS
11583
 
LIBS="-ldld  $LIBS"
11584
 
cat >conftest.$ac_ext <<_ACEOF
11585
 
/* confdefs.h.  */
11586
 
_ACEOF
11587
 
cat confdefs.h >>conftest.$ac_ext
11588
 
cat >>conftest.$ac_ext <<_ACEOF
11589
 
/* end confdefs.h.  */
11590
 
 
11591
 
/* Override any gcc2 internal prototype to avoid an error.  */
11592
 
#ifdef __cplusplus
11593
 
extern "C"
11594
 
#endif
11595
 
/* We use char because int might match the return type of a gcc2
11596
 
   builtin and then its argument prototype would still apply.  */
11597
 
char shl_unload ();
11598
 
int
11599
 
main ()
11600
 
{
11601
 
shl_unload ();
11602
 
  ;
11603
 
  return 0;
11604
 
}
11605
 
_ACEOF
11606
 
rm -f conftest.$ac_objext conftest$ac_exeext
11607
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11608
 
  (eval $ac_link) 2>conftest.er1
11609
 
  ac_status=$?
11610
 
  grep -v '^ *+' conftest.er1 >conftest.err
11611
 
  rm -f conftest.er1
11612
 
  cat conftest.err >&5
11613
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614
 
  (exit $ac_status); } &&
11615
 
         { ac_try='test -z "$ac_c_werror_flag"
11616
 
                         || test ! -s conftest.err'
11617
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618
 
  (eval $ac_try) 2>&5
11619
 
  ac_status=$?
11620
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621
 
  (exit $ac_status); }; } &&
11622
 
         { ac_try='test -s conftest$ac_exeext'
11623
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624
 
  (eval $ac_try) 2>&5
11625
 
  ac_status=$?
11626
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627
 
  (exit $ac_status); }; }; then
11628
 
  ac_cv_lib_dld_shl_unload=yes
11629
 
else
11630
 
  echo "$as_me: failed program was:" >&5
11631
 
sed 's/^/| /' conftest.$ac_ext >&5
11632
 
 
11633
 
ac_cv_lib_dld_shl_unload=no
11634
 
fi
11635
 
rm -f conftest.err conftest.$ac_objext \
11636
 
      conftest$ac_exeext conftest.$ac_ext
11637
 
LIBS=$ac_check_lib_save_LIBS
11638
 
fi
11639
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5
11640
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_unload" >&6
11641
 
if test $ac_cv_lib_dld_shl_unload = yes; then
11642
 
 
11643
 
LIBDL="-ldld"
11644
 
ac_cv_have_shload=yes
11645
 
 
11646
 
fi
11647
 
 
11648
 
 
11649
 
 
11650
 
 
11651
 
 
11652
 
 
11653
 
 
11654
 
# Check whether --enable-embedded or --disable-embedded was given.
11655
 
if test "${enable_embedded+set}" = set; then
11656
 
  enableval="$enable_embedded"
11657
 
  kde_use_qt_emb=$enableval
11658
 
else
11659
 
  kde_use_qt_emb=no
11660
 
 
11661
 
fi;
11662
 
 
11663
 
# Check whether --enable-qtopia or --disable-qtopia was given.
11664
 
if test "${enable_qtopia+set}" = set; then
11665
 
  enableval="$enable_qtopia"
11666
 
  kde_use_qt_emb_palm=$enableval
11667
 
else
11668
 
  kde_use_qt_emb_palm=no
11669
 
 
11670
 
fi;
11671
 
 
11672
 
if test "$kde_use_qt_emb" = "no"; then
11673
 
 
11674
 
echo "$as_me:$LINENO: checking for X" >&5
11675
 
echo $ECHO_N "checking for X... $ECHO_C" >&6
11676
 
 
11677
 
 
11678
 
ac_ext=c
11679
 
ac_cpp='$CPP $CPPFLAGS'
11680
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11681
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11682
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11683
 
 
11684
 
if test "${kde_cv_have_x+set}" = set; then
11685
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11686
 
else
11687
 
  # One or both of the vars are not set, and there is no cached value.
11688
 
if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
11689
 
   kde_x_includes=NO
11690
 
else
11691
 
   kde_x_includes=$x_includes
11692
 
fi
11693
 
if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
11694
 
   kde_x_libraries=NO
11695
 
else
11696
 
   kde_x_libraries=$x_libraries
11697
 
fi
11698
 
 
11699
 
# below we use the standard autoconf calls
11700
 
ac_x_libraries=$kde_x_libraries
11701
 
ac_x_includes=$kde_x_includes
11702
 
 
11703
 
if test "$ac_x_includes" = NO; then
11704
 
  # Guess where to find include files, by looking for this one X11 .h file.
11705
 
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11706
 
 
11707
 
  # First, try using that file with no special directory specified.
11708
 
cat >conftest.$ac_ext <<_ACEOF
11709
 
/* confdefs.h.  */
11710
 
_ACEOF
11711
 
cat confdefs.h >>conftest.$ac_ext
11712
 
cat >>conftest.$ac_ext <<_ACEOF
11713
 
/* end confdefs.h.  */
11714
 
#include <$x_direct_test_include>
11715
 
_ACEOF
11716
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11717
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11718
 
  ac_status=$?
11719
 
  grep -v '^ *+' conftest.er1 >conftest.err
11720
 
  rm -f conftest.er1
11721
 
  cat conftest.err >&5
11722
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723
 
  (exit $ac_status); } >/dev/null; then
11724
 
  if test -s conftest.err; then
11725
 
    ac_cpp_err=$ac_c_preproc_warn_flag
11726
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11727
 
  else
11728
 
    ac_cpp_err=
11729
 
  fi
11730
 
else
11731
 
  ac_cpp_err=yes
11732
 
fi
11733
 
if test -z "$ac_cpp_err"; then
11734
 
  # We can compile using X headers with no special include directory.
11735
 
ac_x_includes=
11736
 
else
11737
 
  echo "$as_me: failed program was:" >&5
11738
 
sed 's/^/| /' conftest.$ac_ext >&5
11739
 
 
11740
 
  # Look for the header file in a standard set of common directories.
11741
 
# Check X11 before X11Rn because it is often a symlink to the current release.
11742
 
  for ac_dir in               \
11743
 
    /usr/X11/include          \
11744
 
    /usr/X11R6/include        \
11745
 
    /usr/X11R5/include        \
11746
 
    /usr/X11R4/include        \
11747
 
                              \
11748
 
    /usr/include/X11          \
11749
 
    /usr/include/X11R6        \
11750
 
    /usr/include/X11R5        \
11751
 
    /usr/include/X11R4        \
11752
 
                              \
11753
 
    /usr/local/X11/include    \
11754
 
    /usr/local/X11R6/include  \
11755
 
    /usr/local/X11R5/include  \
11756
 
    /usr/local/X11R4/include  \
11757
 
                              \
11758
 
    /usr/local/include/X11    \
11759
 
    /usr/local/include/X11R6  \
11760
 
    /usr/local/include/X11R5  \
11761
 
    /usr/local/include/X11R4  \
11762
 
                              \
11763
 
    /usr/X386/include         \
11764
 
    /usr/x386/include         \
11765
 
    /usr/XFree86/include/X11  \
11766
 
                              \
11767
 
    /usr/include              \
11768
 
    /usr/local/include        \
11769
 
    /usr/unsupported/include  \
11770
 
    /usr/athena/include       \
11771
 
    /usr/local/x11r5/include  \
11772
 
    /usr/lpp/Xamples/include  \
11773
 
                              \
11774
 
    /usr/openwin/include      \
11775
 
    /usr/openwin/share/include \
11776
 
    ; \
11777
 
  do
11778
 
    if test -r "$ac_dir/$x_direct_test_include"; then
11779
 
      ac_x_includes=$ac_dir
11780
 
      break
11781
 
    fi
11782
 
  done
11783
 
fi
11784
 
rm -f conftest.err conftest.$ac_ext
11785
 
fi # $ac_x_includes = NO
11786
 
 
11787
 
if test "$ac_x_libraries" = NO; then
11788
 
  # Check for the libraries.
11789
 
 
11790
 
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
11791
 
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11792
 
 
11793
 
  # See if we find them without any special options.
11794
 
  # Don't add to $LIBS permanently.
11795
 
  ac_save_LIBS="$LIBS"
11796
 
  LIBS="-l$x_direct_test_library $LIBS"
11797
 
cat >conftest.$ac_ext <<_ACEOF
11798
 
/* confdefs.h.  */
11799
 
_ACEOF
11800
 
cat confdefs.h >>conftest.$ac_ext
11801
 
cat >>conftest.$ac_ext <<_ACEOF
11802
 
/* end confdefs.h.  */
11803
 
 
11804
 
int
11805
 
main ()
11806
 
{
11807
 
${x_direct_test_function}()
11808
 
  ;
11809
 
  return 0;
11810
 
}
11811
 
_ACEOF
11812
 
rm -f conftest.$ac_objext conftest$ac_exeext
11813
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11814
 
  (eval $ac_link) 2>conftest.er1
11815
 
  ac_status=$?
11816
 
  grep -v '^ *+' conftest.er1 >conftest.err
11817
 
  rm -f conftest.er1
11818
 
  cat conftest.err >&5
11819
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820
 
  (exit $ac_status); } &&
11821
 
         { ac_try='test -z "$ac_c_werror_flag"
11822
 
                         || test ! -s conftest.err'
11823
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824
 
  (eval $ac_try) 2>&5
11825
 
  ac_status=$?
11826
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827
 
  (exit $ac_status); }; } &&
11828
 
         { ac_try='test -s conftest$ac_exeext'
11829
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830
 
  (eval $ac_try) 2>&5
11831
 
  ac_status=$?
11832
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833
 
  (exit $ac_status); }; }; then
11834
 
  LIBS="$ac_save_LIBS"
11835
 
# We can link X programs with no special library path.
11836
 
ac_x_libraries=
11837
 
else
11838
 
  echo "$as_me: failed program was:" >&5
11839
 
sed 's/^/| /' conftest.$ac_ext >&5
11840
 
 
11841
 
LIBS="$ac_save_LIBS"
11842
 
# First see if replacing the include by lib works.
11843
 
# Check X11 before X11Rn because it is often a symlink to the current release.
11844
 
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11845
 
    /usr/X11/lib          \
11846
 
    /usr/X11R6/lib        \
11847
 
    /usr/X11R5/lib        \
11848
 
    /usr/X11R4/lib        \
11849
 
                          \
11850
 
    /usr/lib/X11          \
11851
 
    /usr/lib/X11R6        \
11852
 
    /usr/lib/X11R5        \
11853
 
    /usr/lib/X11R4        \
11854
 
                          \
11855
 
    /usr/local/X11/lib    \
11856
 
    /usr/local/X11R6/lib  \
11857
 
    /usr/local/X11R5/lib  \
11858
 
    /usr/local/X11R4/lib  \
11859
 
                          \
11860
 
    /usr/local/lib/X11    \
11861
 
    /usr/local/lib/X11R6  \
11862
 
    /usr/local/lib/X11R5  \
11863
 
    /usr/local/lib/X11R4  \
11864
 
                          \
11865
 
    /usr/X386/lib         \
11866
 
    /usr/x386/lib         \
11867
 
    /usr/XFree86/lib/X11  \
11868
 
                          \
11869
 
    /usr/lib              \
11870
 
    /usr/local/lib        \
11871
 
    /usr/unsupported/lib  \
11872
 
    /usr/athena/lib       \
11873
 
    /usr/local/x11r5/lib  \
11874
 
    /usr/lpp/Xamples/lib  \
11875
 
    /lib/usr/lib/X11      \
11876
 
                          \
11877
 
    /usr/openwin/lib      \
11878
 
    /usr/openwin/share/lib \
11879
 
    ; \
11880
 
do
11881
 
  for ac_extension in a so sl; do
11882
 
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
11883
 
      ac_x_libraries=$ac_dir
11884
 
      break 2
11885
 
    fi
11886
 
  done
11887
 
done
11888
 
fi
11889
 
rm -f conftest.err conftest.$ac_objext \
11890
 
      conftest$ac_exeext conftest.$ac_ext
11891
 
fi # $ac_x_libraries = NO
11892
 
 
11893
 
case "$host" in
11894
 
mips-sgi-irix6*)
11895
 
  ;;
11896
 
*-*-solaris*)
11897
 
  ;;
11898
 
*)
11899
 
  rm -fr conftest.dir
11900
 
if mkdir conftest.dir; then
11901
 
  cd conftest.dir
11902
 
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11903
 
  cat >Imakefile <<'_ACEOF'
11904
 
acfindx:
11905
 
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11906
 
_ACEOF
11907
 
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11908
 
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11909
 
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11910
 
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11911
 
    for ac_extension in a so sl; do
11912
 
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11913
 
         test -f $ac_im_libdir/libX11.$ac_extension; then
11914
 
        ac_im_usrlibdir=$ac_im_libdir; break
11915
 
      fi
11916
 
    done
11917
 
    # Screen out bogus values from the imake configuration.  They are
11918
 
    # bogus both because they are the default anyway, and because
11919
 
    # using them would break gcc on systems where it needs fixed includes.
11920
 
    case $ac_im_incroot in
11921
 
        /usr/include) ;;
11922
 
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11923
 
    esac
11924
 
    case $ac_im_usrlibdir in
11925
 
        /usr/lib | /lib) ;;
11926
 
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11927
 
    esac
11928
 
  fi
11929
 
  cd ..
11930
 
  rm -fr conftest.dir
11931
 
fi
11932
 
 
11933
 
  if test -z "$ac_x_includes"; then
11934
 
    ac_x_includes="."
11935
 
  fi
11936
 
  if test -z "$ac_x_libraries"; then
11937
 
    ac_x_libraries="/usr/lib"
11938
 
  fi
11939
 
esac
11940
 
#from now on we use our own again
11941
 
 
11942
 
# when the user already gave --x-includes, we ignore
11943
 
# what the standard autoconf macros told us.
11944
 
if test "$kde_x_includes" = NO; then
11945
 
  kde_x_includes=$ac_x_includes
11946
 
fi
11947
 
 
11948
 
# for --x-libraries too
11949
 
if test "$kde_x_libraries" = NO; then
11950
 
  kde_x_libraries=$ac_x_libraries
11951
 
fi
11952
 
 
11953
 
if test "$kde_x_includes" = NO; then
11954
 
  { { echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and add the correct paths!" >&5
11955
 
echo "$as_me: error: Can't find X includes. Please check your installation and add the correct paths!" >&2;}
11956
 
   { (exit 1); exit 1; }; }
11957
 
fi
11958
 
 
11959
 
if test "$kde_x_libraries" = NO; then
11960
 
  { { echo "$as_me:$LINENO: error: Can't find X libraries. Please check your installation and add the correct paths!" >&5
11961
 
echo "$as_me: error: Can't find X libraries. Please check your installation and add the correct paths!" >&2;}
11962
 
   { (exit 1); exit 1; }; }
11963
 
fi
11964
 
 
11965
 
# Record where we found X for the cache.
11966
 
kde_cv_have_x="have_x=yes \
11967
 
         kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
11968
 
 
11969
 
fi
11970
 
 
11971
 
eval "$kde_cv_have_x"
11972
 
 
11973
 
if test "$have_x" != yes; then
11974
 
  echo "$as_me:$LINENO: result: $have_x" >&5
11975
 
echo "${ECHO_T}$have_x" >&6
11976
 
  no_x=yes
11977
 
else
11978
 
  echo "$as_me:$LINENO: result: libraries $kde_x_libraries, headers $kde_x_includes" >&5
11979
 
echo "${ECHO_T}libraries $kde_x_libraries, headers $kde_x_includes" >&6
11980
 
fi
11981
 
 
11982
 
if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
11983
 
  X_INCLUDES=""
11984
 
  x_includes=".";  else
11985
 
  x_includes=$kde_x_includes
11986
 
  X_INCLUDES="-I$x_includes"
11987
 
fi
11988
 
 
11989
 
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
11990
 
  X_LDFLAGS=""
11991
 
  x_libraries="/usr/lib";  else
11992
 
  x_libraries=$kde_x_libraries
11993
 
  X_LDFLAGS="-L$x_libraries"
11994
 
fi
11995
 
all_includes="$X_INCLUDES"
11996
 
all_libraries="$X_LDFLAGS"
11997
 
 
11998
 
 
11999
 
 
12000
 
 
12001
 
 
12002
 
 
12003
 
# Check for libraries that X11R6 Xt/Xaw programs need.
12004
 
ac_save_LDFLAGS="$LDFLAGS"
12005
 
LDFLAGS="$LDFLAGS $X_LDFLAGS"
12006
 
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12007
 
# check for ICE first), but we must link in the order -lSM -lICE or
12008
 
# we get undefined symbols.  So assume we have SM if we have ICE.
12009
 
# These have to be linked with before -lX11, unlike the other
12010
 
# libraries we check for below, so use a different variable.
12011
 
#  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12012
 
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
12013
 
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
12014
 
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12015
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12016
 
else
12017
 
  ac_check_lib_save_LIBS=$LIBS
12018
 
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12019
 
cat >conftest.$ac_ext <<_ACEOF
12020
 
/* confdefs.h.  */
12021
 
_ACEOF
12022
 
cat confdefs.h >>conftest.$ac_ext
12023
 
cat >>conftest.$ac_ext <<_ACEOF
12024
 
/* end confdefs.h.  */
12025
 
 
12026
 
/* Override any gcc2 internal prototype to avoid an error.  */
12027
 
#ifdef __cplusplus
12028
 
extern "C"
12029
 
#endif
12030
 
/* We use char because int might match the return type of a gcc2
12031
 
   builtin and then its argument prototype would still apply.  */
12032
 
char IceConnectionNumber ();
12033
 
int
12034
 
main ()
12035
 
{
12036
 
IceConnectionNumber ();
12037
 
  ;
12038
 
  return 0;
12039
 
}
12040
 
_ACEOF
12041
 
rm -f conftest.$ac_objext conftest$ac_exeext
12042
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12043
 
  (eval $ac_link) 2>conftest.er1
12044
 
  ac_status=$?
12045
 
  grep -v '^ *+' conftest.er1 >conftest.err
12046
 
  rm -f conftest.er1
12047
 
  cat conftest.err >&5
12048
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049
 
  (exit $ac_status); } &&
12050
 
         { ac_try='test -z "$ac_c_werror_flag"
12051
 
                         || test ! -s conftest.err'
12052
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053
 
  (eval $ac_try) 2>&5
12054
 
  ac_status=$?
12055
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056
 
  (exit $ac_status); }; } &&
12057
 
         { ac_try='test -s conftest$ac_exeext'
12058
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059
 
  (eval $ac_try) 2>&5
12060
 
  ac_status=$?
12061
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062
 
  (exit $ac_status); }; }; then
12063
 
  ac_cv_lib_ICE_IceConnectionNumber=yes
12064
 
else
12065
 
  echo "$as_me: failed program was:" >&5
12066
 
sed 's/^/| /' conftest.$ac_ext >&5
12067
 
 
12068
 
ac_cv_lib_ICE_IceConnectionNumber=no
12069
 
fi
12070
 
rm -f conftest.err conftest.$ac_objext \
12071
 
      conftest$ac_exeext conftest.$ac_ext
12072
 
LIBS=$ac_check_lib_save_LIBS
12073
 
fi
12074
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12075
 
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
12076
 
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12077
 
  LIBSM="-lSM -lICE"
12078
 
fi
12079
 
 
12080
 
 
12081
 
LDFLAGS="$ac_save_LDFLAGS"
12082
 
 
12083
 
 
12084
 
 
12085
 
LIB_X11='-lX11 $(LIBSOCKET)'
12086
 
 
12087
 
 
12088
 
echo "$as_me:$LINENO: checking for libXext" >&5
12089
 
echo $ECHO_N "checking for libXext... $ECHO_C" >&6
12090
 
if test "${kde_cv_have_libXext+set}" = set; then
12091
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12092
 
else
12093
 
 
12094
 
kde_ldflags_safe="$LDFLAGS"
12095
 
kde_libs_safe="$LIBS"
12096
 
 
12097
 
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
12098
 
LIBS="-lXext -lX11 $LIBSOCKET"
12099
 
 
12100
 
cat >conftest.$ac_ext <<_ACEOF
12101
 
/* confdefs.h.  */
12102
 
_ACEOF
12103
 
cat confdefs.h >>conftest.$ac_ext
12104
 
cat >>conftest.$ac_ext <<_ACEOF
12105
 
/* end confdefs.h.  */
12106
 
 
12107
 
#include <stdio.h>
12108
 
#ifdef STDC_HEADERS
12109
 
# include <stdlib.h>
12110
 
#endif
12111
 
 
12112
 
int
12113
 
main ()
12114
 
{
12115
 
 
12116
 
printf("hello Xext\n");
12117
 
 
12118
 
  ;
12119
 
  return 0;
12120
 
}
12121
 
_ACEOF
12122
 
rm -f conftest.$ac_objext conftest$ac_exeext
12123
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12124
 
  (eval $ac_link) 2>conftest.er1
12125
 
  ac_status=$?
12126
 
  grep -v '^ *+' conftest.er1 >conftest.err
12127
 
  rm -f conftest.er1
12128
 
  cat conftest.err >&5
12129
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130
 
  (exit $ac_status); } &&
12131
 
         { ac_try='test -z "$ac_c_werror_flag"
12132
 
                         || test ! -s conftest.err'
12133
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134
 
  (eval $ac_try) 2>&5
12135
 
  ac_status=$?
12136
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137
 
  (exit $ac_status); }; } &&
12138
 
         { ac_try='test -s conftest$ac_exeext'
12139
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140
 
  (eval $ac_try) 2>&5
12141
 
  ac_status=$?
12142
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143
 
  (exit $ac_status); }; }; then
12144
 
  kde_cv_have_libXext=yes
12145
 
else
12146
 
  echo "$as_me: failed program was:" >&5
12147
 
sed 's/^/| /' conftest.$ac_ext >&5
12148
 
 
12149
 
kde_cv_have_libXext=no
12150
 
 
12151
 
fi
12152
 
rm -f conftest.err conftest.$ac_objext \
12153
 
      conftest$ac_exeext conftest.$ac_ext
12154
 
 
12155
 
LDFLAGS=$kde_ldflags_safe
12156
 
LIBS=$kde_libs_safe
12157
 
 
12158
 
fi
12159
 
 
12160
 
 
12161
 
echo "$as_me:$LINENO: result: $kde_cv_have_libXext" >&5
12162
 
echo "${ECHO_T}$kde_cv_have_libXext" >&6
12163
 
 
12164
 
if test "$kde_cv_have_libXext" = "no"; then
12165
 
  { { echo "$as_me:$LINENO: error: We need a working libXext to proceed. Since configure
12166
 
can't find it itself, we stop here assuming that make wouldn't find
12167
 
them either." >&5
12168
 
echo "$as_me: error: We need a working libXext to proceed. Since configure
12169
 
can't find it itself, we stop here assuming that make wouldn't find
12170
 
them either." >&2;}
12171
 
   { (exit 1); exit 1; }; }
12172
 
fi
12173
 
 
12174
 
echo "$as_me:$LINENO: checking for Xinerama" >&5
12175
 
echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
12176
 
 
12177
 
 
12178
 
# Check whether --with-xinerama or --without-xinerama was given.
12179
 
if test "${with_xinerama+set}" = set; then
12180
 
  withval="$with_xinerama"
12181
 
 
12182
 
    no_xinerama=no
12183
 
 
12184
 
else
12185
 
 
12186
 
    no_xinerama=yes
12187
 
 
12188
 
 
12189
 
fi;
12190
 
 
12191
 
kde_save_LDFLAGS="$LDFLAGS"
12192
 
kde_save_CFLAGS="$CFLAGS"
12193
 
kde_save_LIBS="$LIBS"
12194
 
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
12195
 
CFLAGS="$CFLAGS -I$x_includes"
12196
 
LIBS="-lXinerama -lXext"
12197
 
 
12198
 
if test "x$no_xinerama" = "xno"; then
12199
 
 
12200
 
  if test "${ac_cv_have_xinerama+set}" = set; then
12201
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12202
 
else
12203
 
 
12204
 
          cat >conftest.$ac_ext <<_ACEOF
12205
 
/* confdefs.h.  */
12206
 
_ACEOF
12207
 
cat confdefs.h >>conftest.$ac_ext
12208
 
cat >>conftest.$ac_ext <<_ACEOF
12209
 
/* end confdefs.h.  */
12210
 
#include <X11/Xlib.h>
12211
 
                        #include <X11/extensions/Xinerama.h>
12212
 
int
12213
 
main ()
12214
 
{
12215
 
XineramaIsActive(NULL);
12216
 
  ;
12217
 
  return 0;
12218
 
}
12219
 
_ACEOF
12220
 
rm -f conftest.$ac_objext conftest$ac_exeext
12221
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12222
 
  (eval $ac_link) 2>conftest.er1
12223
 
  ac_status=$?
12224
 
  grep -v '^ *+' conftest.er1 >conftest.err
12225
 
  rm -f conftest.er1
12226
 
  cat conftest.err >&5
12227
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228
 
  (exit $ac_status); } &&
12229
 
         { ac_try='test -z "$ac_c_werror_flag"
12230
 
                         || test ! -s conftest.err'
12231
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232
 
  (eval $ac_try) 2>&5
12233
 
  ac_status=$?
12234
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235
 
  (exit $ac_status); }; } &&
12236
 
         { ac_try='test -s conftest$ac_exeext'
12237
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238
 
  (eval $ac_try) 2>&5
12239
 
  ac_status=$?
12240
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241
 
  (exit $ac_status); }; }; then
12242
 
  ac_cv_have_xinerama="yes"
12243
 
else
12244
 
  echo "$as_me: failed program was:" >&5
12245
 
sed 's/^/| /' conftest.$ac_ext >&5
12246
 
 
12247
 
ac_cv_have_xinerama="no"
12248
 
fi
12249
 
rm -f conftest.err conftest.$ac_objext \
12250
 
      conftest$ac_exeext conftest.$ac_ext
12251
 
 
12252
 
fi
12253
 
 
12254
 
else
12255
 
  ac_cv_have_xinerama=no;
12256
 
fi
12257
 
 
12258
 
echo "$as_me:$LINENO: result: $ac_cv_have_xinerama" >&5
12259
 
echo "${ECHO_T}$ac_cv_have_xinerama" >&6
12260
 
 
12261
 
LIBXINERAMA=""
12262
 
 
12263
 
if test "$ac_cv_have_xinerama" = "yes"; then
12264
 
 
12265
 
cat >>confdefs.h <<\_ACEOF
12266
 
#define HAVE_XINERAMA 1
12267
 
_ACEOF
12268
 
 
12269
 
  LIBXINERAMA="-lXinerama"
12270
 
fi
12271
 
 
12272
 
 
12273
 
 
12274
 
LDFLAGS="$kde_save_LDFLAGS"
12275
 
CFLAGS="$kde_save_CFLAGS"
12276
 
LIBS="$kde_save_LIBS"
12277
 
 
12278
 
LIB_XEXT="-lXext"
12279
 
QTE_NORTTI=""
12280
 
 
12281
 
else
12282
 
    CXXFLAGS="$CXXFLAGS -fno-rtti -DQWS"
12283
 
  CFLAGS="$CFLAGS -DQWS"
12284
 
  LDFLAGS="$LDFLAGS -DQWS"
12285
 
  QTE_NORTTI="-fno-rtti -DQWS"
12286
 
  X_PRE_LIBS=""
12287
 
  LIB_X11=""
12288
 
  LIB_XEXT=""
12289
 
  LIBSM=""
12290
 
  X_INCLUDES=""
12291
 
  X_LDFLAGS=""
12292
 
  x_includes=""
12293
 
  x_libraries=""
12294
 
 
12295
 
 
12296
 
 
12297
 
 
12298
 
 
12299
 
 
12300
 
 
12301
 
fi
12302
 
 
12303
 
 
12304
 
 
12305
 
 
12306
 
ac_ext=c
12307
 
ac_cpp='$CPP $CPPFLAGS'
12308
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12309
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12310
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12311
 
 
12312
 
 
12313
 
 
12314
 
 
12315
 
echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12316
 
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12317
 
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
12318
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12319
 
else
12320
 
  ac_check_lib_save_LIBS=$LIBS
12321
 
LIBS="-lpthread  $LIBS"
12322
 
cat >conftest.$ac_ext <<_ACEOF
12323
 
/* confdefs.h.  */
12324
 
_ACEOF
12325
 
cat confdefs.h >>conftest.$ac_ext
12326
 
cat >>conftest.$ac_ext <<_ACEOF
12327
 
/* end confdefs.h.  */
12328
 
 
12329
 
/* Override any gcc2 internal prototype to avoid an error.  */
12330
 
#ifdef __cplusplus
12331
 
extern "C"
12332
 
#endif
12333
 
/* We use char because int might match the return type of a gcc2
12334
 
   builtin and then its argument prototype would still apply.  */
12335
 
char pthread_create ();
12336
 
int
12337
 
main ()
12338
 
{
12339
 
pthread_create ();
12340
 
  ;
12341
 
  return 0;
12342
 
}
12343
 
_ACEOF
12344
 
rm -f conftest.$ac_objext conftest$ac_exeext
12345
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12346
 
  (eval $ac_link) 2>conftest.er1
12347
 
  ac_status=$?
12348
 
  grep -v '^ *+' conftest.er1 >conftest.err
12349
 
  rm -f conftest.er1
12350
 
  cat conftest.err >&5
12351
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352
 
  (exit $ac_status); } &&
12353
 
         { ac_try='test -z "$ac_c_werror_flag"
12354
 
                         || test ! -s conftest.err'
12355
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356
 
  (eval $ac_try) 2>&5
12357
 
  ac_status=$?
12358
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359
 
  (exit $ac_status); }; } &&
12360
 
         { ac_try='test -s conftest$ac_exeext'
12361
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362
 
  (eval $ac_try) 2>&5
12363
 
  ac_status=$?
12364
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365
 
  (exit $ac_status); }; }; then
12366
 
  ac_cv_lib_pthread_pthread_create=yes
12367
 
else
12368
 
  echo "$as_me: failed program was:" >&5
12369
 
sed 's/^/| /' conftest.$ac_ext >&5
12370
 
 
12371
 
ac_cv_lib_pthread_pthread_create=no
12372
 
fi
12373
 
rm -f conftest.err conftest.$ac_objext \
12374
 
      conftest$ac_exeext conftest.$ac_ext
12375
 
LIBS=$ac_check_lib_save_LIBS
12376
 
fi
12377
 
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
12378
 
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
12379
 
if test $ac_cv_lib_pthread_pthread_create = yes; then
12380
 
  LIBPTHREAD="-lpthread"
12381
 
fi
12382
 
 
12383
 
 
12384
 
 
12385
 
 
12386
 
    # Check whether --enable-kernel-threads or --disable-kernel-threads was given.
12387
 
if test "${enable_kernel_threads+set}" = set; then
12388
 
  enableval="$enable_kernel_threads"
12389
 
  kde_use_kernthreads=$enableval
12390
 
else
12391
 
  kde_use_kernthreads=no
12392
 
fi;
12393
 
 
12394
 
    if test "$kde_use_kernthreads" = "yes"; then
12395
 
      ac_save_CXXFLAGS="$CXXFLAGS"
12396
 
      ac_save_CFLAGS="$CFLAGS"
12397
 
      CXXFLAGS="-I/usr/local/include/pthread/linuxthreads $CXXFLAGS"
12398
 
      CFLAGS="-I/usr/local/include/pthread/linuxthreads $CFLAGS"
12399
 
 
12400
 
for ac_header in pthread/linuxthreads/pthread.h
12401
 
do
12402
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12403
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12404
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
12405
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12406
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12407
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12408
 
fi
12409
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12410
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12411
 
else
12412
 
  # Is the header compilable?
12413
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
12414
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12415
 
cat >conftest.$ac_ext <<_ACEOF
12416
 
/* confdefs.h.  */
12417
 
_ACEOF
12418
 
cat confdefs.h >>conftest.$ac_ext
12419
 
cat >>conftest.$ac_ext <<_ACEOF
12420
 
/* end confdefs.h.  */
12421
 
$ac_includes_default
12422
 
#include <$ac_header>
12423
 
_ACEOF
12424
 
rm -f conftest.$ac_objext
12425
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12426
 
  (eval $ac_compile) 2>conftest.er1
12427
 
  ac_status=$?
12428
 
  grep -v '^ *+' conftest.er1 >conftest.err
12429
 
  rm -f conftest.er1
12430
 
  cat conftest.err >&5
12431
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432
 
  (exit $ac_status); } &&
12433
 
         { ac_try='test -z "$ac_c_werror_flag"
12434
 
                         || test ! -s conftest.err'
12435
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436
 
  (eval $ac_try) 2>&5
12437
 
  ac_status=$?
12438
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439
 
  (exit $ac_status); }; } &&
12440
 
         { ac_try='test -s conftest.$ac_objext'
12441
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442
 
  (eval $ac_try) 2>&5
12443
 
  ac_status=$?
12444
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445
 
  (exit $ac_status); }; }; then
12446
 
  ac_header_compiler=yes
12447
 
else
12448
 
  echo "$as_me: failed program was:" >&5
12449
 
sed 's/^/| /' conftest.$ac_ext >&5
12450
 
 
12451
 
ac_header_compiler=no
12452
 
fi
12453
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12454
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12455
 
echo "${ECHO_T}$ac_header_compiler" >&6
12456
 
 
12457
 
# Is the header present?
12458
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
12459
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12460
 
cat >conftest.$ac_ext <<_ACEOF
12461
 
/* confdefs.h.  */
12462
 
_ACEOF
12463
 
cat confdefs.h >>conftest.$ac_ext
12464
 
cat >>conftest.$ac_ext <<_ACEOF
12465
 
/* end confdefs.h.  */
12466
 
#include <$ac_header>
12467
 
_ACEOF
12468
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12469
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12470
 
  ac_status=$?
12471
 
  grep -v '^ *+' conftest.er1 >conftest.err
12472
 
  rm -f conftest.er1
12473
 
  cat conftest.err >&5
12474
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475
 
  (exit $ac_status); } >/dev/null; then
12476
 
  if test -s conftest.err; then
12477
 
    ac_cpp_err=$ac_c_preproc_warn_flag
12478
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12479
 
  else
12480
 
    ac_cpp_err=
12481
 
  fi
12482
 
else
12483
 
  ac_cpp_err=yes
12484
 
fi
12485
 
if test -z "$ac_cpp_err"; then
12486
 
  ac_header_preproc=yes
12487
 
else
12488
 
  echo "$as_me: failed program was:" >&5
12489
 
sed 's/^/| /' conftest.$ac_ext >&5
12490
 
 
12491
 
  ac_header_preproc=no
12492
 
fi
12493
 
rm -f conftest.err conftest.$ac_ext
12494
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12495
 
echo "${ECHO_T}$ac_header_preproc" >&6
12496
 
 
12497
 
# So?  What about this header?
12498
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12499
 
  yes:no: )
12500
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12501
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12502
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12503
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12504
 
    ac_header_preproc=yes
12505
 
    ;;
12506
 
  no:yes:* )
12507
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12508
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12509
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12510
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12511
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12512
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12513
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12514
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12515
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12516
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12517
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12518
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12519
 
    (
12520
 
      cat <<\_ASBOX
12521
 
## ------------------------------------------ ##
12522
 
## Report this to the AC_PACKAGE_NAME lists.  ##
12523
 
## ------------------------------------------ ##
12524
 
_ASBOX
12525
 
    ) |
12526
 
      sed "s/^/$as_me: WARNING:     /" >&2
12527
 
    ;;
12528
 
esac
12529
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
12530
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12531
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12532
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12533
 
else
12534
 
  eval "$as_ac_Header=\$ac_header_preproc"
12535
 
fi
12536
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12537
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12538
 
 
12539
 
fi
12540
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12541
 
  cat >>confdefs.h <<_ACEOF
12542
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12543
 
_ACEOF
12544
 
 
12545
 
fi
12546
 
 
12547
 
done
12548
 
 
12549
 
      CXXFLAGS="$ac_save_CXXFLAGS"
12550
 
      CFLAGS="$ac_save_CFLAGS"
12551
 
      if test "$ac_cv_header_pthread_linuxthreads_pthread_h" = "no"; then
12552
 
        kde_use_kernthreads=no
12553
 
      else
12554
 
                echo "$as_me:$LINENO: checking for pthread_join in -llthread" >&5
12555
 
echo $ECHO_N "checking for pthread_join in -llthread... $ECHO_C" >&6
12556
 
if test "${ac_cv_lib_lthread_pthread_join+set}" = set; then
12557
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12558
 
else
12559
 
  ac_check_lib_save_LIBS=$LIBS
12560
 
LIBS="-llthread  $LIBS"
12561
 
cat >conftest.$ac_ext <<_ACEOF
12562
 
/* confdefs.h.  */
12563
 
_ACEOF
12564
 
cat confdefs.h >>conftest.$ac_ext
12565
 
cat >>conftest.$ac_ext <<_ACEOF
12566
 
/* end confdefs.h.  */
12567
 
 
12568
 
/* Override any gcc2 internal prototype to avoid an error.  */
12569
 
#ifdef __cplusplus
12570
 
extern "C"
12571
 
#endif
12572
 
/* We use char because int might match the return type of a gcc2
12573
 
   builtin and then its argument prototype would still apply.  */
12574
 
char pthread_join ();
12575
 
int
12576
 
main ()
12577
 
{
12578
 
pthread_join ();
12579
 
  ;
12580
 
  return 0;
12581
 
}
12582
 
_ACEOF
12583
 
rm -f conftest.$ac_objext conftest$ac_exeext
12584
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12585
 
  (eval $ac_link) 2>conftest.er1
12586
 
  ac_status=$?
12587
 
  grep -v '^ *+' conftest.er1 >conftest.err
12588
 
  rm -f conftest.er1
12589
 
  cat conftest.err >&5
12590
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591
 
  (exit $ac_status); } &&
12592
 
         { ac_try='test -z "$ac_c_werror_flag"
12593
 
                         || test ! -s conftest.err'
12594
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595
 
  (eval $ac_try) 2>&5
12596
 
  ac_status=$?
12597
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598
 
  (exit $ac_status); }; } &&
12599
 
         { ac_try='test -s conftest$ac_exeext'
12600
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601
 
  (eval $ac_try) 2>&5
12602
 
  ac_status=$?
12603
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604
 
  (exit $ac_status); }; }; then
12605
 
  ac_cv_lib_lthread_pthread_join=yes
12606
 
else
12607
 
  echo "$as_me: failed program was:" >&5
12608
 
sed 's/^/| /' conftest.$ac_ext >&5
12609
 
 
12610
 
ac_cv_lib_lthread_pthread_join=no
12611
 
fi
12612
 
rm -f conftest.err conftest.$ac_objext \
12613
 
      conftest$ac_exeext conftest.$ac_ext
12614
 
LIBS=$ac_check_lib_save_LIBS
12615
 
fi
12616
 
echo "$as_me:$LINENO: result: $ac_cv_lib_lthread_pthread_join" >&5
12617
 
echo "${ECHO_T}$ac_cv_lib_lthread_pthread_join" >&6
12618
 
if test $ac_cv_lib_lthread_pthread_join = yes; then
12619
 
  LIBPTHREAD="-llthread -llgcc_r"
12620
 
fi
12621
 
         if test "x$LIBPTHREAD" = "x"; then
12622
 
          kde_use_kernthreads=no
12623
 
        else
12624
 
          USE_THREADS="-D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads"
12625
 
        fi
12626
 
      fi
12627
 
    else
12628
 
      USE_THREADS=""
12629
 
      if test -z "$LIBPTHREAD"; then
12630
 
 
12631
 
echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
12632
 
echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6
12633
 
kde_cache=`echo pthread | sed 'y% .=/+-%____p_%'`
12634
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
12635
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12636
 
else
12637
 
 
12638
 
 
12639
 
 
12640
 
   ac_ext=cc
12641
 
ac_cpp='$CXXCPP $CPPFLAGS'
12642
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12643
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12644
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12645
 
 
12646
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12647
 
 
12648
 
 
12649
 
  save_CXXFLAGS="$CXXFLAGS"
12650
 
  CXXFLAGS="$CXXFLAGS -pthread"
12651
 
  cat >conftest.$ac_ext <<_ACEOF
12652
 
/* confdefs.h.  */
12653
 
_ACEOF
12654
 
cat confdefs.h >>conftest.$ac_ext
12655
 
cat >>conftest.$ac_ext <<_ACEOF
12656
 
/* end confdefs.h.  */
12657
 
 
12658
 
int
12659
 
main ()
12660
 
{
12661
 
 return 0;
12662
 
  ;
12663
 
  return 0;
12664
 
}
12665
 
_ACEOF
12666
 
rm -f conftest.$ac_objext conftest$ac_exeext
12667
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12668
 
  (eval $ac_link) 2>conftest.er1
12669
 
  ac_status=$?
12670
 
  grep -v '^ *+' conftest.er1 >conftest.err
12671
 
  rm -f conftest.er1
12672
 
  cat conftest.err >&5
12673
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674
 
  (exit $ac_status); } &&
12675
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12676
 
                         || test ! -s conftest.err'
12677
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678
 
  (eval $ac_try) 2>&5
12679
 
  ac_status=$?
12680
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681
 
  (exit $ac_status); }; } &&
12682
 
         { ac_try='test -s conftest$ac_exeext'
12683
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684
 
  (eval $ac_try) 2>&5
12685
 
  ac_status=$?
12686
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687
 
  (exit $ac_status); }; }; then
12688
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
12689
 
else
12690
 
  echo "$as_me: failed program was:" >&5
12691
 
sed 's/^/| /' conftest.$ac_ext >&5
12692
 
 
12693
 
fi
12694
 
rm -f conftest.err conftest.$ac_objext \
12695
 
      conftest$ac_exeext conftest.$ac_ext
12696
 
  CXXFLAGS="$save_CXXFLAGS"
12697
 
  ac_ext=c
12698
 
ac_cpp='$CPP $CPPFLAGS'
12699
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12700
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12701
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12702
 
 
12703
 
 
12704
 
fi
12705
 
 
12706
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
12707
 
 echo "$as_me:$LINENO: result: yes" >&5
12708
 
echo "${ECHO_T}yes" >&6
12709
 
 :
12710
 
 USE_THREADS="-pthread"
12711
 
else
12712
 
 echo "$as_me:$LINENO: result: no" >&5
12713
 
echo "${ECHO_T}no" >&6
12714
 
 :
12715
 
 
12716
 
fi
12717
 
 
12718
 
      fi
12719
 
    fi
12720
 
 
12721
 
    case $host_os in
12722
 
        solaris*)
12723
 
 
12724
 
echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
12725
 
echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6
12726
 
kde_cache=`echo mt | sed 'y% .=/+-%____p_%'`
12727
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
12728
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12729
 
else
12730
 
 
12731
 
 
12732
 
 
12733
 
   ac_ext=cc
12734
 
ac_cpp='$CXXCPP $CPPFLAGS'
12735
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12736
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12737
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12738
 
 
12739
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12740
 
 
12741
 
 
12742
 
  save_CXXFLAGS="$CXXFLAGS"
12743
 
  CXXFLAGS="$CXXFLAGS -mt"
12744
 
  cat >conftest.$ac_ext <<_ACEOF
12745
 
/* confdefs.h.  */
12746
 
_ACEOF
12747
 
cat confdefs.h >>conftest.$ac_ext
12748
 
cat >>conftest.$ac_ext <<_ACEOF
12749
 
/* end confdefs.h.  */
12750
 
 
12751
 
int
12752
 
main ()
12753
 
{
12754
 
 return 0;
12755
 
  ;
12756
 
  return 0;
12757
 
}
12758
 
_ACEOF
12759
 
rm -f conftest.$ac_objext conftest$ac_exeext
12760
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12761
 
  (eval $ac_link) 2>conftest.er1
12762
 
  ac_status=$?
12763
 
  grep -v '^ *+' conftest.er1 >conftest.err
12764
 
  rm -f conftest.er1
12765
 
  cat conftest.err >&5
12766
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767
 
  (exit $ac_status); } &&
12768
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12769
 
                         || test ! -s conftest.err'
12770
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771
 
  (eval $ac_try) 2>&5
12772
 
  ac_status=$?
12773
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774
 
  (exit $ac_status); }; } &&
12775
 
         { ac_try='test -s conftest$ac_exeext'
12776
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777
 
  (eval $ac_try) 2>&5
12778
 
  ac_status=$?
12779
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780
 
  (exit $ac_status); }; }; then
12781
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
12782
 
else
12783
 
  echo "$as_me: failed program was:" >&5
12784
 
sed 's/^/| /' conftest.$ac_ext >&5
12785
 
 
12786
 
fi
12787
 
rm -f conftest.err conftest.$ac_objext \
12788
 
      conftest$ac_exeext conftest.$ac_ext
12789
 
  CXXFLAGS="$save_CXXFLAGS"
12790
 
  ac_ext=c
12791
 
ac_cpp='$CPP $CPPFLAGS'
12792
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12793
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12794
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12795
 
 
12796
 
 
12797
 
fi
12798
 
 
12799
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
12800
 
 echo "$as_me:$LINENO: result: yes" >&5
12801
 
echo "${ECHO_T}yes" >&6
12802
 
 :
12803
 
 USE_THREADS="-mt"
12804
 
else
12805
 
 echo "$as_me:$LINENO: result: no" >&5
12806
 
echo "${ECHO_T}no" >&6
12807
 
 :
12808
 
 
12809
 
fi
12810
 
 
12811
 
                CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
12812
 
                ;;
12813
 
        freebsd*)
12814
 
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
12815
 
                ;;
12816
 
        aix*)
12817
 
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
12818
 
                LIBPTHREAD="$LIBPTHREAD -lc_r"
12819
 
                ;;
12820
 
        linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
12821
 
                if test "$CXX" = "KCC"; then
12822
 
                  CXXFLAGS="$CXXFLAGS --thread_safe"
12823
 
                  NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe"
12824
 
                fi
12825
 
                ;;
12826
 
        *)
12827
 
                ;;
12828
 
    esac
12829
 
 
12830
 
 
12831
 
 
12832
 
 
12833
 
echo "$as_me:$LINENO: checking for extra includes" >&5
12834
 
echo $ECHO_N "checking for extra includes... $ECHO_C" >&6
12835
 
 
12836
 
# Check whether --with-extra-includes or --without-extra-includes was given.
12837
 
if test "${with_extra_includes+set}" = set; then
12838
 
  withval="$with_extra_includes"
12839
 
  kde_use_extra_includes="$withval"
12840
 
else
12841
 
  kde_use_extra_includes=NONE
12842
 
 
12843
 
fi;
12844
 
kde_extra_includes=
12845
 
if test -n "$kde_use_extra_includes" && \
12846
 
   test "$kde_use_extra_includes" != "NONE"; then
12847
 
 
12848
 
   ac_save_ifs=$IFS
12849
 
   IFS=':'
12850
 
   for dir in $kde_use_extra_includes; do
12851
 
     kde_extra_includes="$kde_extra_includes $dir"
12852
 
     USER_INCLUDES="$USER_INCLUDES -I$dir"
12853
 
   done
12854
 
   IFS=$ac_save_ifs
12855
 
   kde_use_extra_includes="added"
12856
 
else
12857
 
   kde_use_extra_includes="no"
12858
 
fi
12859
 
 
12860
 
 
12861
 
echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
12862
 
echo "${ECHO_T}$kde_use_extra_includes" >&6
12863
 
 
12864
 
kde_extra_libs=
12865
 
echo "$as_me:$LINENO: checking for extra libs" >&5
12866
 
echo $ECHO_N "checking for extra libs... $ECHO_C" >&6
12867
 
 
12868
 
# Check whether --with-extra-libs or --without-extra-libs was given.
12869
 
if test "${with_extra_libs+set}" = set; then
12870
 
  withval="$with_extra_libs"
12871
 
  kde_use_extra_libs=$withval
12872
 
else
12873
 
  kde_use_extra_libs=NONE
12874
 
 
12875
 
fi;
12876
 
if test -n "$kde_use_extra_libs" && \
12877
 
   test "$kde_use_extra_libs" != "NONE"; then
12878
 
 
12879
 
   ac_save_ifs=$IFS
12880
 
   IFS=':'
12881
 
   for dir in $kde_use_extra_libs; do
12882
 
     kde_extra_libs="$kde_extra_libs $dir"
12883
 
     KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
12884
 
     USER_LDFLAGS="$USER_LDFLAGS -L$dir"
12885
 
   done
12886
 
   IFS=$ac_save_ifs
12887
 
   kde_use_extra_libs="added"
12888
 
else
12889
 
   kde_use_extra_libs="no"
12890
 
fi
12891
 
 
12892
 
 
12893
 
 
12894
 
echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
12895
 
echo "${ECHO_T}$kde_use_extra_libs" >&6
12896
 
 
12897
 
 
12898
 
 
12899
 
 
12900
 
echo "$as_me:$LINENO: checking for libz" >&5
12901
 
echo $ECHO_N "checking for libz... $ECHO_C" >&6
12902
 
if test "${ac_cv_lib_z+set}" = set; then
12903
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12904
 
else
12905
 
 
12906
 
ac_ext=c
12907
 
ac_cpp='$CPP $CPPFLAGS'
12908
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12909
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12910
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12911
 
 
12912
 
kde_save_LIBS="$LIBS"
12913
 
LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
12914
 
kde_save_CFLAGS="$CFLAGS"
12915
 
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
12916
 
cat >conftest.$ac_ext <<_ACEOF
12917
 
/* confdefs.h.  */
12918
 
_ACEOF
12919
 
cat confdefs.h >>conftest.$ac_ext
12920
 
cat >>conftest.$ac_ext <<_ACEOF
12921
 
/* end confdefs.h.  */
12922
 
 
12923
 
#include<zlib.h>
12924
 
 
12925
 
int
12926
 
main ()
12927
 
{
12928
 
return (zlibVersion() == ZLIB_VERSION);
12929
 
  ;
12930
 
  return 0;
12931
 
}
12932
 
_ACEOF
12933
 
rm -f conftest.$ac_objext conftest$ac_exeext
12934
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12935
 
  (eval $ac_link) 2>conftest.er1
12936
 
  ac_status=$?
12937
 
  grep -v '^ *+' conftest.er1 >conftest.err
12938
 
  rm -f conftest.er1
12939
 
  cat conftest.err >&5
12940
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941
 
  (exit $ac_status); } &&
12942
 
         { ac_try='test -z "$ac_c_werror_flag"
12943
 
                         || test ! -s conftest.err'
12944
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945
 
  (eval $ac_try) 2>&5
12946
 
  ac_status=$?
12947
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948
 
  (exit $ac_status); }; } &&
12949
 
         { ac_try='test -s conftest$ac_exeext'
12950
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951
 
  (eval $ac_try) 2>&5
12952
 
  ac_status=$?
12953
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954
 
  (exit $ac_status); }; }; then
12955
 
  eval "ac_cv_lib_z='-lz'"
12956
 
else
12957
 
  echo "$as_me: failed program was:" >&5
12958
 
sed 's/^/| /' conftest.$ac_ext >&5
12959
 
 
12960
 
eval "ac_cv_lib_z=no"
12961
 
fi
12962
 
rm -f conftest.err conftest.$ac_objext \
12963
 
      conftest$ac_exeext conftest.$ac_ext
12964
 
LIBS="$kde_save_LIBS"
12965
 
CFLAGS="$kde_save_CFLAGS"
12966
 
 
12967
 
fi
12968
 
if test ! "$ac_cv_lib_z" = no; then
12969
 
 
12970
 
cat >>confdefs.h <<_ACEOF
12971
 
#define HAVE_LIBZ 1
12972
 
_ACEOF
12973
 
 
12974
 
  LIBZ="$ac_cv_lib_z"
12975
 
 
12976
 
  echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
12977
 
echo "${ECHO_T}$ac_cv_lib_z" >&6
12978
 
else
12979
 
  { { echo "$as_me:$LINENO: error: not found. Check your installation and look into config.log" >&5
12980
 
echo "$as_me: error: not found. Check your installation and look into config.log" >&2;}
12981
 
   { (exit 1); exit 1; }; }
12982
 
  LIBZ=""
12983
 
 
12984
 
fi
12985
 
 
12986
 
 
12987
 
 
12988
 
 
12989
 
echo "$as_me:$LINENO: checking for libpng" >&5
12990
 
echo $ECHO_N "checking for libpng... $ECHO_C" >&6
12991
 
if test "${ac_cv_lib_png+set}" = set; then
12992
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12993
 
else
12994
 
 
12995
 
kde_save_LIBS="$LIBS"
12996
 
if test "x$kde_use_qt_emb" != "xyes"; then
12997
 
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
12998
 
else
12999
 
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
13000
 
fi
13001
 
kde_save_CFLAGS="$CFLAGS"
13002
 
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
13003
 
ac_ext=c
13004
 
ac_cpp='$CPP $CPPFLAGS'
13005
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13006
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13007
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13008
 
 
13009
 
cat >conftest.$ac_ext <<_ACEOF
13010
 
/* confdefs.h.  */
13011
 
_ACEOF
13012
 
cat confdefs.h >>conftest.$ac_ext
13013
 
cat >>conftest.$ac_ext <<_ACEOF
13014
 
/* end confdefs.h.  */
13015
 
 
13016
 
    #include<png.h>
13017
 
 
13018
 
int
13019
 
main ()
13020
 
{
13021
 
 
13022
 
    png_structp png_ptr = png_create_read_struct(  /* image ptr */
13023
 
                PNG_LIBPNG_VER_STRING, 0, 0, 0 );
13024
 
    return( png_ptr != 0 );
13025
 
 
13026
 
  ;
13027
 
  return 0;
13028
 
}
13029
 
_ACEOF
13030
 
rm -f conftest.$ac_objext conftest$ac_exeext
13031
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13032
 
  (eval $ac_link) 2>conftest.er1
13033
 
  ac_status=$?
13034
 
  grep -v '^ *+' conftest.er1 >conftest.err
13035
 
  rm -f conftest.er1
13036
 
  cat conftest.err >&5
13037
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038
 
  (exit $ac_status); } &&
13039
 
         { ac_try='test -z "$ac_c_werror_flag"
13040
 
                         || test ! -s conftest.err'
13041
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042
 
  (eval $ac_try) 2>&5
13043
 
  ac_status=$?
13044
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045
 
  (exit $ac_status); }; } &&
13046
 
         { ac_try='test -s conftest$ac_exeext'
13047
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048
 
  (eval $ac_try) 2>&5
13049
 
  ac_status=$?
13050
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051
 
  (exit $ac_status); }; }; then
13052
 
  eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
13053
 
else
13054
 
  echo "$as_me: failed program was:" >&5
13055
 
sed 's/^/| /' conftest.$ac_ext >&5
13056
 
 
13057
 
eval "ac_cv_lib_png=no"
13058
 
 
13059
 
fi
13060
 
rm -f conftest.err conftest.$ac_objext \
13061
 
      conftest$ac_exeext conftest.$ac_ext
13062
 
LIBS="$kde_save_LIBS"
13063
 
CFLAGS="$kde_save_CFLAGS"
13064
 
 
13065
 
fi
13066
 
if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
13067
 
 
13068
 
cat >>confdefs.h <<_ACEOF
13069
 
#define HAVE_LIBPNG 1
13070
 
_ACEOF
13071
 
 
13072
 
  LIBPNG="$ac_cv_lib_png"
13073
 
 
13074
 
  echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5
13075
 
echo "${ECHO_T}$ac_cv_lib_png" >&6
13076
 
else
13077
 
  echo "$as_me:$LINENO: result: no" >&5
13078
 
echo "${ECHO_T}no" >&6
13079
 
  LIBPNG=""
13080
 
 
13081
 
fi
13082
 
 
13083
 
 
13084
 
 
13085
 
echo "$as_me:$LINENO: checking for libjpeg6b" >&5
13086
 
echo $ECHO_N "checking for libjpeg6b... $ECHO_C" >&6
13087
 
if test "${ac_cv_lib_jpeg_6b+set}" = set; then
13088
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13089
 
else
13090
 
 
13091
 
ac_ext=c
13092
 
ac_cpp='$CPP $CPPFLAGS'
13093
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13094
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13095
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13096
 
 
13097
 
ac_save_LIBS="$LIBS"
13098
 
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
13099
 
ac_save_CFLAGS="$CFLAGS"
13100
 
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
13101
 
cat >conftest.$ac_ext <<_ACEOF
13102
 
/* confdefs.h.  */
13103
 
_ACEOF
13104
 
cat confdefs.h >>conftest.$ac_ext
13105
 
cat >>conftest.$ac_ext <<_ACEOF
13106
 
/* end confdefs.h.  */
13107
 
/* Override any gcc2 internal prototype to avoid an error.  */
13108
 
struct jpeg_decompress_struct;
13109
 
typedef struct jpeg_decompress_struct * j_decompress_ptr;
13110
 
typedef int size_t;
13111
 
#ifdef __cplusplus
13112
 
extern "C" {
13113
 
#endif
13114
 
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
13115
 
                                    int version, size_t structsize);
13116
 
#ifdef __cplusplus
13117
 
}
13118
 
#endif
13119
 
/* We use char because int might match the return type of a gcc2
13120
 
    builtin and then its argument prototype would still apply.  */
13121
 
 
13122
 
int
13123
 
main ()
13124
 
{
13125
 
jpeg_CreateDecompress(0L, 0, 0);
13126
 
  ;
13127
 
  return 0;
13128
 
}
13129
 
_ACEOF
13130
 
rm -f conftest.$ac_objext conftest$ac_exeext
13131
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13132
 
  (eval $ac_link) 2>conftest.er1
13133
 
  ac_status=$?
13134
 
  grep -v '^ *+' conftest.er1 >conftest.err
13135
 
  rm -f conftest.er1
13136
 
  cat conftest.err >&5
13137
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138
 
  (exit $ac_status); } &&
13139
 
         { ac_try='test -z "$ac_c_werror_flag"
13140
 
                         || test ! -s conftest.err'
13141
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142
 
  (eval $ac_try) 2>&5
13143
 
  ac_status=$?
13144
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145
 
  (exit $ac_status); }; } &&
13146
 
         { ac_try='test -s conftest$ac_exeext'
13147
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148
 
  (eval $ac_try) 2>&5
13149
 
  ac_status=$?
13150
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151
 
  (exit $ac_status); }; }; then
13152
 
  eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
13153
 
else
13154
 
  echo "$as_me: failed program was:" >&5
13155
 
sed 's/^/| /' conftest.$ac_ext >&5
13156
 
 
13157
 
eval "ac_cv_lib_jpeg_6b=no"
13158
 
fi
13159
 
rm -f conftest.err conftest.$ac_objext \
13160
 
      conftest$ac_exeext conftest.$ac_ext
13161
 
LIBS="$ac_save_LIBS"
13162
 
CFLAGS="$ac_save_CFLAGS"
13163
 
 
13164
 
fi
13165
 
 
13166
 
 
13167
 
if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
13168
 
  LIBJPEG="$ac_cv_lib_jpeg_6b"
13169
 
  echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5
13170
 
echo "${ECHO_T}$ac_cv_lib_jpeg_6b" >&6
13171
 
else
13172
 
  echo "$as_me:$LINENO: result: no" >&5
13173
 
echo "${ECHO_T}no" >&6
13174
 
 
13175
 
echo "$as_me:$LINENO: checking for libjpeg" >&5
13176
 
echo $ECHO_N "checking for libjpeg... $ECHO_C" >&6
13177
 
if test "${ac_cv_lib_jpeg_normal+set}" = set; then
13178
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13179
 
else
13180
 
 
13181
 
ac_ext=c
13182
 
ac_cpp='$CPP $CPPFLAGS'
13183
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13184
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13185
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13186
 
 
13187
 
ac_save_LIBS="$LIBS"
13188
 
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
13189
 
ac_save_CFLAGS="$CFLAGS"
13190
 
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
13191
 
cat >conftest.$ac_ext <<_ACEOF
13192
 
/* confdefs.h.  */
13193
 
_ACEOF
13194
 
cat confdefs.h >>conftest.$ac_ext
13195
 
cat >>conftest.$ac_ext <<_ACEOF
13196
 
/* end confdefs.h.  */
13197
 
/* Override any gcc2 internal prototype to avoid an error.  */
13198
 
struct jpeg_decompress_struct;
13199
 
typedef struct jpeg_decompress_struct * j_decompress_ptr;
13200
 
typedef int size_t;
13201
 
#ifdef __cplusplus
13202
 
extern "C" {
13203
 
#endif
13204
 
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
13205
 
                                    int version, size_t structsize);
13206
 
#ifdef __cplusplus
13207
 
}
13208
 
#endif
13209
 
/* We use char because int might match the return type of a gcc2
13210
 
    builtin and then its argument prototype would still apply.  */
13211
 
 
13212
 
int
13213
 
main ()
13214
 
{
13215
 
jpeg_CreateDecompress(0L, 0, 0);
13216
 
  ;
13217
 
  return 0;
13218
 
}
13219
 
_ACEOF
13220
 
rm -f conftest.$ac_objext conftest$ac_exeext
13221
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13222
 
  (eval $ac_link) 2>conftest.er1
13223
 
  ac_status=$?
13224
 
  grep -v '^ *+' conftest.er1 >conftest.err
13225
 
  rm -f conftest.er1
13226
 
  cat conftest.err >&5
13227
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228
 
  (exit $ac_status); } &&
13229
 
         { ac_try='test -z "$ac_c_werror_flag"
13230
 
                         || test ! -s conftest.err'
13231
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232
 
  (eval $ac_try) 2>&5
13233
 
  ac_status=$?
13234
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235
 
  (exit $ac_status); }; } &&
13236
 
         { ac_try='test -s conftest$ac_exeext'
13237
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238
 
  (eval $ac_try) 2>&5
13239
 
  ac_status=$?
13240
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241
 
  (exit $ac_status); }; }; then
13242
 
  eval "ac_cv_lib_jpeg_normal=-ljpeg"
13243
 
else
13244
 
  echo "$as_me: failed program was:" >&5
13245
 
sed 's/^/| /' conftest.$ac_ext >&5
13246
 
 
13247
 
eval "ac_cv_lib_jpeg_normal=no"
13248
 
fi
13249
 
rm -f conftest.err conftest.$ac_objext \
13250
 
      conftest$ac_exeext conftest.$ac_ext
13251
 
LIBS="$ac_save_LIBS"
13252
 
CFLAGS="$ac_save_CFLAGS"
13253
 
 
13254
 
fi
13255
 
 
13256
 
 
13257
 
if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
13258
 
  LIBJPEG="$ac_cv_lib_jpeg_normal"
13259
 
  echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5
13260
 
echo "${ECHO_T}$ac_cv_lib_jpeg_normal" >&6
13261
 
else
13262
 
  echo "$as_me:$LINENO: result: no" >&5
13263
 
echo "${ECHO_T}no" >&6
13264
 
 
13265
 
       LIBJPEG=
13266
 
 
13267
 
 
13268
 
fi
13269
 
 
13270
 
 
13271
 
 
13272
 
fi
13273
 
 
13274
 
 
13275
 
 
13276
 
jpeg_incdirs="/usr/include /usr/local/include $kde_extra_includes"
13277
 
 
13278
 
jpeg_incdir=NO
13279
 
for i in $jpeg_incdirs;
13280
 
do
13281
 
  for j in jpeglib.h;
13282
 
  do
13283
 
    echo "configure: 13283: $i/$j" >&5
13284
 
    if test -r "$i/$j"; then
13285
 
      echo "taking that" >&5
13286
 
      jpeg_incdir=$i
13287
 
      break 2
13288
 
    fi
13289
 
  done
13290
 
done
13291
 
 
13292
 
test "x$jpeg_incdir" = xNO && jpeg_incdir=
13293
 
 
13294
 
if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
13295
 
 
13296
 
cat >>confdefs.h <<_ACEOF
13297
 
#define HAVE_LIBJPEG 1
13298
 
_ACEOF
13299
 
 
13300
 
else
13301
 
  if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
13302
 
    { echo "$as_me:$LINENO: WARNING:
13303
 
There is an installation error in jpeg support. You seem to have only one
13304
 
of either the headers _or_ the libraries installed. You may need to either
13305
 
provide correct --with-extra-... options, or the development package of
13306
 
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
13307
 
Disabling JPEG support.
13308
 
" >&5
13309
 
echo "$as_me: WARNING:
13310
 
There is an installation error in jpeg support. You seem to have only one
13311
 
of either the headers _or_ the libraries installed. You may need to either
13312
 
provide correct --with-extra-... options, or the development package of
13313
 
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
13314
 
Disabling JPEG support.
13315
 
" >&2;}
13316
 
  else
13317
 
    { echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5
13318
 
echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
13319
 
  fi
13320
 
  jpeg_incdir=
13321
 
  LIBJPEG=
13322
 
fi
13323
 
 
13324
 
 
13325
 
 
13326
 
 
13327
 
 
13328
 
 
13329
 
 
13330
 
 
13331
 
 
13332
 
# Check whether --enable-mt or --disable-mt was given.
13333
 
if test "${enable_mt+set}" = set; then
13334
 
  enableval="$enable_mt"
13335
 
  kde_use_qt_mt=$enableval
13336
 
else
13337
 
 
13338
 
    if test $kde_qtver = 3; then
13339
 
      kde_use_qt_mt=yes
13340
 
    else
13341
 
      kde_use_qt_mt=no
13342
 
    fi
13343
 
 
13344
 
 
13345
 
fi;
13346
 
 
13347
 
USING_QT_MT=""
13348
 
 
13349
 
 
13350
 
KDE_MT_LDFLAGS=
13351
 
KDE_MT_LIBS=
13352
 
if test "x$kde_use_qt_mt" = "xyes"; then
13353
 
 
13354
 
 
13355
 
 
13356
 
    if test -z "$LIBPTHREAD"; then
13357
 
    if test -z "$USE_THREADS"; then
13358
 
      kde_check_threading_default=no
13359
 
    else
13360
 
      kde_check_threading_default=yes
13361
 
    fi
13362
 
  else
13363
 
    kde_check_threading_default=yes
13364
 
  fi
13365
 
  # Check whether --enable-threading or --disable-threading was given.
13366
 
if test "${enable_threading+set}" = set; then
13367
 
  enableval="$enable_threading"
13368
 
  kde_use_threading=$enableval
13369
 
else
13370
 
  kde_use_threading=$kde_check_threading_default
13371
 
fi;
13372
 
  if test "x$kde_use_threading" = "xyes"; then
13373
 
 
13374
 
cat >>confdefs.h <<\_ACEOF
13375
 
#define HAVE_LIBPTHREAD 1
13376
 
_ACEOF
13377
 
 
13378
 
  fi
13379
 
 
13380
 
  if test "x$kde_use_threading" = "xyes"; then
13381
 
    CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
13382
 
    KDE_MT_LDFLAGS="$USE_THREADS"
13383
 
    KDE_MT_LIBS="$LIBPTHREAD"
13384
 
  else
13385
 
    kde_use_qt_mt=no
13386
 
  fi
13387
 
fi
13388
 
 
13389
 
 
13390
 
 
13391
 
kde_qt_was_given=yes
13392
 
 
13393
 
if test -z "$LIBQT_GLOB"; then
13394
 
  if test "x$kde_use_qt_emb" = "xyes"; then
13395
 
    LIBQT_GLOB="libqte.*"
13396
 
  else
13397
 
    LIBQT_GLOB="libqt.*"
13398
 
  fi
13399
 
fi
13400
 
 
13401
 
if test -z "$LIBQT"; then
13402
 
  if test "x$kde_use_qt_emb" = "xyes"; then
13403
 
    qtlib="qte"
13404
 
  else
13405
 
    qtlib="qt"
13406
 
  fi
13407
 
 
13408
 
  kde_int_qt="-l$qtlib"
13409
 
else
13410
 
  kde_int_qt="$LIBQT"
13411
 
  kde_lib_qt_set=yes
13412
 
fi
13413
 
 
13414
 
if test -z "$LIBQPE"; then
13415
 
  if test "x$kde_use_qt_emb" = "xyes"; then
13416
 
    if test "x$kde_use_qt_emb_palm" = "xyes"; then
13417
 
      LIB_QPE="-lqpe"
13418
 
    else
13419
 
      LIB_QPE=""
13420
 
    fi
13421
 
  else
13422
 
    LIB_QPE=""
13423
 
  fi
13424
 
fi
13425
 
 
13426
 
 
13427
 
if test "x$kde_use_qt_mt" = "xyes"; then
13428
 
  if test -z "$LIBQT"; then
13429
 
    LIBQT="-l$qtlib-mt"
13430
 
    kde_int_qt="-l$qtlib-mt"
13431
 
  else
13432
 
    LIBQT="$qtlib-mt"
13433
 
    kde_int_qt="$qtlib-mt"
13434
 
  fi
13435
 
  LIBQT_GLOB="lib$qtlib-mt.*"
13436
 
  USING_QT_MT="using -mt"
13437
 
else
13438
 
  LIBQT="-l$qtlib"
13439
 
fi
13440
 
 
13441
 
if test $kde_qtver != 1; then
13442
 
 
13443
 
 
13444
 
 
13445
 
  LIBQT="$LIBQT $LIBPNG $LIBJPEG"
13446
 
fi
13447
 
 
13448
 
if test $kde_qtver = 3; then
13449
 
 
13450
 
  LIBQT="$LIBQT $LIBDL"
13451
 
fi
13452
 
 
13453
 
echo "$as_me:$LINENO: checking for Qt" >&5
13454
 
echo $ECHO_N "checking for Qt... $ECHO_C" >&6
13455
 
 
13456
 
if test "x$kde_use_qt_emb" != "xyes"; then
13457
 
LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
13458
 
fi
13459
 
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
13460
 
qt_libraries=""
13461
 
qt_includes=""
13462
 
 
13463
 
# Check whether --with-qt-dir or --without-qt-dir was given.
13464
 
if test "${with_qt_dir+set}" = set; then
13465
 
  withval="$with_qt_dir"
13466
 
    ac_qt_includes="$withval"/include
13467
 
       ac_qt_libraries="$withval"/lib
13468
 
       ac_qt_bindir="$withval"/bin
13469
 
 
13470
 
fi;
13471
 
 
13472
 
 
13473
 
# Check whether --with-qt-includes or --without-qt-includes was given.
13474
 
if test "${with_qt_includes+set}" = set; then
13475
 
  withval="$with_qt_includes"
13476
 
 
13477
 
       ac_qt_includes="$withval"
13478
 
 
13479
 
fi;
13480
 
 
13481
 
kde_qt_libs_given=no
13482
 
 
13483
 
 
13484
 
# Check whether --with-qt-libraries or --without-qt-libraries was given.
13485
 
if test "${with_qt_libraries+set}" = set; then
13486
 
  withval="$with_qt_libraries"
13487
 
    ac_qt_libraries="$withval"
13488
 
       kde_qt_libs_given=yes
13489
 
 
13490
 
fi;
13491
 
 
13492
 
if test "${ac_cv_have_qt+set}" = set; then
13493
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13494
 
else
13495
 
  #try to guess Qt locations
13496
 
 
13497
 
qt_incdirs=""
13498
 
for dir in $kde_qt_dirs; do
13499
 
   qt_incdirs="$qt_incdirs $dir/include $dir"
13500
 
done
13501
 
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"
13502
 
if test ! "$ac_qt_includes" = "NO"; then
13503
 
   qt_incdirs="$ac_qt_includes $qt_incdirs"
13504
 
fi
13505
 
 
13506
 
if test "$kde_qtver" != "1"; then
13507
 
  kde_qt_header=qstyle.h
13508
 
else
13509
 
  kde_qt_header=qglobal.h
13510
 
fi
13511
 
 
13512
 
 
13513
 
qt_incdir=NO
13514
 
for i in $qt_incdirs;
13515
 
do
13516
 
  for j in $kde_qt_header;
13517
 
  do
13518
 
    echo "configure: 13518: $i/$j" >&5
13519
 
    if test -r "$i/$j"; then
13520
 
      echo "taking that" >&5
13521
 
      qt_incdir=$i
13522
 
      break 2
13523
 
    fi
13524
 
  done
13525
 
done
13526
 
 
13527
 
ac_qt_includes="$qt_incdir"
13528
 
 
13529
 
qt_libdirs=""
13530
 
for dir in $kde_qt_dirs; do
13531
 
   qt_libdirs="$qt_libdirs $dir/lib $dir"
13532
 
done
13533
 
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
13534
 
if test ! "$ac_qt_libraries" = "NO"; then
13535
 
  qt_libdir=$ac_qt_libraries
13536
 
else
13537
 
  qt_libdirs="$ac_qt_libraries $qt_libdirs"
13538
 
  # if the Qt was given, the chance is too big that libqt.* doesn't exist
13539
 
  qt_libdir=NONE
13540
 
  for dir in $qt_libdirs; do
13541
 
    try="ls -1 $dir/${LIBQT_GLOB}"
13542
 
    if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
13543
 
  done
13544
 
fi
13545
 
 
13546
 
ac_qt_libraries="$qt_libdir"
13547
 
 
13548
 
 
13549
 
 
13550
 
 ac_ext=cc
13551
 
ac_cpp='$CXXCPP $CPPFLAGS'
13552
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13553
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13554
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13555
 
 
13556
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13557
 
 
13558
 
 
13559
 
 
13560
 
ac_cxxflags_safe="$CXXFLAGS"
13561
 
ac_ldflags_safe="$LDFLAGS"
13562
 
ac_libs_safe="$LIBS"
13563
 
 
13564
 
CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
13565
 
LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
13566
 
LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
13567
 
 
13568
 
 
13569
 
 
13570
 
cat > conftest.$ac_ext <<EOF
13571
 
#include "confdefs.h"
13572
 
#include <qglobal.h>
13573
 
#include <qapplication.h>
13574
 
EOF
13575
 
if test "$kde_qtver" = "2"; then
13576
 
cat >> conftest.$ac_ext <<EOF
13577
 
#include <qevent.h>
13578
 
#include <qstring.h>
13579
 
#include <qstyle.h>
13580
 
EOF
13581
 
 
13582
 
if test $kde_qtsubver -gt 0; then
13583
 
cat >> conftest.$ac_ext <<EOF
13584
 
#include <qiconview.h>
13585
 
EOF
13586
 
fi
13587
 
fi
13588
 
 
13589
 
if test "$kde_qtver" = "3"; then
13590
 
cat >> conftest.$ac_ext <<EOF
13591
 
#include <qcursor.h>
13592
 
#include <qstylefactory.h>
13593
 
#include <private/qucomextra_p.h>
13594
 
EOF
13595
 
fi
13596
 
 
13597
 
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
13598
 
cat >> conftest.$ac_ext <<EOF
13599
 
#error 1
13600
 
#endif
13601
 
 
13602
 
int main() {
13603
 
EOF
13604
 
if test "$kde_qtver" = "2"; then
13605
 
cat >> conftest.$ac_ext <<EOF
13606
 
    QStringList *t = new QStringList();
13607
 
    Q_UNUSED(t);
13608
 
EOF
13609
 
if test $kde_qtsubver -gt 0; then
13610
 
cat >> conftest.$ac_ext <<EOF
13611
 
    QIconView iv(0);
13612
 
    iv.setWordWrapIconText(false);
13613
 
    QString s;
13614
 
    s.setLatin1("Elvis is alive", 14);
13615
 
EOF
13616
 
fi
13617
 
fi
13618
 
if test "$kde_qtver" = "3"; then
13619
 
cat >> conftest.$ac_ext <<EOF
13620
 
    (void)QStyleFactory::create(QString::null);
13621
 
    QCursor c(Qt::WhatsThisCursor);
13622
 
EOF
13623
 
fi
13624
 
cat >> conftest.$ac_ext <<EOF
13625
 
    return 0;
13626
 
}
13627
 
EOF
13628
 
 
13629
 
 
13630
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13631
 
  (eval $ac_link) 2>&5
13632
 
  ac_status=$?
13633
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634
 
  (exit $ac_status); } && test -s conftest; then
13635
 
  rm -f conftest*
13636
 
else
13637
 
  echo "configure: failed program was:" >&5
13638
 
  cat conftest.$ac_ext >&5
13639
 
  ac_qt_libraries="NO"
13640
 
fi
13641
 
rm -f conftest*
13642
 
CXXFLAGS="$ac_cxxflags_safe"
13643
 
LDFLAGS="$ac_ldflags_safe"
13644
 
LIBS="$ac_libs_safe"
13645
 
 
13646
 
ac_ext=c
13647
 
ac_cpp='$CPP $CPPFLAGS'
13648
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13649
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13650
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13651
 
 
13652
 
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
13653
 
  ac_cv_have_qt="have_qt=no"
13654
 
  ac_qt_notfound=""
13655
 
  missing_qt_mt=""
13656
 
  if test "$ac_qt_includes" = NO; then
13657
 
    if test "$ac_qt_libraries" = NO; then
13658
 
      ac_qt_notfound="(headers and libraries)";
13659
 
    else
13660
 
      ac_qt_notfound="(headers)";
13661
 
    fi
13662
 
  else
13663
 
    if test "x$kde_use_qt_mt" = "xyes"; then
13664
 
       missing_qt_mt="
13665
 
Make sure that you have compiled Qt with thread support!"
13666
 
       ac_qt_notfound="(library $qtlib-mt)";
13667
 
    else
13668
 
       ac_qt_notfound="(library $qtlib)";
13669
 
    fi
13670
 
  fi
13671
 
 
13672
 
  { { echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
13673
 
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
13674
 
echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
13675
 
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
13676
 
   { (exit 1); exit 1; }; }
13677
 
else
13678
 
  have_qt="yes"
13679
 
fi
13680
 
 
13681
 
fi
13682
 
 
13683
 
 
13684
 
eval "$ac_cv_have_qt"
13685
 
 
13686
 
if test "$have_qt" != yes; then
13687
 
  echo "$as_me:$LINENO: result: $have_qt" >&5
13688
 
echo "${ECHO_T}$have_qt" >&6;
13689
 
else
13690
 
  ac_cv_have_qt="have_qt=yes \
13691
 
    ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
13692
 
  echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
13693
 
echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6
13694
 
 
13695
 
  qt_libraries="$ac_qt_libraries"
13696
 
  qt_includes="$ac_qt_includes"
13697
 
fi
13698
 
 
13699
 
if test ! "$kde_qt_libs_given" = "yes"; then
13700
 
 
13701
 
 
13702
 
echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
13703
 
echo $ECHO_N "checking if Qt compiles without flags... $ECHO_C" >&6
13704
 
if test "${kde_cv_qt_direct+set}" = set; then
13705
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13706
 
else
13707
 
 
13708
 
 
13709
 
 
13710
 
 ac_ext=cc
13711
 
ac_cpp='$CXXCPP $CPPFLAGS'
13712
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13713
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13714
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13715
 
 
13716
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13717
 
 
13718
 
 
13719
 
ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
13720
 
ac_LIBRARY_PATH="$LIBRARY_PATH"
13721
 
ac_cxxflags_safe="$CXXFLAGS"
13722
 
ac_ldflags_safe="$LDFLAGS"
13723
 
ac_libs_safe="$LIBS"
13724
 
 
13725
 
CXXFLAGS="$CXXFLAGS -I$qt_includes"
13726
 
LDFLAGS="$LDFLAGS $X_LDFLAGS"
13727
 
if test "x$kde_use_qt_emb" != "xyes"; then
13728
 
LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
13729
 
else
13730
 
LIBS="$LIBQT $LIBSOCKET"
13731
 
fi
13732
 
LD_LIBRARY_PATH=
13733
 
export LD_LIBRARY_PATH
13734
 
LIBRARY_PATH=
13735
 
export LIBRARY_PATH
13736
 
 
13737
 
 
13738
 
 
13739
 
cat > conftest.$ac_ext <<EOF
13740
 
#include "confdefs.h"
13741
 
#include <qglobal.h>
13742
 
#include <qapplication.h>
13743
 
EOF
13744
 
if test "$kde_qtver" = "2"; then
13745
 
cat >> conftest.$ac_ext <<EOF
13746
 
#include <qevent.h>
13747
 
#include <qstring.h>
13748
 
#include <qstyle.h>
13749
 
EOF
13750
 
 
13751
 
if test $kde_qtsubver -gt 0; then
13752
 
cat >> conftest.$ac_ext <<EOF
13753
 
#include <qiconview.h>
13754
 
EOF
13755
 
fi
13756
 
fi
13757
 
 
13758
 
if test "$kde_qtver" = "3"; then
13759
 
cat >> conftest.$ac_ext <<EOF
13760
 
#include <qcursor.h>
13761
 
#include <qstylefactory.h>
13762
 
#include <private/qucomextra_p.h>
13763
 
EOF
13764
 
fi
13765
 
 
13766
 
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
13767
 
cat >> conftest.$ac_ext <<EOF
13768
 
#error 1
13769
 
#endif
13770
 
 
13771
 
int main() {
13772
 
EOF
13773
 
if test "$kde_qtver" = "2"; then
13774
 
cat >> conftest.$ac_ext <<EOF
13775
 
    QStringList *t = new QStringList();
13776
 
    Q_UNUSED(t);
13777
 
EOF
13778
 
if test $kde_qtsubver -gt 0; then
13779
 
cat >> conftest.$ac_ext <<EOF
13780
 
    QIconView iv(0);
13781
 
    iv.setWordWrapIconText(false);
13782
 
    QString s;
13783
 
    s.setLatin1("Elvis is alive", 14);
13784
 
EOF
13785
 
fi
13786
 
fi
13787
 
if test "$kde_qtver" = "3"; then
13788
 
cat >> conftest.$ac_ext <<EOF
13789
 
    (void)QStyleFactory::create(QString::null);
13790
 
    QCursor c(Qt::WhatsThisCursor);
13791
 
EOF
13792
 
fi
13793
 
cat >> conftest.$ac_ext <<EOF
13794
 
    return 0;
13795
 
}
13796
 
EOF
13797
 
 
13798
 
 
13799
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13800
 
  (eval $ac_link) 2>&5
13801
 
  ac_status=$?
13802
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803
 
  (exit $ac_status); } && test -s conftest; then
13804
 
  kde_cv_qt_direct="yes"
13805
 
else
13806
 
  kde_cv_qt_direct="no"
13807
 
  echo "configure: failed program was:" >&5
13808
 
  cat conftest.$ac_ext >&5
13809
 
fi
13810
 
 
13811
 
rm -f conftest*
13812
 
CXXFLAGS="$ac_cxxflags_safe"
13813
 
LDFLAGS="$ac_ldflags_safe"
13814
 
LIBS="$ac_libs_safe"
13815
 
 
13816
 
LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
13817
 
export LD_LIBRARY_PATH
13818
 
LIBRARY_PATH="$ac_LIBRARY_PATH"
13819
 
export LIBRARY_PATH
13820
 
ac_ext=c
13821
 
ac_cpp='$CPP $CPPFLAGS'
13822
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13823
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13824
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13825
 
 
13826
 
 
13827
 
fi
13828
 
 
13829
 
 
13830
 
if test "$kde_cv_qt_direct" = "yes"; then
13831
 
  echo "$as_me:$LINENO: result: yes" >&5
13832
 
echo "${ECHO_T}yes" >&6
13833
 
  qt_libraries=
13834
 
else
13835
 
  echo "$as_me:$LINENO: result: no" >&5
13836
 
echo "${ECHO_T}no" >&6
13837
 
 
13838
 
fi
13839
 
 
13840
 
fi
13841
 
 
13842
 
 
13843
 
 
13844
 
 
13845
 
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
13846
 
 QT_INCLUDES=""
13847
 
else
13848
 
 QT_INCLUDES="-I$qt_includes"
13849
 
 all_includes="$QT_INCLUDES $all_includes"
13850
 
fi
13851
 
 
13852
 
if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
13853
 
 QT_LDFLAGS=""
13854
 
else
13855
 
 QT_LDFLAGS="-L$qt_libraries"
13856
 
 all_libraries="$all_libraries $QT_LDFLAGS"
13857
 
fi
13858
 
test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
13859
 
 
13860
 
 
13861
 
 
13862
 
 
13863
 
   qt_bindirs=""
13864
 
   for dir in $kde_qt_dirs; do
13865
 
      qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
13866
 
   done
13867
 
   qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
13868
 
   if test ! "$ac_qt_bindir" = "NO"; then
13869
 
      qt_bindirs="$ac_qt_bindir $qt_bindirs"
13870
 
   fi
13871
 
 
13872
 
 
13873
 
   echo "$as_me:$LINENO: checking for moc" >&5
13874
 
echo $ECHO_N "checking for moc... $ECHO_C" >&6
13875
 
   if test -n "$MOC"; then
13876
 
        kde_cv_path="$MOC";
13877
 
   else
13878
 
        kde_cache=`echo moc | sed 'y%./+-%__p_%'`
13879
 
 
13880
 
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
13881
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13882
 
else
13883
 
 
13884
 
        kde_cv_path="NONE"
13885
 
        dirs="$qt_bindirs"
13886
 
        kde_save_IFS=$IFS
13887
 
        IFS=':'
13888
 
        for dir in $PATH; do
13889
 
          dirs="$dirs $dir"
13890
 
        done
13891
 
        IFS=$kde_save_IFS
13892
 
 
13893
 
        for dir in $dirs; do
13894
 
          if test -x "$dir/moc"; then
13895
 
            if test -n ""
13896
 
            then
13897
 
              evalstr="$dir/moc  2>&1 "
13898
 
              if eval $evalstr; then
13899
 
                kde_cv_path="$dir/moc"
13900
 
                break
13901
 
              fi
13902
 
            else
13903
 
                kde_cv_path="$dir/moc"
13904
 
                break
13905
 
            fi
13906
 
          fi
13907
 
        done
13908
 
 
13909
 
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
13910
 
 
13911
 
 
13912
 
fi
13913
 
 
13914
 
 
13915
 
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
13916
 
 
13917
 
   fi
13918
 
 
13919
 
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
13920
 
      echo "$as_me:$LINENO: result: not found" >&5
13921
 
echo "${ECHO_T}not found" >&6
13922
 
 
13923
 
    { { echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
13924
 
Please check whether you installed Qt correctly.
13925
 
You need to have a running moc binary.
13926
 
configure tried to run $ac_cv_path_moc and the test didn't
13927
 
succeed. If configure shouldn't have tried this one, set
13928
 
the environment variable MOC to the right one before running
13929
 
configure.
13930
 
" >&5
13931
 
echo "$as_me: error: No Qt meta object compiler (moc) found!
13932
 
Please check whether you installed Qt correctly.
13933
 
You need to have a running moc binary.
13934
 
configure tried to run $ac_cv_path_moc and the test didn't
13935
 
succeed. If configure shouldn't have tried this one, set
13936
 
the environment variable MOC to the right one before running
13937
 
configure.
13938
 
" >&2;}
13939
 
   { (exit 1); exit 1; }; }
13940
 
 
13941
 
   else
13942
 
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
13943
 
echo "${ECHO_T}$kde_cv_path" >&6
13944
 
      MOC=$kde_cv_path
13945
 
 
13946
 
   fi
13947
 
 
13948
 
   if test -z "$UIC_NOT_NEEDED"; then
13949
 
 
13950
 
   echo "$as_me:$LINENO: checking for uic" >&5
13951
 
echo $ECHO_N "checking for uic... $ECHO_C" >&6
13952
 
   if test -n "$UIC"; then
13953
 
        kde_cv_path="$UIC";
13954
 
   else
13955
 
        kde_cache=`echo uic | sed 'y%./+-%__p_%'`
13956
 
 
13957
 
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
13958
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13959
 
else
13960
 
 
13961
 
        kde_cv_path="NONE"
13962
 
        dirs="$qt_bindirs"
13963
 
        kde_save_IFS=$IFS
13964
 
        IFS=':'
13965
 
        for dir in $PATH; do
13966
 
          dirs="$dirs $dir"
13967
 
        done
13968
 
        IFS=$kde_save_IFS
13969
 
 
13970
 
        for dir in $dirs; do
13971
 
          if test -x "$dir/uic"; then
13972
 
            if test -n ""
13973
 
            then
13974
 
              evalstr="$dir/uic  2>&1 "
13975
 
              if eval $evalstr; then
13976
 
                kde_cv_path="$dir/uic"
13977
 
                break
13978
 
              fi
13979
 
            else
13980
 
                kde_cv_path="$dir/uic"
13981
 
                break
13982
 
            fi
13983
 
          fi
13984
 
        done
13985
 
 
13986
 
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
13987
 
 
13988
 
 
13989
 
fi
13990
 
 
13991
 
 
13992
 
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
13993
 
 
13994
 
   fi
13995
 
 
13996
 
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
13997
 
      echo "$as_me:$LINENO: result: not found" >&5
13998
 
echo "${ECHO_T}not found" >&6
13999
 
      UIC=""
14000
 
   else
14001
 
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
14002
 
echo "${ECHO_T}$kde_cv_path" >&6
14003
 
      UIC=$kde_cv_path
14004
 
 
14005
 
   fi
14006
 
 
14007
 
     if test -z "$UIC" ; then
14008
 
 
14009
 
    { echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found!
14010
 
Please check whether you installed Qt correctly.
14011
 
You need to have a running uic binary.
14012
 
configure tried to run $ac_cv_path_uic and the test didn't
14013
 
succeed. If configure shouldn't have tried this one, set
14014
 
the environment variable UIC to the right one before running
14015
 
configure.
14016
 
" >&5
14017
 
echo "$as_me: WARNING: No Qt ui compiler (uic) found!
14018
 
Please check whether you installed Qt correctly.
14019
 
You need to have a running uic binary.
14020
 
configure tried to run $ac_cv_path_uic and the test didn't
14021
 
succeed. If configure shouldn't have tried this one, set
14022
 
the environment variable UIC to the right one before running
14023
 
configure.
14024
 
" >&2;}
14025
 
 
14026
 
       exit 1
14027
 
     elif test $kde_qtver = 3; then
14028
 
 
14029
 
    echo "$as_me:$LINENO: checking whether uic supports -L " >&5
14030
 
echo $ECHO_N "checking whether uic supports -L ... $ECHO_C" >&6
14031
 
    kde_cache=`echo L | sed 'y% .=/+-%____p_%'`
14032
 
    if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
14033
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14034
 
else
14035
 
 
14036
 
        cat >conftest.ui <<EOT
14037
 
        <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
14038
 
EOT
14039
 
        ac_uic_testrun="$UIC -L /nonexistant conftest.ui >/dev/null"
14040
 
        if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
14041
 
  (eval $ac_uic_testrun) 2>&5
14042
 
  ac_status=$?
14043
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044
 
  (exit $ac_status); }; then
14045
 
            eval "kde_cv_prog_uic_$kde_cache=yes"
14046
 
        else
14047
 
            eval "kde_cv_prog_uic_$kde_cache=no"
14048
 
        fi
14049
 
        rm -f conftest*
14050
 
 
14051
 
fi
14052
 
 
14053
 
 
14054
 
    if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
14055
 
        echo "$as_me:$LINENO: result: yes" >&5
14056
 
echo "${ECHO_T}yes" >&6
14057
 
        :
14058
 
        ac_uic_supports_libpath=yes
14059
 
    else
14060
 
        echo "$as_me:$LINENO: result: no" >&5
14061
 
echo "${ECHO_T}no" >&6
14062
 
        :
14063
 
        ac_uic_supports_libpath=no
14064
 
    fi
14065
 
 
14066
 
 
14067
 
    echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5
14068
 
echo $ECHO_N "checking whether uic supports -nounload ... $ECHO_C" >&6
14069
 
    kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'`
14070
 
    if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
14071
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14072
 
else
14073
 
 
14074
 
        cat >conftest.ui <<EOT
14075
 
        <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
14076
 
EOT
14077
 
        ac_uic_testrun="$UIC -nounload  conftest.ui >/dev/null"
14078
 
        if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
14079
 
  (eval $ac_uic_testrun) 2>&5
14080
 
  ac_status=$?
14081
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082
 
  (exit $ac_status); }; then
14083
 
            eval "kde_cv_prog_uic_$kde_cache=yes"
14084
 
        else
14085
 
            eval "kde_cv_prog_uic_$kde_cache=no"
14086
 
        fi
14087
 
        rm -f conftest*
14088
 
 
14089
 
fi
14090
 
 
14091
 
 
14092
 
    if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
14093
 
        echo "$as_me:$LINENO: result: yes" >&5
14094
 
echo "${ECHO_T}yes" >&6
14095
 
        :
14096
 
        ac_uic_supports_nounload=yes
14097
 
    else
14098
 
        echo "$as_me:$LINENO: result: no" >&5
14099
 
echo "${ECHO_T}no" >&6
14100
 
        :
14101
 
        ac_uic_supports_nounload=no
14102
 
    fi
14103
 
 
14104
 
 
14105
 
       if test x$ac_uic_supports_libpath = xyes; then
14106
 
           UIC="$UIC -L \$(kde_widgetdir)"
14107
 
       fi
14108
 
       if test x$ac_uic_supports_nounload = xyes; then
14109
 
           UIC="$UIC -nounload"
14110
 
       fi
14111
 
     fi
14112
 
   else
14113
 
     UIC="echo uic not available: "
14114
 
   fi
14115
 
 
14116
 
 
14117
 
 
14118
 
 
14119
 
   UIC_TR="i18n"
14120
 
   if test $kde_qtver = 3; then
14121
 
     UIC_TR="tr2i18n"
14122
 
   fi
14123
 
 
14124
 
 
14125
 
 
14126
 
 
14127
 
 
14128
 
echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
14129
 
echo $ECHO_N "checking if Qt needs $LIBJPEG... $ECHO_C" >&6
14130
 
if test "${kde_cv_qt_jpeg+set}" = set; then
14131
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14132
 
else
14133
 
 
14134
 
 
14135
 
 
14136
 
 ac_ext=cc
14137
 
ac_cpp='$CXXCPP $CPPFLAGS'
14138
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14139
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14140
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14141
 
 
14142
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14143
 
 
14144
 
 
14145
 
ac_save_LIBS="$LIBS"
14146
 
LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
14147
 
LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
14148
 
ac_save_CXXFLAGS="$CXXFLAGS"
14149
 
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
14150
 
cat >conftest.$ac_ext <<_ACEOF
14151
 
/* confdefs.h.  */
14152
 
_ACEOF
14153
 
cat confdefs.h >>conftest.$ac_ext
14154
 
cat >>conftest.$ac_ext <<_ACEOF
14155
 
/* end confdefs.h.  */
14156
 
#include <qapplication.h>
14157
 
int
14158
 
main ()
14159
 
{
14160
 
 
14161
 
            int argc;
14162
 
            char** argv;
14163
 
            QApplication app(argc, argv);
14164
 
  ;
14165
 
  return 0;
14166
 
}
14167
 
_ACEOF
14168
 
rm -f conftest.$ac_objext conftest$ac_exeext
14169
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14170
 
  (eval $ac_link) 2>conftest.er1
14171
 
  ac_status=$?
14172
 
  grep -v '^ *+' conftest.er1 >conftest.err
14173
 
  rm -f conftest.er1
14174
 
  cat conftest.err >&5
14175
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176
 
  (exit $ac_status); } &&
14177
 
         { ac_try='test -z "$ac_cxx_werror_flag"
14178
 
                         || test ! -s conftest.err'
14179
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180
 
  (eval $ac_try) 2>&5
14181
 
  ac_status=$?
14182
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183
 
  (exit $ac_status); }; } &&
14184
 
         { ac_try='test -s conftest$ac_exeext'
14185
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186
 
  (eval $ac_try) 2>&5
14187
 
  ac_status=$?
14188
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189
 
  (exit $ac_status); }; }; then
14190
 
  eval "kde_cv_qt_jpeg=no"
14191
 
else
14192
 
  echo "$as_me: failed program was:" >&5
14193
 
sed 's/^/| /' conftest.$ac_ext >&5
14194
 
 
14195
 
eval "kde_cv_qt_jpeg=yes"
14196
 
fi
14197
 
rm -f conftest.err conftest.$ac_objext \
14198
 
      conftest$ac_exeext conftest.$ac_ext
14199
 
LIBS="$ac_save_LIBS"
14200
 
CXXFLAGS="$ac_save_CXXFLAGS"
14201
 
ac_ext=c
14202
 
ac_cpp='$CPP $CPPFLAGS'
14203
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14204
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14205
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14206
 
 
14207
 
 
14208
 
fi
14209
 
 
14210
 
 
14211
 
if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then
14212
 
  echo "$as_me:$LINENO: result: yes" >&5
14213
 
echo "${ECHO_T}yes" >&6
14214
 
  LIBJPEG_QT='$(LIBJPEG)'
14215
 
else
14216
 
  echo "$as_me:$LINENO: result: no" >&5
14217
 
echo "${ECHO_T}no" >&6
14218
 
  LIBJPEG_QT=
14219
 
fi
14220
 
 
14221
 
 
14222
 
 
14223
 
if test "x$kde_use_qt_emb" != "xyes"; then
14224
 
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
14225
 
else
14226
 
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBPNG)'
14227
 
fi
14228
 
test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
14229
 
 
14230
 
 
14231
 
 
14232
 
 
14233
 
 
14234
 
 
14235
 
 
14236
 
 
14237
 
 
14238
 
 
14239
 
 
14240
 
 
14241
 
 
14242
 
 
14243
 
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
14244
 
 
14245
 
if test ! -s $srcdir/subdirs; then
14246
 
    TOPSUBDIRS=""
14247
 
  files=`cd $srcdir && ls -1`
14248
 
  dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
14249
 
  for i in $dirs; do
14250
 
    echo $i >> $srcdir/subdirs
14251
 
  done
14252
 
fi
14253
 
 
14254
 
if test -s $srcdir/inst-apps; then
14255
 
  ac_topsubdirs="`cat $srcdir/inst-apps`"
14256
 
else
14257
 
  ac_topsubdirs="`cat $srcdir/subdirs`"
14258
 
fi
14259
 
 
14260
 
for i in $ac_topsubdirs; do
14261
 
  echo "$as_me:$LINENO: checking if $i should be compiled" >&5
14262
 
echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6
14263
 
  if test -d $srcdir/$i; then
14264
 
    install_it="yes"
14265
 
    for j in $DO_NOT_COMPILE; do
14266
 
      if test $i = $j; then
14267
 
        install_it="no"
14268
 
      fi
14269
 
    done
14270
 
  else
14271
 
    install_it="no"
14272
 
  fi
14273
 
  echo "$as_me:$LINENO: result: $install_it" >&5
14274
 
echo "${ECHO_T}$install_it" >&6
14275
 
  if test $install_it = "yes"; then
14276
 
    TOPSUBDIRS="$TOPSUBDIRS $i"
14277
 
  fi
14278
 
done
14279
 
 
14280
 
 
14281
 
 
14282
 
 
14283
 
          ac_config_files="$ac_config_files Makefile"
14284
 
 
14285
 
 
14286
 
          ac_config_files="$ac_config_files src/Makefile"
14287
 
 
14288
 
          ac_config_files="$ac_config_files src/pics/Makefile"
14289
 
 
14290
 
          ac_config_files="$ac_config_files src/sounds/Makefile"
14291
 
 
14292
 
          ac_config_files="$ac_config_files src/translations/Makefile"
14293
 
 
14294
 
          ac_config_files="$ac_config_files templates/Makefile"
14295
 
 
14296
 
 
14297
 
cat >confcache <<\_ACEOF
14298
 
# This file is a shell script that caches the results of configure
14299
 
# tests run on this system so they can be shared between configure
14300
 
# scripts and configure runs, see configure's option --config-cache.
14301
 
# It is not useful on other systems.  If it contains results you don't
14302
 
# want to keep, you may remove or edit it.
14303
 
#
14304
 
# config.status only pays attention to the cache file if you give it
14305
 
# the --recheck option to rerun configure.
14306
 
#
14307
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
14308
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14309
 
# following values.
14310
 
 
14311
 
_ACEOF
14312
 
 
14313
 
# The following way of writing the cache mishandles newlines in values,
14314
 
# but we know of no workaround that is simple, portable, and efficient.
14315
 
# So, don't put newlines in cache variables' values.
14316
 
# Ultrix sh set writes to stderr and can't be redirected directly,
14317
 
# and sets the high bit in the cache file unless we assign to the vars.
14318
 
{
14319
 
  (set) 2>&1 |
14320
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
14321
 
    *ac_space=\ *)
14322
 
      # `set' does not quote correctly, so add quotes (double-quote
14323
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
14324
 
      sed -n \
14325
 
        "s/'/'\\\\''/g;
14326
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14327
 
      ;;
14328
 
    *)
14329
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
14330
 
      sed -n \
14331
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14332
 
      ;;
14333
 
    esac;
14334
 
} |
14335
 
  sed '
14336
 
     t clear
14337
 
     : clear
14338
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14339
 
     t end
14340
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14341
 
     : end' >>confcache
14342
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
14343
 
  if test -w $cache_file; then
14344
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14345
 
    cat confcache >$cache_file
14346
 
  else
14347
 
    echo "not updating unwritable cache $cache_file"
14348
 
  fi
14349
 
fi
14350
 
rm -f confcache
14351
 
 
14352
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14353
 
# Let make expand exec_prefix.
14354
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14355
 
 
14356
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
14357
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14358
 
# trailing colons and then remove the whole line if VPATH becomes empty
14359
 
# (actually we leave an empty line to preserve line numbers).
14360
 
if test "x$srcdir" = x.; then
14361
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14362
 
s/:*\$(srcdir):*/:/;
14363
 
s/:*\${srcdir}:*/:/;
14364
 
s/:*@srcdir@:*/:/;
14365
 
s/^\([^=]*=[     ]*\):*/\1/;
14366
 
s/:*$//;
14367
 
s/^[^=]*=[       ]*$//;
14368
 
}'
14369
 
fi
14370
 
 
14371
 
DEFS=-DHAVE_CONFIG_H
14372
 
 
14373
 
ac_libobjs=
14374
 
ac_ltlibobjs=
14375
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14376
 
  # 1. Remove the extension, and $U if already installed.
14377
 
  ac_i=`echo "$ac_i" |
14378
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14379
 
  # 2. Add them.
14380
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14381
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14382
 
done
14383
 
LIBOBJS=$ac_libobjs
14384
 
 
14385
 
LTLIBOBJS=$ac_ltlibobjs
14386
 
 
14387
 
 
14388
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14389
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14390
 
Usually this means the macro was only invoked conditionally." >&5
14391
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
14392
 
Usually this means the macro was only invoked conditionally." >&2;}
14393
 
   { (exit 1); exit 1; }; }
14394
 
fi
14395
 
 
14396
 
: ${CONFIG_STATUS=./config.status}
14397
 
ac_clean_files_save=$ac_clean_files
14398
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14399
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14400
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
14401
 
cat >$CONFIG_STATUS <<_ACEOF
14402
 
#! $SHELL
14403
 
# Generated by $as_me.
14404
 
# Run this file to recreate the current configuration.
14405
 
# Compiler output produced by configure, useful for debugging
14406
 
# configure, is in config.log if it exists.
14407
 
 
14408
 
debug=false
14409
 
ac_cs_recheck=false
14410
 
ac_cs_silent=false
14411
 
SHELL=\${CONFIG_SHELL-$SHELL}
14412
 
_ACEOF
14413
 
 
14414
 
cat >>$CONFIG_STATUS <<\_ACEOF
14415
 
## --------------------- ##
14416
 
## M4sh Initialization.  ##
14417
 
## --------------------- ##
14418
 
 
14419
 
# Be Bourne compatible
14420
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14421
 
  emulate sh
14422
 
  NULLCMD=:
14423
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14424
 
  # is contrary to our usage.  Disable this feature.
14425
 
  alias -g '${1+"$@"}'='"$@"'
14426
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14427
 
  set -o posix
14428
 
fi
14429
 
DUALCASE=1; export DUALCASE # for MKS sh
14430
 
 
14431
 
# Support unset when possible.
14432
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14433
 
  as_unset=unset
14434
 
else
14435
 
  as_unset=false
14436
 
fi
14437
 
 
14438
 
 
14439
 
# Work around bugs in pre-3.0 UWIN ksh.
14440
 
$as_unset ENV MAIL MAILPATH
14441
 
PS1='$ '
14442
 
PS2='> '
14443
 
PS4='+ '
14444
 
 
14445
 
# NLS nuisances.
14446
 
for as_var in \
14447
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14448
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14449
 
  LC_TELEPHONE LC_TIME
14450
 
do
14451
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14452
 
    eval $as_var=C; export $as_var
14453
 
  else
14454
 
    $as_unset $as_var
14455
 
  fi
14456
 
done
14457
 
 
14458
 
# Required to use basename.
14459
 
if expr a : '\(a\)' >/dev/null 2>&1; then
14460
 
  as_expr=expr
14461
 
else
14462
 
  as_expr=false
14463
 
fi
14464
 
 
14465
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14466
 
  as_basename=basename
14467
 
else
14468
 
  as_basename=false
14469
 
fi
14470
 
 
14471
 
 
14472
 
# Name of the executable.
14473
 
as_me=`$as_basename "$0" ||
14474
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14475
 
         X"$0" : 'X\(//\)$' \| \
14476
 
         X"$0" : 'X\(/\)$' \| \
14477
 
         .     : '\(.\)' 2>/dev/null ||
14478
 
echo X/"$0" |
14479
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14480
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
14481
 
          /^X\/\(\/\).*/{ s//\1/; q; }
14482
 
          s/.*/./; q'`
14483
 
 
14484
 
 
14485
 
# PATH needs CR, and LINENO needs CR and PATH.
14486
 
# Avoid depending upon Character Ranges.
14487
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14488
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14489
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14490
 
as_cr_digits='0123456789'
14491
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
14492
 
 
14493
 
# The user is always right.
14494
 
if test "${PATH_SEPARATOR+set}" != set; then
14495
 
  echo "#! /bin/sh" >conf$$.sh
14496
 
  echo  "exit 0"   >>conf$$.sh
14497
 
  chmod +x conf$$.sh
14498
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14499
 
    PATH_SEPARATOR=';'
14500
 
  else
14501
 
    PATH_SEPARATOR=:
14502
 
  fi
14503
 
  rm -f conf$$.sh
14504
 
fi
14505
 
 
14506
 
 
14507
 
  as_lineno_1=$LINENO
14508
 
  as_lineno_2=$LINENO
14509
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14510
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
14511
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14512
 
  # Find who we are.  Look in the path if we contain no path at all
14513
 
  # relative or not.
14514
 
  case $0 in
14515
 
    *[\\/]* ) as_myself=$0 ;;
14516
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14517
 
for as_dir in $PATH
14518
 
do
14519
 
  IFS=$as_save_IFS
14520
 
  test -z "$as_dir" && as_dir=.
14521
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14522
 
done
14523
 
 
14524
 
       ;;
14525
 
  esac
14526
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
14527
 
  # in which case we are not to be found in the path.
14528
 
  if test "x$as_myself" = x; then
14529
 
    as_myself=$0
14530
 
  fi
14531
 
  if test ! -f "$as_myself"; then
14532
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14533
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14534
 
   { (exit 1); exit 1; }; }
14535
 
  fi
14536
 
  case $CONFIG_SHELL in
14537
 
  '')
14538
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14539
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14540
 
do
14541
 
  IFS=$as_save_IFS
14542
 
  test -z "$as_dir" && as_dir=.
14543
 
  for as_base in sh bash ksh sh5; do
14544
 
         case $as_dir in
14545
 
         /*)
14546
 
           if ("$as_dir/$as_base" -c '
14547
 
  as_lineno_1=$LINENO
14548
 
  as_lineno_2=$LINENO
14549
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14550
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
14551
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14552
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14553
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14554
 
             CONFIG_SHELL=$as_dir/$as_base
14555
 
             export CONFIG_SHELL
14556
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14557
 
           fi;;
14558
 
         esac
14559
 
       done
14560
 
done
14561
 
;;
14562
 
  esac
14563
 
 
14564
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14565
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
14566
 
  # line-number line before each line; the second 'sed' does the real
14567
 
  # work.  The second script uses 'N' to pair each line-number line
14568
 
  # with the numbered line, and appends trailing '-' during
14569
 
  # substitution so that $LINENO is not a special case at line end.
14570
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14571
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14572
 
  sed '=' <$as_myself |
14573
 
    sed '
14574
 
      N
14575
 
      s,$,-,
14576
 
      : loop
14577
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14578
 
      t loop
14579
 
      s,-$,,
14580
 
      s,^['$as_cr_digits']*\n,,
14581
 
    ' >$as_me.lineno &&
14582
 
  chmod +x $as_me.lineno ||
14583
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14584
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14585
 
   { (exit 1); exit 1; }; }
14586
 
 
14587
 
  # Don't try to exec as it changes $[0], causing all sort of problems
14588
 
  # (the dirname of $[0] is not the place where we might find the
14589
 
  # original and so on.  Autoconf is especially sensible to this).
14590
 
  . ./$as_me.lineno
14591
 
  # Exit status is that of the last command.
14592
 
  exit
14593
 
}
14594
 
 
14595
 
 
14596
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14597
 
  *c*,-n*) ECHO_N= ECHO_C='
14598
 
' ECHO_T='      ' ;;
14599
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14600
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
14601
 
esac
14602
 
 
14603
 
if expr a : '\(a\)' >/dev/null 2>&1; then
14604
 
  as_expr=expr
14605
 
else
14606
 
  as_expr=false
14607
 
fi
14608
 
 
14609
 
rm -f conf$$ conf$$.exe conf$$.file
14610
 
echo >conf$$.file
14611
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
14612
 
  # We could just check for DJGPP; but this test a) works b) is more generic
14613
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14614
 
  if test -f conf$$.exe; then
14615
 
    # Don't use ln at all; we don't have any links
14616
 
    as_ln_s='cp -p'
14617
 
  else
14618
 
    as_ln_s='ln -s'
14619
 
  fi
14620
 
elif ln conf$$.file conf$$ 2>/dev/null; then
14621
 
  as_ln_s=ln
14622
 
else
14623
 
  as_ln_s='cp -p'
14624
 
fi
14625
 
rm -f conf$$ conf$$.exe conf$$.file
14626
 
 
14627
 
if mkdir -p . 2>/dev/null; then
14628
 
  as_mkdir_p=:
14629
 
else
14630
 
  test -d ./-p && rmdir ./-p
14631
 
  as_mkdir_p=false
14632
 
fi
14633
 
 
14634
 
as_executable_p="test -f"
14635
 
 
14636
 
# Sed expression to map a string onto a valid CPP name.
14637
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14638
 
 
14639
 
# Sed expression to map a string onto a valid variable name.
14640
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14641
 
 
14642
 
 
14643
 
# IFS
14644
 
# We need space, tab and new line, in precisely that order.
14645
 
as_nl='
14646
 
'
14647
 
IFS="   $as_nl"
14648
 
 
14649
 
# CDPATH.
14650
 
$as_unset CDPATH
14651
 
 
14652
 
exec 6>&1
14653
 
 
14654
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
14655
 
# report actual input values of CONFIG_FILES etc. instead of their
14656
 
# values after options handling.  Logging --version etc. is OK.
14657
 
exec 5>>config.log
14658
 
{
14659
 
  echo
14660
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14661
 
## Running $as_me. ##
14662
 
_ASBOX
14663
 
} >&5
14664
 
cat >&5 <<_CSEOF
14665
 
 
14666
 
This file was extended by $as_me, which was
14667
 
generated by GNU Autoconf 2.59.  Invocation command line was
14668
 
 
14669
 
  CONFIG_FILES    = $CONFIG_FILES
14670
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
14671
 
  CONFIG_LINKS    = $CONFIG_LINKS
14672
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
14673
 
  $ $0 $@
14674
 
 
14675
 
_CSEOF
14676
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14677
 
echo >&5
14678
 
_ACEOF
14679
 
 
14680
 
# Files that config.status was made for.
14681
 
if test -n "$ac_config_files"; then
14682
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14683
 
fi
14684
 
 
14685
 
if test -n "$ac_config_headers"; then
14686
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14687
 
fi
14688
 
 
14689
 
if test -n "$ac_config_links"; then
14690
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14691
 
fi
14692
 
 
14693
 
if test -n "$ac_config_commands"; then
14694
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14695
 
fi
14696
 
 
14697
 
cat >>$CONFIG_STATUS <<\_ACEOF
14698
 
 
14699
 
ac_cs_usage="\
14700
 
\`$as_me' instantiates files from templates according to the
14701
 
current configuration.
14702
 
 
14703
 
Usage: $0 [OPTIONS] [FILE]...
14704
 
 
14705
 
  -h, --help       print this help, then exit
14706
 
  -V, --version    print version number, then exit
14707
 
  -q, --quiet      do not print progress messages
14708
 
  -d, --debug      don't remove temporary files
14709
 
      --recheck    update $as_me by reconfiguring in the same conditions
14710
 
  --file=FILE[:TEMPLATE]
14711
 
                   instantiate the configuration file FILE
14712
 
  --header=FILE[:TEMPLATE]
14713
 
                   instantiate the configuration header FILE
14714
 
 
14715
 
Configuration files:
14716
 
$config_files
14717
 
 
14718
 
Configuration headers:
14719
 
$config_headers
14720
 
 
14721
 
Configuration commands:
14722
 
$config_commands
14723
 
 
14724
 
Report bugs to <bug-autoconf@gnu.org>."
14725
 
_ACEOF
14726
 
 
14727
 
cat >>$CONFIG_STATUS <<_ACEOF
14728
 
ac_cs_version="\\
14729
 
config.status
14730
 
configured by $0, generated by GNU Autoconf 2.59,
14731
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14732
 
 
14733
 
Copyright (C) 2003 Free Software Foundation, Inc.
14734
 
This config.status script is free software; the Free Software Foundation
14735
 
gives unlimited permission to copy, distribute and modify it."
14736
 
srcdir=$srcdir
14737
 
INSTALL="$INSTALL"
14738
 
_ACEOF
14739
 
 
14740
 
cat >>$CONFIG_STATUS <<\_ACEOF
14741
 
# If no file are specified by the user, then we need to provide default
14742
 
# value.  By we need to know if files were specified by the user.
14743
 
ac_need_defaults=:
14744
 
while test $# != 0
14745
 
do
14746
 
  case $1 in
14747
 
  --*=*)
14748
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
14749
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14750
 
    ac_shift=:
14751
 
    ;;
14752
 
  -*)
14753
 
    ac_option=$1
14754
 
    ac_optarg=$2
14755
 
    ac_shift=shift
14756
 
    ;;
14757
 
  *) # This is not an option, so the user has probably given explicit
14758
 
     # arguments.
14759
 
     ac_option=$1
14760
 
     ac_need_defaults=false;;
14761
 
  esac
14762
 
 
14763
 
  case $ac_option in
14764
 
  # Handling of the options.
14765
 
_ACEOF
14766
 
cat >>$CONFIG_STATUS <<\_ACEOF
14767
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14768
 
    ac_cs_recheck=: ;;
14769
 
  --version | --vers* | -V )
14770
 
    echo "$ac_cs_version"; exit 0 ;;
14771
 
  --he | --h)
14772
 
    # Conflict between --help and --header
14773
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
14774
 
Try \`$0 --help' for more information." >&5
14775
 
echo "$as_me: error: ambiguous option: $1
14776
 
Try \`$0 --help' for more information." >&2;}
14777
 
   { (exit 1); exit 1; }; };;
14778
 
  --help | --hel | -h )
14779
 
    echo "$ac_cs_usage"; exit 0 ;;
14780
 
  --debug | --d* | -d )
14781
 
    debug=: ;;
14782
 
  --file | --fil | --fi | --f )
14783
 
    $ac_shift
14784
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14785
 
    ac_need_defaults=false;;
14786
 
  --header | --heade | --head | --hea )
14787
 
    $ac_shift
14788
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14789
 
    ac_need_defaults=false;;
14790
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14791
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14792
 
    ac_cs_silent=: ;;
14793
 
 
14794
 
  # This is an error.
14795
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14796
 
Try \`$0 --help' for more information." >&5
14797
 
echo "$as_me: error: unrecognized option: $1
14798
 
Try \`$0 --help' for more information." >&2;}
14799
 
   { (exit 1); exit 1; }; } ;;
14800
 
 
14801
 
  *) ac_config_targets="$ac_config_targets $1" ;;
14802
 
 
14803
 
  esac
14804
 
  shift
14805
 
done
14806
 
 
14807
 
ac_configure_extra_args=
14808
 
 
14809
 
if $ac_cs_silent; then
14810
 
  exec 6>/dev/null
14811
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
14812
 
fi
14813
 
 
14814
 
_ACEOF
14815
 
cat >>$CONFIG_STATUS <<_ACEOF
14816
 
if \$ac_cs_recheck; then
14817
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14818
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14819
 
fi
14820
 
 
14821
 
_ACEOF
14822
 
 
14823
 
cat >>$CONFIG_STATUS <<_ACEOF
14824
 
#
14825
 
# INIT-COMMANDS section.
14826
 
#
14827
 
 
14828
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14829
 
 
14830
 
_ACEOF
14831
 
 
14832
 
 
14833
 
 
14834
 
cat >>$CONFIG_STATUS <<\_ACEOF
14835
 
for ac_config_target in $ac_config_targets
14836
 
do
14837
 
  case "$ac_config_target" in
14838
 
  # Handling of arguments.
14839
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14840
 
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14841
 
  "src/pics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pics/Makefile" ;;
14842
 
  "src/sounds/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sounds/Makefile" ;;
14843
 
  "src/translations/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/translations/Makefile" ;;
14844
 
  "templates/Makefile" ) CONFIG_FILES="$CONFIG_FILES templates/Makefile" ;;
14845
 
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14846
 
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14847
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14848
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14849
 
   { (exit 1); exit 1; }; };;
14850
 
  esac
14851
 
done
14852
 
 
14853
 
# If the user did not use the arguments to specify the items to instantiate,
14854
 
# then the envvar interface is used.  Set only those that are not.
14855
 
# We use the long form for the default assignment because of an extremely
14856
 
# bizarre bug on SunOS 4.1.3.
14857
 
if $ac_need_defaults; then
14858
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14859
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14860
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14861
 
fi
14862
 
 
14863
 
# Have a temporary directory for convenience.  Make it in the build tree
14864
 
# simply because there is no reason to put it here, and in addition,
14865
 
# creating and moving files from /tmp can sometimes cause problems.
14866
 
# Create a temporary directory, and hook for its removal unless debugging.
14867
 
$debug ||
14868
 
{
14869
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14870
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
14871
 
}
14872
 
 
14873
 
# Create a (secure) tmp directory for tmp files.
14874
 
 
14875
 
{
14876
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14877
 
  test -n "$tmp" && test -d "$tmp"
14878
 
}  ||
14879
 
{
14880
 
  tmp=./confstat$$-$RANDOM
14881
 
  (umask 077 && mkdir $tmp)
14882
 
} ||
14883
 
{
14884
 
   echo "$me: cannot create a temporary directory in ." >&2
14885
 
   { (exit 1); exit 1; }
14886
 
}
14887
 
 
14888
 
_ACEOF
14889
 
 
14890
 
cat >>$CONFIG_STATUS <<_ACEOF
14891
 
 
14892
 
#
14893
 
# CONFIG_FILES section.
14894
 
#
14895
 
 
14896
 
# No need to generate the scripts if there are no CONFIG_FILES.
14897
 
# This happens for instance when ./config.status config.h
14898
 
if test -n "\$CONFIG_FILES"; then
14899
 
  # Protect against being on the right side of a sed subst in config.status.
14900
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14901
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14902
 
s,@SHELL@,$SHELL,;t t
14903
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14904
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14905
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14906
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14907
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14908
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14909
 
s,@exec_prefix@,$exec_prefix,;t t
14910
 
s,@prefix@,$prefix,;t t
14911
 
s,@program_transform_name@,$program_transform_name,;t t
14912
 
s,@bindir@,$bindir,;t t
14913
 
s,@sbindir@,$sbindir,;t t
14914
 
s,@libexecdir@,$libexecdir,;t t
14915
 
s,@datadir@,$datadir,;t t
14916
 
s,@sysconfdir@,$sysconfdir,;t t
14917
 
s,@sharedstatedir@,$sharedstatedir,;t t
14918
 
s,@localstatedir@,$localstatedir,;t t
14919
 
s,@libdir@,$libdir,;t t
14920
 
s,@includedir@,$includedir,;t t
14921
 
s,@oldincludedir@,$oldincludedir,;t t
14922
 
s,@infodir@,$infodir,;t t
14923
 
s,@mandir@,$mandir,;t t
14924
 
s,@build_alias@,$build_alias,;t t
14925
 
s,@host_alias@,$host_alias,;t t
14926
 
s,@target_alias@,$target_alias,;t t
14927
 
s,@DEFS@,$DEFS,;t t
14928
 
s,@ECHO_C@,$ECHO_C,;t t
14929
 
s,@ECHO_N@,$ECHO_N,;t t
14930
 
s,@ECHO_T@,$ECHO_T,;t t
14931
 
s,@LIBS@,$LIBS,;t t
14932
 
s,@build@,$build,;t t
14933
 
s,@build_cpu@,$build_cpu,;t t
14934
 
s,@build_vendor@,$build_vendor,;t t
14935
 
s,@build_os@,$build_os,;t t
14936
 
s,@host@,$host,;t t
14937
 
s,@host_cpu@,$host_cpu,;t t
14938
 
s,@host_vendor@,$host_vendor,;t t
14939
 
s,@host_os@,$host_os,;t t
14940
 
s,@target@,$target,;t t
14941
 
s,@target_cpu@,$target_cpu,;t t
14942
 
s,@target_vendor@,$target_vendor,;t t
14943
 
s,@target_os@,$target_os,;t t
14944
 
s,@CC@,$CC,;t t
14945
 
s,@CFLAGS@,$CFLAGS,;t t
14946
 
s,@LDFLAGS@,$LDFLAGS,;t t
14947
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
14948
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
14949
 
s,@EXEEXT@,$EXEEXT,;t t
14950
 
s,@OBJEXT@,$OBJEXT,;t t
14951
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14952
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14953
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14954
 
s,@PACKAGE@,$PACKAGE,;t t
14955
 
s,@VERSION@,$VERSION,;t t
14956
 
s,@ACLOCAL@,$ACLOCAL,;t t
14957
 
s,@AUTOCONF@,$AUTOCONF,;t t
14958
 
s,@AUTOMAKE@,$AUTOMAKE,;t t
14959
 
s,@AUTOHEADER@,$AUTOHEADER,;t t
14960
 
s,@MAKEINFO@,$MAKEINFO,;t t
14961
 
s,@AMTAR@,$AMTAR,;t t
14962
 
s,@install_sh@,$install_sh,;t t
14963
 
s,@STRIP@,$STRIP,;t t
14964
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14965
 
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14966
 
s,@AWK@,$AWK,;t t
14967
 
s,@SET_MAKE@,$SET_MAKE,;t t
14968
 
s,@DEPDIR@,$DEPDIR,;t t
14969
 
s,@am__include@,$am__include,;t t
14970
 
s,@am__quote@,$am__quote,;t t
14971
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14972
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14973
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14974
 
s,@CCDEPMODE@,$CCDEPMODE,;t t
14975
 
s,@CPP@,$CPP,;t t
14976
 
s,@CXX@,$CXX,;t t
14977
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
14978
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
14979
 
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
14980
 
s,@WOVERLOADED_VIRTUAL@,$WOVERLOADED_VIRTUAL,;t t
14981
 
s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t
14982
 
s,@USE_RTTI@,$USE_RTTI,;t t
14983
 
s,@CXXCPP@,$CXXCPP,;t t
14984
 
s,@NOOPT_CXXFLAGS@,$NOOPT_CXXFLAGS,;t t
14985
 
s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t
14986
 
s,@REPO@,$REPO,;t t
14987
 
s,@NOREPO@,$NOREPO,;t t
14988
 
s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t
14989
 
s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t
14990
 
s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t
14991
 
s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t
14992
 
s,@KDE_CXXFLAGS@,$KDE_CXXFLAGS,;t t
14993
 
s,@LN_S@,$LN_S,;t t
14994
 
s,@RANLIB@,$RANLIB,;t t
14995
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14996
 
s,@LIBTOOL@,$LIBTOOL,;t t
14997
 
s,@KDE_PLUGIN@,$KDE_PLUGIN,;t t
14998
 
s,@all_includes@,$all_includes,;t t
14999
 
s,@all_libraries@,$all_libraries,;t t
15000
 
s,@MSGFMT@,$MSGFMT,;t t
15001
 
s,@GMSGFMT@,$GMSGFMT,;t t
15002
 
s,@XGETTEXT@,$XGETTEXT,;t t
15003
 
s,@LIBUTIL@,$LIBUTIL,;t t
15004
 
s,@LIBCOMPAT@,$LIBCOMPAT,;t t
15005
 
s,@LIBCRYPT@,$LIBCRYPT,;t t
15006
 
s,@LIBSOCKET@,$LIBSOCKET,;t t
15007
 
s,@LIBRESOLV@,$LIBRESOLV,;t t
15008
 
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15009
 
s,@LIBUCB@,$LIBUCB,;t t
15010
 
s,@EGREP@,$EGREP,;t t
15011
 
s,@LIBDL@,$LIBDL,;t t
15012
 
s,@X_INCLUDES@,$X_INCLUDES,;t t
15013
 
s,@X_LDFLAGS@,$X_LDFLAGS,;t t
15014
 
s,@x_libraries@,$x_libraries,;t t
15015
 
s,@x_includes@,$x_includes,;t t
15016
 
s,@LIBSM@,$LIBSM,;t t
15017
 
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15018
 
s,@LIB_X11@,$LIB_X11,;t t
15019
 
s,@LIBXINERAMA@,$LIBXINERAMA,;t t
15020
 
s,@QTE_NORTTI@,$QTE_NORTTI,;t t
15021
 
s,@LIB_XEXT@,$LIB_XEXT,;t t
15022
 
s,@LIBPTHREAD@,$LIBPTHREAD,;t t
15023
 
s,@USE_THREADS@,$USE_THREADS,;t t
15024
 
s,@KDE_MT_LDFLAGS@,$KDE_MT_LDFLAGS,;t t
15025
 
s,@KDE_MT_LIBS@,$KDE_MT_LIBS,;t t
15026
 
s,@USER_INCLUDES@,$USER_INCLUDES,;t t
15027
 
s,@USER_LDFLAGS@,$USER_LDFLAGS,;t t
15028
 
s,@LIBZ@,$LIBZ,;t t
15029
 
s,@LIBPNG@,$LIBPNG,;t t
15030
 
s,@LIBJPEG@,$LIBJPEG,;t t
15031
 
s,@qt_libraries@,$qt_libraries,;t t
15032
 
s,@qt_includes@,$qt_includes,;t t
15033
 
s,@QT_INCLUDES@,$QT_INCLUDES,;t t
15034
 
s,@QT_LDFLAGS@,$QT_LDFLAGS,;t t
15035
 
s,@MOC@,$MOC,;t t
15036
 
s,@UIC@,$UIC,;t t
15037
 
s,@UIC_TR@,$UIC_TR,;t t
15038
 
s,@LIB_QT@,$LIB_QT,;t t
15039
 
s,@LIB_QPE@,$LIB_QPE,;t t
15040
 
s,@kde_qtver@,$kde_qtver,;t t
15041
 
s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t
15042
 
s,@LIBOBJS@,$LIBOBJS,;t t
15043
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15044
 
CEOF
15045
 
 
15046
 
_ACEOF
15047
 
 
15048
 
  cat >>$CONFIG_STATUS <<\_ACEOF
15049
 
  # Split the substitutions into bite-sized pieces for seds with
15050
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
15051
 
  ac_max_sed_lines=48
15052
 
  ac_sed_frag=1 # Number of current file.
15053
 
  ac_beg=1 # First line for current file.
15054
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
15055
 
  ac_more_lines=:
15056
 
  ac_sed_cmds=
15057
 
  while $ac_more_lines; do
15058
 
    if test $ac_beg -gt 1; then
15059
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15060
 
    else
15061
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15062
 
    fi
15063
 
    if test ! -s $tmp/subs.frag; then
15064
 
      ac_more_lines=false
15065
 
    else
15066
 
      # The purpose of the label and of the branching condition is to
15067
 
      # speed up the sed processing (if there are no `@' at all, there
15068
 
      # is no need to browse any of the substitutions).
15069
 
      # These are the two extra sed commands mentioned above.
15070
 
      (echo ':t
15071
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15072
 
      if test -z "$ac_sed_cmds"; then
15073
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15074
 
      else
15075
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15076
 
      fi
15077
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
15078
 
      ac_beg=$ac_end
15079
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
15080
 
    fi
15081
 
  done
15082
 
  if test -z "$ac_sed_cmds"; then
15083
 
    ac_sed_cmds=cat
15084
 
  fi
15085
 
fi # test -n "$CONFIG_FILES"
15086
 
 
15087
 
_ACEOF
15088
 
cat >>$CONFIG_STATUS <<\_ACEOF
15089
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15090
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15091
 
  case $ac_file in
15092
 
  - | *:- | *:-:* ) # input from stdin
15093
 
        cat >$tmp/stdin
15094
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15095
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15096
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15097
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15098
 
  * )   ac_file_in=$ac_file.in ;;
15099
 
  esac
15100
 
 
15101
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15102
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15103
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15104
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
15105
 
         X"$ac_file" : 'X\(//\)$' \| \
15106
 
         X"$ac_file" : 'X\(/\)' \| \
15107
 
         .     : '\(.\)' 2>/dev/null ||
15108
 
echo X"$ac_file" |
15109
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15110
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15111
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15112
 
          /^X\(\/\).*/{ s//\1/; q; }
15113
 
          s/.*/./; q'`
15114
 
  { if $as_mkdir_p; then
15115
 
    mkdir -p "$ac_dir"
15116
 
  else
15117
 
    as_dir="$ac_dir"
15118
 
    as_dirs=
15119
 
    while test ! -d "$as_dir"; do
15120
 
      as_dirs="$as_dir $as_dirs"
15121
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15122
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15123
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
15124
 
         X"$as_dir" : 'X\(//\)$' \| \
15125
 
         X"$as_dir" : 'X\(/\)' \| \
15126
 
         .     : '\(.\)' 2>/dev/null ||
15127
 
echo X"$as_dir" |
15128
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15129
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15130
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15131
 
          /^X\(\/\).*/{ s//\1/; q; }
15132
 
          s/.*/./; q'`
15133
 
    done
15134
 
    test ! -n "$as_dirs" || mkdir $as_dirs
15135
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15136
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15137
 
   { (exit 1); exit 1; }; }; }
15138
 
 
15139
 
  ac_builddir=.
15140
 
 
15141
 
if test "$ac_dir" != .; then
15142
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15143
 
  # A "../" for each directory in $ac_dir_suffix.
15144
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15145
 
else
15146
 
  ac_dir_suffix= ac_top_builddir=
15147
 
fi
15148
 
 
15149
 
case $srcdir in
15150
 
  .)  # No --srcdir option.  We are building in place.
15151
 
    ac_srcdir=.
15152
 
    if test -z "$ac_top_builddir"; then
15153
 
       ac_top_srcdir=.
15154
 
    else
15155
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15156
 
    fi ;;
15157
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
15158
 
    ac_srcdir=$srcdir$ac_dir_suffix;
15159
 
    ac_top_srcdir=$srcdir ;;
15160
 
  *) # Relative path.
15161
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15162
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
15163
 
esac
15164
 
 
15165
 
# Do not use `cd foo && pwd` to compute absolute paths, because
15166
 
# the directories may not exist.
15167
 
case `pwd` in
15168
 
.) ac_abs_builddir="$ac_dir";;
15169
 
*)
15170
 
  case "$ac_dir" in
15171
 
  .) ac_abs_builddir=`pwd`;;
15172
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15173
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
15174
 
  esac;;
15175
 
esac
15176
 
case $ac_abs_builddir in
15177
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
15178
 
*)
15179
 
  case ${ac_top_builddir}. in
15180
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
15181
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15182
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15183
 
  esac;;
15184
 
esac
15185
 
case $ac_abs_builddir in
15186
 
.) ac_abs_srcdir=$ac_srcdir;;
15187
 
*)
15188
 
  case $ac_srcdir in
15189
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
15190
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15191
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15192
 
  esac;;
15193
 
esac
15194
 
case $ac_abs_builddir in
15195
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
15196
 
*)
15197
 
  case $ac_top_srcdir in
15198
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
15199
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15200
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15201
 
  esac;;
15202
 
esac
15203
 
 
15204
 
 
15205
 
  case $INSTALL in
15206
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15207
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15208
 
  esac
15209
 
 
15210
 
  if test x"$ac_file" != x-; then
15211
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
15212
 
echo "$as_me: creating $ac_file" >&6;}
15213
 
    rm -f "$ac_file"
15214
 
  fi
15215
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
15216
 
  # use $as_me), people would be surprised to read:
15217
 
  #    /* config.h.  Generated by config.status.  */
15218
 
  if test x"$ac_file" = x-; then
15219
 
    configure_input=
15220
 
  else
15221
 
    configure_input="$ac_file.  "
15222
 
  fi
15223
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
15224
 
                                     sed 's,.*/,,'` by configure."
15225
 
 
15226
 
  # First look for the input files in the build tree, otherwise in the
15227
 
  # src tree.
15228
 
  ac_file_inputs=`IFS=:
15229
 
    for f in $ac_file_in; do
15230
 
      case $f in
15231
 
      -) echo $tmp/stdin ;;
15232
 
      [\\/$]*)
15233
 
         # Absolute (can't be DOS-style, as IFS=:)
15234
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15235
 
echo "$as_me: error: cannot find input file: $f" >&2;}
15236
 
   { (exit 1); exit 1; }; }
15237
 
         echo "$f";;
15238
 
      *) # Relative
15239
 
         if test -f "$f"; then
15240
 
           # Build tree
15241
 
           echo "$f"
15242
 
         elif test -f "$srcdir/$f"; then
15243
 
           # Source tree
15244
 
           echo "$srcdir/$f"
15245
 
         else
15246
 
           # /dev/null tree
15247
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15248
 
echo "$as_me: error: cannot find input file: $f" >&2;}
15249
 
   { (exit 1); exit 1; }; }
15250
 
         fi;;
15251
 
      esac
15252
 
    done` || { (exit 1); exit 1; }
15253
 
_ACEOF
15254
 
cat >>$CONFIG_STATUS <<_ACEOF
15255
 
  sed "$ac_vpsub
15256
 
$extrasub
15257
 
_ACEOF
15258
 
cat >>$CONFIG_STATUS <<\_ACEOF
15259
 
:t
15260
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15261
 
s,@configure_input@,$configure_input,;t t
15262
 
s,@srcdir@,$ac_srcdir,;t t
15263
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
15264
 
s,@top_srcdir@,$ac_top_srcdir,;t t
15265
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15266
 
s,@builddir@,$ac_builddir,;t t
15267
 
s,@abs_builddir@,$ac_abs_builddir,;t t
15268
 
s,@top_builddir@,$ac_top_builddir,;t t
15269
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15270
 
s,@INSTALL@,$ac_INSTALL,;t t
15271
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15272
 
  rm -f $tmp/stdin
15273
 
  if test x"$ac_file" != x-; then
15274
 
    mv $tmp/out $ac_file
15275
 
  else
15276
 
    cat $tmp/out
15277
 
    rm -f $tmp/out
15278
 
  fi
15279
 
 
15280
 
done
15281
 
_ACEOF
15282
 
cat >>$CONFIG_STATUS <<\_ACEOF
15283
 
 
15284
 
#
15285
 
# CONFIG_HEADER section.
15286
 
#
15287
 
 
15288
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15289
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
15290
 
#
15291
 
# ac_d sets the value in "#define NAME VALUE" lines.
15292
 
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
15293
 
ac_dB='[         ].*$,\1#\2'
15294
 
ac_dC=' '
15295
 
ac_dD=',;t'
15296
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15297
 
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15298
 
ac_uB='$,\1#\2define\3'
15299
 
ac_uC=' '
15300
 
ac_uD=',;t'
15301
 
 
15302
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15303
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15304
 
  case $ac_file in
15305
 
  - | *:- | *:-:* ) # input from stdin
15306
 
        cat >$tmp/stdin
15307
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15308
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15309
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15310
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15311
 
  * )   ac_file_in=$ac_file.in ;;
15312
 
  esac
15313
 
 
15314
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15315
 
echo "$as_me: creating $ac_file" >&6;}
15316
 
 
15317
 
  # First look for the input files in the build tree, otherwise in the
15318
 
  # src tree.
15319
 
  ac_file_inputs=`IFS=:
15320
 
    for f in $ac_file_in; do
15321
 
      case $f in
15322
 
      -) echo $tmp/stdin ;;
15323
 
      [\\/$]*)
15324
 
         # Absolute (can't be DOS-style, as IFS=:)
15325
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15326
 
echo "$as_me: error: cannot find input file: $f" >&2;}
15327
 
   { (exit 1); exit 1; }; }
15328
 
         # Do quote $f, to prevent DOS paths from being IFS'd.
15329
 
         echo "$f";;
15330
 
      *) # Relative
15331
 
         if test -f "$f"; then
15332
 
           # Build tree
15333
 
           echo "$f"
15334
 
         elif test -f "$srcdir/$f"; then
15335
 
           # Source tree
15336
 
           echo "$srcdir/$f"
15337
 
         else
15338
 
           # /dev/null tree
15339
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15340
 
echo "$as_me: error: cannot find input file: $f" >&2;}
15341
 
   { (exit 1); exit 1; }; }
15342
 
         fi;;
15343
 
      esac
15344
 
    done` || { (exit 1); exit 1; }
15345
 
  # Remove the trailing spaces.
15346
 
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
15347
 
 
15348
 
_ACEOF
15349
 
 
15350
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
15351
 
# `conftest.undefs', that substitutes the proper values into
15352
 
# config.h.in to produce config.h.  The first handles `#define'
15353
 
# templates, and the second `#undef' templates.
15354
 
# And first: Protect against being on the right side of a sed subst in
15355
 
# config.status.  Protect against being in an unquoted here document
15356
 
# in config.status.
15357
 
rm -f conftest.defines conftest.undefs
15358
 
# Using a here document instead of a string reduces the quoting nightmare.
15359
 
# Putting comments in sed scripts is not portable.
15360
 
#
15361
 
# `end' is used to avoid that the second main sed command (meant for
15362
 
# 0-ary CPP macros) applies to n-ary macro definitions.
15363
 
# See the Autoconf documentation for `clear'.
15364
 
cat >confdef2sed.sed <<\_ACEOF
15365
 
s/[\\&,]/\\&/g
15366
 
s,[\\$`],\\&,g
15367
 
t clear
15368
 
: clear
15369
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15370
 
t end
15371
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15372
 
: end
15373
 
_ACEOF
15374
 
# If some macros were called several times there might be several times
15375
 
# the same #defines, which is useless.  Nevertheless, we may not want to
15376
 
# sort them, since we want the *last* AC-DEFINE to be honored.
15377
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15378
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15379
 
rm -f confdef2sed.sed
15380
 
 
15381
 
# This sed command replaces #undef with comments.  This is necessary, for
15382
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
15383
 
# on some systems where configure will not decide to define it.
15384
 
cat >>conftest.undefs <<\_ACEOF
15385
 
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15386
 
_ACEOF
15387
 
 
15388
 
# Break up conftest.defines because some shells have a limit on the size
15389
 
# of here documents, and old seds have small limits too (100 cmds).
15390
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15391
 
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15392
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15393
 
echo '  :' >>$CONFIG_STATUS
15394
 
rm -f conftest.tail
15395
 
while grep . conftest.defines >/dev/null
15396
 
do
15397
 
  # Write a limited-size here document to $tmp/defines.sed.
15398
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15399
 
  # Speed up: don't consider the non `#define' lines.
15400
 
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
15401
 
  # Work around the forget-to-reset-the-flag bug.
15402
 
  echo 't clr' >>$CONFIG_STATUS
15403
 
  echo ': clr' >>$CONFIG_STATUS
15404
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15405
 
  echo 'CEOF
15406
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
15407
 
  rm -f $tmp/in
15408
 
  mv $tmp/out $tmp/in
15409
 
' >>$CONFIG_STATUS
15410
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15411
 
  rm -f conftest.defines
15412
 
  mv conftest.tail conftest.defines
15413
 
done
15414
 
rm -f conftest.defines
15415
 
echo '  fi # grep' >>$CONFIG_STATUS
15416
 
echo >>$CONFIG_STATUS
15417
 
 
15418
 
# Break up conftest.undefs because some shells have a limit on the size
15419
 
# of here documents, and old seds have small limits too (100 cmds).
15420
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15421
 
rm -f conftest.tail
15422
 
while grep . conftest.undefs >/dev/null
15423
 
do
15424
 
  # Write a limited-size here document to $tmp/undefs.sed.
15425
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15426
 
  # Speed up: don't consider the non `#undef'
15427
 
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15428
 
  # Work around the forget-to-reset-the-flag bug.
15429
 
  echo 't clr' >>$CONFIG_STATUS
15430
 
  echo ': clr' >>$CONFIG_STATUS
15431
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15432
 
  echo 'CEOF
15433
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15434
 
  rm -f $tmp/in
15435
 
  mv $tmp/out $tmp/in
15436
 
' >>$CONFIG_STATUS
15437
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15438
 
  rm -f conftest.undefs
15439
 
  mv conftest.tail conftest.undefs
15440
 
done
15441
 
rm -f conftest.undefs
15442
 
 
15443
 
cat >>$CONFIG_STATUS <<\_ACEOF
15444
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
15445
 
  # use $as_me), people would be surprised to read:
15446
 
  #    /* config.h.  Generated by config.status.  */
15447
 
  if test x"$ac_file" = x-; then
15448
 
    echo "/* Generated by configure.  */" >$tmp/config.h
15449
 
  else
15450
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15451
 
  fi
15452
 
  cat $tmp/in >>$tmp/config.h
15453
 
  rm -f $tmp/in
15454
 
  if test x"$ac_file" != x-; then
15455
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15456
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15457
 
echo "$as_me: $ac_file is unchanged" >&6;}
15458
 
    else
15459
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15460
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15461
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
15462
 
         X"$ac_file" : 'X\(//\)$' \| \
15463
 
         X"$ac_file" : 'X\(/\)' \| \
15464
 
         .     : '\(.\)' 2>/dev/null ||
15465
 
echo X"$ac_file" |
15466
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15467
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15468
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15469
 
          /^X\(\/\).*/{ s//\1/; q; }
15470
 
          s/.*/./; q'`
15471
 
      { if $as_mkdir_p; then
15472
 
    mkdir -p "$ac_dir"
15473
 
  else
15474
 
    as_dir="$ac_dir"
15475
 
    as_dirs=
15476
 
    while test ! -d "$as_dir"; do
15477
 
      as_dirs="$as_dir $as_dirs"
15478
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15479
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15480
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
15481
 
         X"$as_dir" : 'X\(//\)$' \| \
15482
 
         X"$as_dir" : 'X\(/\)' \| \
15483
 
         .     : '\(.\)' 2>/dev/null ||
15484
 
echo X"$as_dir" |
15485
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15486
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15487
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15488
 
          /^X\(\/\).*/{ s//\1/; q; }
15489
 
          s/.*/./; q'`
15490
 
    done
15491
 
    test ! -n "$as_dirs" || mkdir $as_dirs
15492
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15493
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15494
 
   { (exit 1); exit 1; }; }; }
15495
 
 
15496
 
      rm -f $ac_file
15497
 
      mv $tmp/config.h $ac_file
15498
 
    fi
15499
 
  else
15500
 
    cat $tmp/config.h
15501
 
    rm -f $tmp/config.h
15502
 
  fi
15503
 
  # Run the commands associated with the file.
15504
 
  case $ac_file in
15505
 
    config.h ) # update the timestamp
15506
 
echo 'timestamp for config.h' >"./stamp-h1"
15507
 
 ;;
15508
 
  esac
15509
 
done
15510
 
_ACEOF
15511
 
cat >>$CONFIG_STATUS <<\_ACEOF
15512
 
 
15513
 
#
15514
 
# CONFIG_COMMANDS section.
15515
 
#
15516
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15517
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15518
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15519
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15520
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15521
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
15522
 
         X"$ac_dest" : 'X\(//\)$' \| \
15523
 
         X"$ac_dest" : 'X\(/\)' \| \
15524
 
         .     : '\(.\)' 2>/dev/null ||
15525
 
echo X"$ac_dest" |
15526
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15527
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15528
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15529
 
          /^X\(\/\).*/{ s//\1/; q; }
15530
 
          s/.*/./; q'`
15531
 
  { if $as_mkdir_p; then
15532
 
    mkdir -p "$ac_dir"
15533
 
  else
15534
 
    as_dir="$ac_dir"
15535
 
    as_dirs=
15536
 
    while test ! -d "$as_dir"; do
15537
 
      as_dirs="$as_dir $as_dirs"
15538
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15539
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15540
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
15541
 
         X"$as_dir" : 'X\(//\)$' \| \
15542
 
         X"$as_dir" : 'X\(/\)' \| \
15543
 
         .     : '\(.\)' 2>/dev/null ||
15544
 
echo X"$as_dir" |
15545
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15546
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15547
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15548
 
          /^X\(\/\).*/{ s//\1/; q; }
15549
 
          s/.*/./; q'`
15550
 
    done
15551
 
    test ! -n "$as_dirs" || mkdir $as_dirs
15552
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15553
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15554
 
   { (exit 1); exit 1; }; }; }
15555
 
 
15556
 
  ac_builddir=.
15557
 
 
15558
 
if test "$ac_dir" != .; then
15559
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15560
 
  # A "../" for each directory in $ac_dir_suffix.
15561
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15562
 
else
15563
 
  ac_dir_suffix= ac_top_builddir=
15564
 
fi
15565
 
 
15566
 
case $srcdir in
15567
 
  .)  # No --srcdir option.  We are building in place.
15568
 
    ac_srcdir=.
15569
 
    if test -z "$ac_top_builddir"; then
15570
 
       ac_top_srcdir=.
15571
 
    else
15572
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15573
 
    fi ;;
15574
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
15575
 
    ac_srcdir=$srcdir$ac_dir_suffix;
15576
 
    ac_top_srcdir=$srcdir ;;
15577
 
  *) # Relative path.
15578
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15579
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
15580
 
esac
15581
 
 
15582
 
# Do not use `cd foo && pwd` to compute absolute paths, because
15583
 
# the directories may not exist.
15584
 
case `pwd` in
15585
 
.) ac_abs_builddir="$ac_dir";;
15586
 
*)
15587
 
  case "$ac_dir" in
15588
 
  .) ac_abs_builddir=`pwd`;;
15589
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15590
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
15591
 
  esac;;
15592
 
esac
15593
 
case $ac_abs_builddir in
15594
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
15595
 
*)
15596
 
  case ${ac_top_builddir}. in
15597
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
15598
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15599
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15600
 
  esac;;
15601
 
esac
15602
 
case $ac_abs_builddir in
15603
 
.) ac_abs_srcdir=$ac_srcdir;;
15604
 
*)
15605
 
  case $ac_srcdir in
15606
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
15607
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15608
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15609
 
  esac;;
15610
 
esac
15611
 
case $ac_abs_builddir in
15612
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
15613
 
*)
15614
 
  case $ac_top_srcdir in
15615
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
15616
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15617
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15618
 
  esac;;
15619
 
esac
15620
 
 
15621
 
 
15622
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15623
 
echo "$as_me: executing $ac_dest commands" >&6;}
15624
 
  case $ac_dest in
15625
 
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15626
 
  # Strip MF so we end up with the name of the file.
15627
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
15628
 
  # Check whether this is an Automake generated Makefile or not.
15629
 
  # We used to match only the files named `Makefile.in', but
15630
 
  # some people rename them; so instead we look at the file content.
15631
 
  # Grep'ing the first line is not enough: some people post-process
15632
 
  # each Makefile.in and add a new line on top of each file to say so.
15633
 
  # So let's grep whole file.
15634
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15635
 
    dirpart=`(dirname "$mf") 2>/dev/null ||
15636
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15637
 
         X"$mf" : 'X\(//\)[^/]' \| \
15638
 
         X"$mf" : 'X\(//\)$' \| \
15639
 
         X"$mf" : 'X\(/\)' \| \
15640
 
         .     : '\(.\)' 2>/dev/null ||
15641
 
echo X"$mf" |
15642
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15643
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15644
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15645
 
          /^X\(\/\).*/{ s//\1/; q; }
15646
 
          s/.*/./; q'`
15647
 
  else
15648
 
    continue
15649
 
  fi
15650
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
15651
 
  # Extract the definition of DEP_FILES from the Makefile without
15652
 
  # running `make'.
15653
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
15654
 
  test -z "$DEPDIR" && continue
15655
 
  # When using ansi2knr, U may be empty or an underscore; expand it
15656
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
15657
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
15658
 
  # We invoke sed twice because it is the simplest approach to
15659
 
  # changing $(DEPDIR) to its actual value in the expansion.
15660
 
  for file in `sed -n -e '
15661
 
    /^DEP_FILES = .*\\\\$/ {
15662
 
      s/^DEP_FILES = //
15663
 
      :loop
15664
 
        s/\\\\$//
15665
 
        p
15666
 
        n
15667
 
        /\\\\$/ b loop
15668
 
      p
15669
 
    }
15670
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
15671
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15672
 
    # Make sure the directory exists.
15673
 
    test -f "$dirpart/$file" && continue
15674
 
    fdir=`(dirname "$file") 2>/dev/null ||
15675
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15676
 
         X"$file" : 'X\(//\)[^/]' \| \
15677
 
         X"$file" : 'X\(//\)$' \| \
15678
 
         X"$file" : 'X\(/\)' \| \
15679
 
         .     : '\(.\)' 2>/dev/null ||
15680
 
echo X"$file" |
15681
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15682
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15683
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15684
 
          /^X\(\/\).*/{ s//\1/; q; }
15685
 
          s/.*/./; q'`
15686
 
    { if $as_mkdir_p; then
15687
 
    mkdir -p $dirpart/$fdir
15688
 
  else
15689
 
    as_dir=$dirpart/$fdir
15690
 
    as_dirs=
15691
 
    while test ! -d "$as_dir"; do
15692
 
      as_dirs="$as_dir $as_dirs"
15693
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15694
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15695
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
15696
 
         X"$as_dir" : 'X\(//\)$' \| \
15697
 
         X"$as_dir" : 'X\(/\)' \| \
15698
 
         .     : '\(.\)' 2>/dev/null ||
15699
 
echo X"$as_dir" |
15700
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15701
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15702
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15703
 
          /^X\(\/\).*/{ s//\1/; q; }
15704
 
          s/.*/./; q'`
15705
 
    done
15706
 
    test ! -n "$as_dirs" || mkdir $as_dirs
15707
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15708
 
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15709
 
   { (exit 1); exit 1; }; }; }
15710
 
 
15711
 
    # echo "creating $dirpart/$file"
15712
 
    echo '# dummy' > "$dirpart/$file"
15713
 
  done
15714
 
done
15715
 
 ;;
15716
 
  esac
15717
 
done
15718
 
_ACEOF
15719
 
 
15720
 
cat >>$CONFIG_STATUS <<\_ACEOF
15721
 
 
15722
 
{ (exit 0); exit 0; }
15723
 
_ACEOF
15724
 
chmod +x $CONFIG_STATUS
15725
 
ac_clean_files=$ac_clean_files_save
15726
 
 
15727
 
 
15728
 
# configure is writing to config.log, and then calls config.status.
15729
 
# config.status does its own redirection, appending to config.log.
15730
 
# Unfortunately, on DOS this fails, as config.log is still kept open
15731
 
# by configure, so config.status won't be able to write to it; its
15732
 
# output is simply discarded.  So we exec the FD to /dev/null,
15733
 
# effectively closing config.log, so it can be properly (re)opened and
15734
 
# appended to by config.status.  When coming back to configure, we
15735
 
# need to make the FD available again.
15736
 
if test "$no_create" != yes; then
15737
 
  ac_cs_success=:
15738
 
  ac_config_status_args=
15739
 
  test "$silent" = yes &&
15740
 
    ac_config_status_args="$ac_config_status_args --quiet"
15741
 
  exec 5>/dev/null
15742
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15743
 
  exec 5>>config.log
15744
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15745
 
  # would make configure fail if this is the last instruction.
15746
 
  $ac_cs_success || { (exit 1); exit 1; }
15747
 
fi
15748