~ubuntu-branches/ubuntu/precise/gtk-qt-engine/precise

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Christoffer Sawicki
  • Date: 2005-01-02 22:24:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050102222409-2wsno0q9ywn0ac2e
Tags: upstream-0.60
ImportĀ upstreamĀ versionĀ 0.60

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
 
 
245
# Check that we are running under the correct shell.
 
246
SHELL=${CONFIG_SHELL-/bin/sh}
 
247
 
 
248
case X$ECHO in
 
249
X*--fallback-echo)
 
250
  # Remove one level of quotation (which was required for Make).
 
251
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
252
  ;;
 
253
esac
 
254
 
 
255
echo=${ECHO-echo}
 
256
if test "X$1" = X--no-reexec; then
 
257
  # Discard the --no-reexec flag, and continue.
 
258
  shift
 
259
elif test "X$1" = X--fallback-echo; then
 
260
  # Avoid inline document here, it may be left over
 
261
  :
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
263
  # Yippee, $echo works!
 
264
  :
 
265
else
 
266
  # Restart under the correct shell.
 
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
268
fi
 
269
 
 
270
if test "X$1" = X--fallback-echo; then
 
271
  # used as fallback echo
 
272
  shift
 
273
  cat <<EOF
 
274
$*
 
275
EOF
 
276
  exit 0
 
277
fi
 
278
 
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
280
# if CDPATH is set.
 
281
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
282
 
 
283
if test -z "$ECHO"; then
 
284
if test "X${echo_test_string+set}" != Xset; then
 
285
# find a string as large as possible, as long as the shell can cope with it
 
286
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
287
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
288
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
289
       echo_test_string="`eval $cmd`" &&
 
290
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
291
    then
 
292
      break
 
293
    fi
 
294
  done
 
295
fi
 
296
 
 
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
298
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
299
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
300
  :
 
301
else
 
302
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
303
  # backslashes.  This makes it impossible to quote backslashes using
 
304
  #   echo "$something" | sed 's/\\/\\\\/g'
 
305
  #
 
306
  # So, first we look for a working echo in the user's PATH.
 
307
 
 
308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
309
  for dir in $PATH /usr/ucb; do
 
310
    IFS="$lt_save_ifs"
 
311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
312
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
313
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
314
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
315
      echo="$dir/echo"
 
316
      break
 
317
    fi
 
318
  done
 
319
  IFS="$lt_save_ifs"
 
320
 
 
321
  if test "X$echo" = Xecho; then
 
322
    # We didn't find a better echo, so look for alternatives.
 
323
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
324
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
325
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
326
      # This shell has a builtin print -r that does the trick.
 
327
      echo='print -r'
 
328
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
329
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
330
      # If we have ksh, try running configure again with it.
 
331
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
332
      export ORIGINAL_CONFIG_SHELL
 
333
      CONFIG_SHELL=/bin/ksh
 
334
      export CONFIG_SHELL
 
335
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
336
    else
 
337
      # Try using printf.
 
338
      echo='printf %s\n'
 
339
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
340
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
341
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
342
        # Cool, printf works
 
343
        :
 
344
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
345
           test "X$echo_testing_string" = 'X\t' &&
 
346
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
348
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
349
        export CONFIG_SHELL
 
350
        SHELL="$CONFIG_SHELL"
 
351
        export SHELL
 
352
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
353
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
354
           test "X$echo_testing_string" = 'X\t' &&
 
355
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
357
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
358
      else
 
359
        # maybe with a smaller string...
 
360
        prev=:
 
361
 
 
362
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
363
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
364
          then
 
365
            break
 
366
          fi
 
367
          prev="$cmd"
 
368
        done
 
369
 
 
370
        if test "$prev" != 'sed 50q "$0"'; then
 
371
          echo_test_string=`eval $prev`
 
372
          export echo_test_string
 
373
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
374
        else
 
375
          # Oops.  We lost completely, so just stick with echo.
 
376
          echo=echo
 
377
        fi
 
378
      fi
 
379
    fi
 
380
  fi
 
381
fi
 
382
fi
 
383
 
 
384
# Copy echo and quote the copy suitably for passing to libtool from
 
385
# the Makefile, instead of quoting the original, which is used later.
 
386
ECHO=$echo
 
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
388
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
389
fi
 
390
 
 
391
 
 
392
 
 
393
 
 
394
tagnames=${tagnames+${tagnames},}CXX
 
395
 
 
396
tagnames=${tagnames+${tagnames},}F77
 
397
 
 
398
# Name of the host.
 
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
400
# so uname gets run too.
 
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
402
 
 
403
exec 6>&1
 
404
 
 
405
#
 
406
# Initializations.
 
407
#
 
408
ac_default_prefix=/usr/local
 
409
ac_config_libobj_dir=.
 
410
cross_compiling=no
 
411
subdirs=
 
412
MFLAGS=
 
413
MAKEFLAGS=
 
414
SHELL=${CONFIG_SHELL-/bin/sh}
 
415
 
 
416
# Maximum number of lines to put in a shell here document.
 
417
# This variable seems obsolete.  It should probably be removed, and
 
418
# only ac_max_sed_lines should be used.
 
419
: ${ac_max_here_lines=38}
 
420
 
 
421
# Identity of this package.
 
422
PACKAGE_NAME=
 
423
PACKAGE_TARNAME=
 
424
PACKAGE_VERSION=
 
425
PACKAGE_STRING=
 
426
PACKAGE_BUGREPORT=
 
427
 
 
428
ac_unique_file="acinclude.m4"
 
429
ac_default_prefix=${KDEDIR:-the kde prefix}
 
430
# Factoring default headers for most tests.
 
431
ac_includes_default="\
 
432
#include <stdio.h>
 
433
#if HAVE_SYS_TYPES_H
 
434
# include <sys/types.h>
 
435
#endif
 
436
#if HAVE_SYS_STAT_H
 
437
# include <sys/stat.h>
 
438
#endif
 
439
#if STDC_HEADERS
 
440
# include <stdlib.h>
 
441
# include <stddef.h>
 
442
#else
 
443
# if HAVE_STDLIB_H
 
444
#  include <stdlib.h>
 
445
# endif
 
446
#endif
 
447
#if HAVE_STRING_H
 
448
# if !STDC_HEADERS && HAVE_MEMORY_H
 
449
#  include <memory.h>
 
450
# endif
 
451
# include <string.h>
 
452
#endif
 
453
#if HAVE_STRINGS_H
 
454
# include <strings.h>
 
455
#endif
 
456
#if HAVE_INTTYPES_H
 
457
# include <inttypes.h>
 
458
#else
 
459
# if HAVE_STDINT_H
 
460
#  include <stdint.h>
 
461
# endif
 
462
#endif
 
463
#if HAVE_UNISTD_H
 
464
# include <unistd.h>
 
465
#endif"
 
466
 
 
467
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar KDECONFIG kde_libs_prefix kde_libs_htmldir CONF_FILES CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE WOVERLOADED_VIRTUAL HAVE_GCC_VISIBILITY unsermake_enable_pch_TRUE unsermake_enable_pch_FALSE USE_EXCEPTIONS USE_RTTI CXXCPP NOOPT_CXXFLAGS NOOPT_CFLAGS ENABLE_PERMISSIVE_FLAG LDFLAGS_AS_NEEDED KDE_USE_FINAL_TRUE KDE_USE_FINAL_FALSE KDE_USE_CLOSURE_TRUE KDE_USE_CLOSURE_FALSE KDE_NO_UNDEFINED KDE_USE_NMCHECK_TRUE KDE_USE_NMCHECK_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL KDE_PLUGIN MSGFMT GMSGFMT XGETTEXT LIBUTIL LIBCOMPAT LIBCRYPT LIBRESOLV LIB_POLL FRAMEWORK_COREAUDIO LIBSOCKET X_EXTRA_LIBS LIBUCB LIBDL X_PRE_LIBS LIB_X11 LIB_XRENDER LIBSM X_INCLUDES X_LDFLAGS x_includes x_libraries 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 PERL MOC UIC UIC_TR LIB_QT LIB_QPE kde_qtver KDE_EXTRA_RPATH KDE_RPATH X_RPATH kde_libraries kde_includes KDE_LDFLAGS KDE_INCLUDES all_includes all_libraries AUTODIRS include_ARTS_TRUE include_ARTS_FALSE MAKEKDEWIDGETS KCONFIG_COMPILER KCFG_DEPENDENCIES DCOPIDLNG DCOPIDL DCOPIDL2CPP DCOP_DEPENDENCIES MCOPIDL ARTSCCONFIG MEINPROC KDE_XSL_STYLESHEET XMLLINT kde_htmldir kde_appsdir kde_icondir kde_sounddir kde_datadir kde_locale kde_confdir kde_kcfgdir kde_mimedir kde_wallpaperdir kde_bindir xdg_appsdir xdg_menudir xdg_directorydir kde_templatesdir kde_servicesdir kde_servicetypesdir kde_moduledir kdeinitdir kde_styledir kde_widgetdir LIB_KDECORE LIB_KDEUI LIB_KIO LIB_SMB LIB_KAB LIB_KABC LIB_KHTML LIB_KSPELL LIB_KPARTS LIB_KDEPRINT LIB_KUTILS LIB_KDEPIM LIB_KIMPROXY LIB_KNEWSTUFF LIB_KSYCOCA LIB_KFILE LIB_KFM PKG_CONFIG GTK2_CFLAGS GTK2_LIBS LIBBONOBOUI_CFLAGS LIBBONOBOUI_LIBS QTENGINE_CFLAGS QTENGINE_LIBS GTK_VERSION GTK_LIBPREFIX GTK_PREFIX KDE_PREFIX TOPSUBDIRS LIBOBJS LTLIBOBJS'
 
468
ac_subst_files=''
 
469
 
 
470
# Initialize some variables set by options.
 
471
ac_init_help=
 
472
ac_init_version=false
 
473
# The variables have the same names as the options, with
 
474
# dashes changed to underlines.
 
475
cache_file=/dev/null
 
476
exec_prefix=NONE
 
477
no_create=
 
478
no_recursion=
 
479
prefix=NONE
 
480
program_prefix=NONE
 
481
program_suffix=NONE
 
482
program_transform_name=s,x,x,
 
483
silent=
 
484
site=
 
485
srcdir=
 
486
verbose=
 
487
x_includes=NONE
 
488
x_libraries=NONE
 
489
 
 
490
# Installation directory options.
 
491
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
492
# and all the variables that are supposed to be based on exec_prefix
 
493
# by default will actually change.
 
494
# Use braces instead of parens because sh, perl, etc. also accept them.
 
495
bindir='${exec_prefix}/bin'
 
496
sbindir='${exec_prefix}/sbin'
 
497
libexecdir='${exec_prefix}/libexec'
 
498
datadir='${prefix}/share'
 
499
sysconfdir='${prefix}/etc'
 
500
sharedstatedir='${prefix}/com'
 
501
localstatedir='${prefix}/var'
 
502
libdir='${exec_prefix}/lib'
 
503
includedir='${prefix}/include'
 
504
oldincludedir='/usr/include'
 
505
infodir='${prefix}/info'
 
506
mandir='${prefix}/man'
 
507
 
 
508
ac_prev=
 
509
for ac_option
 
510
do
 
511
  # If the previous option needs an argument, assign it.
 
512
  if test -n "$ac_prev"; then
 
513
    eval "$ac_prev=\$ac_option"
 
514
    ac_prev=
 
515
    continue
 
516
  fi
 
517
 
 
518
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
519
 
 
520
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
521
 
 
522
  case $ac_option in
 
523
 
 
524
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
525
    ac_prev=bindir ;;
 
526
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
527
    bindir=$ac_optarg ;;
 
528
 
 
529
  -build | --build | --buil | --bui | --bu)
 
530
    ac_prev=build_alias ;;
 
531
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
532
    build_alias=$ac_optarg ;;
 
533
 
 
534
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
535
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
536
    ac_prev=cache_file ;;
 
537
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
538
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
539
    cache_file=$ac_optarg ;;
 
540
 
 
541
  --config-cache | -C)
 
542
    cache_file=config.cache ;;
 
543
 
 
544
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
545
    ac_prev=datadir ;;
 
546
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
547
  | --da=*)
 
548
    datadir=$ac_optarg ;;
 
549
 
 
550
  -disable-* | --disable-*)
 
551
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
552
    # Reject names that are not valid shell variable names.
 
553
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
554
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
555
   { (exit 1); exit 1; }; }
 
556
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
557
    eval "enable_$ac_feature=no" ;;
 
558
 
 
559
  -enable-* | --enable-*)
 
560
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
561
    # Reject names that are not valid shell variable names.
 
562
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
563
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
564
   { (exit 1); exit 1; }; }
 
565
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
566
    case $ac_option in
 
567
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
568
      *) ac_optarg=yes ;;
 
569
    esac
 
570
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
571
 
 
572
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
573
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
574
  | --exec | --exe | --ex)
 
575
    ac_prev=exec_prefix ;;
 
576
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
577
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
578
  | --exec=* | --exe=* | --ex=*)
 
579
    exec_prefix=$ac_optarg ;;
 
580
 
 
581
  -gas | --gas | --ga | --g)
 
582
    # Obsolete; use --with-gas.
 
583
    with_gas=yes ;;
 
584
 
 
585
  -help | --help | --hel | --he | -h)
 
586
    ac_init_help=long ;;
 
587
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
588
    ac_init_help=recursive ;;
 
589
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
590
    ac_init_help=short ;;
 
591
 
 
592
  -host | --host | --hos | --ho)
 
593
    ac_prev=host_alias ;;
 
594
  -host=* | --host=* | --hos=* | --ho=*)
 
595
    host_alias=$ac_optarg ;;
 
596
 
 
597
  -includedir | --includedir | --includedi | --included | --include \
 
598
  | --includ | --inclu | --incl | --inc)
 
599
    ac_prev=includedir ;;
 
600
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
601
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
602
    includedir=$ac_optarg ;;
 
603
 
 
604
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
605
    ac_prev=infodir ;;
 
606
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
607
    infodir=$ac_optarg ;;
 
608
 
 
609
  -libdir | --libdir | --libdi | --libd)
 
610
    ac_prev=libdir ;;
 
611
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
612
    libdir=$ac_optarg ;;
 
613
 
 
614
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
615
  | --libexe | --libex | --libe)
 
616
    ac_prev=libexecdir ;;
 
617
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
618
  | --libexe=* | --libex=* | --libe=*)
 
619
    libexecdir=$ac_optarg ;;
 
620
 
 
621
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
622
  | --localstate | --localstat | --localsta | --localst \
 
623
  | --locals | --local | --loca | --loc | --lo)
 
624
    ac_prev=localstatedir ;;
 
625
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
626
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
627
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
628
    localstatedir=$ac_optarg ;;
 
629
 
 
630
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
631
    ac_prev=mandir ;;
 
632
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
633
    mandir=$ac_optarg ;;
 
634
 
 
635
  -nfp | --nfp | --nf)
 
636
    # Obsolete; use --without-fp.
 
637
    with_fp=no ;;
 
638
 
 
639
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
640
  | --no-cr | --no-c | -n)
 
641
    no_create=yes ;;
 
642
 
 
643
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
644
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
645
    no_recursion=yes ;;
 
646
 
 
647
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
648
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
649
  | --oldin | --oldi | --old | --ol | --o)
 
650
    ac_prev=oldincludedir ;;
 
651
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
652
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
653
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
654
    oldincludedir=$ac_optarg ;;
 
655
 
 
656
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
657
    ac_prev=prefix ;;
 
658
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
659
    prefix=$ac_optarg ;;
 
660
 
 
661
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
662
  | --program-pre | --program-pr | --program-p)
 
663
    ac_prev=program_prefix ;;
 
664
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
665
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
666
    program_prefix=$ac_optarg ;;
 
667
 
 
668
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
669
  | --program-suf | --program-su | --program-s)
 
670
    ac_prev=program_suffix ;;
 
671
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
672
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
673
    program_suffix=$ac_optarg ;;
 
674
 
 
675
  -program-transform-name | --program-transform-name \
 
676
  | --program-transform-nam | --program-transform-na \
 
677
  | --program-transform-n | --program-transform- \
 
678
  | --program-transform | --program-transfor \
 
679
  | --program-transfo | --program-transf \
 
680
  | --program-trans | --program-tran \
 
681
  | --progr-tra | --program-tr | --program-t)
 
682
    ac_prev=program_transform_name ;;
 
683
  -program-transform-name=* | --program-transform-name=* \
 
684
  | --program-transform-nam=* | --program-transform-na=* \
 
685
  | --program-transform-n=* | --program-transform-=* \
 
686
  | --program-transform=* | --program-transfor=* \
 
687
  | --program-transfo=* | --program-transf=* \
 
688
  | --program-trans=* | --program-tran=* \
 
689
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
690
    program_transform_name=$ac_optarg ;;
 
691
 
 
692
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
693
  | -silent | --silent | --silen | --sile | --sil)
 
694
    silent=yes ;;
 
695
 
 
696
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
697
    ac_prev=sbindir ;;
 
698
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
699
  | --sbi=* | --sb=*)
 
700
    sbindir=$ac_optarg ;;
 
701
 
 
702
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
703
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
704
  | --sharedst | --shareds | --shared | --share | --shar \
 
705
  | --sha | --sh)
 
706
    ac_prev=sharedstatedir ;;
 
707
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
708
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
709
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
710
  | --sha=* | --sh=*)
 
711
    sharedstatedir=$ac_optarg ;;
 
712
 
 
713
  -site | --site | --sit)
 
714
    ac_prev=site ;;
 
715
  -site=* | --site=* | --sit=*)
 
716
    site=$ac_optarg ;;
 
717
 
 
718
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
719
    ac_prev=srcdir ;;
 
720
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
721
    srcdir=$ac_optarg ;;
 
722
 
 
723
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
724
  | --syscon | --sysco | --sysc | --sys | --sy)
 
725
    ac_prev=sysconfdir ;;
 
726
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
727
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
728
    sysconfdir=$ac_optarg ;;
 
729
 
 
730
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
731
    ac_prev=target_alias ;;
 
732
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
733
    target_alias=$ac_optarg ;;
 
734
 
 
735
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
736
    verbose=yes ;;
 
737
 
 
738
  -version | --version | --versio | --versi | --vers | -V)
 
739
    ac_init_version=: ;;
 
740
 
 
741
  -with-* | --with-*)
 
742
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
743
    # Reject names that are not valid shell variable names.
 
744
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
745
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
746
   { (exit 1); exit 1; }; }
 
747
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
748
    case $ac_option in
 
749
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
750
      *) ac_optarg=yes ;;
 
751
    esac
 
752
    eval "with_$ac_package='$ac_optarg'" ;;
 
753
 
 
754
  -without-* | --without-*)
 
755
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
756
    # Reject names that are not valid shell variable names.
 
757
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
758
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
759
   { (exit 1); exit 1; }; }
 
760
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
761
    eval "with_$ac_package=no" ;;
 
762
 
 
763
  --x)
 
764
    # Obsolete; use --with-x.
 
765
    with_x=yes ;;
 
766
 
 
767
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
768
  | --x-incl | --x-inc | --x-in | --x-i)
 
769
    ac_prev=x_includes ;;
 
770
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
771
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
772
    x_includes=$ac_optarg ;;
 
773
 
 
774
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
775
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
776
    ac_prev=x_libraries ;;
 
777
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
778
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
779
    x_libraries=$ac_optarg ;;
 
780
 
 
781
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
782
Try \`$0 --help' for more information." >&2
 
783
   { (exit 1); exit 1; }; }
 
784
    ;;
 
785
 
 
786
  *=*)
 
787
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
788
    # Reject names that are not valid shell variable names.
 
789
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
790
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
791
   { (exit 1); exit 1; }; }
 
792
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
793
    eval "$ac_envvar='$ac_optarg'"
 
794
    export $ac_envvar ;;
 
795
 
 
796
  *)
 
797
    # FIXME: should be removed in autoconf 3.0.
 
798
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
799
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
800
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
801
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
802
    ;;
 
803
 
 
804
  esac
 
805
done
 
806
 
 
807
if test -n "$ac_prev"; then
 
808
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
809
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
810
   { (exit 1); exit 1; }; }
 
811
fi
 
812
 
 
813
# Be sure to have absolute paths.
 
814
for ac_var in exec_prefix prefix
 
815
do
 
816
  eval ac_val=$`echo $ac_var`
 
817
  case $ac_val in
 
818
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
819
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
820
   { (exit 1); exit 1; }; };;
 
821
  esac
 
822
done
 
823
 
 
824
# Be sure to have absolute paths.
 
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
826
              localstatedir libdir includedir oldincludedir infodir mandir
 
827
do
 
828
  eval ac_val=$`echo $ac_var`
 
829
  case $ac_val in
 
830
    [\\/$]* | ?:[\\/]* ) ;;
 
831
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
832
   { (exit 1); exit 1; }; };;
 
833
  esac
 
834
done
 
835
 
 
836
# There might be people who depend on the old broken behavior: `$host'
 
837
# used to hold the argument of --host etc.
 
838
# FIXME: To remove some day.
 
839
build=$build_alias
 
840
host=$host_alias
 
841
target=$target_alias
 
842
 
 
843
# FIXME: To remove some day.
 
844
if test "x$host_alias" != x; then
 
845
  if test "x$build_alias" = x; then
 
846
    cross_compiling=maybe
 
847
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
848
    If a cross compiler is detected then cross compile mode will be used." >&2
 
849
  elif test "x$build_alias" != "x$host_alias"; then
 
850
    cross_compiling=yes
 
851
  fi
 
852
fi
 
853
 
 
854
ac_tool_prefix=
 
855
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
856
 
 
857
test "$silent" = yes && exec 6>/dev/null
 
858
 
 
859
 
 
860
# Find the source files, if location was not specified.
 
861
if test -z "$srcdir"; then
 
862
  ac_srcdir_defaulted=yes
 
863
  # Try the directory containing this script, then its parent.
 
864
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
866
         X"$0" : 'X\(//\)[^/]' \| \
 
867
         X"$0" : 'X\(//\)$' \| \
 
868
         X"$0" : 'X\(/\)' \| \
 
869
         .     : '\(.\)' 2>/dev/null ||
 
870
echo X"$0" |
 
871
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
872
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
873
          /^X\(\/\/\)$/{ s//\1/; q; }
 
874
          /^X\(\/\).*/{ s//\1/; q; }
 
875
          s/.*/./; q'`
 
876
  srcdir=$ac_confdir
 
877
  if test ! -r $srcdir/$ac_unique_file; then
 
878
    srcdir=..
 
879
  fi
 
880
else
 
881
  ac_srcdir_defaulted=no
 
882
fi
 
883
if test ! -r $srcdir/$ac_unique_file; then
 
884
  if test "$ac_srcdir_defaulted" = yes; then
 
885
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
886
   { (exit 1); exit 1; }; }
 
887
  else
 
888
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
889
   { (exit 1); exit 1; }; }
 
890
  fi
 
891
fi
 
892
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
893
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
894
   { (exit 1); exit 1; }; }
 
895
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
896
ac_env_build_alias_set=${build_alias+set}
 
897
ac_env_build_alias_value=$build_alias
 
898
ac_cv_env_build_alias_set=${build_alias+set}
 
899
ac_cv_env_build_alias_value=$build_alias
 
900
ac_env_host_alias_set=${host_alias+set}
 
901
ac_env_host_alias_value=$host_alias
 
902
ac_cv_env_host_alias_set=${host_alias+set}
 
903
ac_cv_env_host_alias_value=$host_alias
 
904
ac_env_target_alias_set=${target_alias+set}
 
905
ac_env_target_alias_value=$target_alias
 
906
ac_cv_env_target_alias_set=${target_alias+set}
 
907
ac_cv_env_target_alias_value=$target_alias
 
908
ac_env_CC_set=${CC+set}
 
909
ac_env_CC_value=$CC
 
910
ac_cv_env_CC_set=${CC+set}
 
911
ac_cv_env_CC_value=$CC
 
912
ac_env_CFLAGS_set=${CFLAGS+set}
 
913
ac_env_CFLAGS_value=$CFLAGS
 
914
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
915
ac_cv_env_CFLAGS_value=$CFLAGS
 
916
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
917
ac_env_LDFLAGS_value=$LDFLAGS
 
918
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
919
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
920
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
921
ac_env_CPPFLAGS_value=$CPPFLAGS
 
922
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
923
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
924
ac_env_CPP_set=${CPP+set}
 
925
ac_env_CPP_value=$CPP
 
926
ac_cv_env_CPP_set=${CPP+set}
 
927
ac_cv_env_CPP_value=$CPP
 
928
ac_env_CXX_set=${CXX+set}
 
929
ac_env_CXX_value=$CXX
 
930
ac_cv_env_CXX_set=${CXX+set}
 
931
ac_cv_env_CXX_value=$CXX
 
932
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
933
ac_env_CXXFLAGS_value=$CXXFLAGS
 
934
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
935
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
936
ac_env_CXXCPP_set=${CXXCPP+set}
 
937
ac_env_CXXCPP_value=$CXXCPP
 
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
939
ac_cv_env_CXXCPP_value=$CXXCPP
 
940
ac_env_F77_set=${F77+set}
 
941
ac_env_F77_value=$F77
 
942
ac_cv_env_F77_set=${F77+set}
 
943
ac_cv_env_F77_value=$F77
 
944
ac_env_FFLAGS_set=${FFLAGS+set}
 
945
ac_env_FFLAGS_value=$FFLAGS
 
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
947
ac_cv_env_FFLAGS_value=$FFLAGS
 
948
 
 
949
#
 
950
# Report the --help message.
 
951
#
 
952
if test "$ac_init_help" = "long"; then
 
953
  # Omit some internal or obsolete options to make the list less imposing.
 
954
  # This message is too long to be a string in the A/UX 3.1 sh.
 
955
  cat <<_ACEOF
 
956
\`configure' configures this package to adapt to many kinds of systems.
 
957
 
 
958
Usage: $0 [OPTION]... [VAR=VALUE]...
 
959
 
 
960
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
961
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
962
 
 
963
Defaults for the options are specified in brackets.
 
964
 
 
965
Configuration:
 
966
  -h, --help              display this help and exit
 
967
      --help=short        display options specific to this package
 
968
      --help=recursive    display the short help of all the included packages
 
969
  -V, --version           display version information and exit
 
970
  -q, --quiet, --silent   do not print \`checking...' messages
 
971
      --cache-file=FILE   cache test results in FILE [disabled]
 
972
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
973
  -n, --no-create         do not create output files
 
974
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
975
 
 
976
_ACEOF
 
977
 
 
978
  cat <<_ACEOF
 
979
Installation directories:
 
980
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
981
                          [$ac_default_prefix]
 
982
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
983
                          [PREFIX]
 
984
 
 
985
By default, \`make install' will install all the files in
 
986
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
987
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
988
for instance \`--prefix=\$HOME'.
 
989
 
 
990
For better control, use the options below.
 
991
 
 
992
Fine tuning of the installation directories:
 
993
  --bindir=DIR           user executables [EPREFIX/bin]
 
994
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
995
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
996
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
997
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
998
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
999
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1000
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1001
  --includedir=DIR       C header files [PREFIX/include]
 
1002
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1003
  --infodir=DIR          info documentation [PREFIX/info]
 
1004
  --mandir=DIR           man documentation [PREFIX/man]
 
1005
_ACEOF
 
1006
 
 
1007
  cat <<\_ACEOF
 
1008
 
 
1009
Program names:
 
1010
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1011
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1012
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1013
 
 
1014
System types:
 
1015
  --build=BUILD     configure for building on BUILD [guessed]
 
1016
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1017
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1018
_ACEOF
 
1019
fi
 
1020
 
 
1021
if test -n "$ac_init_help"; then
 
1022
 
 
1023
  cat <<\_ACEOF
 
1024
 
 
1025
Optional Features:
 
1026
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1027
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1028
  --disable-fast-perl     disable fast Makefile generation (needs perl)
 
1029
  --enable-debug=ARG      enables debug symbols (yes|no|full) default=no
 
1030
  --disable-debug         disables debug output and debug symbols default=no
 
1031
  --enable-strict         compiles with strict compiler options (may not
 
1032
                          work!)
 
1033
  --disable-warnings      disables compilation with -Wall and similar
 
1034
  --enable-profile        creates profiling infos default=no
 
1035
  --disable-dependency-tracking  speeds up one-time build
 
1036
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1037
  --enable-pch            enables precompiled header support (currently only
 
1038
                          KCC or gcc >=3.4+unsermake) default=no
 
1039
  --disable-as-needed     disable the --as-needed flag for the linker
 
1040
  --enable-final          build size optimized apps (experimental - needs lots
 
1041
                          of memory)
 
1042
  --enable-closure        delay template instantiation
 
1043
  --enable-nmcheck        enable automatic namespace cleanness check
 
1044
  --enable-shared[=PKGS]
 
1045
                          build shared libraries [default=yes]
 
1046
  --enable-static[=PKGS]
 
1047
                          build static libraries [default=no]
 
1048
  --enable-libsuffix      /lib directory suffix (64,32,none=default)
 
1049
  --enable-fast-install[=PKGS]
 
1050
                          optimize for fast installation [default=yes]
 
1051
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1052
  --enable-embedded       link to Qt-embedded, don't use X
 
1053
  --enable-qtopia         link to Qt-embedded, link to the Qtopia Environment
 
1054
  --enable-mac            link to Qt/Mac (don't use X)
 
1055
  --disable-mt            link to non-threaded Qt (deprecated)
 
1056
  --disable-threading     disables threading even if libpthread found
 
1057
  --disable-rpath         do not use the rpath feature of ld
 
1058
  --disable-path-check    don't try to find out, where to install
 
1059
 
 
1060
Optional Packages:
 
1061
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1062
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1063
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1064
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1065
                          both]
 
1066
  --with-tags[=TAGS]
 
1067
                          include additional configurations [automatic]
 
1068
  --with-extra-includes=DIR
 
1069
                          adds non standard include paths
 
1070
  --with-extra-libs=DIR   adds non standard library paths
 
1071
  --with-qt-dir=DIR       where the root of Qt is installed
 
1072
  --with-qt-includes=DIR  where the Qt includes are.
 
1073
  --with-qt-libraries=DIR where the Qt library is installed.
 
1074
  --without-arts          build without aRts default=no
 
1075
 
 
1076
Some influential environment variables:
 
1077
  CC          C compiler command
 
1078
  CFLAGS      C compiler flags
 
1079
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1080
              nonstandard directory <lib dir>
 
1081
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1082
              headers in a nonstandard directory <include dir>
 
1083
  CPP         C preprocessor
 
1084
  CXX         C++ compiler command
 
1085
  CXXFLAGS    C++ compiler flags
 
1086
  CXXCPP      C++ preprocessor
 
1087
  F77         Fortran 77 compiler command
 
1088
  FFLAGS      Fortran 77 compiler flags
 
1089
 
 
1090
Use these variables to override the choices made by `configure' or to help
 
1091
it to find libraries and programs with nonstandard names/locations.
 
1092
 
 
1093
_ACEOF
 
1094
fi
 
1095
 
 
1096
if test "$ac_init_help" = "recursive"; then
 
1097
  # If there are subdirs, report their specific --help.
 
1098
  ac_popdir=`pwd`
 
1099
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1100
    test -d $ac_dir || continue
 
1101
    ac_builddir=.
 
1102
 
 
1103
if test "$ac_dir" != .; then
 
1104
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1105
  # A "../" for each directory in $ac_dir_suffix.
 
1106
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1107
else
 
1108
  ac_dir_suffix= ac_top_builddir=
 
1109
fi
 
1110
 
 
1111
case $srcdir in
 
1112
  .)  # No --srcdir option.  We are building in place.
 
1113
    ac_srcdir=.
 
1114
    if test -z "$ac_top_builddir"; then
 
1115
       ac_top_srcdir=.
 
1116
    else
 
1117
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1118
    fi ;;
 
1119
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1120
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1121
    ac_top_srcdir=$srcdir ;;
 
1122
  *) # Relative path.
 
1123
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1124
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1125
esac
 
1126
 
 
1127
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1128
# the directories may not exist.
 
1129
case `pwd` in
 
1130
.) ac_abs_builddir="$ac_dir";;
 
1131
*)
 
1132
  case "$ac_dir" in
 
1133
  .) ac_abs_builddir=`pwd`;;
 
1134
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1135
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1136
  esac;;
 
1137
esac
 
1138
case $ac_abs_builddir in
 
1139
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1140
*)
 
1141
  case ${ac_top_builddir}. in
 
1142
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1143
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1144
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1145
  esac;;
 
1146
esac
 
1147
case $ac_abs_builddir in
 
1148
.) ac_abs_srcdir=$ac_srcdir;;
 
1149
*)
 
1150
  case $ac_srcdir in
 
1151
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1152
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1153
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1154
  esac;;
 
1155
esac
 
1156
case $ac_abs_builddir in
 
1157
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1158
*)
 
1159
  case $ac_top_srcdir in
 
1160
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1161
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1162
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1163
  esac;;
 
1164
esac
 
1165
 
 
1166
    cd $ac_dir
 
1167
    # Check for guested configure; otherwise get Cygnus style configure.
 
1168
    if test -f $ac_srcdir/configure.gnu; then
 
1169
      echo
 
1170
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1171
    elif test -f $ac_srcdir/configure; then
 
1172
      echo
 
1173
      $SHELL $ac_srcdir/configure  --help=recursive
 
1174
    elif test -f $ac_srcdir/configure.ac ||
 
1175
           test -f $ac_srcdir/configure.in; then
 
1176
      echo
 
1177
      $ac_configure --help
 
1178
    else
 
1179
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1180
    fi
 
1181
    cd $ac_popdir
 
1182
  done
 
1183
fi
 
1184
 
 
1185
test -n "$ac_init_help" && exit 0
 
1186
if $ac_init_version; then
 
1187
  cat <<\_ACEOF
 
1188
 
 
1189
Copyright (C) 2003 Free Software Foundation, Inc.
 
1190
This configure script is free software; the Free Software Foundation
 
1191
gives unlimited permission to copy, distribute and modify it.
 
1192
_ACEOF
 
1193
  exit 0
 
1194
fi
 
1195
exec 5>config.log
 
1196
cat >&5 <<_ACEOF
 
1197
This file contains any messages produced by compilers while
 
1198
running configure, to aid debugging if configure makes a mistake.
 
1199
 
 
1200
It was created by $as_me, which was
 
1201
generated by GNU Autoconf 2.59.  Invocation command line was
 
1202
 
 
1203
  $ $0 $@
 
1204
 
 
1205
_ACEOF
 
1206
{
 
1207
cat <<_ASUNAME
 
1208
## --------- ##
 
1209
## Platform. ##
 
1210
## --------- ##
 
1211
 
 
1212
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1213
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1214
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1215
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1216
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1217
 
 
1218
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1219
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1220
 
 
1221
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1222
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1223
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1224
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1225
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1226
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1227
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1228
 
 
1229
_ASUNAME
 
1230
 
 
1231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1232
for as_dir in $PATH
 
1233
do
 
1234
  IFS=$as_save_IFS
 
1235
  test -z "$as_dir" && as_dir=.
 
1236
  echo "PATH: $as_dir"
 
1237
done
 
1238
 
 
1239
} >&5
 
1240
 
 
1241
cat >&5 <<_ACEOF
 
1242
 
 
1243
 
 
1244
## ----------- ##
 
1245
## Core tests. ##
 
1246
## ----------- ##
 
1247
 
 
1248
_ACEOF
 
1249
 
 
1250
 
 
1251
# Keep a trace of the command line.
 
1252
# Strip out --no-create and --no-recursion so they do not pile up.
 
1253
# Strip out --silent because we don't want to record it for future runs.
 
1254
# Also quote any args containing shell meta-characters.
 
1255
# Make two passes to allow for proper duplicate-argument suppression.
 
1256
ac_configure_args=
 
1257
ac_configure_args0=
 
1258
ac_configure_args1=
 
1259
ac_sep=
 
1260
ac_must_keep_next=false
 
1261
for ac_pass in 1 2
 
1262
do
 
1263
  for ac_arg
 
1264
  do
 
1265
    case $ac_arg in
 
1266
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1267
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1268
    | -silent | --silent | --silen | --sile | --sil)
 
1269
      continue ;;
 
1270
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1271
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1272
    esac
 
1273
    case $ac_pass in
 
1274
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1275
    2)
 
1276
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1277
      if test $ac_must_keep_next = true; then
 
1278
        ac_must_keep_next=false # Got value, back to normal.
 
1279
      else
 
1280
        case $ac_arg in
 
1281
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1282
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1283
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1284
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1285
            case "$ac_configure_args0 " in
 
1286
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1287
            esac
 
1288
            ;;
 
1289
          -* ) ac_must_keep_next=true ;;
 
1290
        esac
 
1291
      fi
 
1292
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1293
      # Get rid of the leading space.
 
1294
      ac_sep=" "
 
1295
      ;;
 
1296
    esac
 
1297
  done
 
1298
done
 
1299
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1300
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1301
 
 
1302
# When interrupted or exit'd, cleanup temporary files, and complete
 
1303
# config.log.  We remove comments because anyway the quotes in there
 
1304
# would cause problems or look ugly.
 
1305
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1306
# such as our DU 5.0 friend, will then `close' the trap.
 
1307
trap 'exit_status=$?
 
1308
  # Save into config.log some information that might help in debugging.
 
1309
  {
 
1310
    echo
 
1311
 
 
1312
    cat <<\_ASBOX
 
1313
## ---------------- ##
 
1314
## Cache variables. ##
 
1315
## ---------------- ##
 
1316
_ASBOX
 
1317
    echo
 
1318
    # The following way of writing the cache mishandles newlines in values,
 
1319
{
 
1320
  (set) 2>&1 |
 
1321
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1322
    *ac_space=\ *)
 
1323
      sed -n \
 
1324
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1325
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1326
      ;;
 
1327
    *)
 
1328
      sed -n \
 
1329
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1330
      ;;
 
1331
    esac;
 
1332
}
 
1333
    echo
 
1334
 
 
1335
    cat <<\_ASBOX
 
1336
## ----------------- ##
 
1337
## Output variables. ##
 
1338
## ----------------- ##
 
1339
_ASBOX
 
1340
    echo
 
1341
    for ac_var in $ac_subst_vars
 
1342
    do
 
1343
      eval ac_val=$`echo $ac_var`
 
1344
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1345
    done | sort
 
1346
    echo
 
1347
 
 
1348
    if test -n "$ac_subst_files"; then
 
1349
      cat <<\_ASBOX
 
1350
## ------------- ##
 
1351
## Output files. ##
 
1352
## ------------- ##
 
1353
_ASBOX
 
1354
      echo
 
1355
      for ac_var in $ac_subst_files
 
1356
      do
 
1357
        eval ac_val=$`echo $ac_var`
 
1358
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1359
      done | sort
 
1360
      echo
 
1361
    fi
 
1362
 
 
1363
    if test -s confdefs.h; then
 
1364
      cat <<\_ASBOX
 
1365
## ----------- ##
 
1366
## confdefs.h. ##
 
1367
## ----------- ##
 
1368
_ASBOX
 
1369
      echo
 
1370
      sed "/^$/d" confdefs.h | sort
 
1371
      echo
 
1372
    fi
 
1373
    test "$ac_signal" != 0 &&
 
1374
      echo "$as_me: caught signal $ac_signal"
 
1375
    echo "$as_me: exit $exit_status"
 
1376
  } >&5
 
1377
  rm -f core *.core &&
 
1378
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1379
    exit $exit_status
 
1380
     ' 0
 
1381
for ac_signal in 1 2 13 15; do
 
1382
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1383
done
 
1384
ac_signal=0
 
1385
 
 
1386
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1387
rm -rf conftest* confdefs.h
 
1388
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1389
echo >confdefs.h
 
1390
 
 
1391
# Predefined preprocessor variables.
 
1392
 
 
1393
cat >>confdefs.h <<_ACEOF
 
1394
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1395
_ACEOF
 
1396
 
 
1397
 
 
1398
cat >>confdefs.h <<_ACEOF
 
1399
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1400
_ACEOF
 
1401
 
 
1402
 
 
1403
cat >>confdefs.h <<_ACEOF
 
1404
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1405
_ACEOF
 
1406
 
 
1407
 
 
1408
cat >>confdefs.h <<_ACEOF
 
1409
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1410
_ACEOF
 
1411
 
 
1412
 
 
1413
cat >>confdefs.h <<_ACEOF
 
1414
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1415
_ACEOF
 
1416
 
 
1417
 
 
1418
# Let the site file select an alternate cache file if it wants to.
 
1419
# Prefer explicitly selected file to automatically selected ones.
 
1420
if test -z "$CONFIG_SITE"; then
 
1421
  if test "x$prefix" != xNONE; then
 
1422
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1423
  else
 
1424
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1425
  fi
 
1426
fi
 
1427
for ac_site_file in $CONFIG_SITE; do
 
1428
  if test -r "$ac_site_file"; then
 
1429
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1430
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1431
    sed 's/^/| /' "$ac_site_file" >&5
 
1432
    . "$ac_site_file"
 
1433
  fi
 
1434
done
 
1435
 
 
1436
if test -r "$cache_file"; then
 
1437
  # Some versions of bash will fail to source /dev/null (special
 
1438
  # files actually), so we avoid doing that.
 
1439
  if test -f "$cache_file"; then
 
1440
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1441
echo "$as_me: loading cache $cache_file" >&6;}
 
1442
    case $cache_file in
 
1443
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1444
      *)                      . ./$cache_file;;
 
1445
    esac
 
1446
  fi
 
1447
else
 
1448
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1449
echo "$as_me: creating cache $cache_file" >&6;}
 
1450
  >$cache_file
 
1451
fi
 
1452
 
 
1453
# Check that the precious variables saved in the cache have kept the same
 
1454
# value.
 
1455
ac_cache_corrupted=false
 
1456
for ac_var in `(set) 2>&1 |
 
1457
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1458
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1459
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1460
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1461
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1462
  case $ac_old_set,$ac_new_set in
 
1463
    set,)
 
1464
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1465
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1466
      ac_cache_corrupted=: ;;
 
1467
    ,set)
 
1468
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1469
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1470
      ac_cache_corrupted=: ;;
 
1471
    ,);;
 
1472
    *)
 
1473
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1474
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1475
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1476
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1477
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1478
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1479
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1480
        ac_cache_corrupted=:
 
1481
      fi;;
 
1482
  esac
 
1483
  # Pass precious variables to config.status.
 
1484
  if test "$ac_new_set" = set; then
 
1485
    case $ac_new_val in
 
1486
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1487
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1488
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1489
    esac
 
1490
    case " $ac_configure_args " in
 
1491
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1492
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1493
    esac
 
1494
  fi
 
1495
done
 
1496
if $ac_cache_corrupted; then
 
1497
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1498
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1499
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1500
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1501
   { (exit 1); exit 1; }; }
 
1502
fi
 
1503
 
 
1504
ac_ext=c
 
1505
ac_cpp='$CPP $CPPFLAGS'
 
1506
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1507
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1508
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
 
1524
 
 
1525
 
 
1526
 
 
1527
 
 
1528
ac_aux_dir=
 
1529
for ac_dir in admin $srcdir/admin; do
 
1530
  if test -f $ac_dir/install-sh; then
 
1531
    ac_aux_dir=$ac_dir
 
1532
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1533
    break
 
1534
  elif test -f $ac_dir/install.sh; then
 
1535
    ac_aux_dir=$ac_dir
 
1536
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1537
    break
 
1538
  elif test -f $ac_dir/shtool; then
 
1539
    ac_aux_dir=$ac_dir
 
1540
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1541
    break
 
1542
  fi
 
1543
done
 
1544
if test -z "$ac_aux_dir"; then
 
1545
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
 
1546
echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
 
1547
   { (exit 1); exit 1; }; }
 
1548
fi
 
1549
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1550
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1551
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1552
 
 
1553
 
 
1554
unset CDPATH
 
1555
 
 
1556
# Make sure we can run config.sub.
 
1557
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1558
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1559
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1560
   { (exit 1); exit 1; }; }
 
1561
 
 
1562
echo "$as_me:$LINENO: checking build system type" >&5
 
1563
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1564
if test "${ac_cv_build+set}" = set; then
 
1565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1566
else
 
1567
  ac_cv_build_alias=$build_alias
 
1568
test -z "$ac_cv_build_alias" &&
 
1569
  ac_cv_build_alias=`$ac_config_guess`
 
1570
test -z "$ac_cv_build_alias" &&
 
1571
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1572
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1573
   { (exit 1); exit 1; }; }
 
1574
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1575
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1576
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1577
   { (exit 1); exit 1; }; }
 
1578
 
 
1579
fi
 
1580
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1581
echo "${ECHO_T}$ac_cv_build" >&6
 
1582
build=$ac_cv_build
 
1583
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1584
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1585
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1586
 
 
1587
 
 
1588
echo "$as_me:$LINENO: checking host system type" >&5
 
1589
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1590
if test "${ac_cv_host+set}" = set; then
 
1591
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1592
else
 
1593
  ac_cv_host_alias=$host_alias
 
1594
test -z "$ac_cv_host_alias" &&
 
1595
  ac_cv_host_alias=$ac_cv_build_alias
 
1596
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1597
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1598
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1599
   { (exit 1); exit 1; }; }
 
1600
 
 
1601
fi
 
1602
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1603
echo "${ECHO_T}$ac_cv_host" >&6
 
1604
host=$ac_cv_host
 
1605
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1606
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1607
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1608
 
 
1609
 
 
1610
echo "$as_me:$LINENO: checking target system type" >&5
 
1611
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1612
if test "${ac_cv_target+set}" = set; then
 
1613
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1614
else
 
1615
  ac_cv_target_alias=$target_alias
 
1616
test "x$ac_cv_target_alias" = "x" &&
 
1617
  ac_cv_target_alias=$ac_cv_host_alias
 
1618
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1619
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1620
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1621
   { (exit 1); exit 1; }; }
 
1622
 
 
1623
fi
 
1624
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1625
echo "${ECHO_T}$ac_cv_target" >&6
 
1626
target=$ac_cv_target
 
1627
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1628
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1629
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1630
 
 
1631
 
 
1632
# The aliases save the names the user supplied, while $host etc.
 
1633
# will get canonicalized.
 
1634
test -n "$target_alias" &&
 
1635
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1636
    NONENONEs,x,x, &&
 
1637
  program_prefix=${target_alias}-
 
1638
test "$program_prefix" != NONE &&
 
1639
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1640
# Use a double $ so make ignores it.
 
1641
test "$program_suffix" != NONE &&
 
1642
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1643
# Double any \ or $.  echo might interpret backslashes.
 
1644
# By default was `s,x,x', remove it if useless.
 
1645
cat <<\_ACEOF >conftest.sed
 
1646
s/[\\$]/&&/g;s/;s,x,x,$//
 
1647
_ACEOF
 
1648
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1649
rm conftest.sed
 
1650
 
 
1651
 
 
1652
am__api_version="1.9"
 
1653
 
 
1654
 
 
1655
          test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
 
1656
  test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
 
1657
  test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
 
1658
  # Find a good install program.  We prefer a C program (faster),
 
1659
# so one script is as good as another.  But avoid the broken or
 
1660
# incompatible versions:
 
1661
# SysV /etc/install, /usr/sbin/install
 
1662
# SunOS /usr/etc/install
 
1663
# IRIX /sbin/install
 
1664
# AIX /bin/install
 
1665
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1666
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1667
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1668
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1669
# OS/2's system install, which has a completely different semantic
 
1670
# ./install, which can be erroneously created by make from ./install.sh.
 
1671
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1672
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1673
if test -z "$INSTALL"; then
 
1674
if test "${ac_cv_path_install+set}" = set; then
 
1675
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1676
else
 
1677
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1678
for as_dir in $PATH
 
1679
do
 
1680
  IFS=$as_save_IFS
 
1681
  test -z "$as_dir" && as_dir=.
 
1682
  # Account for people who put trailing slashes in PATH elements.
 
1683
case $as_dir/ in
 
1684
  ./ | .// | /cC/* | \
 
1685
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1686
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1687
  /usr/ucb/* ) ;;
 
1688
  *)
 
1689
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1690
    # Don't use installbsd from OSF since it installs stuff as root
 
1691
    # by default.
 
1692
    for ac_prog in ginstall scoinst install; do
 
1693
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1694
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1695
          if test $ac_prog = install &&
 
1696
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1697
            # AIX install.  It has an incompatible calling convention.
 
1698
            :
 
1699
          elif test $ac_prog = install &&
 
1700
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1701
            # program-specific install script used by HP pwplus--don't use.
 
1702
            :
 
1703
          else
 
1704
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1705
            break 3
 
1706
          fi
 
1707
        fi
 
1708
      done
 
1709
    done
 
1710
    ;;
 
1711
esac
 
1712
done
 
1713
 
 
1714
 
 
1715
fi
 
1716
  if test "${ac_cv_path_install+set}" = set; then
 
1717
    INSTALL=$ac_cv_path_install
 
1718
  else
 
1719
    # As a last resort, use the slow shell script.  We don't cache a
 
1720
    # path for INSTALL within a source directory, because that will
 
1721
    # break other packages using the cache if that directory is
 
1722
    # removed, or if the path is relative.
 
1723
    INSTALL=$ac_install_sh
 
1724
  fi
 
1725
fi
 
1726
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1727
echo "${ECHO_T}$INSTALL" >&6
 
1728
 
 
1729
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1730
# It thinks the first close brace ends the variable substitution.
 
1731
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1732
 
 
1733
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1734
 
 
1735
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1736
 
 
1737
 
 
1738
  if test -z "$kde_save_INSTALL_given" ; then
 
1739
    # OK, user hasn't given any INSTALL, autoconf found one for us
 
1740
    # now we test, if it supports the -p flag
 
1741
    echo "$as_me:$LINENO: checking for -p flag to install" >&5
 
1742
echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6
 
1743
    rm -f confinst.$$.* > /dev/null 2>&1
 
1744
    echo "Testtest" > confinst.$$.orig
 
1745
    ac_res=no
 
1746
    if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
 
1747
      if test -f confinst.$$.new ; then
 
1748
        # OK, -p seems to do no harm to install
 
1749
        INSTALL="${INSTALL} -p"
 
1750
        ac_res=yes
 
1751
      fi
 
1752
    fi
 
1753
    rm -f confinst.$$.*
 
1754
    echo "$as_me:$LINENO: result: $ac_res" >&5
 
1755
echo "${ECHO_T}$ac_res" >&6
 
1756
  fi
 
1757
 
 
1758
  if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
 
1759
    INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
 
1760
  fi
 
1761
  if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
 
1762
    INSTALL_SCRIPT='${INSTALL}'
 
1763
  fi
 
1764
 
 
1765
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1766
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1767
# Just in case
 
1768
sleep 1
 
1769
echo timestamp > conftest.file
 
1770
# Do `set' in a subshell so we don't clobber the current shell's
 
1771
# arguments.  Must try -L first in case configure is actually a
 
1772
# symlink; some systems play weird games with the mod time of symlinks
 
1773
# (eg FreeBSD returns the mod time of the symlink's containing
 
1774
# directory).
 
1775
if (
 
1776
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1777
   if test "$*" = "X"; then
 
1778
      # -L didn't work.
 
1779
      set X `ls -t $srcdir/configure conftest.file`
 
1780
   fi
 
1781
   rm -f conftest.file
 
1782
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1783
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1784
 
 
1785
      # If neither matched, then we have a broken ls.  This can happen
 
1786
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1787
      # broken ls alias from the environment.  This has actually
 
1788
      # happened.  Such a system could not be considered "sane".
 
1789
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1790
alias in your environment" >&5
 
1791
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1792
alias in your environment" >&2;}
 
1793
   { (exit 1); exit 1; }; }
 
1794
   fi
 
1795
 
 
1796
   test "$2" = conftest.file
 
1797
   )
 
1798
then
 
1799
   # Ok.
 
1800
   :
 
1801
else
 
1802
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1803
Check your system clock" >&5
 
1804
echo "$as_me: error: newly created file is older than distributed files!
 
1805
Check your system clock" >&2;}
 
1806
   { (exit 1); exit 1; }; }
 
1807
fi
 
1808
echo "$as_me:$LINENO: result: yes" >&5
 
1809
echo "${ECHO_T}yes" >&6
 
1810
# expand $ac_aux_dir to an absolute path
 
1811
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1812
 
 
1813
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1814
# Use eval to expand $SHELL
 
1815
if eval "$MISSING --run true"; then
 
1816
  am_missing_run="$MISSING --run "
 
1817
else
 
1818
  am_missing_run=
 
1819
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1820
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1821
fi
 
1822
 
 
1823
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1824
  # We used to keeping the `.' as first argument, in order to
 
1825
  # allow $(mkdir_p) to be used without argument.  As in
 
1826
  #   $(mkdir_p) $(somedir)
 
1827
  # where $(somedir) is conditionally defined.  However this is wrong
 
1828
  # for two reasons:
 
1829
  #  1. if the package is installed by a user who cannot write `.'
 
1830
  #     make install will fail,
 
1831
  #  2. the above comment should most certainly read
 
1832
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1833
  #     so it does not work when $(somedir) is undefined and
 
1834
  #     $(DESTDIR) is not.
 
1835
  #  To support the latter case, we have to write
 
1836
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1837
  #  so the `.' trick is pointless.
 
1838
  mkdir_p='mkdir -p --'
 
1839
else
 
1840
  # On NextStep and OpenStep, the `mkdir' command does not
 
1841
  # recognize any option.  It will interpret all options as
 
1842
  # directories to create, and then abort because `.' already
 
1843
  # exists.
 
1844
  for d in ./-p ./--version;
 
1845
  do
 
1846
    test -d $d && rmdir $d
 
1847
  done
 
1848
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1849
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1850
    mkdir_p='$(mkinstalldirs)'
 
1851
  else
 
1852
    mkdir_p='$(install_sh) -d'
 
1853
  fi
 
1854
fi
 
1855
 
 
1856
for ac_prog in gawk mawk nawk awk
 
1857
do
 
1858
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1859
set dummy $ac_prog; ac_word=$2
 
1860
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1861
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1862
if test "${ac_cv_prog_AWK+set}" = set; then
 
1863
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1864
else
 
1865
  if test -n "$AWK"; then
 
1866
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1867
else
 
1868
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1869
for as_dir in $PATH
 
1870
do
 
1871
  IFS=$as_save_IFS
 
1872
  test -z "$as_dir" && as_dir=.
 
1873
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1874
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1875
    ac_cv_prog_AWK="$ac_prog"
 
1876
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1877
    break 2
 
1878
  fi
 
1879
done
 
1880
done
 
1881
 
 
1882
fi
 
1883
fi
 
1884
AWK=$ac_cv_prog_AWK
 
1885
if test -n "$AWK"; then
 
1886
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1887
echo "${ECHO_T}$AWK" >&6
 
1888
else
 
1889
  echo "$as_me:$LINENO: result: no" >&5
 
1890
echo "${ECHO_T}no" >&6
 
1891
fi
 
1892
 
 
1893
  test -n "$AWK" && break
 
1894
done
 
1895
 
 
1896
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1897
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1898
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1899
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1900
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1901
else
 
1902
  cat >conftest.make <<\_ACEOF
 
1903
all:
 
1904
        @echo 'ac_maketemp="$(MAKE)"'
 
1905
_ACEOF
 
1906
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1907
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1908
if test -n "$ac_maketemp"; then
 
1909
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1910
else
 
1911
  eval ac_cv_prog_make_${ac_make}_set=no
 
1912
fi
 
1913
rm -f conftest.make
 
1914
fi
 
1915
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1916
  echo "$as_me:$LINENO: result: yes" >&5
 
1917
echo "${ECHO_T}yes" >&6
 
1918
  SET_MAKE=
 
1919
else
 
1920
  echo "$as_me:$LINENO: result: no" >&5
 
1921
echo "${ECHO_T}no" >&6
 
1922
  SET_MAKE="MAKE=${MAKE-make}"
 
1923
fi
 
1924
 
 
1925
rm -rf .tst 2>/dev/null
 
1926
mkdir .tst 2>/dev/null
 
1927
if test -d .tst; then
 
1928
  am__leading_dot=.
 
1929
else
 
1930
  am__leading_dot=_
 
1931
fi
 
1932
rmdir .tst 2>/dev/null
 
1933
 
 
1934
# test to see if srcdir already configured
 
1935
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1936
   test -f $srcdir/config.status; then
 
1937
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1938
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1939
   { (exit 1); exit 1; }; }
 
1940
fi
 
1941
 
 
1942
# test whether we have cygpath
 
1943
if test -z "$CYGPATH_W"; then
 
1944
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1945
    CYGPATH_W='cygpath -w'
 
1946
  else
 
1947
    CYGPATH_W=echo
 
1948
  fi
 
1949
fi
 
1950
 
 
1951
 
 
1952
# Define the identity of the package.
 
1953
 PACKAGE=gtkqtengine
 
1954
 VERSION=0.6
 
1955
 
 
1956
 
 
1957
cat >>confdefs.h <<_ACEOF
 
1958
#define PACKAGE "$PACKAGE"
 
1959
_ACEOF
 
1960
 
 
1961
 
 
1962
cat >>confdefs.h <<_ACEOF
 
1963
#define VERSION "$VERSION"
 
1964
_ACEOF
 
1965
 
 
1966
# Some tools Automake needs.
 
1967
 
 
1968
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1969
 
 
1970
 
 
1971
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1972
 
 
1973
 
 
1974
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1975
 
 
1976
 
 
1977
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1978
 
 
1979
 
 
1980
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1981
 
 
1982
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1983
 
 
1984
# Installed binaries are usually stripped using `strip' when the user
 
1985
# run `make install-strip'.  However `strip' might not be the right
 
1986
# tool to use in cross-compilation environments, therefore Automake
 
1987
# will honor the `STRIP' environment variable to overrule this program.
 
1988
if test "$cross_compiling" != no; then
 
1989
  if test -n "$ac_tool_prefix"; then
 
1990
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1991
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1992
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1993
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1994
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1995
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1996
else
 
1997
  if test -n "$STRIP"; then
 
1998
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1999
else
 
2000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2001
for as_dir in $PATH
 
2002
do
 
2003
  IFS=$as_save_IFS
 
2004
  test -z "$as_dir" && as_dir=.
 
2005
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2006
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2007
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2008
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2009
    break 2
 
2010
  fi
 
2011
done
 
2012
done
 
2013
 
 
2014
fi
 
2015
fi
 
2016
STRIP=$ac_cv_prog_STRIP
 
2017
if test -n "$STRIP"; then
 
2018
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
2019
echo "${ECHO_T}$STRIP" >&6
 
2020
else
 
2021
  echo "$as_me:$LINENO: result: no" >&5
 
2022
echo "${ECHO_T}no" >&6
 
2023
fi
 
2024
 
 
2025
fi
 
2026
if test -z "$ac_cv_prog_STRIP"; then
 
2027
  ac_ct_STRIP=$STRIP
 
2028
  # Extract the first word of "strip", so it can be a program name with args.
 
2029
set dummy strip; ac_word=$2
 
2030
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2031
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2032
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2034
else
 
2035
  if test -n "$ac_ct_STRIP"; then
 
2036
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2037
else
 
2038
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2039
for as_dir in $PATH
 
2040
do
 
2041
  IFS=$as_save_IFS
 
2042
  test -z "$as_dir" && as_dir=.
 
2043
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2044
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2045
    ac_cv_prog_ac_ct_STRIP="strip"
 
2046
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2047
    break 2
 
2048
  fi
 
2049
done
 
2050
done
 
2051
 
 
2052
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
2053
fi
 
2054
fi
 
2055
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2056
if test -n "$ac_ct_STRIP"; then
 
2057
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2058
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
2059
else
 
2060
  echo "$as_me:$LINENO: result: no" >&5
 
2061
echo "${ECHO_T}no" >&6
 
2062
fi
 
2063
 
 
2064
  STRIP=$ac_ct_STRIP
 
2065
else
 
2066
  STRIP="$ac_cv_prog_STRIP"
 
2067
fi
 
2068
 
 
2069
fi
 
2070
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2071
 
 
2072
# We need awk for the "check" target.  The system "awk" is bad on
 
2073
# some platforms.
 
2074
# Always define AMTAR for backward compatibility.
 
2075
 
 
2076
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2077
 
 
2078
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2079
 
 
2080
 
 
2081
 
 
2082
 
 
2083
 
 
2084
 
 
2085
  unset CDPATH
 
2086
 
 
2087
 
 
2088
 
 
2089
    kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
 
2090
    test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
 
2091
    if test -n "$KDEDIRS"; then
 
2092
       kde_save_IFS=$IFS
 
2093
       IFS=:
 
2094
       for dir in $KDEDIRS; do
 
2095
            kde_default_bindirs="$dir/bin $kde_default_bindirs "
 
2096
       done
 
2097
       IFS=$kde_save_IFS
 
2098
    fi
 
2099
 
 
2100
  if test "x$prefix" = "xNONE"; then
 
2101
 
 
2102
   echo "$as_me:$LINENO: checking for kde-config" >&5
 
2103
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6
 
2104
   if test -n "$KDECONFIG"; then
 
2105
        kde_cv_path="$KDECONFIG";
 
2106
   else
 
2107
        kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
 
2108
 
 
2109
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
2110
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2111
else
 
2112
 
 
2113
        kde_cv_path="NONE"
 
2114
        kde_save_IFS=$IFS
 
2115
        IFS=':'
 
2116
        dirs=""
 
2117
        for dir in $PATH; do
 
2118
          dirs="$dirs $dir"
 
2119
        done
 
2120
        if test -z "prepend"; then        dirs="$kde_default_bindirs $dirs"
 
2121
        else      dirs="$dirs $kde_default_bindirs"
 
2122
        fi
 
2123
        IFS=$kde_save_IFS
 
2124
 
 
2125
        for dir in $dirs; do
 
2126
          if test -x "$dir/kde-config"; then
 
2127
            if test -n ""
 
2128
            then
 
2129
              evalstr="$dir/kde-config  2>&1 "
 
2130
              if eval $evalstr; then
 
2131
                kde_cv_path="$dir/kde-config"
 
2132
                break
 
2133
              fi
 
2134
            else
 
2135
                kde_cv_path="$dir/kde-config"
 
2136
                break
 
2137
            fi
 
2138
          fi
 
2139
        done
 
2140
 
 
2141
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
2142
 
 
2143
 
 
2144
fi
 
2145
 
 
2146
 
 
2147
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
2148
 
 
2149
   fi
 
2150
 
 
2151
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
2152
      echo "$as_me:$LINENO: result: not found" >&5
 
2153
echo "${ECHO_T}not found" >&6
 
2154
 
 
2155
    { { echo "$as_me:$LINENO: error: The important program kde-config was not found!
 
2156
Please check whether you installed KDE correctly.
 
2157
" >&5
 
2158
echo "$as_me: error: The important program kde-config was not found!
 
2159
Please check whether you installed KDE correctly.
 
2160
" >&2;}
 
2161
   { (exit 1); exit 1; }; }
 
2162
 
 
2163
   else
 
2164
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
2165
echo "${ECHO_T}$kde_cv_path" >&6
 
2166
      KDECONFIG=$kde_cv_path
 
2167
 
 
2168
   fi
 
2169
 
 
2170
  else
 
2171
        kde_save_PATH="$PATH"
 
2172
    PATH="$exec_prefix/bin:$prefix/bin:$PATH"
 
2173
 
 
2174
   echo "$as_me:$LINENO: checking for kde-config" >&5
 
2175
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6
 
2176
   if test -n "$KDECONFIG"; then
 
2177
        kde_cv_path="$KDECONFIG";
 
2178
   else
 
2179
        kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
 
2180
 
 
2181
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
2182
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2183
else
 
2184
 
 
2185
        kde_cv_path="NONE"
 
2186
        kde_save_IFS=$IFS
 
2187
        IFS=':'
 
2188
        dirs=""
 
2189
        for dir in $PATH; do
 
2190
          dirs="$dirs $dir"
 
2191
        done
 
2192
        if test -z "prepend"; then        dirs="$kde_default_bindirs $dirs"
 
2193
        else      dirs="$dirs $kde_default_bindirs"
 
2194
        fi
 
2195
        IFS=$kde_save_IFS
 
2196
 
 
2197
        for dir in $dirs; do
 
2198
          if test -x "$dir/kde-config"; then
 
2199
            if test -n ""
 
2200
            then
 
2201
              evalstr="$dir/kde-config  2>&1 "
 
2202
              if eval $evalstr; then
 
2203
                kde_cv_path="$dir/kde-config"
 
2204
                break
 
2205
              fi
 
2206
            else
 
2207
                kde_cv_path="$dir/kde-config"
 
2208
                break
 
2209
            fi
 
2210
          fi
 
2211
        done
 
2212
 
 
2213
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
2214
 
 
2215
 
 
2216
fi
 
2217
 
 
2218
 
 
2219
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
2220
 
 
2221
   fi
 
2222
 
 
2223
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
2224
      echo "$as_me:$LINENO: result: not found" >&5
 
2225
echo "${ECHO_T}not found" >&6
 
2226
 
 
2227
    { { echo "$as_me:$LINENO: error: The important program kde-config was not found!
 
2228
Please check whether you installed KDE correctly.
 
2229
" >&5
 
2230
echo "$as_me: error: The important program kde-config was not found!
 
2231
Please check whether you installed KDE correctly.
 
2232
" >&2;}
 
2233
   { (exit 1); exit 1; }; }
 
2234
 
 
2235
   else
 
2236
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
2237
echo "${ECHO_T}$kde_cv_path" >&6
 
2238
      KDECONFIG=$kde_cv_path
 
2239
 
 
2240
   fi
 
2241
 
 
2242
    PATH="$kde_save_PATH"
 
2243
  fi
 
2244
 
 
2245
  kde_libs_prefix=`$KDECONFIG --prefix`
 
2246
  if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
 
2247
       { { echo "$as_me:$LINENO: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
 
2248
                    This means it has been moved since you installed it.
 
2249
                    This won't work. Please recompile kdelibs for the new prefix.
 
2250
                    " >&5
 
2251
echo "$as_me: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
 
2252
                    This means it has been moved since you installed it.
 
2253
                    This won't work. Please recompile kdelibs for the new prefix.
 
2254
                    " >&2;}
 
2255
   { (exit 1); exit 1; }; }
 
2256
  fi
 
2257
  kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
 
2258
 
 
2259
  echo "$as_me:$LINENO: checking where to install" >&5
 
2260
echo $ECHO_N "checking where to install... $ECHO_C" >&6
 
2261
  if test "x$prefix" = "xNONE"; then
 
2262
    prefix=$kde_libs_prefix
 
2263
    echo "$as_me:$LINENO: result: $prefix (as returned by kde-config)" >&5
 
2264
echo "${ECHO_T}$prefix (as returned by kde-config)" >&6
 
2265
  else
 
2266
        given_prefix=$prefix
 
2267
    echo "$as_me:$LINENO: result: $prefix (as requested)" >&5
 
2268
echo "${ECHO_T}$prefix (as requested)" >&6
 
2269
  fi
 
2270
 
 
2271
  # And delete superfluous '/' to make compares easier
 
2272
  prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
 
2273
  exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
 
2274
  given_prefix=`echo "$given_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
 
2275
 
 
2276
 
 
2277
 
 
2278
 
 
2279
 
 
2280
 
 
2281
    # Check whether --enable-fast-perl or --disable-fast-perl was given.
 
2282
if test "${enable_fast_perl+set}" = set; then
 
2283
  enableval="$enable_fast_perl"
 
2284
  with_fast_perl=$enableval
 
2285
else
 
2286
  with_fast_perl=yes
 
2287
fi;
 
2288
 
 
2289
 
 
2290
  val=
 
2291
  if test -f $srcdir/configure.files ; then
 
2292
    val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
 
2293
  fi
 
2294
  CONF_FILES=
 
2295
  if test -n "$val" ; then
 
2296
    for i in $val ; do
 
2297
      CONF_FILES="$CONF_FILES $i"
 
2298
    done
 
2299
  fi
 
2300
 
 
2301
 
 
2302
 
 
2303
 
 
2304
          ac_config_headers="$ac_config_headers config.h"
 
2305
 
 
2306
DEPDIR="${am__leading_dot}deps"
 
2307
 
 
2308
          ac_config_commands="$ac_config_commands depfiles"
 
2309
 
 
2310
 
 
2311
am_make=${MAKE-make}
 
2312
cat > confinc << 'END'
 
2313
am__doit:
 
2314
        @echo done
 
2315
.PHONY: am__doit
 
2316
END
 
2317
# If we don't find an include directive, just comment out the code.
 
2318
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2319
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2320
am__include="#"
 
2321
am__quote=
 
2322
_am_result=none
 
2323
# First try GNU make style include.
 
2324
echo "include confinc" > confmf
 
2325
# We grep out `Entering directory' and `Leaving directory'
 
2326
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2327
# In particular we don't look at `^make:' because GNU make might
 
2328
# be invoked under some other name (usually "gmake"), in which
 
2329
# case it prints its new name instead of `make'.
 
2330
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2331
   am__include=include
 
2332
   am__quote=
 
2333
   _am_result=GNU
 
2334
fi
 
2335
# Now try BSD make style include.
 
2336
if test "$am__include" = "#"; then
 
2337
   echo '.include "confinc"' > confmf
 
2338
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2339
      am__include=.include
 
2340
      am__quote="\""
 
2341
      _am_result=BSD
 
2342
   fi
 
2343
fi
 
2344
 
 
2345
 
 
2346
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2347
echo "${ECHO_T}$_am_result" >&6
 
2348
rm -f confinc confmf
 
2349
 
 
2350
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2351
if test "${enable_dependency_tracking+set}" = set; then
 
2352
  enableval="$enable_dependency_tracking"
 
2353
 
 
2354
fi;
 
2355
if test "x$enable_dependency_tracking" != xno; then
 
2356
  am_depcomp="$ac_aux_dir/depcomp"
 
2357
  AMDEPBACKSLASH='\'
 
2358
fi
 
2359
 
 
2360
 
 
2361
if test "x$enable_dependency_tracking" != xno; then
 
2362
  AMDEP_TRUE=
 
2363
  AMDEP_FALSE='#'
 
2364
else
 
2365
  AMDEP_TRUE='#'
 
2366
  AMDEP_FALSE=
 
2367
fi
 
2368
 
 
2369
 
 
2370
 
 
2371
 
 
2372
 
 
2373
 
 
2374
  # Check whether --enable-debug or --disable-debug was given.
 
2375
if test "${enable_debug+set}" = set; then
 
2376
  enableval="$enable_debug"
 
2377
 
 
2378
    case $enableval in
 
2379
      yes)
 
2380
        kde_use_debug_code="yes"
 
2381
        kde_use_debug_define=no
 
2382
        ;;
 
2383
      full)
 
2384
        kde_use_debug_code="full"
 
2385
        kde_use_debug_define=no
 
2386
        ;;
 
2387
      *)
 
2388
        kde_use_debug_code="no"
 
2389
        kde_use_debug_define=yes
 
2390
        ;;
 
2391
    esac
 
2392
 
 
2393
else
 
2394
  kde_use_debug_code="no"
 
2395
      kde_use_debug_define=no
 
2396
 
 
2397
fi;
 
2398
 
 
2399
    # Check whether --enable-dummyoption or --disable-dummyoption was given.
 
2400
if test "${enable_dummyoption+set}" = set; then
 
2401
  enableval="$enable_dummyoption"
 
2402
 
 
2403
fi;
 
2404
 
 
2405
  # Check whether --enable-strict or --disable-strict was given.
 
2406
if test "${enable_strict+set}" = set; then
 
2407
  enableval="$enable_strict"
 
2408
 
 
2409
    if test $enableval = "no"; then
 
2410
         kde_use_strict_options="no"
 
2411
       else
 
2412
         kde_use_strict_options="yes"
 
2413
    fi
 
2414
 
 
2415
else
 
2416
  kde_use_strict_options="no"
 
2417
fi;
 
2418
 
 
2419
  # Check whether --enable-warnings or --disable-warnings was given.
 
2420
if test "${enable_warnings+set}" = set; then
 
2421
  enableval="$enable_warnings"
 
2422
 
 
2423
    if test $enableval = "no"; then
 
2424
         kde_use_warnings="no"
 
2425
       else
 
2426
         kde_use_warnings="yes"
 
2427
    fi
 
2428
 
 
2429
else
 
2430
  kde_use_warnings="yes"
 
2431
fi;
 
2432
 
 
2433
    if test "$kde_use_debug_code" != "no"; then
 
2434
    kde_use_warnings=yes
 
2435
  fi
 
2436
 
 
2437
  # Check whether --enable-profile or --disable-profile was given.
 
2438
if test "${enable_profile+set}" = set; then
 
2439
  enableval="$enable_profile"
 
2440
  kde_use_profiling=$enableval
 
2441
else
 
2442
  kde_use_profiling="no"
 
2443
 
 
2444
fi;
 
2445
 
 
2446
    CFLAGS=" $CFLAGS"
 
2447
 
 
2448
  ac_ext=c
 
2449
ac_cpp='$CPP $CPPFLAGS'
 
2450
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2451
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2452
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2453
if test -n "$ac_tool_prefix"; then
 
2454
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2455
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2456
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2457
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2458
if test "${ac_cv_prog_CC+set}" = set; then
 
2459
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2460
else
 
2461
  if test -n "$CC"; then
 
2462
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2463
else
 
2464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2465
for as_dir in $PATH
 
2466
do
 
2467
  IFS=$as_save_IFS
 
2468
  test -z "$as_dir" && as_dir=.
 
2469
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2470
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2471
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2472
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2473
    break 2
 
2474
  fi
 
2475
done
 
2476
done
 
2477
 
 
2478
fi
 
2479
fi
 
2480
CC=$ac_cv_prog_CC
 
2481
if test -n "$CC"; then
 
2482
  echo "$as_me:$LINENO: result: $CC" >&5
 
2483
echo "${ECHO_T}$CC" >&6
 
2484
else
 
2485
  echo "$as_me:$LINENO: result: no" >&5
 
2486
echo "${ECHO_T}no" >&6
 
2487
fi
 
2488
 
 
2489
fi
 
2490
if test -z "$ac_cv_prog_CC"; then
 
2491
  ac_ct_CC=$CC
 
2492
  # Extract the first word of "gcc", so it can be a program name with args.
 
2493
set dummy gcc; ac_word=$2
 
2494
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2495
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2496
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2497
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2498
else
 
2499
  if test -n "$ac_ct_CC"; then
 
2500
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2501
else
 
2502
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2503
for as_dir in $PATH
 
2504
do
 
2505
  IFS=$as_save_IFS
 
2506
  test -z "$as_dir" && as_dir=.
 
2507
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2508
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2509
    ac_cv_prog_ac_ct_CC="gcc"
 
2510
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2511
    break 2
 
2512
  fi
 
2513
done
 
2514
done
 
2515
 
 
2516
fi
 
2517
fi
 
2518
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2519
if test -n "$ac_ct_CC"; then
 
2520
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2521
echo "${ECHO_T}$ac_ct_CC" >&6
 
2522
else
 
2523
  echo "$as_me:$LINENO: result: no" >&5
 
2524
echo "${ECHO_T}no" >&6
 
2525
fi
 
2526
 
 
2527
  CC=$ac_ct_CC
 
2528
else
 
2529
  CC="$ac_cv_prog_CC"
 
2530
fi
 
2531
 
 
2532
if test -z "$CC"; then
 
2533
  if test -n "$ac_tool_prefix"; then
 
2534
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2535
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2536
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2537
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2538
if test "${ac_cv_prog_CC+set}" = set; then
 
2539
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2540
else
 
2541
  if test -n "$CC"; then
 
2542
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2543
else
 
2544
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2545
for as_dir in $PATH
 
2546
do
 
2547
  IFS=$as_save_IFS
 
2548
  test -z "$as_dir" && as_dir=.
 
2549
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2550
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2551
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2552
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2553
    break 2
 
2554
  fi
 
2555
done
 
2556
done
 
2557
 
 
2558
fi
 
2559
fi
 
2560
CC=$ac_cv_prog_CC
 
2561
if test -n "$CC"; then
 
2562
  echo "$as_me:$LINENO: result: $CC" >&5
 
2563
echo "${ECHO_T}$CC" >&6
 
2564
else
 
2565
  echo "$as_me:$LINENO: result: no" >&5
 
2566
echo "${ECHO_T}no" >&6
 
2567
fi
 
2568
 
 
2569
fi
 
2570
if test -z "$ac_cv_prog_CC"; then
 
2571
  ac_ct_CC=$CC
 
2572
  # Extract the first word of "cc", so it can be a program name with args.
 
2573
set dummy cc; ac_word=$2
 
2574
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2575
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2576
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2577
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2578
else
 
2579
  if test -n "$ac_ct_CC"; then
 
2580
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2581
else
 
2582
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2583
for as_dir in $PATH
 
2584
do
 
2585
  IFS=$as_save_IFS
 
2586
  test -z "$as_dir" && as_dir=.
 
2587
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2588
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2589
    ac_cv_prog_ac_ct_CC="cc"
 
2590
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2591
    break 2
 
2592
  fi
 
2593
done
 
2594
done
 
2595
 
 
2596
fi
 
2597
fi
 
2598
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2599
if test -n "$ac_ct_CC"; then
 
2600
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2601
echo "${ECHO_T}$ac_ct_CC" >&6
 
2602
else
 
2603
  echo "$as_me:$LINENO: result: no" >&5
 
2604
echo "${ECHO_T}no" >&6
 
2605
fi
 
2606
 
 
2607
  CC=$ac_ct_CC
 
2608
else
 
2609
  CC="$ac_cv_prog_CC"
 
2610
fi
 
2611
 
 
2612
fi
 
2613
if test -z "$CC"; then
 
2614
  # Extract the first word of "cc", so it can be a program name with args.
 
2615
set dummy cc; ac_word=$2
 
2616
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2617
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2618
if test "${ac_cv_prog_CC+set}" = set; then
 
2619
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2620
else
 
2621
  if test -n "$CC"; then
 
2622
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2623
else
 
2624
  ac_prog_rejected=no
 
2625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2626
for as_dir in $PATH
 
2627
do
 
2628
  IFS=$as_save_IFS
 
2629
  test -z "$as_dir" && as_dir=.
 
2630
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2631
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2632
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2633
       ac_prog_rejected=yes
 
2634
       continue
 
2635
     fi
 
2636
    ac_cv_prog_CC="cc"
 
2637
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2638
    break 2
 
2639
  fi
 
2640
done
 
2641
done
 
2642
 
 
2643
if test $ac_prog_rejected = yes; then
 
2644
  # We found a bogon in the path, so make sure we never use it.
 
2645
  set dummy $ac_cv_prog_CC
 
2646
  shift
 
2647
  if test $# != 0; then
 
2648
    # We chose a different compiler from the bogus one.
 
2649
    # However, it has the same basename, so the bogon will be chosen
 
2650
    # first if we set CC to just the basename; use the full file name.
 
2651
    shift
 
2652
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2653
  fi
 
2654
fi
 
2655
fi
 
2656
fi
 
2657
CC=$ac_cv_prog_CC
 
2658
if test -n "$CC"; then
 
2659
  echo "$as_me:$LINENO: result: $CC" >&5
 
2660
echo "${ECHO_T}$CC" >&6
 
2661
else
 
2662
  echo "$as_me:$LINENO: result: no" >&5
 
2663
echo "${ECHO_T}no" >&6
 
2664
fi
 
2665
 
 
2666
fi
 
2667
if test -z "$CC"; then
 
2668
  if test -n "$ac_tool_prefix"; then
 
2669
  for ac_prog in cl
 
2670
  do
 
2671
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2672
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2673
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2674
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2675
if test "${ac_cv_prog_CC+set}" = set; then
 
2676
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2677
else
 
2678
  if test -n "$CC"; then
 
2679
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2680
else
 
2681
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2682
for as_dir in $PATH
 
2683
do
 
2684
  IFS=$as_save_IFS
 
2685
  test -z "$as_dir" && as_dir=.
 
2686
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2687
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2688
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2689
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2690
    break 2
 
2691
  fi
 
2692
done
 
2693
done
 
2694
 
 
2695
fi
 
2696
fi
 
2697
CC=$ac_cv_prog_CC
 
2698
if test -n "$CC"; then
 
2699
  echo "$as_me:$LINENO: result: $CC" >&5
 
2700
echo "${ECHO_T}$CC" >&6
 
2701
else
 
2702
  echo "$as_me:$LINENO: result: no" >&5
 
2703
echo "${ECHO_T}no" >&6
 
2704
fi
 
2705
 
 
2706
    test -n "$CC" && break
 
2707
  done
 
2708
fi
 
2709
if test -z "$CC"; then
 
2710
  ac_ct_CC=$CC
 
2711
  for ac_prog in cl
 
2712
do
 
2713
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2714
set dummy $ac_prog; ac_word=$2
 
2715
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2716
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2717
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2718
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2719
else
 
2720
  if test -n "$ac_ct_CC"; then
 
2721
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2722
else
 
2723
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2724
for as_dir in $PATH
 
2725
do
 
2726
  IFS=$as_save_IFS
 
2727
  test -z "$as_dir" && as_dir=.
 
2728
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2729
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2730
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2731
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2732
    break 2
 
2733
  fi
 
2734
done
 
2735
done
 
2736
 
 
2737
fi
 
2738
fi
 
2739
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2740
if test -n "$ac_ct_CC"; then
 
2741
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2742
echo "${ECHO_T}$ac_ct_CC" >&6
 
2743
else
 
2744
  echo "$as_me:$LINENO: result: no" >&5
 
2745
echo "${ECHO_T}no" >&6
 
2746
fi
 
2747
 
 
2748
  test -n "$ac_ct_CC" && break
 
2749
done
 
2750
 
 
2751
  CC=$ac_ct_CC
 
2752
fi
 
2753
 
 
2754
fi
 
2755
 
 
2756
 
 
2757
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2758
See \`config.log' for more details." >&5
 
2759
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2760
See \`config.log' for more details." >&2;}
 
2761
   { (exit 1); exit 1; }; }
 
2762
 
 
2763
# Provide some information about the compiler.
 
2764
echo "$as_me:$LINENO:" \
 
2765
     "checking for C compiler version" >&5
 
2766
ac_compiler=`set X $ac_compile; echo $2`
 
2767
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2768
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2769
  ac_status=$?
 
2770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2771
  (exit $ac_status); }
 
2772
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2773
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2774
  ac_status=$?
 
2775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2776
  (exit $ac_status); }
 
2777
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2778
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2779
  ac_status=$?
 
2780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2781
  (exit $ac_status); }
 
2782
 
 
2783
cat >conftest.$ac_ext <<_ACEOF
 
2784
/* confdefs.h.  */
 
2785
_ACEOF
 
2786
cat confdefs.h >>conftest.$ac_ext
 
2787
cat >>conftest.$ac_ext <<_ACEOF
 
2788
/* end confdefs.h.  */
 
2789
 
 
2790
int
 
2791
main ()
 
2792
{
 
2793
 
 
2794
  ;
 
2795
  return 0;
 
2796
}
 
2797
_ACEOF
 
2798
ac_clean_files_save=$ac_clean_files
 
2799
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2800
# Try to create an executable without -o first, disregard a.out.
 
2801
# It will help us diagnose broken compilers, and finding out an intuition
 
2802
# of exeext.
 
2803
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2804
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2805
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2806
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2807
  (eval $ac_link_default) 2>&5
 
2808
  ac_status=$?
 
2809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2810
  (exit $ac_status); }; then
 
2811
  # Find the output, starting from the most likely.  This scheme is
 
2812
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2813
# resort.
 
2814
 
 
2815
# Be careful to initialize this variable, since it used to be cached.
 
2816
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2817
ac_cv_exeext=
 
2818
# b.out is created by i960 compilers.
 
2819
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2820
do
 
2821
  test -f "$ac_file" || continue
 
2822
  case $ac_file in
 
2823
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2824
        ;;
 
2825
    conftest.$ac_ext )
 
2826
        # This is the source file.
 
2827
        ;;
 
2828
    [ab].out )
 
2829
        # We found the default executable, but exeext='' is most
 
2830
        # certainly right.
 
2831
        break;;
 
2832
    *.* )
 
2833
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2834
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2835
        # but it would be cool to find out if it's true.  Does anybody
 
2836
        # maintain Libtool? --akim.
 
2837
        export ac_cv_exeext
 
2838
        break;;
 
2839
    * )
 
2840
        break;;
 
2841
  esac
 
2842
done
 
2843
else
 
2844
  echo "$as_me: failed program was:" >&5
 
2845
sed 's/^/| /' conftest.$ac_ext >&5
 
2846
 
 
2847
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2848
See \`config.log' for more details." >&5
 
2849
echo "$as_me: error: C compiler cannot create executables
 
2850
See \`config.log' for more details." >&2;}
 
2851
   { (exit 77); exit 77; }; }
 
2852
fi
 
2853
 
 
2854
ac_exeext=$ac_cv_exeext
 
2855
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2856
echo "${ECHO_T}$ac_file" >&6
 
2857
 
 
2858
# Check the compiler produces executables we can run.  If not, either
 
2859
# the compiler is broken, or we cross compile.
 
2860
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2861
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2862
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2863
# If not cross compiling, check that we can run a simple program.
 
2864
if test "$cross_compiling" != yes; then
 
2865
  if { ac_try='./$ac_file'
 
2866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2867
  (eval $ac_try) 2>&5
 
2868
  ac_status=$?
 
2869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2870
  (exit $ac_status); }; }; then
 
2871
    cross_compiling=no
 
2872
  else
 
2873
    if test "$cross_compiling" = maybe; then
 
2874
        cross_compiling=yes
 
2875
    else
 
2876
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2877
If you meant to cross compile, use \`--host'.
 
2878
See \`config.log' for more details." >&5
 
2879
echo "$as_me: error: cannot run C compiled programs.
 
2880
If you meant to cross compile, use \`--host'.
 
2881
See \`config.log' for more details." >&2;}
 
2882
   { (exit 1); exit 1; }; }
 
2883
    fi
 
2884
  fi
 
2885
fi
 
2886
echo "$as_me:$LINENO: result: yes" >&5
 
2887
echo "${ECHO_T}yes" >&6
 
2888
 
 
2889
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2890
ac_clean_files=$ac_clean_files_save
 
2891
# Check the compiler produces executables we can run.  If not, either
 
2892
# the compiler is broken, or we cross compile.
 
2893
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2894
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2895
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2896
echo "${ECHO_T}$cross_compiling" >&6
 
2897
 
 
2898
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2899
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2900
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2901
  (eval $ac_link) 2>&5
 
2902
  ac_status=$?
 
2903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2904
  (exit $ac_status); }; then
 
2905
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2906
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2907
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2908
# `rm'.
 
2909
for ac_file in conftest.exe conftest conftest.*; do
 
2910
  test -f "$ac_file" || continue
 
2911
  case $ac_file in
 
2912
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2913
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2914
          export ac_cv_exeext
 
2915
          break;;
 
2916
    * ) break;;
 
2917
  esac
 
2918
done
 
2919
else
 
2920
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2921
See \`config.log' for more details." >&5
 
2922
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2923
See \`config.log' for more details." >&2;}
 
2924
   { (exit 1); exit 1; }; }
 
2925
fi
 
2926
 
 
2927
rm -f conftest$ac_cv_exeext
 
2928
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2929
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2930
 
 
2931
rm -f conftest.$ac_ext
 
2932
EXEEXT=$ac_cv_exeext
 
2933
ac_exeext=$EXEEXT
 
2934
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2935
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2936
if test "${ac_cv_objext+set}" = set; then
 
2937
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2938
else
 
2939
  cat >conftest.$ac_ext <<_ACEOF
 
2940
/* confdefs.h.  */
 
2941
_ACEOF
 
2942
cat confdefs.h >>conftest.$ac_ext
 
2943
cat >>conftest.$ac_ext <<_ACEOF
 
2944
/* end confdefs.h.  */
 
2945
 
 
2946
int
 
2947
main ()
 
2948
{
 
2949
 
 
2950
  ;
 
2951
  return 0;
 
2952
}
 
2953
_ACEOF
 
2954
rm -f conftest.o conftest.obj
 
2955
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2956
  (eval $ac_compile) 2>&5
 
2957
  ac_status=$?
 
2958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2959
  (exit $ac_status); }; then
 
2960
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2961
  case $ac_file in
 
2962
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2963
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2964
       break;;
 
2965
  esac
 
2966
done
 
2967
else
 
2968
  echo "$as_me: failed program was:" >&5
 
2969
sed 's/^/| /' conftest.$ac_ext >&5
 
2970
 
 
2971
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2972
See \`config.log' for more details." >&5
 
2973
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2974
See \`config.log' for more details." >&2;}
 
2975
   { (exit 1); exit 1; }; }
 
2976
fi
 
2977
 
 
2978
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2979
fi
 
2980
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2981
echo "${ECHO_T}$ac_cv_objext" >&6
 
2982
OBJEXT=$ac_cv_objext
 
2983
ac_objext=$OBJEXT
 
2984
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2985
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2986
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2988
else
 
2989
  cat >conftest.$ac_ext <<_ACEOF
 
2990
/* confdefs.h.  */
 
2991
_ACEOF
 
2992
cat confdefs.h >>conftest.$ac_ext
 
2993
cat >>conftest.$ac_ext <<_ACEOF
 
2994
/* end confdefs.h.  */
 
2995
 
 
2996
int
 
2997
main ()
 
2998
{
 
2999
#ifndef __GNUC__
 
3000
       choke me
 
3001
#endif
 
3002
 
 
3003
  ;
 
3004
  return 0;
 
3005
}
 
3006
_ACEOF
 
3007
rm -f conftest.$ac_objext
 
3008
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3009
  (eval $ac_compile) 2>conftest.er1
 
3010
  ac_status=$?
 
3011
  grep -v '^ *+' conftest.er1 >conftest.err
 
3012
  rm -f conftest.er1
 
3013
  cat conftest.err >&5
 
3014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3015
  (exit $ac_status); } &&
 
3016
         { ac_try='test -z "$ac_c_werror_flag"
 
3017
                         || test ! -s conftest.err'
 
3018
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3019
  (eval $ac_try) 2>&5
 
3020
  ac_status=$?
 
3021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3022
  (exit $ac_status); }; } &&
 
3023
         { ac_try='test -s conftest.$ac_objext'
 
3024
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3025
  (eval $ac_try) 2>&5
 
3026
  ac_status=$?
 
3027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3028
  (exit $ac_status); }; }; then
 
3029
  ac_compiler_gnu=yes
 
3030
else
 
3031
  echo "$as_me: failed program was:" >&5
 
3032
sed 's/^/| /' conftest.$ac_ext >&5
 
3033
 
 
3034
ac_compiler_gnu=no
 
3035
fi
 
3036
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3037
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3038
 
 
3039
fi
 
3040
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3041
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3042
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3043
ac_test_CFLAGS=${CFLAGS+set}
 
3044
ac_save_CFLAGS=$CFLAGS
 
3045
CFLAGS="-g"
 
3046
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3047
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3048
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3049
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3050
else
 
3051
  cat >conftest.$ac_ext <<_ACEOF
 
3052
/* confdefs.h.  */
 
3053
_ACEOF
 
3054
cat confdefs.h >>conftest.$ac_ext
 
3055
cat >>conftest.$ac_ext <<_ACEOF
 
3056
/* end confdefs.h.  */
 
3057
 
 
3058
int
 
3059
main ()
 
3060
{
 
3061
 
 
3062
  ;
 
3063
  return 0;
 
3064
}
 
3065
_ACEOF
 
3066
rm -f conftest.$ac_objext
 
3067
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3068
  (eval $ac_compile) 2>conftest.er1
 
3069
  ac_status=$?
 
3070
  grep -v '^ *+' conftest.er1 >conftest.err
 
3071
  rm -f conftest.er1
 
3072
  cat conftest.err >&5
 
3073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3074
  (exit $ac_status); } &&
 
3075
         { ac_try='test -z "$ac_c_werror_flag"
 
3076
                         || test ! -s conftest.err'
 
3077
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3078
  (eval $ac_try) 2>&5
 
3079
  ac_status=$?
 
3080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3081
  (exit $ac_status); }; } &&
 
3082
         { ac_try='test -s conftest.$ac_objext'
 
3083
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3084
  (eval $ac_try) 2>&5
 
3085
  ac_status=$?
 
3086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3087
  (exit $ac_status); }; }; then
 
3088
  ac_cv_prog_cc_g=yes
 
3089
else
 
3090
  echo "$as_me: failed program was:" >&5
 
3091
sed 's/^/| /' conftest.$ac_ext >&5
 
3092
 
 
3093
ac_cv_prog_cc_g=no
 
3094
fi
 
3095
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3096
fi
 
3097
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3098
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3099
if test "$ac_test_CFLAGS" = set; then
 
3100
  CFLAGS=$ac_save_CFLAGS
 
3101
elif test $ac_cv_prog_cc_g = yes; then
 
3102
  if test "$GCC" = yes; then
 
3103
    CFLAGS="-g -O2"
 
3104
  else
 
3105
    CFLAGS="-g"
 
3106
  fi
 
3107
else
 
3108
  if test "$GCC" = yes; then
 
3109
    CFLAGS="-O2"
 
3110
  else
 
3111
    CFLAGS=
 
3112
  fi
 
3113
fi
 
3114
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
3115
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
3116
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3117
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3118
else
 
3119
  ac_cv_prog_cc_stdc=no
 
3120
ac_save_CC=$CC
 
3121
cat >conftest.$ac_ext <<_ACEOF
 
3122
/* confdefs.h.  */
 
3123
_ACEOF
 
3124
cat confdefs.h >>conftest.$ac_ext
 
3125
cat >>conftest.$ac_ext <<_ACEOF
 
3126
/* end confdefs.h.  */
 
3127
#include <stdarg.h>
 
3128
#include <stdio.h>
 
3129
#include <sys/types.h>
 
3130
#include <sys/stat.h>
 
3131
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3132
struct buf { int x; };
 
3133
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3134
static char *e (p, i)
 
3135
     char **p;
 
3136
     int i;
 
3137
{
 
3138
  return p[i];
 
3139
}
 
3140
static char *f (char * (*g) (char **, int), char **p, ...)
 
3141
{
 
3142
  char *s;
 
3143
  va_list v;
 
3144
  va_start (v,p);
 
3145
  s = g (p, va_arg (v,int));
 
3146
  va_end (v);
 
3147
  return s;
 
3148
}
 
3149
 
 
3150
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3151
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3152
   These don't provoke an error unfortunately, instead are silently treated
 
3153
   as 'x'.  The following induces an error, until -std1 is added to get
 
3154
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3155
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3156
   that's true only with -std1.  */
 
3157
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3158
 
 
3159
int test (int i, double x);
 
3160
struct s1 {int (*f) (int a);};
 
3161
struct s2 {int (*f) (double a);};
 
3162
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3163
int argc;
 
3164
char **argv;
 
3165
int
 
3166
main ()
 
3167
{
 
3168
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3169
  ;
 
3170
  return 0;
 
3171
}
 
3172
_ACEOF
 
3173
# Don't try gcc -ansi; that turns off useful extensions and
 
3174
# breaks some systems' header files.
 
3175
# AIX                   -qlanglvl=ansi
 
3176
# Ultrix and OSF/1      -std1
 
3177
# HP-UX 10.20 and later -Ae
 
3178
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
3179
# SVR4                  -Xc -D__EXTENSIONS__
 
3180
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3181
do
 
3182
  CC="$ac_save_CC $ac_arg"
 
3183
  rm -f conftest.$ac_objext
 
3184
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3185
  (eval $ac_compile) 2>conftest.er1
 
3186
  ac_status=$?
 
3187
  grep -v '^ *+' conftest.er1 >conftest.err
 
3188
  rm -f conftest.er1
 
3189
  cat conftest.err >&5
 
3190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3191
  (exit $ac_status); } &&
 
3192
         { ac_try='test -z "$ac_c_werror_flag"
 
3193
                         || test ! -s conftest.err'
 
3194
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3195
  (eval $ac_try) 2>&5
 
3196
  ac_status=$?
 
3197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3198
  (exit $ac_status); }; } &&
 
3199
         { ac_try='test -s conftest.$ac_objext'
 
3200
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3201
  (eval $ac_try) 2>&5
 
3202
  ac_status=$?
 
3203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3204
  (exit $ac_status); }; }; then
 
3205
  ac_cv_prog_cc_stdc=$ac_arg
 
3206
break
 
3207
else
 
3208
  echo "$as_me: failed program was:" >&5
 
3209
sed 's/^/| /' conftest.$ac_ext >&5
 
3210
 
 
3211
fi
 
3212
rm -f conftest.err conftest.$ac_objext
 
3213
done
 
3214
rm -f conftest.$ac_ext conftest.$ac_objext
 
3215
CC=$ac_save_CC
 
3216
 
 
3217
fi
 
3218
 
 
3219
case "x$ac_cv_prog_cc_stdc" in
 
3220
  x|xno)
 
3221
    echo "$as_me:$LINENO: result: none needed" >&5
 
3222
echo "${ECHO_T}none needed" >&6 ;;
 
3223
  *)
 
3224
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
3225
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
3226
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3227
esac
 
3228
 
 
3229
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
3230
# in C++ we need to declare it.  In case someone uses the same compiler
 
3231
# for both compiling C and C++ we need to have the C++ compiler decide
 
3232
# the declaration of exit, since it's the most demanding environment.
 
3233
cat >conftest.$ac_ext <<_ACEOF
 
3234
#ifndef __cplusplus
 
3235
  choke me
 
3236
#endif
 
3237
_ACEOF
 
3238
rm -f conftest.$ac_objext
 
3239
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3240
  (eval $ac_compile) 2>conftest.er1
 
3241
  ac_status=$?
 
3242
  grep -v '^ *+' conftest.er1 >conftest.err
 
3243
  rm -f conftest.er1
 
3244
  cat conftest.err >&5
 
3245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3246
  (exit $ac_status); } &&
 
3247
         { ac_try='test -z "$ac_c_werror_flag"
 
3248
                         || test ! -s conftest.err'
 
3249
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3250
  (eval $ac_try) 2>&5
 
3251
  ac_status=$?
 
3252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3253
  (exit $ac_status); }; } &&
 
3254
         { ac_try='test -s conftest.$ac_objext'
 
3255
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3256
  (eval $ac_try) 2>&5
 
3257
  ac_status=$?
 
3258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3259
  (exit $ac_status); }; }; then
 
3260
  for ac_declaration in \
 
3261
   '' \
 
3262
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3263
   'extern "C" void std::exit (int); using std::exit;' \
 
3264
   'extern "C" void exit (int) throw ();' \
 
3265
   'extern "C" void exit (int);' \
 
3266
   'void exit (int);'
 
3267
do
 
3268
  cat >conftest.$ac_ext <<_ACEOF
 
3269
/* confdefs.h.  */
 
3270
_ACEOF
 
3271
cat confdefs.h >>conftest.$ac_ext
 
3272
cat >>conftest.$ac_ext <<_ACEOF
 
3273
/* end confdefs.h.  */
 
3274
$ac_declaration
 
3275
#include <stdlib.h>
 
3276
int
 
3277
main ()
 
3278
{
 
3279
exit (42);
 
3280
  ;
 
3281
  return 0;
 
3282
}
 
3283
_ACEOF
 
3284
rm -f conftest.$ac_objext
 
3285
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3286
  (eval $ac_compile) 2>conftest.er1
 
3287
  ac_status=$?
 
3288
  grep -v '^ *+' conftest.er1 >conftest.err
 
3289
  rm -f conftest.er1
 
3290
  cat conftest.err >&5
 
3291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3292
  (exit $ac_status); } &&
 
3293
         { ac_try='test -z "$ac_c_werror_flag"
 
3294
                         || test ! -s conftest.err'
 
3295
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3296
  (eval $ac_try) 2>&5
 
3297
  ac_status=$?
 
3298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3299
  (exit $ac_status); }; } &&
 
3300
         { ac_try='test -s conftest.$ac_objext'
 
3301
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3302
  (eval $ac_try) 2>&5
 
3303
  ac_status=$?
 
3304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3305
  (exit $ac_status); }; }; then
 
3306
  :
 
3307
else
 
3308
  echo "$as_me: failed program was:" >&5
 
3309
sed 's/^/| /' conftest.$ac_ext >&5
 
3310
 
 
3311
continue
 
3312
fi
 
3313
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3314
  cat >conftest.$ac_ext <<_ACEOF
 
3315
/* confdefs.h.  */
 
3316
_ACEOF
 
3317
cat confdefs.h >>conftest.$ac_ext
 
3318
cat >>conftest.$ac_ext <<_ACEOF
 
3319
/* end confdefs.h.  */
 
3320
$ac_declaration
 
3321
int
 
3322
main ()
 
3323
{
 
3324
exit (42);
 
3325
  ;
 
3326
  return 0;
 
3327
}
 
3328
_ACEOF
 
3329
rm -f conftest.$ac_objext
 
3330
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3331
  (eval $ac_compile) 2>conftest.er1
 
3332
  ac_status=$?
 
3333
  grep -v '^ *+' conftest.er1 >conftest.err
 
3334
  rm -f conftest.er1
 
3335
  cat conftest.err >&5
 
3336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3337
  (exit $ac_status); } &&
 
3338
         { ac_try='test -z "$ac_c_werror_flag"
 
3339
                         || test ! -s conftest.err'
 
3340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3341
  (eval $ac_try) 2>&5
 
3342
  ac_status=$?
 
3343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3344
  (exit $ac_status); }; } &&
 
3345
         { ac_try='test -s conftest.$ac_objext'
 
3346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3347
  (eval $ac_try) 2>&5
 
3348
  ac_status=$?
 
3349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3350
  (exit $ac_status); }; }; then
 
3351
  break
 
3352
else
 
3353
  echo "$as_me: failed program was:" >&5
 
3354
sed 's/^/| /' conftest.$ac_ext >&5
 
3355
 
 
3356
fi
 
3357
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3358
done
 
3359
rm -f conftest*
 
3360
if test -n "$ac_declaration"; then
 
3361
  echo '#ifdef __cplusplus' >>confdefs.h
 
3362
  echo $ac_declaration      >>confdefs.h
 
3363
  echo '#endif'             >>confdefs.h
 
3364
fi
 
3365
 
 
3366
else
 
3367
  echo "$as_me: failed program was:" >&5
 
3368
sed 's/^/| /' conftest.$ac_ext >&5
 
3369
 
 
3370
fi
 
3371
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3372
ac_ext=c
 
3373
ac_cpp='$CPP $CPPFLAGS'
 
3374
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3375
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3376
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3377
 
 
3378
depcc="$CC"   am_compiler_list=
 
3379
 
 
3380
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3381
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3382
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3383
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3384
else
 
3385
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3386
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3387
  # making bogus files that we don't know about and never remove.  For
 
3388
  # instance it was reported that on HP-UX the gcc test will end up
 
3389
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3390
  # in D'.
 
3391
  mkdir conftest.dir
 
3392
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3393
  # using a relative directory.
 
3394
  cp "$am_depcomp" conftest.dir
 
3395
  cd conftest.dir
 
3396
  # We will build objects and dependencies in a subdirectory because
 
3397
  # it helps to detect inapplicable dependency modes.  For instance
 
3398
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3399
  # side effect of compilation, but ICC will put the dependencies in
 
3400
  # the current directory while Tru64 will put them in the object
 
3401
  # directory.
 
3402
  mkdir sub
 
3403
 
 
3404
  am_cv_CC_dependencies_compiler_type=none
 
3405
  if test "$am_compiler_list" = ""; then
 
3406
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3407
  fi
 
3408
  for depmode in $am_compiler_list; do
 
3409
    # Setup a source with many dependencies, because some compilers
 
3410
    # like to wrap large dependency lists on column 80 (with \), and
 
3411
    # we should not choose a depcomp mode which is confused by this.
 
3412
    #
 
3413
    # We need to recreate these files for each test, as the compiler may
 
3414
    # overwrite some of them when testing with obscure command lines.
 
3415
    # This happens at least with the AIX C compiler.
 
3416
    : > sub/conftest.c
 
3417
    for i in 1 2 3 4 5 6; do
 
3418
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3419
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3420
      # Solaris 8's {/usr,}/bin/sh.
 
3421
      touch sub/conftst$i.h
 
3422
    done
 
3423
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3424
 
 
3425
    case $depmode in
 
3426
    nosideeffect)
 
3427
      # after this tag, mechanisms are not by side-effect, so they'll
 
3428
      # only be used when explicitly requested
 
3429
      if test "x$enable_dependency_tracking" = xyes; then
 
3430
        continue
 
3431
      else
 
3432
        break
 
3433
      fi
 
3434
      ;;
 
3435
    none) break ;;
 
3436
    esac
 
3437
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3438
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3439
    # handle `-M -o', and we need to detect this.
 
3440
    if depmode=$depmode \
 
3441
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3442
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3443
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3444
         >/dev/null 2>conftest.err &&
 
3445
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3446
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3447
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3448
      # icc doesn't choke on unknown options, it will just issue warnings
 
3449
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3450
      # that says an option was ignored or not supported.
 
3451
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3452
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3453
      # The diagnosis changed in icc 8.0:
 
3454
      #   icc: Command line remark: option '-MP' not supported
 
3455
      if (grep 'ignoring option' conftest.err ||
 
3456
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3457
        am_cv_CC_dependencies_compiler_type=$depmode
 
3458
        break
 
3459
      fi
 
3460
    fi
 
3461
  done
 
3462
 
 
3463
  cd ..
 
3464
  rm -rf conftest.dir
 
3465
else
 
3466
  am_cv_CC_dependencies_compiler_type=none
 
3467
fi
 
3468
 
 
3469
fi
 
3470
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3471
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3472
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3473
 
 
3474
 
 
3475
 
 
3476
if
 
3477
  test "x$enable_dependency_tracking" != xno \
 
3478
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3479
  am__fastdepCC_TRUE=
 
3480
  am__fastdepCC_FALSE='#'
 
3481
else
 
3482
  am__fastdepCC_TRUE='#'
 
3483
  am__fastdepCC_FALSE=
 
3484
fi
 
3485
 
 
3486
 
 
3487
 
 
3488
  ac_ext=c
 
3489
ac_cpp='$CPP $CPPFLAGS'
 
3490
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3491
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3492
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3493
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3494
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3495
# On Suns, sometimes $CPP names a directory.
 
3496
if test -n "$CPP" && test -d "$CPP"; then
 
3497
  CPP=
 
3498
fi
 
3499
if test -z "$CPP"; then
 
3500
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3501
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3502
else
 
3503
      # Double quotes because CPP needs to be expanded
 
3504
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3505
    do
 
3506
      ac_preproc_ok=false
 
3507
for ac_c_preproc_warn_flag in '' yes
 
3508
do
 
3509
  # Use a header file that comes with gcc, so configuring glibc
 
3510
  # with a fresh cross-compiler works.
 
3511
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3512
  # <limits.h> exists even on freestanding compilers.
 
3513
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3514
  # not just through cpp. "Syntax error" is here to catch this case.
 
3515
  cat >conftest.$ac_ext <<_ACEOF
 
3516
/* confdefs.h.  */
 
3517
_ACEOF
 
3518
cat confdefs.h >>conftest.$ac_ext
 
3519
cat >>conftest.$ac_ext <<_ACEOF
 
3520
/* end confdefs.h.  */
 
3521
#ifdef __STDC__
 
3522
# include <limits.h>
 
3523
#else
 
3524
# include <assert.h>
 
3525
#endif
 
3526
                     Syntax error
 
3527
_ACEOF
 
3528
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3529
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3530
  ac_status=$?
 
3531
  grep -v '^ *+' conftest.er1 >conftest.err
 
3532
  rm -f conftest.er1
 
3533
  cat conftest.err >&5
 
3534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3535
  (exit $ac_status); } >/dev/null; then
 
3536
  if test -s conftest.err; then
 
3537
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3538
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3539
  else
 
3540
    ac_cpp_err=
 
3541
  fi
 
3542
else
 
3543
  ac_cpp_err=yes
 
3544
fi
 
3545
if test -z "$ac_cpp_err"; then
 
3546
  :
 
3547
else
 
3548
  echo "$as_me: failed program was:" >&5
 
3549
sed 's/^/| /' conftest.$ac_ext >&5
 
3550
 
 
3551
  # Broken: fails on valid input.
 
3552
continue
 
3553
fi
 
3554
rm -f conftest.err conftest.$ac_ext
 
3555
 
 
3556
  # OK, works on sane cases.  Now check whether non-existent headers
 
3557
  # can be detected and how.
 
3558
  cat >conftest.$ac_ext <<_ACEOF
 
3559
/* confdefs.h.  */
 
3560
_ACEOF
 
3561
cat confdefs.h >>conftest.$ac_ext
 
3562
cat >>conftest.$ac_ext <<_ACEOF
 
3563
/* end confdefs.h.  */
 
3564
#include <ac_nonexistent.h>
 
3565
_ACEOF
 
3566
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3567
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3568
  ac_status=$?
 
3569
  grep -v '^ *+' conftest.er1 >conftest.err
 
3570
  rm -f conftest.er1
 
3571
  cat conftest.err >&5
 
3572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3573
  (exit $ac_status); } >/dev/null; then
 
3574
  if test -s conftest.err; then
 
3575
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3576
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3577
  else
 
3578
    ac_cpp_err=
 
3579
  fi
 
3580
else
 
3581
  ac_cpp_err=yes
 
3582
fi
 
3583
if test -z "$ac_cpp_err"; then
 
3584
  # Broken: success on invalid input.
 
3585
continue
 
3586
else
 
3587
  echo "$as_me: failed program was:" >&5
 
3588
sed 's/^/| /' conftest.$ac_ext >&5
 
3589
 
 
3590
  # Passes both tests.
 
3591
ac_preproc_ok=:
 
3592
break
 
3593
fi
 
3594
rm -f conftest.err conftest.$ac_ext
 
3595
 
 
3596
done
 
3597
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3598
rm -f conftest.err conftest.$ac_ext
 
3599
if $ac_preproc_ok; then
 
3600
  break
 
3601
fi
 
3602
 
 
3603
    done
 
3604
    ac_cv_prog_CPP=$CPP
 
3605
 
 
3606
fi
 
3607
  CPP=$ac_cv_prog_CPP
 
3608
else
 
3609
  ac_cv_prog_CPP=$CPP
 
3610
fi
 
3611
echo "$as_me:$LINENO: result: $CPP" >&5
 
3612
echo "${ECHO_T}$CPP" >&6
 
3613
ac_preproc_ok=false
 
3614
for ac_c_preproc_warn_flag in '' yes
 
3615
do
 
3616
  # Use a header file that comes with gcc, so configuring glibc
 
3617
  # with a fresh cross-compiler works.
 
3618
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3619
  # <limits.h> exists even on freestanding compilers.
 
3620
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3621
  # not just through cpp. "Syntax error" is here to catch this case.
 
3622
  cat >conftest.$ac_ext <<_ACEOF
 
3623
/* confdefs.h.  */
 
3624
_ACEOF
 
3625
cat confdefs.h >>conftest.$ac_ext
 
3626
cat >>conftest.$ac_ext <<_ACEOF
 
3627
/* end confdefs.h.  */
 
3628
#ifdef __STDC__
 
3629
# include <limits.h>
 
3630
#else
 
3631
# include <assert.h>
 
3632
#endif
 
3633
                     Syntax error
 
3634
_ACEOF
 
3635
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3636
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3637
  ac_status=$?
 
3638
  grep -v '^ *+' conftest.er1 >conftest.err
 
3639
  rm -f conftest.er1
 
3640
  cat conftest.err >&5
 
3641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3642
  (exit $ac_status); } >/dev/null; then
 
3643
  if test -s conftest.err; then
 
3644
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3645
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3646
  else
 
3647
    ac_cpp_err=
 
3648
  fi
 
3649
else
 
3650
  ac_cpp_err=yes
 
3651
fi
 
3652
if test -z "$ac_cpp_err"; then
 
3653
  :
 
3654
else
 
3655
  echo "$as_me: failed program was:" >&5
 
3656
sed 's/^/| /' conftest.$ac_ext >&5
 
3657
 
 
3658
  # Broken: fails on valid input.
 
3659
continue
 
3660
fi
 
3661
rm -f conftest.err conftest.$ac_ext
 
3662
 
 
3663
  # OK, works on sane cases.  Now check whether non-existent headers
 
3664
  # can be detected and how.
 
3665
  cat >conftest.$ac_ext <<_ACEOF
 
3666
/* confdefs.h.  */
 
3667
_ACEOF
 
3668
cat confdefs.h >>conftest.$ac_ext
 
3669
cat >>conftest.$ac_ext <<_ACEOF
 
3670
/* end confdefs.h.  */
 
3671
#include <ac_nonexistent.h>
 
3672
_ACEOF
 
3673
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3674
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3675
  ac_status=$?
 
3676
  grep -v '^ *+' conftest.er1 >conftest.err
 
3677
  rm -f conftest.er1
 
3678
  cat conftest.err >&5
 
3679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3680
  (exit $ac_status); } >/dev/null; then
 
3681
  if test -s conftest.err; then
 
3682
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3683
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3684
  else
 
3685
    ac_cpp_err=
 
3686
  fi
 
3687
else
 
3688
  ac_cpp_err=yes
 
3689
fi
 
3690
if test -z "$ac_cpp_err"; then
 
3691
  # Broken: success on invalid input.
 
3692
continue
 
3693
else
 
3694
  echo "$as_me: failed program was:" >&5
 
3695
sed 's/^/| /' conftest.$ac_ext >&5
 
3696
 
 
3697
  # Passes both tests.
 
3698
ac_preproc_ok=:
 
3699
break
 
3700
fi
 
3701
rm -f conftest.err conftest.$ac_ext
 
3702
 
 
3703
done
 
3704
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3705
rm -f conftest.err conftest.$ac_ext
 
3706
if $ac_preproc_ok; then
 
3707
  :
 
3708
else
 
3709
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3710
See \`config.log' for more details." >&5
 
3711
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3712
See \`config.log' for more details." >&2;}
 
3713
   { (exit 1); exit 1; }; }
 
3714
fi
 
3715
 
 
3716
ac_ext=c
 
3717
ac_cpp='$CPP $CPPFLAGS'
 
3718
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3719
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3720
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3721
 
 
3722
 
 
3723
  if test "$GCC" = "yes"; then
 
3724
    if test "$kde_use_debug_code" != "no"; then
 
3725
      if test $kde_use_debug_code = "full"; then
 
3726
        CFLAGS="-g3 -fno-inline $CFLAGS"
 
3727
      else
 
3728
        CFLAGS="-g -O2 $CFLAGS"
 
3729
      fi
 
3730
    else
 
3731
      CFLAGS="-O2 $CFLAGS"
 
3732
    fi
 
3733
  fi
 
3734
 
 
3735
  if test "$kde_use_debug_define" = "yes"; then
 
3736
    CFLAGS="-DNDEBUG $CFLAGS"
 
3737
  fi
 
3738
 
 
3739
 
 
3740
  case "$host" in
 
3741
  *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
 
3742
  *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
 
3743
  esac
 
3744
 
 
3745
  if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
 
3746
     LDFLAGS=""
 
3747
  fi
 
3748
 
 
3749
  CXXFLAGS=" $CXXFLAGS"
 
3750
 
 
3751
  ac_ext=cc
 
3752
ac_cpp='$CXXCPP $CPPFLAGS'
 
3753
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3754
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3755
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3756
if test -n "$ac_tool_prefix"; then
 
3757
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3758
  do
 
3759
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3760
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3761
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3762
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3763
if test "${ac_cv_prog_CXX+set}" = set; then
 
3764
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3765
else
 
3766
  if test -n "$CXX"; then
 
3767
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
3768
else
 
3769
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3770
for as_dir in $PATH
 
3771
do
 
3772
  IFS=$as_save_IFS
 
3773
  test -z "$as_dir" && as_dir=.
 
3774
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3775
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3776
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
3777
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3778
    break 2
 
3779
  fi
 
3780
done
 
3781
done
 
3782
 
 
3783
fi
 
3784
fi
 
3785
CXX=$ac_cv_prog_CXX
 
3786
if test -n "$CXX"; then
 
3787
  echo "$as_me:$LINENO: result: $CXX" >&5
 
3788
echo "${ECHO_T}$CXX" >&6
 
3789
else
 
3790
  echo "$as_me:$LINENO: result: no" >&5
 
3791
echo "${ECHO_T}no" >&6
 
3792
fi
 
3793
 
 
3794
    test -n "$CXX" && break
 
3795
  done
 
3796
fi
 
3797
if test -z "$CXX"; then
 
3798
  ac_ct_CXX=$CXX
 
3799
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3800
do
 
3801
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3802
set dummy $ac_prog; ac_word=$2
 
3803
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3804
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3805
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
3806
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3807
else
 
3808
  if test -n "$ac_ct_CXX"; then
 
3809
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
3810
else
 
3811
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3812
for as_dir in $PATH
 
3813
do
 
3814
  IFS=$as_save_IFS
 
3815
  test -z "$as_dir" && as_dir=.
 
3816
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3817
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3818
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
3819
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3820
    break 2
 
3821
  fi
 
3822
done
 
3823
done
 
3824
 
 
3825
fi
 
3826
fi
 
3827
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
3828
if test -n "$ac_ct_CXX"; then
 
3829
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
3830
echo "${ECHO_T}$ac_ct_CXX" >&6
 
3831
else
 
3832
  echo "$as_me:$LINENO: result: no" >&5
 
3833
echo "${ECHO_T}no" >&6
 
3834
fi
 
3835
 
 
3836
  test -n "$ac_ct_CXX" && break
 
3837
done
 
3838
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
3839
 
 
3840
  CXX=$ac_ct_CXX
 
3841
fi
 
3842
 
 
3843
 
 
3844
# Provide some information about the compiler.
 
3845
echo "$as_me:$LINENO:" \
 
3846
     "checking for C++ compiler version" >&5
 
3847
ac_compiler=`set X $ac_compile; echo $2`
 
3848
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3849
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3850
  ac_status=$?
 
3851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3852
  (exit $ac_status); }
 
3853
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3854
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3855
  ac_status=$?
 
3856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3857
  (exit $ac_status); }
 
3858
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3859
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3860
  ac_status=$?
 
3861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3862
  (exit $ac_status); }
 
3863
 
 
3864
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
3865
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
3866
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
3867
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3868
else
 
3869
  cat >conftest.$ac_ext <<_ACEOF
 
3870
/* confdefs.h.  */
 
3871
_ACEOF
 
3872
cat confdefs.h >>conftest.$ac_ext
 
3873
cat >>conftest.$ac_ext <<_ACEOF
 
3874
/* end confdefs.h.  */
 
3875
 
 
3876
int
 
3877
main ()
 
3878
{
 
3879
#ifndef __GNUC__
 
3880
       choke me
 
3881
#endif
 
3882
 
 
3883
  ;
 
3884
  return 0;
 
3885
}
 
3886
_ACEOF
 
3887
rm -f conftest.$ac_objext
 
3888
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3889
  (eval $ac_compile) 2>conftest.er1
 
3890
  ac_status=$?
 
3891
  grep -v '^ *+' conftest.er1 >conftest.err
 
3892
  rm -f conftest.er1
 
3893
  cat conftest.err >&5
 
3894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3895
  (exit $ac_status); } &&
 
3896
         { ac_try='test -z "$ac_cxx_werror_flag"
 
3897
                         || test ! -s conftest.err'
 
3898
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3899
  (eval $ac_try) 2>&5
 
3900
  ac_status=$?
 
3901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3902
  (exit $ac_status); }; } &&
 
3903
         { ac_try='test -s conftest.$ac_objext'
 
3904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3905
  (eval $ac_try) 2>&5
 
3906
  ac_status=$?
 
3907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3908
  (exit $ac_status); }; }; then
 
3909
  ac_compiler_gnu=yes
 
3910
else
 
3911
  echo "$as_me: failed program was:" >&5
 
3912
sed 's/^/| /' conftest.$ac_ext >&5
 
3913
 
 
3914
ac_compiler_gnu=no
 
3915
fi
 
3916
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3917
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3918
 
 
3919
fi
 
3920
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
3921
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
3922
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
3923
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3924
ac_save_CXXFLAGS=$CXXFLAGS
 
3925
CXXFLAGS="-g"
 
3926
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
3927
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
3928
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
3929
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3930
else
 
3931
  cat >conftest.$ac_ext <<_ACEOF
 
3932
/* confdefs.h.  */
 
3933
_ACEOF
 
3934
cat confdefs.h >>conftest.$ac_ext
 
3935
cat >>conftest.$ac_ext <<_ACEOF
 
3936
/* end confdefs.h.  */
 
3937
 
 
3938
int
 
3939
main ()
 
3940
{
 
3941
 
 
3942
  ;
 
3943
  return 0;
 
3944
}
 
3945
_ACEOF
 
3946
rm -f conftest.$ac_objext
 
3947
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3948
  (eval $ac_compile) 2>conftest.er1
 
3949
  ac_status=$?
 
3950
  grep -v '^ *+' conftest.er1 >conftest.err
 
3951
  rm -f conftest.er1
 
3952
  cat conftest.err >&5
 
3953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3954
  (exit $ac_status); } &&
 
3955
         { ac_try='test -z "$ac_cxx_werror_flag"
 
3956
                         || test ! -s conftest.err'
 
3957
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3958
  (eval $ac_try) 2>&5
 
3959
  ac_status=$?
 
3960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3961
  (exit $ac_status); }; } &&
 
3962
         { ac_try='test -s conftest.$ac_objext'
 
3963
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3964
  (eval $ac_try) 2>&5
 
3965
  ac_status=$?
 
3966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3967
  (exit $ac_status); }; }; then
 
3968
  ac_cv_prog_cxx_g=yes
 
3969
else
 
3970
  echo "$as_me: failed program was:" >&5
 
3971
sed 's/^/| /' conftest.$ac_ext >&5
 
3972
 
 
3973
ac_cv_prog_cxx_g=no
 
3974
fi
 
3975
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3976
fi
 
3977
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
3978
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
3979
if test "$ac_test_CXXFLAGS" = set; then
 
3980
  CXXFLAGS=$ac_save_CXXFLAGS
 
3981
elif test $ac_cv_prog_cxx_g = yes; then
 
3982
  if test "$GXX" = yes; then
 
3983
    CXXFLAGS="-g -O2"
 
3984
  else
 
3985
    CXXFLAGS="-g"
 
3986
  fi
 
3987
else
 
3988
  if test "$GXX" = yes; then
 
3989
    CXXFLAGS="-O2"
 
3990
  else
 
3991
    CXXFLAGS=
 
3992
  fi
 
3993
fi
 
3994
for ac_declaration in \
 
3995
   '' \
 
3996
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3997
   'extern "C" void std::exit (int); using std::exit;' \
 
3998
   'extern "C" void exit (int) throw ();' \
 
3999
   'extern "C" void exit (int);' \
 
4000
   'void exit (int);'
 
4001
do
 
4002
  cat >conftest.$ac_ext <<_ACEOF
 
4003
/* confdefs.h.  */
 
4004
_ACEOF
 
4005
cat confdefs.h >>conftest.$ac_ext
 
4006
cat >>conftest.$ac_ext <<_ACEOF
 
4007
/* end confdefs.h.  */
 
4008
$ac_declaration
 
4009
#include <stdlib.h>
 
4010
int
 
4011
main ()
 
4012
{
 
4013
exit (42);
 
4014
  ;
 
4015
  return 0;
 
4016
}
 
4017
_ACEOF
 
4018
rm -f conftest.$ac_objext
 
4019
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4020
  (eval $ac_compile) 2>conftest.er1
 
4021
  ac_status=$?
 
4022
  grep -v '^ *+' conftest.er1 >conftest.err
 
4023
  rm -f conftest.er1
 
4024
  cat conftest.err >&5
 
4025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4026
  (exit $ac_status); } &&
 
4027
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4028
                         || test ! -s conftest.err'
 
4029
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4030
  (eval $ac_try) 2>&5
 
4031
  ac_status=$?
 
4032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4033
  (exit $ac_status); }; } &&
 
4034
         { ac_try='test -s conftest.$ac_objext'
 
4035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4036
  (eval $ac_try) 2>&5
 
4037
  ac_status=$?
 
4038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4039
  (exit $ac_status); }; }; then
 
4040
  :
 
4041
else
 
4042
  echo "$as_me: failed program was:" >&5
 
4043
sed 's/^/| /' conftest.$ac_ext >&5
 
4044
 
 
4045
continue
 
4046
fi
 
4047
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4048
  cat >conftest.$ac_ext <<_ACEOF
 
4049
/* confdefs.h.  */
 
4050
_ACEOF
 
4051
cat confdefs.h >>conftest.$ac_ext
 
4052
cat >>conftest.$ac_ext <<_ACEOF
 
4053
/* end confdefs.h.  */
 
4054
$ac_declaration
 
4055
int
 
4056
main ()
 
4057
{
 
4058
exit (42);
 
4059
  ;
 
4060
  return 0;
 
4061
}
 
4062
_ACEOF
 
4063
rm -f conftest.$ac_objext
 
4064
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4065
  (eval $ac_compile) 2>conftest.er1
 
4066
  ac_status=$?
 
4067
  grep -v '^ *+' conftest.er1 >conftest.err
 
4068
  rm -f conftest.er1
 
4069
  cat conftest.err >&5
 
4070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4071
  (exit $ac_status); } &&
 
4072
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4073
                         || test ! -s conftest.err'
 
4074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4075
  (eval $ac_try) 2>&5
 
4076
  ac_status=$?
 
4077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4078
  (exit $ac_status); }; } &&
 
4079
         { ac_try='test -s conftest.$ac_objext'
 
4080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4081
  (eval $ac_try) 2>&5
 
4082
  ac_status=$?
 
4083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4084
  (exit $ac_status); }; }; then
 
4085
  break
 
4086
else
 
4087
  echo "$as_me: failed program was:" >&5
 
4088
sed 's/^/| /' conftest.$ac_ext >&5
 
4089
 
 
4090
fi
 
4091
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4092
done
 
4093
rm -f conftest*
 
4094
if test -n "$ac_declaration"; then
 
4095
  echo '#ifdef __cplusplus' >>confdefs.h
 
4096
  echo $ac_declaration      >>confdefs.h
 
4097
  echo '#endif'             >>confdefs.h
 
4098
fi
 
4099
 
 
4100
ac_ext=c
 
4101
ac_cpp='$CPP $CPPFLAGS'
 
4102
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4103
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4104
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4105
 
 
4106
depcc="$CXX"  am_compiler_list=
 
4107
 
 
4108
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4109
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4110
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
4111
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4112
else
 
4113
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4114
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4115
  # making bogus files that we don't know about and never remove.  For
 
4116
  # instance it was reported that on HP-UX the gcc test will end up
 
4117
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4118
  # in D'.
 
4119
  mkdir conftest.dir
 
4120
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4121
  # using a relative directory.
 
4122
  cp "$am_depcomp" conftest.dir
 
4123
  cd conftest.dir
 
4124
  # We will build objects and dependencies in a subdirectory because
 
4125
  # it helps to detect inapplicable dependency modes.  For instance
 
4126
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4127
  # side effect of compilation, but ICC will put the dependencies in
 
4128
  # the current directory while Tru64 will put them in the object
 
4129
  # directory.
 
4130
  mkdir sub
 
4131
 
 
4132
  am_cv_CXX_dependencies_compiler_type=none
 
4133
  if test "$am_compiler_list" = ""; then
 
4134
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4135
  fi
 
4136
  for depmode in $am_compiler_list; do
 
4137
    # Setup a source with many dependencies, because some compilers
 
4138
    # like to wrap large dependency lists on column 80 (with \), and
 
4139
    # we should not choose a depcomp mode which is confused by this.
 
4140
    #
 
4141
    # We need to recreate these files for each test, as the compiler may
 
4142
    # overwrite some of them when testing with obscure command lines.
 
4143
    # This happens at least with the AIX C compiler.
 
4144
    : > sub/conftest.c
 
4145
    for i in 1 2 3 4 5 6; do
 
4146
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4147
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4148
      # Solaris 8's {/usr,}/bin/sh.
 
4149
      touch sub/conftst$i.h
 
4150
    done
 
4151
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4152
 
 
4153
    case $depmode in
 
4154
    nosideeffect)
 
4155
      # after this tag, mechanisms are not by side-effect, so they'll
 
4156
      # only be used when explicitly requested
 
4157
      if test "x$enable_dependency_tracking" = xyes; then
 
4158
        continue
 
4159
      else
 
4160
        break
 
4161
      fi
 
4162
      ;;
 
4163
    none) break ;;
 
4164
    esac
 
4165
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4166
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4167
    # handle `-M -o', and we need to detect this.
 
4168
    if depmode=$depmode \
 
4169
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4170
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4171
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4172
         >/dev/null 2>conftest.err &&
 
4173
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4174
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4175
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4176
      # icc doesn't choke on unknown options, it will just issue warnings
 
4177
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4178
      # that says an option was ignored or not supported.
 
4179
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4180
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4181
      # The diagnosis changed in icc 8.0:
 
4182
      #   icc: Command line remark: option '-MP' not supported
 
4183
      if (grep 'ignoring option' conftest.err ||
 
4184
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4185
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4186
        break
 
4187
      fi
 
4188
    fi
 
4189
  done
 
4190
 
 
4191
  cd ..
 
4192
  rm -rf conftest.dir
 
4193
else
 
4194
  am_cv_CXX_dependencies_compiler_type=none
 
4195
fi
 
4196
 
 
4197
fi
 
4198
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4199
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
4200
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4201
 
 
4202
 
 
4203
 
 
4204
if
 
4205
  test "x$enable_dependency_tracking" != xno \
 
4206
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4207
  am__fastdepCXX_TRUE=
 
4208
  am__fastdepCXX_FALSE='#'
 
4209
else
 
4210
  am__fastdepCXX_TRUE='#'
 
4211
  am__fastdepCXX_FALSE=
 
4212
fi
 
4213
 
 
4214
 
 
4215
 
 
4216
  if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
 
4217
    if test "$kde_use_debug_code" != "no"; then
 
4218
      if test "$CXX" = "KCC"; then
 
4219
        CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
 
4220
      else
 
4221
        if test "$kde_use_debug_code" = "full"; then
 
4222
          CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
 
4223
        else
 
4224
          CXXFLAGS="-g -O2 $CXXFLAGS"
 
4225
        fi
 
4226
      fi
 
4227
 
 
4228
echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
 
4229
echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6
 
4230
kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'`
 
4231
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4232
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4233
else
 
4234
 
 
4235
 
 
4236
 
 
4237
 
 
4238
ac_ext=cc
 
4239
ac_cpp='$CXXCPP $CPPFLAGS'
 
4240
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4241
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4242
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4243
 
 
4244
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4245
 
 
4246
 
 
4247
 
 
4248
  save_CXXFLAGS="$CXXFLAGS"
 
4249
  CXXFLAGS="$CXXFLAGS -fno-builtin"
 
4250
  cat >conftest.$ac_ext <<_ACEOF
 
4251
/* confdefs.h.  */
 
4252
_ACEOF
 
4253
cat confdefs.h >>conftest.$ac_ext
 
4254
cat >>conftest.$ac_ext <<_ACEOF
 
4255
/* end confdefs.h.  */
 
4256
 
 
4257
int
 
4258
main ()
 
4259
{
 
4260
 return 0;
 
4261
  ;
 
4262
  return 0;
 
4263
}
 
4264
_ACEOF
 
4265
rm -f conftest.$ac_objext conftest$ac_exeext
 
4266
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4267
  (eval $ac_link) 2>conftest.er1
 
4268
  ac_status=$?
 
4269
  grep -v '^ *+' conftest.er1 >conftest.err
 
4270
  rm -f conftest.er1
 
4271
  cat conftest.err >&5
 
4272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4273
  (exit $ac_status); } &&
 
4274
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4275
                         || test ! -s conftest.err'
 
4276
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4277
  (eval $ac_try) 2>&5
 
4278
  ac_status=$?
 
4279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4280
  (exit $ac_status); }; } &&
 
4281
         { ac_try='test -s conftest$ac_exeext'
 
4282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4283
  (eval $ac_try) 2>&5
 
4284
  ac_status=$?
 
4285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4286
  (exit $ac_status); }; }; then
 
4287
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4288
else
 
4289
  echo "$as_me: failed program was:" >&5
 
4290
sed 's/^/| /' conftest.$ac_ext >&5
 
4291
 
 
4292
fi
 
4293
rm -f conftest.err conftest.$ac_objext \
 
4294
      conftest$ac_exeext conftest.$ac_ext
 
4295
  CXXFLAGS="$save_CXXFLAGS"
 
4296
  ac_ext=c
 
4297
ac_cpp='$CPP $CPPFLAGS'
 
4298
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4299
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4300
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4301
 
 
4302
 
 
4303
fi
 
4304
 
 
4305
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4306
 echo "$as_me:$LINENO: result: yes" >&5
 
4307
echo "${ECHO_T}yes" >&6
 
4308
 :
 
4309
 CXXFLAGS="-fno-builtin $CXXFLAGS"
 
4310
else
 
4311
 echo "$as_me:$LINENO: result: no" >&5
 
4312
echo "${ECHO_T}no" >&6
 
4313
 :
 
4314
 
 
4315
fi
 
4316
 
 
4317
 
 
4318
 
 
4319
echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
 
4320
echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6
 
4321
kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'`
 
4322
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4323
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4324
else
 
4325
 
 
4326
 
 
4327
 
 
4328
   ac_ext=cc
 
4329
ac_cpp='$CXXCPP $CPPFLAGS'
 
4330
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4331
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4332
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4333
 
 
4334
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4335
 
 
4336
 
 
4337
  save_CXXFLAGS="$CXXFLAGS"
 
4338
  CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
 
4339
  cat >conftest.$ac_ext <<_ACEOF
 
4340
/* confdefs.h.  */
 
4341
_ACEOF
 
4342
cat confdefs.h >>conftest.$ac_ext
 
4343
cat >>conftest.$ac_ext <<_ACEOF
 
4344
/* end confdefs.h.  */
 
4345
 
 
4346
int
 
4347
main ()
 
4348
{
 
4349
 return 0;
 
4350
  ;
 
4351
  return 0;
 
4352
}
 
4353
_ACEOF
 
4354
rm -f conftest.$ac_objext conftest$ac_exeext
 
4355
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4356
  (eval $ac_link) 2>conftest.er1
 
4357
  ac_status=$?
 
4358
  grep -v '^ *+' conftest.er1 >conftest.err
 
4359
  rm -f conftest.er1
 
4360
  cat conftest.err >&5
 
4361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4362
  (exit $ac_status); } &&
 
4363
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4364
                         || test ! -s conftest.err'
 
4365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4366
  (eval $ac_try) 2>&5
 
4367
  ac_status=$?
 
4368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4369
  (exit $ac_status); }; } &&
 
4370
         { ac_try='test -s conftest$ac_exeext'
 
4371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4372
  (eval $ac_try) 2>&5
 
4373
  ac_status=$?
 
4374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4375
  (exit $ac_status); }; }; then
 
4376
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4377
else
 
4378
  echo "$as_me: failed program was:" >&5
 
4379
sed 's/^/| /' conftest.$ac_ext >&5
 
4380
 
 
4381
fi
 
4382
rm -f conftest.err conftest.$ac_objext \
 
4383
      conftest$ac_exeext conftest.$ac_ext
 
4384
  CXXFLAGS="$save_CXXFLAGS"
 
4385
  ac_ext=c
 
4386
ac_cpp='$CPP $CPPFLAGS'
 
4387
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4388
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4389
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4390
 
 
4391
 
 
4392
fi
 
4393
 
 
4394
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4395
 echo "$as_me:$LINENO: result: yes" >&5
 
4396
echo "${ECHO_T}yes" >&6
 
4397
 :
 
4398
 WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
 
4399
else
 
4400
 echo "$as_me:$LINENO: result: no" >&5
 
4401
echo "${ECHO_T}no" >&6
 
4402
 :
 
4403
 WOVERLOADED_VRITUAL=""
 
4404
fi
 
4405
 
 
4406
 
 
4407
    else
 
4408
      if test "$CXX" = "KCC"; then
 
4409
        CXXFLAGS="+K3 $CXXFLAGS"
 
4410
      else
 
4411
        CXXFLAGS="-O2 $CXXFLAGS"
 
4412
      fi
 
4413
    fi
 
4414
  fi
 
4415
 
 
4416
  if test "$kde_use_debug_define" = "yes"; then
 
4417
    CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
 
4418
  fi
 
4419
 
 
4420
  if test "$kde_use_profiling" = "yes"; then
 
4421
 
 
4422
echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
 
4423
echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6
 
4424
kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'`
 
4425
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4426
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4427
else
 
4428
 
 
4429
 
 
4430
 
 
4431
   ac_ext=cc
 
4432
ac_cpp='$CXXCPP $CPPFLAGS'
 
4433
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4434
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4435
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4436
 
 
4437
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4438
 
 
4439
 
 
4440
  save_CXXFLAGS="$CXXFLAGS"
 
4441
  CXXFLAGS="$CXXFLAGS -pg"
 
4442
  cat >conftest.$ac_ext <<_ACEOF
 
4443
/* confdefs.h.  */
 
4444
_ACEOF
 
4445
cat confdefs.h >>conftest.$ac_ext
 
4446
cat >>conftest.$ac_ext <<_ACEOF
 
4447
/* end confdefs.h.  */
 
4448
 
 
4449
int
 
4450
main ()
 
4451
{
 
4452
 return 0;
 
4453
  ;
 
4454
  return 0;
 
4455
}
 
4456
_ACEOF
 
4457
rm -f conftest.$ac_objext conftest$ac_exeext
 
4458
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4459
  (eval $ac_link) 2>conftest.er1
 
4460
  ac_status=$?
 
4461
  grep -v '^ *+' conftest.er1 >conftest.err
 
4462
  rm -f conftest.er1
 
4463
  cat conftest.err >&5
 
4464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4465
  (exit $ac_status); } &&
 
4466
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4467
                         || test ! -s conftest.err'
 
4468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4469
  (eval $ac_try) 2>&5
 
4470
  ac_status=$?
 
4471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4472
  (exit $ac_status); }; } &&
 
4473
         { ac_try='test -s conftest$ac_exeext'
 
4474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4475
  (eval $ac_try) 2>&5
 
4476
  ac_status=$?
 
4477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4478
  (exit $ac_status); }; }; then
 
4479
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4480
else
 
4481
  echo "$as_me: failed program was:" >&5
 
4482
sed 's/^/| /' conftest.$ac_ext >&5
 
4483
 
 
4484
fi
 
4485
rm -f conftest.err conftest.$ac_objext \
 
4486
      conftest$ac_exeext conftest.$ac_ext
 
4487
  CXXFLAGS="$save_CXXFLAGS"
 
4488
  ac_ext=c
 
4489
ac_cpp='$CPP $CPPFLAGS'
 
4490
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4491
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4492
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4493
 
 
4494
 
 
4495
fi
 
4496
 
 
4497
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4498
 echo "$as_me:$LINENO: result: yes" >&5
 
4499
echo "${ECHO_T}yes" >&6
 
4500
 :
 
4501
 
 
4502
      CFLAGS="-pg $CFLAGS"
 
4503
      CXXFLAGS="-pg $CXXFLAGS"
 
4504
 
 
4505
else
 
4506
 echo "$as_me:$LINENO: result: no" >&5
 
4507
echo "${ECHO_T}no" >&6
 
4508
 :
 
4509
 
 
4510
fi
 
4511
 
 
4512
  fi
 
4513
 
 
4514
  if test "$kde_use_warnings" = "yes"; then
 
4515
      if test "$GCC" = "yes"; then
 
4516
        CXXFLAGS="-Wall -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
 
4517
        case $host in
 
4518
          *-*-linux-gnu)
 
4519
            CFLAGS="-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
 
4520
            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
 
4521
 
 
4522
echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5
 
4523
echo $ECHO_N "checking whether $CXX supports -Wmissing-format-attribute... $ECHO_C" >&6
 
4524
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
 
4525
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4526
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4527
else
 
4528
 
 
4529
 
 
4530
 
 
4531
   ac_ext=cc
 
4532
ac_cpp='$CXXCPP $CPPFLAGS'
 
4533
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4534
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4535
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4536
 
 
4537
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4538
 
 
4539
 
 
4540
  save_CXXFLAGS="$CXXFLAGS"
 
4541
  CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
 
4542
  cat >conftest.$ac_ext <<_ACEOF
 
4543
/* confdefs.h.  */
 
4544
_ACEOF
 
4545
cat confdefs.h >>conftest.$ac_ext
 
4546
cat >>conftest.$ac_ext <<_ACEOF
 
4547
/* end confdefs.h.  */
 
4548
 
 
4549
int
 
4550
main ()
 
4551
{
 
4552
 return 0;
 
4553
  ;
 
4554
  return 0;
 
4555
}
 
4556
_ACEOF
 
4557
rm -f conftest.$ac_objext conftest$ac_exeext
 
4558
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4559
  (eval $ac_link) 2>conftest.er1
 
4560
  ac_status=$?
 
4561
  grep -v '^ *+' conftest.er1 >conftest.err
 
4562
  rm -f conftest.er1
 
4563
  cat conftest.err >&5
 
4564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4565
  (exit $ac_status); } &&
 
4566
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4567
                         || test ! -s conftest.err'
 
4568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4569
  (eval $ac_try) 2>&5
 
4570
  ac_status=$?
 
4571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4572
  (exit $ac_status); }; } &&
 
4573
         { ac_try='test -s conftest$ac_exeext'
 
4574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4575
  (eval $ac_try) 2>&5
 
4576
  ac_status=$?
 
4577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4578
  (exit $ac_status); }; }; then
 
4579
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4580
else
 
4581
  echo "$as_me: failed program was:" >&5
 
4582
sed 's/^/| /' conftest.$ac_ext >&5
 
4583
 
 
4584
fi
 
4585
rm -f conftest.err conftest.$ac_objext \
 
4586
      conftest$ac_exeext conftest.$ac_ext
 
4587
  CXXFLAGS="$save_CXXFLAGS"
 
4588
  ac_ext=c
 
4589
ac_cpp='$CPP $CPPFLAGS'
 
4590
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4591
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4592
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4593
 
 
4594
 
 
4595
fi
 
4596
 
 
4597
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4598
 echo "$as_me:$LINENO: result: yes" >&5
 
4599
echo "${ECHO_T}yes" >&6
 
4600
 :
 
4601
 CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"
 
4602
else
 
4603
 echo "$as_me:$LINENO: result: no" >&5
 
4604
echo "${ECHO_T}no" >&6
 
4605
 :
 
4606
 
 
4607
fi
 
4608
 
 
4609
 
 
4610
echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
 
4611
echo $ECHO_N "checking whether $CC supports -Wmissing-format-attribute... $ECHO_C" >&6
 
4612
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
 
4613
if eval "test \"\${kde_cv_prog_cc_$kde_cache+set}\" = set"; then
 
4614
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4615
else
 
4616
 
 
4617
 
 
4618
 
 
4619
  ac_ext=c
 
4620
ac_cpp='$CPP $CPPFLAGS'
 
4621
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4622
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4623
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4624
 
 
4625
  save_CFLAGS="$CFLAGS"
 
4626
  CFLAGS="$CFLAGS -Wmissing-format-attribute"
 
4627
  cat >conftest.$ac_ext <<_ACEOF
 
4628
/* confdefs.h.  */
 
4629
_ACEOF
 
4630
cat confdefs.h >>conftest.$ac_ext
 
4631
cat >>conftest.$ac_ext <<_ACEOF
 
4632
/* end confdefs.h.  */
 
4633
 
 
4634
int
 
4635
main ()
 
4636
{
 
4637
 return 0;
 
4638
  ;
 
4639
  return 0;
 
4640
}
 
4641
_ACEOF
 
4642
rm -f conftest.$ac_objext conftest$ac_exeext
 
4643
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4644
  (eval $ac_link) 2>conftest.er1
 
4645
  ac_status=$?
 
4646
  grep -v '^ *+' conftest.er1 >conftest.err
 
4647
  rm -f conftest.er1
 
4648
  cat conftest.err >&5
 
4649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4650
  (exit $ac_status); } &&
 
4651
         { ac_try='test -z "$ac_c_werror_flag"
 
4652
                         || test ! -s conftest.err'
 
4653
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4654
  (eval $ac_try) 2>&5
 
4655
  ac_status=$?
 
4656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4657
  (exit $ac_status); }; } &&
 
4658
         { ac_try='test -s conftest$ac_exeext'
 
4659
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4660
  (eval $ac_try) 2>&5
 
4661
  ac_status=$?
 
4662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4663
  (exit $ac_status); }; }; then
 
4664
  eval "kde_cv_prog_cc_$kde_cache=yes"
 
4665
else
 
4666
  echo "$as_me: failed program was:" >&5
 
4667
sed 's/^/| /' conftest.$ac_ext >&5
 
4668
 
 
4669
fi
 
4670
rm -f conftest.err conftest.$ac_objext \
 
4671
      conftest$ac_exeext conftest.$ac_ext
 
4672
  CFLAGS="$save_CFLAGS"
 
4673
  ac_ext=c
 
4674
ac_cpp='$CPP $CPPFLAGS'
 
4675
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4676
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4677
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4678
 
 
4679
 
 
4680
fi
 
4681
 
 
4682
if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then
 
4683
 echo "$as_me:$LINENO: result: yes" >&5
 
4684
echo "${ECHO_T}yes" >&6
 
4685
 :
 
4686
 CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"
 
4687
else
 
4688
 echo "$as_me:$LINENO: result: no" >&5
 
4689
echo "${ECHO_T}no" >&6
 
4690
 :
 
4691
 
 
4692
fi
 
4693
 
 
4694
          ;;
 
4695
        esac
 
4696
 
 
4697
echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
 
4698
echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6
 
4699
kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'`
 
4700
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4702
else
 
4703
 
 
4704
 
 
4705
 
 
4706
   ac_ext=cc
 
4707
ac_cpp='$CXXCPP $CPPFLAGS'
 
4708
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4709
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4710
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4711
 
 
4712
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4713
 
 
4714
 
 
4715
  save_CXXFLAGS="$CXXFLAGS"
 
4716
  CXXFLAGS="$CXXFLAGS -Wundef"
 
4717
  cat >conftest.$ac_ext <<_ACEOF
 
4718
/* confdefs.h.  */
 
4719
_ACEOF
 
4720
cat confdefs.h >>conftest.$ac_ext
 
4721
cat >>conftest.$ac_ext <<_ACEOF
 
4722
/* end confdefs.h.  */
 
4723
 
 
4724
int
 
4725
main ()
 
4726
{
 
4727
 return 0;
 
4728
  ;
 
4729
  return 0;
 
4730
}
 
4731
_ACEOF
 
4732
rm -f conftest.$ac_objext conftest$ac_exeext
 
4733
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4734
  (eval $ac_link) 2>conftest.er1
 
4735
  ac_status=$?
 
4736
  grep -v '^ *+' conftest.er1 >conftest.err
 
4737
  rm -f conftest.er1
 
4738
  cat conftest.err >&5
 
4739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4740
  (exit $ac_status); } &&
 
4741
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4742
                         || test ! -s conftest.err'
 
4743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4744
  (eval $ac_try) 2>&5
 
4745
  ac_status=$?
 
4746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4747
  (exit $ac_status); }; } &&
 
4748
         { ac_try='test -s conftest$ac_exeext'
 
4749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4750
  (eval $ac_try) 2>&5
 
4751
  ac_status=$?
 
4752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4753
  (exit $ac_status); }; }; then
 
4754
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4755
else
 
4756
  echo "$as_me: failed program was:" >&5
 
4757
sed 's/^/| /' conftest.$ac_ext >&5
 
4758
 
 
4759
fi
 
4760
rm -f conftest.err conftest.$ac_objext \
 
4761
      conftest$ac_exeext conftest.$ac_ext
 
4762
  CXXFLAGS="$save_CXXFLAGS"
 
4763
  ac_ext=c
 
4764
ac_cpp='$CPP $CPPFLAGS'
 
4765
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4766
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4767
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4768
 
 
4769
 
 
4770
fi
 
4771
 
 
4772
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4773
 echo "$as_me:$LINENO: result: yes" >&5
 
4774
echo "${ECHO_T}yes" >&6
 
4775
 :
 
4776
 CXXFLAGS="-Wundef $CXXFLAGS"
 
4777
else
 
4778
 echo "$as_me:$LINENO: result: no" >&5
 
4779
echo "${ECHO_T}no" >&6
 
4780
 :
 
4781
 
 
4782
fi
 
4783
 
 
4784
 
 
4785
echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
 
4786
echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6
 
4787
kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'`
 
4788
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4789
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4790
else
 
4791
 
 
4792
 
 
4793
 
 
4794
   ac_ext=cc
 
4795
ac_cpp='$CXXCPP $CPPFLAGS'
 
4796
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4797
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4798
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4799
 
 
4800
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4801
 
 
4802
 
 
4803
  save_CXXFLAGS="$CXXFLAGS"
 
4804
  CXXFLAGS="$CXXFLAGS -Wno-long-long"
 
4805
  cat >conftest.$ac_ext <<_ACEOF
 
4806
/* confdefs.h.  */
 
4807
_ACEOF
 
4808
cat confdefs.h >>conftest.$ac_ext
 
4809
cat >>conftest.$ac_ext <<_ACEOF
 
4810
/* end confdefs.h.  */
 
4811
 
 
4812
int
 
4813
main ()
 
4814
{
 
4815
 return 0;
 
4816
  ;
 
4817
  return 0;
 
4818
}
 
4819
_ACEOF
 
4820
rm -f conftest.$ac_objext conftest$ac_exeext
 
4821
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4822
  (eval $ac_link) 2>conftest.er1
 
4823
  ac_status=$?
 
4824
  grep -v '^ *+' conftest.er1 >conftest.err
 
4825
  rm -f conftest.er1
 
4826
  cat conftest.err >&5
 
4827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4828
  (exit $ac_status); } &&
 
4829
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4830
                         || test ! -s conftest.err'
 
4831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4832
  (eval $ac_try) 2>&5
 
4833
  ac_status=$?
 
4834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4835
  (exit $ac_status); }; } &&
 
4836
         { ac_try='test -s conftest$ac_exeext'
 
4837
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4838
  (eval $ac_try) 2>&5
 
4839
  ac_status=$?
 
4840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4841
  (exit $ac_status); }; }; then
 
4842
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4843
else
 
4844
  echo "$as_me: failed program was:" >&5
 
4845
sed 's/^/| /' conftest.$ac_ext >&5
 
4846
 
 
4847
fi
 
4848
rm -f conftest.err conftest.$ac_objext \
 
4849
      conftest$ac_exeext conftest.$ac_ext
 
4850
  CXXFLAGS="$save_CXXFLAGS"
 
4851
  ac_ext=c
 
4852
ac_cpp='$CPP $CPPFLAGS'
 
4853
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4854
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4855
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4856
 
 
4857
 
 
4858
fi
 
4859
 
 
4860
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4861
 echo "$as_me:$LINENO: result: yes" >&5
 
4862
echo "${ECHO_T}yes" >&6
 
4863
 :
 
4864
 CXXFLAGS="-Wno-long-long $CXXFLAGS"
 
4865
else
 
4866
 echo "$as_me:$LINENO: result: no" >&5
 
4867
echo "${ECHO_T}no" >&6
 
4868
 :
 
4869
 
 
4870
fi
 
4871
 
 
4872
 
 
4873
echo "$as_me:$LINENO: checking whether $CXX supports -Wnon-virtual-dtor" >&5
 
4874
echo $ECHO_N "checking whether $CXX supports -Wnon-virtual-dtor... $ECHO_C" >&6
 
4875
kde_cache=`echo Wnon-virtual-dtor | sed 'y% .=/+-,%____p__%'`
 
4876
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4877
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4878
else
 
4879
 
 
4880
 
 
4881
 
 
4882
   ac_ext=cc
 
4883
ac_cpp='$CXXCPP $CPPFLAGS'
 
4884
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4885
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4886
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4887
 
 
4888
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4889
 
 
4890
 
 
4891
  save_CXXFLAGS="$CXXFLAGS"
 
4892
  CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor"
 
4893
  cat >conftest.$ac_ext <<_ACEOF
 
4894
/* confdefs.h.  */
 
4895
_ACEOF
 
4896
cat confdefs.h >>conftest.$ac_ext
 
4897
cat >>conftest.$ac_ext <<_ACEOF
 
4898
/* end confdefs.h.  */
 
4899
 
 
4900
int
 
4901
main ()
 
4902
{
 
4903
 return 0;
 
4904
  ;
 
4905
  return 0;
 
4906
}
 
4907
_ACEOF
 
4908
rm -f conftest.$ac_objext conftest$ac_exeext
 
4909
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4910
  (eval $ac_link) 2>conftest.er1
 
4911
  ac_status=$?
 
4912
  grep -v '^ *+' conftest.er1 >conftest.err
 
4913
  rm -f conftest.er1
 
4914
  cat conftest.err >&5
 
4915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4916
  (exit $ac_status); } &&
 
4917
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4918
                         || test ! -s conftest.err'
 
4919
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4920
  (eval $ac_try) 2>&5
 
4921
  ac_status=$?
 
4922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4923
  (exit $ac_status); }; } &&
 
4924
         { ac_try='test -s conftest$ac_exeext'
 
4925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4926
  (eval $ac_try) 2>&5
 
4927
  ac_status=$?
 
4928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4929
  (exit $ac_status); }; }; then
 
4930
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4931
else
 
4932
  echo "$as_me: failed program was:" >&5
 
4933
sed 's/^/| /' conftest.$ac_ext >&5
 
4934
 
 
4935
fi
 
4936
rm -f conftest.err conftest.$ac_objext \
 
4937
      conftest$ac_exeext conftest.$ac_ext
 
4938
  CXXFLAGS="$save_CXXFLAGS"
 
4939
  ac_ext=c
 
4940
ac_cpp='$CPP $CPPFLAGS'
 
4941
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4942
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4943
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4944
 
 
4945
 
 
4946
fi
 
4947
 
 
4948
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4949
 echo "$as_me:$LINENO: result: yes" >&5
 
4950
echo "${ECHO_T}yes" >&6
 
4951
 :
 
4952
 CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"
 
4953
else
 
4954
 echo "$as_me:$LINENO: result: no" >&5
 
4955
echo "${ECHO_T}no" >&6
 
4956
 :
 
4957
 
 
4958
fi
 
4959
 
 
4960
     fi
 
4961
  fi
 
4962
 
 
4963
  if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
 
4964
    CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
 
4965
  fi
 
4966
 
 
4967
  # Check whether --enable-pch or --disable-pch was given.
 
4968
if test "${enable_pch+set}" = set; then
 
4969
  enableval="$enable_pch"
 
4970
   kde_use_pch=$enableval
 
4971
else
 
4972
   kde_use_pch=no
 
4973
fi;
 
4974
 
 
4975
  HAVE_GCC_VISIBILITY=0
 
4976
 
 
4977
 
 
4978
  if test "$GXX" = "yes"; then
 
4979
 
 
4980
echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
 
4981
echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6
 
4982
kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'`
 
4983
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4984
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4985
else
 
4986
 
 
4987
 
 
4988
 
 
4989
   ac_ext=cc
 
4990
ac_cpp='$CXXCPP $CPPFLAGS'
 
4991
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4992
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4993
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4994
 
 
4995
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4996
 
 
4997
 
 
4998
  save_CXXFLAGS="$CXXFLAGS"
 
4999
  CXXFLAGS="$CXXFLAGS -fno-exceptions"
 
5000
  cat >conftest.$ac_ext <<_ACEOF
 
5001
/* confdefs.h.  */
 
5002
_ACEOF
 
5003
cat confdefs.h >>conftest.$ac_ext
 
5004
cat >>conftest.$ac_ext <<_ACEOF
 
5005
/* end confdefs.h.  */
 
5006
 
 
5007
int
 
5008
main ()
 
5009
{
 
5010
 return 0;
 
5011
  ;
 
5012
  return 0;
 
5013
}
 
5014
_ACEOF
 
5015
rm -f conftest.$ac_objext conftest$ac_exeext
 
5016
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5017
  (eval $ac_link) 2>conftest.er1
 
5018
  ac_status=$?
 
5019
  grep -v '^ *+' conftest.er1 >conftest.err
 
5020
  rm -f conftest.er1
 
5021
  cat conftest.err >&5
 
5022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5023
  (exit $ac_status); } &&
 
5024
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5025
                         || test ! -s conftest.err'
 
5026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5027
  (eval $ac_try) 2>&5
 
5028
  ac_status=$?
 
5029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5030
  (exit $ac_status); }; } &&
 
5031
         { ac_try='test -s conftest$ac_exeext'
 
5032
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5033
  (eval $ac_try) 2>&5
 
5034
  ac_status=$?
 
5035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5036
  (exit $ac_status); }; }; then
 
5037
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5038
else
 
5039
  echo "$as_me: failed program was:" >&5
 
5040
sed 's/^/| /' conftest.$ac_ext >&5
 
5041
 
 
5042
fi
 
5043
rm -f conftest.err conftest.$ac_objext \
 
5044
      conftest$ac_exeext conftest.$ac_ext
 
5045
  CXXFLAGS="$save_CXXFLAGS"
 
5046
  ac_ext=c
 
5047
ac_cpp='$CPP $CPPFLAGS'
 
5048
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5049
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5050
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5051
 
 
5052
 
 
5053
fi
 
5054
 
 
5055
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5056
 echo "$as_me:$LINENO: result: yes" >&5
 
5057
echo "${ECHO_T}yes" >&6
 
5058
 :
 
5059
 CXXFLAGS="$CXXFLAGS -fno-exceptions"
 
5060
else
 
5061
 echo "$as_me:$LINENO: result: no" >&5
 
5062
echo "${ECHO_T}no" >&6
 
5063
 :
 
5064
 
 
5065
fi
 
5066
 
 
5067
 
 
5068
echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
 
5069
echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6
 
5070
kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'`
 
5071
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5073
else
 
5074
 
 
5075
 
 
5076
 
 
5077
   ac_ext=cc
 
5078
ac_cpp='$CXXCPP $CPPFLAGS'
 
5079
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5080
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5081
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5082
 
 
5083
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5084
 
 
5085
 
 
5086
  save_CXXFLAGS="$CXXFLAGS"
 
5087
  CXXFLAGS="$CXXFLAGS -fno-check-new"
 
5088
  cat >conftest.$ac_ext <<_ACEOF
 
5089
/* confdefs.h.  */
 
5090
_ACEOF
 
5091
cat confdefs.h >>conftest.$ac_ext
 
5092
cat >>conftest.$ac_ext <<_ACEOF
 
5093
/* end confdefs.h.  */
 
5094
 
 
5095
int
 
5096
main ()
 
5097
{
 
5098
 return 0;
 
5099
  ;
 
5100
  return 0;
 
5101
}
 
5102
_ACEOF
 
5103
rm -f conftest.$ac_objext conftest$ac_exeext
 
5104
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5105
  (eval $ac_link) 2>conftest.er1
 
5106
  ac_status=$?
 
5107
  grep -v '^ *+' conftest.er1 >conftest.err
 
5108
  rm -f conftest.er1
 
5109
  cat conftest.err >&5
 
5110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5111
  (exit $ac_status); } &&
 
5112
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5113
                         || test ! -s conftest.err'
 
5114
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5115
  (eval $ac_try) 2>&5
 
5116
  ac_status=$?
 
5117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5118
  (exit $ac_status); }; } &&
 
5119
         { ac_try='test -s conftest$ac_exeext'
 
5120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5121
  (eval $ac_try) 2>&5
 
5122
  ac_status=$?
 
5123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5124
  (exit $ac_status); }; }; then
 
5125
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5126
else
 
5127
  echo "$as_me: failed program was:" >&5
 
5128
sed 's/^/| /' conftest.$ac_ext >&5
 
5129
 
 
5130
fi
 
5131
rm -f conftest.err conftest.$ac_objext \
 
5132
      conftest$ac_exeext conftest.$ac_ext
 
5133
  CXXFLAGS="$save_CXXFLAGS"
 
5134
  ac_ext=c
 
5135
ac_cpp='$CPP $CPPFLAGS'
 
5136
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5137
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5138
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5139
 
 
5140
 
 
5141
fi
 
5142
 
 
5143
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5144
 echo "$as_me:$LINENO: result: yes" >&5
 
5145
echo "${ECHO_T}yes" >&6
 
5146
 :
 
5147
 CXXFLAGS="$CXXFLAGS -fno-check-new"
 
5148
else
 
5149
 echo "$as_me:$LINENO: result: no" >&5
 
5150
echo "${ECHO_T}no" >&6
 
5151
 :
 
5152
 
 
5153
fi
 
5154
 
 
5155
 
 
5156
echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5
 
5157
echo $ECHO_N "checking whether $CXX supports -fno-common... $ECHO_C" >&6
 
5158
kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'`
 
5159
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5160
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5161
else
 
5162
 
 
5163
 
 
5164
 
 
5165
   ac_ext=cc
 
5166
ac_cpp='$CXXCPP $CPPFLAGS'
 
5167
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5168
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5169
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5170
 
 
5171
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5172
 
 
5173
 
 
5174
  save_CXXFLAGS="$CXXFLAGS"
 
5175
  CXXFLAGS="$CXXFLAGS -fno-common"
 
5176
  cat >conftest.$ac_ext <<_ACEOF
 
5177
/* confdefs.h.  */
 
5178
_ACEOF
 
5179
cat confdefs.h >>conftest.$ac_ext
 
5180
cat >>conftest.$ac_ext <<_ACEOF
 
5181
/* end confdefs.h.  */
 
5182
 
 
5183
int
 
5184
main ()
 
5185
{
 
5186
 return 0;
 
5187
  ;
 
5188
  return 0;
 
5189
}
 
5190
_ACEOF
 
5191
rm -f conftest.$ac_objext conftest$ac_exeext
 
5192
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5193
  (eval $ac_link) 2>conftest.er1
 
5194
  ac_status=$?
 
5195
  grep -v '^ *+' conftest.er1 >conftest.err
 
5196
  rm -f conftest.er1
 
5197
  cat conftest.err >&5
 
5198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5199
  (exit $ac_status); } &&
 
5200
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5201
                         || test ! -s conftest.err'
 
5202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5203
  (eval $ac_try) 2>&5
 
5204
  ac_status=$?
 
5205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5206
  (exit $ac_status); }; } &&
 
5207
         { ac_try='test -s conftest$ac_exeext'
 
5208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5209
  (eval $ac_try) 2>&5
 
5210
  ac_status=$?
 
5211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5212
  (exit $ac_status); }; }; then
 
5213
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5214
else
 
5215
  echo "$as_me: failed program was:" >&5
 
5216
sed 's/^/| /' conftest.$ac_ext >&5
 
5217
 
 
5218
fi
 
5219
rm -f conftest.err conftest.$ac_objext \
 
5220
      conftest$ac_exeext conftest.$ac_ext
 
5221
  CXXFLAGS="$save_CXXFLAGS"
 
5222
  ac_ext=c
 
5223
ac_cpp='$CPP $CPPFLAGS'
 
5224
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5225
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5226
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5227
 
 
5228
 
 
5229
fi
 
5230
 
 
5231
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5232
 echo "$as_me:$LINENO: result: yes" >&5
 
5233
echo "${ECHO_T}yes" >&6
 
5234
 :
 
5235
 CXXFLAGS="$CXXFLAGS -fno-common"
 
5236
else
 
5237
 echo "$as_me:$LINENO: result: no" >&5
 
5238
echo "${ECHO_T}no" >&6
 
5239
 :
 
5240
 
 
5241
fi
 
5242
 
 
5243
 
 
5244
echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
 
5245
echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6
 
5246
kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'`
 
5247
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5249
else
 
5250
 
 
5251
 
 
5252
 
 
5253
   ac_ext=cc
 
5254
ac_cpp='$CXXCPP $CPPFLAGS'
 
5255
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5256
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5257
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5258
 
 
5259
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5260
 
 
5261
 
 
5262
  save_CXXFLAGS="$CXXFLAGS"
 
5263
  CXXFLAGS="$CXXFLAGS -fexceptions"
 
5264
  cat >conftest.$ac_ext <<_ACEOF
 
5265
/* confdefs.h.  */
 
5266
_ACEOF
 
5267
cat confdefs.h >>conftest.$ac_ext
 
5268
cat >>conftest.$ac_ext <<_ACEOF
 
5269
/* end confdefs.h.  */
 
5270
 
 
5271
int
 
5272
main ()
 
5273
{
 
5274
 return 0;
 
5275
  ;
 
5276
  return 0;
 
5277
}
 
5278
_ACEOF
 
5279
rm -f conftest.$ac_objext conftest$ac_exeext
 
5280
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5281
  (eval $ac_link) 2>conftest.er1
 
5282
  ac_status=$?
 
5283
  grep -v '^ *+' conftest.er1 >conftest.err
 
5284
  rm -f conftest.er1
 
5285
  cat conftest.err >&5
 
5286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5287
  (exit $ac_status); } &&
 
5288
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5289
                         || test ! -s conftest.err'
 
5290
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5291
  (eval $ac_try) 2>&5
 
5292
  ac_status=$?
 
5293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5294
  (exit $ac_status); }; } &&
 
5295
         { ac_try='test -s conftest$ac_exeext'
 
5296
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5297
  (eval $ac_try) 2>&5
 
5298
  ac_status=$?
 
5299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5300
  (exit $ac_status); }; }; then
 
5301
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5302
else
 
5303
  echo "$as_me: failed program was:" >&5
 
5304
sed 's/^/| /' conftest.$ac_ext >&5
 
5305
 
 
5306
fi
 
5307
rm -f conftest.err conftest.$ac_objext \
 
5308
      conftest$ac_exeext conftest.$ac_ext
 
5309
  CXXFLAGS="$save_CXXFLAGS"
 
5310
  ac_ext=c
 
5311
ac_cpp='$CPP $CPPFLAGS'
 
5312
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5313
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5314
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5315
 
 
5316
 
 
5317
fi
 
5318
 
 
5319
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5320
 echo "$as_me:$LINENO: result: yes" >&5
 
5321
echo "${ECHO_T}yes" >&6
 
5322
 :
 
5323
 USE_EXCEPTIONS="-fexceptions"
 
5324
else
 
5325
 echo "$as_me:$LINENO: result: no" >&5
 
5326
echo "${ECHO_T}no" >&6
 
5327
 :
 
5328
 USE_EXCEPTIONS=
 
5329
fi
 
5330
 
 
5331
    ENABLE_PERMISSIVE_FLAG="-fpermissive"
 
5332
 
 
5333
    if test "$kde_use_pch" = "yes"; then
 
5334
        echo "$as_me:$LINENO: checking whether gcc supports precompiling c header files" >&5
 
5335
echo $ECHO_N "checking whether gcc supports precompiling c header files... $ECHO_C" >&6
 
5336
        echo >conftest.h
 
5337
        if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then
 
5338
            kde_gcc_supports_pch=yes
 
5339
            echo "$as_me:$LINENO: result: yes" >&5
 
5340
echo "${ECHO_T}yes" >&6
 
5341
        else
 
5342
            kde_gcc_supports_pch=no
 
5343
            echo "$as_me:$LINENO: result: no" >&5
 
5344
echo "${ECHO_T}no" >&6
 
5345
        fi
 
5346
        if test "$kde_gcc_supports_pch" = "yes"; then
 
5347
            echo "$as_me:$LINENO: checking whether gcc supports precompiling c++ header files" >&5
 
5348
echo $ECHO_N "checking whether gcc supports precompiling c++ header files... $ECHO_C" >&6
 
5349
            if $CXX -x c++-header conftest.h >/dev/null 2>/dev/null; then
 
5350
                kde_gcc_supports_pch=yes
 
5351
                echo "$as_me:$LINENO: result: yes" >&5
 
5352
echo "${ECHO_T}yes" >&6
 
5353
            else
 
5354
                kde_gcc_supports_pch=no
 
5355
                echo "$as_me:$LINENO: result: no" >&5
 
5356
echo "${ECHO_T}no" >&6
 
5357
            fi
 
5358
        fi
 
5359
        rm -f conftest.h conftest.h.gch
 
5360
    fi
 
5361
 
 
5362
 
 
5363
if test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes"; then
 
5364
  unsermake_enable_pch_TRUE=
 
5365
  unsermake_enable_pch_FALSE='#'
 
5366
else
 
5367
  unsermake_enable_pch_TRUE='#'
 
5368
  unsermake_enable_pch_FALSE=
 
5369
fi
 
5370
 
 
5371
  fi
 
5372
  if test "$CXX" = "KCC"; then
 
5373
 
 
5374
    if test "$kde_use_pch" = "yes"; then
 
5375
 
 
5376
echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
 
5377
echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6
 
5378
kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'`
 
5379
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5380
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5381
else
 
5382
 
 
5383
 
 
5384
 
 
5385
   ac_ext=cc
 
5386
ac_cpp='$CXXCPP $CPPFLAGS'
 
5387
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5388
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5389
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5390
 
 
5391
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5392
 
 
5393
 
 
5394
  save_CXXFLAGS="$CXXFLAGS"
 
5395
  CXXFLAGS="$CXXFLAGS --pch"
 
5396
  cat >conftest.$ac_ext <<_ACEOF
 
5397
/* confdefs.h.  */
 
5398
_ACEOF
 
5399
cat confdefs.h >>conftest.$ac_ext
 
5400
cat >>conftest.$ac_ext <<_ACEOF
 
5401
/* end confdefs.h.  */
 
5402
 
 
5403
int
 
5404
main ()
 
5405
{
 
5406
 return 0;
 
5407
  ;
 
5408
  return 0;
 
5409
}
 
5410
_ACEOF
 
5411
rm -f conftest.$ac_objext conftest$ac_exeext
 
5412
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5413
  (eval $ac_link) 2>conftest.er1
 
5414
  ac_status=$?
 
5415
  grep -v '^ *+' conftest.er1 >conftest.err
 
5416
  rm -f conftest.er1
 
5417
  cat conftest.err >&5
 
5418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5419
  (exit $ac_status); } &&
 
5420
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5421
                         || test ! -s conftest.err'
 
5422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5423
  (eval $ac_try) 2>&5
 
5424
  ac_status=$?
 
5425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5426
  (exit $ac_status); }; } &&
 
5427
         { ac_try='test -s conftest$ac_exeext'
 
5428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5429
  (eval $ac_try) 2>&5
 
5430
  ac_status=$?
 
5431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5432
  (exit $ac_status); }; }; then
 
5433
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5434
else
 
5435
  echo "$as_me: failed program was:" >&5
 
5436
sed 's/^/| /' conftest.$ac_ext >&5
 
5437
 
 
5438
fi
 
5439
rm -f conftest.err conftest.$ac_objext \
 
5440
      conftest$ac_exeext conftest.$ac_ext
 
5441
  CXXFLAGS="$save_CXXFLAGS"
 
5442
  ac_ext=c
 
5443
ac_cpp='$CPP $CPPFLAGS'
 
5444
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5445
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5446
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5447
 
 
5448
 
 
5449
fi
 
5450
 
 
5451
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5452
 echo "$as_me:$LINENO: result: yes" >&5
 
5453
echo "${ECHO_T}yes" >&6
 
5454
 :
 
5455
 CXXFLAGS="$CXXFLAGS --pch"
 
5456
else
 
5457
 echo "$as_me:$LINENO: result: no" >&5
 
5458
echo "${ECHO_T}no" >&6
 
5459
 :
 
5460
 
 
5461
fi
 
5462
 
 
5463
                                              fi
 
5464
 
 
5465
echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
 
5466
echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6
 
5467
kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'`
 
5468
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5469
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5470
else
 
5471
 
 
5472
 
 
5473
 
 
5474
   ac_ext=cc
 
5475
ac_cpp='$CXXCPP $CPPFLAGS'
 
5476
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5477
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5478
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5479
 
 
5480
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5481
 
 
5482
 
 
5483
  save_CXXFLAGS="$CXXFLAGS"
 
5484
  CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
 
5485
  cat >conftest.$ac_ext <<_ACEOF
 
5486
/* confdefs.h.  */
 
5487
_ACEOF
 
5488
cat confdefs.h >>conftest.$ac_ext
 
5489
cat >>conftest.$ac_ext <<_ACEOF
 
5490
/* end confdefs.h.  */
 
5491
 
 
5492
int
 
5493
main ()
 
5494
{
 
5495
 return 0;
 
5496
  ;
 
5497
  return 0;
 
5498
}
 
5499
_ACEOF
 
5500
rm -f conftest.$ac_objext conftest$ac_exeext
 
5501
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5502
  (eval $ac_link) 2>conftest.er1
 
5503
  ac_status=$?
 
5504
  grep -v '^ *+' conftest.er1 >conftest.err
 
5505
  rm -f conftest.er1
 
5506
  cat conftest.err >&5
 
5507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5508
  (exit $ac_status); } &&
 
5509
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5510
                         || test ! -s conftest.err'
 
5511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5512
  (eval $ac_try) 2>&5
 
5513
  ac_status=$?
 
5514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5515
  (exit $ac_status); }; } &&
 
5516
         { ac_try='test -s conftest$ac_exeext'
 
5517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5518
  (eval $ac_try) 2>&5
 
5519
  ac_status=$?
 
5520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5521
  (exit $ac_status); }; }; then
 
5522
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5523
else
 
5524
  echo "$as_me: failed program was:" >&5
 
5525
sed 's/^/| /' conftest.$ac_ext >&5
 
5526
 
 
5527
fi
 
5528
rm -f conftest.err conftest.$ac_objext \
 
5529
      conftest$ac_exeext conftest.$ac_ext
 
5530
  CXXFLAGS="$save_CXXFLAGS"
 
5531
  ac_ext=c
 
5532
ac_cpp='$CPP $CPPFLAGS'
 
5533
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5534
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5535
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5536
 
 
5537
 
 
5538
fi
 
5539
 
 
5540
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5541
 echo "$as_me:$LINENO: result: yes" >&5
 
5542
echo "${ECHO_T}yes" >&6
 
5543
 :
 
5544
 CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
 
5545
else
 
5546
 echo "$as_me:$LINENO: result: no" >&5
 
5547
echo "${ECHO_T}no" >&6
 
5548
 :
 
5549
 
 
5550
fi
 
5551
 
 
5552
 
 
5553
echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
 
5554
echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6
 
5555
kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'`
 
5556
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5557
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5558
else
 
5559
 
 
5560
 
 
5561
 
 
5562
   ac_ext=cc
 
5563
ac_cpp='$CXXCPP $CPPFLAGS'
 
5564
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5565
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5566
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5567
 
 
5568
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5569
 
 
5570
 
 
5571
  save_CXXFLAGS="$CXXFLAGS"
 
5572
  CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
 
5573
  cat >conftest.$ac_ext <<_ACEOF
 
5574
/* confdefs.h.  */
 
5575
_ACEOF
 
5576
cat confdefs.h >>conftest.$ac_ext
 
5577
cat >>conftest.$ac_ext <<_ACEOF
 
5578
/* end confdefs.h.  */
 
5579
 
 
5580
int
 
5581
main ()
 
5582
{
 
5583
 return 0;
 
5584
  ;
 
5585
  return 0;
 
5586
}
 
5587
_ACEOF
 
5588
rm -f conftest.$ac_objext conftest$ac_exeext
 
5589
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5590
  (eval $ac_link) 2>conftest.er1
 
5591
  ac_status=$?
 
5592
  grep -v '^ *+' conftest.er1 >conftest.err
 
5593
  rm -f conftest.er1
 
5594
  cat conftest.err >&5
 
5595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5596
  (exit $ac_status); } &&
 
5597
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5598
                         || test ! -s conftest.err'
 
5599
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5600
  (eval $ac_try) 2>&5
 
5601
  ac_status=$?
 
5602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5603
  (exit $ac_status); }; } &&
 
5604
         { ac_try='test -s conftest$ac_exeext'
 
5605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5606
  (eval $ac_try) 2>&5
 
5607
  ac_status=$?
 
5608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5609
  (exit $ac_status); }; }; then
 
5610
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5611
else
 
5612
  echo "$as_me: failed program was:" >&5
 
5613
sed 's/^/| /' conftest.$ac_ext >&5
 
5614
 
 
5615
fi
 
5616
rm -f conftest.err conftest.$ac_objext \
 
5617
      conftest$ac_exeext conftest.$ac_ext
 
5618
  CXXFLAGS="$save_CXXFLAGS"
 
5619
  ac_ext=c
 
5620
ac_cpp='$CPP $CPPFLAGS'
 
5621
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5622
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5623
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5624
 
 
5625
 
 
5626
fi
 
5627
 
 
5628
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5629
 echo "$as_me:$LINENO: result: yes" >&5
 
5630
echo "${ECHO_T}yes" >&6
 
5631
 :
 
5632
 CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
 
5633
else
 
5634
 echo "$as_me:$LINENO: result: no" >&5
 
5635
echo "${ECHO_T}no" >&6
 
5636
 :
 
5637
 
 
5638
fi
 
5639
 
 
5640
 
 
5641
echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
 
5642
echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6
 
5643
kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
 
5644
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5645
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5646
else
 
5647
 
 
5648
 
 
5649
 
 
5650
   ac_ext=cc
 
5651
ac_cpp='$CXXCPP $CPPFLAGS'
 
5652
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5653
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5654
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5655
 
 
5656
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5657
 
 
5658
 
 
5659
  save_CXXFLAGS="$CXXFLAGS"
 
5660
  CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
 
5661
  cat >conftest.$ac_ext <<_ACEOF
 
5662
/* confdefs.h.  */
 
5663
_ACEOF
 
5664
cat confdefs.h >>conftest.$ac_ext
 
5665
cat >>conftest.$ac_ext <<_ACEOF
 
5666
/* end confdefs.h.  */
 
5667
 
 
5668
int
 
5669
main ()
 
5670
{
 
5671
 return 0;
 
5672
  ;
 
5673
  return 0;
 
5674
}
 
5675
_ACEOF
 
5676
rm -f conftest.$ac_objext conftest$ac_exeext
 
5677
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5678
  (eval $ac_link) 2>conftest.er1
 
5679
  ac_status=$?
 
5680
  grep -v '^ *+' conftest.er1 >conftest.err
 
5681
  rm -f conftest.er1
 
5682
  cat conftest.err >&5
 
5683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5684
  (exit $ac_status); } &&
 
5685
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5686
                         || test ! -s conftest.err'
 
5687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5688
  (eval $ac_try) 2>&5
 
5689
  ac_status=$?
 
5690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5691
  (exit $ac_status); }; } &&
 
5692
         { ac_try='test -s conftest$ac_exeext'
 
5693
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5694
  (eval $ac_try) 2>&5
 
5695
  ac_status=$?
 
5696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5697
  (exit $ac_status); }; }; then
 
5698
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5699
else
 
5700
  echo "$as_me: failed program was:" >&5
 
5701
sed 's/^/| /' conftest.$ac_ext >&5
 
5702
 
 
5703
fi
 
5704
rm -f conftest.err conftest.$ac_objext \
 
5705
      conftest$ac_exeext conftest.$ac_ext
 
5706
  CXXFLAGS="$save_CXXFLAGS"
 
5707
  ac_ext=c
 
5708
ac_cpp='$CPP $CPPFLAGS'
 
5709
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5710
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5711
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5712
 
 
5713
 
 
5714
fi
 
5715
 
 
5716
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5717
 echo "$as_me:$LINENO: result: yes" >&5
 
5718
echo "${ECHO_T}yes" >&6
 
5719
 :
 
5720
 CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
 
5721
else
 
5722
 echo "$as_me:$LINENO: result: no" >&5
 
5723
echo "${ECHO_T}no" >&6
 
5724
 :
 
5725
 
 
5726
fi
 
5727
 
 
5728
 
 
5729
echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
 
5730
echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6
 
5731
kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
 
5732
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5733
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5734
else
 
5735
 
 
5736
 
 
5737
 
 
5738
   ac_ext=cc
 
5739
ac_cpp='$CXXCPP $CPPFLAGS'
 
5740
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5741
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5742
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5743
 
 
5744
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5745
 
 
5746
 
 
5747
  save_CXXFLAGS="$CXXFLAGS"
 
5748
  CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
 
5749
  cat >conftest.$ac_ext <<_ACEOF
 
5750
/* confdefs.h.  */
 
5751
_ACEOF
 
5752
cat confdefs.h >>conftest.$ac_ext
 
5753
cat >>conftest.$ac_ext <<_ACEOF
 
5754
/* end confdefs.h.  */
 
5755
 
 
5756
int
 
5757
main ()
 
5758
{
 
5759
 return 0;
 
5760
  ;
 
5761
  return 0;
 
5762
}
 
5763
_ACEOF
 
5764
rm -f conftest.$ac_objext conftest$ac_exeext
 
5765
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5766
  (eval $ac_link) 2>conftest.er1
 
5767
  ac_status=$?
 
5768
  grep -v '^ *+' conftest.er1 >conftest.err
 
5769
  rm -f conftest.er1
 
5770
  cat conftest.err >&5
 
5771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5772
  (exit $ac_status); } &&
 
5773
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5774
                         || test ! -s conftest.err'
 
5775
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5776
  (eval $ac_try) 2>&5
 
5777
  ac_status=$?
 
5778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5779
  (exit $ac_status); }; } &&
 
5780
         { ac_try='test -s conftest$ac_exeext'
 
5781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5782
  (eval $ac_try) 2>&5
 
5783
  ac_status=$?
 
5784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5785
  (exit $ac_status); }; }; then
 
5786
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5787
else
 
5788
  echo "$as_me: failed program was:" >&5
 
5789
sed 's/^/| /' conftest.$ac_ext >&5
 
5790
 
 
5791
fi
 
5792
rm -f conftest.err conftest.$ac_objext \
 
5793
      conftest$ac_exeext conftest.$ac_ext
 
5794
  CXXFLAGS="$save_CXXFLAGS"
 
5795
  ac_ext=c
 
5796
ac_cpp='$CPP $CPPFLAGS'
 
5797
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5798
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5799
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5800
 
 
5801
 
 
5802
fi
 
5803
 
 
5804
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5805
 echo "$as_me:$LINENO: result: yes" >&5
 
5806
echo "${ECHO_T}yes" >&6
 
5807
 :
 
5808
 CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
 
5809
else
 
5810
 echo "$as_me:$LINENO: result: no" >&5
 
5811
echo "${ECHO_T}no" >&6
 
5812
 :
 
5813
 
 
5814
fi
 
5815
 
 
5816
 
 
5817
echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
 
5818
echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6
 
5819
kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'`
 
5820
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5821
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5822
else
 
5823
 
 
5824
 
 
5825
 
 
5826
   ac_ext=cc
 
5827
ac_cpp='$CXXCPP $CPPFLAGS'
 
5828
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5829
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5830
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5831
 
 
5832
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5833
 
 
5834
 
 
5835
  save_CXXFLAGS="$CXXFLAGS"
 
5836
  CXXFLAGS="$CXXFLAGS --one_per"
 
5837
  cat >conftest.$ac_ext <<_ACEOF
 
5838
/* confdefs.h.  */
 
5839
_ACEOF
 
5840
cat confdefs.h >>conftest.$ac_ext
 
5841
cat >>conftest.$ac_ext <<_ACEOF
 
5842
/* end confdefs.h.  */
 
5843
 
 
5844
int
 
5845
main ()
 
5846
{
 
5847
 return 0;
 
5848
  ;
 
5849
  return 0;
 
5850
}
 
5851
_ACEOF
 
5852
rm -f conftest.$ac_objext conftest$ac_exeext
 
5853
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5854
  (eval $ac_link) 2>conftest.er1
 
5855
  ac_status=$?
 
5856
  grep -v '^ *+' conftest.er1 >conftest.err
 
5857
  rm -f conftest.er1
 
5858
  cat conftest.err >&5
 
5859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5860
  (exit $ac_status); } &&
 
5861
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5862
                         || test ! -s conftest.err'
 
5863
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5864
  (eval $ac_try) 2>&5
 
5865
  ac_status=$?
 
5866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5867
  (exit $ac_status); }; } &&
 
5868
         { ac_try='test -s conftest$ac_exeext'
 
5869
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5870
  (eval $ac_try) 2>&5
 
5871
  ac_status=$?
 
5872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5873
  (exit $ac_status); }; }; then
 
5874
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5875
else
 
5876
  echo "$as_me: failed program was:" >&5
 
5877
sed 's/^/| /' conftest.$ac_ext >&5
 
5878
 
 
5879
fi
 
5880
rm -f conftest.err conftest.$ac_objext \
 
5881
      conftest$ac_exeext conftest.$ac_ext
 
5882
  CXXFLAGS="$save_CXXFLAGS"
 
5883
  ac_ext=c
 
5884
ac_cpp='$CPP $CPPFLAGS'
 
5885
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5886
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5887
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5888
 
 
5889
 
 
5890
fi
 
5891
 
 
5892
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5893
 echo "$as_me:$LINENO: result: yes" >&5
 
5894
echo "${ECHO_T}yes" >&6
 
5895
 :
 
5896
 CXXFLAGS="$CXXFLAGS --one_per"
 
5897
else
 
5898
 echo "$as_me:$LINENO: result: no" >&5
 
5899
echo "${ECHO_T}no" >&6
 
5900
 :
 
5901
 
 
5902
fi
 
5903
 
 
5904
  fi
 
5905
 
 
5906
    USE_RTTI=
 
5907
 
 
5908
 
 
5909
  case "$host" in
 
5910
      *-*-irix*)  test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
 
5911
      *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
 
5912
      *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
 
5913
      *-*-solaris*)
 
5914
        if test "$GXX" = yes; then
 
5915
          libstdcpp=`$CXX -print-file-name=libstdc++.so`
 
5916
          if test ! -f $libstdcpp; then
 
5917
             { { 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
 
5918
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;}
 
5919
   { (exit 1); exit 1; }; }
 
5920
          fi
 
5921
        fi
 
5922
        ;;
 
5923
  esac
 
5924
 
 
5925
  if test "x$kde_use_qt_emb" != "xyes"; then
 
5926
  __val=$CXX
 
5927
  __forbid=" -fno-rtti -rpath "
 
5928
  if test -n "$__val"; then
 
5929
    __new=""
 
5930
    ac_save_IFS=$IFS
 
5931
    IFS="       "
 
5932
    for i in $__val; do
 
5933
      case "$__forbid" in
 
5934
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
 
5935
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
 
5936
        *) # Careful to not add spaces, where there were none, because otherwise
 
5937
           # libtool gets confused, if we change e.g. CXX
 
5938
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
5939
      esac
 
5940
    done
 
5941
    IFS=$ac_save_IFS
 
5942
    CXX=$__new
 
5943
  fi
 
5944
 
 
5945
  __val=$CXXFLAGS
 
5946
  __forbid=" -fno-rtti -rpath "
 
5947
  if test -n "$__val"; then
 
5948
    __new=""
 
5949
    ac_save_IFS=$IFS
 
5950
    IFS="       "
 
5951
    for i in $__val; do
 
5952
      case "$__forbid" in
 
5953
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
 
5954
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
 
5955
        *) # Careful to not add spaces, where there were none, because otherwise
 
5956
           # libtool gets confused, if we change e.g. CXX
 
5957
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
5958
      esac
 
5959
    done
 
5960
    IFS=$ac_save_IFS
 
5961
    CXXFLAGS=$__new
 
5962
  fi
 
5963
 
 
5964
else
 
5965
  __val=$CXX
 
5966
  __forbid=" -rpath "
 
5967
  if test -n "$__val"; then
 
5968
    __new=""
 
5969
    ac_save_IFS=$IFS
 
5970
    IFS="       "
 
5971
    for i in $__val; do
 
5972
      case "$__forbid" in
 
5973
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
 
5974
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
 
5975
        *) # Careful to not add spaces, where there were none, because otherwise
 
5976
           # libtool gets confused, if we change e.g. CXX
 
5977
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
5978
      esac
 
5979
    done
 
5980
    IFS=$ac_save_IFS
 
5981
    CXX=$__new
 
5982
  fi
 
5983
 
 
5984
  __val=$CXXFLAGS
 
5985
  __forbid=" -rpath "
 
5986
  if test -n "$__val"; then
 
5987
    __new=""
 
5988
    ac_save_IFS=$IFS
 
5989
    IFS="       "
 
5990
    for i in $__val; do
 
5991
      case "$__forbid" in
 
5992
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
 
5993
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
 
5994
        *) # Careful to not add spaces, where there were none, because otherwise
 
5995
           # libtool gets confused, if we change e.g. CXX
 
5996
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
5997
      esac
 
5998
    done
 
5999
    IFS=$ac_save_IFS
 
6000
    CXXFLAGS=$__new
 
6001
  fi
 
6002
 
 
6003
fi
 
6004
 
 
6005
 
 
6006
  ac_ext=cc
 
6007
ac_cpp='$CXXCPP $CPPFLAGS'
 
6008
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6009
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6010
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6011
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6012
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
6013
if test -z "$CXXCPP"; then
 
6014
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6015
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6016
else
 
6017
      # Double quotes because CXXCPP needs to be expanded
 
6018
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6019
    do
 
6020
      ac_preproc_ok=false
 
6021
for ac_cxx_preproc_warn_flag in '' yes
 
6022
do
 
6023
  # Use a header file that comes with gcc, so configuring glibc
 
6024
  # with a fresh cross-compiler works.
 
6025
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6026
  # <limits.h> exists even on freestanding compilers.
 
6027
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6028
  # not just through cpp. "Syntax error" is here to catch this case.
 
6029
  cat >conftest.$ac_ext <<_ACEOF
 
6030
/* confdefs.h.  */
 
6031
_ACEOF
 
6032
cat confdefs.h >>conftest.$ac_ext
 
6033
cat >>conftest.$ac_ext <<_ACEOF
 
6034
/* end confdefs.h.  */
 
6035
#ifdef __STDC__
 
6036
# include <limits.h>
 
6037
#else
 
6038
# include <assert.h>
 
6039
#endif
 
6040
                     Syntax error
 
6041
_ACEOF
 
6042
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6043
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6044
  ac_status=$?
 
6045
  grep -v '^ *+' conftest.er1 >conftest.err
 
6046
  rm -f conftest.er1
 
6047
  cat conftest.err >&5
 
6048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6049
  (exit $ac_status); } >/dev/null; then
 
6050
  if test -s conftest.err; then
 
6051
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6052
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6053
  else
 
6054
    ac_cpp_err=
 
6055
  fi
 
6056
else
 
6057
  ac_cpp_err=yes
 
6058
fi
 
6059
if test -z "$ac_cpp_err"; then
 
6060
  :
 
6061
else
 
6062
  echo "$as_me: failed program was:" >&5
 
6063
sed 's/^/| /' conftest.$ac_ext >&5
 
6064
 
 
6065
  # Broken: fails on valid input.
 
6066
continue
 
6067
fi
 
6068
rm -f conftest.err conftest.$ac_ext
 
6069
 
 
6070
  # OK, works on sane cases.  Now check whether non-existent headers
 
6071
  # can be detected and how.
 
6072
  cat >conftest.$ac_ext <<_ACEOF
 
6073
/* confdefs.h.  */
 
6074
_ACEOF
 
6075
cat confdefs.h >>conftest.$ac_ext
 
6076
cat >>conftest.$ac_ext <<_ACEOF
 
6077
/* end confdefs.h.  */
 
6078
#include <ac_nonexistent.h>
 
6079
_ACEOF
 
6080
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6081
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6082
  ac_status=$?
 
6083
  grep -v '^ *+' conftest.er1 >conftest.err
 
6084
  rm -f conftest.er1
 
6085
  cat conftest.err >&5
 
6086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6087
  (exit $ac_status); } >/dev/null; then
 
6088
  if test -s conftest.err; then
 
6089
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6090
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6091
  else
 
6092
    ac_cpp_err=
 
6093
  fi
 
6094
else
 
6095
  ac_cpp_err=yes
 
6096
fi
 
6097
if test -z "$ac_cpp_err"; then
 
6098
  # Broken: success on invalid input.
 
6099
continue
 
6100
else
 
6101
  echo "$as_me: failed program was:" >&5
 
6102
sed 's/^/| /' conftest.$ac_ext >&5
 
6103
 
 
6104
  # Passes both tests.
 
6105
ac_preproc_ok=:
 
6106
break
 
6107
fi
 
6108
rm -f conftest.err conftest.$ac_ext
 
6109
 
 
6110
done
 
6111
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6112
rm -f conftest.err conftest.$ac_ext
 
6113
if $ac_preproc_ok; then
 
6114
  break
 
6115
fi
 
6116
 
 
6117
    done
 
6118
    ac_cv_prog_CXXCPP=$CXXCPP
 
6119
 
 
6120
fi
 
6121
  CXXCPP=$ac_cv_prog_CXXCPP
 
6122
else
 
6123
  ac_cv_prog_CXXCPP=$CXXCPP
 
6124
fi
 
6125
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6126
echo "${ECHO_T}$CXXCPP" >&6
 
6127
ac_preproc_ok=false
 
6128
for ac_cxx_preproc_warn_flag in '' yes
 
6129
do
 
6130
  # Use a header file that comes with gcc, so configuring glibc
 
6131
  # with a fresh cross-compiler works.
 
6132
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6133
  # <limits.h> exists even on freestanding compilers.
 
6134
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6135
  # not just through cpp. "Syntax error" is here to catch this case.
 
6136
  cat >conftest.$ac_ext <<_ACEOF
 
6137
/* confdefs.h.  */
 
6138
_ACEOF
 
6139
cat confdefs.h >>conftest.$ac_ext
 
6140
cat >>conftest.$ac_ext <<_ACEOF
 
6141
/* end confdefs.h.  */
 
6142
#ifdef __STDC__
 
6143
# include <limits.h>
 
6144
#else
 
6145
# include <assert.h>
 
6146
#endif
 
6147
                     Syntax error
 
6148
_ACEOF
 
6149
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6150
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6151
  ac_status=$?
 
6152
  grep -v '^ *+' conftest.er1 >conftest.err
 
6153
  rm -f conftest.er1
 
6154
  cat conftest.err >&5
 
6155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6156
  (exit $ac_status); } >/dev/null; then
 
6157
  if test -s conftest.err; then
 
6158
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6159
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6160
  else
 
6161
    ac_cpp_err=
 
6162
  fi
 
6163
else
 
6164
  ac_cpp_err=yes
 
6165
fi
 
6166
if test -z "$ac_cpp_err"; then
 
6167
  :
 
6168
else
 
6169
  echo "$as_me: failed program was:" >&5
 
6170
sed 's/^/| /' conftest.$ac_ext >&5
 
6171
 
 
6172
  # Broken: fails on valid input.
 
6173
continue
 
6174
fi
 
6175
rm -f conftest.err conftest.$ac_ext
 
6176
 
 
6177
  # OK, works on sane cases.  Now check whether non-existent headers
 
6178
  # can be detected and how.
 
6179
  cat >conftest.$ac_ext <<_ACEOF
 
6180
/* confdefs.h.  */
 
6181
_ACEOF
 
6182
cat confdefs.h >>conftest.$ac_ext
 
6183
cat >>conftest.$ac_ext <<_ACEOF
 
6184
/* end confdefs.h.  */
 
6185
#include <ac_nonexistent.h>
 
6186
_ACEOF
 
6187
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6188
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6189
  ac_status=$?
 
6190
  grep -v '^ *+' conftest.er1 >conftest.err
 
6191
  rm -f conftest.er1
 
6192
  cat conftest.err >&5
 
6193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6194
  (exit $ac_status); } >/dev/null; then
 
6195
  if test -s conftest.err; then
 
6196
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6197
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6198
  else
 
6199
    ac_cpp_err=
 
6200
  fi
 
6201
else
 
6202
  ac_cpp_err=yes
 
6203
fi
 
6204
if test -z "$ac_cpp_err"; then
 
6205
  # Broken: success on invalid input.
 
6206
continue
 
6207
else
 
6208
  echo "$as_me: failed program was:" >&5
 
6209
sed 's/^/| /' conftest.$ac_ext >&5
 
6210
 
 
6211
  # Passes both tests.
 
6212
ac_preproc_ok=:
 
6213
break
 
6214
fi
 
6215
rm -f conftest.err conftest.$ac_ext
 
6216
 
 
6217
done
 
6218
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6219
rm -f conftest.err conftest.$ac_ext
 
6220
if $ac_preproc_ok; then
 
6221
  :
 
6222
else
 
6223
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6224
See \`config.log' for more details." >&5
 
6225
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6226
See \`config.log' for more details." >&2;}
 
6227
   { (exit 1); exit 1; }; }
 
6228
fi
 
6229
 
 
6230
ac_ext=c
 
6231
ac_cpp='$CPP $CPPFLAGS'
 
6232
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6233
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6234
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6235
 
 
6236
 
 
6237
  if test "$GCC" = yes; then
 
6238
     NOOPT_CFLAGS=-O0
 
6239
  fi
 
6240
 
 
6241
echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5
 
6242
echo $ECHO_N "checking whether $CXX supports -O0... $ECHO_C" >&6
 
6243
kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'`
 
6244
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
6245
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6246
else
 
6247
 
 
6248
 
 
6249
 
 
6250
   ac_ext=cc
 
6251
ac_cpp='$CXXCPP $CPPFLAGS'
 
6252
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6253
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6254
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6255
 
 
6256
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6257
 
 
6258
 
 
6259
  save_CXXFLAGS="$CXXFLAGS"
 
6260
  CXXFLAGS="$CXXFLAGS -O0"
 
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
 
 
6268
int
 
6269
main ()
 
6270
{
 
6271
 return 0;
 
6272
  ;
 
6273
  return 0;
 
6274
}
 
6275
_ACEOF
 
6276
rm -f conftest.$ac_objext conftest$ac_exeext
 
6277
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6278
  (eval $ac_link) 2>conftest.er1
 
6279
  ac_status=$?
 
6280
  grep -v '^ *+' conftest.er1 >conftest.err
 
6281
  rm -f conftest.er1
 
6282
  cat conftest.err >&5
 
6283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6284
  (exit $ac_status); } &&
 
6285
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6286
                         || test ! -s conftest.err'
 
6287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6288
  (eval $ac_try) 2>&5
 
6289
  ac_status=$?
 
6290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6291
  (exit $ac_status); }; } &&
 
6292
         { ac_try='test -s conftest$ac_exeext'
 
6293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6294
  (eval $ac_try) 2>&5
 
6295
  ac_status=$?
 
6296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6297
  (exit $ac_status); }; }; then
 
6298
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6299
else
 
6300
  echo "$as_me: failed program was:" >&5
 
6301
sed 's/^/| /' conftest.$ac_ext >&5
 
6302
 
 
6303
fi
 
6304
rm -f conftest.err conftest.$ac_objext \
 
6305
      conftest$ac_exeext conftest.$ac_ext
 
6306
  CXXFLAGS="$save_CXXFLAGS"
 
6307
  ac_ext=c
 
6308
ac_cpp='$CPP $CPPFLAGS'
 
6309
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6310
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6311
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6312
 
 
6313
 
 
6314
fi
 
6315
 
 
6316
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6317
 echo "$as_me:$LINENO: result: yes" >&5
 
6318
echo "${ECHO_T}yes" >&6
 
6319
 :
 
6320
 NOOPT_CXXFLAGS=-O0
 
6321
else
 
6322
 echo "$as_me:$LINENO: result: no" >&5
 
6323
echo "${ECHO_T}no" >&6
 
6324
 :
 
6325
 
 
6326
fi
 
6327
 
 
6328
 
 
6329
 
 
6330
 
 
6331
 
 
6332
 
 
6333
 
 
6334
  # Check whether --enable-as_needed or --disable-as_needed was given.
 
6335
if test "${enable_as_needed+set}" = set; then
 
6336
  enableval="$enable_as_needed"
 
6337
  kde_use_as_needed=$enableval
 
6338
else
 
6339
  kde_use_as_needed=yes
 
6340
fi;
 
6341
 
 
6342
  LDFLAGS_AS_NEEDED=""
 
6343
  if test "x$kde_use_as_needed" = "xyes"; then
 
6344
 
 
6345
echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--as-needed" >&5
 
6346
echo $ECHO_N "checking whether $CXX supports -Wl,--as-needed... $ECHO_C" >&6
 
6347
kde_cache=`echo Wl,--as-needed | sed 'y% .=/+-,%____p__%'`
 
6348
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
6349
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6350
else
 
6351
 
 
6352
 
 
6353
 
 
6354
   ac_ext=cc
 
6355
ac_cpp='$CXXCPP $CPPFLAGS'
 
6356
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6357
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6358
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6359
 
 
6360
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6361
 
 
6362
 
 
6363
  save_CXXFLAGS="$CXXFLAGS"
 
6364
  CXXFLAGS="$CXXFLAGS -Wl,--as-needed"
 
6365
  cat >conftest.$ac_ext <<_ACEOF
 
6366
/* confdefs.h.  */
 
6367
_ACEOF
 
6368
cat confdefs.h >>conftest.$ac_ext
 
6369
cat >>conftest.$ac_ext <<_ACEOF
 
6370
/* end confdefs.h.  */
 
6371
 
 
6372
int
 
6373
main ()
 
6374
{
 
6375
 return 0;
 
6376
  ;
 
6377
  return 0;
 
6378
}
 
6379
_ACEOF
 
6380
rm -f conftest.$ac_objext conftest$ac_exeext
 
6381
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6382
  (eval $ac_link) 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); } &&
 
6389
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6390
                         || test ! -s conftest.err'
 
6391
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6392
  (eval $ac_try) 2>&5
 
6393
  ac_status=$?
 
6394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6395
  (exit $ac_status); }; } &&
 
6396
         { ac_try='test -s conftest$ac_exeext'
 
6397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6398
  (eval $ac_try) 2>&5
 
6399
  ac_status=$?
 
6400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6401
  (exit $ac_status); }; }; then
 
6402
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6403
else
 
6404
  echo "$as_me: failed program was:" >&5
 
6405
sed 's/^/| /' conftest.$ac_ext >&5
 
6406
 
 
6407
fi
 
6408
rm -f conftest.err conftest.$ac_objext \
 
6409
      conftest$ac_exeext conftest.$ac_ext
 
6410
  CXXFLAGS="$save_CXXFLAGS"
 
6411
  ac_ext=c
 
6412
ac_cpp='$CPP $CPPFLAGS'
 
6413
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6414
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6415
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6416
 
 
6417
 
 
6418
fi
 
6419
 
 
6420
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6421
 echo "$as_me:$LINENO: result: yes" >&5
 
6422
echo "${ECHO_T}yes" >&6
 
6423
 :
 
6424
 LDFLAGS_AS_NEEDED="-Wl,--as-needed"
 
6425
else
 
6426
 echo "$as_me:$LINENO: result: no" >&5
 
6427
echo "${ECHO_T}no" >&6
 
6428
 :
 
6429
 
 
6430
fi
 
6431
 
 
6432
  fi
 
6433
 
 
6434
 
 
6435
 
 
6436
 
 
6437
  # Check whether --enable-final or --disable-final was given.
 
6438
if test "${enable_final+set}" = set; then
 
6439
  enableval="$enable_final"
 
6440
  kde_use_final=$enableval
 
6441
else
 
6442
  kde_use_final=no
 
6443
fi;
 
6444
 
 
6445
  if test "x$kde_use_final" = "xyes"; then
 
6446
      KDE_USE_FINAL_TRUE=""
 
6447
      KDE_USE_FINAL_FALSE="#"
 
6448
   else
 
6449
      KDE_USE_FINAL_TRUE="#"
 
6450
      KDE_USE_FINAL_FALSE=""
 
6451
  fi
 
6452
 
 
6453
 
 
6454
 
 
6455
 
 
6456
  # Check whether --enable-closure or --disable-closure was given.
 
6457
if test "${enable_closure+set}" = set; then
 
6458
  enableval="$enable_closure"
 
6459
  kde_use_closure=$enableval
 
6460
else
 
6461
  kde_use_closure=no
 
6462
fi;
 
6463
 
 
6464
  KDE_NO_UNDEFINED=""
 
6465
  if test "x$kde_use_closure" = "xyes"; then
 
6466
       KDE_USE_CLOSURE_TRUE=""
 
6467
       KDE_USE_CLOSURE_FALSE="#"
 
6468
#       CXXFLAGS="$CXXFLAGS $REPO"
 
6469
  else
 
6470
       KDE_USE_CLOSURE_TRUE="#"
 
6471
       KDE_USE_CLOSURE_FALSE=""
 
6472
       KDE_NO_UNDEFINED=""
 
6473
       case $host in
 
6474
         *-*-linux-gnu)
 
6475
 
 
6476
echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
 
6477
echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6
 
6478
kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
 
6479
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
6480
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6481
else
 
6482
 
 
6483
 
 
6484
 
 
6485
   ac_ext=cc
 
6486
ac_cpp='$CXXCPP $CPPFLAGS'
 
6487
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6488
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6489
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6490
 
 
6491
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6492
 
 
6493
 
 
6494
  save_CXXFLAGS="$CXXFLAGS"
 
6495
  CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
 
6496
  cat >conftest.$ac_ext <<_ACEOF
 
6497
/* confdefs.h.  */
 
6498
_ACEOF
 
6499
cat confdefs.h >>conftest.$ac_ext
 
6500
cat >>conftest.$ac_ext <<_ACEOF
 
6501
/* end confdefs.h.  */
 
6502
 
 
6503
int
 
6504
main ()
 
6505
{
 
6506
 return 0;
 
6507
  ;
 
6508
  return 0;
 
6509
}
 
6510
_ACEOF
 
6511
rm -f conftest.$ac_objext conftest$ac_exeext
 
6512
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6513
  (eval $ac_link) 2>conftest.er1
 
6514
  ac_status=$?
 
6515
  grep -v '^ *+' conftest.er1 >conftest.err
 
6516
  rm -f conftest.er1
 
6517
  cat conftest.err >&5
 
6518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6519
  (exit $ac_status); } &&
 
6520
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6521
                         || test ! -s conftest.err'
 
6522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6523
  (eval $ac_try) 2>&5
 
6524
  ac_status=$?
 
6525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6526
  (exit $ac_status); }; } &&
 
6527
         { ac_try='test -s conftest$ac_exeext'
 
6528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6529
  (eval $ac_try) 2>&5
 
6530
  ac_status=$?
 
6531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6532
  (exit $ac_status); }; }; then
 
6533
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6534
else
 
6535
  echo "$as_me: failed program was:" >&5
 
6536
sed 's/^/| /' conftest.$ac_ext >&5
 
6537
 
 
6538
fi
 
6539
rm -f conftest.err conftest.$ac_objext \
 
6540
      conftest$ac_exeext conftest.$ac_ext
 
6541
  CXXFLAGS="$save_CXXFLAGS"
 
6542
  ac_ext=c
 
6543
ac_cpp='$CPP $CPPFLAGS'
 
6544
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6545
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6546
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6547
 
 
6548
 
 
6549
fi
 
6550
 
 
6551
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6552
 echo "$as_me:$LINENO: result: yes" >&5
 
6553
echo "${ECHO_T}yes" >&6
 
6554
 :
 
6555
 
 
6556
echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
 
6557
echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6
 
6558
kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
 
6559
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
6560
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6561
else
 
6562
 
 
6563
 
 
6564
 
 
6565
   ac_ext=cc
 
6566
ac_cpp='$CXXCPP $CPPFLAGS'
 
6567
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6568
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6569
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6570
 
 
6571
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6572
 
 
6573
 
 
6574
  save_CXXFLAGS="$CXXFLAGS"
 
6575
  CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
 
6576
  cat >conftest.$ac_ext <<_ACEOF
 
6577
/* confdefs.h.  */
 
6578
_ACEOF
 
6579
cat confdefs.h >>conftest.$ac_ext
 
6580
cat >>conftest.$ac_ext <<_ACEOF
 
6581
/* end confdefs.h.  */
 
6582
 
 
6583
int
 
6584
main ()
 
6585
{
 
6586
 return 0;
 
6587
  ;
 
6588
  return 0;
 
6589
}
 
6590
_ACEOF
 
6591
rm -f conftest.$ac_objext conftest$ac_exeext
 
6592
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6593
  (eval $ac_link) 2>conftest.er1
 
6594
  ac_status=$?
 
6595
  grep -v '^ *+' conftest.er1 >conftest.err
 
6596
  rm -f conftest.er1
 
6597
  cat conftest.err >&5
 
6598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6599
  (exit $ac_status); } &&
 
6600
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6601
                         || test ! -s conftest.err'
 
6602
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6603
  (eval $ac_try) 2>&5
 
6604
  ac_status=$?
 
6605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6606
  (exit $ac_status); }; } &&
 
6607
         { ac_try='test -s conftest$ac_exeext'
 
6608
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6609
  (eval $ac_try) 2>&5
 
6610
  ac_status=$?
 
6611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6612
  (exit $ac_status); }; }; then
 
6613
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6614
else
 
6615
  echo "$as_me: failed program was:" >&5
 
6616
sed 's/^/| /' conftest.$ac_ext >&5
 
6617
 
 
6618
fi
 
6619
rm -f conftest.err conftest.$ac_objext \
 
6620
      conftest$ac_exeext conftest.$ac_ext
 
6621
  CXXFLAGS="$save_CXXFLAGS"
 
6622
  ac_ext=c
 
6623
ac_cpp='$CPP $CPPFLAGS'
 
6624
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6625
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6626
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6627
 
 
6628
 
 
6629
fi
 
6630
 
 
6631
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6632
 echo "$as_me:$LINENO: result: yes" >&5
 
6633
echo "${ECHO_T}yes" >&6
 
6634
 :
 
6635
 KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
 
6636
else
 
6637
 echo "$as_me:$LINENO: result: no" >&5
 
6638
echo "${ECHO_T}no" >&6
 
6639
 :
 
6640
 KDE_NO_UNDEFINED=""
 
6641
fi
 
6642
 
 
6643
else
 
6644
 echo "$as_me:$LINENO: result: no" >&5
 
6645
echo "${ECHO_T}no" >&6
 
6646
 :
 
6647
 KDE_NO_UNDEFINED=""
 
6648
fi
 
6649
 
 
6650
           ;;
 
6651
       esac
 
6652
  fi
 
6653
 
 
6654
 
 
6655
 
 
6656
 
 
6657
 
 
6658
  # Check whether --enable-nmcheck or --disable-nmcheck was given.
 
6659
if test "${enable_nmcheck+set}" = set; then
 
6660
  enableval="$enable_nmcheck"
 
6661
  kde_use_nmcheck=$enableval
 
6662
else
 
6663
  kde_use_nmcheck=no
 
6664
fi;
 
6665
 
 
6666
  if test "$kde_use_nmcheck" = "yes"; then
 
6667
      KDE_USE_NMCHECK_TRUE=""
 
6668
      KDE_USE_NMCHECK_FALSE="#"
 
6669
   else
 
6670
      KDE_USE_NMCHECK_TRUE="#"
 
6671
      KDE_USE_NMCHECK_FALSE=""
 
6672
  fi
 
6673
 
 
6674
 
 
6675
 
 
6676
 
 
6677
 
 
6678
 
 
6679
# Check whether --enable-shared or --disable-shared was given.
 
6680
if test "${enable_shared+set}" = set; then
 
6681
  enableval="$enable_shared"
 
6682
  p=${PACKAGE-default}
 
6683
    case $enableval in
 
6684
    yes) enable_shared=yes ;;
 
6685
    no) enable_shared=no ;;
 
6686
    *)
 
6687
      enable_shared=no
 
6688
      # Look at the argument we got.  We use all the common list separators.
 
6689
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6690
      for pkg in $enableval; do
 
6691
        IFS="$lt_save_ifs"
 
6692
        if test "X$pkg" = "X$p"; then
 
6693
          enable_shared=yes
 
6694
        fi
 
6695
      done
 
6696
      IFS="$lt_save_ifs"
 
6697
      ;;
 
6698
    esac
 
6699
else
 
6700
  enable_shared=yes
 
6701
fi;
 
6702
 
 
6703
# Check whether --enable-static or --disable-static was given.
 
6704
if test "${enable_static+set}" = set; then
 
6705
  enableval="$enable_static"
 
6706
  p=${PACKAGE-default}
 
6707
    case $enableval in
 
6708
    yes) enable_static=yes ;;
 
6709
    no) enable_static=no ;;
 
6710
    *)
 
6711
     enable_static=no
 
6712
      # Look at the argument we got.  We use all the common list separators.
 
6713
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6714
      for pkg in $enableval; do
 
6715
        IFS="$lt_save_ifs"
 
6716
        if test "X$pkg" = "X$p"; then
 
6717
          enable_static=yes
 
6718
        fi
 
6719
      done
 
6720
      IFS="$lt_save_ifs"
 
6721
      ;;
 
6722
    esac
 
6723
else
 
6724
  enable_static=no
 
6725
fi;
 
6726
 
 
6727
 
 
6728
 
 
6729
 
 
6730
    kdelibsuff=no
 
6731
    # Check whether --enable-libsuffix or --disable-libsuffix was given.
 
6732
if test "${enable_libsuffix+set}" = set; then
 
6733
  enableval="$enable_libsuffix"
 
6734
  kdelibsuff=$enableval
 
6735
fi;
 
6736
    # TODO: add an auto case that compiles a little C app to check
 
6737
    # where the glibc is
 
6738
    if test "$kdelibsuff" = "no"; then
 
6739
       kdelibsuff=
 
6740
    fi
 
6741
    if test -z "$kdelibsuff"; then
 
6742
        echo "$as_me:$LINENO: result: not using lib directory suffix" >&5
 
6743
echo "${ECHO_T}not using lib directory suffix" >&6
 
6744
 
 
6745
cat >>confdefs.h <<\_ACEOF
 
6746
#define KDELIBSUFF ""
 
6747
_ACEOF
 
6748
 
 
6749
    else
 
6750
        if test "$libdir" = '${exec_prefix}/lib'; then
 
6751
            libdir="$libdir${kdelibsuff}"
 
6752
            libdir="$libdir"
 
6753
          fi
 
6754
 
 
6755
cat >>confdefs.h <<_ACEOF
 
6756
#define KDELIBSUFF "${kdelibsuff}"
 
6757
_ACEOF
 
6758
 
 
6759
        echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
 
6760
echo "${ECHO_T}using lib directory suffix $kdelibsuff" >&6
 
6761
    fi
 
6762
 
 
6763
# Check whether --enable-fast-install or --disable-fast-install was given.
 
6764
if test "${enable_fast_install+set}" = set; then
 
6765
  enableval="$enable_fast_install"
 
6766
  p=${PACKAGE-default}
 
6767
    case $enableval in
 
6768
    yes) enable_fast_install=yes ;;
 
6769
    no) enable_fast_install=no ;;
 
6770
    *)
 
6771
      enable_fast_install=no
 
6772
      # Look at the argument we got.  We use all the common list separators.
 
6773
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6774
      for pkg in $enableval; do
 
6775
        IFS="$lt_save_ifs"
 
6776
        if test "X$pkg" = "X$p"; then
 
6777
          enable_fast_install=yes
 
6778
        fi
 
6779
      done
 
6780
      IFS="$lt_save_ifs"
 
6781
      ;;
 
6782
    esac
 
6783
else
 
6784
  enable_fast_install=yes
 
6785
fi;
 
6786
 
 
6787
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
6788
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
6789
if test "${lt_cv_path_SED+set}" = set; then
 
6790
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6791
else
 
6792
  # Loop through the user's path and test for sed and gsed.
 
6793
# Then use that list of sed's as ones to test for truncation.
 
6794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6795
for as_dir in $PATH
 
6796
do
 
6797
  IFS=$as_save_IFS
 
6798
  test -z "$as_dir" && as_dir=.
 
6799
  for lt_ac_prog in sed gsed; do
 
6800
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6801
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6802
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
6803
      fi
 
6804
    done
 
6805
  done
 
6806
done
 
6807
lt_ac_max=0
 
6808
lt_ac_count=0
 
6809
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
6810
# along with /bin/sed that truncates output.
 
6811
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
6812
  test ! -f $lt_ac_sed && break
 
6813
  cat /dev/null > conftest.in
 
6814
  lt_ac_count=0
 
6815
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
6816
  # Check for GNU sed and select it if it is found.
 
6817
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
6818
    lt_cv_path_SED=$lt_ac_sed
 
6819
    break
 
6820
  fi
 
6821
  while true; do
 
6822
    cat conftest.in conftest.in >conftest.tmp
 
6823
    mv conftest.tmp conftest.in
 
6824
    cp conftest.in conftest.nl
 
6825
    echo >>conftest.nl
 
6826
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
6827
    cmp -s conftest.out conftest.nl || break
 
6828
    # 10000 chars as input seems more than enough
 
6829
    test $lt_ac_count -gt 10 && break
 
6830
    lt_ac_count=`expr $lt_ac_count + 1`
 
6831
    if test $lt_ac_count -gt $lt_ac_max; then
 
6832
      lt_ac_max=$lt_ac_count
 
6833
      lt_cv_path_SED=$lt_ac_sed
 
6834
    fi
 
6835
  done
 
6836
done
 
6837
 
 
6838
fi
 
6839
 
 
6840
SED=$lt_cv_path_SED
 
6841
echo "$as_me:$LINENO: result: $SED" >&5
 
6842
echo "${ECHO_T}$SED" >&6
 
6843
 
 
6844
echo "$as_me:$LINENO: checking for egrep" >&5
 
6845
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
6846
if test "${ac_cv_prog_egrep+set}" = set; then
 
6847
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6848
else
 
6849
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
6850
    then ac_cv_prog_egrep='grep -E'
 
6851
    else ac_cv_prog_egrep='egrep'
 
6852
    fi
 
6853
fi
 
6854
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
6855
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
6856
 EGREP=$ac_cv_prog_egrep
 
6857
 
 
6858
 
 
6859
 
 
6860
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
6861
if test "${with_gnu_ld+set}" = set; then
 
6862
  withval="$with_gnu_ld"
 
6863
  test "$withval" = no || with_gnu_ld=yes
 
6864
else
 
6865
  with_gnu_ld=no
 
6866
fi;
 
6867
ac_prog=ld
 
6868
if test "$GCC" = yes; then
 
6869
  # Check if gcc -print-prog-name=ld gives a path.
 
6870
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
6871
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
6872
  case $host in
 
6873
  *-*-mingw*)
 
6874
    # gcc leaves a trailing carriage return which upsets mingw
 
6875
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
6876
  *)
 
6877
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
6878
  esac
 
6879
  case $ac_prog in
 
6880
    # Accept absolute paths.
 
6881
    [\\/]* | ?:[\\/]*)
 
6882
      re_direlt='/[^/][^/]*/\.\./'
 
6883
      # Canonicalize the pathname of ld
 
6884
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
6885
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
6886
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
6887
      done
 
6888
      test -z "$LD" && LD="$ac_prog"
 
6889
      ;;
 
6890
  "")
 
6891
    # If it fails, then pretend we aren't using GCC.
 
6892
    ac_prog=ld
 
6893
    ;;
 
6894
  *)
 
6895
    # If it is relative, then search for the first ld in PATH.
 
6896
    with_gnu_ld=unknown
 
6897
    ;;
 
6898
  esac
 
6899
elif test "$with_gnu_ld" = yes; then
 
6900
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
6901
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
6902
else
 
6903
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
6904
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
6905
fi
 
6906
if test "${lt_cv_path_LD+set}" = set; then
 
6907
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6908
else
 
6909
  if test -z "$LD"; then
 
6910
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6911
  for ac_dir in $PATH; do
 
6912
    IFS="$lt_save_ifs"
 
6913
    test -z "$ac_dir" && ac_dir=.
 
6914
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
6915
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
6916
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
6917
      # but apparently some GNU ld's only accept -v.
 
6918
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
6919
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
6920
      *GNU* | *'with BFD'*)
 
6921
        test "$with_gnu_ld" != no && break
 
6922
        ;;
 
6923
      *)
 
6924
        test "$with_gnu_ld" != yes && break
 
6925
        ;;
 
6926
      esac
 
6927
    fi
 
6928
  done
 
6929
  IFS="$lt_save_ifs"
 
6930
else
 
6931
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
6932
fi
 
6933
fi
 
6934
 
 
6935
LD="$lt_cv_path_LD"
 
6936
if test -n "$LD"; then
 
6937
  echo "$as_me:$LINENO: result: $LD" >&5
 
6938
echo "${ECHO_T}$LD" >&6
 
6939
else
 
6940
  echo "$as_me:$LINENO: result: no" >&5
 
6941
echo "${ECHO_T}no" >&6
 
6942
fi
 
6943
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
6944
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
6945
   { (exit 1); exit 1; }; }
 
6946
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
6947
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
6948
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
6949
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6950
else
 
6951
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
6952
case `$LD -v 2>&1 </dev/null` in
 
6953
*GNU* | *'with BFD'*)
 
6954
  lt_cv_prog_gnu_ld=yes
 
6955
  ;;
 
6956
*)
 
6957
  lt_cv_prog_gnu_ld=no
 
6958
  ;;
 
6959
esac
 
6960
fi
 
6961
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
6962
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
6963
with_gnu_ld=$lt_cv_prog_gnu_ld
 
6964
 
 
6965
 
 
6966
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
6967
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
6968
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
6969
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6970
else
 
6971
  lt_cv_ld_reload_flag='-r'
 
6972
fi
 
6973
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
6974
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
6975
reload_flag=$lt_cv_ld_reload_flag
 
6976
case $reload_flag in
 
6977
"" | " "*) ;;
 
6978
*) reload_flag=" $reload_flag" ;;
 
6979
esac
 
6980
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6981
 
 
6982
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
6983
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
6984
if test "${lt_cv_path_NM+set}" = set; then
 
6985
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6986
else
 
6987
  if test -n "$NM"; then
 
6988
  # Let the user override the test.
 
6989
  lt_cv_path_NM="$NM"
 
6990
else
 
6991
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6992
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
6993
    IFS="$lt_save_ifs"
 
6994
    test -z "$ac_dir" && ac_dir=.
 
6995
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
6996
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
6997
      # Check to see if the nm accepts a BSD-compat flag.
 
6998
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
6999
      #   nm: unknown option "B" ignored
 
7000
      # Tru64's nm complains that /dev/null is an invalid object file
 
7001
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
7002
      */dev/null* | *'Invalid file or object type'*)
 
7003
        lt_cv_path_NM="$tmp_nm -B"
 
7004
        break
 
7005
        ;;
 
7006
      *)
 
7007
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
7008
        */dev/null*)
 
7009
          lt_cv_path_NM="$tmp_nm -p"
 
7010
          break
 
7011
          ;;
 
7012
        *)
 
7013
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
7014
          continue # so that we can try to find one that supports BSD flags
 
7015
          ;;
 
7016
        esac
 
7017
      esac
 
7018
    fi
 
7019
  done
 
7020
  IFS="$lt_save_ifs"
 
7021
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
7022
fi
 
7023
fi
 
7024
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
7025
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
7026
NM="$lt_cv_path_NM"
 
7027
 
 
7028
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
7029
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
7030
LN_S=$as_ln_s
 
7031
if test "$LN_S" = "ln -s"; then
 
7032
  echo "$as_me:$LINENO: result: yes" >&5
 
7033
echo "${ECHO_T}yes" >&6
 
7034
else
 
7035
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
7036
echo "${ECHO_T}no, using $LN_S" >&6
 
7037
fi
 
7038
 
 
7039
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
7040
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
7041
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
7042
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7043
else
 
7044
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
7045
lt_cv_file_magic_test_file=
 
7046
lt_cv_deplibs_check_method='unknown'
 
7047
# Need to set the preceding variable on all platforms that support
 
7048
# interlibrary dependencies.
 
7049
# 'none' -- dependencies not supported.
 
7050
# `unknown' -- same as none, but documents that we really don't know.
 
7051
# 'pass_all' -- all dependencies passed with no checks.
 
7052
# 'test_compile' -- check by making test program.
 
7053
# 'file_magic [[regex]]' -- check by looking for files in library path
 
7054
# which responds to the $file_magic_cmd with a given extended regex.
 
7055
# If you have `file' or equivalent on your system and you're not sure
 
7056
# whether `pass_all' will *always* work, you probably want this one.
 
7057
 
 
7058
case $host_os in
 
7059
aix4* | aix5*)
 
7060
  lt_cv_deplibs_check_method=pass_all
 
7061
  ;;
 
7062
 
 
7063
beos*)
 
7064
  lt_cv_deplibs_check_method=pass_all
 
7065
  ;;
 
7066
 
 
7067
bsdi4*)
 
7068
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
7069
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
7070
  lt_cv_file_magic_test_file=/shlib/libc.so
 
7071
  ;;
 
7072
 
 
7073
cygwin*)
 
7074
  lt_cv_deplibs_check_method=pass_all
 
7075
  ;;
 
7076
 
 
7077
mingw* | pw32*)
 
7078
  # win32_libid is a shell function defined in ltmain.sh
 
7079
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
7080
  lt_cv_file_magic_cmd='win32_libid'
 
7081
  ;;
 
7082
 
 
7083
darwin* | rhapsody*)
 
7084
  # this will be overwritten by pass_all, but leave it in just in case
 
7085
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 
7086
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
7087
  case "$host_os" in
 
7088
  rhapsody* | darwin1.[012])
 
7089
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
 
7090
    ;;
 
7091
  *) # Darwin 1.3 on
 
7092
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 
7093
    ;;
 
7094
  esac
 
7095
  lt_cv_deplibs_check_method=pass_all
 
7096
  ;;
 
7097
 
 
7098
freebsd*)
 
7099
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
7100
    case $host_cpu in
 
7101
    i*86 )
 
7102
      # Not sure whether the presence of OpenBSD here was a mistake.
 
7103
      # Let's accept both of them until this is cleared up.
 
7104
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
7105
      lt_cv_file_magic_cmd=/usr/bin/file
 
7106
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
7107
      ;;
 
7108
    esac
 
7109
  else
 
7110
    lt_cv_deplibs_check_method=pass_all
 
7111
  fi
 
7112
  ;;
 
7113
 
 
7114
gnu*)
 
7115
  lt_cv_deplibs_check_method=pass_all
 
7116
  ;;
 
7117
 
 
7118
hpux10.20* | hpux11*)
 
7119
  lt_cv_file_magic_cmd=/usr/bin/file
 
7120
  case "$host_cpu" in
 
7121
  ia64*)
 
7122
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
7123
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
7124
    ;;
 
7125
  hppa*64*)
 
7126
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
7127
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
7128
    ;;
 
7129
  *)
 
7130
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
7131
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
7132
    ;;
 
7133
  esac
 
7134
  ;;
 
7135
 
 
7136
irix5* | irix6* | nonstopux*)
 
7137
  case $host_os in
 
7138
  irix5* | nonstopux*)
 
7139
    # this will be overridden with pass_all, but let us keep it just in case
 
7140
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
7141
    ;;
 
7142
  *)
 
7143
    case $LD in
 
7144
    *-32|*"-32 ") libmagic=32-bit;;
 
7145
    *-n32|*"-n32 ") libmagic=N32;;
 
7146
    *-64|*"-64 ") libmagic=64-bit;;
 
7147
    *) libmagic=never-match;;
 
7148
    esac
 
7149
    # this will be overridden with pass_all, but let us keep it just in case
 
7150
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
7151
    ;;
 
7152
  esac
 
7153
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
7154
  lt_cv_deplibs_check_method=pass_all
 
7155
  ;;
 
7156
 
 
7157
# This must be Linux ELF.
 
7158
linux*)
 
7159
  case $host_cpu in
 
7160
  alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
 
7161
    lt_cv_deplibs_check_method=pass_all ;;
 
7162
  # the debian people say, arm and glibc 2.3.1 works for them with pass_all
 
7163
  arm* )
 
7164
    lt_cv_deplibs_check_method=pass_all ;;
 
7165
  *)
 
7166
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
7167
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
7168
  esac
 
7169
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
7170
  ;;
 
7171
 
 
7172
netbsd*)
 
7173
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
7174
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
7175
  else
 
7176
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
7177
  fi
 
7178
  ;;
 
7179
 
 
7180
newos6*)
 
7181
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
7182
  lt_cv_file_magic_cmd=/usr/bin/file
 
7183
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
7184
  ;;
 
7185
 
 
7186
nto-qnx*)
 
7187
  lt_cv_deplibs_check_method=unknown
 
7188
  ;;
 
7189
 
 
7190
openbsd*)
 
7191
  lt_cv_file_magic_cmd=/usr/bin/file
 
7192
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
7193
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7194
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
7195
  else
 
7196
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
7197
  fi
 
7198
  ;;
 
7199
 
 
7200
osf3* | osf4* | osf5*)
 
7201
  # this will be overridden with pass_all, but let us keep it just in case
 
7202
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 
7203
  lt_cv_file_magic_test_file=/shlib/libc.so
 
7204
  lt_cv_deplibs_check_method=pass_all
 
7205
  ;;
 
7206
 
 
7207
sco3.2v5*)
 
7208
  lt_cv_deplibs_check_method=pass_all
 
7209
  ;;
 
7210
 
 
7211
solaris*)
 
7212
  lt_cv_deplibs_check_method=pass_all
 
7213
  lt_cv_file_magic_test_file=/lib/libc.so
 
7214
  ;;
 
7215
 
 
7216
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7217
  case $host_vendor in
 
7218
  motorola)
 
7219
    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]'
 
7220
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
7221
    ;;
 
7222
  ncr)
 
7223
    lt_cv_deplibs_check_method=pass_all
 
7224
    ;;
 
7225
  sequent)
 
7226
    lt_cv_file_magic_cmd='/bin/file'
 
7227
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
7228
    ;;
 
7229
  sni)
 
7230
    lt_cv_file_magic_cmd='/bin/file'
 
7231
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
7232
    lt_cv_file_magic_test_file=/lib/libc.so
 
7233
    ;;
 
7234
  siemens)
 
7235
    lt_cv_deplibs_check_method=pass_all
 
7236
    ;;
 
7237
  esac
 
7238
  ;;
 
7239
 
 
7240
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
7241
  lt_cv_deplibs_check_method=pass_all
 
7242
  ;;
 
7243
esac
 
7244
 
 
7245
fi
 
7246
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
7247
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
7248
file_magic_cmd=$lt_cv_file_magic_cmd
 
7249
deplibs_check_method=$lt_cv_deplibs_check_method
 
7250
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
7251
 
 
7252
 
 
7253
# If no C compiler was specified, use CC.
 
7254
LTCC=${LTCC-"$CC"}
 
7255
 
 
7256
# Allow CC to be a program name with arguments.
 
7257
compiler=$CC
 
7258
 
 
7259
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
7260
if test "${enable_libtool_lock+set}" = set; then
 
7261
  enableval="$enable_libtool_lock"
 
7262
 
 
7263
fi;
 
7264
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7265
 
 
7266
# Some flags need to be propagated to the compiler or linker for good
 
7267
# libtool support.
 
7268
case $host in
 
7269
ia64-*-hpux*)
 
7270
  # Find out which ABI we are using.
 
7271
  echo 'int i;' > conftest.$ac_ext
 
7272
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7273
  (eval $ac_compile) 2>&5
 
7274
  ac_status=$?
 
7275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7276
  (exit $ac_status); }; then
 
7277
    case `/usr/bin/file conftest.$ac_objext` in
 
7278
    *ELF-32*)
 
7279
      HPUX_IA64_MODE="32"
 
7280
      ;;
 
7281
    *ELF-64*)
 
7282
      HPUX_IA64_MODE="64"
 
7283
      ;;
 
7284
    esac
 
7285
  fi
 
7286
  rm -rf conftest*
 
7287
  ;;
 
7288
*-*-irix6*)
 
7289
  # Find out which ABI we are using.
 
7290
  echo '#line 7290 "configure"' > conftest.$ac_ext
 
7291
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7292
  (eval $ac_compile) 2>&5
 
7293
  ac_status=$?
 
7294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7295
  (exit $ac_status); }; then
 
7296
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
7297
    case `/usr/bin/file conftest.$ac_objext` in
 
7298
    *32-bit*)
 
7299
      LD="${LD-ld} -melf32bsmip"
 
7300
      ;;
 
7301
    *N32*)
 
7302
      LD="${LD-ld} -melf32bmipn32"
 
7303
      ;;
 
7304
    *64-bit*)
 
7305
      LD="${LD-ld} -melf64bmip"
 
7306
      ;;
 
7307
    esac
 
7308
   else
 
7309
    case `/usr/bin/file conftest.$ac_objext` in
 
7310
    *32-bit*)
 
7311
      LD="${LD-ld} -32"
 
7312
      ;;
 
7313
    *N32*)
 
7314
      LD="${LD-ld} -n32"
 
7315
      ;;
 
7316
    *64-bit*)
 
7317
      LD="${LD-ld} -64"
 
7318
      ;;
 
7319
    esac
 
7320
   fi
 
7321
  fi
 
7322
  rm -rf conftest*
 
7323
  ;;
 
7324
 
 
7325
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
7326
  # Find out which ABI we are using.
 
7327
  echo 'int i;' > conftest.$ac_ext
 
7328
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7329
  (eval $ac_compile) 2>&5
 
7330
  ac_status=$?
 
7331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7332
  (exit $ac_status); }; then
 
7333
    case "`/usr/bin/file conftest.o`" in
 
7334
    *32-bit*)
 
7335
      LINUX_64_MODE="32"
 
7336
      case $host in
 
7337
        x86_64-*linux*)
 
7338
          LD="${LD-ld} -m elf_i386"
 
7339
          ;;
 
7340
        ppc64-*linux*)
 
7341
          LD="${LD-ld} -m elf32ppclinux"
 
7342
          ;;
 
7343
        s390x-*linux*)
 
7344
          LD="${LD-ld} -m elf_s390"
 
7345
          ;;
 
7346
        sparc64-*linux*)
 
7347
          LD="${LD-ld} -m elf32_sparc"
 
7348
          ;;
 
7349
      esac
 
7350
      ;;
 
7351
    *64-bit*)
 
7352
      LINUX_64_MODE="64"
 
7353
      case $host in
 
7354
        x86_64-*linux*)
 
7355
          LD="${LD-ld} -m elf_x86_64"
 
7356
          ;;
 
7357
        ppc*-*linux*|powerpc*-*linux*)
 
7358
          LD="${LD-ld} -m elf64ppc"
 
7359
          ;;
 
7360
        s390*-*linux*)
 
7361
          LD="${LD-ld} -m elf64_s390"
 
7362
          ;;
 
7363
        sparc*-*linux*)
 
7364
          LD="${LD-ld} -m elf64_sparc"
 
7365
          ;;
 
7366
      esac
 
7367
      ;;
 
7368
    esac
 
7369
  fi
 
7370
  rm -rf conftest*
 
7371
  ;;
 
7372
 
 
7373
*-*-sco3.2v5*)
 
7374
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7375
  SAVE_CFLAGS="$CFLAGS"
 
7376
  CFLAGS="$CFLAGS -belf"
 
7377
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
7378
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
7379
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
7380
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7381
else
 
7382
  ac_ext=c
 
7383
ac_cpp='$CPP $CPPFLAGS'
 
7384
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7385
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7386
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7387
 
 
7388
     cat >conftest.$ac_ext <<_ACEOF
 
7389
/* confdefs.h.  */
 
7390
_ACEOF
 
7391
cat confdefs.h >>conftest.$ac_ext
 
7392
cat >>conftest.$ac_ext <<_ACEOF
 
7393
/* end confdefs.h.  */
 
7394
 
 
7395
int
 
7396
main ()
 
7397
{
 
7398
 
 
7399
  ;
 
7400
  return 0;
 
7401
}
 
7402
_ACEOF
 
7403
rm -f conftest.$ac_objext conftest$ac_exeext
 
7404
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7405
  (eval $ac_link) 2>conftest.er1
 
7406
  ac_status=$?
 
7407
  grep -v '^ *+' conftest.er1 >conftest.err
 
7408
  rm -f conftest.er1
 
7409
  cat conftest.err >&5
 
7410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7411
  (exit $ac_status); } &&
 
7412
         { ac_try='test -z "$ac_c_werror_flag"
 
7413
                         || test ! -s conftest.err'
 
7414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7415
  (eval $ac_try) 2>&5
 
7416
  ac_status=$?
 
7417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7418
  (exit $ac_status); }; } &&
 
7419
         { ac_try='test -s conftest$ac_exeext'
 
7420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7421
  (eval $ac_try) 2>&5
 
7422
  ac_status=$?
 
7423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7424
  (exit $ac_status); }; }; then
 
7425
  lt_cv_cc_needs_belf=yes
 
7426
else
 
7427
  echo "$as_me: failed program was:" >&5
 
7428
sed 's/^/| /' conftest.$ac_ext >&5
 
7429
 
 
7430
lt_cv_cc_needs_belf=no
 
7431
fi
 
7432
rm -f conftest.err conftest.$ac_objext \
 
7433
      conftest$ac_exeext conftest.$ac_ext
 
7434
     ac_ext=c
 
7435
ac_cpp='$CPP $CPPFLAGS'
 
7436
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7437
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7438
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7439
 
 
7440
fi
 
7441
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
7442
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
7443
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7444
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7445
    CFLAGS="$SAVE_CFLAGS"
 
7446
  fi
 
7447
  ;;
 
7448
 
 
7449
esac
 
7450
 
 
7451
need_locks="$enable_libtool_lock"
 
7452
 
 
7453
 
 
7454
 
 
7455
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
7456
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
7457
if test "${ac_cv_header_stdc+set}" = set; then
 
7458
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7459
else
 
7460
  cat >conftest.$ac_ext <<_ACEOF
 
7461
/* confdefs.h.  */
 
7462
_ACEOF
 
7463
cat confdefs.h >>conftest.$ac_ext
 
7464
cat >>conftest.$ac_ext <<_ACEOF
 
7465
/* end confdefs.h.  */
 
7466
#include <stdlib.h>
 
7467
#include <stdarg.h>
 
7468
#include <string.h>
 
7469
#include <float.h>
 
7470
 
 
7471
int
 
7472
main ()
 
7473
{
 
7474
 
 
7475
  ;
 
7476
  return 0;
 
7477
}
 
7478
_ACEOF
 
7479
rm -f conftest.$ac_objext
 
7480
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7481
  (eval $ac_compile) 2>conftest.er1
 
7482
  ac_status=$?
 
7483
  grep -v '^ *+' conftest.er1 >conftest.err
 
7484
  rm -f conftest.er1
 
7485
  cat conftest.err >&5
 
7486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7487
  (exit $ac_status); } &&
 
7488
         { ac_try='test -z "$ac_c_werror_flag"
 
7489
                         || test ! -s conftest.err'
 
7490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7491
  (eval $ac_try) 2>&5
 
7492
  ac_status=$?
 
7493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7494
  (exit $ac_status); }; } &&
 
7495
         { ac_try='test -s conftest.$ac_objext'
 
7496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7497
  (eval $ac_try) 2>&5
 
7498
  ac_status=$?
 
7499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7500
  (exit $ac_status); }; }; then
 
7501
  ac_cv_header_stdc=yes
 
7502
else
 
7503
  echo "$as_me: failed program was:" >&5
 
7504
sed 's/^/| /' conftest.$ac_ext >&5
 
7505
 
 
7506
ac_cv_header_stdc=no
 
7507
fi
 
7508
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7509
 
 
7510
if test $ac_cv_header_stdc = yes; then
 
7511
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7512
  cat >conftest.$ac_ext <<_ACEOF
 
7513
/* confdefs.h.  */
 
7514
_ACEOF
 
7515
cat confdefs.h >>conftest.$ac_ext
 
7516
cat >>conftest.$ac_ext <<_ACEOF
 
7517
/* end confdefs.h.  */
 
7518
#include <string.h>
 
7519
 
 
7520
_ACEOF
 
7521
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7522
  $EGREP "memchr" >/dev/null 2>&1; then
 
7523
  :
 
7524
else
 
7525
  ac_cv_header_stdc=no
 
7526
fi
 
7527
rm -f conftest*
 
7528
 
 
7529
fi
 
7530
 
 
7531
if test $ac_cv_header_stdc = yes; then
 
7532
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7533
  cat >conftest.$ac_ext <<_ACEOF
 
7534
/* confdefs.h.  */
 
7535
_ACEOF
 
7536
cat confdefs.h >>conftest.$ac_ext
 
7537
cat >>conftest.$ac_ext <<_ACEOF
 
7538
/* end confdefs.h.  */
 
7539
#include <stdlib.h>
 
7540
 
 
7541
_ACEOF
 
7542
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7543
  $EGREP "free" >/dev/null 2>&1; then
 
7544
  :
 
7545
else
 
7546
  ac_cv_header_stdc=no
 
7547
fi
 
7548
rm -f conftest*
 
7549
 
 
7550
fi
 
7551
 
 
7552
if test $ac_cv_header_stdc = yes; then
 
7553
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7554
  if test "$cross_compiling" = yes; then
 
7555
  :
 
7556
else
 
7557
  cat >conftest.$ac_ext <<_ACEOF
 
7558
/* confdefs.h.  */
 
7559
_ACEOF
 
7560
cat confdefs.h >>conftest.$ac_ext
 
7561
cat >>conftest.$ac_ext <<_ACEOF
 
7562
/* end confdefs.h.  */
 
7563
#include <ctype.h>
 
7564
#if ((' ' & 0x0FF) == 0x020)
 
7565
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7566
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7567
#else
 
7568
# define ISLOWER(c) \
 
7569
                   (('a' <= (c) && (c) <= 'i') \
 
7570
                     || ('j' <= (c) && (c) <= 'r') \
 
7571
                     || ('s' <= (c) && (c) <= 'z'))
 
7572
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7573
#endif
 
7574
 
 
7575
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7576
int
 
7577
main ()
 
7578
{
 
7579
  int i;
 
7580
  for (i = 0; i < 256; i++)
 
7581
    if (XOR (islower (i), ISLOWER (i))
 
7582
        || toupper (i) != TOUPPER (i))
 
7583
      exit(2);
 
7584
  exit (0);
 
7585
}
 
7586
_ACEOF
 
7587
rm -f conftest$ac_exeext
 
7588
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7589
  (eval $ac_link) 2>&5
 
7590
  ac_status=$?
 
7591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7592
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7594
  (eval $ac_try) 2>&5
 
7595
  ac_status=$?
 
7596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7597
  (exit $ac_status); }; }; then
 
7598
  :
 
7599
else
 
7600
  echo "$as_me: program exited with status $ac_status" >&5
 
7601
echo "$as_me: failed program was:" >&5
 
7602
sed 's/^/| /' conftest.$ac_ext >&5
 
7603
 
 
7604
( exit $ac_status )
 
7605
ac_cv_header_stdc=no
 
7606
fi
 
7607
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7608
fi
 
7609
fi
 
7610
fi
 
7611
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
7612
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
7613
if test $ac_cv_header_stdc = yes; then
 
7614
 
 
7615
cat >>confdefs.h <<\_ACEOF
 
7616
#define STDC_HEADERS 1
 
7617
_ACEOF
 
7618
 
 
7619
fi
 
7620
 
 
7621
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7622
 
 
7623
 
 
7624
 
 
7625
 
 
7626
 
 
7627
 
 
7628
 
 
7629
 
 
7630
 
 
7631
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7632
                  inttypes.h stdint.h unistd.h
 
7633
do
 
7634
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7635
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7636
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7637
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7638
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7639
else
 
7640
  cat >conftest.$ac_ext <<_ACEOF
 
7641
/* confdefs.h.  */
 
7642
_ACEOF
 
7643
cat confdefs.h >>conftest.$ac_ext
 
7644
cat >>conftest.$ac_ext <<_ACEOF
 
7645
/* end confdefs.h.  */
 
7646
$ac_includes_default
 
7647
 
 
7648
#include <$ac_header>
 
7649
_ACEOF
 
7650
rm -f conftest.$ac_objext
 
7651
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7652
  (eval $ac_compile) 2>conftest.er1
 
7653
  ac_status=$?
 
7654
  grep -v '^ *+' conftest.er1 >conftest.err
 
7655
  rm -f conftest.er1
 
7656
  cat conftest.err >&5
 
7657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7658
  (exit $ac_status); } &&
 
7659
         { ac_try='test -z "$ac_c_werror_flag"
 
7660
                         || test ! -s conftest.err'
 
7661
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7662
  (eval $ac_try) 2>&5
 
7663
  ac_status=$?
 
7664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7665
  (exit $ac_status); }; } &&
 
7666
         { ac_try='test -s conftest.$ac_objext'
 
7667
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7668
  (eval $ac_try) 2>&5
 
7669
  ac_status=$?
 
7670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7671
  (exit $ac_status); }; }; then
 
7672
  eval "$as_ac_Header=yes"
 
7673
else
 
7674
  echo "$as_me: failed program was:" >&5
 
7675
sed 's/^/| /' conftest.$ac_ext >&5
 
7676
 
 
7677
eval "$as_ac_Header=no"
 
7678
fi
 
7679
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7680
fi
 
7681
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7682
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7683
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7684
  cat >>confdefs.h <<_ACEOF
 
7685
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7686
_ACEOF
 
7687
 
 
7688
fi
 
7689
 
 
7690
done
 
7691
 
 
7692
 
 
7693
 
 
7694
for ac_header in dlfcn.h
 
7695
do
 
7696
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7697
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7698
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7699
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7700
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7702
fi
 
7703
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7704
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7705
else
 
7706
  # Is the header compilable?
 
7707
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7708
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7709
cat >conftest.$ac_ext <<_ACEOF
 
7710
/* confdefs.h.  */
 
7711
_ACEOF
 
7712
cat confdefs.h >>conftest.$ac_ext
 
7713
cat >>conftest.$ac_ext <<_ACEOF
 
7714
/* end confdefs.h.  */
 
7715
$ac_includes_default
 
7716
#include <$ac_header>
 
7717
_ACEOF
 
7718
rm -f conftest.$ac_objext
 
7719
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7720
  (eval $ac_compile) 2>conftest.er1
 
7721
  ac_status=$?
 
7722
  grep -v '^ *+' conftest.er1 >conftest.err
 
7723
  rm -f conftest.er1
 
7724
  cat conftest.err >&5
 
7725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7726
  (exit $ac_status); } &&
 
7727
         { ac_try='test -z "$ac_c_werror_flag"
 
7728
                         || test ! -s conftest.err'
 
7729
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7730
  (eval $ac_try) 2>&5
 
7731
  ac_status=$?
 
7732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7733
  (exit $ac_status); }; } &&
 
7734
         { ac_try='test -s conftest.$ac_objext'
 
7735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7736
  (eval $ac_try) 2>&5
 
7737
  ac_status=$?
 
7738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7739
  (exit $ac_status); }; }; then
 
7740
  ac_header_compiler=yes
 
7741
else
 
7742
  echo "$as_me: failed program was:" >&5
 
7743
sed 's/^/| /' conftest.$ac_ext >&5
 
7744
 
 
7745
ac_header_compiler=no
 
7746
fi
 
7747
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7748
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7749
echo "${ECHO_T}$ac_header_compiler" >&6
 
7750
 
 
7751
# Is the header present?
 
7752
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7753
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7754
cat >conftest.$ac_ext <<_ACEOF
 
7755
/* confdefs.h.  */
 
7756
_ACEOF
 
7757
cat confdefs.h >>conftest.$ac_ext
 
7758
cat >>conftest.$ac_ext <<_ACEOF
 
7759
/* end confdefs.h.  */
 
7760
#include <$ac_header>
 
7761
_ACEOF
 
7762
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7763
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7764
  ac_status=$?
 
7765
  grep -v '^ *+' conftest.er1 >conftest.err
 
7766
  rm -f conftest.er1
 
7767
  cat conftest.err >&5
 
7768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7769
  (exit $ac_status); } >/dev/null; then
 
7770
  if test -s conftest.err; then
 
7771
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7772
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
7773
  else
 
7774
    ac_cpp_err=
 
7775
  fi
 
7776
else
 
7777
  ac_cpp_err=yes
 
7778
fi
 
7779
if test -z "$ac_cpp_err"; then
 
7780
  ac_header_preproc=yes
 
7781
else
 
7782
  echo "$as_me: failed program was:" >&5
 
7783
sed 's/^/| /' conftest.$ac_ext >&5
 
7784
 
 
7785
  ac_header_preproc=no
 
7786
fi
 
7787
rm -f conftest.err conftest.$ac_ext
 
7788
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7789
echo "${ECHO_T}$ac_header_preproc" >&6
 
7790
 
 
7791
# So?  What about this header?
 
7792
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7793
  yes:no: )
 
7794
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7795
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7796
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
7797
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7798
    ac_header_preproc=yes
 
7799
    ;;
 
7800
  no:yes:* )
 
7801
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7802
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7803
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7804
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7805
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7806
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7807
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7808
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7809
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7810
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7811
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7812
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
7813
    (
 
7814
      cat <<\_ASBOX
 
7815
## ------------------------------------------ ##
 
7816
## Report this to the AC_PACKAGE_NAME lists.  ##
 
7817
## ------------------------------------------ ##
 
7818
_ASBOX
 
7819
    ) |
 
7820
      sed "s/^/$as_me: WARNING:     /" >&2
 
7821
    ;;
 
7822
esac
 
7823
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7824
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7825
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7826
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7827
else
 
7828
  eval "$as_ac_Header=\$ac_header_preproc"
 
7829
fi
 
7830
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7831
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7832
 
 
7833
fi
 
7834
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7835
  cat >>confdefs.h <<_ACEOF
 
7836
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7837
_ACEOF
 
7838
 
 
7839
fi
 
7840
 
 
7841
done
 
7842
 
 
7843
ac_ext=f
 
7844
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
7845
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7846
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
7847
if test -n "$ac_tool_prefix"; then
 
7848
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
7849
  do
 
7850
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
7851
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
7852
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7853
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7854
if test "${ac_cv_prog_F77+set}" = set; then
 
7855
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7856
else
 
7857
  if test -n "$F77"; then
 
7858
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
7859
else
 
7860
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7861
for as_dir in $PATH
 
7862
do
 
7863
  IFS=$as_save_IFS
 
7864
  test -z "$as_dir" && as_dir=.
 
7865
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7866
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7867
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
7868
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7869
    break 2
 
7870
  fi
 
7871
done
 
7872
done
 
7873
 
 
7874
fi
 
7875
fi
 
7876
F77=$ac_cv_prog_F77
 
7877
if test -n "$F77"; then
 
7878
  echo "$as_me:$LINENO: result: $F77" >&5
 
7879
echo "${ECHO_T}$F77" >&6
 
7880
else
 
7881
  echo "$as_me:$LINENO: result: no" >&5
 
7882
echo "${ECHO_T}no" >&6
 
7883
fi
 
7884
 
 
7885
    test -n "$F77" && break
 
7886
  done
 
7887
fi
 
7888
if test -z "$F77"; then
 
7889
  ac_ct_F77=$F77
 
7890
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
7891
do
 
7892
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7893
set dummy $ac_prog; 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_prog_ac_ct_F77+set}" = set; then
 
7897
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7898
else
 
7899
  if test -n "$ac_ct_F77"; then
 
7900
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
7901
else
 
7902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7903
for as_dir in $PATH
 
7904
do
 
7905
  IFS=$as_save_IFS
 
7906
  test -z "$as_dir" && as_dir=.
 
7907
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7908
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7909
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
7910
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7911
    break 2
 
7912
  fi
 
7913
done
 
7914
done
 
7915
 
 
7916
fi
 
7917
fi
 
7918
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
7919
if test -n "$ac_ct_F77"; then
 
7920
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
7921
echo "${ECHO_T}$ac_ct_F77" >&6
 
7922
else
 
7923
  echo "$as_me:$LINENO: result: no" >&5
 
7924
echo "${ECHO_T}no" >&6
 
7925
fi
 
7926
 
 
7927
  test -n "$ac_ct_F77" && break
 
7928
done
 
7929
 
 
7930
  F77=$ac_ct_F77
 
7931
fi
 
7932
 
 
7933
 
 
7934
# Provide some information about the compiler.
 
7935
echo "$as_me:7935:" \
 
7936
     "checking for Fortran 77 compiler version" >&5
 
7937
ac_compiler=`set X $ac_compile; echo $2`
 
7938
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
7939
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
7940
  ac_status=$?
 
7941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7942
  (exit $ac_status); }
 
7943
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
7944
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
7945
  ac_status=$?
 
7946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7947
  (exit $ac_status); }
 
7948
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
7949
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
7950
  ac_status=$?
 
7951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7952
  (exit $ac_status); }
 
7953
rm -f a.out
 
7954
 
 
7955
# If we don't use `.F' as extension, the preprocessor is not run on the
 
7956
# input file.  (Note that this only needs to work for GNU compilers.)
 
7957
ac_save_ext=$ac_ext
 
7958
ac_ext=F
 
7959
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
7960
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
7961
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
7962
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7963
else
 
7964
  cat >conftest.$ac_ext <<_ACEOF
 
7965
      program main
 
7966
#ifndef __GNUC__
 
7967
       choke me
 
7968
#endif
 
7969
 
 
7970
      end
 
7971
_ACEOF
 
7972
rm -f conftest.$ac_objext
 
7973
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7974
  (eval $ac_compile) 2>conftest.er1
 
7975
  ac_status=$?
 
7976
  grep -v '^ *+' conftest.er1 >conftest.err
 
7977
  rm -f conftest.er1
 
7978
  cat conftest.err >&5
 
7979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7980
  (exit $ac_status); } &&
 
7981
         { ac_try='test -z "$ac_f77_werror_flag"
 
7982
                         || test ! -s conftest.err'
 
7983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7984
  (eval $ac_try) 2>&5
 
7985
  ac_status=$?
 
7986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7987
  (exit $ac_status); }; } &&
 
7988
         { ac_try='test -s conftest.$ac_objext'
 
7989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7990
  (eval $ac_try) 2>&5
 
7991
  ac_status=$?
 
7992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7993
  (exit $ac_status); }; }; then
 
7994
  ac_compiler_gnu=yes
 
7995
else
 
7996
  echo "$as_me: failed program was:" >&5
 
7997
sed 's/^/| /' conftest.$ac_ext >&5
 
7998
 
 
7999
ac_compiler_gnu=no
 
8000
fi
 
8001
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8002
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
8003
 
 
8004
fi
 
8005
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
8006
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
8007
ac_ext=$ac_save_ext
 
8008
ac_test_FFLAGS=${FFLAGS+set}
 
8009
ac_save_FFLAGS=$FFLAGS
 
8010
FFLAGS=
 
8011
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
8012
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
8013
if test "${ac_cv_prog_f77_g+set}" = set; then
 
8014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8015
else
 
8016
  FFLAGS=-g
 
8017
cat >conftest.$ac_ext <<_ACEOF
 
8018
      program main
 
8019
 
 
8020
      end
 
8021
_ACEOF
 
8022
rm -f conftest.$ac_objext
 
8023
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8024
  (eval $ac_compile) 2>conftest.er1
 
8025
  ac_status=$?
 
8026
  grep -v '^ *+' conftest.er1 >conftest.err
 
8027
  rm -f conftest.er1
 
8028
  cat conftest.err >&5
 
8029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8030
  (exit $ac_status); } &&
 
8031
         { ac_try='test -z "$ac_f77_werror_flag"
 
8032
                         || test ! -s conftest.err'
 
8033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8034
  (eval $ac_try) 2>&5
 
8035
  ac_status=$?
 
8036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8037
  (exit $ac_status); }; } &&
 
8038
         { ac_try='test -s conftest.$ac_objext'
 
8039
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8040
  (eval $ac_try) 2>&5
 
8041
  ac_status=$?
 
8042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8043
  (exit $ac_status); }; }; then
 
8044
  ac_cv_prog_f77_g=yes
 
8045
else
 
8046
  echo "$as_me: failed program was:" >&5
 
8047
sed 's/^/| /' conftest.$ac_ext >&5
 
8048
 
 
8049
ac_cv_prog_f77_g=no
 
8050
fi
 
8051
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8052
 
 
8053
fi
 
8054
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
8055
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
8056
if test "$ac_test_FFLAGS" = set; then
 
8057
  FFLAGS=$ac_save_FFLAGS
 
8058
elif test $ac_cv_prog_f77_g = yes; then
 
8059
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
8060
    FFLAGS="-g -O2"
 
8061
  else
 
8062
    FFLAGS="-g"
 
8063
  fi
 
8064
else
 
8065
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
8066
    FFLAGS="-O2"
 
8067
  else
 
8068
    FFLAGS=
 
8069
  fi
 
8070
fi
 
8071
 
 
8072
G77=`test $ac_compiler_gnu = yes && echo yes`
 
8073
ac_ext=c
 
8074
ac_cpp='$CPP $CPPFLAGS'
 
8075
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8076
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8077
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8078
 
 
8079
 
 
8080
 
 
8081
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
8082
 
 
8083
# find the maximum length of command line arguments
 
8084
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
8085
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
8086
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
8087
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8088
else
 
8089
    i=0
 
8090
  testring="ABCD"
 
8091
 
 
8092
  case $build_os in
 
8093
  msdosdjgpp*)
 
8094
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
8095
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
8096
    # during glob expansion).  Even if it were fixed, the result of this
 
8097
    # check would be larger than it should be.
 
8098
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
8099
    ;;
 
8100
 
 
8101
  gnu*)
 
8102
    # Under GNU Hurd, this test is not required because there is
 
8103
    # no limit to the length of command line arguments.
 
8104
    # Libtool will interpret -1 as no limit whatsoever
 
8105
    lt_cv_sys_max_cmd_len=-1;
 
8106
    ;;
 
8107
 
 
8108
  cygwin* | mingw*)
 
8109
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
8110
    # about 5 minutes as the teststring grows exponentially.
 
8111
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
8112
    # you end up with a "frozen" computer, even though with patience
 
8113
    # the test eventually succeeds (with a max line length of 256k).
 
8114
    # Instead, let's just punt: use the minimum linelength reported by
 
8115
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
8116
    lt_cv_sys_max_cmd_len=8192;
 
8117
    ;;
 
8118
 
 
8119
 *)
 
8120
    # If test is not a shell built-in, we'll probably end up computing a
 
8121
    # maximum length that is only half of the actual maximum length, but
 
8122
    # we can't tell.
 
8123
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
 
8124
               = "XX$testring") >/dev/null 2>&1 &&
 
8125
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
8126
            lt_cv_sys_max_cmd_len=$new_result &&
 
8127
            test $i != 17 # 1/2 MB should be enough
 
8128
    do
 
8129
      i=`expr $i + 1`
 
8130
      testring=$testring$testring
 
8131
    done
 
8132
    testring=
 
8133
    # Add a significant safety factor because C++ compilers can tack on massive
 
8134
    # amounts of additional arguments before passing them to the linker.
 
8135
    # It appears as though 1/2 is a usable value.
 
8136
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
8137
    ;;
 
8138
  esac
 
8139
 
 
8140
fi
 
8141
 
 
8142
if test -n $lt_cv_sys_max_cmd_len ; then
 
8143
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
8144
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
8145
else
 
8146
  echo "$as_me:$LINENO: result: none" >&5
 
8147
echo "${ECHO_T}none" >&6
 
8148
fi
 
8149
 
 
8150
 
 
8151
 
 
8152
 
 
8153
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
8154
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
8155
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
8156
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
8157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8158
else
 
8159
 
 
8160
# These are sane defaults that work on at least a few old systems.
 
8161
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
8162
 
 
8163
# Character class describing NM global symbol codes.
 
8164
symcode='[BCDEGRST]'
 
8165
 
 
8166
# Regexp to match symbols that can be accessed directly from C.
 
8167
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
8168
 
 
8169
# Transform the above into a raw symbol and a C symbol.
 
8170
symxfrm='\1 \2\3 \3'
 
8171
 
 
8172
# Transform an extracted symbol line into a proper C declaration
 
8173
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
8174
 
 
8175
# Transform an extracted symbol line into symbol name and symbol address
 
8176
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
8177
 
 
8178
# Define system-specific variables.
 
8179
case $host_os in
 
8180
aix*)
 
8181
  symcode='[BCDT]'
 
8182
  ;;
 
8183
cygwin* | mingw* | pw32*)
 
8184
  symcode='[ABCDGISTW]'
 
8185
  ;;
 
8186
hpux*) # Its linker distinguishes data from code symbols
 
8187
  if test "$host_cpu" = ia64; then
 
8188
    symcode='[ABCDEGRST]'
 
8189
  fi
 
8190
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
8191
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
8192
  ;;
 
8193
irix* | nonstopux*)
 
8194
  symcode='[BCDEGRST]'
 
8195
  ;;
 
8196
osf*)
 
8197
  symcode='[BCDEGQRST]'
 
8198
  ;;
 
8199
solaris* | sysv5*)
 
8200
  symcode='[BDT]'
 
8201
  ;;
 
8202
sysv4)
 
8203
  symcode='[DFNSTU]'
 
8204
  ;;
 
8205
esac
 
8206
 
 
8207
# Handle CRLF in mingw tool chain
 
8208
opt_cr=
 
8209
case $build_os in
 
8210
mingw*)
 
8211
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
8212
  ;;
 
8213
esac
 
8214
 
 
8215
# If we're using GNU nm, then use its standard symbol codes.
 
8216
case `$NM -V 2>&1` in
 
8217
*GNU* | *'with BFD'*)
 
8218
  symcode='[ABCDGISTW]' ;;
 
8219
esac
 
8220
 
 
8221
# Try without a prefix undercore, then with it.
 
8222
for ac_symprfx in "" "_"; do
 
8223
 
 
8224
  # Write the raw and C identifiers.
 
8225
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
8226
 
 
8227
  # Check to see that the pipe works correctly.
 
8228
  pipe_works=no
 
8229
 
 
8230
  rm -f conftest*
 
8231
  cat > conftest.$ac_ext <<EOF
 
8232
#ifdef __cplusplus
 
8233
extern "C" {
 
8234
#endif
 
8235
char nm_test_var;
 
8236
void nm_test_func(){}
 
8237
#ifdef __cplusplus
 
8238
}
 
8239
#endif
 
8240
int main(){nm_test_var='a';nm_test_func();return(0);}
 
8241
EOF
 
8242
 
 
8243
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8244
  (eval $ac_compile) 2>&5
 
8245
  ac_status=$?
 
8246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8247
  (exit $ac_status); }; then
 
8248
    # Now try to grab the symbols.
 
8249
    nlist=conftest.nm
 
8250
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
8251
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
8252
  ac_status=$?
 
8253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8254
  (exit $ac_status); } && test -s "$nlist"; then
 
8255
      # Try sorting and uniquifying the output.
 
8256
      if sort "$nlist" | uniq > "$nlist"T; then
 
8257
        mv -f "$nlist"T "$nlist"
 
8258
      else
 
8259
        rm -f "$nlist"T
 
8260
      fi
 
8261
 
 
8262
      # Make sure that we snagged all the symbols we need.
 
8263
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
8264
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
8265
          cat <<EOF > conftest.$ac_ext
 
8266
#ifdef __cplusplus
 
8267
extern "C" {
 
8268
#endif
 
8269
 
 
8270
EOF
 
8271
          # Now generate the symbol file.
 
8272
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
8273
 
 
8274
          cat <<EOF >> conftest.$ac_ext
 
8275
#if defined (__STDC__) && __STDC__
 
8276
# define lt_ptr_t void *
 
8277
#else
 
8278
# define lt_ptr_t char *
 
8279
# define const
 
8280
#endif
 
8281
 
 
8282
/* The mapping between symbol names and symbols. */
 
8283
const struct {
 
8284
  const char *name;
 
8285
  lt_ptr_t address;
 
8286
}
 
8287
lt_preloaded_symbols[] =
 
8288
{
 
8289
EOF
 
8290
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
8291
          cat <<\EOF >> conftest.$ac_ext
 
8292
  {0, (lt_ptr_t) 0}
 
8293
};
 
8294
 
 
8295
#ifdef __cplusplus
 
8296
}
 
8297
#endif
 
8298
EOF
 
8299
          # Now try linking the two files.
 
8300
          mv conftest.$ac_objext conftstm.$ac_objext
 
8301
          lt_save_LIBS="$LIBS"
 
8302
          lt_save_CFLAGS="$CFLAGS"
 
8303
          LIBS="conftstm.$ac_objext"
 
8304
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
8305
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8306
  (eval $ac_link) 2>&5
 
8307
  ac_status=$?
 
8308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8309
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
8310
            pipe_works=yes
 
8311
          fi
 
8312
          LIBS="$lt_save_LIBS"
 
8313
          CFLAGS="$lt_save_CFLAGS"
 
8314
        else
 
8315
          echo "cannot find nm_test_func in $nlist" >&5
 
8316
        fi
 
8317
      else
 
8318
        echo "cannot find nm_test_var in $nlist" >&5
 
8319
      fi
 
8320
    else
 
8321
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
8322
    fi
 
8323
  else
 
8324
    echo "$progname: failed program was:" >&5
 
8325
    cat conftest.$ac_ext >&5
 
8326
  fi
 
8327
  rm -f conftest* conftst*
 
8328
 
 
8329
  # Do not use the global_symbol_pipe unless it works.
 
8330
  if test "$pipe_works" = yes; then
 
8331
    break
 
8332
  else
 
8333
    lt_cv_sys_global_symbol_pipe=
 
8334
  fi
 
8335
done
 
8336
 
 
8337
fi
 
8338
 
 
8339
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
8340
  lt_cv_sys_global_symbol_to_cdecl=
 
8341
fi
 
8342
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
8343
  echo "$as_me:$LINENO: result: failed" >&5
 
8344
echo "${ECHO_T}failed" >&6
 
8345
else
 
8346
  echo "$as_me:$LINENO: result: ok" >&5
 
8347
echo "${ECHO_T}ok" >&6
 
8348
fi
 
8349
 
 
8350
echo "$as_me:$LINENO: checking for objdir" >&5
 
8351
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
8352
if test "${lt_cv_objdir+set}" = set; then
 
8353
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8354
else
 
8355
  rm -f .libs 2>/dev/null
 
8356
mkdir .libs 2>/dev/null
 
8357
if test -d .libs; then
 
8358
  lt_cv_objdir=.libs
 
8359
else
 
8360
  # MS-DOS does not allow filenames that begin with a dot.
 
8361
  lt_cv_objdir=_libs
 
8362
fi
 
8363
rmdir .libs 2>/dev/null
 
8364
fi
 
8365
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
8366
echo "${ECHO_T}$lt_cv_objdir" >&6
 
8367
objdir=$lt_cv_objdir
 
8368
 
 
8369
 
 
8370
 
 
8371
 
 
8372
 
 
8373
case $host_os in
 
8374
aix3*)
 
8375
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8376
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8377
  # vanish in a puff of smoke.
 
8378
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8379
    COLLECT_NAMES=
 
8380
    export COLLECT_NAMES
 
8381
  fi
 
8382
  ;;
 
8383
esac
 
8384
 
 
8385
# Sed substitution that helps us do robust quoting.  It backslashifies
 
8386
# metacharacters that are still active within double-quoted strings.
 
8387
Xsed='sed -e s/^X//'
 
8388
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
8389
 
 
8390
# Same as above, but do not quote variable references.
 
8391
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
8392
 
 
8393
# Sed substitution to delay expansion of an escaped shell variable in a
 
8394
# double_quote_subst'ed string.
 
8395
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
8396
 
 
8397
# Sed substitution to avoid accidental globbing in evaled expressions
 
8398
no_glob_subst='s/\*/\\\*/g'
 
8399
 
 
8400
# Constants:
 
8401
rm="rm -f"
 
8402
 
 
8403
# Global variables:
 
8404
default_ofile=libtool
 
8405
can_build_shared=yes
 
8406
 
 
8407
# All known linkers require a `.a' archive for static linking (except M$VC,
 
8408
# which needs '.lib').
 
8409
libext=a
 
8410
ltmain="$ac_aux_dir/ltmain.sh"
 
8411
ofile="$default_ofile"
 
8412
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8413
 
 
8414
if test -n "$ac_tool_prefix"; then
 
8415
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
8416
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
8417
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8418
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8419
if test "${ac_cv_prog_AR+set}" = set; then
 
8420
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8421
else
 
8422
  if test -n "$AR"; then
 
8423
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
8424
else
 
8425
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8426
for as_dir in $PATH
 
8427
do
 
8428
  IFS=$as_save_IFS
 
8429
  test -z "$as_dir" && as_dir=.
 
8430
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8431
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8432
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
8433
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8434
    break 2
 
8435
  fi
 
8436
done
 
8437
done
 
8438
 
 
8439
fi
 
8440
fi
 
8441
AR=$ac_cv_prog_AR
 
8442
if test -n "$AR"; then
 
8443
  echo "$as_me:$LINENO: result: $AR" >&5
 
8444
echo "${ECHO_T}$AR" >&6
 
8445
else
 
8446
  echo "$as_me:$LINENO: result: no" >&5
 
8447
echo "${ECHO_T}no" >&6
 
8448
fi
 
8449
 
 
8450
fi
 
8451
if test -z "$ac_cv_prog_AR"; then
 
8452
  ac_ct_AR=$AR
 
8453
  # Extract the first word of "ar", so it can be a program name with args.
 
8454
set dummy ar; ac_word=$2
 
8455
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8456
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8457
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
8458
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8459
else
 
8460
  if test -n "$ac_ct_AR"; then
 
8461
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
8462
else
 
8463
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8464
for as_dir in $PATH
 
8465
do
 
8466
  IFS=$as_save_IFS
 
8467
  test -z "$as_dir" && as_dir=.
 
8468
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8469
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8470
    ac_cv_prog_ac_ct_AR="ar"
 
8471
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8472
    break 2
 
8473
  fi
 
8474
done
 
8475
done
 
8476
 
 
8477
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
8478
fi
 
8479
fi
 
8480
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
8481
if test -n "$ac_ct_AR"; then
 
8482
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
8483
echo "${ECHO_T}$ac_ct_AR" >&6
 
8484
else
 
8485
  echo "$as_me:$LINENO: result: no" >&5
 
8486
echo "${ECHO_T}no" >&6
 
8487
fi
 
8488
 
 
8489
  AR=$ac_ct_AR
 
8490
else
 
8491
  AR="$ac_cv_prog_AR"
 
8492
fi
 
8493
 
 
8494
if test -n "$ac_tool_prefix"; then
 
8495
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
8496
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
8497
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8498
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8499
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
8500
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8501
else
 
8502
  if test -n "$RANLIB"; then
 
8503
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
8504
else
 
8505
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8506
for as_dir in $PATH
 
8507
do
 
8508
  IFS=$as_save_IFS
 
8509
  test -z "$as_dir" && as_dir=.
 
8510
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8511
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8512
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
8513
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8514
    break 2
 
8515
  fi
 
8516
done
 
8517
done
 
8518
 
 
8519
fi
 
8520
fi
 
8521
RANLIB=$ac_cv_prog_RANLIB
 
8522
if test -n "$RANLIB"; then
 
8523
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
8524
echo "${ECHO_T}$RANLIB" >&6
 
8525
else
 
8526
  echo "$as_me:$LINENO: result: no" >&5
 
8527
echo "${ECHO_T}no" >&6
 
8528
fi
 
8529
 
 
8530
fi
 
8531
if test -z "$ac_cv_prog_RANLIB"; then
 
8532
  ac_ct_RANLIB=$RANLIB
 
8533
  # Extract the first word of "ranlib", so it can be a program name with args.
 
8534
set dummy ranlib; ac_word=$2
 
8535
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8536
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8537
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
8538
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8539
else
 
8540
  if test -n "$ac_ct_RANLIB"; then
 
8541
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
8542
else
 
8543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8544
for as_dir in $PATH
 
8545
do
 
8546
  IFS=$as_save_IFS
 
8547
  test -z "$as_dir" && as_dir=.
 
8548
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8549
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8550
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
8551
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8552
    break 2
 
8553
  fi
 
8554
done
 
8555
done
 
8556
 
 
8557
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
8558
fi
 
8559
fi
 
8560
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
8561
if test -n "$ac_ct_RANLIB"; then
 
8562
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
8563
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
8564
else
 
8565
  echo "$as_me:$LINENO: result: no" >&5
 
8566
echo "${ECHO_T}no" >&6
 
8567
fi
 
8568
 
 
8569
  RANLIB=$ac_ct_RANLIB
 
8570
else
 
8571
  RANLIB="$ac_cv_prog_RANLIB"
 
8572
fi
 
8573
 
 
8574
if test -n "$ac_tool_prefix"; then
 
8575
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
8576
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
8577
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8578
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8579
if test "${ac_cv_prog_STRIP+set}" = set; then
 
8580
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8581
else
 
8582
  if test -n "$STRIP"; then
 
8583
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
8584
else
 
8585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8586
for as_dir in $PATH
 
8587
do
 
8588
  IFS=$as_save_IFS
 
8589
  test -z "$as_dir" && as_dir=.
 
8590
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8591
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8592
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
8593
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8594
    break 2
 
8595
  fi
 
8596
done
 
8597
done
 
8598
 
 
8599
fi
 
8600
fi
 
8601
STRIP=$ac_cv_prog_STRIP
 
8602
if test -n "$STRIP"; then
 
8603
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
8604
echo "${ECHO_T}$STRIP" >&6
 
8605
else
 
8606
  echo "$as_me:$LINENO: result: no" >&5
 
8607
echo "${ECHO_T}no" >&6
 
8608
fi
 
8609
 
 
8610
fi
 
8611
if test -z "$ac_cv_prog_STRIP"; then
 
8612
  ac_ct_STRIP=$STRIP
 
8613
  # Extract the first word of "strip", so it can be a program name with args.
 
8614
set dummy strip; ac_word=$2
 
8615
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8616
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8617
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
8618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8619
else
 
8620
  if test -n "$ac_ct_STRIP"; then
 
8621
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
8622
else
 
8623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8624
for as_dir in $PATH
 
8625
do
 
8626
  IFS=$as_save_IFS
 
8627
  test -z "$as_dir" && as_dir=.
 
8628
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8629
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8630
    ac_cv_prog_ac_ct_STRIP="strip"
 
8631
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8632
    break 2
 
8633
  fi
 
8634
done
 
8635
done
 
8636
 
 
8637
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
8638
fi
 
8639
fi
 
8640
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
8641
if test -n "$ac_ct_STRIP"; then
 
8642
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
8643
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
8644
else
 
8645
  echo "$as_me:$LINENO: result: no" >&5
 
8646
echo "${ECHO_T}no" >&6
 
8647
fi
 
8648
 
 
8649
  STRIP=$ac_ct_STRIP
 
8650
else
 
8651
  STRIP="$ac_cv_prog_STRIP"
 
8652
fi
 
8653
 
 
8654
 
 
8655
old_CC="$CC"
 
8656
old_CFLAGS="$CFLAGS"
 
8657
 
 
8658
# Set sane defaults for various variables
 
8659
test -z "$AR" && AR=ar
 
8660
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
8661
test -z "$AS" && AS=as
 
8662
test -z "$CC" && CC=cc
 
8663
test -z "$LTCC" && LTCC=$CC
 
8664
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8665
test -z "$LD" && LD=ld
 
8666
test -z "$LN_S" && LN_S="ln -s"
 
8667
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8668
test -z "$NM" && NM=nm
 
8669
test -z "$SED" && SED=sed
 
8670
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8671
test -z "$RANLIB" && RANLIB=:
 
8672
test -z "$STRIP" && STRIP=:
 
8673
test -z "$ac_objext" && ac_objext=o
 
8674
 
 
8675
# Determine commands to create old-style static archives.
 
8676
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
8677
old_postinstall_cmds='chmod 644 $oldlib'
 
8678
old_postuninstall_cmds=
 
8679
 
 
8680
if test -n "$RANLIB"; then
 
8681
  case $host_os in
 
8682
  openbsd*)
 
8683
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
8684
    ;;
 
8685
  *)
 
8686
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
8687
    ;;
 
8688
  esac
 
8689
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
8690
fi
 
8691
 
 
8692
# Only perform the check for file, if the check method requires it
 
8693
case $deplibs_check_method in
 
8694
file_magic*)
 
8695
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8696
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
8697
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
8698
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8699
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8700
else
 
8701
  case $MAGIC_CMD in
 
8702
[\\/*] |  ?:[\\/]*)
 
8703
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8704
  ;;
 
8705
*)
 
8706
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8707
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8708
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8709
  for ac_dir in $ac_dummy; do
 
8710
    IFS="$lt_save_ifs"
 
8711
    test -z "$ac_dir" && ac_dir=.
 
8712
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8713
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8714
      if test -n "$file_magic_test_file"; then
 
8715
        case $deplibs_check_method in
 
8716
        "file_magic "*)
 
8717
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
8718
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8719
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8720
            $EGREP "$file_magic_regex" > /dev/null; then
 
8721
            :
 
8722
          else
 
8723
            cat <<EOF 1>&2
 
8724
 
 
8725
*** Warning: the command libtool uses to detect shared libraries,
 
8726
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8727
*** The result is that libtool may fail to recognize shared libraries
 
8728
*** as such.  This will affect the creation of libtool libraries that
 
8729
*** depend on shared libraries, but programs linked with such libtool
 
8730
*** libraries will work regardless of this problem.  Nevertheless, you
 
8731
*** may want to report the problem to your system manager and/or to
 
8732
*** bug-libtool@gnu.org
 
8733
 
 
8734
EOF
 
8735
          fi ;;
 
8736
        esac
 
8737
      fi
 
8738
      break
 
8739
    fi
 
8740
  done
 
8741
  IFS="$lt_save_ifs"
 
8742
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8743
  ;;
 
8744
esac
 
8745
fi
 
8746
 
 
8747
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8748
if test -n "$MAGIC_CMD"; then
 
8749
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8750
echo "${ECHO_T}$MAGIC_CMD" >&6
 
8751
else
 
8752
  echo "$as_me:$LINENO: result: no" >&5
 
8753
echo "${ECHO_T}no" >&6
 
8754
fi
 
8755
 
 
8756
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8757
  if test -n "$ac_tool_prefix"; then
 
8758
    echo "$as_me:$LINENO: checking for file" >&5
 
8759
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
8760
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8761
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8762
else
 
8763
  case $MAGIC_CMD in
 
8764
[\\/*] |  ?:[\\/]*)
 
8765
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8766
  ;;
 
8767
*)
 
8768
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8769
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8770
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8771
  for ac_dir in $ac_dummy; do
 
8772
    IFS="$lt_save_ifs"
 
8773
    test -z "$ac_dir" && ac_dir=.
 
8774
    if test -f $ac_dir/file; then
 
8775
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8776
      if test -n "$file_magic_test_file"; then
 
8777
        case $deplibs_check_method in
 
8778
        "file_magic "*)
 
8779
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
8780
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8781
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8782
            $EGREP "$file_magic_regex" > /dev/null; then
 
8783
            :
 
8784
          else
 
8785
            cat <<EOF 1>&2
 
8786
 
 
8787
*** Warning: the command libtool uses to detect shared libraries,
 
8788
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8789
*** The result is that libtool may fail to recognize shared libraries
 
8790
*** as such.  This will affect the creation of libtool libraries that
 
8791
*** depend on shared libraries, but programs linked with such libtool
 
8792
*** libraries will work regardless of this problem.  Nevertheless, you
 
8793
*** may want to report the problem to your system manager and/or to
 
8794
*** bug-libtool@gnu.org
 
8795
 
 
8796
EOF
 
8797
          fi ;;
 
8798
        esac
 
8799
      fi
 
8800
      break
 
8801
    fi
 
8802
  done
 
8803
  IFS="$lt_save_ifs"
 
8804
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8805
  ;;
 
8806
esac
 
8807
fi
 
8808
 
 
8809
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8810
if test -n "$MAGIC_CMD"; then
 
8811
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8812
echo "${ECHO_T}$MAGIC_CMD" >&6
 
8813
else
 
8814
  echo "$as_me:$LINENO: result: no" >&5
 
8815
echo "${ECHO_T}no" >&6
 
8816
fi
 
8817
 
 
8818
  else
 
8819
    MAGIC_CMD=:
 
8820
  fi
 
8821
fi
 
8822
 
 
8823
  fi
 
8824
  ;;
 
8825
esac
 
8826
 
 
8827
enable_dlopen=yes
 
8828
enable_win32_dll=no
 
8829
 
 
8830
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
8831
if test "${enable_libtool_lock+set}" = set; then
 
8832
  enableval="$enable_libtool_lock"
 
8833
 
 
8834
fi;
 
8835
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
8836
 
 
8837
 
 
8838
# Check whether --with-pic or --without-pic was given.
 
8839
if test "${with_pic+set}" = set; then
 
8840
  withval="$with_pic"
 
8841
  pic_mode="$withval"
 
8842
else
 
8843
  pic_mode=default
 
8844
fi;
 
8845
test -z "$pic_mode" && pic_mode=default
 
8846
 
 
8847
# Use C for the default configuration in the libtool script
 
8848
tagname=
 
8849
lt_save_CC="$CC"
 
8850
ac_ext=c
 
8851
ac_cpp='$CPP $CPPFLAGS'
 
8852
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8853
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8854
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8855
 
 
8856
 
 
8857
# Source file extension for C test sources.
 
8858
ac_ext=c
 
8859
 
 
8860
# Object file extension for compiled C test sources.
 
8861
objext=o
 
8862
objext=$objext
 
8863
 
 
8864
# Code to be used in simple compile tests
 
8865
lt_simple_compile_test_code="int some_variable = 0;\n"
 
8866
 
 
8867
# Code to be used in simple link tests
 
8868
lt_simple_link_test_code='int main(){return(0);}\n'
 
8869
 
 
8870
 
 
8871
# If no C compiler was specified, use CC.
 
8872
LTCC=${LTCC-"$CC"}
 
8873
 
 
8874
# Allow CC to be a program name with arguments.
 
8875
compiler=$CC
 
8876
 
 
8877
 
 
8878
#
 
8879
# Check for any special shared library compilation flags.
 
8880
#
 
8881
lt_prog_cc_shlib=
 
8882
if test "$GCC" = no; then
 
8883
  case $host_os in
 
8884
  sco3.2v5*)
 
8885
    lt_prog_cc_shlib='-belf'
 
8886
    ;;
 
8887
  esac
 
8888
fi
 
8889
if test -n "$lt_prog_cc_shlib"; then
 
8890
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
8891
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
8892
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
8893
  else
 
8894
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
8895
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
8896
    lt_cv_prog_cc_can_build_shared=no
 
8897
  fi
 
8898
fi
 
8899
 
 
8900
 
 
8901
#
 
8902
# Check to make sure the static flag actually works.
 
8903
#
 
8904
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
8905
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
8906
if test "${lt_prog_compiler_static_works+set}" = set; then
 
8907
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8908
else
 
8909
  lt_prog_compiler_static_works=no
 
8910
   save_LDFLAGS="$LDFLAGS"
 
8911
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
8912
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
8913
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8914
     # The compiler can only warn and ignore the option if not recognized
 
8915
     # So say no if there are warnings
 
8916
     if test -s conftest.err; then
 
8917
       # Append any errors to the config.log.
 
8918
       cat conftest.err 1>&5
 
8919
     else
 
8920
       lt_prog_compiler_static_works=yes
 
8921
     fi
 
8922
   fi
 
8923
   $rm conftest*
 
8924
   LDFLAGS="$save_LDFLAGS"
 
8925
 
 
8926
fi
 
8927
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
8928
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
8929
 
 
8930
if test x"$lt_prog_compiler_static_works" = xyes; then
 
8931
    :
 
8932
else
 
8933
    lt_prog_compiler_static=
 
8934
fi
 
8935
 
 
8936
 
 
8937
 
 
8938
## CAVEAT EMPTOR:
 
8939
## There is no encapsulation within the following macros, do not change
 
8940
## the running order or otherwise move them around unless you know exactly
 
8941
## what you are doing...
 
8942
 
 
8943
lt_prog_compiler_no_builtin_flag=
 
8944
 
 
8945
if test "$GCC" = yes; then
 
8946
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
8947
 
 
8948
 
 
8949
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8950
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
8951
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
8952
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8953
else
 
8954
  lt_cv_prog_compiler_rtti_exceptions=no
 
8955
  ac_outfile=conftest.$ac_objext
 
8956
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8957
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8958
   # Insert the option either (1) after the last *FLAGS variable, or
 
8959
   # (2) before a word containing "conftest.", or (3) at the end.
 
8960
   # Note that $ac_compile itself does not contain backslashes and begins
 
8961
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8962
   # The option is referenced via a variable to avoid confusing sed.
 
8963
   lt_compile=`echo "$ac_compile" | $SED \
 
8964
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8965
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8966
   -e 's:$: $lt_compiler_flag:'`
 
8967
   (eval echo "\"\$as_me:8967: $lt_compile\"" >&5)
 
8968
   (eval "$lt_compile" 2>conftest.err)
 
8969
   ac_status=$?
 
8970
   cat conftest.err >&5
 
8971
   echo "$as_me:8971: \$? = $ac_status" >&5
 
8972
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8973
     # The compiler can only warn and ignore the option if not recognized
 
8974
     # So say no if there are warnings
 
8975
     if test ! -s conftest.err; then
 
8976
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8977
     fi
 
8978
   fi
 
8979
   $rm conftest*
 
8980
 
 
8981
fi
 
8982
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8983
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
8984
 
 
8985
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8986
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8987
else
 
8988
    :
 
8989
fi
 
8990
 
 
8991
fi
 
8992
 
 
8993
lt_prog_compiler_wl=
 
8994
lt_prog_compiler_pic=
 
8995
lt_prog_compiler_static=
 
8996
 
 
8997
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
8998
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
8999
 
 
9000
  if test "$GCC" = yes; then
 
9001
    lt_prog_compiler_wl='-Wl,'
 
9002
    lt_prog_compiler_static='-static'
 
9003
 
 
9004
    case $host_os in
 
9005
      aix*)
 
9006
      # All AIX code is PIC.
 
9007
      if test "$host_cpu" = ia64; then
 
9008
        # AIX 5 now supports IA64 processor
 
9009
        lt_prog_compiler_static='-Bstatic'
 
9010
      fi
 
9011
      ;;
 
9012
 
 
9013
    amigaos*)
 
9014
      # FIXME: we need at least 68020 code to build shared libraries, but
 
9015
      # adding the `-m68020' flag to GCC prevents building anything better,
 
9016
      # like `-m68040'.
 
9017
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
9018
      ;;
 
9019
 
 
9020
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
9021
      # PIC is the default for these OSes.
 
9022
      ;;
 
9023
 
 
9024
    mingw* | pw32* | os2*)
 
9025
      # This hack is so that the source file can tell whether it is being
 
9026
      # built for inclusion in a dll (and should export symbols for example).
 
9027
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9028
      ;;
 
9029
 
 
9030
    darwin* | rhapsody*)
 
9031
      # PIC is the default on this platform
 
9032
      # Common symbols not allowed in MH_DYLIB files
 
9033
      lt_prog_compiler_pic='-fno-common'
 
9034
      ;;
 
9035
 
 
9036
    msdosdjgpp*)
 
9037
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
9038
      # on systems that don't support them.
 
9039
      lt_prog_compiler_can_build_shared=no
 
9040
      enable_shared=no
 
9041
      ;;
 
9042
 
 
9043
    sysv4*MP*)
 
9044
      if test -d /usr/nec; then
 
9045
        lt_prog_compiler_pic=-Kconform_pic
 
9046
      fi
 
9047
      ;;
 
9048
 
 
9049
    hpux*)
 
9050
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
9051
      # not for PA HP-UX.
 
9052
      case "$host_cpu" in
 
9053
      hppa*64*|ia64*)
 
9054
        # +Z the default
 
9055
        ;;
 
9056
      *)
 
9057
        lt_prog_compiler_pic='-fPIC'
 
9058
        ;;
 
9059
      esac
 
9060
      ;;
 
9061
 
 
9062
    *)
 
9063
      lt_prog_compiler_pic='-fPIC'
 
9064
      ;;
 
9065
    esac
 
9066
  else
 
9067
    # PORTME Check for flag to pass linker flags through the system compiler.
 
9068
    case $host_os in
 
9069
    aix*)
 
9070
      lt_prog_compiler_wl='-Wl,'
 
9071
      if test "$host_cpu" = ia64; then
 
9072
        # AIX 5 now supports IA64 processor
 
9073
        lt_prog_compiler_static='-Bstatic'
 
9074
      else
 
9075
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
9076
      fi
 
9077
      ;;
 
9078
 
 
9079
    mingw* | pw32* | os2*)
 
9080
      # This hack is so that the source file can tell whether it is being
 
9081
      # built for inclusion in a dll (and should export symbols for example).
 
9082
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9083
      ;;
 
9084
 
 
9085
    hpux9* | hpux10* | hpux11*)
 
9086
      lt_prog_compiler_wl='-Wl,'
 
9087
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
9088
      # not for PA HP-UX.
 
9089
      case "$host_cpu" in
 
9090
      hppa*64*|ia64*)
 
9091
        # +Z the default
 
9092
        ;;
 
9093
      *)
 
9094
        lt_prog_compiler_pic='+Z'
 
9095
        ;;
 
9096
      esac
 
9097
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
9098
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
9099
      ;;
 
9100
 
 
9101
    irix5* | irix6* | nonstopux*)
 
9102
      lt_prog_compiler_wl='-Wl,'
 
9103
      # PIC (with -KPIC) is the default.
 
9104
      lt_prog_compiler_static='-non_shared'
 
9105
      ;;
 
9106
 
 
9107
    newsos6)
 
9108
      lt_prog_compiler_pic='-KPIC'
 
9109
      lt_prog_compiler_static='-Bstatic'
 
9110
      ;;
 
9111
 
 
9112
    linux*)
 
9113
      case $CC in
 
9114
      icc* | ecc*)
 
9115
        lt_prog_compiler_wl='-Wl,'
 
9116
        lt_prog_compiler_pic='-KPIC'
 
9117
        lt_prog_compiler_static='-static'
 
9118
        ;;
 
9119
      ccc*)
 
9120
        lt_prog_compiler_wl='-Wl,'
 
9121
        # All Alpha code is PIC.
 
9122
        lt_prog_compiler_static='-non_shared'
 
9123
        ;;
 
9124
      esac
 
9125
      ;;
 
9126
 
 
9127
    osf3* | osf4* | osf5*)
 
9128
      lt_prog_compiler_wl='-Wl,'
 
9129
      # All OSF/1 code is PIC.
 
9130
      lt_prog_compiler_static='-non_shared'
 
9131
      ;;
 
9132
 
 
9133
    sco3.2v5*)
 
9134
      lt_prog_compiler_pic='-Kpic'
 
9135
      lt_prog_compiler_static='-dn'
 
9136
      ;;
 
9137
 
 
9138
    solaris*)
 
9139
      lt_prog_compiler_wl='-Wl,'
 
9140
      lt_prog_compiler_pic='-KPIC'
 
9141
      lt_prog_compiler_static='-Bstatic'
 
9142
      ;;
 
9143
 
 
9144
    sunos4*)
 
9145
      lt_prog_compiler_wl='-Qoption ld '
 
9146
      lt_prog_compiler_pic='-PIC'
 
9147
      lt_prog_compiler_static='-Bstatic'
 
9148
      ;;
 
9149
 
 
9150
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9151
      lt_prog_compiler_wl='-Wl,'
 
9152
      lt_prog_compiler_pic='-KPIC'
 
9153
      lt_prog_compiler_static='-Bstatic'
 
9154
      ;;
 
9155
 
 
9156
    sysv4*MP*)
 
9157
      if test -d /usr/nec ;then
 
9158
        lt_prog_compiler_pic='-Kconform_pic'
 
9159
        lt_prog_compiler_static='-Bstatic'
 
9160
      fi
 
9161
      ;;
 
9162
 
 
9163
    uts4*)
 
9164
      lt_prog_compiler_pic='-pic'
 
9165
      lt_prog_compiler_static='-Bstatic'
 
9166
      ;;
 
9167
 
 
9168
    *)
 
9169
      lt_prog_compiler_can_build_shared=no
 
9170
      ;;
 
9171
    esac
 
9172
  fi
 
9173
 
 
9174
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
9175
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
9176
 
 
9177
#
 
9178
# Check to make sure the PIC flag actually works.
 
9179
#
 
9180
if test -n "$lt_prog_compiler_pic"; then
 
9181
 
 
9182
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
9183
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
9184
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
9185
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9186
else
 
9187
  lt_prog_compiler_pic_works=no
 
9188
  ac_outfile=conftest.$ac_objext
 
9189
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9190
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
9191
   # Insert the option either (1) after the last *FLAGS variable, or
 
9192
   # (2) before a word containing "conftest.", or (3) at the end.
 
9193
   # Note that $ac_compile itself does not contain backslashes and begins
 
9194
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9195
   # The option is referenced via a variable to avoid confusing sed.
 
9196
   lt_compile=`echo "$ac_compile" | $SED \
 
9197
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9198
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9199
   -e 's:$: $lt_compiler_flag:'`
 
9200
   (eval echo "\"\$as_me:9200: $lt_compile\"" >&5)
 
9201
   (eval "$lt_compile" 2>conftest.err)
 
9202
   ac_status=$?
 
9203
   cat conftest.err >&5
 
9204
   echo "$as_me:9204: \$? = $ac_status" >&5
 
9205
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9206
     # The compiler can only warn and ignore the option if not recognized
 
9207
     # So say no if there are warnings
 
9208
     if test ! -s conftest.err; then
 
9209
       lt_prog_compiler_pic_works=yes
 
9210
     fi
 
9211
   fi
 
9212
   $rm conftest*
 
9213
 
 
9214
fi
 
9215
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
9216
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
9217
 
 
9218
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
9219
    case $lt_prog_compiler_pic in
 
9220
     "" | " "*) ;;
 
9221
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
9222
     esac
 
9223
else
 
9224
    lt_prog_compiler_pic=
 
9225
     lt_prog_compiler_can_build_shared=no
 
9226
fi
 
9227
 
 
9228
fi
 
9229
case "$host_os" in
 
9230
  # For platforms which do not support PIC, -DPIC is meaningless:
 
9231
  *djgpp*)
 
9232
    lt_prog_compiler_pic=
 
9233
    ;;
 
9234
  *)
 
9235
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
9236
    ;;
 
9237
esac
 
9238
 
 
9239
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9240
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
9241
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
9242
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9243
else
 
9244
  lt_cv_prog_compiler_c_o=no
 
9245
   $rm -r conftest 2>/dev/null
 
9246
   mkdir conftest
 
9247
   cd conftest
 
9248
   mkdir out
 
9249
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9250
 
 
9251
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
9252
   # that will create temporary files in the current directory regardless of
 
9253
   # the output directory.  Thus, making CWD read-only will cause this test
 
9254
   # to fail, enabling locking or at least warning the user not to do parallel
 
9255
   # builds.
 
9256
   chmod -w .
 
9257
 
 
9258
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9259
   # Insert the option either (1) after the last *FLAGS variable, or
 
9260
   # (2) before a word containing "conftest.", or (3) at the end.
 
9261
   # Note that $ac_compile itself does not contain backslashes and begins
 
9262
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9263
   lt_compile=`echo "$ac_compile" | $SED \
 
9264
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9265
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9266
   -e 's:$: $lt_compiler_flag:'`
 
9267
   (eval echo "\"\$as_me:9267: $lt_compile\"" >&5)
 
9268
   (eval "$lt_compile" 2>out/conftest.err)
 
9269
   ac_status=$?
 
9270
   cat out/conftest.err >&5
 
9271
   echo "$as_me:9271: \$? = $ac_status" >&5
 
9272
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9273
   then
 
9274
     # The compiler can only warn and ignore the option if not recognized
 
9275
     # So say no if there are warnings
 
9276
     if test ! -s out/conftest.err; then
 
9277
       lt_cv_prog_compiler_c_o=yes
 
9278
     fi
 
9279
   fi
 
9280
   chmod u+w .
 
9281
   $rm conftest* out/*
 
9282
   rmdir out
 
9283
   cd ..
 
9284
   rmdir conftest
 
9285
   $rm conftest*
 
9286
 
 
9287
fi
 
9288
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
9289
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
9290
 
 
9291
 
 
9292
hard_links="nottested"
 
9293
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
9294
  # do not overwrite the value of need_locks provided by the user
 
9295
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
9296
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
9297
  hard_links=yes
 
9298
  $rm conftest*
 
9299
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9300
  touch conftest.a
 
9301
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9302
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9303
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
9304
echo "${ECHO_T}$hard_links" >&6
 
9305
  if test "$hard_links" = no; then
 
9306
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9307
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9308
    need_locks=warn
 
9309
  fi
 
9310
else
 
9311
  need_locks=no
 
9312
fi
 
9313
 
 
9314
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9315
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
9316
 
 
9317
  runpath_var=
 
9318
  allow_undefined_flag=
 
9319
  enable_shared_with_static_runtimes=no
 
9320
  archive_cmds=
 
9321
  archive_expsym_cmds=
 
9322
  old_archive_From_new_cmds=
 
9323
  old_archive_from_expsyms_cmds=
 
9324
  export_dynamic_flag_spec=
 
9325
  whole_archive_flag_spec=
 
9326
  thread_safe_flag_spec=
 
9327
  hardcode_libdir_flag_spec=
 
9328
  hardcode_libdir_flag_spec_ld=
 
9329
  hardcode_libdir_separator=
 
9330
  hardcode_direct=no
 
9331
  hardcode_minus_L=no
 
9332
  hardcode_shlibpath_var=unsupported
 
9333
  link_all_deplibs=unknown
 
9334
  hardcode_automatic=no
 
9335
  module_cmds=
 
9336
  module_expsym_cmds=
 
9337
  always_export_symbols=no
 
9338
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9339
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9340
  # included in the symbol list
 
9341
  include_expsyms=
 
9342
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9343
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
9344
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
9345
  # as well as any symbol that contains `d'.
 
9346
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
9347
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
9348
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
9349
  # the symbol is explicitly referenced.  Since portable code cannot
 
9350
  # rely on this symbol name, it's probably fine to never include it in
 
9351
  # preloaded symbol tables.
 
9352
  extract_expsyms_cmds=
 
9353
 
 
9354
  case $host_os in
 
9355
  cygwin* | mingw* | pw32*)
 
9356
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
9357
    # When not using gcc, we currently assume that we are using
 
9358
    # Microsoft Visual C++.
 
9359
    if test "$GCC" != yes; then
 
9360
      with_gnu_ld=no
 
9361
    fi
 
9362
    ;;
 
9363
  openbsd*)
 
9364
    with_gnu_ld=no
 
9365
    ;;
 
9366
  esac
 
9367
 
 
9368
  ld_shlibs=yes
 
9369
  if test "$with_gnu_ld" = yes; then
 
9370
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9371
    wlarc='${wl}'
 
9372
 
 
9373
    # See if GNU ld supports shared libraries.
 
9374
    case $host_os in
 
9375
    aix3* | aix4* | aix5*)
 
9376
      # On AIX/PPC, the GNU linker is very broken
 
9377
      if test "$host_cpu" != ia64; then
 
9378
        ld_shlibs=no
 
9379
        cat <<EOF 1>&2
 
9380
 
 
9381
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
9382
*** to be unable to reliably create shared libraries on AIX.
 
9383
*** Therefore, libtool is disabling shared libraries support.  If you
 
9384
*** really care for shared libraries, you may want to modify your PATH
 
9385
*** so that a non-GNU linker is found, and then restart.
 
9386
 
 
9387
EOF
 
9388
      fi
 
9389
      ;;
 
9390
 
 
9391
    amigaos*)
 
9392
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
9393
      hardcode_libdir_flag_spec='-L$libdir'
 
9394
      hardcode_minus_L=yes
 
9395
 
 
9396
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
9397
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
9398
      # to version 4, is to share data among multiple programs linked
 
9399
      # with the same dynamic library.  Since this doesn't match the
 
9400
      # behavior of shared libraries on other platforms, we can't use
 
9401
      # them.
 
9402
      ld_shlibs=no
 
9403
      ;;
 
9404
 
 
9405
    beos*)
 
9406
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9407
        allow_undefined_flag=unsupported
 
9408
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9409
        # support --undefined.  This deserves some investigation.  FIXME
 
9410
        archive_cmds='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
9411
      else
 
9412
        ld_shlibs=no
 
9413
      fi
 
9414
      ;;
 
9415
 
 
9416
    cygwin* | mingw* | pw32*)
 
9417
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9418
      # as there is no search path for DLLs.
 
9419
      hardcode_libdir_flag_spec='-L$libdir'
 
9420
      allow_undefined_flag=no
 
9421
      always_export_symbols=no
 
9422
      enable_shared_with_static_runtimes=yes
 
9423
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
9424
 
 
9425
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
9426
        archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
9427
        # If the export-symbols file already is a .def file (1st line
 
9428
        # is EXPORTS), use it as is; otherwise, prepend...
 
9429
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9430
          cp $export_symbols $output_objdir/$soname.def;
 
9431
        else
 
9432
          echo EXPORTS > $output_objdir/$soname.def;
 
9433
          cat $export_symbols >> $output_objdir/$soname.def;
 
9434
        fi~
 
9435
        $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
9436
      else
 
9437
        ld_shlibs=no
 
9438
      fi
 
9439
      ;;
 
9440
 
 
9441
    netbsd*)
 
9442
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9443
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9444
        wlarc=
 
9445
      else
 
9446
        archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
9447
        archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9448
      fi
 
9449
      ;;
 
9450
 
 
9451
    solaris* | sysv5*)
 
9452
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
9453
        ld_shlibs=no
 
9454
        cat <<EOF 1>&2
 
9455
 
 
9456
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9457
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9458
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9459
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9460
*** your PATH or compiler configuration so that the native linker is
 
9461
*** used, and then restart.
 
9462
 
 
9463
EOF
 
9464
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9465
        archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
9466
        archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9467
      else
 
9468
        ld_shlibs=no
 
9469
      fi
 
9470
      ;;
 
9471
 
 
9472
    sunos4*)
 
9473
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9474
      wlarc=
 
9475
      hardcode_direct=yes
 
9476
      hardcode_shlibpath_var=no
 
9477
      ;;
 
9478
 
 
9479
    *)
 
9480
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9481
        archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
9482
        archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9483
      else
 
9484
        ld_shlibs=no
 
9485
      fi
 
9486
      ;;
 
9487
    esac
 
9488
 
 
9489
    if test "$ld_shlibs" = yes; then
 
9490
      runpath_var=LD_RUN_PATH
 
9491
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
9492
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
9493
      # ancient GNU ld didn't support --whole-archive et. al.
 
9494
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
9495
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9496
      else
 
9497
        whole_archive_flag_spec=
 
9498
      fi
 
9499
    fi
 
9500
  else
 
9501
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9502
    case $host_os in
 
9503
    aix3*)
 
9504
      allow_undefined_flag=unsupported
 
9505
      always_export_symbols=yes
 
9506
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
9507
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9508
      # are no directories specified by -L.
 
9509
      hardcode_minus_L=yes
 
9510
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
9511
        # Neither direct hardcoding nor static linking is supported with a
 
9512
        # broken collect2.
 
9513
        hardcode_direct=unsupported
 
9514
      fi
 
9515
      ;;
 
9516
 
 
9517
    aix4* | aix5*)
 
9518
      if test "$host_cpu" = ia64; then
 
9519
        # On IA64, the linker does run time linking by default, so we don't
 
9520
        # have to do anything special.
 
9521
        aix_use_runtimelinking=no
 
9522
        exp_sym_flag='-Bexport'
 
9523
        no_entry_flag=""
 
9524
      else
 
9525
        # If we're using GNU nm, then we don't want the "-C" option.
 
9526
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9527
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
9528
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
9529
        else
 
9530
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
9531
        fi
 
9532
 
 
9533
        # KDE requires run time linking.  Make it the default.
 
9534
        aix_use_runtimelinking=yes
 
9535
        exp_sym_flag='-bexport'
 
9536
        no_entry_flag='-bnoentry'
 
9537
      fi
 
9538
 
 
9539
      # When large executables or shared objects are built, AIX ld can
 
9540
      # have problems creating the table of contents.  If linking a library
 
9541
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9542
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9543
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9544
 
 
9545
      archive_cmds=''
 
9546
      hardcode_direct=yes
 
9547
      hardcode_libdir_separator=':'
 
9548
      link_all_deplibs=yes
 
9549
 
 
9550
      if test "$GCC" = yes; then
 
9551
        case $host_os in aix4.012|aix4.012.*)
 
9552
        # We only want to do this on AIX 4.2 and lower, the check
 
9553
        # below for broken collect2 doesn't work under 4.3+
 
9554
          collect2name=`${CC} -print-prog-name=collect2`
 
9555
          if test -f "$collect2name" && \
 
9556
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9557
          then
 
9558
          # We have reworked collect2
 
9559
          hardcode_direct=yes
 
9560
          else
 
9561
          # We have old collect2
 
9562
          hardcode_direct=unsupported
 
9563
          # It fails to find uninstalled libraries when the uninstalled
 
9564
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9565
          # to unsupported forces relinking
 
9566
          hardcode_minus_L=yes
 
9567
          hardcode_libdir_flag_spec='-L$libdir'
 
9568
          hardcode_libdir_separator=
 
9569
          fi
 
9570
        esac
 
9571
        shared_flag='-shared'
 
9572
      else
 
9573
        # not using gcc
 
9574
        if test "$host_cpu" = ia64; then
 
9575
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9576
        # chokes on -Wl,-G. The following line is correct:
 
9577
          shared_flag='-G'
 
9578
        else
 
9579
        if test "$aix_use_runtimelinking" = yes; then
 
9580
            shared_flag='-qmkshrobj ${wl}-G'
 
9581
          else
 
9582
            shared_flag='-qmkshrobj'
 
9583
        fi
 
9584
        fi
 
9585
      fi
 
9586
 
 
9587
      # Let the compiler handle the export list.
 
9588
      always_export_symbols=no
 
9589
      if test "$aix_use_runtimelinking" = yes; then
 
9590
        # Warning - without using the other runtime loading flags (-brtl),
 
9591
        # -berok will link without error, but may produce a broken library.
 
9592
        allow_undefined_flag='-berok'
 
9593
       # Determine the default libpath from the value encoded in an empty executable.
 
9594
        cat >conftest.$ac_ext <<_ACEOF
 
9595
/* confdefs.h.  */
 
9596
_ACEOF
 
9597
cat confdefs.h >>conftest.$ac_ext
 
9598
cat >>conftest.$ac_ext <<_ACEOF
 
9599
/* end confdefs.h.  */
 
9600
 
 
9601
int
 
9602
main ()
 
9603
{
 
9604
 
 
9605
  ;
 
9606
  return 0;
 
9607
}
 
9608
_ACEOF
 
9609
rm -f conftest.$ac_objext conftest$ac_exeext
 
9610
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9611
  (eval $ac_link) 2>conftest.er1
 
9612
  ac_status=$?
 
9613
  grep -v '^ *+' conftest.er1 >conftest.err
 
9614
  rm -f conftest.er1
 
9615
  cat conftest.err >&5
 
9616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9617
  (exit $ac_status); } &&
 
9618
         { ac_try='test -z "$ac_c_werror_flag"
 
9619
                         || test ! -s conftest.err'
 
9620
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9621
  (eval $ac_try) 2>&5
 
9622
  ac_status=$?
 
9623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9624
  (exit $ac_status); }; } &&
 
9625
         { ac_try='test -s conftest$ac_exeext'
 
9626
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9627
  (eval $ac_try) 2>&5
 
9628
  ac_status=$?
 
9629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9630
  (exit $ac_status); }; }; then
 
9631
 
 
9632
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9633
}'`
 
9634
# Check for a 64-bit object if we didn't find anything.
 
9635
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9636
}'`; fi
 
9637
else
 
9638
  echo "$as_me: failed program was:" >&5
 
9639
sed 's/^/| /' conftest.$ac_ext >&5
 
9640
 
 
9641
fi
 
9642
rm -f conftest.err conftest.$ac_objext \
 
9643
      conftest$ac_exeext conftest.$ac_ext
 
9644
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9645
 
 
9646
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9647
        archive_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
 
9648
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9649
       else
 
9650
        if test "$host_cpu" = ia64; then
 
9651
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9652
          allow_undefined_flag="-z nodefs"
 
9653
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
9654
        else
 
9655
         # Determine the default libpath from the value encoded in an empty executable.
 
9656
         cat >conftest.$ac_ext <<_ACEOF
 
9657
/* confdefs.h.  */
 
9658
_ACEOF
 
9659
cat confdefs.h >>conftest.$ac_ext
 
9660
cat >>conftest.$ac_ext <<_ACEOF
 
9661
/* end confdefs.h.  */
 
9662
 
 
9663
int
 
9664
main ()
 
9665
{
 
9666
 
 
9667
  ;
 
9668
  return 0;
 
9669
}
 
9670
_ACEOF
 
9671
rm -f conftest.$ac_objext conftest$ac_exeext
 
9672
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9673
  (eval $ac_link) 2>conftest.er1
 
9674
  ac_status=$?
 
9675
  grep -v '^ *+' conftest.er1 >conftest.err
 
9676
  rm -f conftest.er1
 
9677
  cat conftest.err >&5
 
9678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9679
  (exit $ac_status); } &&
 
9680
         { ac_try='test -z "$ac_c_werror_flag"
 
9681
                         || test ! -s conftest.err'
 
9682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9683
  (eval $ac_try) 2>&5
 
9684
  ac_status=$?
 
9685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9686
  (exit $ac_status); }; } &&
 
9687
         { ac_try='test -s conftest$ac_exeext'
 
9688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9689
  (eval $ac_try) 2>&5
 
9690
  ac_status=$?
 
9691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9692
  (exit $ac_status); }; }; then
 
9693
 
 
9694
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9695
}'`
 
9696
# Check for a 64-bit object if we didn't find anything.
 
9697
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9698
}'`; fi
 
9699
else
 
9700
  echo "$as_me: failed program was:" >&5
 
9701
sed 's/^/| /' conftest.$ac_ext >&5
 
9702
 
 
9703
fi
 
9704
rm -f conftest.err conftest.$ac_objext \
 
9705
      conftest$ac_exeext conftest.$ac_ext
 
9706
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9707
 
 
9708
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9709
          # Warning - without using the other run time loading flags,
 
9710
          # -berok will link without error, but may produce a broken library.
 
9711
          no_undefined_flag=' ${wl}-bernotok'
 
9712
          allow_undefined_flag=' ${wl}-berok'
 
9713
          # -bexpall does not export symbols beginning with underscore (_)
 
9714
          always_export_symbols=yes
 
9715
          # Exported symbols can be pulled into shared objects from archives
 
9716
          whole_archive_flag_spec=' '
 
9717
          archive_cmds_need_lc=yes
 
9718
          # This is similar to how AIX traditionally builds it's shared libraries.
 
9719
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
9720
        fi
 
9721
      fi
 
9722
      ;;
 
9723
 
 
9724
    amigaos*)
 
9725
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
9726
      hardcode_libdir_flag_spec='-L$libdir'
 
9727
      hardcode_minus_L=yes
 
9728
      # see comment about different semantics on the GNU ld section
 
9729
      ld_shlibs=no
 
9730
      ;;
 
9731
 
 
9732
    bsdi4*)
 
9733
      export_dynamic_flag_spec=-rdynamic
 
9734
      ;;
 
9735
 
 
9736
    cygwin* | mingw* | pw32*)
 
9737
      # When not using gcc, we currently assume that we are using
 
9738
      # Microsoft Visual C++.
 
9739
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9740
      # no search path for DLLs.
 
9741
      hardcode_libdir_flag_spec=' '
 
9742
      allow_undefined_flag=no
 
9743
      # Tell ltmain to make .lib files, not .a files.
 
9744
      libext=lib
 
9745
      # Tell ltmain to make .dll files, not .so files.
 
9746
      shrext=".dll"
 
9747
      # FIXME: Setting linknames here is a bad hack.
 
9748
      archive_cmds='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9749
      # The linker will automatically build a .lib file if we build a DLL.
 
9750
      old_archive_From_new_cmds='true'
 
9751
      # FIXME: Should let the user specify the lib program.
 
9752
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
9753
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
9754
      enable_shared_with_static_runtimes=yes
 
9755
      ;;
 
9756
 
 
9757
    darwin* | rhapsody*)
 
9758
    if test "$GXX" = yes ; then
 
9759
      archive_cmds_need_lc=no
 
9760
      case "$host_os" in
 
9761
      rhapsody* | darwin1.[012])
 
9762
        allow_undefined_flag='-undefined suppress'
 
9763
        ;;
 
9764
      *) # Darwin 1.3 on
 
9765
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
 
9766
        ;;
 
9767
      esac
 
9768
        lt_int_apple_cc_single_mod=no
 
9769
        output_verbose_link_cmd='echo'
 
9770
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
9771
          lt_int_apple_cc_single_mod=yes
 
9772
        fi
 
9773
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9774
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
9775
        else
 
9776
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
 
9777
      fi
 
9778
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
9779
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9780
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9781
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9782
        else
 
9783
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9784
        fi
 
9785
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9786
      hardcode_direct=no
 
9787
      hardcode_automatic=yes
 
9788
      hardcode_shlibpath_var=unsupported
 
9789
      whole_archive_flag_spec='-all_load $convenience'
 
9790
      link_all_deplibs=yes
 
9791
    else
 
9792
      ld_shlibs=no
 
9793
    fi
 
9794
      ;;
 
9795
 
 
9796
    dgux*)
 
9797
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9798
      hardcode_libdir_flag_spec='-L$libdir'
 
9799
      hardcode_shlibpath_var=no
 
9800
      ;;
 
9801
 
 
9802
    freebsd1*)
 
9803
      ld_shlibs=no
 
9804
      ;;
 
9805
 
 
9806
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9807
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9808
    # does not break anything, and helps significantly (at the cost of a little
 
9809
    # extra space).
 
9810
    freebsd2.2*)
 
9811
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9812
      hardcode_libdir_flag_spec='-R$libdir'
 
9813
      hardcode_direct=yes
 
9814
      hardcode_shlibpath_var=no
 
9815
      ;;
 
9816
 
 
9817
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9818
    freebsd2*)
 
9819
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9820
      hardcode_direct=yes
 
9821
      hardcode_minus_L=yes
 
9822
      hardcode_shlibpath_var=no
 
9823
      ;;
 
9824
 
 
9825
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9826
    freebsd*)
 
9827
      archive_cmds='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
 
9828
      hardcode_libdir_flag_spec='-R$libdir'
 
9829
      hardcode_direct=yes
 
9830
      hardcode_shlibpath_var=no
 
9831
      ;;
 
9832
 
 
9833
    hpux9*)
 
9834
      if test "$GCC" = yes; then
 
9835
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9836
      else
 
9837
        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9838
      fi
 
9839
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9840
      hardcode_libdir_separator=:
 
9841
      hardcode_direct=yes
 
9842
 
 
9843
      # hardcode_minus_L: Not really in the search PATH,
 
9844
      # but as the default location of the library.
 
9845
      hardcode_minus_L=yes
 
9846
      export_dynamic_flag_spec='${wl}-E'
 
9847
      ;;
 
9848
 
 
9849
    hpux10* | hpux11*)
 
9850
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9851
        case "$host_cpu" in
 
9852
        hppa*64*|ia64*)
 
9853
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
9854
          ;;
 
9855
        *)
 
9856
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
 
9857
          ;;
 
9858
        esac
 
9859
      else
 
9860
        case "$host_cpu" in
 
9861
        hppa*64*|ia64*)
 
9862
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9863
          ;;
 
9864
        *)
 
9865
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9866
          ;;
 
9867
        esac
 
9868
      fi
 
9869
      if test "$with_gnu_ld" = no; then
 
9870
        case "$host_cpu" in
 
9871
        hppa*64*)
 
9872
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9873
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
9874
          hardcode_libdir_separator=:
 
9875
          hardcode_direct=no
 
9876
          hardcode_shlibpath_var=no
 
9877
          ;;
 
9878
        ia64*)
 
9879
          hardcode_libdir_flag_spec='-L$libdir'
 
9880
          hardcode_direct=no
 
9881
          hardcode_shlibpath_var=no
 
9882
 
 
9883
          # hardcode_minus_L: Not really in the search PATH,
 
9884
          # but as the default location of the library.
 
9885
          hardcode_minus_L=yes
 
9886
          ;;
 
9887
        *)
 
9888
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9889
          hardcode_libdir_separator=:
 
9890
          hardcode_direct=yes
 
9891
          export_dynamic_flag_spec='${wl}-E'
 
9892
 
 
9893
          # hardcode_minus_L: Not really in the search PATH,
 
9894
          # but as the default location of the library.
 
9895
          hardcode_minus_L=yes
 
9896
          ;;
 
9897
        esac
 
9898
      fi
 
9899
      ;;
 
9900
 
 
9901
    irix5* | irix6* | nonstopux*)
 
9902
      if test "$GCC" = yes; then
 
9903
        archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9904
      else
 
9905
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
9906
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9907
      fi
 
9908
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9909
      hardcode_libdir_separator=:
 
9910
      link_all_deplibs=yes
 
9911
      ;;
 
9912
 
 
9913
    netbsd*)
 
9914
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9915
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9916
      else
 
9917
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9918
      fi
 
9919
      hardcode_libdir_flag_spec='-R$libdir'
 
9920
      hardcode_direct=yes
 
9921
      hardcode_shlibpath_var=no
 
9922
      ;;
 
9923
 
 
9924
    newsos6)
 
9925
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9926
      hardcode_direct=yes
 
9927
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9928
      hardcode_libdir_separator=:
 
9929
      hardcode_shlibpath_var=no
 
9930
      ;;
 
9931
 
 
9932
    openbsd*)
 
9933
      hardcode_direct=yes
 
9934
      hardcode_shlibpath_var=no
 
9935
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9936
        archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
9937
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9938
        export_dynamic_flag_spec='${wl}-E'
 
9939
      else
 
9940
       case $host_os in
 
9941
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9942
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9943
           hardcode_libdir_flag_spec='-R$libdir'
 
9944
           ;;
 
9945
         *)
 
9946
           archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
9947
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9948
           ;;
 
9949
       esac
 
9950
      fi
 
9951
      ;;
 
9952
 
 
9953
    os2*)
 
9954
      hardcode_libdir_flag_spec='-L$libdir'
 
9955
      hardcode_minus_L=yes
 
9956
      allow_undefined_flag=unsupported
 
9957
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
 
9958
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9959
      ;;
 
9960
 
 
9961
    osf3*)
 
9962
      if test "$GCC" = yes; then
 
9963
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9964
        archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9965
      else
 
9966
        allow_undefined_flag=' -expect_unresolved \*'
 
9967
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
9968
      fi
 
9969
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9970
      hardcode_libdir_separator=:
 
9971
      ;;
 
9972
 
 
9973
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9974
      if test "$GCC" = yes; then
 
9975
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9976
        archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9977
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9978
      else
 
9979
        allow_undefined_flag=' -expect_unresolved \*'
 
9980
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
9981
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
9982
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
9983
 
 
9984
        # Both c and cxx compiler support -rpath directly
 
9985
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9986
      fi
 
9987
      hardcode_libdir_separator=:
 
9988
      ;;
 
9989
 
 
9990
    sco3.2v5*)
 
9991
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9992
      hardcode_shlibpath_var=no
 
9993
      export_dynamic_flag_spec='${wl}-Bexport'
 
9994
      runpath_var=LD_RUN_PATH
 
9995
      hardcode_runpath_var=yes
 
9996
      ;;
 
9997
 
 
9998
    solaris*)
 
9999
      no_undefined_flag=' -z text'
 
10000
      if test "$GCC" = yes; then
 
10001
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
10002
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10003
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
 
10004
      else
 
10005
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10006
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10007
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
10008
      fi
 
10009
      hardcode_libdir_flag_spec='-R$libdir'
 
10010
      hardcode_shlibpath_var=no
 
10011
      case $host_os in
 
10012
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10013
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10014
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
10015
      esac
 
10016
      link_all_deplibs=yes
 
10017
      ;;
 
10018
 
 
10019
    sunos4*)
 
10020
      if test "x$host_vendor" = xsequent; then
 
10021
        # Use $CC to link under sequent, because it throws in some extra .o
 
10022
        # files that make .init and .fini sections work.
 
10023
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
 
10024
      else
 
10025
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
10026
      fi
 
10027
      hardcode_libdir_flag_spec='-L$libdir'
 
10028
      hardcode_direct=yes
 
10029
      hardcode_minus_L=yes
 
10030
      hardcode_shlibpath_var=no
 
10031
      ;;
 
10032
 
 
10033
    sysv4)
 
10034
      case $host_vendor in
 
10035
        sni)
 
10036
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10037
          hardcode_direct=yes # is this really true???
 
10038
        ;;
 
10039
        siemens)
 
10040
          ## LD is ld it makes a PLAMLIB
 
10041
          ## CC just makes a GrossModule.
 
10042
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10043
          reload_cmds='$CC -r -o $output$reload_objs'
 
10044
          hardcode_direct=no
 
10045
        ;;
 
10046
        motorola)
 
10047
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10048
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
10049
        ;;
 
10050
      esac
 
10051
      runpath_var='LD_RUN_PATH'
 
10052
      hardcode_shlibpath_var=no
 
10053
      ;;
 
10054
 
 
10055
    sysv4.3*)
 
10056
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10057
      hardcode_shlibpath_var=no
 
10058
      export_dynamic_flag_spec='-Bexport'
 
10059
      ;;
 
10060
 
 
10061
    sysv4*MP*)
 
10062
      if test -d /usr/nec; then
 
10063
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10064
        hardcode_shlibpath_var=no
 
10065
        runpath_var=LD_RUN_PATH
 
10066
        hardcode_runpath_var=yes
 
10067
        ld_shlibs=yes
 
10068
      fi
 
10069
      ;;
 
10070
 
 
10071
    sysv4.2uw2*)
 
10072
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10073
      hardcode_direct=yes
 
10074
      hardcode_minus_L=no
 
10075
      hardcode_shlibpath_var=no
 
10076
      hardcode_runpath_var=yes
 
10077
      runpath_var=LD_RUN_PATH
 
10078
      ;;
 
10079
 
 
10080
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
10081
      no_undefined_flag='${wl}-z ${wl}text'
 
10082
      if test "$GCC" = yes; then
 
10083
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
10084
      else
 
10085
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
10086
      fi
 
10087
      runpath_var='LD_RUN_PATH'
 
10088
      hardcode_shlibpath_var=no
 
10089
      ;;
 
10090
 
 
10091
    sysv5*)
 
10092
      no_undefined_flag=' -z text'
 
10093
      # $CC -shared without GNU ld will not create a library from C++
 
10094
      # object files and a static libstdc++, better avoid it by now
 
10095
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10096
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10097
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
10098
      hardcode_libdir_flag_spec=
 
10099
      hardcode_shlibpath_var=no
 
10100
      runpath_var='LD_RUN_PATH'
 
10101
      ;;
 
10102
 
 
10103
    uts4*)
 
10104
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10105
      hardcode_libdir_flag_spec='-L$libdir'
 
10106
      hardcode_shlibpath_var=no
 
10107
      ;;
 
10108
 
 
10109
    *)
 
10110
      ld_shlibs=no
 
10111
      ;;
 
10112
    esac
 
10113
  fi
 
10114
 
 
10115
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
10116
echo "${ECHO_T}$ld_shlibs" >&6
 
10117
test "$ld_shlibs" = no && can_build_shared=no
 
10118
 
 
10119
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10120
if test "$GCC" = yes; then
 
10121
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10122
fi
 
10123
 
 
10124
#
 
10125
# Do we need to explicitly link libc?
 
10126
#
 
10127
case "x$archive_cmds_need_lc" in
 
10128
x|xyes)
 
10129
  # Assume -lc should be added
 
10130
  archive_cmds_need_lc=yes
 
10131
 
 
10132
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10133
    case $archive_cmds in
 
10134
    *'~'*)
 
10135
      # FIXME: we may have to deal with multi-command sequences.
 
10136
      ;;
 
10137
    '$CC '*)
 
10138
      # Test whether the compiler implicitly links with -lc since on some
 
10139
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10140
      # to ld, don't add -lc before -lgcc.
 
10141
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
10142
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
10143
      $rm conftest*
 
10144
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10145
 
 
10146
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10147
  (eval $ac_compile) 2>&5
 
10148
  ac_status=$?
 
10149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10150
  (exit $ac_status); } 2>conftest.err; then
 
10151
        soname=conftest
 
10152
        lib=conftest
 
10153
        libobjs=conftest.$ac_objext
 
10154
        deplibs=
 
10155
        wl=$lt_prog_compiler_wl
 
10156
        compiler_flags=-v
 
10157
        linker_flags=-v
 
10158
        verstring=
 
10159
        output_objdir=.
 
10160
        libname=conftest
 
10161
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
10162
        allow_undefined_flag=
 
10163
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
10164
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10165
  ac_status=$?
 
10166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10167
  (exit $ac_status); }
 
10168
        then
 
10169
          archive_cmds_need_lc=no
 
10170
        else
 
10171
          archive_cmds_need_lc=yes
 
10172
        fi
 
10173
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
10174
      else
 
10175
        cat conftest.err 1>&5
 
10176
      fi
 
10177
      $rm conftest*
 
10178
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
10179
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
10180
      ;;
 
10181
    esac
 
10182
  fi
 
10183
  ;;
 
10184
esac
 
10185
 
 
10186
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
10187
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
10188
library_names_spec=
 
10189
libname_spec='lib$name'
 
10190
soname_spec=
 
10191
shrext=".so"
 
10192
postinstall_cmds=
 
10193
postuninstall_cmds=
 
10194
finish_cmds=
 
10195
finish_eval=
 
10196
shlibpath_var=
 
10197
shlibpath_overrides_runpath=unknown
 
10198
version_type=none
 
10199
dynamic_linker="$host_os ld.so"
 
10200
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10201
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10202
need_lib_prefix=unknown
 
10203
hardcode_into_libs=no
 
10204
 
 
10205
# when you set need_version to no, make sure it does not cause -set_version
 
10206
# flags to be left without arguments
 
10207
need_version=unknown
 
10208
 
 
10209
case $host_os in
 
10210
aix3*)
 
10211
  version_type=linux
 
10212
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10213
  shlibpath_var=LIBPATH
 
10214
 
 
10215
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10216
  soname_spec='${libname}${release}${shared_ext}$major'
 
10217
  ;;
 
10218
 
 
10219
aix4* | aix5*)
 
10220
  version_type=linux
 
10221
  need_lib_prefix=no
 
10222
  need_version=no
 
10223
  hardcode_into_libs=yes
 
10224
  if test "$host_cpu" = ia64; then
 
10225
    # AIX 5 supports IA64
 
10226
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10227
    shlibpath_var=LD_LIBRARY_PATH
 
10228
  else
 
10229
    # With GCC up to 2.95.x, collect2 would create an import file
 
10230
    # for dependence libraries.  The import file would start with
 
10231
    # the line `#! .'.  This would cause the generated library to
 
10232
    # depend on `.', always an invalid library.  This was fixed in
 
10233
    # development snapshots of GCC prior to 3.0.
 
10234
    case $host_os in
 
10235
      aix4 | aix4.[01] | aix4.[01].*)
 
10236
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10237
           echo ' yes '
 
10238
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
10239
        :
 
10240
      else
 
10241
        can_build_shared=no
 
10242
      fi
 
10243
      ;;
 
10244
    esac
 
10245
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10246
    # soname into executable. Probably we can add versioning support to
 
10247
    # collect2, so additional links can be useful in future.
 
10248
    if test "$aix_use_runtimelinking" = yes; then
 
10249
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10250
      # instead of lib<name>.a to let people know that these are not
 
10251
      # typical AIX shared libraries.
 
10252
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10253
    else
 
10254
      # We preserve .a as extension for shared libraries through AIX4.2
 
10255
      # and later when we are not doing run time linking.
 
10256
      library_names_spec='${libname}${release}.a $libname.a'
 
10257
      soname_spec='${libname}${release}${shared_ext}$major'
 
10258
    fi
 
10259
    shlibpath_var=LIBPATH
 
10260
  fi
 
10261
  ;;
 
10262
 
 
10263
amigaos*)
 
10264
  library_names_spec='$libname.ixlibrary $libname.a'
 
10265
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10266
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
 
10267
  ;;
 
10268
 
 
10269
beos*)
 
10270
  library_names_spec='${libname}${shared_ext}'
 
10271
  dynamic_linker="$host_os ld.so"
 
10272
  shlibpath_var=LIBRARY_PATH
 
10273
  ;;
 
10274
 
 
10275
bsdi4*)
 
10276
  version_type=linux
 
10277
  need_version=no
 
10278
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10279
  soname_spec='${libname}${release}${shared_ext}$major'
 
10280
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10281
  shlibpath_var=LD_LIBRARY_PATH
 
10282
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10283
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10284
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10285
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10286
  # libtool to hard-code these into programs
 
10287
  ;;
 
10288
 
 
10289
cygwin* | mingw* | pw32*)
 
10290
  version_type=windows
 
10291
  shrext=".dll"
 
10292
  need_version=no
 
10293
  need_lib_prefix=no
 
10294
 
 
10295
  case $GCC,$host_os in
 
10296
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
10297
    library_names_spec='$libname.dll.a'
 
10298
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10299
    postinstall_cmds='base_file=`basename \${file}`~
 
10300
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
10301
      dldir=$destdir/`dirname \$dlpath`~
 
10302
      test -d \$dldir || mkdir -p \$dldir~
 
10303
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10304
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10305
      dlpath=$dir/\$dldll~
 
10306
       $rm \$dlpath'
 
10307
    shlibpath_overrides_runpath=yes
 
10308
 
 
10309
    case $host_os in
 
10310
    cygwin*)
 
10311
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10312
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10313
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
10314
      ;;
 
10315
    mingw*)
 
10316
      # MinGW DLLs use traditional 'lib' prefix
 
10317
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10318
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10319
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
10320
        # It is most probably a Windows format PATH printed by
 
10321
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
10322
        # path with ; separators, and with drive letters. We can handle the
 
10323
        # drive letters (cygwin fileutils understands them), so leave them,
 
10324
        # especially as we might pass files found there to a mingw objdump,
 
10325
        # which wouldn't understand a cygwinified path. Ahh.
 
10326
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10327
      else
 
10328
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10329
      fi
 
10330
      ;;
 
10331
    pw32*)
 
10332
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10333
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
10334
      ;;
 
10335
    esac
 
10336
    ;;
 
10337
 
 
10338
  *)
 
10339
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10340
    ;;
 
10341
  esac
 
10342
  dynamic_linker='Win32 ld.exe'
 
10343
  # FIXME: first we should search . and the directory the executable is in
 
10344
  shlibpath_var=PATH
 
10345
  ;;
 
10346
 
 
10347
darwin* | rhapsody*)
 
10348
  dynamic_linker="$host_os dyld"
 
10349
  version_type=darwin
 
10350
  need_lib_prefix=no
 
10351
  need_version=no
 
10352
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10353
  soname_spec='${libname}${release}${major}$shared_ext'
 
10354
  shlibpath_overrides_runpath=yes
 
10355
  shlibpath_var=DYLD_LIBRARY_PATH
 
10356
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
10357
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
10358
  if test "$GCC" = yes; then
 
10359
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
10360
  else
 
10361
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
10362
  fi
 
10363
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10364
  ;;
 
10365
 
 
10366
dgux*)
 
10367
  version_type=linux
 
10368
  need_lib_prefix=no
 
10369
  need_version=no
 
10370
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10371
  soname_spec='${libname}${release}${shared_ext}$major'
 
10372
  shlibpath_var=LD_LIBRARY_PATH
 
10373
  ;;
 
10374
 
 
10375
freebsd1*)
 
10376
  dynamic_linker=no
 
10377
  ;;
 
10378
 
 
10379
freebsd*-gnu*)
 
10380
  version_type=linux
 
10381
  need_lib_prefix=no
 
10382
  need_version=no
 
10383
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10384
  soname_spec='${libname}${release}${shared_ext}$major'
 
10385
  shlibpath_var=LD_LIBRARY_PATH
 
10386
  shlibpath_overrides_runpath=no
 
10387
  hardcode_into_libs=yes
 
10388
  dynamic_linker='GNU ld.so'
 
10389
  ;;
 
10390
 
 
10391
freebsd*)
 
10392
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
10393
  version_type=freebsd-$objformat
 
10394
  case $version_type in
 
10395
    freebsd-elf*)
 
10396
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10397
      need_version=no
 
10398
      need_lib_prefix=no
 
10399
      ;;
 
10400
    freebsd-*)
 
10401
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10402
      need_version=yes
 
10403
      ;;
 
10404
  esac
 
10405
  shlibpath_var=LD_LIBRARY_PATH
 
10406
  case $host_os in
 
10407
  freebsd2*)
 
10408
    shlibpath_overrides_runpath=yes
 
10409
    ;;
 
10410
  freebsd3.01* | freebsdelf3.01*)
 
10411
    shlibpath_overrides_runpath=yes
 
10412
    hardcode_into_libs=yes
 
10413
    ;;
 
10414
  *) # from 3.2 on
 
10415
    shlibpath_overrides_runpath=no
 
10416
    hardcode_into_libs=yes
 
10417
    ;;
 
10418
  esac
 
10419
  ;;
 
10420
 
 
10421
gnu*)
 
10422
  version_type=linux
 
10423
  need_lib_prefix=no
 
10424
  need_version=no
 
10425
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10426
  soname_spec='${libname}${release}${shared_ext}$major'
 
10427
  shlibpath_var=LD_LIBRARY_PATH
 
10428
  hardcode_into_libs=yes
 
10429
  ;;
 
10430
 
 
10431
hpux9* | hpux10* | hpux11*)
 
10432
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10433
  # link against other versions.
 
10434
  version_type=sunos
 
10435
  need_lib_prefix=no
 
10436
  need_version=no
 
10437
  case "$host_cpu" in
 
10438
  ia64*)
 
10439
    shrext='.so'
 
10440
    hardcode_into_libs=yes
 
10441
    dynamic_linker="$host_os dld.so"
 
10442
    shlibpath_var=LD_LIBRARY_PATH
 
10443
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10444
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10445
    soname_spec='${libname}${release}${shared_ext}$major'
 
10446
    if test "X$HPUX_IA64_MODE" = X32; then
 
10447
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10448
    else
 
10449
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10450
    fi
 
10451
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10452
    ;;
 
10453
   hppa*64*)
 
10454
     shrext='.sl'
 
10455
     hardcode_into_libs=yes
 
10456
     dynamic_linker="$host_os dld.sl"
 
10457
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10458
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10459
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10460
     soname_spec='${libname}${release}${shared_ext}$major'
 
10461
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10462
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10463
     ;;
 
10464
   *)
 
10465
    shrext='.sl'
 
10466
    dynamic_linker="$host_os dld.sl"
 
10467
    shlibpath_var=SHLIB_PATH
 
10468
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10469
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10470
    soname_spec='${libname}${release}${shared_ext}$major'
 
10471
    ;;
 
10472
  esac
 
10473
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
10474
  postinstall_cmds='chmod 555 $lib'
 
10475
  ;;
 
10476
 
 
10477
irix5* | irix6* | nonstopux*)
 
10478
  case $host_os in
 
10479
    nonstopux*) version_type=nonstopux ;;
 
10480
    *)
 
10481
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10482
                version_type=linux
 
10483
        else
 
10484
                version_type=irix
 
10485
        fi ;;
 
10486
  esac
 
10487
  need_lib_prefix=no
 
10488
  need_version=no
 
10489
  soname_spec='${libname}${release}${shared_ext}$major'
 
10490
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10491
  case $host_os in
 
10492
  irix5* | nonstopux*)
 
10493
    libsuff= shlibsuff=
 
10494
    ;;
 
10495
  *)
 
10496
    case $LD in # libtool.m4 will add one of these switches to LD
 
10497
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10498
      libsuff= shlibsuff= libmagic=32-bit;;
 
10499
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10500
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10501
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10502
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10503
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10504
    esac
 
10505
    ;;
 
10506
  esac
 
10507
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10508
  shlibpath_overrides_runpath=no
 
10509
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10510
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10511
  hardcode_into_libs=yes
 
10512
  ;;
 
10513
 
 
10514
# No shared lib support for Linux oldld, aout, or coff.
 
10515
linux*oldld* | linux*aout* | linux*coff*)
 
10516
  dynamic_linker=no
 
10517
  ;;
 
10518
 
 
10519
# This must be Linux ELF.
 
10520
linux*)
 
10521
  version_type=linux
 
10522
  need_lib_prefix=no
 
10523
  need_version=no
 
10524
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10525
  soname_spec='${libname}${release}${shared_ext}$major'
 
10526
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10527
  libsuff=
 
10528
  if test "x$LINUX_64_MODE" = x64; then
 
10529
    # Some platforms are per default 64-bit, so there's no /lib64
 
10530
    if test -d /lib64; then
 
10531
      libsuff=64
 
10532
    fi
 
10533
  fi
 
10534
  shlibpath_var=LD_LIBRARY_PATH
 
10535
  shlibpath_overrides_runpath=no
 
10536
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
10537
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
10538
  # This implies no fast_install, which is unacceptable.
 
10539
  # Some rework will be needed to allow for fast_install
 
10540
  # before this can be enabled.
 
10541
  hardcode_into_libs=yes
 
10542
 
 
10543
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10544
  # powerpc, because MkLinux only supported shared libraries with the
 
10545
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10546
  # most powerpc-linux boxes support dynamic linking these days and
 
10547
  # people can always --disable-shared, the test was removed, and we
 
10548
  # assume the GNU/Linux dynamic linker is in use.
 
10549
  dynamic_linker='GNU/Linux ld.so'
 
10550
  ;;
 
10551
 
 
10552
netbsd*)
 
10553
  version_type=sunos
 
10554
  need_lib_prefix=no
 
10555
  need_version=no
 
10556
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10557
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10558
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10559
    dynamic_linker='NetBSD (a.out) ld.so'
 
10560
  else
 
10561
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
10562
    soname_spec='${libname}${release}${shared_ext}$major'
 
10563
    dynamic_linker='NetBSD ld.elf_so'
 
10564
  fi
 
10565
  shlibpath_var=LD_LIBRARY_PATH
 
10566
  shlibpath_overrides_runpath=yes
 
10567
  hardcode_into_libs=yes
 
10568
  ;;
 
10569
 
 
10570
newsos6)
 
10571
  version_type=linux
 
10572
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10573
  shlibpath_var=LD_LIBRARY_PATH
 
10574
  shlibpath_overrides_runpath=yes
 
10575
  ;;
 
10576
 
 
10577
nto-qnx*)
 
10578
  version_type=linux
 
10579
  need_lib_prefix=no
 
10580
  need_version=no
 
10581
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10582
  soname_spec='${libname}${release}${shared_ext}$major'
 
10583
  shlibpath_var=LD_LIBRARY_PATH
 
10584
  shlibpath_overrides_runpath=yes
 
10585
  ;;
 
10586
 
 
10587
openbsd*)
 
10588
  version_type=sunos
 
10589
  need_lib_prefix=no
 
10590
  need_version=no
 
10591
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10592
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10593
  shlibpath_var=LD_LIBRARY_PATH
 
10594
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10595
    case $host_os in
 
10596
      openbsd2.[89] | openbsd2.[89].*)
 
10597
        shlibpath_overrides_runpath=no
 
10598
        ;;
 
10599
      *)
 
10600
        shlibpath_overrides_runpath=yes
 
10601
        ;;
 
10602
      esac
 
10603
  else
 
10604
    shlibpath_overrides_runpath=yes
 
10605
  fi
 
10606
  ;;
 
10607
 
 
10608
os2*)
 
10609
  libname_spec='$name'
 
10610
  shrext=".dll"
 
10611
  need_lib_prefix=no
 
10612
  library_names_spec='$libname${shared_ext} $libname.a'
 
10613
  dynamic_linker='OS/2 ld.exe'
 
10614
  shlibpath_var=LIBPATH
 
10615
  ;;
 
10616
 
 
10617
osf3* | osf4* | osf5*)
 
10618
  version_type=osf
 
10619
  need_lib_prefix=no
 
10620
  need_version=no
 
10621
  soname_spec='${libname}${release}${shared_ext}$major'
 
10622
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10623
  shlibpath_var=LD_LIBRARY_PATH
 
10624
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10625
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10626
  ;;
 
10627
 
 
10628
sco3.2v5*)
 
10629
  version_type=osf
 
10630
  soname_spec='${libname}${release}${shared_ext}$major'
 
10631
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10632
  shlibpath_var=LD_LIBRARY_PATH
 
10633
  ;;
 
10634
 
 
10635
solaris*)
 
10636
  version_type=linux
 
10637
  need_lib_prefix=no
 
10638
  need_version=no
 
10639
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10640
  soname_spec='${libname}${release}${shared_ext}$major'
 
10641
  shlibpath_var=LD_LIBRARY_PATH
 
10642
  shlibpath_overrides_runpath=yes
 
10643
  hardcode_into_libs=yes
 
10644
  # ldd complains unless libraries are executable
 
10645
  postinstall_cmds='chmod +x $lib'
 
10646
  ;;
 
10647
 
 
10648
sunos4*)
 
10649
  version_type=sunos
 
10650
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10651
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10652
  shlibpath_var=LD_LIBRARY_PATH
 
10653
  shlibpath_overrides_runpath=yes
 
10654
  if test "$with_gnu_ld" = yes; then
 
10655
    need_lib_prefix=no
 
10656
  fi
 
10657
  need_version=yes
 
10658
  ;;
 
10659
 
 
10660
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10661
  version_type=linux
 
10662
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10663
  soname_spec='${libname}${release}${shared_ext}$major'
 
10664
  shlibpath_var=LD_LIBRARY_PATH
 
10665
  case $host_vendor in
 
10666
    sni)
 
10667
      shlibpath_overrides_runpath=no
 
10668
      need_lib_prefix=no
 
10669
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10670
      runpath_var=LD_RUN_PATH
 
10671
      ;;
 
10672
    siemens)
 
10673
      need_lib_prefix=no
 
10674
      ;;
 
10675
    motorola)
 
10676
      need_lib_prefix=no
 
10677
      need_version=no
 
10678
      shlibpath_overrides_runpath=no
 
10679
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10680
      ;;
 
10681
  esac
 
10682
  ;;
 
10683
 
 
10684
sysv4*MP*)
 
10685
  if test -d /usr/nec ;then
 
10686
    version_type=linux
 
10687
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10688
    soname_spec='$libname${shared_ext}.$major'
 
10689
    shlibpath_var=LD_LIBRARY_PATH
 
10690
  fi
 
10691
  ;;
 
10692
 
 
10693
uts4*)
 
10694
  version_type=linux
 
10695
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10696
  soname_spec='${libname}${release}${shared_ext}$major'
 
10697
  shlibpath_var=LD_LIBRARY_PATH
 
10698
  ;;
 
10699
 
 
10700
*)
 
10701
  dynamic_linker=no
 
10702
  ;;
 
10703
esac
 
10704
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10705
echo "${ECHO_T}$dynamic_linker" >&6
 
10706
test "$dynamic_linker" = no && can_build_shared=no
 
10707
 
 
10708
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10709
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
10710
hardcode_action=
 
10711
if test -n "$hardcode_libdir_flag_spec" || \
 
10712
   test -n "$runpath_var " || \
 
10713
   test "X$hardcode_automatic"="Xyes" ; then
 
10714
 
 
10715
  # We can hardcode non-existant directories.
 
10716
  if test "$hardcode_direct" != no &&
 
10717
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10718
     # have to relink, otherwise we might link with an installed library
 
10719
     # when we should be linking with a yet-to-be-installed one
 
10720
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10721
     test "$hardcode_minus_L" != no; then
 
10722
    # Linking always hardcodes the temporary library directory.
 
10723
    hardcode_action=relink
 
10724
  else
 
10725
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10726
    hardcode_action=immediate
 
10727
  fi
 
10728
else
 
10729
  # We cannot hardcode anything, or else we can only hardcode existing
 
10730
  # directories.
 
10731
  hardcode_action=unsupported
 
10732
fi
 
10733
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
10734
echo "${ECHO_T}$hardcode_action" >&6
 
10735
 
 
10736
if test "$hardcode_action" = relink; then
 
10737
  # Fast installation is not supported
 
10738
  enable_fast_install=no
 
10739
elif test "$shlibpath_overrides_runpath" = yes ||
 
10740
     test "$enable_shared" = no; then
 
10741
  # Fast installation is not necessary
 
10742
  enable_fast_install=needless
 
10743
fi
 
10744
 
 
10745
striplib=
 
10746
old_striplib=
 
10747
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
10748
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
10749
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
10750
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10751
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10752
  echo "$as_me:$LINENO: result: yes" >&5
 
10753
echo "${ECHO_T}yes" >&6
 
10754
else
 
10755
# FIXME - insert some real tests, host_os isn't really good enough
 
10756
  case $host_os in
 
10757
   darwin*)
 
10758
       if test -n "$STRIP" ; then
 
10759
         striplib="$STRIP -x"
 
10760
         echo "$as_me:$LINENO: result: yes" >&5
 
10761
echo "${ECHO_T}yes" >&6
 
10762
       else
 
10763
  echo "$as_me:$LINENO: result: no" >&5
 
10764
echo "${ECHO_T}no" >&6
 
10765
fi
 
10766
       ;;
 
10767
   *)
 
10768
  echo "$as_me:$LINENO: result: no" >&5
 
10769
echo "${ECHO_T}no" >&6
 
10770
    ;;
 
10771
  esac
 
10772
fi
 
10773
 
 
10774
if test "x$enable_dlopen" != xyes; then
 
10775
  enable_dlopen=unknown
 
10776
  enable_dlopen_self=unknown
 
10777
  enable_dlopen_self_static=unknown
 
10778
else
 
10779
  lt_cv_dlopen=no
 
10780
  lt_cv_dlopen_libs=
 
10781
 
 
10782
  case $host_os in
 
10783
  beos*)
 
10784
    lt_cv_dlopen="load_add_on"
 
10785
    lt_cv_dlopen_libs=
 
10786
    lt_cv_dlopen_self=yes
 
10787
    ;;
 
10788
 
 
10789
  mingw* | pw32*)
 
10790
    lt_cv_dlopen="LoadLibrary"
 
10791
    lt_cv_dlopen_libs=
 
10792
   ;;
 
10793
 
 
10794
  cygwin*)
 
10795
    lt_cv_dlopen="dlopen"
 
10796
    lt_cv_dlopen_libs=
 
10797
   ;;
 
10798
 
 
10799
  darwin*)
 
10800
  # if libdl is installed we need to link against it
 
10801
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10802
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
10803
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10804
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10805
else
 
10806
  ac_check_lib_save_LIBS=$LIBS
 
10807
LIBS="-ldl  $LIBS"
 
10808
cat >conftest.$ac_ext <<_ACEOF
 
10809
/* confdefs.h.  */
 
10810
_ACEOF
 
10811
cat confdefs.h >>conftest.$ac_ext
 
10812
cat >>conftest.$ac_ext <<_ACEOF
 
10813
/* end confdefs.h.  */
 
10814
 
 
10815
/* Override any gcc2 internal prototype to avoid an error.  */
 
10816
#ifdef __cplusplus
 
10817
extern "C"
 
10818
#endif
 
10819
/* We use char because int might match the return type of a gcc2
 
10820
   builtin and then its argument prototype would still apply.  */
 
10821
char dlopen ();
 
10822
int
 
10823
main ()
 
10824
{
 
10825
dlopen ();
 
10826
  ;
 
10827
  return 0;
 
10828
}
 
10829
_ACEOF
 
10830
rm -f conftest.$ac_objext conftest$ac_exeext
 
10831
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10832
  (eval $ac_link) 2>conftest.er1
 
10833
  ac_status=$?
 
10834
  grep -v '^ *+' conftest.er1 >conftest.err
 
10835
  rm -f conftest.er1
 
10836
  cat conftest.err >&5
 
10837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10838
  (exit $ac_status); } &&
 
10839
         { ac_try='test -z "$ac_c_werror_flag"
 
10840
                         || test ! -s conftest.err'
 
10841
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10842
  (eval $ac_try) 2>&5
 
10843
  ac_status=$?
 
10844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10845
  (exit $ac_status); }; } &&
 
10846
         { ac_try='test -s conftest$ac_exeext'
 
10847
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10848
  (eval $ac_try) 2>&5
 
10849
  ac_status=$?
 
10850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10851
  (exit $ac_status); }; }; then
 
10852
  ac_cv_lib_dl_dlopen=yes
 
10853
else
 
10854
  echo "$as_me: failed program was:" >&5
 
10855
sed 's/^/| /' conftest.$ac_ext >&5
 
10856
 
 
10857
ac_cv_lib_dl_dlopen=no
 
10858
fi
 
10859
rm -f conftest.err conftest.$ac_objext \
 
10860
      conftest$ac_exeext conftest.$ac_ext
 
10861
LIBS=$ac_check_lib_save_LIBS
 
10862
fi
 
10863
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10864
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
10865
if test $ac_cv_lib_dl_dlopen = yes; then
 
10866
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10867
else
 
10868
 
 
10869
    lt_cv_dlopen="dyld"
 
10870
    lt_cv_dlopen_libs=
 
10871
    lt_cv_dlopen_self=yes
 
10872
 
 
10873
fi
 
10874
 
 
10875
   ;;
 
10876
 
 
10877
  *)
 
10878
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
10879
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
10880
if test "${ac_cv_func_shl_load+set}" = set; then
 
10881
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10882
else
 
10883
  cat >conftest.$ac_ext <<_ACEOF
 
10884
/* confdefs.h.  */
 
10885
_ACEOF
 
10886
cat confdefs.h >>conftest.$ac_ext
 
10887
cat >>conftest.$ac_ext <<_ACEOF
 
10888
/* end confdefs.h.  */
 
10889
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10890
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10891
#define shl_load innocuous_shl_load
 
10892
 
 
10893
/* System header to define __stub macros and hopefully few prototypes,
 
10894
    which can conflict with char shl_load (); below.
 
10895
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10896
    <limits.h> exists even on freestanding compilers.  */
 
10897
 
 
10898
#ifdef __STDC__
 
10899
# include <limits.h>
 
10900
#else
 
10901
# include <assert.h>
 
10902
#endif
 
10903
 
 
10904
#undef shl_load
 
10905
 
 
10906
/* Override any gcc2 internal prototype to avoid an error.  */
 
10907
#ifdef __cplusplus
 
10908
extern "C"
 
10909
{
 
10910
#endif
 
10911
/* We use char because int might match the return type of a gcc2
 
10912
   builtin and then its argument prototype would still apply.  */
 
10913
char shl_load ();
 
10914
/* The GNU C library defines this for functions which it implements
 
10915
    to always fail with ENOSYS.  Some functions are actually named
 
10916
    something starting with __ and the normal name is an alias.  */
 
10917
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
10918
choke me
 
10919
#else
 
10920
char (*f) () = shl_load;
 
10921
#endif
 
10922
#ifdef __cplusplus
 
10923
}
 
10924
#endif
 
10925
 
 
10926
int
 
10927
main ()
 
10928
{
 
10929
return f != shl_load;
 
10930
  ;
 
10931
  return 0;
 
10932
}
 
10933
_ACEOF
 
10934
rm -f conftest.$ac_objext conftest$ac_exeext
 
10935
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10936
  (eval $ac_link) 2>conftest.er1
 
10937
  ac_status=$?
 
10938
  grep -v '^ *+' conftest.er1 >conftest.err
 
10939
  rm -f conftest.er1
 
10940
  cat conftest.err >&5
 
10941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10942
  (exit $ac_status); } &&
 
10943
         { ac_try='test -z "$ac_c_werror_flag"
 
10944
                         || test ! -s conftest.err'
 
10945
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10946
  (eval $ac_try) 2>&5
 
10947
  ac_status=$?
 
10948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10949
  (exit $ac_status); }; } &&
 
10950
         { ac_try='test -s conftest$ac_exeext'
 
10951
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10952
  (eval $ac_try) 2>&5
 
10953
  ac_status=$?
 
10954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10955
  (exit $ac_status); }; }; then
 
10956
  ac_cv_func_shl_load=yes
 
10957
else
 
10958
  echo "$as_me: failed program was:" >&5
 
10959
sed 's/^/| /' conftest.$ac_ext >&5
 
10960
 
 
10961
ac_cv_func_shl_load=no
 
10962
fi
 
10963
rm -f conftest.err conftest.$ac_objext \
 
10964
      conftest$ac_exeext conftest.$ac_ext
 
10965
fi
 
10966
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10967
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
10968
if test $ac_cv_func_shl_load = yes; then
 
10969
  lt_cv_dlopen="shl_load"
 
10970
else
 
10971
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10972
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
10973
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10974
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10975
else
 
10976
  ac_check_lib_save_LIBS=$LIBS
 
10977
LIBS="-ldld  $LIBS"
 
10978
cat >conftest.$ac_ext <<_ACEOF
 
10979
/* confdefs.h.  */
 
10980
_ACEOF
 
10981
cat confdefs.h >>conftest.$ac_ext
 
10982
cat >>conftest.$ac_ext <<_ACEOF
 
10983
/* end confdefs.h.  */
 
10984
 
 
10985
/* Override any gcc2 internal prototype to avoid an error.  */
 
10986
#ifdef __cplusplus
 
10987
extern "C"
 
10988
#endif
 
10989
/* We use char because int might match the return type of a gcc2
 
10990
   builtin and then its argument prototype would still apply.  */
 
10991
char shl_load ();
 
10992
int
 
10993
main ()
 
10994
{
 
10995
shl_load ();
 
10996
  ;
 
10997
  return 0;
 
10998
}
 
10999
_ACEOF
 
11000
rm -f conftest.$ac_objext conftest$ac_exeext
 
11001
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11002
  (eval $ac_link) 2>conftest.er1
 
11003
  ac_status=$?
 
11004
  grep -v '^ *+' conftest.er1 >conftest.err
 
11005
  rm -f conftest.er1
 
11006
  cat conftest.err >&5
 
11007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11008
  (exit $ac_status); } &&
 
11009
         { ac_try='test -z "$ac_c_werror_flag"
 
11010
                         || test ! -s conftest.err'
 
11011
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11012
  (eval $ac_try) 2>&5
 
11013
  ac_status=$?
 
11014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11015
  (exit $ac_status); }; } &&
 
11016
         { ac_try='test -s conftest$ac_exeext'
 
11017
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11018
  (eval $ac_try) 2>&5
 
11019
  ac_status=$?
 
11020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11021
  (exit $ac_status); }; }; then
 
11022
  ac_cv_lib_dld_shl_load=yes
 
11023
else
 
11024
  echo "$as_me: failed program was:" >&5
 
11025
sed 's/^/| /' conftest.$ac_ext >&5
 
11026
 
 
11027
ac_cv_lib_dld_shl_load=no
 
11028
fi
 
11029
rm -f conftest.err conftest.$ac_objext \
 
11030
      conftest$ac_exeext conftest.$ac_ext
 
11031
LIBS=$ac_check_lib_save_LIBS
 
11032
fi
 
11033
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
11034
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
11035
if test $ac_cv_lib_dld_shl_load = yes; then
 
11036
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
11037
else
 
11038
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
11039
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
11040
if test "${ac_cv_func_dlopen+set}" = set; then
 
11041
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11042
else
 
11043
  cat >conftest.$ac_ext <<_ACEOF
 
11044
/* confdefs.h.  */
 
11045
_ACEOF
 
11046
cat confdefs.h >>conftest.$ac_ext
 
11047
cat >>conftest.$ac_ext <<_ACEOF
 
11048
/* end confdefs.h.  */
 
11049
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
11050
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11051
#define dlopen innocuous_dlopen
 
11052
 
 
11053
/* System header to define __stub macros and hopefully few prototypes,
 
11054
    which can conflict with char dlopen (); below.
 
11055
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11056
    <limits.h> exists even on freestanding compilers.  */
 
11057
 
 
11058
#ifdef __STDC__
 
11059
# include <limits.h>
 
11060
#else
 
11061
# include <assert.h>
 
11062
#endif
 
11063
 
 
11064
#undef dlopen
 
11065
 
 
11066
/* Override any gcc2 internal prototype to avoid an error.  */
 
11067
#ifdef __cplusplus
 
11068
extern "C"
 
11069
{
 
11070
#endif
 
11071
/* We use char because int might match the return type of a gcc2
 
11072
   builtin and then its argument prototype would still apply.  */
 
11073
char dlopen ();
 
11074
/* The GNU C library defines this for functions which it implements
 
11075
    to always fail with ENOSYS.  Some functions are actually named
 
11076
    something starting with __ and the normal name is an alias.  */
 
11077
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
11078
choke me
 
11079
#else
 
11080
char (*f) () = dlopen;
 
11081
#endif
 
11082
#ifdef __cplusplus
 
11083
}
 
11084
#endif
 
11085
 
 
11086
int
 
11087
main ()
 
11088
{
 
11089
return f != dlopen;
 
11090
  ;
 
11091
  return 0;
 
11092
}
 
11093
_ACEOF
 
11094
rm -f conftest.$ac_objext conftest$ac_exeext
 
11095
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11096
  (eval $ac_link) 2>conftest.er1
 
11097
  ac_status=$?
 
11098
  grep -v '^ *+' conftest.er1 >conftest.err
 
11099
  rm -f conftest.er1
 
11100
  cat conftest.err >&5
 
11101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11102
  (exit $ac_status); } &&
 
11103
         { ac_try='test -z "$ac_c_werror_flag"
 
11104
                         || test ! -s conftest.err'
 
11105
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11106
  (eval $ac_try) 2>&5
 
11107
  ac_status=$?
 
11108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11109
  (exit $ac_status); }; } &&
 
11110
         { ac_try='test -s conftest$ac_exeext'
 
11111
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11112
  (eval $ac_try) 2>&5
 
11113
  ac_status=$?
 
11114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11115
  (exit $ac_status); }; }; then
 
11116
  ac_cv_func_dlopen=yes
 
11117
else
 
11118
  echo "$as_me: failed program was:" >&5
 
11119
sed 's/^/| /' conftest.$ac_ext >&5
 
11120
 
 
11121
ac_cv_func_dlopen=no
 
11122
fi
 
11123
rm -f conftest.err conftest.$ac_objext \
 
11124
      conftest$ac_exeext conftest.$ac_ext
 
11125
fi
 
11126
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
11127
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
11128
if test $ac_cv_func_dlopen = yes; then
 
11129
  lt_cv_dlopen="dlopen"
 
11130
else
 
11131
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11132
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11133
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11135
else
 
11136
  ac_check_lib_save_LIBS=$LIBS
 
11137
LIBS="-ldl  $LIBS"
 
11138
cat >conftest.$ac_ext <<_ACEOF
 
11139
/* confdefs.h.  */
 
11140
_ACEOF
 
11141
cat confdefs.h >>conftest.$ac_ext
 
11142
cat >>conftest.$ac_ext <<_ACEOF
 
11143
/* end confdefs.h.  */
 
11144
 
 
11145
/* Override any gcc2 internal prototype to avoid an error.  */
 
11146
#ifdef __cplusplus
 
11147
extern "C"
 
11148
#endif
 
11149
/* We use char because int might match the return type of a gcc2
 
11150
   builtin and then its argument prototype would still apply.  */
 
11151
char dlopen ();
 
11152
int
 
11153
main ()
 
11154
{
 
11155
dlopen ();
 
11156
  ;
 
11157
  return 0;
 
11158
}
 
11159
_ACEOF
 
11160
rm -f conftest.$ac_objext conftest$ac_exeext
 
11161
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11162
  (eval $ac_link) 2>conftest.er1
 
11163
  ac_status=$?
 
11164
  grep -v '^ *+' conftest.er1 >conftest.err
 
11165
  rm -f conftest.er1
 
11166
  cat conftest.err >&5
 
11167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11168
  (exit $ac_status); } &&
 
11169
         { ac_try='test -z "$ac_c_werror_flag"
 
11170
                         || test ! -s conftest.err'
 
11171
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11172
  (eval $ac_try) 2>&5
 
11173
  ac_status=$?
 
11174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11175
  (exit $ac_status); }; } &&
 
11176
         { ac_try='test -s conftest$ac_exeext'
 
11177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11178
  (eval $ac_try) 2>&5
 
11179
  ac_status=$?
 
11180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11181
  (exit $ac_status); }; }; then
 
11182
  ac_cv_lib_dl_dlopen=yes
 
11183
else
 
11184
  echo "$as_me: failed program was:" >&5
 
11185
sed 's/^/| /' conftest.$ac_ext >&5
 
11186
 
 
11187
ac_cv_lib_dl_dlopen=no
 
11188
fi
 
11189
rm -f conftest.err conftest.$ac_objext \
 
11190
      conftest$ac_exeext conftest.$ac_ext
 
11191
LIBS=$ac_check_lib_save_LIBS
 
11192
fi
 
11193
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11194
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11195
if test $ac_cv_lib_dl_dlopen = yes; then
 
11196
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11197
else
 
11198
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
11199
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
11200
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
11201
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11202
else
 
11203
  ac_check_lib_save_LIBS=$LIBS
 
11204
LIBS="-lsvld  $LIBS"
 
11205
cat >conftest.$ac_ext <<_ACEOF
 
11206
/* confdefs.h.  */
 
11207
_ACEOF
 
11208
cat confdefs.h >>conftest.$ac_ext
 
11209
cat >>conftest.$ac_ext <<_ACEOF
 
11210
/* end confdefs.h.  */
 
11211
 
 
11212
/* Override any gcc2 internal prototype to avoid an error.  */
 
11213
#ifdef __cplusplus
 
11214
extern "C"
 
11215
#endif
 
11216
/* We use char because int might match the return type of a gcc2
 
11217
   builtin and then its argument prototype would still apply.  */
 
11218
char dlopen ();
 
11219
int
 
11220
main ()
 
11221
{
 
11222
dlopen ();
 
11223
  ;
 
11224
  return 0;
 
11225
}
 
11226
_ACEOF
 
11227
rm -f conftest.$ac_objext conftest$ac_exeext
 
11228
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11229
  (eval $ac_link) 2>conftest.er1
 
11230
  ac_status=$?
 
11231
  grep -v '^ *+' conftest.er1 >conftest.err
 
11232
  rm -f conftest.er1
 
11233
  cat conftest.err >&5
 
11234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11235
  (exit $ac_status); } &&
 
11236
         { ac_try='test -z "$ac_c_werror_flag"
 
11237
                         || test ! -s conftest.err'
 
11238
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11239
  (eval $ac_try) 2>&5
 
11240
  ac_status=$?
 
11241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11242
  (exit $ac_status); }; } &&
 
11243
         { ac_try='test -s conftest$ac_exeext'
 
11244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11245
  (eval $ac_try) 2>&5
 
11246
  ac_status=$?
 
11247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11248
  (exit $ac_status); }; }; then
 
11249
  ac_cv_lib_svld_dlopen=yes
 
11250
else
 
11251
  echo "$as_me: failed program was:" >&5
 
11252
sed 's/^/| /' conftest.$ac_ext >&5
 
11253
 
 
11254
ac_cv_lib_svld_dlopen=no
 
11255
fi
 
11256
rm -f conftest.err conftest.$ac_objext \
 
11257
      conftest$ac_exeext conftest.$ac_ext
 
11258
LIBS=$ac_check_lib_save_LIBS
 
11259
fi
 
11260
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
11261
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
11262
if test $ac_cv_lib_svld_dlopen = yes; then
 
11263
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11264
else
 
11265
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
11266
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
11267
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
11268
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11269
else
 
11270
  ac_check_lib_save_LIBS=$LIBS
 
11271
LIBS="-ldld  $LIBS"
 
11272
cat >conftest.$ac_ext <<_ACEOF
 
11273
/* confdefs.h.  */
 
11274
_ACEOF
 
11275
cat confdefs.h >>conftest.$ac_ext
 
11276
cat >>conftest.$ac_ext <<_ACEOF
 
11277
/* end confdefs.h.  */
 
11278
 
 
11279
/* Override any gcc2 internal prototype to avoid an error.  */
 
11280
#ifdef __cplusplus
 
11281
extern "C"
 
11282
#endif
 
11283
/* We use char because int might match the return type of a gcc2
 
11284
   builtin and then its argument prototype would still apply.  */
 
11285
char dld_link ();
 
11286
int
 
11287
main ()
 
11288
{
 
11289
dld_link ();
 
11290
  ;
 
11291
  return 0;
 
11292
}
 
11293
_ACEOF
 
11294
rm -f conftest.$ac_objext conftest$ac_exeext
 
11295
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11296
  (eval $ac_link) 2>conftest.er1
 
11297
  ac_status=$?
 
11298
  grep -v '^ *+' conftest.er1 >conftest.err
 
11299
  rm -f conftest.er1
 
11300
  cat conftest.err >&5
 
11301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11302
  (exit $ac_status); } &&
 
11303
         { ac_try='test -z "$ac_c_werror_flag"
 
11304
                         || test ! -s conftest.err'
 
11305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11306
  (eval $ac_try) 2>&5
 
11307
  ac_status=$?
 
11308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11309
  (exit $ac_status); }; } &&
 
11310
         { ac_try='test -s conftest$ac_exeext'
 
11311
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11312
  (eval $ac_try) 2>&5
 
11313
  ac_status=$?
 
11314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11315
  (exit $ac_status); }; }; then
 
11316
  ac_cv_lib_dld_dld_link=yes
 
11317
else
 
11318
  echo "$as_me: failed program was:" >&5
 
11319
sed 's/^/| /' conftest.$ac_ext >&5
 
11320
 
 
11321
ac_cv_lib_dld_dld_link=no
 
11322
fi
 
11323
rm -f conftest.err conftest.$ac_objext \
 
11324
      conftest$ac_exeext conftest.$ac_ext
 
11325
LIBS=$ac_check_lib_save_LIBS
 
11326
fi
 
11327
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
11328
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
11329
if test $ac_cv_lib_dld_dld_link = yes; then
 
11330
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
11331
fi
 
11332
 
 
11333
 
 
11334
fi
 
11335
 
 
11336
 
 
11337
fi
 
11338
 
 
11339
 
 
11340
fi
 
11341
 
 
11342
 
 
11343
fi
 
11344
 
 
11345
 
 
11346
fi
 
11347
 
 
11348
    ;;
 
11349
  esac
 
11350
 
 
11351
  if test "x$lt_cv_dlopen" != xno; then
 
11352
    enable_dlopen=yes
 
11353
  else
 
11354
    enable_dlopen=no
 
11355
  fi
 
11356
 
 
11357
  case $lt_cv_dlopen in
 
11358
  dlopen)
 
11359
    save_CPPFLAGS="$CPPFLAGS"
 
11360
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11361
 
 
11362
    save_LDFLAGS="$LDFLAGS"
 
11363
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11364
 
 
11365
    save_LIBS="$LIBS"
 
11366
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11367
 
 
11368
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
11369
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
11370
if test "${lt_cv_dlopen_self+set}" = set; then
 
11371
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11372
else
 
11373
          if test "$cross_compiling" = yes; then :
 
11374
  lt_cv_dlopen_self=cross
 
11375
else
 
11376
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11377
  lt_status=$lt_dlunknown
 
11378
  cat > conftest.$ac_ext <<EOF
 
11379
#line 11379 "configure"
 
11380
#include "confdefs.h"
 
11381
 
 
11382
#if HAVE_DLFCN_H
 
11383
#include <dlfcn.h>
 
11384
#endif
 
11385
 
 
11386
#include <stdio.h>
 
11387
 
 
11388
#ifdef RTLD_GLOBAL
 
11389
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11390
#else
 
11391
#  ifdef DL_GLOBAL
 
11392
#    define LT_DLGLOBAL         DL_GLOBAL
 
11393
#  else
 
11394
#    define LT_DLGLOBAL         0
 
11395
#  endif
 
11396
#endif
 
11397
 
 
11398
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11399
   find out it does not work in some platform. */
 
11400
#ifndef LT_DLLAZY_OR_NOW
 
11401
#  ifdef RTLD_LAZY
 
11402
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11403
#  else
 
11404
#    ifdef DL_LAZY
 
11405
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11406
#    else
 
11407
#      ifdef RTLD_NOW
 
11408
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11409
#      else
 
11410
#        ifdef DL_NOW
 
11411
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11412
#        else
 
11413
#          define LT_DLLAZY_OR_NOW      0
 
11414
#        endif
 
11415
#      endif
 
11416
#    endif
 
11417
#  endif
 
11418
#endif
 
11419
 
 
11420
#ifdef __cplusplus
 
11421
extern "C" void exit (int);
 
11422
#endif
 
11423
 
 
11424
void fnord() { int i=42;}
 
11425
int main ()
 
11426
{
 
11427
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11428
  int status = $lt_dlunknown;
 
11429
 
 
11430
  if (self)
 
11431
    {
 
11432
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11433
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11434
      /* dlclose (self); */
 
11435
    }
 
11436
 
 
11437
    exit (status);
 
11438
}
 
11439
EOF
 
11440
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11441
  (eval $ac_link) 2>&5
 
11442
  ac_status=$?
 
11443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11444
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11445
    (./conftest; exit; ) 2>/dev/null
 
11446
    lt_status=$?
 
11447
    case x$lt_status in
 
11448
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11449
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11450
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
11451
    esac
 
11452
  else :
 
11453
    # compilation failed
 
11454
    lt_cv_dlopen_self=no
 
11455
  fi
 
11456
fi
 
11457
rm -fr conftest*
 
11458
 
 
11459
 
 
11460
fi
 
11461
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
11462
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
11463
 
 
11464
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11465
      LDFLAGS="$LDFLAGS $link_static_flag"
 
11466
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
11467
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
11468
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
11469
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11470
else
 
11471
          if test "$cross_compiling" = yes; then :
 
11472
  lt_cv_dlopen_self_static=cross
 
11473
else
 
11474
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11475
  lt_status=$lt_dlunknown
 
11476
  cat > conftest.$ac_ext <<EOF
 
11477
#line 11477 "configure"
 
11478
#include "confdefs.h"
 
11479
 
 
11480
#if HAVE_DLFCN_H
 
11481
#include <dlfcn.h>
 
11482
#endif
 
11483
 
 
11484
#include <stdio.h>
 
11485
 
 
11486
#ifdef RTLD_GLOBAL
 
11487
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11488
#else
 
11489
#  ifdef DL_GLOBAL
 
11490
#    define LT_DLGLOBAL         DL_GLOBAL
 
11491
#  else
 
11492
#    define LT_DLGLOBAL         0
 
11493
#  endif
 
11494
#endif
 
11495
 
 
11496
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11497
   find out it does not work in some platform. */
 
11498
#ifndef LT_DLLAZY_OR_NOW
 
11499
#  ifdef RTLD_LAZY
 
11500
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11501
#  else
 
11502
#    ifdef DL_LAZY
 
11503
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11504
#    else
 
11505
#      ifdef RTLD_NOW
 
11506
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11507
#      else
 
11508
#        ifdef DL_NOW
 
11509
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11510
#        else
 
11511
#          define LT_DLLAZY_OR_NOW      0
 
11512
#        endif
 
11513
#      endif
 
11514
#    endif
 
11515
#  endif
 
11516
#endif
 
11517
 
 
11518
#ifdef __cplusplus
 
11519
extern "C" void exit (int);
 
11520
#endif
 
11521
 
 
11522
void fnord() { int i=42;}
 
11523
int main ()
 
11524
{
 
11525
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11526
  int status = $lt_dlunknown;
 
11527
 
 
11528
  if (self)
 
11529
    {
 
11530
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11531
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11532
      /* dlclose (self); */
 
11533
    }
 
11534
 
 
11535
    exit (status);
 
11536
}
 
11537
EOF
 
11538
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11539
  (eval $ac_link) 2>&5
 
11540
  ac_status=$?
 
11541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11542
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11543
    (./conftest; exit; ) 2>/dev/null
 
11544
    lt_status=$?
 
11545
    case x$lt_status in
 
11546
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11547
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11548
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
11549
    esac
 
11550
  else :
 
11551
    # compilation failed
 
11552
    lt_cv_dlopen_self_static=no
 
11553
  fi
 
11554
fi
 
11555
rm -fr conftest*
 
11556
 
 
11557
 
 
11558
fi
 
11559
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
11560
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
11561
    fi
 
11562
 
 
11563
    CPPFLAGS="$save_CPPFLAGS"
 
11564
    LDFLAGS="$save_LDFLAGS"
 
11565
    LIBS="$save_LIBS"
 
11566
    ;;
 
11567
  esac
 
11568
 
 
11569
  case $lt_cv_dlopen_self in
 
11570
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11571
  *) enable_dlopen_self=unknown ;;
 
11572
  esac
 
11573
 
 
11574
  case $lt_cv_dlopen_self_static in
 
11575
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11576
  *) enable_dlopen_self_static=unknown ;;
 
11577
  esac
 
11578
fi
 
11579
 
 
11580
 
 
11581
# Report which librarie types wil actually be built
 
11582
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
11583
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
11584
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
11585
echo "${ECHO_T}$can_build_shared" >&6
 
11586
 
 
11587
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
11588
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
11589
test "$can_build_shared" = "no" && enable_shared=no
 
11590
 
 
11591
# On AIX, shared libraries and static libraries use the same namespace, and
 
11592
# are all built from PIC.
 
11593
case "$host_os" in
 
11594
aix3*)
 
11595
  test "$enable_shared" = yes && enable_static=no
 
11596
  if test -n "$RANLIB"; then
 
11597
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11598
    postinstall_cmds='$RANLIB $lib'
 
11599
  fi
 
11600
  ;;
 
11601
 
 
11602
aix4*)
 
11603
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11604
    test "$enable_shared" = yes && enable_static=no
 
11605
  fi
 
11606
  ;;
 
11607
  darwin* | rhapsody*)
 
11608
  if test "$GCC" = yes; then
 
11609
    archive_cmds_need_lc=no
 
11610
    case "$host_os" in
 
11611
    rhapsody* | darwin1.[012])
 
11612
      allow_undefined_flag='-undefined suppress'
 
11613
      ;;
 
11614
    *) # Darwin 1.3 on
 
11615
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
 
11616
      ;;
 
11617
    esac
 
11618
    output_verbose_link_cmd='echo'
 
11619
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
11620
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
11621
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
11622
    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11623
    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11624
    hardcode_direct=no
 
11625
    hardcode_automatic=yes
 
11626
    hardcode_shlibpath_var=unsupported
 
11627
    whole_archive_flag_spec='-all_load $convenience'
 
11628
    link_all_deplibs=yes
 
11629
  else
 
11630
    ld_shlibs=no
 
11631
  fi
 
11632
    ;;
 
11633
esac
 
11634
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
11635
echo "${ECHO_T}$enable_shared" >&6
 
11636
 
 
11637
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
11638
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
11639
# Make sure either enable_shared or enable_static is yes.
 
11640
test "$enable_shared" = yes || enable_static=yes
 
11641
echo "$as_me:$LINENO: result: $enable_static" >&5
 
11642
echo "${ECHO_T}$enable_static" >&6
 
11643
 
 
11644
# The else clause should only fire when bootstrapping the
 
11645
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
11646
# with your package, and you will get complaints that there are
 
11647
# no rules to generate ltmain.sh.
 
11648
if test -f "$ltmain"; then
 
11649
  # See if we are running on zsh, and set the options which allow our commands through
 
11650
  # without removal of \ escapes.
 
11651
  if test -n "${ZSH_VERSION+set}" ; then
 
11652
    setopt NO_GLOB_SUBST
 
11653
  fi
 
11654
  # Now quote all the things that may contain metacharacters while being
 
11655
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
11656
  # variables and quote the copies for generation of the libtool script.
 
11657
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
11658
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
11659
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
11660
    deplibs_check_method reload_flag reload_cmds need_locks \
 
11661
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
11662
    lt_cv_sys_global_symbol_to_c_name_address \
 
11663
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
11664
    old_postinstall_cmds old_postuninstall_cmds \
 
11665
    compiler \
 
11666
    CC \
 
11667
    LD \
 
11668
    lt_prog_compiler_wl \
 
11669
    lt_prog_compiler_pic \
 
11670
    lt_prog_compiler_static \
 
11671
    lt_prog_compiler_no_builtin_flag \
 
11672
    export_dynamic_flag_spec \
 
11673
    thread_safe_flag_spec \
 
11674
    whole_archive_flag_spec \
 
11675
    enable_shared_with_static_runtimes \
 
11676
    old_archive_cmds \
 
11677
    old_archive_from_new_cmds \
 
11678
    predep_objects \
 
11679
    postdep_objects \
 
11680
    predeps \
 
11681
    postdeps \
 
11682
    compiler_lib_search_path \
 
11683
    archive_cmds \
 
11684
    archive_expsym_cmds \
 
11685
    postinstall_cmds \
 
11686
    postuninstall_cmds \
 
11687
    old_archive_from_expsyms_cmds \
 
11688
    allow_undefined_flag \
 
11689
    no_undefined_flag \
 
11690
    export_symbols_cmds \
 
11691
    hardcode_libdir_flag_spec \
 
11692
    hardcode_libdir_flag_spec_ld \
 
11693
    hardcode_libdir_separator \
 
11694
    hardcode_automatic \
 
11695
    module_cmds \
 
11696
    module_expsym_cmds \
 
11697
    lt_cv_prog_compiler_c_o \
 
11698
    exclude_expsyms \
 
11699
    include_expsyms; do
 
11700
 
 
11701
    case $var in
 
11702
    old_archive_cmds | \
 
11703
    old_archive_from_new_cmds | \
 
11704
    archive_cmds | \
 
11705
    archive_expsym_cmds | \
 
11706
    module_cmds | \
 
11707
    module_expsym_cmds | \
 
11708
    old_archive_from_expsyms_cmds | \
 
11709
    export_symbols_cmds | \
 
11710
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
11711
    postinstall_cmds | postuninstall_cmds | \
 
11712
    old_postinstall_cmds | old_postuninstall_cmds | \
 
11713
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
11714
      # Double-quote double-evaled strings.
 
11715
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
11716
      ;;
 
11717
    *)
 
11718
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
11719
      ;;
 
11720
    esac
 
11721
  done
 
11722
 
 
11723
  case $lt_echo in
 
11724
  *'\$0 --fallback-echo"')
 
11725
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
11726
    ;;
 
11727
  esac
 
11728
 
 
11729
cfgfile="${ofile}T"
 
11730
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
11731
  $rm -f "$cfgfile"
 
11732
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
11733
echo "$as_me: creating $ofile" >&6;}
 
11734
 
 
11735
  cat <<__EOF__ >> "$cfgfile"
 
11736
#! $SHELL
 
11737
 
 
11738
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
11739
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
11740
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
11741
#
 
11742
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
11743
# Free Software Foundation, Inc.
 
11744
#
 
11745
# This file is part of GNU Libtool:
 
11746
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
11747
#
 
11748
# This program is free software; you can redistribute it and/or modify
 
11749
# it under the terms of the GNU General Public License as published by
 
11750
# the Free Software Foundation; either version 2 of the License, or
 
11751
# (at your option) any later version.
 
11752
#
 
11753
# This program is distributed in the hope that it will be useful, but
 
11754
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
11755
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11756
# General Public License for more details.
 
11757
#
 
11758
# You should have received a copy of the GNU General Public License
 
11759
# along with this program; if not, write to the Free Software
 
11760
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
11761
#
 
11762
# As a special exception to the GNU General Public License, if you
 
11763
# distribute this file as part of a program that contains a
 
11764
# configuration script generated by Autoconf, you may include it under
 
11765
# the same distribution terms that you use for the rest of that program.
 
11766
 
 
11767
# A sed program that does not truncate output.
 
11768
SED=$lt_SED
 
11769
 
 
11770
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
11771
Xsed="$SED -e s/^X//"
 
11772
 
 
11773
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
11774
# if CDPATH is set.
 
11775
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
11776
 
 
11777
# The names of the tagged configurations supported by this script.
 
11778
available_tags=
 
11779
 
 
11780
# ### BEGIN LIBTOOL CONFIG
 
11781
 
 
11782
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
11783
 
 
11784
# Shell to use when invoking shell scripts.
 
11785
SHELL=$lt_SHELL
 
11786
 
 
11787
# Whether or not to build shared libraries.
 
11788
build_libtool_libs=$enable_shared
 
11789
 
 
11790
# Whether or not to build static libraries.
 
11791
build_old_libs=$enable_static
 
11792
 
 
11793
# Whether or not to add -lc for building shared libraries.
 
11794
build_libtool_need_lc=$archive_cmds_need_lc
 
11795
 
 
11796
# Whether or not to disallow shared libs when runtime libs are static
 
11797
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
11798
 
 
11799
# Whether or not to optimize for fast installation.
 
11800
fast_install=$enable_fast_install
 
11801
 
 
11802
# The host system.
 
11803
host_alias=$host_alias
 
11804
host=$host
 
11805
 
 
11806
# An echo program that does not interpret backslashes.
 
11807
echo=$lt_echo
 
11808
 
 
11809
# The archiver.
 
11810
AR=$lt_AR
 
11811
AR_FLAGS=$lt_AR_FLAGS
 
11812
 
 
11813
# A C compiler.
 
11814
LTCC=$lt_LTCC
 
11815
 
 
11816
# A language-specific compiler.
 
11817
CC=$lt_compiler
 
11818
 
 
11819
# Is the compiler the GNU C compiler?
 
11820
with_gcc=$GCC
 
11821
 
 
11822
# An ERE matcher.
 
11823
EGREP=$lt_EGREP
 
11824
 
 
11825
# The linker used to build libraries.
 
11826
LD=$lt_LD
 
11827
 
 
11828
# Whether we need hard or soft links.
 
11829
LN_S=$lt_LN_S
 
11830
 
 
11831
# A BSD-compatible nm program.
 
11832
NM=$lt_NM
 
11833
 
 
11834
# A symbol stripping program
 
11835
STRIP=$STRIP
 
11836
 
 
11837
# Used to examine libraries when file_magic_cmd begins "file"
 
11838
MAGIC_CMD=$MAGIC_CMD
 
11839
 
 
11840
# Used on cygwin: DLL creation program.
 
11841
DLLTOOL="$DLLTOOL"
 
11842
 
 
11843
# Used on cygwin: object dumper.
 
11844
OBJDUMP="$OBJDUMP"
 
11845
 
 
11846
# Used on cygwin: assembler.
 
11847
AS="$AS"
 
11848
 
 
11849
# The name of the directory that contains temporary libtool files.
 
11850
objdir=$objdir
 
11851
 
 
11852
# How to create reloadable object files.
 
11853
reload_flag=$lt_reload_flag
 
11854
reload_cmds=$lt_reload_cmds
 
11855
 
 
11856
# How to pass a linker flag through the compiler.
 
11857
wl=$lt_lt_prog_compiler_wl
 
11858
 
 
11859
# Object file suffix (normally "o").
 
11860
objext="$ac_objext"
 
11861
 
 
11862
# Old archive suffix (normally "a").
 
11863
libext="$libext"
 
11864
 
 
11865
# Shared library suffix (normally ".so").
 
11866
shrext='$shrext'
 
11867
 
 
11868
# Executable file suffix (normally "").
 
11869
exeext="$exeext"
 
11870
 
 
11871
# Additional compiler flags for building library objects.
 
11872
pic_flag=$lt_lt_prog_compiler_pic
 
11873
pic_mode=$pic_mode
 
11874
 
 
11875
# What is the maximum length of a command?
 
11876
max_cmd_len=$lt_cv_sys_max_cmd_len
 
11877
 
 
11878
# Does compiler simultaneously support -c and -o options?
 
11879
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
11880
 
 
11881
# Must we lock files when doing compilation ?
 
11882
need_locks=$lt_need_locks
 
11883
 
 
11884
# Do we need the lib prefix for modules?
 
11885
need_lib_prefix=$need_lib_prefix
 
11886
 
 
11887
# Do we need a version for libraries?
 
11888
need_version=$need_version
 
11889
 
 
11890
# Whether dlopen is supported.
 
11891
dlopen_support=$enable_dlopen
 
11892
 
 
11893
# Whether dlopen of programs is supported.
 
11894
dlopen_self=$enable_dlopen_self
 
11895
 
 
11896
# Whether dlopen of statically linked programs is supported.
 
11897
dlopen_self_static=$enable_dlopen_self_static
 
11898
 
 
11899
# Compiler flag to prevent dynamic linking.
 
11900
link_static_flag=$lt_lt_prog_compiler_static
 
11901
 
 
11902
# Compiler flag to turn off builtin functions.
 
11903
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
11904
 
 
11905
# Compiler flag to allow reflexive dlopens.
 
11906
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
11907
 
 
11908
# Compiler flag to generate shared objects directly from archives.
 
11909
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
11910
 
 
11911
# Compiler flag to generate thread-safe objects.
 
11912
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
11913
 
 
11914
# Library versioning type.
 
11915
version_type=$version_type
 
11916
 
 
11917
# Format of library name prefix.
 
11918
libname_spec=$lt_libname_spec
 
11919
 
 
11920
# List of archive names.  First name is the real one, the rest are links.
 
11921
# The last name is the one that the linker finds with -lNAME.
 
11922
library_names_spec=$lt_library_names_spec
 
11923
 
 
11924
# The coded name of the library, if different from the real name.
 
11925
soname_spec=$lt_soname_spec
 
11926
 
 
11927
# Commands used to build and install an old-style archive.
 
11928
RANLIB=$lt_RANLIB
 
11929
old_archive_cmds=$lt_old_archive_cmds
 
11930
old_postinstall_cmds=$lt_old_postinstall_cmds
 
11931
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
11932
 
 
11933
# Create an old-style archive from a shared archive.
 
11934
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
11935
 
 
11936
# Create a temporary old-style archive to link instead of a shared archive.
 
11937
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
11938
 
 
11939
# Commands used to build and install a shared archive.
 
11940
archive_cmds=$lt_archive_cmds
 
11941
archive_expsym_cmds=$lt_archive_expsym_cmds
 
11942
postinstall_cmds=$lt_postinstall_cmds
 
11943
postuninstall_cmds=$lt_postuninstall_cmds
 
11944
 
 
11945
# Commands used to build a loadable module (assumed same as above if empty)
 
11946
module_cmds=$lt_module_cmds
 
11947
module_expsym_cmds=$lt_module_expsym_cmds
 
11948
 
 
11949
# Commands to strip libraries.
 
11950
old_striplib=$lt_old_striplib
 
11951
striplib=$lt_striplib
 
11952
 
 
11953
# Dependencies to place before the objects being linked to create a
 
11954
# shared library.
 
11955
predep_objects=$lt_predep_objects
 
11956
 
 
11957
# Dependencies to place after the objects being linked to create a
 
11958
# shared library.
 
11959
postdep_objects=$lt_postdep_objects
 
11960
 
 
11961
# Dependencies to place before the objects being linked to create a
 
11962
# shared library.
 
11963
predeps=$lt_predeps
 
11964
 
 
11965
# Dependencies to place after the objects being linked to create a
 
11966
# shared library.
 
11967
postdeps=$lt_postdeps
 
11968
 
 
11969
# The library search path used internally by the compiler when linking
 
11970
# a shared library.
 
11971
compiler_lib_search_path=$lt_compiler_lib_search_path
 
11972
 
 
11973
# Method to check whether dependent libraries are shared objects.
 
11974
deplibs_check_method=$lt_deplibs_check_method
 
11975
 
 
11976
# Command to use when deplibs_check_method == file_magic.
 
11977
file_magic_cmd=$lt_file_magic_cmd
 
11978
 
 
11979
# Flag that allows shared libraries with undefined symbols to be built.
 
11980
allow_undefined_flag=$lt_allow_undefined_flag
 
11981
 
 
11982
# Flag that forces no undefined symbols.
 
11983
no_undefined_flag=$lt_no_undefined_flag
 
11984
 
 
11985
# Commands used to finish a libtool library installation in a directory.
 
11986
finish_cmds=$lt_finish_cmds
 
11987
 
 
11988
# Same as above, but a single script fragment to be evaled but not shown.
 
11989
finish_eval=$lt_finish_eval
 
11990
 
 
11991
# Take the output of nm and produce a listing of raw symbols and C names.
 
11992
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
11993
 
 
11994
# Transform the output of nm in a proper C declaration
 
11995
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
11996
 
 
11997
# Transform the output of nm in a C name address pair
 
11998
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
11999
 
 
12000
# This is the shared library runtime path variable.
 
12001
runpath_var=$runpath_var
 
12002
 
 
12003
# This is the shared library path variable.
 
12004
shlibpath_var=$shlibpath_var
 
12005
 
 
12006
# Is shlibpath searched before the hard-coded library search path?
 
12007
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12008
 
 
12009
# How to hardcode a shared library path into an executable.
 
12010
hardcode_action=$hardcode_action
 
12011
 
 
12012
# Whether we should hardcode library paths into libraries.
 
12013
hardcode_into_libs=$hardcode_into_libs
 
12014
 
 
12015
# Flag to hardcode \$libdir into a binary during linking.
 
12016
# This must work even if \$libdir does not exist.
 
12017
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
12018
 
 
12019
# If ld is used when linking, flag to hardcode \$libdir into
 
12020
# a binary during linking. This must work even if \$libdir does
 
12021
# not exist.
 
12022
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
12023
 
 
12024
# Whether we need a single -rpath flag with a separated argument.
 
12025
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
12026
 
 
12027
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
12028
# resulting binary.
 
12029
hardcode_direct=$hardcode_direct
 
12030
 
 
12031
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
12032
# resulting binary.
 
12033
hardcode_minus_L=$hardcode_minus_L
 
12034
 
 
12035
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
12036
# the resulting binary.
 
12037
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
12038
 
 
12039
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
12040
# and all subsequent libraries and executables linked against it.
 
12041
hardcode_automatic=$hardcode_automatic
 
12042
 
 
12043
# Variables whose values should be saved in libtool wrapper scripts and
 
12044
# restored at relink time.
 
12045
variables_saved_for_relink="$variables_saved_for_relink"
 
12046
 
 
12047
# Whether libtool must link a program against all its dependency libraries.
 
12048
link_all_deplibs=$link_all_deplibs
 
12049
 
 
12050
# Compile-time system search path for libraries
 
12051
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
12052
 
 
12053
# Run-time system search path for libraries
 
12054
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
12055
 
 
12056
# Fix the shell variable \$srcfile for the compiler.
 
12057
fix_srcfile_path="$fix_srcfile_path"
 
12058
 
 
12059
# Set to yes if exported symbols are required.
 
12060
always_export_symbols=$always_export_symbols
 
12061
 
 
12062
# The commands to list exported symbols.
 
12063
export_symbols_cmds=$lt_export_symbols_cmds
 
12064
 
 
12065
# The commands to extract the exported symbol list from a shared archive.
 
12066
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
12067
 
 
12068
# Symbols that should not be listed in the preloaded symbols.
 
12069
exclude_expsyms=$lt_exclude_expsyms
 
12070
 
 
12071
# Symbols that must always be exported.
 
12072
include_expsyms=$lt_include_expsyms
 
12073
 
 
12074
# ### END LIBTOOL CONFIG
 
12075
 
 
12076
__EOF__
 
12077
 
 
12078
 
 
12079
  case $host_os in
 
12080
  aix3*)
 
12081
    cat <<\EOF >> "$cfgfile"
 
12082
 
 
12083
# AIX sometimes has problems with the GCC collect2 program.  For some
 
12084
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
12085
# vanish in a puff of smoke.
 
12086
if test "X${COLLECT_NAMES+set}" != Xset; then
 
12087
  COLLECT_NAMES=
 
12088
  export COLLECT_NAMES
 
12089
fi
 
12090
EOF
 
12091
    ;;
 
12092
  esac
 
12093
 
 
12094
  # We use sed instead of cat because bash on DJGPP gets confused if
 
12095
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
12096
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
12097
  # is reportedly fixed, but why not run on old versions too?
 
12098
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
12099
 
 
12100
  mv -f "$cfgfile" "$ofile" || \
 
12101
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
12102
  chmod +x "$ofile"
 
12103
 
 
12104
else
 
12105
  # If there is no Makefile yet, we rely on a make rule to execute
 
12106
  # `config.status --recheck' to rerun these tests and create the
 
12107
  # libtool script then.
 
12108
  test -f Makefile && make "$ltmain"
 
12109
fi
 
12110
 
 
12111
 
 
12112
ac_ext=c
 
12113
ac_cpp='$CPP $CPPFLAGS'
 
12114
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12115
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12116
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12117
 
 
12118
CC="$lt_save_CC"
 
12119
 
 
12120
 
 
12121
# Check whether --with-tags or --without-tags was given.
 
12122
if test "${with_tags+set}" = set; then
 
12123
  withval="$with_tags"
 
12124
  tagnames="$withval"
 
12125
fi;
 
12126
 
 
12127
if test -f "$ltmain" && test -n "$tagnames"; then
 
12128
  if test ! -f "${ofile}"; then
 
12129
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
12130
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
12131
  fi
 
12132
 
 
12133
  if test -z "$LTCC"; then
 
12134
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
12135
    if test -z "$LTCC"; then
 
12136
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
12137
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
12138
    else
 
12139
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
12140
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
12141
    fi
 
12142
  fi
 
12143
 
 
12144
  # Extract list of available tagged configurations in $ofile.
 
12145
  # Note that this assumes the entire list is on one line.
 
12146
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
12147
 
 
12148
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
12149
  for tagname in $tagnames; do
 
12150
    IFS="$lt_save_ifs"
 
12151
    # Check whether tagname contains only valid characters
 
12152
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
12153
    "") ;;
 
12154
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
12155
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
12156
   { (exit 1); exit 1; }; }
 
12157
        ;;
 
12158
    esac
 
12159
 
 
12160
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
12161
    then
 
12162
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
12163
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
12164
   { (exit 1); exit 1; }; }
 
12165
    fi
 
12166
 
 
12167
    # Update the list of available tags.
 
12168
    if test -n "$tagname"; then
 
12169
      echo appending configuration tag \"$tagname\" to $ofile
 
12170
 
 
12171
      case $tagname in
 
12172
      CXX)
 
12173
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
12174
          ac_ext=cc
 
12175
ac_cpp='$CXXCPP $CPPFLAGS'
 
12176
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12177
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12178
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12179
 
 
12180
 
 
12181
 
 
12182
 
 
12183
archive_cmds_need_lc_CXX=no
 
12184
allow_undefined_flag_CXX=
 
12185
always_export_symbols_CXX=no
 
12186
archive_expsym_cmds_CXX=
 
12187
export_dynamic_flag_spec_CXX=
 
12188
hardcode_direct_CXX=no
 
12189
hardcode_libdir_flag_spec_CXX=
 
12190
hardcode_libdir_flag_spec_ld_CXX=
 
12191
hardcode_libdir_separator_CXX=
 
12192
hardcode_minus_L_CXX=no
 
12193
hardcode_automatic_CXX=no
 
12194
module_cmds_CXX=
 
12195
module_expsym_cmds_CXX=
 
12196
link_all_deplibs_CXX=unknown
 
12197
old_archive_cmds_CXX=$old_archive_cmds
 
12198
no_undefined_flag_CXX=
 
12199
whole_archive_flag_spec_CXX=
 
12200
enable_shared_with_static_runtimes_CXX=no
 
12201
 
 
12202
# Dependencies to place before and after the object being linked:
 
12203
predep_objects_CXX=
 
12204
postdep_objects_CXX=
 
12205
predeps_CXX=
 
12206
postdeps_CXX=
 
12207
compiler_lib_search_path_CXX=
 
12208
 
 
12209
# Source file extension for C++ test sources.
 
12210
ac_ext=cc
 
12211
 
 
12212
# Object file extension for compiled C++ test sources.
 
12213
objext=o
 
12214
objext_CXX=$objext
 
12215
 
 
12216
# Code to be used in simple compile tests
 
12217
lt_simple_compile_test_code="int some_variable = 0;\n"
 
12218
 
 
12219
# Code to be used in simple link tests
 
12220
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
12221
 
 
12222
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12223
 
 
12224
# If no C compiler was specified, use CC.
 
12225
LTCC=${LTCC-"$CC"}
 
12226
 
 
12227
# Allow CC to be a program name with arguments.
 
12228
compiler=$CC
 
12229
 
 
12230
 
 
12231
# Allow CC to be a program name with arguments.
 
12232
lt_save_CC=$CC
 
12233
lt_save_LD=$LD
 
12234
lt_save_GCC=$GCC
 
12235
GCC=$GXX
 
12236
lt_save_with_gnu_ld=$with_gnu_ld
 
12237
lt_save_path_LD=$lt_cv_path_LD
 
12238
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
12239
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
12240
else
 
12241
  unset lt_cv_prog_gnu_ld
 
12242
fi
 
12243
if test -n "${lt_cv_path_LDCXX+set}"; then
 
12244
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
12245
else
 
12246
  unset lt_cv_path_LD
 
12247
fi
 
12248
test -z "${LDCXX+set}" || LD=$LDCXX
 
12249
CC=${CXX-"c++"}
 
12250
compiler=$CC
 
12251
compiler_CXX=$CC
 
12252
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
12253
 
 
12254
# We don't want -fno-exception wen compiling C++ code, so set the
 
12255
# no_builtin_flag separately
 
12256
if test "$GXX" = yes; then
 
12257
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
12258
else
 
12259
  lt_prog_compiler_no_builtin_flag_CXX=
 
12260
fi
 
12261
 
 
12262
if test "$GXX" = yes; then
 
12263
  # Set up default GNU C++ configuration
 
12264
 
 
12265
 
 
12266
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
12267
if test "${with_gnu_ld+set}" = set; then
 
12268
  withval="$with_gnu_ld"
 
12269
  test "$withval" = no || with_gnu_ld=yes
 
12270
else
 
12271
  with_gnu_ld=no
 
12272
fi;
 
12273
ac_prog=ld
 
12274
if test "$GCC" = yes; then
 
12275
  # Check if gcc -print-prog-name=ld gives a path.
 
12276
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
12277
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
12278
  case $host in
 
12279
  *-*-mingw*)
 
12280
    # gcc leaves a trailing carriage return which upsets mingw
 
12281
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12282
  *)
 
12283
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12284
  esac
 
12285
  case $ac_prog in
 
12286
    # Accept absolute paths.
 
12287
    [\\/]* | ?:[\\/]*)
 
12288
      re_direlt='/[^/][^/]*/\.\./'
 
12289
      # Canonicalize the pathname of ld
 
12290
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
12291
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
12292
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
12293
      done
 
12294
      test -z "$LD" && LD="$ac_prog"
 
12295
      ;;
 
12296
  "")
 
12297
    # If it fails, then pretend we aren't using GCC.
 
12298
    ac_prog=ld
 
12299
    ;;
 
12300
  *)
 
12301
    # If it is relative, then search for the first ld in PATH.
 
12302
    with_gnu_ld=unknown
 
12303
    ;;
 
12304
  esac
 
12305
elif test "$with_gnu_ld" = yes; then
 
12306
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
12307
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
12308
else
 
12309
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
12310
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
12311
fi
 
12312
if test "${lt_cv_path_LD+set}" = set; then
 
12313
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12314
else
 
12315
  if test -z "$LD"; then
 
12316
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
12317
  for ac_dir in $PATH; do
 
12318
    IFS="$lt_save_ifs"
 
12319
    test -z "$ac_dir" && ac_dir=.
 
12320
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12321
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
12322
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12323
      # but apparently some GNU ld's only accept -v.
 
12324
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12325
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
12326
      *GNU* | *'with BFD'*)
 
12327
        test "$with_gnu_ld" != no && break
 
12328
        ;;
 
12329
      *)
 
12330
        test "$with_gnu_ld" != yes && break
 
12331
        ;;
 
12332
      esac
 
12333
    fi
 
12334
  done
 
12335
  IFS="$lt_save_ifs"
 
12336
else
 
12337
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
12338
fi
 
12339
fi
 
12340
 
 
12341
LD="$lt_cv_path_LD"
 
12342
if test -n "$LD"; then
 
12343
  echo "$as_me:$LINENO: result: $LD" >&5
 
12344
echo "${ECHO_T}$LD" >&6
 
12345
else
 
12346
  echo "$as_me:$LINENO: result: no" >&5
 
12347
echo "${ECHO_T}no" >&6
 
12348
fi
 
12349
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
12350
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
12351
   { (exit 1); exit 1; }; }
 
12352
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
12353
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
12354
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
12355
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12356
else
 
12357
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
12358
case `$LD -v 2>&1 </dev/null` in
 
12359
*GNU* | *'with BFD'*)
 
12360
  lt_cv_prog_gnu_ld=yes
 
12361
  ;;
 
12362
*)
 
12363
  lt_cv_prog_gnu_ld=no
 
12364
  ;;
 
12365
esac
 
12366
fi
 
12367
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
12368
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
12369
with_gnu_ld=$lt_cv_prog_gnu_ld
 
12370
 
 
12371
 
 
12372
 
 
12373
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
12374
  # archiving commands below assume that GNU ld is being used.
 
12375
  if test "$with_gnu_ld" = yes; then
 
12376
    archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
 
12377
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12378
 
 
12379
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12380
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12381
 
 
12382
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
12383
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
12384
    #     investigate it a little bit more. (MM)
 
12385
    wlarc='${wl}'
 
12386
 
 
12387
    # ancient GNU ld didn't support --whole-archive et. al.
 
12388
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
12389
        grep 'no-whole-archive' > /dev/null; then
 
12390
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12391
    else
 
12392
      whole_archive_flag_spec_CXX=
 
12393
    fi
 
12394
  else
 
12395
    with_gnu_ld=no
 
12396
    wlarc=
 
12397
 
 
12398
    # A generic and very simple default shared library creation
 
12399
    # command for GNU C++ for the case where it uses the native
 
12400
    # linker, instead of GNU ld.  If possible, this setting should
 
12401
    # overridden to take advantage of the native linker features on
 
12402
    # the platform it is being used on.
 
12403
    archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib'
 
12404
  fi
 
12405
 
 
12406
  # Commands to make compiler produce verbose output that lists
 
12407
  # what "hidden" libraries, object files and flags are used when
 
12408
  # linking a shared library.
 
12409
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12410
 
 
12411
else
 
12412
  GXX=no
 
12413
  with_gnu_ld=no
 
12414
  wlarc=
 
12415
fi
 
12416
 
 
12417
# PORTME: fill in a description of your system's C++ link characteristics
 
12418
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12419
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
12420
ld_shlibs_CXX=yes
 
12421
case $host_os in
 
12422
  aix3*)
 
12423
    # FIXME: insert proper C++ library support
 
12424
    ld_shlibs_CXX=no
 
12425
    ;;
 
12426
  aix4* | aix5*)
 
12427
    if test "$host_cpu" = ia64; then
 
12428
      # On IA64, the linker does run time linking by default, so we don't
 
12429
      # have to do anything special.
 
12430
      aix_use_runtimelinking=no
 
12431
      exp_sym_flag='-Bexport'
 
12432
      no_entry_flag=""
 
12433
    else
 
12434
      # KDE requires run time linking.  Make it the default.
 
12435
      aix_use_runtimelinking=yes
 
12436
      exp_sym_flag='-bexport'
 
12437
      no_entry_flag='-bnoentry'
 
12438
    fi
 
12439
 
 
12440
    # When large executables or shared objects are built, AIX ld can
 
12441
    # have problems creating the table of contents.  If linking a library
 
12442
    # or program results in "error TOC overflow" add -mminimal-toc to
 
12443
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
12444
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
12445
 
 
12446
    archive_cmds_CXX=''
 
12447
    hardcode_direct_CXX=yes
 
12448
    hardcode_libdir_separator_CXX=':'
 
12449
    link_all_deplibs_CXX=yes
 
12450
 
 
12451
    if test "$GXX" = yes; then
 
12452
      case $host_os in aix4.012|aix4.012.*)
 
12453
      # We only want to do this on AIX 4.2 and lower, the check
 
12454
      # below for broken collect2 doesn't work under 4.3+
 
12455
        collect2name=`${CC} -print-prog-name=collect2`
 
12456
        if test -f "$collect2name" && \
 
12457
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
12458
        then
 
12459
          # We have reworked collect2
 
12460
          hardcode_direct_CXX=yes
 
12461
        else
 
12462
          # We have old collect2
 
12463
          hardcode_direct_CXX=unsupported
 
12464
          # It fails to find uninstalled libraries when the uninstalled
 
12465
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
12466
          # to unsupported forces relinking
 
12467
          hardcode_minus_L_CXX=yes
 
12468
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12469
          hardcode_libdir_separator_CXX=
 
12470
        fi
 
12471
      esac
 
12472
      shared_flag='-shared'
 
12473
    else
 
12474
      # not using gcc
 
12475
      if test "$host_cpu" = ia64; then
 
12476
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
12477
        # chokes on -Wl,-G. The following line is correct:
 
12478
        shared_flag='-G'
 
12479
      else
 
12480
        if test "$aix_use_runtimelinking" = yes; then
 
12481
          shared_flag='-qmkshrobj ${wl}-G'
 
12482
        else
 
12483
          shared_flag='-qmkshrobj'
 
12484
        fi
 
12485
      fi
 
12486
    fi
 
12487
 
 
12488
    # Let the compiler handle the export list.
 
12489
    always_export_symbols_CXX=no
 
12490
    if test "$aix_use_runtimelinking" = yes; then
 
12491
      # Warning - without using the other runtime loading flags (-brtl),
 
12492
      # -berok will link without error, but may produce a broken library.
 
12493
      allow_undefined_flag_CXX='-berok'
 
12494
      # Determine the default libpath from the value encoded in an empty executable.
 
12495
      cat >conftest.$ac_ext <<_ACEOF
 
12496
/* confdefs.h.  */
 
12497
_ACEOF
 
12498
cat confdefs.h >>conftest.$ac_ext
 
12499
cat >>conftest.$ac_ext <<_ACEOF
 
12500
/* end confdefs.h.  */
 
12501
 
 
12502
int
 
12503
main ()
 
12504
{
 
12505
 
 
12506
  ;
 
12507
  return 0;
 
12508
}
 
12509
_ACEOF
 
12510
rm -f conftest.$ac_objext conftest$ac_exeext
 
12511
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12512
  (eval $ac_link) 2>conftest.er1
 
12513
  ac_status=$?
 
12514
  grep -v '^ *+' conftest.er1 >conftest.err
 
12515
  rm -f conftest.er1
 
12516
  cat conftest.err >&5
 
12517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12518
  (exit $ac_status); } &&
 
12519
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12520
                         || test ! -s conftest.err'
 
12521
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12522
  (eval $ac_try) 2>&5
 
12523
  ac_status=$?
 
12524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12525
  (exit $ac_status); }; } &&
 
12526
         { ac_try='test -s conftest$ac_exeext'
 
12527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12528
  (eval $ac_try) 2>&5
 
12529
  ac_status=$?
 
12530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12531
  (exit $ac_status); }; }; then
 
12532
 
 
12533
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
12534
}'`
 
12535
# Check for a 64-bit object if we didn't find anything.
 
12536
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
12537
}'`; fi
 
12538
else
 
12539
  echo "$as_me: failed program was:" >&5
 
12540
sed 's/^/| /' conftest.$ac_ext >&5
 
12541
 
 
12542
fi
 
12543
rm -f conftest.err conftest.$ac_objext \
 
12544
      conftest$ac_exeext conftest.$ac_ext
 
12545
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12546
 
 
12547
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12548
 
 
12549
      archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
 
12550
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
12551
     else
 
12552
      if test "$host_cpu" = ia64; then
 
12553
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
12554
        allow_undefined_flag_CXX="-z nodefs"
 
12555
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
12556
      else
 
12557
        # Determine the default libpath from the value encoded in an empty executable.
 
12558
        cat >conftest.$ac_ext <<_ACEOF
 
12559
/* confdefs.h.  */
 
12560
_ACEOF
 
12561
cat confdefs.h >>conftest.$ac_ext
 
12562
cat >>conftest.$ac_ext <<_ACEOF
 
12563
/* end confdefs.h.  */
 
12564
 
 
12565
int
 
12566
main ()
 
12567
{
 
12568
 
 
12569
  ;
 
12570
  return 0;
 
12571
}
 
12572
_ACEOF
 
12573
rm -f conftest.$ac_objext conftest$ac_exeext
 
12574
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12575
  (eval $ac_link) 2>conftest.er1
 
12576
  ac_status=$?
 
12577
  grep -v '^ *+' conftest.er1 >conftest.err
 
12578
  rm -f conftest.er1
 
12579
  cat conftest.err >&5
 
12580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12581
  (exit $ac_status); } &&
 
12582
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12583
                         || test ! -s conftest.err'
 
12584
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12585
  (eval $ac_try) 2>&5
 
12586
  ac_status=$?
 
12587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12588
  (exit $ac_status); }; } &&
 
12589
         { ac_try='test -s conftest$ac_exeext'
 
12590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12591
  (eval $ac_try) 2>&5
 
12592
  ac_status=$?
 
12593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12594
  (exit $ac_status); }; }; then
 
12595
 
 
12596
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
12597
}'`
 
12598
# Check for a 64-bit object if we didn't find anything.
 
12599
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
12600
}'`; fi
 
12601
else
 
12602
  echo "$as_me: failed program was:" >&5
 
12603
sed 's/^/| /' conftest.$ac_ext >&5
 
12604
 
 
12605
fi
 
12606
rm -f conftest.err conftest.$ac_objext \
 
12607
      conftest$ac_exeext conftest.$ac_ext
 
12608
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12609
 
 
12610
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12611
        # Warning - without using the other run time loading flags,
 
12612
        # -berok will link without error, but may produce a broken library.
 
12613
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
12614
        allow_undefined_flag_CXX=' ${wl}-berok'
 
12615
        # -bexpall does not export symbols beginning with underscore (_)
 
12616
        always_export_symbols_CXX=yes
 
12617
        # Exported symbols can be pulled into shared objects from archives
 
12618
        whole_archive_flag_spec_CXX=' '
 
12619
        archive_cmds_need_lc_CXX=yes
 
12620
        # This is similar to how AIX traditionally builds it's shared libraries.
 
12621
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
12622
      fi
 
12623
    fi
 
12624
    ;;
 
12625
  chorus*)
 
12626
    case $cc_basename in
 
12627
      *)
 
12628
        # FIXME: insert proper C++ library support
 
12629
        ld_shlibs_CXX=no
 
12630
        ;;
 
12631
    esac
 
12632
    ;;
 
12633
 
 
12634
  cygwin* | mingw* | pw32*)
 
12635
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12636
    # as there is no search path for DLLs.
 
12637
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12638
    allow_undefined_flag_CXX=no
 
12639
    always_export_symbols_CXX=no
 
12640
    enable_shared_with_static_runtimes_CXX=yes
 
12641
 
 
12642
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
12643
      archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
12644
      # If the export-symbols file already is a .def file (1st line
 
12645
      # is EXPORTS), use it as is; otherwise, prepend...
 
12646
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12647
        cp $export_symbols $output_objdir/$soname.def;
 
12648
      else
 
12649
        echo EXPORTS > $output_objdir/$soname.def;
 
12650
        cat $export_symbols >> $output_objdir/$soname.def;
 
12651
      fi~
 
12652
      $CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
12653
    else
 
12654
      ld_shlibs_CXX=no
 
12655
    fi
 
12656
  ;;
 
12657
 
 
12658
  darwin* | rhapsody*)
 
12659
  if test "$GXX" = yes; then
 
12660
    archive_cmds_need_lc_CXX=no
 
12661
    case "$host_os" in
 
12662
    rhapsody* | darwin1.[012])
 
12663
      allow_undefined_flag_CXX='-undefined suppress'
 
12664
      ;;
 
12665
    *) # Darwin 1.3 on
 
12666
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
12667
      ;;
 
12668
    esac
 
12669
    lt_int_apple_cc_single_mod=no
 
12670
    output_verbose_link_cmd='echo'
 
12671
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
12672
      lt_int_apple_cc_single_mod=yes
 
12673
    fi
 
12674
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12675
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
12676
    else
 
12677
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
 
12678
    fi
 
12679
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
12680
 
 
12681
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
12682
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12683
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12684
    else
 
12685
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12686
    fi
 
12687
    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12688
    hardcode_direct_CXX=no
 
12689
    hardcode_automatic_CXX=yes
 
12690
    hardcode_shlibpath_var_CXX=unsupported
 
12691
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
12692
    link_all_deplibs_CXX=yes
 
12693
  else
 
12694
    ld_shlibs_CXX=no
 
12695
  fi
 
12696
    ;;
 
12697
 
 
12698
  dgux*)
 
12699
    case $cc_basename in
 
12700
      ec++)
 
12701
        # FIXME: insert proper C++ library support
 
12702
        ld_shlibs_CXX=no
 
12703
        ;;
 
12704
      ghcx)
 
12705
        # Green Hills C++ Compiler
 
12706
        # FIXME: insert proper C++ library support
 
12707
        ld_shlibs_CXX=no
 
12708
        ;;
 
12709
      *)
 
12710
        # FIXME: insert proper C++ library support
 
12711
        ld_shlibs_CXX=no
 
12712
        ;;
 
12713
    esac
 
12714
    ;;
 
12715
  freebsd12*)
 
12716
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
12717
    ld_shlibs_CXX=no
 
12718
    ;;
 
12719
  freebsd-elf*)
 
12720
    archive_cmds_need_lc_CXX=no
 
12721
    ;;
 
12722
  freebsd*)
 
12723
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12724
    # conventions
 
12725
    ld_shlibs_CXX=yes
 
12726
    ;;
 
12727
  gnu*)
 
12728
    ;;
 
12729
  hpux9*)
 
12730
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12731
    hardcode_libdir_separator_CXX=:
 
12732
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12733
    hardcode_direct_CXX=yes
 
12734
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12735
                                # but as the default
 
12736
                                # location of the library.
 
12737
 
 
12738
    case $cc_basename in
 
12739
    CC)
 
12740
      # FIXME: insert proper C++ library support
 
12741
      ld_shlibs_CXX=no
 
12742
      ;;
 
12743
    aCC)
 
12744
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
12745
      # Commands to make compiler produce verbose output that lists
 
12746
      # what "hidden" libraries, object files and flags are used when
 
12747
      # linking a shared library.
 
12748
      #
 
12749
      # There doesn't appear to be a way to prevent this compiler from
 
12750
      # explicitly linking system object files so we need to strip them
 
12751
      # from the output so that they don't get included in the library
 
12752
      # dependencies.
 
12753
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12754
      ;;
 
12755
    *)
 
12756
      if test "$GXX" = yes; then
 
12757
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
12758
      else
 
12759
        # FIXME: insert proper C++ library support
 
12760
        ld_shlibs_CXX=no
 
12761
      fi
 
12762
      ;;
 
12763
    esac
 
12764
    ;;
 
12765
  hpux10*|hpux11*)
 
12766
    if test $with_gnu_ld = no; then
 
12767
      case "$host_cpu" in
 
12768
      hppa*64*)
 
12769
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12770
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
12771
        hardcode_libdir_separator_CXX=:
 
12772
        ;;
 
12773
      ia64*)
 
12774
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12775
        ;;
 
12776
      *)
 
12777
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12778
        hardcode_libdir_separator_CXX=:
 
12779
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12780
        ;;
 
12781
      esac
 
12782
    fi
 
12783
    case "$host_cpu" in
 
12784
    hppa*64*)
 
12785
      hardcode_direct_CXX=no
 
12786
      hardcode_shlibpath_var_CXX=no
 
12787
      ;;
 
12788
    ia64*)
 
12789
      hardcode_direct_CXX=no
 
12790
      hardcode_shlibpath_var_CXX=no
 
12791
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12792
                                              # but as the default
 
12793
                                              # location of the library.
 
12794
      ;;
 
12795
    *)
 
12796
      hardcode_direct_CXX=yes
 
12797
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12798
                                              # but as the default
 
12799
                                              # location of the library.
 
12800
      ;;
 
12801
    esac
 
12802
 
 
12803
    case $cc_basename in
 
12804
      CC)
 
12805
        # FIXME: insert proper C++ library support
 
12806
        ld_shlibs_CXX=no
 
12807
        ;;
 
12808
      aCC)
 
12809
        case "$host_cpu" in
 
12810
        hppa*64*|ia64*)
 
12811
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
12812
          ;;
 
12813
        *)
 
12814
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
 
12815
          ;;
 
12816
        esac
 
12817
        # Commands to make compiler produce verbose output that lists
 
12818
        # what "hidden" libraries, object files and flags are used when
 
12819
        # linking a shared library.
 
12820
        #
 
12821
        # There doesn't appear to be a way to prevent this compiler from
 
12822
        # explicitly linking system object files so we need to strip them
 
12823
        # from the output so that they don't get included in the library
 
12824
        # dependencies.
 
12825
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12826
        ;;
 
12827
      *)
 
12828
        if test "$GXX" = yes; then
 
12829
          if test $with_gnu_ld = no; then
 
12830
            case "$host_cpu" in
 
12831
            ia64*|hppa*64*)
 
12832
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
12833
              ;;
 
12834
            *)
 
12835
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
 
12836
              ;;
 
12837
            esac
 
12838
          fi
 
12839
        else
 
12840
          # FIXME: insert proper C++ library support
 
12841
          ld_shlibs_CXX=no
 
12842
        fi
 
12843
        ;;
 
12844
    esac
 
12845
    ;;
 
12846
  irix5* | irix6*)
 
12847
    case $cc_basename in
 
12848
      CC)
 
12849
        # SGI C++
 
12850
        archive_cmds_CXX='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
12851
 
 
12852
        # Archives containing C++ object files must be created using
 
12853
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12854
        # necessary to make sure instantiated templates are included
 
12855
        # in the archive.
 
12856
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12857
        ;;
 
12858
      *)
 
12859
        if test "$GXX" = yes; then
 
12860
          if test "$with_gnu_ld" = no; then
 
12861
            archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
12862
          else
 
12863
            archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
12864
          fi
 
12865
        fi
 
12866
        link_all_deplibs_CXX=yes
 
12867
        ;;
 
12868
    esac
 
12869
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12870
    hardcode_libdir_separator_CXX=:
 
12871
    ;;
 
12872
  linux*)
 
12873
    case $cc_basename in
 
12874
      KCC)
 
12875
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12876
 
 
12877
        # KCC will only create a shared library if the output file
 
12878
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12879
        # to its proper name (with version) after linking.
 
12880
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
 
12881
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
12882
        # Commands to make compiler produce verbose output that lists
 
12883
        # what "hidden" libraries, object files and flags are used when
 
12884
        # linking a shared library.
 
12885
        #
 
12886
        # There doesn't appear to be a way to prevent this compiler from
 
12887
        # explicitly linking system object files so we need to strip them
 
12888
        # from the output so that they don't get included in the library
 
12889
        # dependencies.
 
12890
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12891
 
 
12892
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
12893
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12894
 
 
12895
        # Archives containing C++ object files must be created using
 
12896
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12897
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12898
        ;;
 
12899
      icpc)
 
12900
        # Intel C++
 
12901
        with_gnu_ld=yes
 
12902
        archive_cmds_need_lc_CXX=no
 
12903
        archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
 
12904
        archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12905
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12906
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12907
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12908
        ;;
 
12909
      cxx)
 
12910
        # Compaq C++
 
12911
        archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
 
12912
        archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
12913
 
 
12914
        runpath_var=LD_RUN_PATH
 
12915
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12916
        hardcode_libdir_separator_CXX=:
 
12917
 
 
12918
        # Commands to make compiler produce verbose output that lists
 
12919
        # what "hidden" libraries, object files and flags are used when
 
12920
        # linking a shared library.
 
12921
        #
 
12922
        # There doesn't appear to be a way to prevent this compiler from
 
12923
        # explicitly linking system object files so we need to strip them
 
12924
        # from the output so that they don't get included in the library
 
12925
        # dependencies.
 
12926
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12927
        ;;
 
12928
    esac
 
12929
    ;;
 
12930
  lynxos*)
 
12931
    # FIXME: insert proper C++ library support
 
12932
    ld_shlibs_CXX=no
 
12933
    ;;
 
12934
  m88k*)
 
12935
    # FIXME: insert proper C++ library support
 
12936
    ld_shlibs_CXX=no
 
12937
    ;;
 
12938
  mvs*)
 
12939
    case $cc_basename in
 
12940
      cxx)
 
12941
        # FIXME: insert proper C++ library support
 
12942
        ld_shlibs_CXX=no
 
12943
        ;;
 
12944
      *)
 
12945
        # FIXME: insert proper C++ library support
 
12946
        ld_shlibs_CXX=no
 
12947
        ;;
 
12948
    esac
 
12949
    ;;
 
12950
  netbsd*)
 
12951
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12952
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12953
      wlarc=
 
12954
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12955
      hardcode_direct_CXX=yes
 
12956
      hardcode_shlibpath_var_CXX=no
 
12957
    fi
 
12958
    # Workaround some broken pre-1.5 toolchains
 
12959
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12960
    ;;
 
12961
  osf3*)
 
12962
    case $cc_basename in
 
12963
      KCC)
 
12964
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12965
 
 
12966
        # KCC will only create a shared library if the output file
 
12967
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12968
        # to its proper name (with version) after linking.
 
12969
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
 
12970
 
 
12971
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12972
        hardcode_libdir_separator_CXX=:
 
12973
 
 
12974
        # Archives containing C++ object files must be created using
 
12975
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12976
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12977
 
 
12978
        ;;
 
12979
      RCC)
 
12980
        # Rational C++ 2.4.1
 
12981
        # FIXME: insert proper C++ library support
 
12982
        ld_shlibs_CXX=no
 
12983
        ;;
 
12984
      cxx)
 
12985
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12986
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
12987
 
 
12988
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12989
        hardcode_libdir_separator_CXX=:
 
12990
 
 
12991
        # Commands to make compiler produce verbose output that lists
 
12992
        # what "hidden" libraries, object files and flags are used when
 
12993
        # linking a shared library.
 
12994
        #
 
12995
        # There doesn't appear to be a way to prevent this compiler from
 
12996
        # explicitly linking system object files so we need to strip them
 
12997
        # from the output so that they don't get included in the library
 
12998
        # dependencies.
 
12999
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
13000
        ;;
 
13001
      *)
 
13002
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13003
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13004
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
13005
 
 
13006
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13007
          hardcode_libdir_separator_CXX=:
 
13008
 
 
13009
          # Commands to make compiler produce verbose output that lists
 
13010
          # what "hidden" libraries, object files and flags are used when
 
13011
          # linking a shared library.
 
13012
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
13013
 
 
13014
        else
 
13015
          # FIXME: insert proper C++ library support
 
13016
          ld_shlibs_CXX=no
 
13017
        fi
 
13018
        ;;
 
13019
    esac
 
13020
    ;;
 
13021
  osf4* | osf5*)
 
13022
    case $cc_basename in
 
13023
      KCC)
 
13024
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13025
 
 
13026
        # KCC will only create a shared library if the output file
 
13027
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13028
        # to its proper name (with version) after linking.
 
13029
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
 
13030
 
 
13031
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13032
        hardcode_libdir_separator_CXX=:
 
13033
 
 
13034
        # Archives containing C++ object files must be created using
 
13035
        # the KAI C++ compiler.
 
13036
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
13037
        ;;
 
13038
      RCC)
 
13039
        # Rational C++ 2.4.1
 
13040
        # FIXME: insert proper C++ library support
 
13041
        ld_shlibs_CXX=no
 
13042
        ;;
 
13043
      cxx)
 
13044
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
13045
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
13046
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
13047
          echo "-hidden">> $lib.exp~
 
13048
          $CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
13049
          $rm $lib.exp'
 
13050
 
 
13051
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13052
        hardcode_libdir_separator_CXX=:
 
13053
 
 
13054
        # Commands to make compiler produce verbose output that lists
 
13055
        # what "hidden" libraries, object files and flags are used when
 
13056
        # linking a shared library.
 
13057
        #
 
13058
        # There doesn't appear to be a way to prevent this compiler from
 
13059
        # explicitly linking system object files so we need to strip them
 
13060
        # from the output so that they don't get included in the library
 
13061
        # dependencies.
 
13062
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
13063
        ;;
 
13064
      *)
 
13065
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13066
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13067
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
13068
 
 
13069
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13070
          hardcode_libdir_separator_CXX=:
 
13071
 
 
13072
          # Commands to make compiler produce verbose output that lists
 
13073
          # what "hidden" libraries, object files and flags are used when
 
13074
          # linking a shared library.
 
13075
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
13076
 
 
13077
        else
 
13078
          # FIXME: insert proper C++ library support
 
13079
          ld_shlibs_CXX=no
 
13080
        fi
 
13081
        ;;
 
13082
    esac
 
13083
    ;;
 
13084
  psos*)
 
13085
    # FIXME: insert proper C++ library support
 
13086
    ld_shlibs_CXX=no
 
13087
    ;;
 
13088
  sco*)
 
13089
    archive_cmds_need_lc_CXX=no
 
13090
    case $cc_basename in
 
13091
      CC)
 
13092
        # FIXME: insert proper C++ library support
 
13093
        ld_shlibs_CXX=no
 
13094
        ;;
 
13095
      *)
 
13096
        # FIXME: insert proper C++ library support
 
13097
        ld_shlibs_CXX=no
 
13098
        ;;
 
13099
    esac
 
13100
    ;;
 
13101
  sunos4*)
 
13102
    case $cc_basename in
 
13103
      CC)
 
13104
        # Sun C++ 4.x
 
13105
        # FIXME: insert proper C++ library support
 
13106
        ld_shlibs_CXX=no
 
13107
        ;;
 
13108
      lcc)
 
13109
        # Lucid
 
13110
        # FIXME: insert proper C++ library support
 
13111
        ld_shlibs_CXX=no
 
13112
        ;;
 
13113
      *)
 
13114
        # FIXME: insert proper C++ library support
 
13115
        ld_shlibs_CXX=no
 
13116
        ;;
 
13117
    esac
 
13118
    ;;
 
13119
  solaris*)
 
13120
    case $cc_basename in
 
13121
      CC)
 
13122
        # Sun C++ 4.2, 5.x and Centerline C++
 
13123
        no_undefined_flag_CXX=' -zdefs'
 
13124
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
 
13125
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13126
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
 
13127
 
 
13128
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13129
        hardcode_shlibpath_var_CXX=no
 
13130
        case $host_os in
 
13131
          solaris2.0-5 | solaris2.0-5.*) ;;
 
13132
          *)
 
13133
            # The C++ compiler is used as linker so we must use $wl
 
13134
            # flag to pass the commands to the underlying system
 
13135
            # linker.
 
13136
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13137
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
13138
            ;;
 
13139
        esac
 
13140
        link_all_deplibs_CXX=yes
 
13141
 
 
13142
        # Commands to make compiler produce verbose output that lists
 
13143
        # what "hidden" libraries, object files and flags are used when
 
13144
        # linking a shared library.
 
13145
        #
 
13146
        # There doesn't appear to be a way to prevent this compiler from
 
13147
        # explicitly linking system object files so we need to strip them
 
13148
        # from the output so that they don't get included in the library
 
13149
        # dependencies.
 
13150
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
13151
 
 
13152
        # Archives containing C++ object files must be created using
 
13153
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13154
        # necessary to make sure instantiated templates are included
 
13155
        # in the archive.
 
13156
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13157
        ;;
 
13158
      gcx)
 
13159
        # Green Hills C++ Compiler
 
13160
        archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
 
13161
 
 
13162
        # The C++ compiler must be used to create the archive.
 
13163
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
13164
        ;;
 
13165
      *)
 
13166
        # GNU C++ compiler with Solaris linker
 
13167
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13168
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
13169
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
13170
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
 
13171
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13172
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
 
13173
 
 
13174
            # Commands to make compiler produce verbose output that lists
 
13175
            # what "hidden" libraries, object files and flags are used when
 
13176
            # linking a shared library.
 
13177
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
13178
          else
 
13179
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
13180
            # platform.
 
13181
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
 
13182
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13183
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
 
13184
 
 
13185
            # Commands to make compiler produce verbose output that lists
 
13186
            # what "hidden" libraries, object files and flags are used when
 
13187
            # linking a shared library.
 
13188
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
13189
          fi
 
13190
 
 
13191
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
13192
        fi
 
13193
        ;;
 
13194
    esac
 
13195
    ;;
 
13196
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
13197
    archive_cmds_need_lc_CXX=no
 
13198
    ;;
 
13199
  tandem*)
 
13200
    case $cc_basename in
 
13201
      NCC)
 
13202
        # NonStop-UX NCC 3.20
 
13203
        # FIXME: insert proper C++ library support
 
13204
        ld_shlibs_CXX=no
 
13205
        ;;
 
13206
      *)
 
13207
        # FIXME: insert proper C++ library support
 
13208
        ld_shlibs_CXX=no
 
13209
        ;;
 
13210
    esac
 
13211
    ;;
 
13212
  vxworks*)
 
13213
    # FIXME: insert proper C++ library support
 
13214
    ld_shlibs_CXX=no
 
13215
    ;;
 
13216
  *)
 
13217
    # FIXME: insert proper C++ library support
 
13218
    ld_shlibs_CXX=no
 
13219
    ;;
 
13220
esac
 
13221
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13222
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
13223
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13224
 
 
13225
GCC_CXX="$GXX"
 
13226
LD_CXX="$LD"
 
13227
 
 
13228
## CAVEAT EMPTOR:
 
13229
## There is no encapsulation within the following macros, do not change
 
13230
## the running order or otherwise move them around unless you know exactly
 
13231
## what you are doing...
 
13232
 
 
13233
cat > conftest.$ac_ext <<EOF
 
13234
class Foo
 
13235
{
 
13236
public:
 
13237
  Foo (void) { a = 0; }
 
13238
private:
 
13239
  int a;
 
13240
};
 
13241
EOF
 
13242
 
 
13243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13244
  (eval $ac_compile) 2>&5
 
13245
  ac_status=$?
 
13246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13247
  (exit $ac_status); }; then
 
13248
  # Parse the compiler output and extract the necessary
 
13249
  # objects, libraries and library flags.
 
13250
 
 
13251
  # Sentinel used to keep track of whether or not we are before
 
13252
  # the conftest object file.
 
13253
  pre_test_object_deps_done=no
 
13254
 
 
13255
  # The `*' in the case matches for architectures that use `case' in
 
13256
  # $output_verbose_cmd can trigger glob expansion during the loop
 
13257
  # eval without this substitution.
 
13258
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
13259
 
 
13260
  for p in `eval $output_verbose_link_cmd`; do
 
13261
    case $p in
 
13262
 
 
13263
    -L* | -R* | -l*)
 
13264
       # Some compilers place space between "-{L,R}" and the path.
 
13265
       # Remove the space.
 
13266
       if test $p = "-L" \
 
13267
          || test $p = "-R"; then
 
13268
         prev=$p
 
13269
         continue
 
13270
       else
 
13271
         prev=
 
13272
       fi
 
13273
 
 
13274
       if test "$pre_test_object_deps_done" = no; then
 
13275
         case $p in
 
13276
         -L* | -R*)
 
13277
           # Internal compiler library paths should come after those
 
13278
           # provided the user.  The postdeps already come after the
 
13279
           # user supplied libs so there is no need to process them.
 
13280
           if test -z "$compiler_lib_search_path_CXX"; then
 
13281
             compiler_lib_search_path_CXX="${prev}${p}"
 
13282
           else
 
13283
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
13284
           fi
 
13285
           ;;
 
13286
         # The "-l" case would never come before the object being
 
13287
         # linked, so don't bother handling this case.
 
13288
         esac
 
13289
       else
 
13290
         if test -z "$postdeps_CXX"; then
 
13291
           postdeps_CXX="${prev}${p}"
 
13292
         else
 
13293
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
13294
         fi
 
13295
       fi
 
13296
       ;;
 
13297
 
 
13298
    *.$objext|*.$libext)
 
13299
       # This assumes that the test object file only shows up
 
13300
       # once in the compiler output.
 
13301
       if test "$p" = "conftest.$objext"; then
 
13302
         pre_test_object_deps_done=yes
 
13303
         continue
 
13304
       fi
 
13305
 
 
13306
       if test "$pre_test_object_deps_done" = no; then
 
13307
         if test -z "$predep_objects_CXX"; then
 
13308
           predep_objects_CXX="$p"
 
13309
         else
 
13310
           predep_objects_CXX="$predep_objects_CXX $p"
 
13311
         fi
 
13312
       else
 
13313
         if test -z "$postdep_objects_CXX"; then
 
13314
           postdep_objects_CXX="$p"
 
13315
         else
 
13316
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
13317
         fi
 
13318
       fi
 
13319
       ;;
 
13320
 
 
13321
    *) ;; # Ignore the rest.
 
13322
 
 
13323
    esac
 
13324
  done
 
13325
 
 
13326
  # Clean up.
 
13327
  rm -f a.out a.exe
 
13328
else
 
13329
  echo "libtool.m4: error: problem compiling CXX test program"
 
13330
fi
 
13331
 
 
13332
$rm -f confest.$objext
 
13333
 
 
13334
case " $postdeps_CXX " in
 
13335
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
13336
esac
 
13337
 
 
13338
lt_prog_compiler_wl_CXX=
 
13339
lt_prog_compiler_pic_CXX=
 
13340
lt_prog_compiler_static_CXX=
 
13341
 
 
13342
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13343
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13344
 
 
13345
  # C++ specific cases for pic, static, wl, etc.
 
13346
  if test "$GXX" = yes; then
 
13347
    lt_prog_compiler_wl_CXX='-Wl,'
 
13348
    lt_prog_compiler_static_CXX='-static'
 
13349
 
 
13350
    case $host_os in
 
13351
    aix*)
 
13352
      # All AIX code is PIC.
 
13353
      if test "$host_cpu" = ia64; then
 
13354
        # AIX 5 now supports IA64 processor
 
13355
        lt_prog_compiler_static_CXX='-Bstatic'
 
13356
      fi
 
13357
      ;;
 
13358
    amigaos*)
 
13359
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13360
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13361
      # like `-m68040'.
 
13362
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
13363
      ;;
 
13364
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13365
      # PIC is the default for these OSes.
 
13366
      ;;
 
13367
    mingw* | os2* | pw32*)
 
13368
      # This hack is so that the source file can tell whether it is being
 
13369
      # built for inclusion in a dll (and should export symbols for example).
 
13370
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
13371
      ;;
 
13372
    darwin* | rhapsody*)
 
13373
      # PIC is the default on this platform
 
13374
      # Common symbols not allowed in MH_DYLIB files
 
13375
      lt_prog_compiler_pic_CXX='-fno-common'
 
13376
      ;;
 
13377
    *djgpp*)
 
13378
      # DJGPP does not support shared libraries at all
 
13379
      lt_prog_compiler_pic_CXX=
 
13380
      ;;
 
13381
    sysv4*MP*)
 
13382
      if test -d /usr/nec; then
 
13383
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
13384
      fi
 
13385
      ;;
 
13386
    hpux*)
 
13387
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13388
      # not for PA HP-UX.
 
13389
      case "$host_cpu" in
 
13390
      hppa*64*|ia64*)
 
13391
        ;;
 
13392
      *)
 
13393
        lt_prog_compiler_pic_CXX='-fPIC'
 
13394
        ;;
 
13395
      esac
 
13396
      ;;
 
13397
    *)
 
13398
      lt_prog_compiler_pic_CXX='-fPIC'
 
13399
      ;;
 
13400
    esac
 
13401
  else
 
13402
    case $host_os in
 
13403
      aix4* | aix5*)
 
13404
        # All AIX code is PIC.
 
13405
        if test "$host_cpu" = ia64; then
 
13406
          # AIX 5 now supports IA64 processor
 
13407
          lt_prog_compiler_static_CXX='-Bstatic'
 
13408
        else
 
13409
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
13410
        fi
 
13411
        ;;
 
13412
      chorus*)
 
13413
        case $cc_basename in
 
13414
        cxch68)
 
13415
          # Green Hills C++ Compiler
 
13416
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
13417
          ;;
 
13418
        esac
 
13419
        ;;
 
13420
      dgux*)
 
13421
        case $cc_basename in
 
13422
          ec++)
 
13423
            lt_prog_compiler_pic_CXX='-KPIC'
 
13424
            ;;
 
13425
          ghcx)
 
13426
            # Green Hills C++ Compiler
 
13427
            lt_prog_compiler_pic_CXX='-pic'
 
13428
            ;;
 
13429
          *)
 
13430
            ;;
 
13431
        esac
 
13432
        ;;
 
13433
      freebsd*)
 
13434
        # FreeBSD uses GNU C++
 
13435
        ;;
 
13436
      hpux9* | hpux10* | hpux11*)
 
13437
        case $cc_basename in
 
13438
          CC)
 
13439
            lt_prog_compiler_wl_CXX='-Wl,'
 
13440
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
13441
            if test "$host_cpu" != ia64; then
 
13442
              lt_prog_compiler_pic_CXX='+Z'
 
13443
            fi
 
13444
            ;;
 
13445
          aCC)
 
13446
            lt_prog_compiler_wl_CXX='-Wl,'
 
13447
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
13448
            case "$host_cpu" in
 
13449
            hppa*64*|ia64*)
 
13450
              # +Z the default
 
13451
              ;;
 
13452
            *)
 
13453
              lt_prog_compiler_pic_CXX='+Z'
 
13454
              ;;
 
13455
            esac
 
13456
            ;;
 
13457
          *)
 
13458
            ;;
 
13459
        esac
 
13460
        ;;
 
13461
      irix5* | irix6* | nonstopux*)
 
13462
        case $cc_basename in
 
13463
          CC)
 
13464
            lt_prog_compiler_wl_CXX='-Wl,'
 
13465
            lt_prog_compiler_static_CXX='-non_shared'
 
13466
            # CC pic flag -KPIC is the default.
 
13467
            ;;
 
13468
          *)
 
13469
            ;;
 
13470
        esac
 
13471
        ;;
 
13472
      linux*)
 
13473
        case $cc_basename in
 
13474
          KCC)
 
13475
            # KAI C++ Compiler
 
13476
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13477
            lt_prog_compiler_pic_CXX='-fPIC'
 
13478
            ;;
 
13479
          icpc)
 
13480
            # Intel C++
 
13481
            lt_prog_compiler_wl_CXX='-Wl,'
 
13482
            lt_prog_compiler_pic_CXX='-KPIC'
 
13483
            lt_prog_compiler_static_CXX='-static'
 
13484
            ;;
 
13485
          cxx)
 
13486
            # Compaq C++
 
13487
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13488
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13489
            lt_prog_compiler_pic_CXX=
 
13490
            lt_prog_compiler_static_CXX='-non_shared'
 
13491
            ;;
 
13492
          *)
 
13493
            ;;
 
13494
        esac
 
13495
        ;;
 
13496
      lynxos*)
 
13497
        ;;
 
13498
      m88k*)
 
13499
        ;;
 
13500
      mvs*)
 
13501
        case $cc_basename in
 
13502
          cxx)
 
13503
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13504
            ;;
 
13505
          *)
 
13506
            ;;
 
13507
        esac
 
13508
        ;;
 
13509
      netbsd*)
 
13510
        ;;
 
13511
      osf3* | osf4* | osf5*)
 
13512
        case $cc_basename in
 
13513
          KCC)
 
13514
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13515
            ;;
 
13516
          RCC)
 
13517
            # Rational C++ 2.4.1
 
13518
            lt_prog_compiler_pic_CXX='-pic'
 
13519
            ;;
 
13520
          cxx)
 
13521
            # Digital/Compaq C++
 
13522
            lt_prog_compiler_wl_CXX='-Wl,'
 
13523
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13524
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13525
            lt_prog_compiler_pic_CXX=
 
13526
            lt_prog_compiler_static_CXX='-non_shared'
 
13527
            ;;
 
13528
          *)
 
13529
            ;;
 
13530
        esac
 
13531
        ;;
 
13532
      psos*)
 
13533
        ;;
 
13534
      sco*)
 
13535
        case $cc_basename in
 
13536
          CC)
 
13537
            lt_prog_compiler_pic_CXX='-fPIC'
 
13538
            ;;
 
13539
          *)
 
13540
            ;;
 
13541
        esac
 
13542
        ;;
 
13543
      solaris*)
 
13544
        case $cc_basename in
 
13545
          CC)
 
13546
            # Sun C++ 4.2, 5.x and Centerline C++
 
13547
            lt_prog_compiler_pic_CXX='-KPIC'
 
13548
            lt_prog_compiler_static_CXX='-Bstatic'
 
13549
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13550
            ;;
 
13551
          gcx)
 
13552
            # Green Hills C++ Compiler
 
13553
            lt_prog_compiler_pic_CXX='-PIC'
 
13554
            ;;
 
13555
          *)
 
13556
            ;;
 
13557
        esac
 
13558
        ;;
 
13559
      sunos4*)
 
13560
        case $cc_basename in
 
13561
          CC)
 
13562
            # Sun C++ 4.x
 
13563
            lt_prog_compiler_pic_CXX='-pic'
 
13564
            lt_prog_compiler_static_CXX='-Bstatic'
 
13565
            ;;
 
13566
          lcc)
 
13567
            # Lucid
 
13568
            lt_prog_compiler_pic_CXX='-pic'
 
13569
            ;;
 
13570
          *)
 
13571
            ;;
 
13572
        esac
 
13573
        ;;
 
13574
      tandem*)
 
13575
        case $cc_basename in
 
13576
          NCC)
 
13577
            # NonStop-UX NCC 3.20
 
13578
            lt_prog_compiler_pic_CXX='-KPIC'
 
13579
            ;;
 
13580
          *)
 
13581
            ;;
 
13582
        esac
 
13583
        ;;
 
13584
      unixware*)
 
13585
        ;;
 
13586
      vxworks*)
 
13587
        ;;
 
13588
      *)
 
13589
        lt_prog_compiler_can_build_shared_CXX=no
 
13590
        ;;
 
13591
    esac
 
13592
  fi
 
13593
 
 
13594
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
13595
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
13596
 
 
13597
#
 
13598
# Check to make sure the PIC flag actually works.
 
13599
#
 
13600
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13601
 
 
13602
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13603
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
13604
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
13605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13606
else
 
13607
  lt_prog_compiler_pic_works_CXX=no
 
13608
  ac_outfile=conftest.$ac_objext
 
13609
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13610
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13611
   # Insert the option either (1) after the last *FLAGS variable, or
 
13612
   # (2) before a word containing "conftest.", or (3) at the end.
 
13613
   # Note that $ac_compile itself does not contain backslashes and begins
 
13614
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13615
   # The option is referenced via a variable to avoid confusing sed.
 
13616
   lt_compile=`echo "$ac_compile" | $SED \
 
13617
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13618
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13619
   -e 's:$: $lt_compiler_flag:'`
 
13620
   (eval echo "\"\$as_me:13620: $lt_compile\"" >&5)
 
13621
   (eval "$lt_compile" 2>conftest.err)
 
13622
   ac_status=$?
 
13623
   cat conftest.err >&5
 
13624
   echo "$as_me:13624: \$? = $ac_status" >&5
 
13625
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13626
     # The compiler can only warn and ignore the option if not recognized
 
13627
     # So say no if there are warnings
 
13628
     if test ! -s conftest.err; then
 
13629
       lt_prog_compiler_pic_works_CXX=yes
 
13630
     fi
 
13631
   fi
 
13632
   $rm conftest*
 
13633
 
 
13634
fi
 
13635
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
13636
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
13637
 
 
13638
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
13639
    case $lt_prog_compiler_pic_CXX in
 
13640
     "" | " "*) ;;
 
13641
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13642
     esac
 
13643
else
 
13644
    lt_prog_compiler_pic_CXX=
 
13645
     lt_prog_compiler_can_build_shared_CXX=no
 
13646
fi
 
13647
 
 
13648
fi
 
13649
case "$host_os" in
 
13650
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13651
  *djgpp*)
 
13652
    lt_prog_compiler_pic_CXX=
 
13653
    ;;
 
13654
  *)
 
13655
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13656
    ;;
 
13657
esac
 
13658
 
 
13659
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13660
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13661
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13662
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13663
else
 
13664
  lt_cv_prog_compiler_c_o_CXX=no
 
13665
   $rm -r conftest 2>/dev/null
 
13666
   mkdir conftest
 
13667
   cd conftest
 
13668
   mkdir out
 
13669
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13670
 
 
13671
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
13672
   # that will create temporary files in the current directory regardless of
 
13673
   # the output directory.  Thus, making CWD read-only will cause this test
 
13674
   # to fail, enabling locking or at least warning the user not to do parallel
 
13675
   # builds.
 
13676
   chmod -w .
 
13677
 
 
13678
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13679
   # Insert the option either (1) after the last *FLAGS variable, or
 
13680
   # (2) before a word containing "conftest.", or (3) at the end.
 
13681
   # Note that $ac_compile itself does not contain backslashes and begins
 
13682
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13683
   lt_compile=`echo "$ac_compile" | $SED \
 
13684
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13685
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13686
   -e 's:$: $lt_compiler_flag:'`
 
13687
   (eval echo "\"\$as_me:13687: $lt_compile\"" >&5)
 
13688
   (eval "$lt_compile" 2>out/conftest.err)
 
13689
   ac_status=$?
 
13690
   cat out/conftest.err >&5
 
13691
   echo "$as_me:13691: \$? = $ac_status" >&5
 
13692
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13693
   then
 
13694
     # The compiler can only warn and ignore the option if not recognized
 
13695
     # So say no if there are warnings
 
13696
     if test ! -s out/conftest.err; then
 
13697
       lt_cv_prog_compiler_c_o_CXX=yes
 
13698
     fi
 
13699
   fi
 
13700
   chmod u+w .
 
13701
   $rm conftest* out/*
 
13702
   rmdir out
 
13703
   cd ..
 
13704
   rmdir conftest
 
13705
   $rm conftest*
 
13706
 
 
13707
fi
 
13708
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13709
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
13710
 
 
13711
 
 
13712
hard_links="nottested"
 
13713
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13714
  # do not overwrite the value of need_locks provided by the user
 
13715
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13716
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13717
  hard_links=yes
 
13718
  $rm conftest*
 
13719
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13720
  touch conftest.a
 
13721
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13722
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13723
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13724
echo "${ECHO_T}$hard_links" >&6
 
13725
  if test "$hard_links" = no; then
 
13726
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13727
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13728
    need_locks=warn
 
13729
  fi
 
13730
else
 
13731
  need_locks=no
 
13732
fi
 
13733
 
 
13734
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13735
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13736
 
 
13737
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13738
  case $host_os in
 
13739
  aix4* | aix5*)
 
13740
    # If we're using GNU nm, then we don't want the "-C" option.
 
13741
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13742
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13743
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
13744
    else
 
13745
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
13746
    fi
 
13747
    ;;
 
13748
  pw32*)
 
13749
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13750
  ;;
 
13751
  cygwin* | mingw*)
 
13752
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13753
  ;;
 
13754
  *)
 
13755
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13756
  ;;
 
13757
  esac
 
13758
 
 
13759
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13760
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
13761
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13762
 
 
13763
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13764
if test "$GCC" = yes; then
 
13765
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13766
fi
 
13767
 
 
13768
#
 
13769
# Do we need to explicitly link libc?
 
13770
#
 
13771
case "x$archive_cmds_need_lc_CXX" in
 
13772
x|xyes)
 
13773
  # Assume -lc should be added
 
13774
  archive_cmds_need_lc_CXX=yes
 
13775
 
 
13776
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13777
    case $archive_cmds_CXX in
 
13778
    *'~'*)
 
13779
      # FIXME: we may have to deal with multi-command sequences.
 
13780
      ;;
 
13781
    '$CC '*)
 
13782
      # Test whether the compiler implicitly links with -lc since on some
 
13783
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13784
      # to ld, don't add -lc before -lgcc.
 
13785
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13786
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
13787
      $rm conftest*
 
13788
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13789
 
 
13790
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13791
  (eval $ac_compile) 2>&5
 
13792
  ac_status=$?
 
13793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13794
  (exit $ac_status); } 2>conftest.err; then
 
13795
        soname=conftest
 
13796
        lib=conftest
 
13797
        libobjs=conftest.$ac_objext
 
13798
        deplibs=
 
13799
        wl=$lt_prog_compiler_wl_CXX
 
13800
        compiler_flags=-v
 
13801
        linker_flags=-v
 
13802
        verstring=
 
13803
        output_objdir=.
 
13804
        libname=conftest
 
13805
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13806
        allow_undefined_flag_CXX=
 
13807
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13808
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13809
  ac_status=$?
 
13810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13811
  (exit $ac_status); }
 
13812
        then
 
13813
          archive_cmds_need_lc_CXX=no
 
13814
        else
 
13815
          archive_cmds_need_lc_CXX=yes
 
13816
        fi
 
13817
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13818
      else
 
13819
        cat conftest.err 1>&5
 
13820
      fi
 
13821
      $rm conftest*
 
13822
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13823
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
13824
      ;;
 
13825
    esac
 
13826
  fi
 
13827
  ;;
 
13828
esac
 
13829
 
 
13830
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13831
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
13832
library_names_spec=
 
13833
libname_spec='lib$name'
 
13834
soname_spec=
 
13835
shrext=".so"
 
13836
postinstall_cmds=
 
13837
postuninstall_cmds=
 
13838
finish_cmds=
 
13839
finish_eval=
 
13840
shlibpath_var=
 
13841
shlibpath_overrides_runpath=unknown
 
13842
version_type=none
 
13843
dynamic_linker="$host_os ld.so"
 
13844
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13845
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
13846
need_lib_prefix=unknown
 
13847
hardcode_into_libs=no
 
13848
 
 
13849
# when you set need_version to no, make sure it does not cause -set_version
 
13850
# flags to be left without arguments
 
13851
need_version=unknown
 
13852
 
 
13853
case $host_os in
 
13854
aix3*)
 
13855
  version_type=linux
 
13856
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13857
  shlibpath_var=LIBPATH
 
13858
 
 
13859
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13860
  soname_spec='${libname}${release}${shared_ext}$major'
 
13861
  ;;
 
13862
 
 
13863
aix4* | aix5*)
 
13864
  version_type=linux
 
13865
  need_lib_prefix=no
 
13866
  need_version=no
 
13867
  hardcode_into_libs=yes
 
13868
  if test "$host_cpu" = ia64; then
 
13869
    # AIX 5 supports IA64
 
13870
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13871
    shlibpath_var=LD_LIBRARY_PATH
 
13872
  else
 
13873
    # With GCC up to 2.95.x, collect2 would create an import file
 
13874
    # for dependence libraries.  The import file would start with
 
13875
    # the line `#! .'.  This would cause the generated library to
 
13876
    # depend on `.', always an invalid library.  This was fixed in
 
13877
    # development snapshots of GCC prior to 3.0.
 
13878
    case $host_os in
 
13879
      aix4 | aix4.[01] | aix4.[01].*)
 
13880
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13881
           echo ' yes '
 
13882
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13883
        :
 
13884
      else
 
13885
        can_build_shared=no
 
13886
      fi
 
13887
      ;;
 
13888
    esac
 
13889
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13890
    # soname into executable. Probably we can add versioning support to
 
13891
    # collect2, so additional links can be useful in future.
 
13892
    if test "$aix_use_runtimelinking" = yes; then
 
13893
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13894
      # instead of lib<name>.a to let people know that these are not
 
13895
      # typical AIX shared libraries.
 
13896
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13897
    else
 
13898
      # We preserve .a as extension for shared libraries through AIX4.2
 
13899
      # and later when we are not doing run time linking.
 
13900
      library_names_spec='${libname}${release}.a $libname.a'
 
13901
      soname_spec='${libname}${release}${shared_ext}$major'
 
13902
    fi
 
13903
    shlibpath_var=LIBPATH
 
13904
  fi
 
13905
  ;;
 
13906
 
 
13907
amigaos*)
 
13908
  library_names_spec='$libname.ixlibrary $libname.a'
 
13909
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13910
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
 
13911
  ;;
 
13912
 
 
13913
beos*)
 
13914
  library_names_spec='${libname}${shared_ext}'
 
13915
  dynamic_linker="$host_os ld.so"
 
13916
  shlibpath_var=LIBRARY_PATH
 
13917
  ;;
 
13918
 
 
13919
bsdi4*)
 
13920
  version_type=linux
 
13921
  need_version=no
 
13922
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13923
  soname_spec='${libname}${release}${shared_ext}$major'
 
13924
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13925
  shlibpath_var=LD_LIBRARY_PATH
 
13926
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13927
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13928
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13929
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13930
  # libtool to hard-code these into programs
 
13931
  ;;
 
13932
 
 
13933
cygwin* | mingw* | pw32*)
 
13934
  version_type=windows
 
13935
  shrext=".dll"
 
13936
  need_version=no
 
13937
  need_lib_prefix=no
 
13938
 
 
13939
  case $GCC,$host_os in
 
13940
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13941
    library_names_spec='$libname.dll.a'
 
13942
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13943
    postinstall_cmds='base_file=`basename \${file}`~
 
13944
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13945
      dldir=$destdir/`dirname \$dlpath`~
 
13946
      test -d \$dldir || mkdir -p \$dldir~
 
13947
      $install_prog $dir/$dlname \$dldir/$dlname'
 
13948
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13949
      dlpath=$dir/\$dldll~
 
13950
       $rm \$dlpath'
 
13951
    shlibpath_overrides_runpath=yes
 
13952
 
 
13953
    case $host_os in
 
13954
    cygwin*)
 
13955
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13956
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13957
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13958
      ;;
 
13959
    mingw*)
 
13960
      # MinGW DLLs use traditional 'lib' prefix
 
13961
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13962
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13963
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13964
        # It is most probably a Windows format PATH printed by
 
13965
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13966
        # path with ; separators, and with drive letters. We can handle the
 
13967
        # drive letters (cygwin fileutils understands them), so leave them,
 
13968
        # especially as we might pass files found there to a mingw objdump,
 
13969
        # which wouldn't understand a cygwinified path. Ahh.
 
13970
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13971
      else
 
13972
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13973
      fi
 
13974
      ;;
 
13975
    pw32*)
 
13976
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13977
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
13978
      ;;
 
13979
    esac
 
13980
    ;;
 
13981
 
 
13982
  *)
 
13983
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13984
    ;;
 
13985
  esac
 
13986
  dynamic_linker='Win32 ld.exe'
 
13987
  # FIXME: first we should search . and the directory the executable is in
 
13988
  shlibpath_var=PATH
 
13989
  ;;
 
13990
 
 
13991
darwin* | rhapsody*)
 
13992
  dynamic_linker="$host_os dyld"
 
13993
  version_type=darwin
 
13994
  need_lib_prefix=no
 
13995
  need_version=no
 
13996
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13997
  soname_spec='${libname}${release}${major}$shared_ext'
 
13998
  shlibpath_overrides_runpath=yes
 
13999
  shlibpath_var=DYLD_LIBRARY_PATH
 
14000
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
14001
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14002
  if test "$GCC" = yes; then
 
14003
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
14004
  else
 
14005
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14006
  fi
 
14007
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14008
  ;;
 
14009
 
 
14010
dgux*)
 
14011
  version_type=linux
 
14012
  need_lib_prefix=no
 
14013
  need_version=no
 
14014
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14015
  soname_spec='${libname}${release}${shared_ext}$major'
 
14016
  shlibpath_var=LD_LIBRARY_PATH
 
14017
  ;;
 
14018
 
 
14019
freebsd1*)
 
14020
  dynamic_linker=no
 
14021
  ;;
 
14022
 
 
14023
freebsd*-gnu*)
 
14024
  version_type=linux
 
14025
  need_lib_prefix=no
 
14026
  need_version=no
 
14027
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14028
  soname_spec='${libname}${release}${shared_ext}$major'
 
14029
  shlibpath_var=LD_LIBRARY_PATH
 
14030
  shlibpath_overrides_runpath=no
 
14031
  hardcode_into_libs=yes
 
14032
  dynamic_linker='GNU ld.so'
 
14033
  ;;
 
14034
 
 
14035
freebsd*)
 
14036
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14037
  version_type=freebsd-$objformat
 
14038
  case $version_type in
 
14039
    freebsd-elf*)
 
14040
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14041
      need_version=no
 
14042
      need_lib_prefix=no
 
14043
      ;;
 
14044
    freebsd-*)
 
14045
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14046
      need_version=yes
 
14047
      ;;
 
14048
  esac
 
14049
  shlibpath_var=LD_LIBRARY_PATH
 
14050
  case $host_os in
 
14051
  freebsd2*)
 
14052
    shlibpath_overrides_runpath=yes
 
14053
    ;;
 
14054
  freebsd3.01* | freebsdelf3.01*)
 
14055
    shlibpath_overrides_runpath=yes
 
14056
    hardcode_into_libs=yes
 
14057
    ;;
 
14058
  *) # from 3.2 on
 
14059
    shlibpath_overrides_runpath=no
 
14060
    hardcode_into_libs=yes
 
14061
    ;;
 
14062
  esac
 
14063
  ;;
 
14064
 
 
14065
gnu*)
 
14066
  version_type=linux
 
14067
  need_lib_prefix=no
 
14068
  need_version=no
 
14069
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14070
  soname_spec='${libname}${release}${shared_ext}$major'
 
14071
  shlibpath_var=LD_LIBRARY_PATH
 
14072
  hardcode_into_libs=yes
 
14073
  ;;
 
14074
 
 
14075
hpux9* | hpux10* | hpux11*)
 
14076
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14077
  # link against other versions.
 
14078
  version_type=sunos
 
14079
  need_lib_prefix=no
 
14080
  need_version=no
 
14081
  case "$host_cpu" in
 
14082
  ia64*)
 
14083
    shrext='.so'
 
14084
    hardcode_into_libs=yes
 
14085
    dynamic_linker="$host_os dld.so"
 
14086
    shlibpath_var=LD_LIBRARY_PATH
 
14087
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14088
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14089
    soname_spec='${libname}${release}${shared_ext}$major'
 
14090
    if test "X$HPUX_IA64_MODE" = X32; then
 
14091
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14092
    else
 
14093
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14094
    fi
 
14095
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14096
    ;;
 
14097
   hppa*64*)
 
14098
     shrext='.sl'
 
14099
     hardcode_into_libs=yes
 
14100
     dynamic_linker="$host_os dld.sl"
 
14101
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14102
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14103
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14104
     soname_spec='${libname}${release}${shared_ext}$major'
 
14105
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14106
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14107
     ;;
 
14108
   *)
 
14109
    shrext='.sl'
 
14110
    dynamic_linker="$host_os dld.sl"
 
14111
    shlibpath_var=SHLIB_PATH
 
14112
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14113
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14114
    soname_spec='${libname}${release}${shared_ext}$major'
 
14115
    ;;
 
14116
  esac
 
14117
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14118
  postinstall_cmds='chmod 555 $lib'
 
14119
  ;;
 
14120
 
 
14121
irix5* | irix6* | nonstopux*)
 
14122
  case $host_os in
 
14123
    nonstopux*) version_type=nonstopux ;;
 
14124
    *)
 
14125
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14126
                version_type=linux
 
14127
        else
 
14128
                version_type=irix
 
14129
        fi ;;
 
14130
  esac
 
14131
  need_lib_prefix=no
 
14132
  need_version=no
 
14133
  soname_spec='${libname}${release}${shared_ext}$major'
 
14134
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14135
  case $host_os in
 
14136
  irix5* | nonstopux*)
 
14137
    libsuff= shlibsuff=
 
14138
    ;;
 
14139
  *)
 
14140
    case $LD in # libtool.m4 will add one of these switches to LD
 
14141
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14142
      libsuff= shlibsuff= libmagic=32-bit;;
 
14143
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14144
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14145
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14146
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14147
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14148
    esac
 
14149
    ;;
 
14150
  esac
 
14151
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14152
  shlibpath_overrides_runpath=no
 
14153
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14154
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14155
  hardcode_into_libs=yes
 
14156
  ;;
 
14157
 
 
14158
# No shared lib support for Linux oldld, aout, or coff.
 
14159
linux*oldld* | linux*aout* | linux*coff*)
 
14160
  dynamic_linker=no
 
14161
  ;;
 
14162
 
 
14163
# This must be Linux ELF.
 
14164
linux*)
 
14165
  version_type=linux
 
14166
  need_lib_prefix=no
 
14167
  need_version=no
 
14168
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14169
  soname_spec='${libname}${release}${shared_ext}$major'
 
14170
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14171
  libsuff=
 
14172
  if test "x$LINUX_64_MODE" = x64; then
 
14173
    # Some platforms are per default 64-bit, so there's no /lib64
 
14174
    if test -d /lib64; then
 
14175
      libsuff=64
 
14176
    fi
 
14177
  fi
 
14178
  shlibpath_var=LD_LIBRARY_PATH
 
14179
  shlibpath_overrides_runpath=no
 
14180
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
14181
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
14182
  # This implies no fast_install, which is unacceptable.
 
14183
  # Some rework will be needed to allow for fast_install
 
14184
  # before this can be enabled.
 
14185
  hardcode_into_libs=yes
 
14186
 
 
14187
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14188
  # powerpc, because MkLinux only supported shared libraries with the
 
14189
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14190
  # most powerpc-linux boxes support dynamic linking these days and
 
14191
  # people can always --disable-shared, the test was removed, and we
 
14192
  # assume the GNU/Linux dynamic linker is in use.
 
14193
  dynamic_linker='GNU/Linux ld.so'
 
14194
  ;;
 
14195
 
 
14196
netbsd*)
 
14197
  version_type=sunos
 
14198
  need_lib_prefix=no
 
14199
  need_version=no
 
14200
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14201
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14202
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14203
    dynamic_linker='NetBSD (a.out) ld.so'
 
14204
  else
 
14205
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
14206
    soname_spec='${libname}${release}${shared_ext}$major'
 
14207
    dynamic_linker='NetBSD ld.elf_so'
 
14208
  fi
 
14209
  shlibpath_var=LD_LIBRARY_PATH
 
14210
  shlibpath_overrides_runpath=yes
 
14211
  hardcode_into_libs=yes
 
14212
  ;;
 
14213
 
 
14214
newsos6)
 
14215
  version_type=linux
 
14216
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14217
  shlibpath_var=LD_LIBRARY_PATH
 
14218
  shlibpath_overrides_runpath=yes
 
14219
  ;;
 
14220
 
 
14221
nto-qnx*)
 
14222
  version_type=linux
 
14223
  need_lib_prefix=no
 
14224
  need_version=no
 
14225
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14226
  soname_spec='${libname}${release}${shared_ext}$major'
 
14227
  shlibpath_var=LD_LIBRARY_PATH
 
14228
  shlibpath_overrides_runpath=yes
 
14229
  ;;
 
14230
 
 
14231
openbsd*)
 
14232
  version_type=sunos
 
14233
  need_lib_prefix=no
 
14234
  need_version=no
 
14235
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14236
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14237
  shlibpath_var=LD_LIBRARY_PATH
 
14238
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14239
    case $host_os in
 
14240
      openbsd2.[89] | openbsd2.[89].*)
 
14241
        shlibpath_overrides_runpath=no
 
14242
        ;;
 
14243
      *)
 
14244
        shlibpath_overrides_runpath=yes
 
14245
        ;;
 
14246
      esac
 
14247
  else
 
14248
    shlibpath_overrides_runpath=yes
 
14249
  fi
 
14250
  ;;
 
14251
 
 
14252
os2*)
 
14253
  libname_spec='$name'
 
14254
  shrext=".dll"
 
14255
  need_lib_prefix=no
 
14256
  library_names_spec='$libname${shared_ext} $libname.a'
 
14257
  dynamic_linker='OS/2 ld.exe'
 
14258
  shlibpath_var=LIBPATH
 
14259
  ;;
 
14260
 
 
14261
osf3* | osf4* | osf5*)
 
14262
  version_type=osf
 
14263
  need_lib_prefix=no
 
14264
  need_version=no
 
14265
  soname_spec='${libname}${release}${shared_ext}$major'
 
14266
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14267
  shlibpath_var=LD_LIBRARY_PATH
 
14268
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14269
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14270
  ;;
 
14271
 
 
14272
sco3.2v5*)
 
14273
  version_type=osf
 
14274
  soname_spec='${libname}${release}${shared_ext}$major'
 
14275
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14276
  shlibpath_var=LD_LIBRARY_PATH
 
14277
  ;;
 
14278
 
 
14279
solaris*)
 
14280
  version_type=linux
 
14281
  need_lib_prefix=no
 
14282
  need_version=no
 
14283
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14284
  soname_spec='${libname}${release}${shared_ext}$major'
 
14285
  shlibpath_var=LD_LIBRARY_PATH
 
14286
  shlibpath_overrides_runpath=yes
 
14287
  hardcode_into_libs=yes
 
14288
  # ldd complains unless libraries are executable
 
14289
  postinstall_cmds='chmod +x $lib'
 
14290
  ;;
 
14291
 
 
14292
sunos4*)
 
14293
  version_type=sunos
 
14294
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14295
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14296
  shlibpath_var=LD_LIBRARY_PATH
 
14297
  shlibpath_overrides_runpath=yes
 
14298
  if test "$with_gnu_ld" = yes; then
 
14299
    need_lib_prefix=no
 
14300
  fi
 
14301
  need_version=yes
 
14302
  ;;
 
14303
 
 
14304
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14305
  version_type=linux
 
14306
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14307
  soname_spec='${libname}${release}${shared_ext}$major'
 
14308
  shlibpath_var=LD_LIBRARY_PATH
 
14309
  case $host_vendor in
 
14310
    sni)
 
14311
      shlibpath_overrides_runpath=no
 
14312
      need_lib_prefix=no
 
14313
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14314
      runpath_var=LD_RUN_PATH
 
14315
      ;;
 
14316
    siemens)
 
14317
      need_lib_prefix=no
 
14318
      ;;
 
14319
    motorola)
 
14320
      need_lib_prefix=no
 
14321
      need_version=no
 
14322
      shlibpath_overrides_runpath=no
 
14323
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14324
      ;;
 
14325
  esac
 
14326
  ;;
 
14327
 
 
14328
sysv4*MP*)
 
14329
  if test -d /usr/nec ;then
 
14330
    version_type=linux
 
14331
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14332
    soname_spec='$libname${shared_ext}.$major'
 
14333
    shlibpath_var=LD_LIBRARY_PATH
 
14334
  fi
 
14335
  ;;
 
14336
 
 
14337
uts4*)
 
14338
  version_type=linux
 
14339
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14340
  soname_spec='${libname}${release}${shared_ext}$major'
 
14341
  shlibpath_var=LD_LIBRARY_PATH
 
14342
  ;;
 
14343
 
 
14344
*)
 
14345
  dynamic_linker=no
 
14346
  ;;
 
14347
esac
 
14348
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14349
echo "${ECHO_T}$dynamic_linker" >&6
 
14350
test "$dynamic_linker" = no && can_build_shared=no
 
14351
 
 
14352
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14353
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
14354
hardcode_action_CXX=
 
14355
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
14356
   test -n "$runpath_var CXX" || \
 
14357
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
14358
 
 
14359
  # We can hardcode non-existant directories.
 
14360
  if test "$hardcode_direct_CXX" != no &&
 
14361
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14362
     # have to relink, otherwise we might link with an installed library
 
14363
     # when we should be linking with a yet-to-be-installed one
 
14364
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
14365
     test "$hardcode_minus_L_CXX" != no; then
 
14366
    # Linking always hardcodes the temporary library directory.
 
14367
    hardcode_action_CXX=relink
 
14368
  else
 
14369
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14370
    hardcode_action_CXX=immediate
 
14371
  fi
 
14372
else
 
14373
  # We cannot hardcode anything, or else we can only hardcode existing
 
14374
  # directories.
 
14375
  hardcode_action_CXX=unsupported
 
14376
fi
 
14377
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
14378
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
14379
 
 
14380
if test "$hardcode_action_CXX" = relink; then
 
14381
  # Fast installation is not supported
 
14382
  enable_fast_install=no
 
14383
elif test "$shlibpath_overrides_runpath" = yes ||
 
14384
     test "$enable_shared" = no; then
 
14385
  # Fast installation is not necessary
 
14386
  enable_fast_install=needless
 
14387
fi
 
14388
 
 
14389
striplib=
 
14390
old_striplib=
 
14391
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
14392
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
14393
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
14394
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
14395
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
14396
  echo "$as_me:$LINENO: result: yes" >&5
 
14397
echo "${ECHO_T}yes" >&6
 
14398
else
 
14399
# FIXME - insert some real tests, host_os isn't really good enough
 
14400
  case $host_os in
 
14401
   darwin*)
 
14402
       if test -n "$STRIP" ; then
 
14403
         striplib="$STRIP -x"
 
14404
         echo "$as_me:$LINENO: result: yes" >&5
 
14405
echo "${ECHO_T}yes" >&6
 
14406
       else
 
14407
  echo "$as_me:$LINENO: result: no" >&5
 
14408
echo "${ECHO_T}no" >&6
 
14409
fi
 
14410
       ;;
 
14411
   *)
 
14412
  echo "$as_me:$LINENO: result: no" >&5
 
14413
echo "${ECHO_T}no" >&6
 
14414
    ;;
 
14415
  esac
 
14416
fi
 
14417
 
 
14418
if test "x$enable_dlopen" != xyes; then
 
14419
  enable_dlopen=unknown
 
14420
  enable_dlopen_self=unknown
 
14421
  enable_dlopen_self_static=unknown
 
14422
else
 
14423
  lt_cv_dlopen=no
 
14424
  lt_cv_dlopen_libs=
 
14425
 
 
14426
  case $host_os in
 
14427
  beos*)
 
14428
    lt_cv_dlopen="load_add_on"
 
14429
    lt_cv_dlopen_libs=
 
14430
    lt_cv_dlopen_self=yes
 
14431
    ;;
 
14432
 
 
14433
  mingw* | pw32*)
 
14434
    lt_cv_dlopen="LoadLibrary"
 
14435
    lt_cv_dlopen_libs=
 
14436
   ;;
 
14437
 
 
14438
  cygwin*)
 
14439
    lt_cv_dlopen="dlopen"
 
14440
    lt_cv_dlopen_libs=
 
14441
   ;;
 
14442
 
 
14443
  darwin*)
 
14444
  # if libdl is installed we need to link against it
 
14445
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
14446
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
14447
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
14448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14449
else
 
14450
  ac_check_lib_save_LIBS=$LIBS
 
14451
LIBS="-ldl  $LIBS"
 
14452
cat >conftest.$ac_ext <<_ACEOF
 
14453
/* confdefs.h.  */
 
14454
_ACEOF
 
14455
cat confdefs.h >>conftest.$ac_ext
 
14456
cat >>conftest.$ac_ext <<_ACEOF
 
14457
/* end confdefs.h.  */
 
14458
 
 
14459
/* Override any gcc2 internal prototype to avoid an error.  */
 
14460
#ifdef __cplusplus
 
14461
extern "C"
 
14462
#endif
 
14463
/* We use char because int might match the return type of a gcc2
 
14464
   builtin and then its argument prototype would still apply.  */
 
14465
char dlopen ();
 
14466
int
 
14467
main ()
 
14468
{
 
14469
dlopen ();
 
14470
  ;
 
14471
  return 0;
 
14472
}
 
14473
_ACEOF
 
14474
rm -f conftest.$ac_objext conftest$ac_exeext
 
14475
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14476
  (eval $ac_link) 2>conftest.er1
 
14477
  ac_status=$?
 
14478
  grep -v '^ *+' conftest.er1 >conftest.err
 
14479
  rm -f conftest.er1
 
14480
  cat conftest.err >&5
 
14481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14482
  (exit $ac_status); } &&
 
14483
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14484
                         || test ! -s conftest.err'
 
14485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14486
  (eval $ac_try) 2>&5
 
14487
  ac_status=$?
 
14488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14489
  (exit $ac_status); }; } &&
 
14490
         { ac_try='test -s conftest$ac_exeext'
 
14491
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14492
  (eval $ac_try) 2>&5
 
14493
  ac_status=$?
 
14494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14495
  (exit $ac_status); }; }; then
 
14496
  ac_cv_lib_dl_dlopen=yes
 
14497
else
 
14498
  echo "$as_me: failed program was:" >&5
 
14499
sed 's/^/| /' conftest.$ac_ext >&5
 
14500
 
 
14501
ac_cv_lib_dl_dlopen=no
 
14502
fi
 
14503
rm -f conftest.err conftest.$ac_objext \
 
14504
      conftest$ac_exeext conftest.$ac_ext
 
14505
LIBS=$ac_check_lib_save_LIBS
 
14506
fi
 
14507
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
14508
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
14509
if test $ac_cv_lib_dl_dlopen = yes; then
 
14510
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
14511
else
 
14512
 
 
14513
    lt_cv_dlopen="dyld"
 
14514
    lt_cv_dlopen_libs=
 
14515
    lt_cv_dlopen_self=yes
 
14516
 
 
14517
fi
 
14518
 
 
14519
   ;;
 
14520
 
 
14521
  *)
 
14522
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
14523
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
14524
if test "${ac_cv_func_shl_load+set}" = set; then
 
14525
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14526
else
 
14527
  cat >conftest.$ac_ext <<_ACEOF
 
14528
/* confdefs.h.  */
 
14529
_ACEOF
 
14530
cat confdefs.h >>conftest.$ac_ext
 
14531
cat >>conftest.$ac_ext <<_ACEOF
 
14532
/* end confdefs.h.  */
 
14533
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
14534
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14535
#define shl_load innocuous_shl_load
 
14536
 
 
14537
/* System header to define __stub macros and hopefully few prototypes,
 
14538
    which can conflict with char shl_load (); below.
 
14539
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14540
    <limits.h> exists even on freestanding compilers.  */
 
14541
 
 
14542
#ifdef __STDC__
 
14543
# include <limits.h>
 
14544
#else
 
14545
# include <assert.h>
 
14546
#endif
 
14547
 
 
14548
#undef shl_load
 
14549
 
 
14550
/* Override any gcc2 internal prototype to avoid an error.  */
 
14551
#ifdef __cplusplus
 
14552
extern "C"
 
14553
{
 
14554
#endif
 
14555
/* We use char because int might match the return type of a gcc2
 
14556
   builtin and then its argument prototype would still apply.  */
 
14557
char shl_load ();
 
14558
/* The GNU C library defines this for functions which it implements
 
14559
    to always fail with ENOSYS.  Some functions are actually named
 
14560
    something starting with __ and the normal name is an alias.  */
 
14561
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
14562
choke me
 
14563
#else
 
14564
char (*f) () = shl_load;
 
14565
#endif
 
14566
#ifdef __cplusplus
 
14567
}
 
14568
#endif
 
14569
 
 
14570
int
 
14571
main ()
 
14572
{
 
14573
return f != shl_load;
 
14574
  ;
 
14575
  return 0;
 
14576
}
 
14577
_ACEOF
 
14578
rm -f conftest.$ac_objext conftest$ac_exeext
 
14579
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14580
  (eval $ac_link) 2>conftest.er1
 
14581
  ac_status=$?
 
14582
  grep -v '^ *+' conftest.er1 >conftest.err
 
14583
  rm -f conftest.er1
 
14584
  cat conftest.err >&5
 
14585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14586
  (exit $ac_status); } &&
 
14587
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14588
                         || test ! -s conftest.err'
 
14589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14590
  (eval $ac_try) 2>&5
 
14591
  ac_status=$?
 
14592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14593
  (exit $ac_status); }; } &&
 
14594
         { ac_try='test -s conftest$ac_exeext'
 
14595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14596
  (eval $ac_try) 2>&5
 
14597
  ac_status=$?
 
14598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14599
  (exit $ac_status); }; }; then
 
14600
  ac_cv_func_shl_load=yes
 
14601
else
 
14602
  echo "$as_me: failed program was:" >&5
 
14603
sed 's/^/| /' conftest.$ac_ext >&5
 
14604
 
 
14605
ac_cv_func_shl_load=no
 
14606
fi
 
14607
rm -f conftest.err conftest.$ac_objext \
 
14608
      conftest$ac_exeext conftest.$ac_ext
 
14609
fi
 
14610
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
14611
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
14612
if test $ac_cv_func_shl_load = yes; then
 
14613
  lt_cv_dlopen="shl_load"
 
14614
else
 
14615
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
14616
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
14617
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
14618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14619
else
 
14620
  ac_check_lib_save_LIBS=$LIBS
 
14621
LIBS="-ldld  $LIBS"
 
14622
cat >conftest.$ac_ext <<_ACEOF
 
14623
/* confdefs.h.  */
 
14624
_ACEOF
 
14625
cat confdefs.h >>conftest.$ac_ext
 
14626
cat >>conftest.$ac_ext <<_ACEOF
 
14627
/* end confdefs.h.  */
 
14628
 
 
14629
/* Override any gcc2 internal prototype to avoid an error.  */
 
14630
#ifdef __cplusplus
 
14631
extern "C"
 
14632
#endif
 
14633
/* We use char because int might match the return type of a gcc2
 
14634
   builtin and then its argument prototype would still apply.  */
 
14635
char shl_load ();
 
14636
int
 
14637
main ()
 
14638
{
 
14639
shl_load ();
 
14640
  ;
 
14641
  return 0;
 
14642
}
 
14643
_ACEOF
 
14644
rm -f conftest.$ac_objext conftest$ac_exeext
 
14645
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14646
  (eval $ac_link) 2>conftest.er1
 
14647
  ac_status=$?
 
14648
  grep -v '^ *+' conftest.er1 >conftest.err
 
14649
  rm -f conftest.er1
 
14650
  cat conftest.err >&5
 
14651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14652
  (exit $ac_status); } &&
 
14653
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14654
                         || test ! -s conftest.err'
 
14655
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14656
  (eval $ac_try) 2>&5
 
14657
  ac_status=$?
 
14658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14659
  (exit $ac_status); }; } &&
 
14660
         { ac_try='test -s conftest$ac_exeext'
 
14661
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14662
  (eval $ac_try) 2>&5
 
14663
  ac_status=$?
 
14664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14665
  (exit $ac_status); }; }; then
 
14666
  ac_cv_lib_dld_shl_load=yes
 
14667
else
 
14668
  echo "$as_me: failed program was:" >&5
 
14669
sed 's/^/| /' conftest.$ac_ext >&5
 
14670
 
 
14671
ac_cv_lib_dld_shl_load=no
 
14672
fi
 
14673
rm -f conftest.err conftest.$ac_objext \
 
14674
      conftest$ac_exeext conftest.$ac_ext
 
14675
LIBS=$ac_check_lib_save_LIBS
 
14676
fi
 
14677
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
14678
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
14679
if test $ac_cv_lib_dld_shl_load = yes; then
 
14680
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
14681
else
 
14682
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
14683
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
14684
if test "${ac_cv_func_dlopen+set}" = set; then
 
14685
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14686
else
 
14687
  cat >conftest.$ac_ext <<_ACEOF
 
14688
/* confdefs.h.  */
 
14689
_ACEOF
 
14690
cat confdefs.h >>conftest.$ac_ext
 
14691
cat >>conftest.$ac_ext <<_ACEOF
 
14692
/* end confdefs.h.  */
 
14693
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
14694
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14695
#define dlopen innocuous_dlopen
 
14696
 
 
14697
/* System header to define __stub macros and hopefully few prototypes,
 
14698
    which can conflict with char dlopen (); below.
 
14699
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14700
    <limits.h> exists even on freestanding compilers.  */
 
14701
 
 
14702
#ifdef __STDC__
 
14703
# include <limits.h>
 
14704
#else
 
14705
# include <assert.h>
 
14706
#endif
 
14707
 
 
14708
#undef dlopen
 
14709
 
 
14710
/* Override any gcc2 internal prototype to avoid an error.  */
 
14711
#ifdef __cplusplus
 
14712
extern "C"
 
14713
{
 
14714
#endif
 
14715
/* We use char because int might match the return type of a gcc2
 
14716
   builtin and then its argument prototype would still apply.  */
 
14717
char dlopen ();
 
14718
/* The GNU C library defines this for functions which it implements
 
14719
    to always fail with ENOSYS.  Some functions are actually named
 
14720
    something starting with __ and the normal name is an alias.  */
 
14721
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
14722
choke me
 
14723
#else
 
14724
char (*f) () = dlopen;
 
14725
#endif
 
14726
#ifdef __cplusplus
 
14727
}
 
14728
#endif
 
14729
 
 
14730
int
 
14731
main ()
 
14732
{
 
14733
return f != dlopen;
 
14734
  ;
 
14735
  return 0;
 
14736
}
 
14737
_ACEOF
 
14738
rm -f conftest.$ac_objext conftest$ac_exeext
 
14739
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14740
  (eval $ac_link) 2>conftest.er1
 
14741
  ac_status=$?
 
14742
  grep -v '^ *+' conftest.er1 >conftest.err
 
14743
  rm -f conftest.er1
 
14744
  cat conftest.err >&5
 
14745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14746
  (exit $ac_status); } &&
 
14747
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14748
                         || test ! -s conftest.err'
 
14749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14750
  (eval $ac_try) 2>&5
 
14751
  ac_status=$?
 
14752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14753
  (exit $ac_status); }; } &&
 
14754
         { ac_try='test -s conftest$ac_exeext'
 
14755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14756
  (eval $ac_try) 2>&5
 
14757
  ac_status=$?
 
14758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14759
  (exit $ac_status); }; }; then
 
14760
  ac_cv_func_dlopen=yes
 
14761
else
 
14762
  echo "$as_me: failed program was:" >&5
 
14763
sed 's/^/| /' conftest.$ac_ext >&5
 
14764
 
 
14765
ac_cv_func_dlopen=no
 
14766
fi
 
14767
rm -f conftest.err conftest.$ac_objext \
 
14768
      conftest$ac_exeext conftest.$ac_ext
 
14769
fi
 
14770
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
14771
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
14772
if test $ac_cv_func_dlopen = yes; then
 
14773
  lt_cv_dlopen="dlopen"
 
14774
else
 
14775
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
14776
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
14777
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
14778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14779
else
 
14780
  ac_check_lib_save_LIBS=$LIBS
 
14781
LIBS="-ldl  $LIBS"
 
14782
cat >conftest.$ac_ext <<_ACEOF
 
14783
/* confdefs.h.  */
 
14784
_ACEOF
 
14785
cat confdefs.h >>conftest.$ac_ext
 
14786
cat >>conftest.$ac_ext <<_ACEOF
 
14787
/* end confdefs.h.  */
 
14788
 
 
14789
/* Override any gcc2 internal prototype to avoid an error.  */
 
14790
#ifdef __cplusplus
 
14791
extern "C"
 
14792
#endif
 
14793
/* We use char because int might match the return type of a gcc2
 
14794
   builtin and then its argument prototype would still apply.  */
 
14795
char dlopen ();
 
14796
int
 
14797
main ()
 
14798
{
 
14799
dlopen ();
 
14800
  ;
 
14801
  return 0;
 
14802
}
 
14803
_ACEOF
 
14804
rm -f conftest.$ac_objext conftest$ac_exeext
 
14805
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14806
  (eval $ac_link) 2>conftest.er1
 
14807
  ac_status=$?
 
14808
  grep -v '^ *+' conftest.er1 >conftest.err
 
14809
  rm -f conftest.er1
 
14810
  cat conftest.err >&5
 
14811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14812
  (exit $ac_status); } &&
 
14813
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14814
                         || test ! -s conftest.err'
 
14815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14816
  (eval $ac_try) 2>&5
 
14817
  ac_status=$?
 
14818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14819
  (exit $ac_status); }; } &&
 
14820
         { ac_try='test -s conftest$ac_exeext'
 
14821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14822
  (eval $ac_try) 2>&5
 
14823
  ac_status=$?
 
14824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14825
  (exit $ac_status); }; }; then
 
14826
  ac_cv_lib_dl_dlopen=yes
 
14827
else
 
14828
  echo "$as_me: failed program was:" >&5
 
14829
sed 's/^/| /' conftest.$ac_ext >&5
 
14830
 
 
14831
ac_cv_lib_dl_dlopen=no
 
14832
fi
 
14833
rm -f conftest.err conftest.$ac_objext \
 
14834
      conftest$ac_exeext conftest.$ac_ext
 
14835
LIBS=$ac_check_lib_save_LIBS
 
14836
fi
 
14837
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
14838
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
14839
if test $ac_cv_lib_dl_dlopen = yes; then
 
14840
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
14841
else
 
14842
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
14843
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
14844
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
14845
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14846
else
 
14847
  ac_check_lib_save_LIBS=$LIBS
 
14848
LIBS="-lsvld  $LIBS"
 
14849
cat >conftest.$ac_ext <<_ACEOF
 
14850
/* confdefs.h.  */
 
14851
_ACEOF
 
14852
cat confdefs.h >>conftest.$ac_ext
 
14853
cat >>conftest.$ac_ext <<_ACEOF
 
14854
/* end confdefs.h.  */
 
14855
 
 
14856
/* Override any gcc2 internal prototype to avoid an error.  */
 
14857
#ifdef __cplusplus
 
14858
extern "C"
 
14859
#endif
 
14860
/* We use char because int might match the return type of a gcc2
 
14861
   builtin and then its argument prototype would still apply.  */
 
14862
char dlopen ();
 
14863
int
 
14864
main ()
 
14865
{
 
14866
dlopen ();
 
14867
  ;
 
14868
  return 0;
 
14869
}
 
14870
_ACEOF
 
14871
rm -f conftest.$ac_objext conftest$ac_exeext
 
14872
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14873
  (eval $ac_link) 2>conftest.er1
 
14874
  ac_status=$?
 
14875
  grep -v '^ *+' conftest.er1 >conftest.err
 
14876
  rm -f conftest.er1
 
14877
  cat conftest.err >&5
 
14878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14879
  (exit $ac_status); } &&
 
14880
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14881
                         || test ! -s conftest.err'
 
14882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14883
  (eval $ac_try) 2>&5
 
14884
  ac_status=$?
 
14885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14886
  (exit $ac_status); }; } &&
 
14887
         { ac_try='test -s conftest$ac_exeext'
 
14888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14889
  (eval $ac_try) 2>&5
 
14890
  ac_status=$?
 
14891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14892
  (exit $ac_status); }; }; then
 
14893
  ac_cv_lib_svld_dlopen=yes
 
14894
else
 
14895
  echo "$as_me: failed program was:" >&5
 
14896
sed 's/^/| /' conftest.$ac_ext >&5
 
14897
 
 
14898
ac_cv_lib_svld_dlopen=no
 
14899
fi
 
14900
rm -f conftest.err conftest.$ac_objext \
 
14901
      conftest$ac_exeext conftest.$ac_ext
 
14902
LIBS=$ac_check_lib_save_LIBS
 
14903
fi
 
14904
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
14905
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
14906
if test $ac_cv_lib_svld_dlopen = yes; then
 
14907
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
14908
else
 
14909
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
14910
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
14911
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
14912
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14913
else
 
14914
  ac_check_lib_save_LIBS=$LIBS
 
14915
LIBS="-ldld  $LIBS"
 
14916
cat >conftest.$ac_ext <<_ACEOF
 
14917
/* confdefs.h.  */
 
14918
_ACEOF
 
14919
cat confdefs.h >>conftest.$ac_ext
 
14920
cat >>conftest.$ac_ext <<_ACEOF
 
14921
/* end confdefs.h.  */
 
14922
 
 
14923
/* Override any gcc2 internal prototype to avoid an error.  */
 
14924
#ifdef __cplusplus
 
14925
extern "C"
 
14926
#endif
 
14927
/* We use char because int might match the return type of a gcc2
 
14928
   builtin and then its argument prototype would still apply.  */
 
14929
char dld_link ();
 
14930
int
 
14931
main ()
 
14932
{
 
14933
dld_link ();
 
14934
  ;
 
14935
  return 0;
 
14936
}
 
14937
_ACEOF
 
14938
rm -f conftest.$ac_objext conftest$ac_exeext
 
14939
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14940
  (eval $ac_link) 2>conftest.er1
 
14941
  ac_status=$?
 
14942
  grep -v '^ *+' conftest.er1 >conftest.err
 
14943
  rm -f conftest.er1
 
14944
  cat conftest.err >&5
 
14945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14946
  (exit $ac_status); } &&
 
14947
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14948
                         || test ! -s conftest.err'
 
14949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14950
  (eval $ac_try) 2>&5
 
14951
  ac_status=$?
 
14952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14953
  (exit $ac_status); }; } &&
 
14954
         { ac_try='test -s conftest$ac_exeext'
 
14955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14956
  (eval $ac_try) 2>&5
 
14957
  ac_status=$?
 
14958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14959
  (exit $ac_status); }; }; then
 
14960
  ac_cv_lib_dld_dld_link=yes
 
14961
else
 
14962
  echo "$as_me: failed program was:" >&5
 
14963
sed 's/^/| /' conftest.$ac_ext >&5
 
14964
 
 
14965
ac_cv_lib_dld_dld_link=no
 
14966
fi
 
14967
rm -f conftest.err conftest.$ac_objext \
 
14968
      conftest$ac_exeext conftest.$ac_ext
 
14969
LIBS=$ac_check_lib_save_LIBS
 
14970
fi
 
14971
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
14972
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
14973
if test $ac_cv_lib_dld_dld_link = yes; then
 
14974
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
14975
fi
 
14976
 
 
14977
 
 
14978
fi
 
14979
 
 
14980
 
 
14981
fi
 
14982
 
 
14983
 
 
14984
fi
 
14985
 
 
14986
 
 
14987
fi
 
14988
 
 
14989
 
 
14990
fi
 
14991
 
 
14992
    ;;
 
14993
  esac
 
14994
 
 
14995
  if test "x$lt_cv_dlopen" != xno; then
 
14996
    enable_dlopen=yes
 
14997
  else
 
14998
    enable_dlopen=no
 
14999
  fi
 
15000
 
 
15001
  case $lt_cv_dlopen in
 
15002
  dlopen)
 
15003
    save_CPPFLAGS="$CPPFLAGS"
 
15004
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
15005
 
 
15006
    save_LDFLAGS="$LDFLAGS"
 
15007
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
15008
 
 
15009
    save_LIBS="$LIBS"
 
15010
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
15011
 
 
15012
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
15013
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
15014
if test "${lt_cv_dlopen_self+set}" = set; then
 
15015
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15016
else
 
15017
          if test "$cross_compiling" = yes; then :
 
15018
  lt_cv_dlopen_self=cross
 
15019
else
 
15020
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
15021
  lt_status=$lt_dlunknown
 
15022
  cat > conftest.$ac_ext <<EOF
 
15023
#line 15023 "configure"
 
15024
#include "confdefs.h"
 
15025
 
 
15026
#if HAVE_DLFCN_H
 
15027
#include <dlfcn.h>
 
15028
#endif
 
15029
 
 
15030
#include <stdio.h>
 
15031
 
 
15032
#ifdef RTLD_GLOBAL
 
15033
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
15034
#else
 
15035
#  ifdef DL_GLOBAL
 
15036
#    define LT_DLGLOBAL         DL_GLOBAL
 
15037
#  else
 
15038
#    define LT_DLGLOBAL         0
 
15039
#  endif
 
15040
#endif
 
15041
 
 
15042
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
15043
   find out it does not work in some platform. */
 
15044
#ifndef LT_DLLAZY_OR_NOW
 
15045
#  ifdef RTLD_LAZY
 
15046
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
15047
#  else
 
15048
#    ifdef DL_LAZY
 
15049
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
15050
#    else
 
15051
#      ifdef RTLD_NOW
 
15052
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
15053
#      else
 
15054
#        ifdef DL_NOW
 
15055
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
15056
#        else
 
15057
#          define LT_DLLAZY_OR_NOW      0
 
15058
#        endif
 
15059
#      endif
 
15060
#    endif
 
15061
#  endif
 
15062
#endif
 
15063
 
 
15064
#ifdef __cplusplus
 
15065
extern "C" void exit (int);
 
15066
#endif
 
15067
 
 
15068
void fnord() { int i=42;}
 
15069
int main ()
 
15070
{
 
15071
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
15072
  int status = $lt_dlunknown;
 
15073
 
 
15074
  if (self)
 
15075
    {
 
15076
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
15077
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
15078
      /* dlclose (self); */
 
15079
    }
 
15080
 
 
15081
    exit (status);
 
15082
}
 
15083
EOF
 
15084
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15085
  (eval $ac_link) 2>&5
 
15086
  ac_status=$?
 
15087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15088
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
15089
    (./conftest; exit; ) 2>/dev/null
 
15090
    lt_status=$?
 
15091
    case x$lt_status in
 
15092
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
15093
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
15094
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
15095
    esac
 
15096
  else :
 
15097
    # compilation failed
 
15098
    lt_cv_dlopen_self=no
 
15099
  fi
 
15100
fi
 
15101
rm -fr conftest*
 
15102
 
 
15103
 
 
15104
fi
 
15105
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
15106
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
15107
 
 
15108
    if test "x$lt_cv_dlopen_self" = xyes; then
 
15109
      LDFLAGS="$LDFLAGS $link_static_flag"
 
15110
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
15111
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
15112
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
15113
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15114
else
 
15115
          if test "$cross_compiling" = yes; then :
 
15116
  lt_cv_dlopen_self_static=cross
 
15117
else
 
15118
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
15119
  lt_status=$lt_dlunknown
 
15120
  cat > conftest.$ac_ext <<EOF
 
15121
#line 15121 "configure"
 
15122
#include "confdefs.h"
 
15123
 
 
15124
#if HAVE_DLFCN_H
 
15125
#include <dlfcn.h>
 
15126
#endif
 
15127
 
 
15128
#include <stdio.h>
 
15129
 
 
15130
#ifdef RTLD_GLOBAL
 
15131
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
15132
#else
 
15133
#  ifdef DL_GLOBAL
 
15134
#    define LT_DLGLOBAL         DL_GLOBAL
 
15135
#  else
 
15136
#    define LT_DLGLOBAL         0
 
15137
#  endif
 
15138
#endif
 
15139
 
 
15140
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
15141
   find out it does not work in some platform. */
 
15142
#ifndef LT_DLLAZY_OR_NOW
 
15143
#  ifdef RTLD_LAZY
 
15144
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
15145
#  else
 
15146
#    ifdef DL_LAZY
 
15147
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
15148
#    else
 
15149
#      ifdef RTLD_NOW
 
15150
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
15151
#      else
 
15152
#        ifdef DL_NOW
 
15153
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
15154
#        else
 
15155
#          define LT_DLLAZY_OR_NOW      0
 
15156
#        endif
 
15157
#      endif
 
15158
#    endif
 
15159
#  endif
 
15160
#endif
 
15161
 
 
15162
#ifdef __cplusplus
 
15163
extern "C" void exit (int);
 
15164
#endif
 
15165
 
 
15166
void fnord() { int i=42;}
 
15167
int main ()
 
15168
{
 
15169
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
15170
  int status = $lt_dlunknown;
 
15171
 
 
15172
  if (self)
 
15173
    {
 
15174
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
15175
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
15176
      /* dlclose (self); */
 
15177
    }
 
15178
 
 
15179
    exit (status);
 
15180
}
 
15181
EOF
 
15182
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15183
  (eval $ac_link) 2>&5
 
15184
  ac_status=$?
 
15185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15186
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
15187
    (./conftest; exit; ) 2>/dev/null
 
15188
    lt_status=$?
 
15189
    case x$lt_status in
 
15190
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
15191
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
15192
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
15193
    esac
 
15194
  else :
 
15195
    # compilation failed
 
15196
    lt_cv_dlopen_self_static=no
 
15197
  fi
 
15198
fi
 
15199
rm -fr conftest*
 
15200
 
 
15201
 
 
15202
fi
 
15203
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
15204
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
15205
    fi
 
15206
 
 
15207
    CPPFLAGS="$save_CPPFLAGS"
 
15208
    LDFLAGS="$save_LDFLAGS"
 
15209
    LIBS="$save_LIBS"
 
15210
    ;;
 
15211
  esac
 
15212
 
 
15213
  case $lt_cv_dlopen_self in
 
15214
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
15215
  *) enable_dlopen_self=unknown ;;
 
15216
  esac
 
15217
 
 
15218
  case $lt_cv_dlopen_self_static in
 
15219
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
15220
  *) enable_dlopen_self_static=unknown ;;
 
15221
  esac
 
15222
fi
 
15223
 
 
15224
 
 
15225
# The else clause should only fire when bootstrapping the
 
15226
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15227
# with your package, and you will get complaints that there are
 
15228
# no rules to generate ltmain.sh.
 
15229
if test -f "$ltmain"; then
 
15230
  # See if we are running on zsh, and set the options which allow our commands through
 
15231
  # without removal of \ escapes.
 
15232
  if test -n "${ZSH_VERSION+set}" ; then
 
15233
    setopt NO_GLOB_SUBST
 
15234
  fi
 
15235
  # Now quote all the things that may contain metacharacters while being
 
15236
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15237
  # variables and quote the copies for generation of the libtool script.
 
15238
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
15239
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15240
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15241
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15242
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15243
    lt_cv_sys_global_symbol_to_c_name_address \
 
15244
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15245
    old_postinstall_cmds old_postuninstall_cmds \
 
15246
    compiler_CXX \
 
15247
    CC_CXX \
 
15248
    LD_CXX \
 
15249
    lt_prog_compiler_wl_CXX \
 
15250
    lt_prog_compiler_pic_CXX \
 
15251
    lt_prog_compiler_static_CXX \
 
15252
    lt_prog_compiler_no_builtin_flag_CXX \
 
15253
    export_dynamic_flag_spec_CXX \
 
15254
    thread_safe_flag_spec_CXX \
 
15255
    whole_archive_flag_spec_CXX \
 
15256
    enable_shared_with_static_runtimes_CXX \
 
15257
    old_archive_cmds_CXX \
 
15258
    old_archive_from_new_cmds_CXX \
 
15259
    predep_objects_CXX \
 
15260
    postdep_objects_CXX \
 
15261
    predeps_CXX \
 
15262
    postdeps_CXX \
 
15263
    compiler_lib_search_path_CXX \
 
15264
    archive_cmds_CXX \
 
15265
    archive_expsym_cmds_CXX \
 
15266
    postinstall_cmds_CXX \
 
15267
    postuninstall_cmds_CXX \
 
15268
    old_archive_from_expsyms_cmds_CXX \
 
15269
    allow_undefined_flag_CXX \
 
15270
    no_undefined_flag_CXX \
 
15271
    export_symbols_cmds_CXX \
 
15272
    hardcode_libdir_flag_spec_CXX \
 
15273
    hardcode_libdir_flag_spec_ld_CXX \
 
15274
    hardcode_libdir_separator_CXX \
 
15275
    hardcode_automatic_CXX \
 
15276
    module_cmds_CXX \
 
15277
    module_expsym_cmds_CXX \
 
15278
    lt_cv_prog_compiler_c_o_CXX \
 
15279
    exclude_expsyms_CXX \
 
15280
    include_expsyms_CXX; do
 
15281
 
 
15282
    case $var in
 
15283
    old_archive_cmds_CXX | \
 
15284
    old_archive_from_new_cmds_CXX | \
 
15285
    archive_cmds_CXX | \
 
15286
    archive_expsym_cmds_CXX | \
 
15287
    module_cmds_CXX | \
 
15288
    module_expsym_cmds_CXX | \
 
15289
    old_archive_from_expsyms_cmds_CXX | \
 
15290
    export_symbols_cmds_CXX | \
 
15291
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15292
    postinstall_cmds | postuninstall_cmds | \
 
15293
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15294
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15295
      # Double-quote double-evaled strings.
 
15296
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15297
      ;;
 
15298
    *)
 
15299
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15300
      ;;
 
15301
    esac
 
15302
  done
 
15303
 
 
15304
  case $lt_echo in
 
15305
  *'\$0 --fallback-echo"')
 
15306
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15307
    ;;
 
15308
  esac
 
15309
 
 
15310
cfgfile="$ofile"
 
15311
 
 
15312
  cat <<__EOF__ >> "$cfgfile"
 
15313
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15314
 
 
15315
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15316
 
 
15317
# Shell to use when invoking shell scripts.
 
15318
SHELL=$lt_SHELL
 
15319
 
 
15320
# Whether or not to build shared libraries.
 
15321
build_libtool_libs=$enable_shared
 
15322
 
 
15323
# Whether or not to build static libraries.
 
15324
build_old_libs=$enable_static
 
15325
 
 
15326
# Whether or not to add -lc for building shared libraries.
 
15327
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
15328
 
 
15329
# Whether or not to disallow shared libs when runtime libs are static
 
15330
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
15331
 
 
15332
# Whether or not to optimize for fast installation.
 
15333
fast_install=$enable_fast_install
 
15334
 
 
15335
# The host system.
 
15336
host_alias=$host_alias
 
15337
host=$host
 
15338
 
 
15339
# An echo program that does not interpret backslashes.
 
15340
echo=$lt_echo
 
15341
 
 
15342
# The archiver.
 
15343
AR=$lt_AR
 
15344
AR_FLAGS=$lt_AR_FLAGS
 
15345
 
 
15346
# A C compiler.
 
15347
LTCC=$lt_LTCC
 
15348
 
 
15349
# A language-specific compiler.
 
15350
CC=$lt_compiler_CXX
 
15351
 
 
15352
# Is the compiler the GNU C compiler?
 
15353
with_gcc=$GCC_CXX
 
15354
 
 
15355
# An ERE matcher.
 
15356
EGREP=$lt_EGREP
 
15357
 
 
15358
# The linker used to build libraries.
 
15359
LD=$lt_LD_CXX
 
15360
 
 
15361
# Whether we need hard or soft links.
 
15362
LN_S=$lt_LN_S
 
15363
 
 
15364
# A BSD-compatible nm program.
 
15365
NM=$lt_NM
 
15366
 
 
15367
# A symbol stripping program
 
15368
STRIP=$STRIP
 
15369
 
 
15370
# Used to examine libraries when file_magic_cmd begins "file"
 
15371
MAGIC_CMD=$MAGIC_CMD
 
15372
 
 
15373
# Used on cygwin: DLL creation program.
 
15374
DLLTOOL="$DLLTOOL"
 
15375
 
 
15376
# Used on cygwin: object dumper.
 
15377
OBJDUMP="$OBJDUMP"
 
15378
 
 
15379
# Used on cygwin: assembler.
 
15380
AS="$AS"
 
15381
 
 
15382
# The name of the directory that contains temporary libtool files.
 
15383
objdir=$objdir
 
15384
 
 
15385
# How to create reloadable object files.
 
15386
reload_flag=$lt_reload_flag
 
15387
reload_cmds=$lt_reload_cmds
 
15388
 
 
15389
# How to pass a linker flag through the compiler.
 
15390
wl=$lt_lt_prog_compiler_wl_CXX
 
15391
 
 
15392
# Object file suffix (normally "o").
 
15393
objext="$ac_objext"
 
15394
 
 
15395
# Old archive suffix (normally "a").
 
15396
libext="$libext"
 
15397
 
 
15398
# Shared library suffix (normally ".so").
 
15399
shrext='$shrext'
 
15400
 
 
15401
# Executable file suffix (normally "").
 
15402
exeext="$exeext"
 
15403
 
 
15404
# Additional compiler flags for building library objects.
 
15405
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
15406
pic_mode=$pic_mode
 
15407
 
 
15408
# What is the maximum length of a command?
 
15409
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15410
 
 
15411
# Does compiler simultaneously support -c and -o options?
 
15412
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
15413
 
 
15414
# Must we lock files when doing compilation ?
 
15415
need_locks=$lt_need_locks
 
15416
 
 
15417
# Do we need the lib prefix for modules?
 
15418
need_lib_prefix=$need_lib_prefix
 
15419
 
 
15420
# Do we need a version for libraries?
 
15421
need_version=$need_version
 
15422
 
 
15423
# Whether dlopen is supported.
 
15424
dlopen_support=$enable_dlopen
 
15425
 
 
15426
# Whether dlopen of programs is supported.
 
15427
dlopen_self=$enable_dlopen_self
 
15428
 
 
15429
# Whether dlopen of statically linked programs is supported.
 
15430
dlopen_self_static=$enable_dlopen_self_static
 
15431
 
 
15432
# Compiler flag to prevent dynamic linking.
 
15433
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
15434
 
 
15435
# Compiler flag to turn off builtin functions.
 
15436
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
15437
 
 
15438
# Compiler flag to allow reflexive dlopens.
 
15439
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
15440
 
 
15441
# Compiler flag to generate shared objects directly from archives.
 
15442
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
15443
 
 
15444
# Compiler flag to generate thread-safe objects.
 
15445
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
15446
 
 
15447
# Library versioning type.
 
15448
version_type=$version_type
 
15449
 
 
15450
# Format of library name prefix.
 
15451
libname_spec=$lt_libname_spec
 
15452
 
 
15453
# List of archive names.  First name is the real one, the rest are links.
 
15454
# The last name is the one that the linker finds with -lNAME.
 
15455
library_names_spec=$lt_library_names_spec
 
15456
 
 
15457
# The coded name of the library, if different from the real name.
 
15458
soname_spec=$lt_soname_spec
 
15459
 
 
15460
# Commands used to build and install an old-style archive.
 
15461
RANLIB=$lt_RANLIB
 
15462
old_archive_cmds=$lt_old_archive_cmds_CXX
 
15463
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15464
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15465
 
 
15466
# Create an old-style archive from a shared archive.
 
15467
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
15468
 
 
15469
# Create a temporary old-style archive to link instead of a shared archive.
 
15470
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
15471
 
 
15472
# Commands used to build and install a shared archive.
 
15473
archive_cmds=$lt_archive_cmds_CXX
 
15474
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
15475
postinstall_cmds=$lt_postinstall_cmds
 
15476
postuninstall_cmds=$lt_postuninstall_cmds
 
15477
 
 
15478
# Commands used to build a loadable module (assumed same as above if empty)
 
15479
module_cmds=$lt_module_cmds_CXX
 
15480
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
15481
 
 
15482
# Commands to strip libraries.
 
15483
old_striplib=$lt_old_striplib
 
15484
striplib=$lt_striplib
 
15485
 
 
15486
# Dependencies to place before the objects being linked to create a
 
15487
# shared library.
 
15488
predep_objects=$lt_predep_objects_CXX
 
15489
 
 
15490
# Dependencies to place after the objects being linked to create a
 
15491
# shared library.
 
15492
postdep_objects=$lt_postdep_objects_CXX
 
15493
 
 
15494
# Dependencies to place before the objects being linked to create a
 
15495
# shared library.
 
15496
predeps=$lt_predeps_CXX
 
15497
 
 
15498
# Dependencies to place after the objects being linked to create a
 
15499
# shared library.
 
15500
postdeps=$lt_postdeps_CXX
 
15501
 
 
15502
# The library search path used internally by the compiler when linking
 
15503
# a shared library.
 
15504
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
15505
 
 
15506
# Method to check whether dependent libraries are shared objects.
 
15507
deplibs_check_method=$lt_deplibs_check_method
 
15508
 
 
15509
# Command to use when deplibs_check_method == file_magic.
 
15510
file_magic_cmd=$lt_file_magic_cmd
 
15511
 
 
15512
# Flag that allows shared libraries with undefined symbols to be built.
 
15513
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
15514
 
 
15515
# Flag that forces no undefined symbols.
 
15516
no_undefined_flag=$lt_no_undefined_flag_CXX
 
15517
 
 
15518
# Commands used to finish a libtool library installation in a directory.
 
15519
finish_cmds=$lt_finish_cmds
 
15520
 
 
15521
# Same as above, but a single script fragment to be evaled but not shown.
 
15522
finish_eval=$lt_finish_eval
 
15523
 
 
15524
# Take the output of nm and produce a listing of raw symbols and C names.
 
15525
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15526
 
 
15527
# Transform the output of nm in a proper C declaration
 
15528
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15529
 
 
15530
# Transform the output of nm in a C name address pair
 
15531
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15532
 
 
15533
# This is the shared library runtime path variable.
 
15534
runpath_var=$runpath_var
 
15535
 
 
15536
# This is the shared library path variable.
 
15537
shlibpath_var=$shlibpath_var
 
15538
 
 
15539
# Is shlibpath searched before the hard-coded library search path?
 
15540
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15541
 
 
15542
# How to hardcode a shared library path into an executable.
 
15543
hardcode_action=$hardcode_action_CXX
 
15544
 
 
15545
# Whether we should hardcode library paths into libraries.
 
15546
hardcode_into_libs=$hardcode_into_libs
 
15547
 
 
15548
# Flag to hardcode \$libdir into a binary during linking.
 
15549
# This must work even if \$libdir does not exist.
 
15550
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
15551
 
 
15552
# If ld is used when linking, flag to hardcode \$libdir into
 
15553
# a binary during linking. This must work even if \$libdir does
 
15554
# not exist.
 
15555
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
15556
 
 
15557
# Whether we need a single -rpath flag with a separated argument.
 
15558
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
15559
 
 
15560
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15561
# resulting binary.
 
15562
hardcode_direct=$hardcode_direct_CXX
 
15563
 
 
15564
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15565
# resulting binary.
 
15566
hardcode_minus_L=$hardcode_minus_L_CXX
 
15567
 
 
15568
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15569
# the resulting binary.
 
15570
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
15571
 
 
15572
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15573
# and all subsequent libraries and executables linked against it.
 
15574
hardcode_automatic=$hardcode_automatic_CXX
 
15575
 
 
15576
# Variables whose values should be saved in libtool wrapper scripts and
 
15577
# restored at relink time.
 
15578
variables_saved_for_relink="$variables_saved_for_relink"
 
15579
 
 
15580
# Whether libtool must link a program against all its dependency libraries.
 
15581
link_all_deplibs=$link_all_deplibs_CXX
 
15582
 
 
15583
# Compile-time system search path for libraries
 
15584
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15585
 
 
15586
# Run-time system search path for libraries
 
15587
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15588
 
 
15589
# Fix the shell variable \$srcfile for the compiler.
 
15590
fix_srcfile_path="$fix_srcfile_path_CXX"
 
15591
 
 
15592
# Set to yes if exported symbols are required.
 
15593
always_export_symbols=$always_export_symbols_CXX
 
15594
 
 
15595
# The commands to list exported symbols.
 
15596
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
15597
 
 
15598
# The commands to extract the exported symbol list from a shared archive.
 
15599
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15600
 
 
15601
# Symbols that should not be listed in the preloaded symbols.
 
15602
exclude_expsyms=$lt_exclude_expsyms_CXX
 
15603
 
 
15604
# Symbols that must always be exported.
 
15605
include_expsyms=$lt_include_expsyms_CXX
 
15606
 
 
15607
# ### END LIBTOOL TAG CONFIG: $tagname
 
15608
 
 
15609
__EOF__
 
15610
 
 
15611
 
 
15612
else
 
15613
  # If there is no Makefile yet, we rely on a make rule to execute
 
15614
  # `config.status --recheck' to rerun these tests and create the
 
15615
  # libtool script then.
 
15616
  test -f Makefile && make "$ltmain"
 
15617
fi
 
15618
 
 
15619
 
 
15620
ac_ext=c
 
15621
ac_cpp='$CPP $CPPFLAGS'
 
15622
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15623
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15624
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15625
 
 
15626
CC=$lt_save_CC
 
15627
LDCXX=$LD
 
15628
LD=$lt_save_LD
 
15629
GCC=$lt_save_GCC
 
15630
with_gnu_ldcxx=$with_gnu_ld
 
15631
with_gnu_ld=$lt_save_with_gnu_ld
 
15632
lt_cv_path_LDCXX=$lt_cv_path_LD
 
15633
lt_cv_path_LD=$lt_save_path_LD
 
15634
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15635
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15636
 
 
15637
        else
 
15638
          tagname=""
 
15639
        fi
 
15640
        ;;
 
15641
 
 
15642
      F77)
 
15643
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
15644
 
 
15645
ac_ext=f
 
15646
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
15647
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15648
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
15649
 
 
15650
 
 
15651
archive_cmds_need_lc_F77=no
 
15652
allow_undefined_flag_F77=
 
15653
always_export_symbols_F77=no
 
15654
archive_expsym_cmds_F77=
 
15655
export_dynamic_flag_spec_F77=
 
15656
hardcode_direct_F77=no
 
15657
hardcode_libdir_flag_spec_F77=
 
15658
hardcode_libdir_flag_spec_ld_F77=
 
15659
hardcode_libdir_separator_F77=
 
15660
hardcode_minus_L_F77=no
 
15661
hardcode_automatic_F77=no
 
15662
module_cmds_F77=
 
15663
module_expsym_cmds_F77=
 
15664
link_all_deplibs_F77=unknown
 
15665
old_archive_cmds_F77=$old_archive_cmds
 
15666
no_undefined_flag_F77=
 
15667
whole_archive_flag_spec_F77=
 
15668
enable_shared_with_static_runtimes_F77=no
 
15669
 
 
15670
# Source file extension for f77 test sources.
 
15671
ac_ext=f
 
15672
 
 
15673
# Object file extension for compiled f77 test sources.
 
15674
objext=o
 
15675
objext_F77=$objext
 
15676
 
 
15677
# Code to be used in simple compile tests
 
15678
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
15679
 
 
15680
# Code to be used in simple link tests
 
15681
lt_simple_link_test_code="      program t\n      end\n"
 
15682
 
 
15683
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15684
 
 
15685
# If no C compiler was specified, use CC.
 
15686
LTCC=${LTCC-"$CC"}
 
15687
 
 
15688
# Allow CC to be a program name with arguments.
 
15689
compiler=$CC
 
15690
 
 
15691
 
 
15692
# Allow CC to be a program name with arguments.
 
15693
lt_save_CC="$CC"
 
15694
CC=${F77-"f77"}
 
15695
compiler=$CC
 
15696
compiler_F77=$CC
 
15697
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
15698
 
 
15699
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
15700
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
15701
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
15702
echo "${ECHO_T}$can_build_shared" >&6
 
15703
 
 
15704
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
15705
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
15706
test "$can_build_shared" = "no" && enable_shared=no
 
15707
 
 
15708
# On AIX, shared libraries and static libraries use the same namespace, and
 
15709
# are all built from PIC.
 
15710
case "$host_os" in
 
15711
aix3*)
 
15712
  test "$enable_shared" = yes && enable_static=no
 
15713
  if test -n "$RANLIB"; then
 
15714
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
15715
    postinstall_cmds='$RANLIB $lib'
 
15716
  fi
 
15717
  ;;
 
15718
aix4*)
 
15719
  test "$enable_shared" = yes && enable_static=no
 
15720
  ;;
 
15721
esac
 
15722
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
15723
echo "${ECHO_T}$enable_shared" >&6
 
15724
 
 
15725
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
15726
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
15727
# Make sure either enable_shared or enable_static is yes.
 
15728
test "$enable_shared" = yes || enable_static=yes
 
15729
echo "$as_me:$LINENO: result: $enable_static" >&5
 
15730
echo "${ECHO_T}$enable_static" >&6
 
15731
 
 
15732
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15733
 
 
15734
GCC_F77="$G77"
 
15735
LD_F77="$LD"
 
15736
 
 
15737
lt_prog_compiler_wl_F77=
 
15738
lt_prog_compiler_pic_F77=
 
15739
lt_prog_compiler_static_F77=
 
15740
 
 
15741
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15742
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15743
 
 
15744
  if test "$GCC" = yes; then
 
15745
    lt_prog_compiler_wl_F77='-Wl,'
 
15746
    lt_prog_compiler_static_F77='-static'
 
15747
 
 
15748
    case $host_os in
 
15749
      aix*)
 
15750
      # All AIX code is PIC.
 
15751
      if test "$host_cpu" = ia64; then
 
15752
        # AIX 5 now supports IA64 processor
 
15753
        lt_prog_compiler_static_F77='-Bstatic'
 
15754
      fi
 
15755
      ;;
 
15756
 
 
15757
    amigaos*)
 
15758
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15759
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15760
      # like `-m68040'.
 
15761
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
15762
      ;;
 
15763
 
 
15764
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15765
      # PIC is the default for these OSes.
 
15766
      ;;
 
15767
 
 
15768
    mingw* | pw32* | os2*)
 
15769
      # This hack is so that the source file can tell whether it is being
 
15770
      # built for inclusion in a dll (and should export symbols for example).
 
15771
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
15772
      ;;
 
15773
 
 
15774
    darwin* | rhapsody*)
 
15775
      # PIC is the default on this platform
 
15776
      # Common symbols not allowed in MH_DYLIB files
 
15777
      lt_prog_compiler_pic_F77='-fno-common'
 
15778
      ;;
 
15779
 
 
15780
    msdosdjgpp*)
 
15781
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15782
      # on systems that don't support them.
 
15783
      lt_prog_compiler_can_build_shared_F77=no
 
15784
      enable_shared=no
 
15785
      ;;
 
15786
 
 
15787
    sysv4*MP*)
 
15788
      if test -d /usr/nec; then
 
15789
        lt_prog_compiler_pic_F77=-Kconform_pic
 
15790
      fi
 
15791
      ;;
 
15792
 
 
15793
    hpux*)
 
15794
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15795
      # not for PA HP-UX.
 
15796
      case "$host_cpu" in
 
15797
      hppa*64*|ia64*)
 
15798
        # +Z the default
 
15799
        ;;
 
15800
      *)
 
15801
        lt_prog_compiler_pic_F77='-fPIC'
 
15802
        ;;
 
15803
      esac
 
15804
      ;;
 
15805
 
 
15806
    *)
 
15807
      lt_prog_compiler_pic_F77='-fPIC'
 
15808
      ;;
 
15809
    esac
 
15810
  else
 
15811
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15812
    case $host_os in
 
15813
    aix*)
 
15814
      lt_prog_compiler_wl_F77='-Wl,'
 
15815
      if test "$host_cpu" = ia64; then
 
15816
        # AIX 5 now supports IA64 processor
 
15817
        lt_prog_compiler_static_F77='-Bstatic'
 
15818
      else
 
15819
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
15820
      fi
 
15821
      ;;
 
15822
 
 
15823
    mingw* | pw32* | os2*)
 
15824
      # This hack is so that the source file can tell whether it is being
 
15825
      # built for inclusion in a dll (and should export symbols for example).
 
15826
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
15827
      ;;
 
15828
 
 
15829
    hpux9* | hpux10* | hpux11*)
 
15830
      lt_prog_compiler_wl_F77='-Wl,'
 
15831
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15832
      # not for PA HP-UX.
 
15833
      case "$host_cpu" in
 
15834
      hppa*64*|ia64*)
 
15835
        # +Z the default
 
15836
        ;;
 
15837
      *)
 
15838
        lt_prog_compiler_pic_F77='+Z'
 
15839
        ;;
 
15840
      esac
 
15841
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15842
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
15843
      ;;
 
15844
 
 
15845
    irix5* | irix6* | nonstopux*)
 
15846
      lt_prog_compiler_wl_F77='-Wl,'
 
15847
      # PIC (with -KPIC) is the default.
 
15848
      lt_prog_compiler_static_F77='-non_shared'
 
15849
      ;;
 
15850
 
 
15851
    newsos6)
 
15852
      lt_prog_compiler_pic_F77='-KPIC'
 
15853
      lt_prog_compiler_static_F77='-Bstatic'
 
15854
      ;;
 
15855
 
 
15856
    linux*)
 
15857
      case $CC in
 
15858
      icc* | ecc*)
 
15859
        lt_prog_compiler_wl_F77='-Wl,'
 
15860
        lt_prog_compiler_pic_F77='-KPIC'
 
15861
        lt_prog_compiler_static_F77='-static'
 
15862
        ;;
 
15863
      ccc*)
 
15864
        lt_prog_compiler_wl_F77='-Wl,'
 
15865
        # All Alpha code is PIC.
 
15866
        lt_prog_compiler_static_F77='-non_shared'
 
15867
        ;;
 
15868
      esac
 
15869
      ;;
 
15870
 
 
15871
    osf3* | osf4* | osf5*)
 
15872
      lt_prog_compiler_wl_F77='-Wl,'
 
15873
      # All OSF/1 code is PIC.
 
15874
      lt_prog_compiler_static_F77='-non_shared'
 
15875
      ;;
 
15876
 
 
15877
    sco3.2v5*)
 
15878
      lt_prog_compiler_pic_F77='-Kpic'
 
15879
      lt_prog_compiler_static_F77='-dn'
 
15880
      ;;
 
15881
 
 
15882
    solaris*)
 
15883
      lt_prog_compiler_wl_F77='-Wl,'
 
15884
      lt_prog_compiler_pic_F77='-KPIC'
 
15885
      lt_prog_compiler_static_F77='-Bstatic'
 
15886
      ;;
 
15887
 
 
15888
    sunos4*)
 
15889
      lt_prog_compiler_wl_F77='-Qoption ld '
 
15890
      lt_prog_compiler_pic_F77='-PIC'
 
15891
      lt_prog_compiler_static_F77='-Bstatic'
 
15892
      ;;
 
15893
 
 
15894
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15895
      lt_prog_compiler_wl_F77='-Wl,'
 
15896
      lt_prog_compiler_pic_F77='-KPIC'
 
15897
      lt_prog_compiler_static_F77='-Bstatic'
 
15898
      ;;
 
15899
 
 
15900
    sysv4*MP*)
 
15901
      if test -d /usr/nec ;then
 
15902
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
15903
        lt_prog_compiler_static_F77='-Bstatic'
 
15904
      fi
 
15905
      ;;
 
15906
 
 
15907
    uts4*)
 
15908
      lt_prog_compiler_pic_F77='-pic'
 
15909
      lt_prog_compiler_static_F77='-Bstatic'
 
15910
      ;;
 
15911
 
 
15912
    *)
 
15913
      lt_prog_compiler_can_build_shared_F77=no
 
15914
      ;;
 
15915
    esac
 
15916
  fi
 
15917
 
 
15918
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
15919
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
15920
 
 
15921
#
 
15922
# Check to make sure the PIC flag actually works.
 
15923
#
 
15924
if test -n "$lt_prog_compiler_pic_F77"; then
 
15925
 
 
15926
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
15927
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
15928
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
15929
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15930
else
 
15931
  lt_prog_compiler_pic_works_F77=no
 
15932
  ac_outfile=conftest.$ac_objext
 
15933
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15934
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
15935
   # Insert the option either (1) after the last *FLAGS variable, or
 
15936
   # (2) before a word containing "conftest.", or (3) at the end.
 
15937
   # Note that $ac_compile itself does not contain backslashes and begins
 
15938
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15939
   # The option is referenced via a variable to avoid confusing sed.
 
15940
   lt_compile=`echo "$ac_compile" | $SED \
 
15941
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15942
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15943
   -e 's:$: $lt_compiler_flag:'`
 
15944
   (eval echo "\"\$as_me:15944: $lt_compile\"" >&5)
 
15945
   (eval "$lt_compile" 2>conftest.err)
 
15946
   ac_status=$?
 
15947
   cat conftest.err >&5
 
15948
   echo "$as_me:15948: \$? = $ac_status" >&5
 
15949
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15950
     # The compiler can only warn and ignore the option if not recognized
 
15951
     # So say no if there are warnings
 
15952
     if test ! -s conftest.err; then
 
15953
       lt_prog_compiler_pic_works_F77=yes
 
15954
     fi
 
15955
   fi
 
15956
   $rm conftest*
 
15957
 
 
15958
fi
 
15959
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
15960
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
15961
 
 
15962
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
15963
    case $lt_prog_compiler_pic_F77 in
 
15964
     "" | " "*) ;;
 
15965
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
15966
     esac
 
15967
else
 
15968
    lt_prog_compiler_pic_F77=
 
15969
     lt_prog_compiler_can_build_shared_F77=no
 
15970
fi
 
15971
 
 
15972
fi
 
15973
case "$host_os" in
 
15974
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15975
  *djgpp*)
 
15976
    lt_prog_compiler_pic_F77=
 
15977
    ;;
 
15978
  *)
 
15979
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
15980
    ;;
 
15981
esac
 
15982
 
 
15983
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15984
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15985
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
15986
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15987
else
 
15988
  lt_cv_prog_compiler_c_o_F77=no
 
15989
   $rm -r conftest 2>/dev/null
 
15990
   mkdir conftest
 
15991
   cd conftest
 
15992
   mkdir out
 
15993
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15994
 
 
15995
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
15996
   # that will create temporary files in the current directory regardless of
 
15997
   # the output directory.  Thus, making CWD read-only will cause this test
 
15998
   # to fail, enabling locking or at least warning the user not to do parallel
 
15999
   # builds.
 
16000
   chmod -w .
 
16001
 
 
16002
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16003
   # Insert the option either (1) after the last *FLAGS variable, or
 
16004
   # (2) before a word containing "conftest.", or (3) at the end.
 
16005
   # Note that $ac_compile itself does not contain backslashes and begins
 
16006
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16007
   lt_compile=`echo "$ac_compile" | $SED \
 
16008
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16009
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16010
   -e 's:$: $lt_compiler_flag:'`
 
16011
   (eval echo "\"\$as_me:16011: $lt_compile\"" >&5)
 
16012
   (eval "$lt_compile" 2>out/conftest.err)
 
16013
   ac_status=$?
 
16014
   cat out/conftest.err >&5
 
16015
   echo "$as_me:16015: \$? = $ac_status" >&5
 
16016
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16017
   then
 
16018
     # The compiler can only warn and ignore the option if not recognized
 
16019
     # So say no if there are warnings
 
16020
     if test ! -s out/conftest.err; then
 
16021
       lt_cv_prog_compiler_c_o_F77=yes
 
16022
     fi
 
16023
   fi
 
16024
   chmod u+w .
 
16025
   $rm conftest* out/*
 
16026
   rmdir out
 
16027
   cd ..
 
16028
   rmdir conftest
 
16029
   $rm conftest*
 
16030
 
 
16031
fi
 
16032
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
16033
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
16034
 
 
16035
 
 
16036
hard_links="nottested"
 
16037
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
16038
  # do not overwrite the value of need_locks provided by the user
 
16039
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16040
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
16041
  hard_links=yes
 
16042
  $rm conftest*
 
16043
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16044
  touch conftest.a
 
16045
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16046
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16047
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
16048
echo "${ECHO_T}$hard_links" >&6
 
16049
  if test "$hard_links" = no; then
 
16050
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16051
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16052
    need_locks=warn
 
16053
  fi
 
16054
else
 
16055
  need_locks=no
 
16056
fi
 
16057
 
 
16058
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16059
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
16060
 
 
16061
  runpath_var=
 
16062
  allow_undefined_flag_F77=
 
16063
  enable_shared_with_static_runtimes_F77=no
 
16064
  archive_cmds_F77=
 
16065
  archive_expsym_cmds_F77=
 
16066
  old_archive_From_new_cmds_F77=
 
16067
  old_archive_from_expsyms_cmds_F77=
 
16068
  export_dynamic_flag_spec_F77=
 
16069
  whole_archive_flag_spec_F77=
 
16070
  thread_safe_flag_spec_F77=
 
16071
  hardcode_libdir_flag_spec_F77=
 
16072
  hardcode_libdir_flag_spec_ld_F77=
 
16073
  hardcode_libdir_separator_F77=
 
16074
  hardcode_direct_F77=no
 
16075
  hardcode_minus_L_F77=no
 
16076
  hardcode_shlibpath_var_F77=unsupported
 
16077
  link_all_deplibs_F77=unknown
 
16078
  hardcode_automatic_F77=no
 
16079
  module_cmds_F77=
 
16080
  module_expsym_cmds_F77=
 
16081
  always_export_symbols_F77=no
 
16082
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16083
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16084
  # included in the symbol list
 
16085
  include_expsyms_F77=
 
16086
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16087
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16088
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16089
  # as well as any symbol that contains `d'.
 
16090
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
16091
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16092
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16093
  # the symbol is explicitly referenced.  Since portable code cannot
 
16094
  # rely on this symbol name, it's probably fine to never include it in
 
16095
  # preloaded symbol tables.
 
16096
  extract_expsyms_cmds=
 
16097
 
 
16098
  case $host_os in
 
16099
  cygwin* | mingw* | pw32*)
 
16100
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16101
    # When not using gcc, we currently assume that we are using
 
16102
    # Microsoft Visual C++.
 
16103
    if test "$GCC" != yes; then
 
16104
      with_gnu_ld=no
 
16105
    fi
 
16106
    ;;
 
16107
  openbsd*)
 
16108
    with_gnu_ld=no
 
16109
    ;;
 
16110
  esac
 
16111
 
 
16112
  ld_shlibs_F77=yes
 
16113
  if test "$with_gnu_ld" = yes; then
 
16114
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16115
    wlarc='${wl}'
 
16116
 
 
16117
    # See if GNU ld supports shared libraries.
 
16118
    case $host_os in
 
16119
    aix3* | aix4* | aix5*)
 
16120
      # On AIX/PPC, the GNU linker is very broken
 
16121
      if test "$host_cpu" != ia64; then
 
16122
        ld_shlibs_F77=no
 
16123
        cat <<EOF 1>&2
 
16124
 
 
16125
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16126
*** to be unable to reliably create shared libraries on AIX.
 
16127
*** Therefore, libtool is disabling shared libraries support.  If you
 
16128
*** really care for shared libraries, you may want to modify your PATH
 
16129
*** so that a non-GNU linker is found, and then restart.
 
16130
 
 
16131
EOF
 
16132
      fi
 
16133
      ;;
 
16134
 
 
16135
    amigaos*)
 
16136
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
16137
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16138
      hardcode_minus_L_F77=yes
 
16139
 
 
16140
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16141
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16142
      # to version 4, is to share data among multiple programs linked
 
16143
      # with the same dynamic library.  Since this doesn't match the
 
16144
      # behavior of shared libraries on other platforms, we can't use
 
16145
      # them.
 
16146
      ld_shlibs_F77=no
 
16147
      ;;
 
16148
 
 
16149
    beos*)
 
16150
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16151
        allow_undefined_flag_F77=unsupported
 
16152
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16153
        # support --undefined.  This deserves some investigation.  FIXME
 
16154
        archive_cmds_F77='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
16155
      else
 
16156
        ld_shlibs_F77=no
 
16157
      fi
 
16158
      ;;
 
16159
 
 
16160
    cygwin* | mingw* | pw32*)
 
16161
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
16162
      # as there is no search path for DLLs.
 
16163
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16164
      allow_undefined_flag_F77=no
 
16165
      always_export_symbols_F77=no
 
16166
      enable_shared_with_static_runtimes_F77=yes
 
16167
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16168
 
 
16169
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16170
        archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16171
        # If the export-symbols file already is a .def file (1st line
 
16172
        # is EXPORTS), use it as is; otherwise, prepend...
 
16173
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16174
          cp $export_symbols $output_objdir/$soname.def;
 
16175
        else
 
16176
          echo EXPORTS > $output_objdir/$soname.def;
 
16177
          cat $export_symbols >> $output_objdir/$soname.def;
 
16178
        fi~
 
16179
        $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
16180
      else
 
16181
        ld_shlibs=no
 
16182
      fi
 
16183
      ;;
 
16184
 
 
16185
    netbsd*)
 
16186
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16187
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16188
        wlarc=
 
16189
      else
 
16190
        archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
16191
        archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16192
      fi
 
16193
      ;;
 
16194
 
 
16195
    solaris* | sysv5*)
 
16196
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16197
        ld_shlibs_F77=no
 
16198
        cat <<EOF 1>&2
 
16199
 
 
16200
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16201
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16202
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16203
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16204
*** your PATH or compiler configuration so that the native linker is
 
16205
*** used, and then restart.
 
16206
 
 
16207
EOF
 
16208
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16209
        archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
16210
        archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16211
      else
 
16212
        ld_shlibs_F77=no
 
16213
      fi
 
16214
      ;;
 
16215
 
 
16216
    sunos4*)
 
16217
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16218
      wlarc=
 
16219
      hardcode_direct_F77=yes
 
16220
      hardcode_shlibpath_var_F77=no
 
16221
      ;;
 
16222
 
 
16223
    *)
 
16224
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16225
        archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
16226
        archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16227
      else
 
16228
        ld_shlibs_F77=no
 
16229
      fi
 
16230
      ;;
 
16231
    esac
 
16232
 
 
16233
    if test "$ld_shlibs_F77" = yes; then
 
16234
      runpath_var=LD_RUN_PATH
 
16235
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
16236
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
16237
      # ancient GNU ld didn't support --whole-archive et. al.
 
16238
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16239
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16240
      else
 
16241
        whole_archive_flag_spec_F77=
 
16242
      fi
 
16243
    fi
 
16244
  else
 
16245
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16246
    case $host_os in
 
16247
    aix3*)
 
16248
      allow_undefined_flag_F77=unsupported
 
16249
      always_export_symbols_F77=yes
 
16250
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
16251
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16252
      # are no directories specified by -L.
 
16253
      hardcode_minus_L_F77=yes
 
16254
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16255
        # Neither direct hardcoding nor static linking is supported with a
 
16256
        # broken collect2.
 
16257
        hardcode_direct_F77=unsupported
 
16258
      fi
 
16259
      ;;
 
16260
 
 
16261
    aix4* | aix5*)
 
16262
      if test "$host_cpu" = ia64; then
 
16263
        # On IA64, the linker does run time linking by default, so we don't
 
16264
        # have to do anything special.
 
16265
        aix_use_runtimelinking=no
 
16266
        exp_sym_flag='-Bexport'
 
16267
        no_entry_flag=""
 
16268
      else
 
16269
        # If we're using GNU nm, then we don't want the "-C" option.
 
16270
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16271
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16272
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
16273
        else
 
16274
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
16275
        fi
 
16276
 
 
16277
        # KDE requires run time linking.  Make it the default.
 
16278
        aix_use_runtimelinking=yes
 
16279
        exp_sym_flag='-bexport'
 
16280
        no_entry_flag='-bnoentry'
 
16281
      fi
 
16282
 
 
16283
      # When large executables or shared objects are built, AIX ld can
 
16284
      # have problems creating the table of contents.  If linking a library
 
16285
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16286
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16287
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16288
 
 
16289
      archive_cmds_F77=''
 
16290
      hardcode_direct_F77=yes
 
16291
      hardcode_libdir_separator_F77=':'
 
16292
      link_all_deplibs_F77=yes
 
16293
 
 
16294
      if test "$GCC" = yes; then
 
16295
        case $host_os in aix4.012|aix4.012.*)
 
16296
        # We only want to do this on AIX 4.2 and lower, the check
 
16297
        # below for broken collect2 doesn't work under 4.3+
 
16298
          collect2name=`${CC} -print-prog-name=collect2`
 
16299
          if test -f "$collect2name" && \
 
16300
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16301
          then
 
16302
          # We have reworked collect2
 
16303
          hardcode_direct_F77=yes
 
16304
          else
 
16305
          # We have old collect2
 
16306
          hardcode_direct_F77=unsupported
 
16307
          # It fails to find uninstalled libraries when the uninstalled
 
16308
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16309
          # to unsupported forces relinking
 
16310
          hardcode_minus_L_F77=yes
 
16311
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
16312
          hardcode_libdir_separator_F77=
 
16313
          fi
 
16314
        esac
 
16315
        shared_flag='-shared'
 
16316
      else
 
16317
        # not using gcc
 
16318
        if test "$host_cpu" = ia64; then
 
16319
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16320
        # chokes on -Wl,-G. The following line is correct:
 
16321
          shared_flag='-G'
 
16322
        else
 
16323
        if test "$aix_use_runtimelinking" = yes; then
 
16324
            shared_flag='-qmkshrobj ${wl}-G'
 
16325
          else
 
16326
            shared_flag='-qmkshrobj'
 
16327
        fi
 
16328
        fi
 
16329
      fi
 
16330
 
 
16331
      # Let the compiler handle the export list.
 
16332
      always_export_symbols_F77=no
 
16333
      if test "$aix_use_runtimelinking" = yes; then
 
16334
        # Warning - without using the other runtime loading flags (-brtl),
 
16335
        # -berok will link without error, but may produce a broken library.
 
16336
        allow_undefined_flag_F77='-berok'
 
16337
       # Determine the default libpath from the value encoded in an empty executable.
 
16338
        cat >conftest.$ac_ext <<_ACEOF
 
16339
      program main
 
16340
 
 
16341
      end
 
16342
_ACEOF
 
16343
rm -f conftest.$ac_objext conftest$ac_exeext
 
16344
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16345
  (eval $ac_link) 2>conftest.er1
 
16346
  ac_status=$?
 
16347
  grep -v '^ *+' conftest.er1 >conftest.err
 
16348
  rm -f conftest.er1
 
16349
  cat conftest.err >&5
 
16350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16351
  (exit $ac_status); } &&
 
16352
         { ac_try='test -z "$ac_f77_werror_flag"
 
16353
                         || test ! -s conftest.err'
 
16354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16355
  (eval $ac_try) 2>&5
 
16356
  ac_status=$?
 
16357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16358
  (exit $ac_status); }; } &&
 
16359
         { ac_try='test -s conftest$ac_exeext'
 
16360
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16361
  (eval $ac_try) 2>&5
 
16362
  ac_status=$?
 
16363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16364
  (exit $ac_status); }; }; then
 
16365
 
 
16366
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16367
}'`
 
16368
# Check for a 64-bit object if we didn't find anything.
 
16369
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16370
}'`; fi
 
16371
else
 
16372
  echo "$as_me: failed program was:" >&5
 
16373
sed 's/^/| /' conftest.$ac_ext >&5
 
16374
 
 
16375
fi
 
16376
rm -f conftest.err conftest.$ac_objext \
 
16377
      conftest$ac_exeext conftest.$ac_ext
 
16378
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16379
 
 
16380
        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16381
        archive_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
 
16382
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
16383
       else
 
16384
        if test "$host_cpu" = ia64; then
 
16385
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
16386
          allow_undefined_flag_F77="-z nodefs"
 
16387
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
16388
        else
 
16389
         # Determine the default libpath from the value encoded in an empty executable.
 
16390
         cat >conftest.$ac_ext <<_ACEOF
 
16391
      program main
 
16392
 
 
16393
      end
 
16394
_ACEOF
 
16395
rm -f conftest.$ac_objext conftest$ac_exeext
 
16396
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16397
  (eval $ac_link) 2>conftest.er1
 
16398
  ac_status=$?
 
16399
  grep -v '^ *+' conftest.er1 >conftest.err
 
16400
  rm -f conftest.er1
 
16401
  cat conftest.err >&5
 
16402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16403
  (exit $ac_status); } &&
 
16404
         { ac_try='test -z "$ac_f77_werror_flag"
 
16405
                         || test ! -s conftest.err'
 
16406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16407
  (eval $ac_try) 2>&5
 
16408
  ac_status=$?
 
16409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16410
  (exit $ac_status); }; } &&
 
16411
         { ac_try='test -s conftest$ac_exeext'
 
16412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16413
  (eval $ac_try) 2>&5
 
16414
  ac_status=$?
 
16415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16416
  (exit $ac_status); }; }; then
 
16417
 
 
16418
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16419
}'`
 
16420
# Check for a 64-bit object if we didn't find anything.
 
16421
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16422
}'`; fi
 
16423
else
 
16424
  echo "$as_me: failed program was:" >&5
 
16425
sed 's/^/| /' conftest.$ac_ext >&5
 
16426
 
 
16427
fi
 
16428
rm -f conftest.err conftest.$ac_objext \
 
16429
      conftest$ac_exeext conftest.$ac_ext
 
16430
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16431
 
 
16432
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16433
          # Warning - without using the other run time loading flags,
 
16434
          # -berok will link without error, but may produce a broken library.
 
16435
          no_undefined_flag_F77=' ${wl}-bernotok'
 
16436
          allow_undefined_flag_F77=' ${wl}-berok'
 
16437
          # -bexpall does not export symbols beginning with underscore (_)
 
16438
          always_export_symbols_F77=yes
 
16439
          # Exported symbols can be pulled into shared objects from archives
 
16440
          whole_archive_flag_spec_F77=' '
 
16441
          archive_cmds_need_lc_F77=yes
 
16442
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16443
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
16444
        fi
 
16445
      fi
 
16446
      ;;
 
16447
 
 
16448
    amigaos*)
 
16449
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
16450
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16451
      hardcode_minus_L_F77=yes
 
16452
      # see comment about different semantics on the GNU ld section
 
16453
      ld_shlibs_F77=no
 
16454
      ;;
 
16455
 
 
16456
    bsdi4*)
 
16457
      export_dynamic_flag_spec_F77=-rdynamic
 
16458
      ;;
 
16459
 
 
16460
    cygwin* | mingw* | pw32*)
 
16461
      # When not using gcc, we currently assume that we are using
 
16462
      # Microsoft Visual C++.
 
16463
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16464
      # no search path for DLLs.
 
16465
      hardcode_libdir_flag_spec_F77=' '
 
16466
      allow_undefined_flag_F77=no
 
16467
      # Tell ltmain to make .lib files, not .a files.
 
16468
      libext=lib
 
16469
      # Tell ltmain to make .dll files, not .so files.
 
16470
      shrext=".dll"
 
16471
      # FIXME: Setting linknames here is a bad hack.
 
16472
      archive_cmds_F77='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16473
      # The linker will automatically build a .lib file if we build a DLL.
 
16474
      old_archive_From_new_cmds_F77='true'
 
16475
      # FIXME: Should let the user specify the lib program.
 
16476
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16477
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16478
      enable_shared_with_static_runtimes_F77=yes
 
16479
      ;;
 
16480
 
 
16481
    darwin* | rhapsody*)
 
16482
    if test "$GXX" = yes ; then
 
16483
      archive_cmds_need_lc_F77=no
 
16484
      case "$host_os" in
 
16485
      rhapsody* | darwin1.[012])
 
16486
        allow_undefined_flag_F77='-undefined suppress'
 
16487
        ;;
 
16488
      *) # Darwin 1.3 on
 
16489
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
16490
        ;;
 
16491
      esac
 
16492
        lt_int_apple_cc_single_mod=no
 
16493
        output_verbose_link_cmd='echo'
 
16494
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
16495
          lt_int_apple_cc_single_mod=yes
 
16496
        fi
 
16497
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16498
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
16499
        else
 
16500
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
 
16501
      fi
 
16502
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
16503
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16504
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16505
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16506
        else
 
16507
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16508
        fi
 
16509
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16510
      hardcode_direct_F77=no
 
16511
      hardcode_automatic_F77=yes
 
16512
      hardcode_shlibpath_var_F77=unsupported
 
16513
      whole_archive_flag_spec_F77='-all_load $convenience'
 
16514
      link_all_deplibs_F77=yes
 
16515
    else
 
16516
      ld_shlibs_F77=no
 
16517
    fi
 
16518
      ;;
 
16519
 
 
16520
    dgux*)
 
16521
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16522
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16523
      hardcode_shlibpath_var_F77=no
 
16524
      ;;
 
16525
 
 
16526
    freebsd1*)
 
16527
      ld_shlibs_F77=no
 
16528
      ;;
 
16529
 
 
16530
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16531
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16532
    # does not break anything, and helps significantly (at the cost of a little
 
16533
    # extra space).
 
16534
    freebsd2.2*)
 
16535
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16536
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16537
      hardcode_direct_F77=yes
 
16538
      hardcode_shlibpath_var_F77=no
 
16539
      ;;
 
16540
 
 
16541
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16542
    freebsd2*)
 
16543
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16544
      hardcode_direct_F77=yes
 
16545
      hardcode_minus_L_F77=yes
 
16546
      hardcode_shlibpath_var_F77=no
 
16547
      ;;
 
16548
 
 
16549
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16550
    freebsd*)
 
16551
      archive_cmds_F77='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
 
16552
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16553
      hardcode_direct_F77=yes
 
16554
      hardcode_shlibpath_var_F77=no
 
16555
      ;;
 
16556
 
 
16557
    hpux9*)
 
16558
      if test "$GCC" = yes; then
 
16559
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
16560
      else
 
16561
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
16562
      fi
 
16563
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16564
      hardcode_libdir_separator_F77=:
 
16565
      hardcode_direct_F77=yes
 
16566
 
 
16567
      # hardcode_minus_L: Not really in the search PATH,
 
16568
      # but as the default location of the library.
 
16569
      hardcode_minus_L_F77=yes
 
16570
      export_dynamic_flag_spec_F77='${wl}-E'
 
16571
      ;;
 
16572
 
 
16573
    hpux10* | hpux11*)
 
16574
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16575
        case "$host_cpu" in
 
16576
        hppa*64*|ia64*)
 
16577
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
16578
          ;;
 
16579
        *)
 
16580
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
 
16581
          ;;
 
16582
        esac
 
16583
      else
 
16584
        case "$host_cpu" in
 
16585
        hppa*64*|ia64*)
 
16586
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16587
          ;;
 
16588
        *)
 
16589
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16590
          ;;
 
16591
        esac
 
16592
      fi
 
16593
      if test "$with_gnu_ld" = no; then
 
16594
        case "$host_cpu" in
 
16595
        hppa*64*)
 
16596
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16597
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
16598
          hardcode_libdir_separator_F77=:
 
16599
          hardcode_direct_F77=no
 
16600
          hardcode_shlibpath_var_F77=no
 
16601
          ;;
 
16602
        ia64*)
 
16603
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
16604
          hardcode_direct_F77=no
 
16605
          hardcode_shlibpath_var_F77=no
 
16606
 
 
16607
          # hardcode_minus_L: Not really in the search PATH,
 
16608
          # but as the default location of the library.
 
16609
          hardcode_minus_L_F77=yes
 
16610
          ;;
 
16611
        *)
 
16612
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16613
          hardcode_libdir_separator_F77=:
 
16614
          hardcode_direct_F77=yes
 
16615
          export_dynamic_flag_spec_F77='${wl}-E'
 
16616
 
 
16617
          # hardcode_minus_L: Not really in the search PATH,
 
16618
          # but as the default location of the library.
 
16619
          hardcode_minus_L_F77=yes
 
16620
          ;;
 
16621
        esac
 
16622
      fi
 
16623
      ;;
 
16624
 
 
16625
    irix5* | irix6* | nonstopux*)
 
16626
      if test "$GCC" = yes; then
 
16627
        archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
16628
      else
 
16629
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
16630
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
16631
      fi
 
16632
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16633
      hardcode_libdir_separator_F77=:
 
16634
      link_all_deplibs_F77=yes
 
16635
      ;;
 
16636
 
 
16637
    netbsd*)
 
16638
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16639
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16640
      else
 
16641
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16642
      fi
 
16643
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16644
      hardcode_direct_F77=yes
 
16645
      hardcode_shlibpath_var_F77=no
 
16646
      ;;
 
16647
 
 
16648
    newsos6)
 
16649
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16650
      hardcode_direct_F77=yes
 
16651
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16652
      hardcode_libdir_separator_F77=:
 
16653
      hardcode_shlibpath_var_F77=no
 
16654
      ;;
 
16655
 
 
16656
    openbsd*)
 
16657
      hardcode_direct_F77=yes
 
16658
      hardcode_shlibpath_var_F77=no
 
16659
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16660
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
16661
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16662
        export_dynamic_flag_spec_F77='${wl}-E'
 
16663
      else
 
16664
       case $host_os in
 
16665
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16666
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16667
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
16668
           ;;
 
16669
         *)
 
16670
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
16671
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16672
           ;;
 
16673
       esac
 
16674
      fi
 
16675
      ;;
 
16676
 
 
16677
    os2*)
 
16678
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16679
      hardcode_minus_L_F77=yes
 
16680
      allow_undefined_flag_F77=unsupported
 
16681
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
 
16682
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16683
      ;;
 
16684
 
 
16685
    osf3*)
 
16686
      if test "$GCC" = yes; then
 
16687
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16688
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
16689
      else
 
16690
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16691
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
16692
      fi
 
16693
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16694
      hardcode_libdir_separator_F77=:
 
16695
      ;;
 
16696
 
 
16697
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16698
      if test "$GCC" = yes; then
 
16699
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16700
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
16701
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16702
      else
 
16703
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16704
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
16705
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
16706
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
16707
 
 
16708
        # Both c and cxx compiler support -rpath directly
 
16709
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
16710
      fi
 
16711
      hardcode_libdir_separator_F77=:
 
16712
      ;;
 
16713
 
 
16714
    sco3.2v5*)
 
16715
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16716
      hardcode_shlibpath_var_F77=no
 
16717
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
16718
      runpath_var=LD_RUN_PATH
 
16719
      hardcode_runpath_var=yes
 
16720
      ;;
 
16721
 
 
16722
    solaris*)
 
16723
      no_undefined_flag_F77=' -z text'
 
16724
      if test "$GCC" = yes; then
 
16725
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
16726
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16727
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
 
16728
      else
 
16729
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16730
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16731
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16732
      fi
 
16733
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16734
      hardcode_shlibpath_var_F77=no
 
16735
      case $host_os in
 
16736
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16737
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16738
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
16739
      esac
 
16740
      link_all_deplibs_F77=yes
 
16741
      ;;
 
16742
 
 
16743
    sunos4*)
 
16744
      if test "x$host_vendor" = xsequent; then
 
16745
        # Use $CC to link under sequent, because it throws in some extra .o
 
16746
        # files that make .init and .fini sections work.
 
16747
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
 
16748
      else
 
16749
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16750
      fi
 
16751
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16752
      hardcode_direct_F77=yes
 
16753
      hardcode_minus_L_F77=yes
 
16754
      hardcode_shlibpath_var_F77=no
 
16755
      ;;
 
16756
 
 
16757
    sysv4)
 
16758
      case $host_vendor in
 
16759
        sni)
 
16760
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16761
          hardcode_direct_F77=yes # is this really true???
 
16762
        ;;
 
16763
        siemens)
 
16764
          ## LD is ld it makes a PLAMLIB
 
16765
          ## CC just makes a GrossModule.
 
16766
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16767
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
16768
          hardcode_direct_F77=no
 
16769
        ;;
 
16770
        motorola)
 
16771
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16772
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
16773
        ;;
 
16774
      esac
 
16775
      runpath_var='LD_RUN_PATH'
 
16776
      hardcode_shlibpath_var_F77=no
 
16777
      ;;
 
16778
 
 
16779
    sysv4.3*)
 
16780
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16781
      hardcode_shlibpath_var_F77=no
 
16782
      export_dynamic_flag_spec_F77='-Bexport'
 
16783
      ;;
 
16784
 
 
16785
    sysv4*MP*)
 
16786
      if test -d /usr/nec; then
 
16787
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16788
        hardcode_shlibpath_var_F77=no
 
16789
        runpath_var=LD_RUN_PATH
 
16790
        hardcode_runpath_var=yes
 
16791
        ld_shlibs_F77=yes
 
16792
      fi
 
16793
      ;;
 
16794
 
 
16795
    sysv4.2uw2*)
 
16796
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16797
      hardcode_direct_F77=yes
 
16798
      hardcode_minus_L_F77=no
 
16799
      hardcode_shlibpath_var_F77=no
 
16800
      hardcode_runpath_var=yes
 
16801
      runpath_var=LD_RUN_PATH
 
16802
      ;;
 
16803
 
 
16804
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
16805
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
16806
      if test "$GCC" = yes; then
 
16807
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
16808
      else
 
16809
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
16810
      fi
 
16811
      runpath_var='LD_RUN_PATH'
 
16812
      hardcode_shlibpath_var_F77=no
 
16813
      ;;
 
16814
 
 
16815
    sysv5*)
 
16816
      no_undefined_flag_F77=' -z text'
 
16817
      # $CC -shared without GNU ld will not create a library from C++
 
16818
      # object files and a static libstdc++, better avoid it by now
 
16819
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16820
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16821
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16822
      hardcode_libdir_flag_spec_F77=
 
16823
      hardcode_shlibpath_var_F77=no
 
16824
      runpath_var='LD_RUN_PATH'
 
16825
      ;;
 
16826
 
 
16827
    uts4*)
 
16828
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16829
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16830
      hardcode_shlibpath_var_F77=no
 
16831
      ;;
 
16832
 
 
16833
    *)
 
16834
      ld_shlibs_F77=no
 
16835
      ;;
 
16836
    esac
 
16837
  fi
 
16838
 
 
16839
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
16840
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
16841
test "$ld_shlibs_F77" = no && can_build_shared=no
 
16842
 
 
16843
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16844
if test "$GCC" = yes; then
 
16845
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16846
fi
 
16847
 
 
16848
#
 
16849
# Do we need to explicitly link libc?
 
16850
#
 
16851
case "x$archive_cmds_need_lc_F77" in
 
16852
x|xyes)
 
16853
  # Assume -lc should be added
 
16854
  archive_cmds_need_lc_F77=yes
 
16855
 
 
16856
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16857
    case $archive_cmds_F77 in
 
16858
    *'~'*)
 
16859
      # FIXME: we may have to deal with multi-command sequences.
 
16860
      ;;
 
16861
    '$CC '*)
 
16862
      # Test whether the compiler implicitly links with -lc since on some
 
16863
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16864
      # to ld, don't add -lc before -lgcc.
 
16865
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16866
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16867
      $rm conftest*
 
16868
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16869
 
 
16870
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16871
  (eval $ac_compile) 2>&5
 
16872
  ac_status=$?
 
16873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16874
  (exit $ac_status); } 2>conftest.err; then
 
16875
        soname=conftest
 
16876
        lib=conftest
 
16877
        libobjs=conftest.$ac_objext
 
16878
        deplibs=
 
16879
        wl=$lt_prog_compiler_wl_F77
 
16880
        compiler_flags=-v
 
16881
        linker_flags=-v
 
16882
        verstring=
 
16883
        output_objdir=.
 
16884
        libname=conftest
 
16885
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
16886
        allow_undefined_flag_F77=
 
16887
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16888
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16889
  ac_status=$?
 
16890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16891
  (exit $ac_status); }
 
16892
        then
 
16893
          archive_cmds_need_lc_F77=no
 
16894
        else
 
16895
          archive_cmds_need_lc_F77=yes
 
16896
        fi
 
16897
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
16898
      else
 
16899
        cat conftest.err 1>&5
 
16900
      fi
 
16901
      $rm conftest*
 
16902
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
16903
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
16904
      ;;
 
16905
    esac
 
16906
  fi
 
16907
  ;;
 
16908
esac
 
16909
 
 
16910
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16911
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
16912
library_names_spec=
 
16913
libname_spec='lib$name'
 
16914
soname_spec=
 
16915
shrext=".so"
 
16916
postinstall_cmds=
 
16917
postuninstall_cmds=
 
16918
finish_cmds=
 
16919
finish_eval=
 
16920
shlibpath_var=
 
16921
shlibpath_overrides_runpath=unknown
 
16922
version_type=none
 
16923
dynamic_linker="$host_os ld.so"
 
16924
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16925
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16926
need_lib_prefix=unknown
 
16927
hardcode_into_libs=no
 
16928
 
 
16929
# when you set need_version to no, make sure it does not cause -set_version
 
16930
# flags to be left without arguments
 
16931
need_version=unknown
 
16932
 
 
16933
case $host_os in
 
16934
aix3*)
 
16935
  version_type=linux
 
16936
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16937
  shlibpath_var=LIBPATH
 
16938
 
 
16939
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16940
  soname_spec='${libname}${release}${shared_ext}$major'
 
16941
  ;;
 
16942
 
 
16943
aix4* | aix5*)
 
16944
  version_type=linux
 
16945
  need_lib_prefix=no
 
16946
  need_version=no
 
16947
  hardcode_into_libs=yes
 
16948
  if test "$host_cpu" = ia64; then
 
16949
    # AIX 5 supports IA64
 
16950
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16951
    shlibpath_var=LD_LIBRARY_PATH
 
16952
  else
 
16953
    # With GCC up to 2.95.x, collect2 would create an import file
 
16954
    # for dependence libraries.  The import file would start with
 
16955
    # the line `#! .'.  This would cause the generated library to
 
16956
    # depend on `.', always an invalid library.  This was fixed in
 
16957
    # development snapshots of GCC prior to 3.0.
 
16958
    case $host_os in
 
16959
      aix4 | aix4.[01] | aix4.[01].*)
 
16960
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16961
           echo ' yes '
 
16962
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16963
        :
 
16964
      else
 
16965
        can_build_shared=no
 
16966
      fi
 
16967
      ;;
 
16968
    esac
 
16969
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16970
    # soname into executable. Probably we can add versioning support to
 
16971
    # collect2, so additional links can be useful in future.
 
16972
    if test "$aix_use_runtimelinking" = yes; then
 
16973
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16974
      # instead of lib<name>.a to let people know that these are not
 
16975
      # typical AIX shared libraries.
 
16976
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16977
    else
 
16978
      # We preserve .a as extension for shared libraries through AIX4.2
 
16979
      # and later when we are not doing run time linking.
 
16980
      library_names_spec='${libname}${release}.a $libname.a'
 
16981
      soname_spec='${libname}${release}${shared_ext}$major'
 
16982
    fi
 
16983
    shlibpath_var=LIBPATH
 
16984
  fi
 
16985
  ;;
 
16986
 
 
16987
amigaos*)
 
16988
  library_names_spec='$libname.ixlibrary $libname.a'
 
16989
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16990
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
 
16991
  ;;
 
16992
 
 
16993
beos*)
 
16994
  library_names_spec='${libname}${shared_ext}'
 
16995
  dynamic_linker="$host_os ld.so"
 
16996
  shlibpath_var=LIBRARY_PATH
 
16997
  ;;
 
16998
 
 
16999
bsdi4*)
 
17000
  version_type=linux
 
17001
  need_version=no
 
17002
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17003
  soname_spec='${libname}${release}${shared_ext}$major'
 
17004
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17005
  shlibpath_var=LD_LIBRARY_PATH
 
17006
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17007
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17008
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17009
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17010
  # libtool to hard-code these into programs
 
17011
  ;;
 
17012
 
 
17013
cygwin* | mingw* | pw32*)
 
17014
  version_type=windows
 
17015
  shrext=".dll"
 
17016
  need_version=no
 
17017
  need_lib_prefix=no
 
17018
 
 
17019
  case $GCC,$host_os in
 
17020
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17021
    library_names_spec='$libname.dll.a'
 
17022
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17023
    postinstall_cmds='base_file=`basename \${file}`~
 
17024
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17025
      dldir=$destdir/`dirname \$dlpath`~
 
17026
      test -d \$dldir || mkdir -p \$dldir~
 
17027
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17028
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17029
      dlpath=$dir/\$dldll~
 
17030
       $rm \$dlpath'
 
17031
    shlibpath_overrides_runpath=yes
 
17032
 
 
17033
    case $host_os in
 
17034
    cygwin*)
 
17035
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17036
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17037
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17038
      ;;
 
17039
    mingw*)
 
17040
      # MinGW DLLs use traditional 'lib' prefix
 
17041
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17042
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17043
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17044
        # It is most probably a Windows format PATH printed by
 
17045
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17046
        # path with ; separators, and with drive letters. We can handle the
 
17047
        # drive letters (cygwin fileutils understands them), so leave them,
 
17048
        # especially as we might pass files found there to a mingw objdump,
 
17049
        # which wouldn't understand a cygwinified path. Ahh.
 
17050
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17051
      else
 
17052
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17053
      fi
 
17054
      ;;
 
17055
    pw32*)
 
17056
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17057
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17058
      ;;
 
17059
    esac
 
17060
    ;;
 
17061
 
 
17062
  *)
 
17063
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17064
    ;;
 
17065
  esac
 
17066
  dynamic_linker='Win32 ld.exe'
 
17067
  # FIXME: first we should search . and the directory the executable is in
 
17068
  shlibpath_var=PATH
 
17069
  ;;
 
17070
 
 
17071
darwin* | rhapsody*)
 
17072
  dynamic_linker="$host_os dyld"
 
17073
  version_type=darwin
 
17074
  need_lib_prefix=no
 
17075
  need_version=no
 
17076
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17077
  soname_spec='${libname}${release}${major}$shared_ext'
 
17078
  shlibpath_overrides_runpath=yes
 
17079
  shlibpath_var=DYLD_LIBRARY_PATH
 
17080
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
17081
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17082
  if test "$GCC" = yes; then
 
17083
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
17084
  else
 
17085
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17086
  fi
 
17087
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17088
  ;;
 
17089
 
 
17090
dgux*)
 
17091
  version_type=linux
 
17092
  need_lib_prefix=no
 
17093
  need_version=no
 
17094
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17095
  soname_spec='${libname}${release}${shared_ext}$major'
 
17096
  shlibpath_var=LD_LIBRARY_PATH
 
17097
  ;;
 
17098
 
 
17099
freebsd1*)
 
17100
  dynamic_linker=no
 
17101
  ;;
 
17102
 
 
17103
freebsd*-gnu*)
 
17104
  version_type=linux
 
17105
  need_lib_prefix=no
 
17106
  need_version=no
 
17107
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17108
  soname_spec='${libname}${release}${shared_ext}$major'
 
17109
  shlibpath_var=LD_LIBRARY_PATH
 
17110
  shlibpath_overrides_runpath=no
 
17111
  hardcode_into_libs=yes
 
17112
  dynamic_linker='GNU ld.so'
 
17113
  ;;
 
17114
 
 
17115
freebsd*)
 
17116
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17117
  version_type=freebsd-$objformat
 
17118
  case $version_type in
 
17119
    freebsd-elf*)
 
17120
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17121
      need_version=no
 
17122
      need_lib_prefix=no
 
17123
      ;;
 
17124
    freebsd-*)
 
17125
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17126
      need_version=yes
 
17127
      ;;
 
17128
  esac
 
17129
  shlibpath_var=LD_LIBRARY_PATH
 
17130
  case $host_os in
 
17131
  freebsd2*)
 
17132
    shlibpath_overrides_runpath=yes
 
17133
    ;;
 
17134
  freebsd3.01* | freebsdelf3.01*)
 
17135
    shlibpath_overrides_runpath=yes
 
17136
    hardcode_into_libs=yes
 
17137
    ;;
 
17138
  *) # from 3.2 on
 
17139
    shlibpath_overrides_runpath=no
 
17140
    hardcode_into_libs=yes
 
17141
    ;;
 
17142
  esac
 
17143
  ;;
 
17144
 
 
17145
gnu*)
 
17146
  version_type=linux
 
17147
  need_lib_prefix=no
 
17148
  need_version=no
 
17149
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17150
  soname_spec='${libname}${release}${shared_ext}$major'
 
17151
  shlibpath_var=LD_LIBRARY_PATH
 
17152
  hardcode_into_libs=yes
 
17153
  ;;
 
17154
 
 
17155
hpux9* | hpux10* | hpux11*)
 
17156
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17157
  # link against other versions.
 
17158
  version_type=sunos
 
17159
  need_lib_prefix=no
 
17160
  need_version=no
 
17161
  case "$host_cpu" in
 
17162
  ia64*)
 
17163
    shrext='.so'
 
17164
    hardcode_into_libs=yes
 
17165
    dynamic_linker="$host_os dld.so"
 
17166
    shlibpath_var=LD_LIBRARY_PATH
 
17167
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17168
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17169
    soname_spec='${libname}${release}${shared_ext}$major'
 
17170
    if test "X$HPUX_IA64_MODE" = X32; then
 
17171
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17172
    else
 
17173
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17174
    fi
 
17175
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17176
    ;;
 
17177
   hppa*64*)
 
17178
     shrext='.sl'
 
17179
     hardcode_into_libs=yes
 
17180
     dynamic_linker="$host_os dld.sl"
 
17181
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17182
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17183
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17184
     soname_spec='${libname}${release}${shared_ext}$major'
 
17185
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17186
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17187
     ;;
 
17188
   *)
 
17189
    shrext='.sl'
 
17190
    dynamic_linker="$host_os dld.sl"
 
17191
    shlibpath_var=SHLIB_PATH
 
17192
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17193
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17194
    soname_spec='${libname}${release}${shared_ext}$major'
 
17195
    ;;
 
17196
  esac
 
17197
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17198
  postinstall_cmds='chmod 555 $lib'
 
17199
  ;;
 
17200
 
 
17201
irix5* | irix6* | nonstopux*)
 
17202
  case $host_os in
 
17203
    nonstopux*) version_type=nonstopux ;;
 
17204
    *)
 
17205
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17206
                version_type=linux
 
17207
        else
 
17208
                version_type=irix
 
17209
        fi ;;
 
17210
  esac
 
17211
  need_lib_prefix=no
 
17212
  need_version=no
 
17213
  soname_spec='${libname}${release}${shared_ext}$major'
 
17214
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17215
  case $host_os in
 
17216
  irix5* | nonstopux*)
 
17217
    libsuff= shlibsuff=
 
17218
    ;;
 
17219
  *)
 
17220
    case $LD in # libtool.m4 will add one of these switches to LD
 
17221
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17222
      libsuff= shlibsuff= libmagic=32-bit;;
 
17223
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17224
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17225
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17226
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17227
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17228
    esac
 
17229
    ;;
 
17230
  esac
 
17231
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17232
  shlibpath_overrides_runpath=no
 
17233
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17234
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17235
  hardcode_into_libs=yes
 
17236
  ;;
 
17237
 
 
17238
# No shared lib support for Linux oldld, aout, or coff.
 
17239
linux*oldld* | linux*aout* | linux*coff*)
 
17240
  dynamic_linker=no
 
17241
  ;;
 
17242
 
 
17243
# This must be Linux ELF.
 
17244
linux*)
 
17245
  version_type=linux
 
17246
  need_lib_prefix=no
 
17247
  need_version=no
 
17248
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17249
  soname_spec='${libname}${release}${shared_ext}$major'
 
17250
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17251
  libsuff=
 
17252
  if test "x$LINUX_64_MODE" = x64; then
 
17253
    # Some platforms are per default 64-bit, so there's no /lib64
 
17254
    if test -d /lib64; then
 
17255
      libsuff=64
 
17256
    fi
 
17257
  fi
 
17258
  shlibpath_var=LD_LIBRARY_PATH
 
17259
  shlibpath_overrides_runpath=no
 
17260
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
17261
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
17262
  # This implies no fast_install, which is unacceptable.
 
17263
  # Some rework will be needed to allow for fast_install
 
17264
  # before this can be enabled.
 
17265
  hardcode_into_libs=yes
 
17266
 
 
17267
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17268
  # powerpc, because MkLinux only supported shared libraries with the
 
17269
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17270
  # most powerpc-linux boxes support dynamic linking these days and
 
17271
  # people can always --disable-shared, the test was removed, and we
 
17272
  # assume the GNU/Linux dynamic linker is in use.
 
17273
  dynamic_linker='GNU/Linux ld.so'
 
17274
  ;;
 
17275
 
 
17276
netbsd*)
 
17277
  version_type=sunos
 
17278
  need_lib_prefix=no
 
17279
  need_version=no
 
17280
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17281
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17282
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17283
    dynamic_linker='NetBSD (a.out) ld.so'
 
17284
  else
 
17285
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
17286
    soname_spec='${libname}${release}${shared_ext}$major'
 
17287
    dynamic_linker='NetBSD ld.elf_so'
 
17288
  fi
 
17289
  shlibpath_var=LD_LIBRARY_PATH
 
17290
  shlibpath_overrides_runpath=yes
 
17291
  hardcode_into_libs=yes
 
17292
  ;;
 
17293
 
 
17294
newsos6)
 
17295
  version_type=linux
 
17296
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17297
  shlibpath_var=LD_LIBRARY_PATH
 
17298
  shlibpath_overrides_runpath=yes
 
17299
  ;;
 
17300
 
 
17301
nto-qnx*)
 
17302
  version_type=linux
 
17303
  need_lib_prefix=no
 
17304
  need_version=no
 
17305
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17306
  soname_spec='${libname}${release}${shared_ext}$major'
 
17307
  shlibpath_var=LD_LIBRARY_PATH
 
17308
  shlibpath_overrides_runpath=yes
 
17309
  ;;
 
17310
 
 
17311
openbsd*)
 
17312
  version_type=sunos
 
17313
  need_lib_prefix=no
 
17314
  need_version=no
 
17315
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17316
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17317
  shlibpath_var=LD_LIBRARY_PATH
 
17318
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17319
    case $host_os in
 
17320
      openbsd2.[89] | openbsd2.[89].*)
 
17321
        shlibpath_overrides_runpath=no
 
17322
        ;;
 
17323
      *)
 
17324
        shlibpath_overrides_runpath=yes
 
17325
        ;;
 
17326
      esac
 
17327
  else
 
17328
    shlibpath_overrides_runpath=yes
 
17329
  fi
 
17330
  ;;
 
17331
 
 
17332
os2*)
 
17333
  libname_spec='$name'
 
17334
  shrext=".dll"
 
17335
  need_lib_prefix=no
 
17336
  library_names_spec='$libname${shared_ext} $libname.a'
 
17337
  dynamic_linker='OS/2 ld.exe'
 
17338
  shlibpath_var=LIBPATH
 
17339
  ;;
 
17340
 
 
17341
osf3* | osf4* | osf5*)
 
17342
  version_type=osf
 
17343
  need_lib_prefix=no
 
17344
  need_version=no
 
17345
  soname_spec='${libname}${release}${shared_ext}$major'
 
17346
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17347
  shlibpath_var=LD_LIBRARY_PATH
 
17348
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17349
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17350
  ;;
 
17351
 
 
17352
sco3.2v5*)
 
17353
  version_type=osf
 
17354
  soname_spec='${libname}${release}${shared_ext}$major'
 
17355
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17356
  shlibpath_var=LD_LIBRARY_PATH
 
17357
  ;;
 
17358
 
 
17359
solaris*)
 
17360
  version_type=linux
 
17361
  need_lib_prefix=no
 
17362
  need_version=no
 
17363
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17364
  soname_spec='${libname}${release}${shared_ext}$major'
 
17365
  shlibpath_var=LD_LIBRARY_PATH
 
17366
  shlibpath_overrides_runpath=yes
 
17367
  hardcode_into_libs=yes
 
17368
  # ldd complains unless libraries are executable
 
17369
  postinstall_cmds='chmod +x $lib'
 
17370
  ;;
 
17371
 
 
17372
sunos4*)
 
17373
  version_type=sunos
 
17374
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17375
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17376
  shlibpath_var=LD_LIBRARY_PATH
 
17377
  shlibpath_overrides_runpath=yes
 
17378
  if test "$with_gnu_ld" = yes; then
 
17379
    need_lib_prefix=no
 
17380
  fi
 
17381
  need_version=yes
 
17382
  ;;
 
17383
 
 
17384
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17385
  version_type=linux
 
17386
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17387
  soname_spec='${libname}${release}${shared_ext}$major'
 
17388
  shlibpath_var=LD_LIBRARY_PATH
 
17389
  case $host_vendor in
 
17390
    sni)
 
17391
      shlibpath_overrides_runpath=no
 
17392
      need_lib_prefix=no
 
17393
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17394
      runpath_var=LD_RUN_PATH
 
17395
      ;;
 
17396
    siemens)
 
17397
      need_lib_prefix=no
 
17398
      ;;
 
17399
    motorola)
 
17400
      need_lib_prefix=no
 
17401
      need_version=no
 
17402
      shlibpath_overrides_runpath=no
 
17403
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17404
      ;;
 
17405
  esac
 
17406
  ;;
 
17407
 
 
17408
sysv4*MP*)
 
17409
  if test -d /usr/nec ;then
 
17410
    version_type=linux
 
17411
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17412
    soname_spec='$libname${shared_ext}.$major'
 
17413
    shlibpath_var=LD_LIBRARY_PATH
 
17414
  fi
 
17415
  ;;
 
17416
 
 
17417
uts4*)
 
17418
  version_type=linux
 
17419
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17420
  soname_spec='${libname}${release}${shared_ext}$major'
 
17421
  shlibpath_var=LD_LIBRARY_PATH
 
17422
  ;;
 
17423
 
 
17424
*)
 
17425
  dynamic_linker=no
 
17426
  ;;
 
17427
esac
 
17428
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17429
echo "${ECHO_T}$dynamic_linker" >&6
 
17430
test "$dynamic_linker" = no && can_build_shared=no
 
17431
 
 
17432
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17433
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17434
hardcode_action_F77=
 
17435
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
17436
   test -n "$runpath_var F77" || \
 
17437
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
17438
 
 
17439
  # We can hardcode non-existant directories.
 
17440
  if test "$hardcode_direct_F77" != no &&
 
17441
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17442
     # have to relink, otherwise we might link with an installed library
 
17443
     # when we should be linking with a yet-to-be-installed one
 
17444
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
17445
     test "$hardcode_minus_L_F77" != no; then
 
17446
    # Linking always hardcodes the temporary library directory.
 
17447
    hardcode_action_F77=relink
 
17448
  else
 
17449
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17450
    hardcode_action_F77=immediate
 
17451
  fi
 
17452
else
 
17453
  # We cannot hardcode anything, or else we can only hardcode existing
 
17454
  # directories.
 
17455
  hardcode_action_F77=unsupported
 
17456
fi
 
17457
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
17458
echo "${ECHO_T}$hardcode_action_F77" >&6
 
17459
 
 
17460
if test "$hardcode_action_F77" = relink; then
 
17461
  # Fast installation is not supported
 
17462
  enable_fast_install=no
 
17463
elif test "$shlibpath_overrides_runpath" = yes ||
 
17464
     test "$enable_shared" = no; then
 
17465
  # Fast installation is not necessary
 
17466
  enable_fast_install=needless
 
17467
fi
 
17468
 
 
17469
striplib=
 
17470
old_striplib=
 
17471
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17472
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17473
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17474
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17475
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17476
  echo "$as_me:$LINENO: result: yes" >&5
 
17477
echo "${ECHO_T}yes" >&6
 
17478
else
 
17479
# FIXME - insert some real tests, host_os isn't really good enough
 
17480
  case $host_os in
 
17481
   darwin*)
 
17482
       if test -n "$STRIP" ; then
 
17483
         striplib="$STRIP -x"
 
17484
         echo "$as_me:$LINENO: result: yes" >&5
 
17485
echo "${ECHO_T}yes" >&6
 
17486
       else
 
17487
  echo "$as_me:$LINENO: result: no" >&5
 
17488
echo "${ECHO_T}no" >&6
 
17489
fi
 
17490
       ;;
 
17491
   *)
 
17492
  echo "$as_me:$LINENO: result: no" >&5
 
17493
echo "${ECHO_T}no" >&6
 
17494
    ;;
 
17495
  esac
 
17496
fi
 
17497
 
 
17498
 
 
17499
 
 
17500
# The else clause should only fire when bootstrapping the
 
17501
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17502
# with your package, and you will get complaints that there are
 
17503
# no rules to generate ltmain.sh.
 
17504
if test -f "$ltmain"; then
 
17505
  # See if we are running on zsh, and set the options which allow our commands through
 
17506
  # without removal of \ escapes.
 
17507
  if test -n "${ZSH_VERSION+set}" ; then
 
17508
    setopt NO_GLOB_SUBST
 
17509
  fi
 
17510
  # Now quote all the things that may contain metacharacters while being
 
17511
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17512
  # variables and quote the copies for generation of the libtool script.
 
17513
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
17514
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17515
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17516
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17517
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17518
    lt_cv_sys_global_symbol_to_c_name_address \
 
17519
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17520
    old_postinstall_cmds old_postuninstall_cmds \
 
17521
    compiler_F77 \
 
17522
    CC_F77 \
 
17523
    LD_F77 \
 
17524
    lt_prog_compiler_wl_F77 \
 
17525
    lt_prog_compiler_pic_F77 \
 
17526
    lt_prog_compiler_static_F77 \
 
17527
    lt_prog_compiler_no_builtin_flag_F77 \
 
17528
    export_dynamic_flag_spec_F77 \
 
17529
    thread_safe_flag_spec_F77 \
 
17530
    whole_archive_flag_spec_F77 \
 
17531
    enable_shared_with_static_runtimes_F77 \
 
17532
    old_archive_cmds_F77 \
 
17533
    old_archive_from_new_cmds_F77 \
 
17534
    predep_objects_F77 \
 
17535
    postdep_objects_F77 \
 
17536
    predeps_F77 \
 
17537
    postdeps_F77 \
 
17538
    compiler_lib_search_path_F77 \
 
17539
    archive_cmds_F77 \
 
17540
    archive_expsym_cmds_F77 \
 
17541
    postinstall_cmds_F77 \
 
17542
    postuninstall_cmds_F77 \
 
17543
    old_archive_from_expsyms_cmds_F77 \
 
17544
    allow_undefined_flag_F77 \
 
17545
    no_undefined_flag_F77 \
 
17546
    export_symbols_cmds_F77 \
 
17547
    hardcode_libdir_flag_spec_F77 \
 
17548
    hardcode_libdir_flag_spec_ld_F77 \
 
17549
    hardcode_libdir_separator_F77 \
 
17550
    hardcode_automatic_F77 \
 
17551
    module_cmds_F77 \
 
17552
    module_expsym_cmds_F77 \
 
17553
    lt_cv_prog_compiler_c_o_F77 \
 
17554
    exclude_expsyms_F77 \
 
17555
    include_expsyms_F77; do
 
17556
 
 
17557
    case $var in
 
17558
    old_archive_cmds_F77 | \
 
17559
    old_archive_from_new_cmds_F77 | \
 
17560
    archive_cmds_F77 | \
 
17561
    archive_expsym_cmds_F77 | \
 
17562
    module_cmds_F77 | \
 
17563
    module_expsym_cmds_F77 | \
 
17564
    old_archive_from_expsyms_cmds_F77 | \
 
17565
    export_symbols_cmds_F77 | \
 
17566
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17567
    postinstall_cmds | postuninstall_cmds | \
 
17568
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17569
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17570
      # Double-quote double-evaled strings.
 
17571
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17572
      ;;
 
17573
    *)
 
17574
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17575
      ;;
 
17576
    esac
 
17577
  done
 
17578
 
 
17579
  case $lt_echo in
 
17580
  *'\$0 --fallback-echo"')
 
17581
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17582
    ;;
 
17583
  esac
 
17584
 
 
17585
cfgfile="$ofile"
 
17586
 
 
17587
  cat <<__EOF__ >> "$cfgfile"
 
17588
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17589
 
 
17590
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17591
 
 
17592
# Shell to use when invoking shell scripts.
 
17593
SHELL=$lt_SHELL
 
17594
 
 
17595
# Whether or not to build shared libraries.
 
17596
build_libtool_libs=$enable_shared
 
17597
 
 
17598
# Whether or not to build static libraries.
 
17599
build_old_libs=$enable_static
 
17600
 
 
17601
# Whether or not to add -lc for building shared libraries.
 
17602
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
17603
 
 
17604
# Whether or not to disallow shared libs when runtime libs are static
 
17605
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
17606
 
 
17607
# Whether or not to optimize for fast installation.
 
17608
fast_install=$enable_fast_install
 
17609
 
 
17610
# The host system.
 
17611
host_alias=$host_alias
 
17612
host=$host
 
17613
 
 
17614
# An echo program that does not interpret backslashes.
 
17615
echo=$lt_echo
 
17616
 
 
17617
# The archiver.
 
17618
AR=$lt_AR
 
17619
AR_FLAGS=$lt_AR_FLAGS
 
17620
 
 
17621
# A C compiler.
 
17622
LTCC=$lt_LTCC
 
17623
 
 
17624
# A language-specific compiler.
 
17625
CC=$lt_compiler_F77
 
17626
 
 
17627
# Is the compiler the GNU C compiler?
 
17628
with_gcc=$GCC_F77
 
17629
 
 
17630
# An ERE matcher.
 
17631
EGREP=$lt_EGREP
 
17632
 
 
17633
# The linker used to build libraries.
 
17634
LD=$lt_LD_F77
 
17635
 
 
17636
# Whether we need hard or soft links.
 
17637
LN_S=$lt_LN_S
 
17638
 
 
17639
# A BSD-compatible nm program.
 
17640
NM=$lt_NM
 
17641
 
 
17642
# A symbol stripping program
 
17643
STRIP=$STRIP
 
17644
 
 
17645
# Used to examine libraries when file_magic_cmd begins "file"
 
17646
MAGIC_CMD=$MAGIC_CMD
 
17647
 
 
17648
# Used on cygwin: DLL creation program.
 
17649
DLLTOOL="$DLLTOOL"
 
17650
 
 
17651
# Used on cygwin: object dumper.
 
17652
OBJDUMP="$OBJDUMP"
 
17653
 
 
17654
# Used on cygwin: assembler.
 
17655
AS="$AS"
 
17656
 
 
17657
# The name of the directory that contains temporary libtool files.
 
17658
objdir=$objdir
 
17659
 
 
17660
# How to create reloadable object files.
 
17661
reload_flag=$lt_reload_flag
 
17662
reload_cmds=$lt_reload_cmds
 
17663
 
 
17664
# How to pass a linker flag through the compiler.
 
17665
wl=$lt_lt_prog_compiler_wl_F77
 
17666
 
 
17667
# Object file suffix (normally "o").
 
17668
objext="$ac_objext"
 
17669
 
 
17670
# Old archive suffix (normally "a").
 
17671
libext="$libext"
 
17672
 
 
17673
# Shared library suffix (normally ".so").
 
17674
shrext='$shrext'
 
17675
 
 
17676
# Executable file suffix (normally "").
 
17677
exeext="$exeext"
 
17678
 
 
17679
# Additional compiler flags for building library objects.
 
17680
pic_flag=$lt_lt_prog_compiler_pic_F77
 
17681
pic_mode=$pic_mode
 
17682
 
 
17683
# What is the maximum length of a command?
 
17684
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17685
 
 
17686
# Does compiler simultaneously support -c and -o options?
 
17687
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
17688
 
 
17689
# Must we lock files when doing compilation ?
 
17690
need_locks=$lt_need_locks
 
17691
 
 
17692
# Do we need the lib prefix for modules?
 
17693
need_lib_prefix=$need_lib_prefix
 
17694
 
 
17695
# Do we need a version for libraries?
 
17696
need_version=$need_version
 
17697
 
 
17698
# Whether dlopen is supported.
 
17699
dlopen_support=$enable_dlopen
 
17700
 
 
17701
# Whether dlopen of programs is supported.
 
17702
dlopen_self=$enable_dlopen_self
 
17703
 
 
17704
# Whether dlopen of statically linked programs is supported.
 
17705
dlopen_self_static=$enable_dlopen_self_static
 
17706
 
 
17707
# Compiler flag to prevent dynamic linking.
 
17708
link_static_flag=$lt_lt_prog_compiler_static_F77
 
17709
 
 
17710
# Compiler flag to turn off builtin functions.
 
17711
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
17712
 
 
17713
# Compiler flag to allow reflexive dlopens.
 
17714
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
17715
 
 
17716
# Compiler flag to generate shared objects directly from archives.
 
17717
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
17718
 
 
17719
# Compiler flag to generate thread-safe objects.
 
17720
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
17721
 
 
17722
# Library versioning type.
 
17723
version_type=$version_type
 
17724
 
 
17725
# Format of library name prefix.
 
17726
libname_spec=$lt_libname_spec
 
17727
 
 
17728
# List of archive names.  First name is the real one, the rest are links.
 
17729
# The last name is the one that the linker finds with -lNAME.
 
17730
library_names_spec=$lt_library_names_spec
 
17731
 
 
17732
# The coded name of the library, if different from the real name.
 
17733
soname_spec=$lt_soname_spec
 
17734
 
 
17735
# Commands used to build and install an old-style archive.
 
17736
RANLIB=$lt_RANLIB
 
17737
old_archive_cmds=$lt_old_archive_cmds_F77
 
17738
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17739
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17740
 
 
17741
# Create an old-style archive from a shared archive.
 
17742
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
17743
 
 
17744
# Create a temporary old-style archive to link instead of a shared archive.
 
17745
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
17746
 
 
17747
# Commands used to build and install a shared archive.
 
17748
archive_cmds=$lt_archive_cmds_F77
 
17749
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
17750
postinstall_cmds=$lt_postinstall_cmds
 
17751
postuninstall_cmds=$lt_postuninstall_cmds
 
17752
 
 
17753
# Commands used to build a loadable module (assumed same as above if empty)
 
17754
module_cmds=$lt_module_cmds_F77
 
17755
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
17756
 
 
17757
# Commands to strip libraries.
 
17758
old_striplib=$lt_old_striplib
 
17759
striplib=$lt_striplib
 
17760
 
 
17761
# Dependencies to place before the objects being linked to create a
 
17762
# shared library.
 
17763
predep_objects=$lt_predep_objects_F77
 
17764
 
 
17765
# Dependencies to place after the objects being linked to create a
 
17766
# shared library.
 
17767
postdep_objects=$lt_postdep_objects_F77
 
17768
 
 
17769
# Dependencies to place before the objects being linked to create a
 
17770
# shared library.
 
17771
predeps=$lt_predeps_F77
 
17772
 
 
17773
# Dependencies to place after the objects being linked to create a
 
17774
# shared library.
 
17775
postdeps=$lt_postdeps_F77
 
17776
 
 
17777
# The library search path used internally by the compiler when linking
 
17778
# a shared library.
 
17779
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
17780
 
 
17781
# Method to check whether dependent libraries are shared objects.
 
17782
deplibs_check_method=$lt_deplibs_check_method
 
17783
 
 
17784
# Command to use when deplibs_check_method == file_magic.
 
17785
file_magic_cmd=$lt_file_magic_cmd
 
17786
 
 
17787
# Flag that allows shared libraries with undefined symbols to be built.
 
17788
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
17789
 
 
17790
# Flag that forces no undefined symbols.
 
17791
no_undefined_flag=$lt_no_undefined_flag_F77
 
17792
 
 
17793
# Commands used to finish a libtool library installation in a directory.
 
17794
finish_cmds=$lt_finish_cmds
 
17795
 
 
17796
# Same as above, but a single script fragment to be evaled but not shown.
 
17797
finish_eval=$lt_finish_eval
 
17798
 
 
17799
# Take the output of nm and produce a listing of raw symbols and C names.
 
17800
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17801
 
 
17802
# Transform the output of nm in a proper C declaration
 
17803
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17804
 
 
17805
# Transform the output of nm in a C name address pair
 
17806
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17807
 
 
17808
# This is the shared library runtime path variable.
 
17809
runpath_var=$runpath_var
 
17810
 
 
17811
# This is the shared library path variable.
 
17812
shlibpath_var=$shlibpath_var
 
17813
 
 
17814
# Is shlibpath searched before the hard-coded library search path?
 
17815
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17816
 
 
17817
# How to hardcode a shared library path into an executable.
 
17818
hardcode_action=$hardcode_action_F77
 
17819
 
 
17820
# Whether we should hardcode library paths into libraries.
 
17821
hardcode_into_libs=$hardcode_into_libs
 
17822
 
 
17823
# Flag to hardcode \$libdir into a binary during linking.
 
17824
# This must work even if \$libdir does not exist.
 
17825
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
17826
 
 
17827
# If ld is used when linking, flag to hardcode \$libdir into
 
17828
# a binary during linking. This must work even if \$libdir does
 
17829
# not exist.
 
17830
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
17831
 
 
17832
# Whether we need a single -rpath flag with a separated argument.
 
17833
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
17834
 
 
17835
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17836
# resulting binary.
 
17837
hardcode_direct=$hardcode_direct_F77
 
17838
 
 
17839
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17840
# resulting binary.
 
17841
hardcode_minus_L=$hardcode_minus_L_F77
 
17842
 
 
17843
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
17844
# the resulting binary.
 
17845
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
17846
 
 
17847
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
17848
# and all subsequent libraries and executables linked against it.
 
17849
hardcode_automatic=$hardcode_automatic_F77
 
17850
 
 
17851
# Variables whose values should be saved in libtool wrapper scripts and
 
17852
# restored at relink time.
 
17853
variables_saved_for_relink="$variables_saved_for_relink"
 
17854
 
 
17855
# Whether libtool must link a program against all its dependency libraries.
 
17856
link_all_deplibs=$link_all_deplibs_F77
 
17857
 
 
17858
# Compile-time system search path for libraries
 
17859
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17860
 
 
17861
# Run-time system search path for libraries
 
17862
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17863
 
 
17864
# Fix the shell variable \$srcfile for the compiler.
 
17865
fix_srcfile_path="$fix_srcfile_path_F77"
 
17866
 
 
17867
# Set to yes if exported symbols are required.
 
17868
always_export_symbols=$always_export_symbols_F77
 
17869
 
 
17870
# The commands to list exported symbols.
 
17871
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
17872
 
 
17873
# The commands to extract the exported symbol list from a shared archive.
 
17874
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17875
 
 
17876
# Symbols that should not be listed in the preloaded symbols.
 
17877
exclude_expsyms=$lt_exclude_expsyms_F77
 
17878
 
 
17879
# Symbols that must always be exported.
 
17880
include_expsyms=$lt_include_expsyms_F77
 
17881
 
 
17882
# ### END LIBTOOL TAG CONFIG: $tagname
 
17883
 
 
17884
__EOF__
 
17885
 
 
17886
 
 
17887
else
 
17888
  # If there is no Makefile yet, we rely on a make rule to execute
 
17889
  # `config.status --recheck' to rerun these tests and create the
 
17890
  # libtool script then.
 
17891
  test -f Makefile && make "$ltmain"
 
17892
fi
 
17893
 
 
17894
 
 
17895
ac_ext=c
 
17896
ac_cpp='$CPP $CPPFLAGS'
 
17897
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17898
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17899
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17900
 
 
17901
CC="$lt_save_CC"
 
17902
 
 
17903
        else
 
17904
          tagname=""
 
17905
        fi
 
17906
        ;;
 
17907
 
 
17908
      GCJ)
 
17909
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
17910
 
 
17911
 
 
17912
 
 
17913
# Source file extension for Java test sources.
 
17914
ac_ext=java
 
17915
 
 
17916
# Object file extension for compiled Java test sources.
 
17917
objext=o
 
17918
objext_GCJ=$objext
 
17919
 
 
17920
# Code to be used in simple compile tests
 
17921
lt_simple_compile_test_code="class foo {}\n"
 
17922
 
 
17923
# Code to be used in simple link tests
 
17924
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
17925
 
 
17926
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
17927
 
 
17928
# If no C compiler was specified, use CC.
 
17929
LTCC=${LTCC-"$CC"}
 
17930
 
 
17931
# Allow CC to be a program name with arguments.
 
17932
compiler=$CC
 
17933
 
 
17934
 
 
17935
# Allow CC to be a program name with arguments.
 
17936
lt_save_CC="$CC"
 
17937
CC=${GCJ-"gcj"}
 
17938
compiler=$CC
 
17939
compiler_GCJ=$CC
 
17940
 
 
17941
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
17942
archive_cmds_need_lc_GCJ=no
 
17943
 
 
17944
## CAVEAT EMPTOR:
 
17945
## There is no encapsulation within the following macros, do not change
 
17946
## the running order or otherwise move them around unless you know exactly
 
17947
## what you are doing...
 
17948
 
 
17949
lt_prog_compiler_no_builtin_flag_GCJ=
 
17950
 
 
17951
if test "$GCC" = yes; then
 
17952
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
17953
 
 
17954
 
 
17955
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17956
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
17957
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
17958
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17959
else
 
17960
  lt_cv_prog_compiler_rtti_exceptions=no
 
17961
  ac_outfile=conftest.$ac_objext
 
17962
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17963
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
17964
   # Insert the option either (1) after the last *FLAGS variable, or
 
17965
   # (2) before a word containing "conftest.", or (3) at the end.
 
17966
   # Note that $ac_compile itself does not contain backslashes and begins
 
17967
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17968
   # The option is referenced via a variable to avoid confusing sed.
 
17969
   lt_compile=`echo "$ac_compile" | $SED \
 
17970
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17971
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17972
   -e 's:$: $lt_compiler_flag:'`
 
17973
   (eval echo "\"\$as_me:17973: $lt_compile\"" >&5)
 
17974
   (eval "$lt_compile" 2>conftest.err)
 
17975
   ac_status=$?
 
17976
   cat conftest.err >&5
 
17977
   echo "$as_me:17977: \$? = $ac_status" >&5
 
17978
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17979
     # The compiler can only warn and ignore the option if not recognized
 
17980
     # So say no if there are warnings
 
17981
     if test ! -s conftest.err; then
 
17982
       lt_cv_prog_compiler_rtti_exceptions=yes
 
17983
     fi
 
17984
   fi
 
17985
   $rm conftest*
 
17986
 
 
17987
fi
 
17988
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
17989
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
17990
 
 
17991
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
17992
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
17993
else
 
17994
    :
 
17995
fi
 
17996
 
 
17997
fi
 
17998
 
 
17999
lt_prog_compiler_wl_GCJ=
 
18000
lt_prog_compiler_pic_GCJ=
 
18001
lt_prog_compiler_static_GCJ=
 
18002
 
 
18003
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
18004
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
18005
 
 
18006
  if test "$GCC" = yes; then
 
18007
    lt_prog_compiler_wl_GCJ='-Wl,'
 
18008
    lt_prog_compiler_static_GCJ='-static'
 
18009
 
 
18010
    case $host_os in
 
18011
      aix*)
 
18012
      # All AIX code is PIC.
 
18013
      if test "$host_cpu" = ia64; then
 
18014
        # AIX 5 now supports IA64 processor
 
18015
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18016
      fi
 
18017
      ;;
 
18018
 
 
18019
    amigaos*)
 
18020
      # FIXME: we need at least 68020 code to build shared libraries, but
 
18021
      # adding the `-m68020' flag to GCC prevents building anything better,
 
18022
      # like `-m68040'.
 
18023
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
18024
      ;;
 
18025
 
 
18026
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
18027
      # PIC is the default for these OSes.
 
18028
      ;;
 
18029
 
 
18030
    mingw* | pw32* | os2*)
 
18031
      # This hack is so that the source file can tell whether it is being
 
18032
      # built for inclusion in a dll (and should export symbols for example).
 
18033
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
18034
      ;;
 
18035
 
 
18036
    darwin* | rhapsody*)
 
18037
      # PIC is the default on this platform
 
18038
      # Common symbols not allowed in MH_DYLIB files
 
18039
      lt_prog_compiler_pic_GCJ='-fno-common'
 
18040
      ;;
 
18041
 
 
18042
    msdosdjgpp*)
 
18043
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
18044
      # on systems that don't support them.
 
18045
      lt_prog_compiler_can_build_shared_GCJ=no
 
18046
      enable_shared=no
 
18047
      ;;
 
18048
 
 
18049
    sysv4*MP*)
 
18050
      if test -d /usr/nec; then
 
18051
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
18052
      fi
 
18053
      ;;
 
18054
 
 
18055
    hpux*)
 
18056
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
18057
      # not for PA HP-UX.
 
18058
      case "$host_cpu" in
 
18059
      hppa*64*|ia64*)
 
18060
        # +Z the default
 
18061
        ;;
 
18062
      *)
 
18063
        lt_prog_compiler_pic_GCJ='-fPIC'
 
18064
        ;;
 
18065
      esac
 
18066
      ;;
 
18067
 
 
18068
    *)
 
18069
      lt_prog_compiler_pic_GCJ='-fPIC'
 
18070
      ;;
 
18071
    esac
 
18072
  else
 
18073
    # PORTME Check for flag to pass linker flags through the system compiler.
 
18074
    case $host_os in
 
18075
    aix*)
 
18076
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18077
      if test "$host_cpu" = ia64; then
 
18078
        # AIX 5 now supports IA64 processor
 
18079
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18080
      else
 
18081
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
18082
      fi
 
18083
      ;;
 
18084
 
 
18085
    mingw* | pw32* | os2*)
 
18086
      # This hack is so that the source file can tell whether it is being
 
18087
      # built for inclusion in a dll (and should export symbols for example).
 
18088
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
18089
      ;;
 
18090
 
 
18091
    hpux9* | hpux10* | hpux11*)
 
18092
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18093
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
18094
      # not for PA HP-UX.
 
18095
      case "$host_cpu" in
 
18096
      hppa*64*|ia64*)
 
18097
        # +Z the default
 
18098
        ;;
 
18099
      *)
 
18100
        lt_prog_compiler_pic_GCJ='+Z'
 
18101
        ;;
 
18102
      esac
 
18103
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
18104
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
18105
      ;;
 
18106
 
 
18107
    irix5* | irix6* | nonstopux*)
 
18108
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18109
      # PIC (with -KPIC) is the default.
 
18110
      lt_prog_compiler_static_GCJ='-non_shared'
 
18111
      ;;
 
18112
 
 
18113
    newsos6)
 
18114
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18115
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18116
      ;;
 
18117
 
 
18118
    linux*)
 
18119
      case $CC in
 
18120
      icc* | ecc*)
 
18121
        lt_prog_compiler_wl_GCJ='-Wl,'
 
18122
        lt_prog_compiler_pic_GCJ='-KPIC'
 
18123
        lt_prog_compiler_static_GCJ='-static'
 
18124
        ;;
 
18125
      ccc*)
 
18126
        lt_prog_compiler_wl_GCJ='-Wl,'
 
18127
        # All Alpha code is PIC.
 
18128
        lt_prog_compiler_static_GCJ='-non_shared'
 
18129
        ;;
 
18130
      esac
 
18131
      ;;
 
18132
 
 
18133
    osf3* | osf4* | osf5*)
 
18134
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18135
      # All OSF/1 code is PIC.
 
18136
      lt_prog_compiler_static_GCJ='-non_shared'
 
18137
      ;;
 
18138
 
 
18139
    sco3.2v5*)
 
18140
      lt_prog_compiler_pic_GCJ='-Kpic'
 
18141
      lt_prog_compiler_static_GCJ='-dn'
 
18142
      ;;
 
18143
 
 
18144
    solaris*)
 
18145
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18146
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18147
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18148
      ;;
 
18149
 
 
18150
    sunos4*)
 
18151
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
18152
      lt_prog_compiler_pic_GCJ='-PIC'
 
18153
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18154
      ;;
 
18155
 
 
18156
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18157
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18158
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18159
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18160
      ;;
 
18161
 
 
18162
    sysv4*MP*)
 
18163
      if test -d /usr/nec ;then
 
18164
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
18165
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18166
      fi
 
18167
      ;;
 
18168
 
 
18169
    uts4*)
 
18170
      lt_prog_compiler_pic_GCJ='-pic'
 
18171
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18172
      ;;
 
18173
 
 
18174
    *)
 
18175
      lt_prog_compiler_can_build_shared_GCJ=no
 
18176
      ;;
 
18177
    esac
 
18178
  fi
 
18179
 
 
18180
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
18181
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
18182
 
 
18183
#
 
18184
# Check to make sure the PIC flag actually works.
 
18185
#
 
18186
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
18187
 
 
18188
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
18189
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
18190
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
18191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18192
else
 
18193
  lt_prog_compiler_pic_works_GCJ=no
 
18194
  ac_outfile=conftest.$ac_objext
 
18195
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18196
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
18197
   # Insert the option either (1) after the last *FLAGS variable, or
 
18198
   # (2) before a word containing "conftest.", or (3) at the end.
 
18199
   # Note that $ac_compile itself does not contain backslashes and begins
 
18200
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18201
   # The option is referenced via a variable to avoid confusing sed.
 
18202
   lt_compile=`echo "$ac_compile" | $SED \
 
18203
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
18204
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18205
   -e 's:$: $lt_compiler_flag:'`
 
18206
   (eval echo "\"\$as_me:18206: $lt_compile\"" >&5)
 
18207
   (eval "$lt_compile" 2>conftest.err)
 
18208
   ac_status=$?
 
18209
   cat conftest.err >&5
 
18210
   echo "$as_me:18210: \$? = $ac_status" >&5
 
18211
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
18212
     # The compiler can only warn and ignore the option if not recognized
 
18213
     # So say no if there are warnings
 
18214
     if test ! -s conftest.err; then
 
18215
       lt_prog_compiler_pic_works_GCJ=yes
 
18216
     fi
 
18217
   fi
 
18218
   $rm conftest*
 
18219
 
 
18220
fi
 
18221
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
18222
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
18223
 
 
18224
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
18225
    case $lt_prog_compiler_pic_GCJ in
 
18226
     "" | " "*) ;;
 
18227
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
18228
     esac
 
18229
else
 
18230
    lt_prog_compiler_pic_GCJ=
 
18231
     lt_prog_compiler_can_build_shared_GCJ=no
 
18232
fi
 
18233
 
 
18234
fi
 
18235
case "$host_os" in
 
18236
  # For platforms which do not support PIC, -DPIC is meaningless:
 
18237
  *djgpp*)
 
18238
    lt_prog_compiler_pic_GCJ=
 
18239
    ;;
 
18240
  *)
 
18241
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
18242
    ;;
 
18243
esac
 
18244
 
 
18245
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
18246
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
18247
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
18248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18249
else
 
18250
  lt_cv_prog_compiler_c_o_GCJ=no
 
18251
   $rm -r conftest 2>/dev/null
 
18252
   mkdir conftest
 
18253
   cd conftest
 
18254
   mkdir out
 
18255
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18256
 
 
18257
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
18258
   # that will create temporary files in the current directory regardless of
 
18259
   # the output directory.  Thus, making CWD read-only will cause this test
 
18260
   # to fail, enabling locking or at least warning the user not to do parallel
 
18261
   # builds.
 
18262
   chmod -w .
 
18263
 
 
18264
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
18265
   # Insert the option either (1) after the last *FLAGS variable, or
 
18266
   # (2) before a word containing "conftest.", or (3) at the end.
 
18267
   # Note that $ac_compile itself does not contain backslashes and begins
 
18268
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18269
   lt_compile=`echo "$ac_compile" | $SED \
 
18270
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
18271
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18272
   -e 's:$: $lt_compiler_flag:'`
 
18273
   (eval echo "\"\$as_me:18273: $lt_compile\"" >&5)
 
18274
   (eval "$lt_compile" 2>out/conftest.err)
 
18275
   ac_status=$?
 
18276
   cat out/conftest.err >&5
 
18277
   echo "$as_me:18277: \$? = $ac_status" >&5
 
18278
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
18279
   then
 
18280
     # The compiler can only warn and ignore the option if not recognized
 
18281
     # So say no if there are warnings
 
18282
     if test ! -s out/conftest.err; then
 
18283
       lt_cv_prog_compiler_c_o_GCJ=yes
 
18284
     fi
 
18285
   fi
 
18286
   chmod u+w .
 
18287
   $rm conftest* out/*
 
18288
   rmdir out
 
18289
   cd ..
 
18290
   rmdir conftest
 
18291
   $rm conftest*
 
18292
 
 
18293
fi
 
18294
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
18295
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
18296
 
 
18297
 
 
18298
hard_links="nottested"
 
18299
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
18300
  # do not overwrite the value of need_locks provided by the user
 
18301
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
18302
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
18303
  hard_links=yes
 
18304
  $rm conftest*
 
18305
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
18306
  touch conftest.a
 
18307
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
18308
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
18309
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
18310
echo "${ECHO_T}$hard_links" >&6
 
18311
  if test "$hard_links" = no; then
 
18312
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
18313
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
18314
    need_locks=warn
 
18315
  fi
 
18316
else
 
18317
  need_locks=no
 
18318
fi
 
18319
 
 
18320
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
18321
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
18322
 
 
18323
  runpath_var=
 
18324
  allow_undefined_flag_GCJ=
 
18325
  enable_shared_with_static_runtimes_GCJ=no
 
18326
  archive_cmds_GCJ=
 
18327
  archive_expsym_cmds_GCJ=
 
18328
  old_archive_From_new_cmds_GCJ=
 
18329
  old_archive_from_expsyms_cmds_GCJ=
 
18330
  export_dynamic_flag_spec_GCJ=
 
18331
  whole_archive_flag_spec_GCJ=
 
18332
  thread_safe_flag_spec_GCJ=
 
18333
  hardcode_libdir_flag_spec_GCJ=
 
18334
  hardcode_libdir_flag_spec_ld_GCJ=
 
18335
  hardcode_libdir_separator_GCJ=
 
18336
  hardcode_direct_GCJ=no
 
18337
  hardcode_minus_L_GCJ=no
 
18338
  hardcode_shlibpath_var_GCJ=unsupported
 
18339
  link_all_deplibs_GCJ=unknown
 
18340
  hardcode_automatic_GCJ=no
 
18341
  module_cmds_GCJ=
 
18342
  module_expsym_cmds_GCJ=
 
18343
  always_export_symbols_GCJ=no
 
18344
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
18345
  # include_expsyms should be a list of space-separated symbols to be *always*
 
18346
  # included in the symbol list
 
18347
  include_expsyms_GCJ=
 
18348
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
18349
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
18350
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
18351
  # as well as any symbol that contains `d'.
 
18352
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
18353
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
18354
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
18355
  # the symbol is explicitly referenced.  Since portable code cannot
 
18356
  # rely on this symbol name, it's probably fine to never include it in
 
18357
  # preloaded symbol tables.
 
18358
  extract_expsyms_cmds=
 
18359
 
 
18360
  case $host_os in
 
18361
  cygwin* | mingw* | pw32*)
 
18362
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
18363
    # When not using gcc, we currently assume that we are using
 
18364
    # Microsoft Visual C++.
 
18365
    if test "$GCC" != yes; then
 
18366
      with_gnu_ld=no
 
18367
    fi
 
18368
    ;;
 
18369
  openbsd*)
 
18370
    with_gnu_ld=no
 
18371
    ;;
 
18372
  esac
 
18373
 
 
18374
  ld_shlibs_GCJ=yes
 
18375
  if test "$with_gnu_ld" = yes; then
 
18376
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
18377
    wlarc='${wl}'
 
18378
 
 
18379
    # See if GNU ld supports shared libraries.
 
18380
    case $host_os in
 
18381
    aix3* | aix4* | aix5*)
 
18382
      # On AIX/PPC, the GNU linker is very broken
 
18383
      if test "$host_cpu" != ia64; then
 
18384
        ld_shlibs_GCJ=no
 
18385
        cat <<EOF 1>&2
 
18386
 
 
18387
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
18388
*** to be unable to reliably create shared libraries on AIX.
 
18389
*** Therefore, libtool is disabling shared libraries support.  If you
 
18390
*** really care for shared libraries, you may want to modify your PATH
 
18391
*** so that a non-GNU linker is found, and then restart.
 
18392
 
 
18393
EOF
 
18394
      fi
 
18395
      ;;
 
18396
 
 
18397
    amigaos*)
 
18398
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
18399
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18400
      hardcode_minus_L_GCJ=yes
 
18401
 
 
18402
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
18403
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
18404
      # to version 4, is to share data among multiple programs linked
 
18405
      # with the same dynamic library.  Since this doesn't match the
 
18406
      # behavior of shared libraries on other platforms, we can't use
 
18407
      # them.
 
18408
      ld_shlibs_GCJ=no
 
18409
      ;;
 
18410
 
 
18411
    beos*)
 
18412
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18413
        allow_undefined_flag_GCJ=unsupported
 
18414
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
18415
        # support --undefined.  This deserves some investigation.  FIXME
 
18416
        archive_cmds_GCJ='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
18417
      else
 
18418
        ld_shlibs_GCJ=no
 
18419
      fi
 
18420
      ;;
 
18421
 
 
18422
    cygwin* | mingw* | pw32*)
 
18423
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
18424
      # as there is no search path for DLLs.
 
18425
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18426
      allow_undefined_flag_GCJ=no
 
18427
      always_export_symbols_GCJ=no
 
18428
      enable_shared_with_static_runtimes_GCJ=yes
 
18429
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
18430
 
 
18431
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
18432
        archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
18433
        # If the export-symbols file already is a .def file (1st line
 
18434
        # is EXPORTS), use it as is; otherwise, prepend...
 
18435
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
18436
          cp $export_symbols $output_objdir/$soname.def;
 
18437
        else
 
18438
          echo EXPORTS > $output_objdir/$soname.def;
 
18439
          cat $export_symbols >> $output_objdir/$soname.def;
 
18440
        fi~
 
18441
        $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
18442
      else
 
18443
        ld_shlibs=no
 
18444
      fi
 
18445
      ;;
 
18446
 
 
18447
    netbsd*)
 
18448
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18449
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
18450
        wlarc=
 
18451
      else
 
18452
        archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
18453
        archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18454
      fi
 
18455
      ;;
 
18456
 
 
18457
    solaris* | sysv5*)
 
18458
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
18459
        ld_shlibs_GCJ=no
 
18460
        cat <<EOF 1>&2
 
18461
 
 
18462
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
18463
*** create shared libraries on Solaris systems.  Therefore, libtool
 
18464
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
18465
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
18466
*** your PATH or compiler configuration so that the native linker is
 
18467
*** used, and then restart.
 
18468
 
 
18469
EOF
 
18470
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18471
        archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
18472
        archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18473
      else
 
18474
        ld_shlibs_GCJ=no
 
18475
      fi
 
18476
      ;;
 
18477
 
 
18478
    sunos4*)
 
18479
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18480
      wlarc=
 
18481
      hardcode_direct_GCJ=yes
 
18482
      hardcode_shlibpath_var_GCJ=no
 
18483
      ;;
 
18484
 
 
18485
    *)
 
18486
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18487
        archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
18488
        archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18489
      else
 
18490
        ld_shlibs_GCJ=no
 
18491
      fi
 
18492
      ;;
 
18493
    esac
 
18494
 
 
18495
    if test "$ld_shlibs_GCJ" = yes; then
 
18496
      runpath_var=LD_RUN_PATH
 
18497
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
18498
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
18499
      # ancient GNU ld didn't support --whole-archive et. al.
 
18500
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
18501
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
18502
      else
 
18503
        whole_archive_flag_spec_GCJ=
 
18504
      fi
 
18505
    fi
 
18506
  else
 
18507
    # PORTME fill in a description of your system's linker (not GNU ld)
 
18508
    case $host_os in
 
18509
    aix3*)
 
18510
      allow_undefined_flag_GCJ=unsupported
 
18511
      always_export_symbols_GCJ=yes
 
18512
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
18513
      # Note: this linker hardcodes the directories in LIBPATH if there
 
18514
      # are no directories specified by -L.
 
18515
      hardcode_minus_L_GCJ=yes
 
18516
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
18517
        # Neither direct hardcoding nor static linking is supported with a
 
18518
        # broken collect2.
 
18519
        hardcode_direct_GCJ=unsupported
 
18520
      fi
 
18521
      ;;
 
18522
 
 
18523
    aix4* | aix5*)
 
18524
      if test "$host_cpu" = ia64; then
 
18525
        # On IA64, the linker does run time linking by default, so we don't
 
18526
        # have to do anything special.
 
18527
        aix_use_runtimelinking=no
 
18528
        exp_sym_flag='-Bexport'
 
18529
        no_entry_flag=""
 
18530
      else
 
18531
        # If we're using GNU nm, then we don't want the "-C" option.
 
18532
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
18533
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
18534
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
18535
        else
 
18536
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
18537
        fi
 
18538
 
 
18539
        # KDE requires run time linking.  Make it the default.
 
18540
        aix_use_runtimelinking=yes
 
18541
        exp_sym_flag='-bexport'
 
18542
        no_entry_flag='-bnoentry'
 
18543
      fi
 
18544
 
 
18545
      # When large executables or shared objects are built, AIX ld can
 
18546
      # have problems creating the table of contents.  If linking a library
 
18547
      # or program results in "error TOC overflow" add -mminimal-toc to
 
18548
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
18549
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
18550
 
 
18551
      archive_cmds_GCJ=''
 
18552
      hardcode_direct_GCJ=yes
 
18553
      hardcode_libdir_separator_GCJ=':'
 
18554
      link_all_deplibs_GCJ=yes
 
18555
 
 
18556
      if test "$GCC" = yes; then
 
18557
        case $host_os in aix4.012|aix4.012.*)
 
18558
        # We only want to do this on AIX 4.2 and lower, the check
 
18559
        # below for broken collect2 doesn't work under 4.3+
 
18560
          collect2name=`${CC} -print-prog-name=collect2`
 
18561
          if test -f "$collect2name" && \
 
18562
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
18563
          then
 
18564
          # We have reworked collect2
 
18565
          hardcode_direct_GCJ=yes
 
18566
          else
 
18567
          # We have old collect2
 
18568
          hardcode_direct_GCJ=unsupported
 
18569
          # It fails to find uninstalled libraries when the uninstalled
 
18570
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
18571
          # to unsupported forces relinking
 
18572
          hardcode_minus_L_GCJ=yes
 
18573
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18574
          hardcode_libdir_separator_GCJ=
 
18575
          fi
 
18576
        esac
 
18577
        shared_flag='-shared'
 
18578
      else
 
18579
        # not using gcc
 
18580
        if test "$host_cpu" = ia64; then
 
18581
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
18582
        # chokes on -Wl,-G. The following line is correct:
 
18583
          shared_flag='-G'
 
18584
        else
 
18585
        if test "$aix_use_runtimelinking" = yes; then
 
18586
            shared_flag='-qmkshrobj ${wl}-G'
 
18587
          else
 
18588
            shared_flag='-qmkshrobj'
 
18589
        fi
 
18590
        fi
 
18591
      fi
 
18592
 
 
18593
      # Let the compiler handle the export list.
 
18594
      always_export_symbols_GCJ=no
 
18595
      if test "$aix_use_runtimelinking" = yes; then
 
18596
        # Warning - without using the other runtime loading flags (-brtl),
 
18597
        # -berok will link without error, but may produce a broken library.
 
18598
        allow_undefined_flag_GCJ='-berok'
 
18599
       # Determine the default libpath from the value encoded in an empty executable.
 
18600
        cat >conftest.$ac_ext <<_ACEOF
 
18601
/* confdefs.h.  */
 
18602
_ACEOF
 
18603
cat confdefs.h >>conftest.$ac_ext
 
18604
cat >>conftest.$ac_ext <<_ACEOF
 
18605
/* end confdefs.h.  */
 
18606
 
 
18607
int
 
18608
main ()
 
18609
{
 
18610
 
 
18611
  ;
 
18612
  return 0;
 
18613
}
 
18614
_ACEOF
 
18615
rm -f conftest.$ac_objext conftest$ac_exeext
 
18616
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18617
  (eval $ac_link) 2>conftest.er1
 
18618
  ac_status=$?
 
18619
  grep -v '^ *+' conftest.er1 >conftest.err
 
18620
  rm -f conftest.er1
 
18621
  cat conftest.err >&5
 
18622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18623
  (exit $ac_status); } &&
 
18624
         { ac_try='test -z "$ac_c_werror_flag"
 
18625
                         || test ! -s conftest.err'
 
18626
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18627
  (eval $ac_try) 2>&5
 
18628
  ac_status=$?
 
18629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18630
  (exit $ac_status); }; } &&
 
18631
         { ac_try='test -s conftest$ac_exeext'
 
18632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18633
  (eval $ac_try) 2>&5
 
18634
  ac_status=$?
 
18635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18636
  (exit $ac_status); }; }; then
 
18637
 
 
18638
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18639
}'`
 
18640
# Check for a 64-bit object if we didn't find anything.
 
18641
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18642
}'`; fi
 
18643
else
 
18644
  echo "$as_me: failed program was:" >&5
 
18645
sed 's/^/| /' conftest.$ac_ext >&5
 
18646
 
 
18647
fi
 
18648
rm -f conftest.err conftest.$ac_objext \
 
18649
      conftest$ac_exeext conftest.$ac_ext
 
18650
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18651
 
 
18652
        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18653
        archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
 
18654
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
18655
       else
 
18656
        if test "$host_cpu" = ia64; then
 
18657
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
18658
          allow_undefined_flag_GCJ="-z nodefs"
 
18659
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
18660
        else
 
18661
         # Determine the default libpath from the value encoded in an empty executable.
 
18662
         cat >conftest.$ac_ext <<_ACEOF
 
18663
/* confdefs.h.  */
 
18664
_ACEOF
 
18665
cat confdefs.h >>conftest.$ac_ext
 
18666
cat >>conftest.$ac_ext <<_ACEOF
 
18667
/* end confdefs.h.  */
 
18668
 
 
18669
int
 
18670
main ()
 
18671
{
 
18672
 
 
18673
  ;
 
18674
  return 0;
 
18675
}
 
18676
_ACEOF
 
18677
rm -f conftest.$ac_objext conftest$ac_exeext
 
18678
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18679
  (eval $ac_link) 2>conftest.er1
 
18680
  ac_status=$?
 
18681
  grep -v '^ *+' conftest.er1 >conftest.err
 
18682
  rm -f conftest.er1
 
18683
  cat conftest.err >&5
 
18684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18685
  (exit $ac_status); } &&
 
18686
         { ac_try='test -z "$ac_c_werror_flag"
 
18687
                         || test ! -s conftest.err'
 
18688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18689
  (eval $ac_try) 2>&5
 
18690
  ac_status=$?
 
18691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18692
  (exit $ac_status); }; } &&
 
18693
         { ac_try='test -s conftest$ac_exeext'
 
18694
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18695
  (eval $ac_try) 2>&5
 
18696
  ac_status=$?
 
18697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18698
  (exit $ac_status); }; }; then
 
18699
 
 
18700
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18701
}'`
 
18702
# Check for a 64-bit object if we didn't find anything.
 
18703
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18704
}'`; fi
 
18705
else
 
18706
  echo "$as_me: failed program was:" >&5
 
18707
sed 's/^/| /' conftest.$ac_ext >&5
 
18708
 
 
18709
fi
 
18710
rm -f conftest.err conftest.$ac_objext \
 
18711
      conftest$ac_exeext conftest.$ac_ext
 
18712
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18713
 
 
18714
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18715
          # Warning - without using the other run time loading flags,
 
18716
          # -berok will link without error, but may produce a broken library.
 
18717
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
18718
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
18719
          # -bexpall does not export symbols beginning with underscore (_)
 
18720
          always_export_symbols_GCJ=yes
 
18721
          # Exported symbols can be pulled into shared objects from archives
 
18722
          whole_archive_flag_spec_GCJ=' '
 
18723
          archive_cmds_need_lc_GCJ=yes
 
18724
          # This is similar to how AIX traditionally builds it's shared libraries.
 
18725
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
18726
        fi
 
18727
      fi
 
18728
      ;;
 
18729
 
 
18730
    amigaos*)
 
18731
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
18732
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18733
      hardcode_minus_L_GCJ=yes
 
18734
      # see comment about different semantics on the GNU ld section
 
18735
      ld_shlibs_GCJ=no
 
18736
      ;;
 
18737
 
 
18738
    bsdi4*)
 
18739
      export_dynamic_flag_spec_GCJ=-rdynamic
 
18740
      ;;
 
18741
 
 
18742
    cygwin* | mingw* | pw32*)
 
18743
      # When not using gcc, we currently assume that we are using
 
18744
      # Microsoft Visual C++.
 
18745
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
18746
      # no search path for DLLs.
 
18747
      hardcode_libdir_flag_spec_GCJ=' '
 
18748
      allow_undefined_flag_GCJ=no
 
18749
      # Tell ltmain to make .lib files, not .a files.
 
18750
      libext=lib
 
18751
      # Tell ltmain to make .dll files, not .so files.
 
18752
      shrext=".dll"
 
18753
      # FIXME: Setting linknames here is a bad hack.
 
18754
      archive_cmds_GCJ='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18755
      # The linker will automatically build a .lib file if we build a DLL.
 
18756
      old_archive_From_new_cmds_GCJ='true'
 
18757
      # FIXME: Should let the user specify the lib program.
 
18758
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
18759
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
18760
      enable_shared_with_static_runtimes_GCJ=yes
 
18761
      ;;
 
18762
 
 
18763
    darwin* | rhapsody*)
 
18764
    if test "$GXX" = yes ; then
 
18765
      archive_cmds_need_lc_GCJ=no
 
18766
      case "$host_os" in
 
18767
      rhapsody* | darwin1.[012])
 
18768
        allow_undefined_flag_GCJ='-undefined suppress'
 
18769
        ;;
 
18770
      *) # Darwin 1.3 on
 
18771
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
18772
        ;;
 
18773
      esac
 
18774
        lt_int_apple_cc_single_mod=no
 
18775
        output_verbose_link_cmd='echo'
 
18776
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
18777
          lt_int_apple_cc_single_mod=yes
 
18778
        fi
 
18779
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
18780
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
18781
        else
 
18782
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
 
18783
      fi
 
18784
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
18785
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
18786
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
18787
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18788
        else
 
18789
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18790
        fi
 
18791
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18792
      hardcode_direct_GCJ=no
 
18793
      hardcode_automatic_GCJ=yes
 
18794
      hardcode_shlibpath_var_GCJ=unsupported
 
18795
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
18796
      link_all_deplibs_GCJ=yes
 
18797
    else
 
18798
      ld_shlibs_GCJ=no
 
18799
    fi
 
18800
      ;;
 
18801
 
 
18802
    dgux*)
 
18803
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18804
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18805
      hardcode_shlibpath_var_GCJ=no
 
18806
      ;;
 
18807
 
 
18808
    freebsd1*)
 
18809
      ld_shlibs_GCJ=no
 
18810
      ;;
 
18811
 
 
18812
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
18813
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
18814
    # does not break anything, and helps significantly (at the cost of a little
 
18815
    # extra space).
 
18816
    freebsd2.2*)
 
18817
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
18818
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18819
      hardcode_direct_GCJ=yes
 
18820
      hardcode_shlibpath_var_GCJ=no
 
18821
      ;;
 
18822
 
 
18823
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
18824
    freebsd2*)
 
18825
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18826
      hardcode_direct_GCJ=yes
 
18827
      hardcode_minus_L_GCJ=yes
 
18828
      hardcode_shlibpath_var_GCJ=no
 
18829
      ;;
 
18830
 
 
18831
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18832
    freebsd*)
 
18833
      archive_cmds_GCJ='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
 
18834
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18835
      hardcode_direct_GCJ=yes
 
18836
      hardcode_shlibpath_var_GCJ=no
 
18837
      ;;
 
18838
 
 
18839
    hpux9*)
 
18840
      if test "$GCC" = yes; then
 
18841
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
18842
      else
 
18843
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
18844
      fi
 
18845
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18846
      hardcode_libdir_separator_GCJ=:
 
18847
      hardcode_direct_GCJ=yes
 
18848
 
 
18849
      # hardcode_minus_L: Not really in the search PATH,
 
18850
      # but as the default location of the library.
 
18851
      hardcode_minus_L_GCJ=yes
 
18852
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18853
      ;;
 
18854
 
 
18855
    hpux10* | hpux11*)
 
18856
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18857
        case "$host_cpu" in
 
18858
        hppa*64*|ia64*)
 
18859
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
18860
          ;;
 
18861
        *)
 
18862
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
 
18863
          ;;
 
18864
        esac
 
18865
      else
 
18866
        case "$host_cpu" in
 
18867
        hppa*64*|ia64*)
 
18868
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18869
          ;;
 
18870
        *)
 
18871
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18872
          ;;
 
18873
        esac
 
18874
      fi
 
18875
      if test "$with_gnu_ld" = no; then
 
18876
        case "$host_cpu" in
 
18877
        hppa*64*)
 
18878
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18879
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18880
          hardcode_libdir_separator_GCJ=:
 
18881
          hardcode_direct_GCJ=no
 
18882
          hardcode_shlibpath_var_GCJ=no
 
18883
          ;;
 
18884
        ia64*)
 
18885
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18886
          hardcode_direct_GCJ=no
 
18887
          hardcode_shlibpath_var_GCJ=no
 
18888
 
 
18889
          # hardcode_minus_L: Not really in the search PATH,
 
18890
          # but as the default location of the library.
 
18891
          hardcode_minus_L_GCJ=yes
 
18892
          ;;
 
18893
        *)
 
18894
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18895
          hardcode_libdir_separator_GCJ=:
 
18896
          hardcode_direct_GCJ=yes
 
18897
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18898
 
 
18899
          # hardcode_minus_L: Not really in the search PATH,
 
18900
          # but as the default location of the library.
 
18901
          hardcode_minus_L_GCJ=yes
 
18902
          ;;
 
18903
        esac
 
18904
      fi
 
18905
      ;;
 
18906
 
 
18907
    irix5* | irix6* | nonstopux*)
 
18908
      if test "$GCC" = yes; then
 
18909
        archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18910
      else
 
18911
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18912
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18913
      fi
 
18914
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18915
      hardcode_libdir_separator_GCJ=:
 
18916
      link_all_deplibs_GCJ=yes
 
18917
      ;;
 
18918
 
 
18919
    netbsd*)
 
18920
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18921
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18922
      else
 
18923
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18924
      fi
 
18925
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18926
      hardcode_direct_GCJ=yes
 
18927
      hardcode_shlibpath_var_GCJ=no
 
18928
      ;;
 
18929
 
 
18930
    newsos6)
 
18931
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18932
      hardcode_direct_GCJ=yes
 
18933
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18934
      hardcode_libdir_separator_GCJ=:
 
18935
      hardcode_shlibpath_var_GCJ=no
 
18936
      ;;
 
18937
 
 
18938
    openbsd*)
 
18939
      hardcode_direct_GCJ=yes
 
18940
      hardcode_shlibpath_var_GCJ=no
 
18941
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18942
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
18943
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18944
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18945
      else
 
18946
       case $host_os in
 
18947
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18948
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18949
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18950
           ;;
 
18951
         *)
 
18952
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
18953
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18954
           ;;
 
18955
       esac
 
18956
      fi
 
18957
      ;;
 
18958
 
 
18959
    os2*)
 
18960
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18961
      hardcode_minus_L_GCJ=yes
 
18962
      allow_undefined_flag_GCJ=unsupported
 
18963
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
 
18964
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18965
      ;;
 
18966
 
 
18967
    osf3*)
 
18968
      if test "$GCC" = yes; then
 
18969
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18970
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18971
      else
 
18972
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18973
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18974
      fi
 
18975
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18976
      hardcode_libdir_separator_GCJ=:
 
18977
      ;;
 
18978
 
 
18979
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18980
      if test "$GCC" = yes; then
 
18981
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18982
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18983
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18984
      else
 
18985
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18986
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18987
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
18988
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
18989
 
 
18990
        # Both c and cxx compiler support -rpath directly
 
18991
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18992
      fi
 
18993
      hardcode_libdir_separator_GCJ=:
 
18994
      ;;
 
18995
 
 
18996
    sco3.2v5*)
 
18997
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18998
      hardcode_shlibpath_var_GCJ=no
 
18999
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
19000
      runpath_var=LD_RUN_PATH
 
19001
      hardcode_runpath_var=yes
 
19002
      ;;
 
19003
 
 
19004
    solaris*)
 
19005
      no_undefined_flag_GCJ=' -z text'
 
19006
      if test "$GCC" = yes; then
 
19007
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
19008
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
19009
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
 
19010
      else
 
19011
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19012
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
19013
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
19014
      fi
 
19015
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19016
      hardcode_shlibpath_var_GCJ=no
 
19017
      case $host_os in
 
19018
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
19019
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
19020
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
19021
      esac
 
19022
      link_all_deplibs_GCJ=yes
 
19023
      ;;
 
19024
 
 
19025
    sunos4*)
 
19026
      if test "x$host_vendor" = xsequent; then
 
19027
        # Use $CC to link under sequent, because it throws in some extra .o
 
19028
        # files that make .init and .fini sections work.
 
19029
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
 
19030
      else
 
19031
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
19032
      fi
 
19033
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19034
      hardcode_direct_GCJ=yes
 
19035
      hardcode_minus_L_GCJ=yes
 
19036
      hardcode_shlibpath_var_GCJ=no
 
19037
      ;;
 
19038
 
 
19039
    sysv4)
 
19040
      case $host_vendor in
 
19041
        sni)
 
19042
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19043
          hardcode_direct_GCJ=yes # is this really true???
 
19044
        ;;
 
19045
        siemens)
 
19046
          ## LD is ld it makes a PLAMLIB
 
19047
          ## CC just makes a GrossModule.
 
19048
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
19049
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
19050
          hardcode_direct_GCJ=no
 
19051
        ;;
 
19052
        motorola)
 
19053
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19054
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
19055
        ;;
 
19056
      esac
 
19057
      runpath_var='LD_RUN_PATH'
 
19058
      hardcode_shlibpath_var_GCJ=no
 
19059
      ;;
 
19060
 
 
19061
    sysv4.3*)
 
19062
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19063
      hardcode_shlibpath_var_GCJ=no
 
19064
      export_dynamic_flag_spec_GCJ='-Bexport'
 
19065
      ;;
 
19066
 
 
19067
    sysv4*MP*)
 
19068
      if test -d /usr/nec; then
 
19069
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19070
        hardcode_shlibpath_var_GCJ=no
 
19071
        runpath_var=LD_RUN_PATH
 
19072
        hardcode_runpath_var=yes
 
19073
        ld_shlibs_GCJ=yes
 
19074
      fi
 
19075
      ;;
 
19076
 
 
19077
    sysv4.2uw2*)
 
19078
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
19079
      hardcode_direct_GCJ=yes
 
19080
      hardcode_minus_L_GCJ=no
 
19081
      hardcode_shlibpath_var_GCJ=no
 
19082
      hardcode_runpath_var=yes
 
19083
      runpath_var=LD_RUN_PATH
 
19084
      ;;
 
19085
 
 
19086
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
19087
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
19088
      if test "$GCC" = yes; then
 
19089
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
19090
      else
 
19091
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
19092
      fi
 
19093
      runpath_var='LD_RUN_PATH'
 
19094
      hardcode_shlibpath_var_GCJ=no
 
19095
      ;;
 
19096
 
 
19097
    sysv5*)
 
19098
      no_undefined_flag_GCJ=' -z text'
 
19099
      # $CC -shared without GNU ld will not create a library from C++
 
19100
      # object files and a static libstdc++, better avoid it by now
 
19101
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19102
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
19103
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
19104
      hardcode_libdir_flag_spec_GCJ=
 
19105
      hardcode_shlibpath_var_GCJ=no
 
19106
      runpath_var='LD_RUN_PATH'
 
19107
      ;;
 
19108
 
 
19109
    uts4*)
 
19110
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19111
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19112
      hardcode_shlibpath_var_GCJ=no
 
19113
      ;;
 
19114
 
 
19115
    *)
 
19116
      ld_shlibs_GCJ=no
 
19117
      ;;
 
19118
    esac
 
19119
  fi
 
19120
 
 
19121
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
19122
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
19123
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
19124
 
 
19125
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
19126
if test "$GCC" = yes; then
 
19127
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
19128
fi
 
19129
 
 
19130
#
 
19131
# Do we need to explicitly link libc?
 
19132
#
 
19133
case "x$archive_cmds_need_lc_GCJ" in
 
19134
x|xyes)
 
19135
  # Assume -lc should be added
 
19136
  archive_cmds_need_lc_GCJ=yes
 
19137
 
 
19138
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
19139
    case $archive_cmds_GCJ in
 
19140
    *'~'*)
 
19141
      # FIXME: we may have to deal with multi-command sequences.
 
19142
      ;;
 
19143
    '$CC '*)
 
19144
      # Test whether the compiler implicitly links with -lc since on some
 
19145
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
19146
      # to ld, don't add -lc before -lgcc.
 
19147
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
19148
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
19149
      $rm conftest*
 
19150
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
19151
 
 
19152
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19153
  (eval $ac_compile) 2>&5
 
19154
  ac_status=$?
 
19155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19156
  (exit $ac_status); } 2>conftest.err; then
 
19157
        soname=conftest
 
19158
        lib=conftest
 
19159
        libobjs=conftest.$ac_objext
 
19160
        deplibs=
 
19161
        wl=$lt_prog_compiler_wl_GCJ
 
19162
        compiler_flags=-v
 
19163
        linker_flags=-v
 
19164
        verstring=
 
19165
        output_objdir=.
 
19166
        libname=conftest
 
19167
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
19168
        allow_undefined_flag_GCJ=
 
19169
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
19170
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
19171
  ac_status=$?
 
19172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19173
  (exit $ac_status); }
 
19174
        then
 
19175
          archive_cmds_need_lc_GCJ=no
 
19176
        else
 
19177
          archive_cmds_need_lc_GCJ=yes
 
19178
        fi
 
19179
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
19180
      else
 
19181
        cat conftest.err 1>&5
 
19182
      fi
 
19183
      $rm conftest*
 
19184
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
19185
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
19186
      ;;
 
19187
    esac
 
19188
  fi
 
19189
  ;;
 
19190
esac
 
19191
 
 
19192
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
19193
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
19194
library_names_spec=
 
19195
libname_spec='lib$name'
 
19196
soname_spec=
 
19197
shrext=".so"
 
19198
postinstall_cmds=
 
19199
postuninstall_cmds=
 
19200
finish_cmds=
 
19201
finish_eval=
 
19202
shlibpath_var=
 
19203
shlibpath_overrides_runpath=unknown
 
19204
version_type=none
 
19205
dynamic_linker="$host_os ld.so"
 
19206
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
19207
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
19208
need_lib_prefix=unknown
 
19209
hardcode_into_libs=no
 
19210
 
 
19211
# when you set need_version to no, make sure it does not cause -set_version
 
19212
# flags to be left without arguments
 
19213
need_version=unknown
 
19214
 
 
19215
case $host_os in
 
19216
aix3*)
 
19217
  version_type=linux
 
19218
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
19219
  shlibpath_var=LIBPATH
 
19220
 
 
19221
  # AIX 3 has no versioning support, so we append a major version to the name.
 
19222
  soname_spec='${libname}${release}${shared_ext}$major'
 
19223
  ;;
 
19224
 
 
19225
aix4* | aix5*)
 
19226
  version_type=linux
 
19227
  need_lib_prefix=no
 
19228
  need_version=no
 
19229
  hardcode_into_libs=yes
 
19230
  if test "$host_cpu" = ia64; then
 
19231
    # AIX 5 supports IA64
 
19232
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
19233
    shlibpath_var=LD_LIBRARY_PATH
 
19234
  else
 
19235
    # With GCC up to 2.95.x, collect2 would create an import file
 
19236
    # for dependence libraries.  The import file would start with
 
19237
    # the line `#! .'.  This would cause the generated library to
 
19238
    # depend on `.', always an invalid library.  This was fixed in
 
19239
    # development snapshots of GCC prior to 3.0.
 
19240
    case $host_os in
 
19241
      aix4 | aix4.[01] | aix4.[01].*)
 
19242
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
19243
           echo ' yes '
 
19244
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
19245
        :
 
19246
      else
 
19247
        can_build_shared=no
 
19248
      fi
 
19249
      ;;
 
19250
    esac
 
19251
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
19252
    # soname into executable. Probably we can add versioning support to
 
19253
    # collect2, so additional links can be useful in future.
 
19254
    if test "$aix_use_runtimelinking" = yes; then
 
19255
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
19256
      # instead of lib<name>.a to let people know that these are not
 
19257
      # typical AIX shared libraries.
 
19258
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19259
    else
 
19260
      # We preserve .a as extension for shared libraries through AIX4.2
 
19261
      # and later when we are not doing run time linking.
 
19262
      library_names_spec='${libname}${release}.a $libname.a'
 
19263
      soname_spec='${libname}${release}${shared_ext}$major'
 
19264
    fi
 
19265
    shlibpath_var=LIBPATH
 
19266
  fi
 
19267
  ;;
 
19268
 
 
19269
amigaos*)
 
19270
  library_names_spec='$libname.ixlibrary $libname.a'
 
19271
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
19272
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
 
19273
  ;;
 
19274
 
 
19275
beos*)
 
19276
  library_names_spec='${libname}${shared_ext}'
 
19277
  dynamic_linker="$host_os ld.so"
 
19278
  shlibpath_var=LIBRARY_PATH
 
19279
  ;;
 
19280
 
 
19281
bsdi4*)
 
19282
  version_type=linux
 
19283
  need_version=no
 
19284
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19285
  soname_spec='${libname}${release}${shared_ext}$major'
 
19286
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
19287
  shlibpath_var=LD_LIBRARY_PATH
 
19288
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
19289
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
19290
  # the default ld.so.conf also contains /usr/contrib/lib and
 
19291
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
19292
  # libtool to hard-code these into programs
 
19293
  ;;
 
19294
 
 
19295
cygwin* | mingw* | pw32*)
 
19296
  version_type=windows
 
19297
  shrext=".dll"
 
19298
  need_version=no
 
19299
  need_lib_prefix=no
 
19300
 
 
19301
  case $GCC,$host_os in
 
19302
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
19303
    library_names_spec='$libname.dll.a'
 
19304
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
19305
    postinstall_cmds='base_file=`basename \${file}`~
 
19306
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
19307
      dldir=$destdir/`dirname \$dlpath`~
 
19308
      test -d \$dldir || mkdir -p \$dldir~
 
19309
      $install_prog $dir/$dlname \$dldir/$dlname'
 
19310
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
19311
      dlpath=$dir/\$dldll~
 
19312
       $rm \$dlpath'
 
19313
    shlibpath_overrides_runpath=yes
 
19314
 
 
19315
    case $host_os in
 
19316
    cygwin*)
 
19317
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
19318
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19319
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
19320
      ;;
 
19321
    mingw*)
 
19322
      # MinGW DLLs use traditional 'lib' prefix
 
19323
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19324
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
19325
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
19326
        # It is most probably a Windows format PATH printed by
 
19327
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
19328
        # path with ; separators, and with drive letters. We can handle the
 
19329
        # drive letters (cygwin fileutils understands them), so leave them,
 
19330
        # especially as we might pass files found there to a mingw objdump,
 
19331
        # which wouldn't understand a cygwinified path. Ahh.
 
19332
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
19333
      else
 
19334
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
19335
      fi
 
19336
      ;;
 
19337
    pw32*)
 
19338
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
19339
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
19340
      ;;
 
19341
    esac
 
19342
    ;;
 
19343
 
 
19344
  *)
 
19345
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
19346
    ;;
 
19347
  esac
 
19348
  dynamic_linker='Win32 ld.exe'
 
19349
  # FIXME: first we should search . and the directory the executable is in
 
19350
  shlibpath_var=PATH
 
19351
  ;;
 
19352
 
 
19353
darwin* | rhapsody*)
 
19354
  dynamic_linker="$host_os dyld"
 
19355
  version_type=darwin
 
19356
  need_lib_prefix=no
 
19357
  need_version=no
 
19358
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
19359
  soname_spec='${libname}${release}${major}$shared_ext'
 
19360
  shlibpath_overrides_runpath=yes
 
19361
  shlibpath_var=DYLD_LIBRARY_PATH
 
19362
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
19363
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
19364
  if test "$GCC" = yes; then
 
19365
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
19366
  else
 
19367
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
19368
  fi
 
19369
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
19370
  ;;
 
19371
 
 
19372
dgux*)
 
19373
  version_type=linux
 
19374
  need_lib_prefix=no
 
19375
  need_version=no
 
19376
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
19377
  soname_spec='${libname}${release}${shared_ext}$major'
 
19378
  shlibpath_var=LD_LIBRARY_PATH
 
19379
  ;;
 
19380
 
 
19381
freebsd1*)
 
19382
  dynamic_linker=no
 
19383
  ;;
 
19384
 
 
19385
freebsd*-gnu*)
 
19386
  version_type=linux
 
19387
  need_lib_prefix=no
 
19388
  need_version=no
 
19389
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19390
  soname_spec='${libname}${release}${shared_ext}$major'
 
19391
  shlibpath_var=LD_LIBRARY_PATH
 
19392
  shlibpath_overrides_runpath=no
 
19393
  hardcode_into_libs=yes
 
19394
  dynamic_linker='GNU ld.so'
 
19395
  ;;
 
19396
 
 
19397
freebsd*)
 
19398
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
19399
  version_type=freebsd-$objformat
 
19400
  case $version_type in
 
19401
    freebsd-elf*)
 
19402
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19403
      need_version=no
 
19404
      need_lib_prefix=no
 
19405
      ;;
 
19406
    freebsd-*)
 
19407
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
19408
      need_version=yes
 
19409
      ;;
 
19410
  esac
 
19411
  shlibpath_var=LD_LIBRARY_PATH
 
19412
  case $host_os in
 
19413
  freebsd2*)
 
19414
    shlibpath_overrides_runpath=yes
 
19415
    ;;
 
19416
  freebsd3.01* | freebsdelf3.01*)
 
19417
    shlibpath_overrides_runpath=yes
 
19418
    hardcode_into_libs=yes
 
19419
    ;;
 
19420
  *) # from 3.2 on
 
19421
    shlibpath_overrides_runpath=no
 
19422
    hardcode_into_libs=yes
 
19423
    ;;
 
19424
  esac
 
19425
  ;;
 
19426
 
 
19427
gnu*)
 
19428
  version_type=linux
 
19429
  need_lib_prefix=no
 
19430
  need_version=no
 
19431
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
19432
  soname_spec='${libname}${release}${shared_ext}$major'
 
19433
  shlibpath_var=LD_LIBRARY_PATH
 
19434
  hardcode_into_libs=yes
 
19435
  ;;
 
19436
 
 
19437
hpux9* | hpux10* | hpux11*)
 
19438
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
19439
  # link against other versions.
 
19440
  version_type=sunos
 
19441
  need_lib_prefix=no
 
19442
  need_version=no
 
19443
  case "$host_cpu" in
 
19444
  ia64*)
 
19445
    shrext='.so'
 
19446
    hardcode_into_libs=yes
 
19447
    dynamic_linker="$host_os dld.so"
 
19448
    shlibpath_var=LD_LIBRARY_PATH
 
19449
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19450
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19451
    soname_spec='${libname}${release}${shared_ext}$major'
 
19452
    if test "X$HPUX_IA64_MODE" = X32; then
 
19453
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
19454
    else
 
19455
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
19456
    fi
 
19457
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19458
    ;;
 
19459
   hppa*64*)
 
19460
     shrext='.sl'
 
19461
     hardcode_into_libs=yes
 
19462
     dynamic_linker="$host_os dld.sl"
 
19463
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
19464
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19465
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19466
     soname_spec='${libname}${release}${shared_ext}$major'
 
19467
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
19468
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19469
     ;;
 
19470
   *)
 
19471
    shrext='.sl'
 
19472
    dynamic_linker="$host_os dld.sl"
 
19473
    shlibpath_var=SHLIB_PATH
 
19474
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
19475
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19476
    soname_spec='${libname}${release}${shared_ext}$major'
 
19477
    ;;
 
19478
  esac
 
19479
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
19480
  postinstall_cmds='chmod 555 $lib'
 
19481
  ;;
 
19482
 
 
19483
irix5* | irix6* | nonstopux*)
 
19484
  case $host_os in
 
19485
    nonstopux*) version_type=nonstopux ;;
 
19486
    *)
 
19487
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
19488
                version_type=linux
 
19489
        else
 
19490
                version_type=irix
 
19491
        fi ;;
 
19492
  esac
 
19493
  need_lib_prefix=no
 
19494
  need_version=no
 
19495
  soname_spec='${libname}${release}${shared_ext}$major'
 
19496
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19497
  case $host_os in
 
19498
  irix5* | nonstopux*)
 
19499
    libsuff= shlibsuff=
 
19500
    ;;
 
19501
  *)
 
19502
    case $LD in # libtool.m4 will add one of these switches to LD
 
19503
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
19504
      libsuff= shlibsuff= libmagic=32-bit;;
 
19505
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
19506
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
19507
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
19508
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
19509
    *) libsuff= shlibsuff= libmagic=never-match;;
 
19510
    esac
 
19511
    ;;
 
19512
  esac
 
19513
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
19514
  shlibpath_overrides_runpath=no
 
19515
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19516
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19517
  hardcode_into_libs=yes
 
19518
  ;;
 
19519
 
 
19520
# No shared lib support for Linux oldld, aout, or coff.
 
19521
linux*oldld* | linux*aout* | linux*coff*)
 
19522
  dynamic_linker=no
 
19523
  ;;
 
19524
 
 
19525
# This must be Linux ELF.
 
19526
linux*)
 
19527
  version_type=linux
 
19528
  need_lib_prefix=no
 
19529
  need_version=no
 
19530
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19531
  soname_spec='${libname}${release}${shared_ext}$major'
 
19532
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
19533
  libsuff=
 
19534
  if test "x$LINUX_64_MODE" = x64; then
 
19535
    # Some platforms are per default 64-bit, so there's no /lib64
 
19536
    if test -d /lib64; then
 
19537
      libsuff=64
 
19538
    fi
 
19539
  fi
 
19540
  shlibpath_var=LD_LIBRARY_PATH
 
19541
  shlibpath_overrides_runpath=no
 
19542
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
19543
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
19544
  # This implies no fast_install, which is unacceptable.
 
19545
  # Some rework will be needed to allow for fast_install
 
19546
  # before this can be enabled.
 
19547
  hardcode_into_libs=yes
 
19548
 
 
19549
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
19550
  # powerpc, because MkLinux only supported shared libraries with the
 
19551
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
19552
  # most powerpc-linux boxes support dynamic linking these days and
 
19553
  # people can always --disable-shared, the test was removed, and we
 
19554
  # assume the GNU/Linux dynamic linker is in use.
 
19555
  dynamic_linker='GNU/Linux ld.so'
 
19556
  ;;
 
19557
 
 
19558
netbsd*)
 
19559
  version_type=sunos
 
19560
  need_lib_prefix=no
 
19561
  need_version=no
 
19562
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19563
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19564
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19565
    dynamic_linker='NetBSD (a.out) ld.so'
 
19566
  else
 
19567
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
19568
    soname_spec='${libname}${release}${shared_ext}$major'
 
19569
    dynamic_linker='NetBSD ld.elf_so'
 
19570
  fi
 
19571
  shlibpath_var=LD_LIBRARY_PATH
 
19572
  shlibpath_overrides_runpath=yes
 
19573
  hardcode_into_libs=yes
 
19574
  ;;
 
19575
 
 
19576
newsos6)
 
19577
  version_type=linux
 
19578
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19579
  shlibpath_var=LD_LIBRARY_PATH
 
19580
  shlibpath_overrides_runpath=yes
 
19581
  ;;
 
19582
 
 
19583
nto-qnx*)
 
19584
  version_type=linux
 
19585
  need_lib_prefix=no
 
19586
  need_version=no
 
19587
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19588
  soname_spec='${libname}${release}${shared_ext}$major'
 
19589
  shlibpath_var=LD_LIBRARY_PATH
 
19590
  shlibpath_overrides_runpath=yes
 
19591
  ;;
 
19592
 
 
19593
openbsd*)
 
19594
  version_type=sunos
 
19595
  need_lib_prefix=no
 
19596
  need_version=no
 
19597
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19598
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19599
  shlibpath_var=LD_LIBRARY_PATH
 
19600
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19601
    case $host_os in
 
19602
      openbsd2.[89] | openbsd2.[89].*)
 
19603
        shlibpath_overrides_runpath=no
 
19604
        ;;
 
19605
      *)
 
19606
        shlibpath_overrides_runpath=yes
 
19607
        ;;
 
19608
      esac
 
19609
  else
 
19610
    shlibpath_overrides_runpath=yes
 
19611
  fi
 
19612
  ;;
 
19613
 
 
19614
os2*)
 
19615
  libname_spec='$name'
 
19616
  shrext=".dll"
 
19617
  need_lib_prefix=no
 
19618
  library_names_spec='$libname${shared_ext} $libname.a'
 
19619
  dynamic_linker='OS/2 ld.exe'
 
19620
  shlibpath_var=LIBPATH
 
19621
  ;;
 
19622
 
 
19623
osf3* | osf4* | osf5*)
 
19624
  version_type=osf
 
19625
  need_lib_prefix=no
 
19626
  need_version=no
 
19627
  soname_spec='${libname}${release}${shared_ext}$major'
 
19628
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19629
  shlibpath_var=LD_LIBRARY_PATH
 
19630
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19631
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19632
  ;;
 
19633
 
 
19634
sco3.2v5*)
 
19635
  version_type=osf
 
19636
  soname_spec='${libname}${release}${shared_ext}$major'
 
19637
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19638
  shlibpath_var=LD_LIBRARY_PATH
 
19639
  ;;
 
19640
 
 
19641
solaris*)
 
19642
  version_type=linux
 
19643
  need_lib_prefix=no
 
19644
  need_version=no
 
19645
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19646
  soname_spec='${libname}${release}${shared_ext}$major'
 
19647
  shlibpath_var=LD_LIBRARY_PATH
 
19648
  shlibpath_overrides_runpath=yes
 
19649
  hardcode_into_libs=yes
 
19650
  # ldd complains unless libraries are executable
 
19651
  postinstall_cmds='chmod +x $lib'
 
19652
  ;;
 
19653
 
 
19654
sunos4*)
 
19655
  version_type=sunos
 
19656
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19657
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
19658
  shlibpath_var=LD_LIBRARY_PATH
 
19659
  shlibpath_overrides_runpath=yes
 
19660
  if test "$with_gnu_ld" = yes; then
 
19661
    need_lib_prefix=no
 
19662
  fi
 
19663
  need_version=yes
 
19664
  ;;
 
19665
 
 
19666
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
19667
  version_type=linux
 
19668
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19669
  soname_spec='${libname}${release}${shared_ext}$major'
 
19670
  shlibpath_var=LD_LIBRARY_PATH
 
19671
  case $host_vendor in
 
19672
    sni)
 
19673
      shlibpath_overrides_runpath=no
 
19674
      need_lib_prefix=no
 
19675
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19676
      runpath_var=LD_RUN_PATH
 
19677
      ;;
 
19678
    siemens)
 
19679
      need_lib_prefix=no
 
19680
      ;;
 
19681
    motorola)
 
19682
      need_lib_prefix=no
 
19683
      need_version=no
 
19684
      shlibpath_overrides_runpath=no
 
19685
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19686
      ;;
 
19687
  esac
 
19688
  ;;
 
19689
 
 
19690
sysv4*MP*)
 
19691
  if test -d /usr/nec ;then
 
19692
    version_type=linux
 
19693
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19694
    soname_spec='$libname${shared_ext}.$major'
 
19695
    shlibpath_var=LD_LIBRARY_PATH
 
19696
  fi
 
19697
  ;;
 
19698
 
 
19699
uts4*)
 
19700
  version_type=linux
 
19701
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19702
  soname_spec='${libname}${release}${shared_ext}$major'
 
19703
  shlibpath_var=LD_LIBRARY_PATH
 
19704
  ;;
 
19705
 
 
19706
*)
 
19707
  dynamic_linker=no
 
19708
  ;;
 
19709
esac
 
19710
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19711
echo "${ECHO_T}$dynamic_linker" >&6
 
19712
test "$dynamic_linker" = no && can_build_shared=no
 
19713
 
 
19714
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
19715
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
19716
hardcode_action_GCJ=
 
19717
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
19718
   test -n "$runpath_var GCJ" || \
 
19719
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
19720
 
 
19721
  # We can hardcode non-existant directories.
 
19722
  if test "$hardcode_direct_GCJ" != no &&
 
19723
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
19724
     # have to relink, otherwise we might link with an installed library
 
19725
     # when we should be linking with a yet-to-be-installed one
 
19726
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
19727
     test "$hardcode_minus_L_GCJ" != no; then
 
19728
    # Linking always hardcodes the temporary library directory.
 
19729
    hardcode_action_GCJ=relink
 
19730
  else
 
19731
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
19732
    hardcode_action_GCJ=immediate
 
19733
  fi
 
19734
else
 
19735
  # We cannot hardcode anything, or else we can only hardcode existing
 
19736
  # directories.
 
19737
  hardcode_action_GCJ=unsupported
 
19738
fi
 
19739
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
19740
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
19741
 
 
19742
if test "$hardcode_action_GCJ" = relink; then
 
19743
  # Fast installation is not supported
 
19744
  enable_fast_install=no
 
19745
elif test "$shlibpath_overrides_runpath" = yes ||
 
19746
     test "$enable_shared" = no; then
 
19747
  # Fast installation is not necessary
 
19748
  enable_fast_install=needless
 
19749
fi
 
19750
 
 
19751
striplib=
 
19752
old_striplib=
 
19753
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
19754
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
19755
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
19756
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
19757
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
19758
  echo "$as_me:$LINENO: result: yes" >&5
 
19759
echo "${ECHO_T}yes" >&6
 
19760
else
 
19761
# FIXME - insert some real tests, host_os isn't really good enough
 
19762
  case $host_os in
 
19763
   darwin*)
 
19764
       if test -n "$STRIP" ; then
 
19765
         striplib="$STRIP -x"
 
19766
         echo "$as_me:$LINENO: result: yes" >&5
 
19767
echo "${ECHO_T}yes" >&6
 
19768
       else
 
19769
  echo "$as_me:$LINENO: result: no" >&5
 
19770
echo "${ECHO_T}no" >&6
 
19771
fi
 
19772
       ;;
 
19773
   *)
 
19774
  echo "$as_me:$LINENO: result: no" >&5
 
19775
echo "${ECHO_T}no" >&6
 
19776
    ;;
 
19777
  esac
 
19778
fi
 
19779
 
 
19780
if test "x$enable_dlopen" != xyes; then
 
19781
  enable_dlopen=unknown
 
19782
  enable_dlopen_self=unknown
 
19783
  enable_dlopen_self_static=unknown
 
19784
else
 
19785
  lt_cv_dlopen=no
 
19786
  lt_cv_dlopen_libs=
 
19787
 
 
19788
  case $host_os in
 
19789
  beos*)
 
19790
    lt_cv_dlopen="load_add_on"
 
19791
    lt_cv_dlopen_libs=
 
19792
    lt_cv_dlopen_self=yes
 
19793
    ;;
 
19794
 
 
19795
  mingw* | pw32*)
 
19796
    lt_cv_dlopen="LoadLibrary"
 
19797
    lt_cv_dlopen_libs=
 
19798
   ;;
 
19799
 
 
19800
  cygwin*)
 
19801
    lt_cv_dlopen="dlopen"
 
19802
    lt_cv_dlopen_libs=
 
19803
   ;;
 
19804
 
 
19805
  darwin*)
 
19806
  # if libdl is installed we need to link against it
 
19807
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
19808
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
19809
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
19810
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19811
else
 
19812
  ac_check_lib_save_LIBS=$LIBS
 
19813
LIBS="-ldl  $LIBS"
 
19814
cat >conftest.$ac_ext <<_ACEOF
 
19815
/* confdefs.h.  */
 
19816
_ACEOF
 
19817
cat confdefs.h >>conftest.$ac_ext
 
19818
cat >>conftest.$ac_ext <<_ACEOF
 
19819
/* end confdefs.h.  */
 
19820
 
 
19821
/* Override any gcc2 internal prototype to avoid an error.  */
 
19822
#ifdef __cplusplus
 
19823
extern "C"
 
19824
#endif
 
19825
/* We use char because int might match the return type of a gcc2
 
19826
   builtin and then its argument prototype would still apply.  */
 
19827
char dlopen ();
 
19828
int
 
19829
main ()
 
19830
{
 
19831
dlopen ();
 
19832
  ;
 
19833
  return 0;
 
19834
}
 
19835
_ACEOF
 
19836
rm -f conftest.$ac_objext conftest$ac_exeext
 
19837
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19838
  (eval $ac_link) 2>conftest.er1
 
19839
  ac_status=$?
 
19840
  grep -v '^ *+' conftest.er1 >conftest.err
 
19841
  rm -f conftest.er1
 
19842
  cat conftest.err >&5
 
19843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19844
  (exit $ac_status); } &&
 
19845
         { ac_try='test -z "$ac_c_werror_flag"
 
19846
                         || test ! -s conftest.err'
 
19847
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19848
  (eval $ac_try) 2>&5
 
19849
  ac_status=$?
 
19850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19851
  (exit $ac_status); }; } &&
 
19852
         { ac_try='test -s conftest$ac_exeext'
 
19853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19854
  (eval $ac_try) 2>&5
 
19855
  ac_status=$?
 
19856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19857
  (exit $ac_status); }; }; then
 
19858
  ac_cv_lib_dl_dlopen=yes
 
19859
else
 
19860
  echo "$as_me: failed program was:" >&5
 
19861
sed 's/^/| /' conftest.$ac_ext >&5
 
19862
 
 
19863
ac_cv_lib_dl_dlopen=no
 
19864
fi
 
19865
rm -f conftest.err conftest.$ac_objext \
 
19866
      conftest$ac_exeext conftest.$ac_ext
 
19867
LIBS=$ac_check_lib_save_LIBS
 
19868
fi
 
19869
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19870
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19871
if test $ac_cv_lib_dl_dlopen = yes; then
 
19872
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19873
else
 
19874
 
 
19875
    lt_cv_dlopen="dyld"
 
19876
    lt_cv_dlopen_libs=
 
19877
    lt_cv_dlopen_self=yes
 
19878
 
 
19879
fi
 
19880
 
 
19881
   ;;
 
19882
 
 
19883
  *)
 
19884
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
19885
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
19886
if test "${ac_cv_func_shl_load+set}" = set; then
 
19887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19888
else
 
19889
  cat >conftest.$ac_ext <<_ACEOF
 
19890
/* confdefs.h.  */
 
19891
_ACEOF
 
19892
cat confdefs.h >>conftest.$ac_ext
 
19893
cat >>conftest.$ac_ext <<_ACEOF
 
19894
/* end confdefs.h.  */
 
19895
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
19896
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19897
#define shl_load innocuous_shl_load
 
19898
 
 
19899
/* System header to define __stub macros and hopefully few prototypes,
 
19900
    which can conflict with char shl_load (); below.
 
19901
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19902
    <limits.h> exists even on freestanding compilers.  */
 
19903
 
 
19904
#ifdef __STDC__
 
19905
# include <limits.h>
 
19906
#else
 
19907
# include <assert.h>
 
19908
#endif
 
19909
 
 
19910
#undef shl_load
 
19911
 
 
19912
/* Override any gcc2 internal prototype to avoid an error.  */
 
19913
#ifdef __cplusplus
 
19914
extern "C"
 
19915
{
 
19916
#endif
 
19917
/* We use char because int might match the return type of a gcc2
 
19918
   builtin and then its argument prototype would still apply.  */
 
19919
char shl_load ();
 
19920
/* The GNU C library defines this for functions which it implements
 
19921
    to always fail with ENOSYS.  Some functions are actually named
 
19922
    something starting with __ and the normal name is an alias.  */
 
19923
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
19924
choke me
 
19925
#else
 
19926
char (*f) () = shl_load;
 
19927
#endif
 
19928
#ifdef __cplusplus
 
19929
}
 
19930
#endif
 
19931
 
 
19932
int
 
19933
main ()
 
19934
{
 
19935
return f != shl_load;
 
19936
  ;
 
19937
  return 0;
 
19938
}
 
19939
_ACEOF
 
19940
rm -f conftest.$ac_objext conftest$ac_exeext
 
19941
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19942
  (eval $ac_link) 2>conftest.er1
 
19943
  ac_status=$?
 
19944
  grep -v '^ *+' conftest.er1 >conftest.err
 
19945
  rm -f conftest.er1
 
19946
  cat conftest.err >&5
 
19947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19948
  (exit $ac_status); } &&
 
19949
         { ac_try='test -z "$ac_c_werror_flag"
 
19950
                         || test ! -s conftest.err'
 
19951
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19952
  (eval $ac_try) 2>&5
 
19953
  ac_status=$?
 
19954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19955
  (exit $ac_status); }; } &&
 
19956
         { ac_try='test -s conftest$ac_exeext'
 
19957
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19958
  (eval $ac_try) 2>&5
 
19959
  ac_status=$?
 
19960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19961
  (exit $ac_status); }; }; then
 
19962
  ac_cv_func_shl_load=yes
 
19963
else
 
19964
  echo "$as_me: failed program was:" >&5
 
19965
sed 's/^/| /' conftest.$ac_ext >&5
 
19966
 
 
19967
ac_cv_func_shl_load=no
 
19968
fi
 
19969
rm -f conftest.err conftest.$ac_objext \
 
19970
      conftest$ac_exeext conftest.$ac_ext
 
19971
fi
 
19972
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
19973
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
19974
if test $ac_cv_func_shl_load = yes; then
 
19975
  lt_cv_dlopen="shl_load"
 
19976
else
 
19977
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
19978
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
19979
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
19980
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19981
else
 
19982
  ac_check_lib_save_LIBS=$LIBS
 
19983
LIBS="-ldld  $LIBS"
 
19984
cat >conftest.$ac_ext <<_ACEOF
 
19985
/* confdefs.h.  */
 
19986
_ACEOF
 
19987
cat confdefs.h >>conftest.$ac_ext
 
19988
cat >>conftest.$ac_ext <<_ACEOF
 
19989
/* end confdefs.h.  */
 
19990
 
 
19991
/* Override any gcc2 internal prototype to avoid an error.  */
 
19992
#ifdef __cplusplus
 
19993
extern "C"
 
19994
#endif
 
19995
/* We use char because int might match the return type of a gcc2
 
19996
   builtin and then its argument prototype would still apply.  */
 
19997
char shl_load ();
 
19998
int
 
19999
main ()
 
20000
{
 
20001
shl_load ();
 
20002
  ;
 
20003
  return 0;
 
20004
}
 
20005
_ACEOF
 
20006
rm -f conftest.$ac_objext conftest$ac_exeext
 
20007
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20008
  (eval $ac_link) 2>conftest.er1
 
20009
  ac_status=$?
 
20010
  grep -v '^ *+' conftest.er1 >conftest.err
 
20011
  rm -f conftest.er1
 
20012
  cat conftest.err >&5
 
20013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20014
  (exit $ac_status); } &&
 
20015
         { ac_try='test -z "$ac_c_werror_flag"
 
20016
                         || test ! -s conftest.err'
 
20017
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20018
  (eval $ac_try) 2>&5
 
20019
  ac_status=$?
 
20020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20021
  (exit $ac_status); }; } &&
 
20022
         { ac_try='test -s conftest$ac_exeext'
 
20023
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20024
  (eval $ac_try) 2>&5
 
20025
  ac_status=$?
 
20026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20027
  (exit $ac_status); }; }; then
 
20028
  ac_cv_lib_dld_shl_load=yes
 
20029
else
 
20030
  echo "$as_me: failed program was:" >&5
 
20031
sed 's/^/| /' conftest.$ac_ext >&5
 
20032
 
 
20033
ac_cv_lib_dld_shl_load=no
 
20034
fi
 
20035
rm -f conftest.err conftest.$ac_objext \
 
20036
      conftest$ac_exeext conftest.$ac_ext
 
20037
LIBS=$ac_check_lib_save_LIBS
 
20038
fi
 
20039
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
20040
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
20041
if test $ac_cv_lib_dld_shl_load = yes; then
 
20042
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
20043
else
 
20044
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
20045
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
20046
if test "${ac_cv_func_dlopen+set}" = set; then
 
20047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20048
else
 
20049
  cat >conftest.$ac_ext <<_ACEOF
 
20050
/* confdefs.h.  */
 
20051
_ACEOF
 
20052
cat confdefs.h >>conftest.$ac_ext
 
20053
cat >>conftest.$ac_ext <<_ACEOF
 
20054
/* end confdefs.h.  */
 
20055
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
20056
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20057
#define dlopen innocuous_dlopen
 
20058
 
 
20059
/* System header to define __stub macros and hopefully few prototypes,
 
20060
    which can conflict with char dlopen (); below.
 
20061
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20062
    <limits.h> exists even on freestanding compilers.  */
 
20063
 
 
20064
#ifdef __STDC__
 
20065
# include <limits.h>
 
20066
#else
 
20067
# include <assert.h>
 
20068
#endif
 
20069
 
 
20070
#undef dlopen
 
20071
 
 
20072
/* Override any gcc2 internal prototype to avoid an error.  */
 
20073
#ifdef __cplusplus
 
20074
extern "C"
 
20075
{
 
20076
#endif
 
20077
/* We use char because int might match the return type of a gcc2
 
20078
   builtin and then its argument prototype would still apply.  */
 
20079
char dlopen ();
 
20080
/* The GNU C library defines this for functions which it implements
 
20081
    to always fail with ENOSYS.  Some functions are actually named
 
20082
    something starting with __ and the normal name is an alias.  */
 
20083
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
20084
choke me
 
20085
#else
 
20086
char (*f) () = dlopen;
 
20087
#endif
 
20088
#ifdef __cplusplus
 
20089
}
 
20090
#endif
 
20091
 
 
20092
int
 
20093
main ()
 
20094
{
 
20095
return f != dlopen;
 
20096
  ;
 
20097
  return 0;
 
20098
}
 
20099
_ACEOF
 
20100
rm -f conftest.$ac_objext conftest$ac_exeext
 
20101
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20102
  (eval $ac_link) 2>conftest.er1
 
20103
  ac_status=$?
 
20104
  grep -v '^ *+' conftest.er1 >conftest.err
 
20105
  rm -f conftest.er1
 
20106
  cat conftest.err >&5
 
20107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20108
  (exit $ac_status); } &&
 
20109
         { ac_try='test -z "$ac_c_werror_flag"
 
20110
                         || test ! -s conftest.err'
 
20111
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20112
  (eval $ac_try) 2>&5
 
20113
  ac_status=$?
 
20114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20115
  (exit $ac_status); }; } &&
 
20116
         { ac_try='test -s conftest$ac_exeext'
 
20117
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20118
  (eval $ac_try) 2>&5
 
20119
  ac_status=$?
 
20120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20121
  (exit $ac_status); }; }; then
 
20122
  ac_cv_func_dlopen=yes
 
20123
else
 
20124
  echo "$as_me: failed program was:" >&5
 
20125
sed 's/^/| /' conftest.$ac_ext >&5
 
20126
 
 
20127
ac_cv_func_dlopen=no
 
20128
fi
 
20129
rm -f conftest.err conftest.$ac_objext \
 
20130
      conftest$ac_exeext conftest.$ac_ext
 
20131
fi
 
20132
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
20133
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
20134
if test $ac_cv_func_dlopen = yes; then
 
20135
  lt_cv_dlopen="dlopen"
 
20136
else
 
20137
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
20138
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
20139
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
20140
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20141
else
 
20142
  ac_check_lib_save_LIBS=$LIBS
 
20143
LIBS="-ldl  $LIBS"
 
20144
cat >conftest.$ac_ext <<_ACEOF
 
20145
/* confdefs.h.  */
 
20146
_ACEOF
 
20147
cat confdefs.h >>conftest.$ac_ext
 
20148
cat >>conftest.$ac_ext <<_ACEOF
 
20149
/* end confdefs.h.  */
 
20150
 
 
20151
/* Override any gcc2 internal prototype to avoid an error.  */
 
20152
#ifdef __cplusplus
 
20153
extern "C"
 
20154
#endif
 
20155
/* We use char because int might match the return type of a gcc2
 
20156
   builtin and then its argument prototype would still apply.  */
 
20157
char dlopen ();
 
20158
int
 
20159
main ()
 
20160
{
 
20161
dlopen ();
 
20162
  ;
 
20163
  return 0;
 
20164
}
 
20165
_ACEOF
 
20166
rm -f conftest.$ac_objext conftest$ac_exeext
 
20167
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20168
  (eval $ac_link) 2>conftest.er1
 
20169
  ac_status=$?
 
20170
  grep -v '^ *+' conftest.er1 >conftest.err
 
20171
  rm -f conftest.er1
 
20172
  cat conftest.err >&5
 
20173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20174
  (exit $ac_status); } &&
 
20175
         { ac_try='test -z "$ac_c_werror_flag"
 
20176
                         || test ! -s conftest.err'
 
20177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20178
  (eval $ac_try) 2>&5
 
20179
  ac_status=$?
 
20180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20181
  (exit $ac_status); }; } &&
 
20182
         { ac_try='test -s conftest$ac_exeext'
 
20183
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20184
  (eval $ac_try) 2>&5
 
20185
  ac_status=$?
 
20186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20187
  (exit $ac_status); }; }; then
 
20188
  ac_cv_lib_dl_dlopen=yes
 
20189
else
 
20190
  echo "$as_me: failed program was:" >&5
 
20191
sed 's/^/| /' conftest.$ac_ext >&5
 
20192
 
 
20193
ac_cv_lib_dl_dlopen=no
 
20194
fi
 
20195
rm -f conftest.err conftest.$ac_objext \
 
20196
      conftest$ac_exeext conftest.$ac_ext
 
20197
LIBS=$ac_check_lib_save_LIBS
 
20198
fi
 
20199
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
20200
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
20201
if test $ac_cv_lib_dl_dlopen = yes; then
 
20202
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
20203
else
 
20204
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
20205
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
20206
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
20207
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20208
else
 
20209
  ac_check_lib_save_LIBS=$LIBS
 
20210
LIBS="-lsvld  $LIBS"
 
20211
cat >conftest.$ac_ext <<_ACEOF
 
20212
/* confdefs.h.  */
 
20213
_ACEOF
 
20214
cat confdefs.h >>conftest.$ac_ext
 
20215
cat >>conftest.$ac_ext <<_ACEOF
 
20216
/* end confdefs.h.  */
 
20217
 
 
20218
/* Override any gcc2 internal prototype to avoid an error.  */
 
20219
#ifdef __cplusplus
 
20220
extern "C"
 
20221
#endif
 
20222
/* We use char because int might match the return type of a gcc2
 
20223
   builtin and then its argument prototype would still apply.  */
 
20224
char dlopen ();
 
20225
int
 
20226
main ()
 
20227
{
 
20228
dlopen ();
 
20229
  ;
 
20230
  return 0;
 
20231
}
 
20232
_ACEOF
 
20233
rm -f conftest.$ac_objext conftest$ac_exeext
 
20234
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20235
  (eval $ac_link) 2>conftest.er1
 
20236
  ac_status=$?
 
20237
  grep -v '^ *+' conftest.er1 >conftest.err
 
20238
  rm -f conftest.er1
 
20239
  cat conftest.err >&5
 
20240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20241
  (exit $ac_status); } &&
 
20242
         { ac_try='test -z "$ac_c_werror_flag"
 
20243
                         || test ! -s conftest.err'
 
20244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20245
  (eval $ac_try) 2>&5
 
20246
  ac_status=$?
 
20247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20248
  (exit $ac_status); }; } &&
 
20249
         { ac_try='test -s conftest$ac_exeext'
 
20250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20251
  (eval $ac_try) 2>&5
 
20252
  ac_status=$?
 
20253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20254
  (exit $ac_status); }; }; then
 
20255
  ac_cv_lib_svld_dlopen=yes
 
20256
else
 
20257
  echo "$as_me: failed program was:" >&5
 
20258
sed 's/^/| /' conftest.$ac_ext >&5
 
20259
 
 
20260
ac_cv_lib_svld_dlopen=no
 
20261
fi
 
20262
rm -f conftest.err conftest.$ac_objext \
 
20263
      conftest$ac_exeext conftest.$ac_ext
 
20264
LIBS=$ac_check_lib_save_LIBS
 
20265
fi
 
20266
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
20267
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
20268
if test $ac_cv_lib_svld_dlopen = yes; then
 
20269
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
20270
else
 
20271
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
20272
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
20273
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
20274
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20275
else
 
20276
  ac_check_lib_save_LIBS=$LIBS
 
20277
LIBS="-ldld  $LIBS"
 
20278
cat >conftest.$ac_ext <<_ACEOF
 
20279
/* confdefs.h.  */
 
20280
_ACEOF
 
20281
cat confdefs.h >>conftest.$ac_ext
 
20282
cat >>conftest.$ac_ext <<_ACEOF
 
20283
/* end confdefs.h.  */
 
20284
 
 
20285
/* Override any gcc2 internal prototype to avoid an error.  */
 
20286
#ifdef __cplusplus
 
20287
extern "C"
 
20288
#endif
 
20289
/* We use char because int might match the return type of a gcc2
 
20290
   builtin and then its argument prototype would still apply.  */
 
20291
char dld_link ();
 
20292
int
 
20293
main ()
 
20294
{
 
20295
dld_link ();
 
20296
  ;
 
20297
  return 0;
 
20298
}
 
20299
_ACEOF
 
20300
rm -f conftest.$ac_objext conftest$ac_exeext
 
20301
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20302
  (eval $ac_link) 2>conftest.er1
 
20303
  ac_status=$?
 
20304
  grep -v '^ *+' conftest.er1 >conftest.err
 
20305
  rm -f conftest.er1
 
20306
  cat conftest.err >&5
 
20307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20308
  (exit $ac_status); } &&
 
20309
         { ac_try='test -z "$ac_c_werror_flag"
 
20310
                         || test ! -s conftest.err'
 
20311
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20312
  (eval $ac_try) 2>&5
 
20313
  ac_status=$?
 
20314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20315
  (exit $ac_status); }; } &&
 
20316
         { ac_try='test -s conftest$ac_exeext'
 
20317
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20318
  (eval $ac_try) 2>&5
 
20319
  ac_status=$?
 
20320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20321
  (exit $ac_status); }; }; then
 
20322
  ac_cv_lib_dld_dld_link=yes
 
20323
else
 
20324
  echo "$as_me: failed program was:" >&5
 
20325
sed 's/^/| /' conftest.$ac_ext >&5
 
20326
 
 
20327
ac_cv_lib_dld_dld_link=no
 
20328
fi
 
20329
rm -f conftest.err conftest.$ac_objext \
 
20330
      conftest$ac_exeext conftest.$ac_ext
 
20331
LIBS=$ac_check_lib_save_LIBS
 
20332
fi
 
20333
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
20334
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
20335
if test $ac_cv_lib_dld_dld_link = yes; then
 
20336
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
20337
fi
 
20338
 
 
20339
 
 
20340
fi
 
20341
 
 
20342
 
 
20343
fi
 
20344
 
 
20345
 
 
20346
fi
 
20347
 
 
20348
 
 
20349
fi
 
20350
 
 
20351
 
 
20352
fi
 
20353
 
 
20354
    ;;
 
20355
  esac
 
20356
 
 
20357
  if test "x$lt_cv_dlopen" != xno; then
 
20358
    enable_dlopen=yes
 
20359
  else
 
20360
    enable_dlopen=no
 
20361
  fi
 
20362
 
 
20363
  case $lt_cv_dlopen in
 
20364
  dlopen)
 
20365
    save_CPPFLAGS="$CPPFLAGS"
 
20366
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
20367
 
 
20368
    save_LDFLAGS="$LDFLAGS"
 
20369
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
20370
 
 
20371
    save_LIBS="$LIBS"
 
20372
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
20373
 
 
20374
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
20375
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
20376
if test "${lt_cv_dlopen_self+set}" = set; then
 
20377
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20378
else
 
20379
          if test "$cross_compiling" = yes; then :
 
20380
  lt_cv_dlopen_self=cross
 
20381
else
 
20382
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
20383
  lt_status=$lt_dlunknown
 
20384
  cat > conftest.$ac_ext <<EOF
 
20385
#line 20385 "configure"
 
20386
#include "confdefs.h"
 
20387
 
 
20388
#if HAVE_DLFCN_H
 
20389
#include <dlfcn.h>
 
20390
#endif
 
20391
 
 
20392
#include <stdio.h>
 
20393
 
 
20394
#ifdef RTLD_GLOBAL
 
20395
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
20396
#else
 
20397
#  ifdef DL_GLOBAL
 
20398
#    define LT_DLGLOBAL         DL_GLOBAL
 
20399
#  else
 
20400
#    define LT_DLGLOBAL         0
 
20401
#  endif
 
20402
#endif
 
20403
 
 
20404
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
20405
   find out it does not work in some platform. */
 
20406
#ifndef LT_DLLAZY_OR_NOW
 
20407
#  ifdef RTLD_LAZY
 
20408
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
20409
#  else
 
20410
#    ifdef DL_LAZY
 
20411
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
20412
#    else
 
20413
#      ifdef RTLD_NOW
 
20414
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
20415
#      else
 
20416
#        ifdef DL_NOW
 
20417
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
20418
#        else
 
20419
#          define LT_DLLAZY_OR_NOW      0
 
20420
#        endif
 
20421
#      endif
 
20422
#    endif
 
20423
#  endif
 
20424
#endif
 
20425
 
 
20426
#ifdef __cplusplus
 
20427
extern "C" void exit (int);
 
20428
#endif
 
20429
 
 
20430
void fnord() { int i=42;}
 
20431
int main ()
 
20432
{
 
20433
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
20434
  int status = $lt_dlunknown;
 
20435
 
 
20436
  if (self)
 
20437
    {
 
20438
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
20439
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
20440
      /* dlclose (self); */
 
20441
    }
 
20442
 
 
20443
    exit (status);
 
20444
}
 
20445
EOF
 
20446
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20447
  (eval $ac_link) 2>&5
 
20448
  ac_status=$?
 
20449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20450
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
20451
    (./conftest; exit; ) 2>/dev/null
 
20452
    lt_status=$?
 
20453
    case x$lt_status in
 
20454
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
20455
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
20456
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
20457
    esac
 
20458
  else :
 
20459
    # compilation failed
 
20460
    lt_cv_dlopen_self=no
 
20461
  fi
 
20462
fi
 
20463
rm -fr conftest*
 
20464
 
 
20465
 
 
20466
fi
 
20467
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
20468
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
20469
 
 
20470
    if test "x$lt_cv_dlopen_self" = xyes; then
 
20471
      LDFLAGS="$LDFLAGS $link_static_flag"
 
20472
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
20473
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
20474
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
20475
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20476
else
 
20477
          if test "$cross_compiling" = yes; then :
 
20478
  lt_cv_dlopen_self_static=cross
 
20479
else
 
20480
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
20481
  lt_status=$lt_dlunknown
 
20482
  cat > conftest.$ac_ext <<EOF
 
20483
#line 20483 "configure"
 
20484
#include "confdefs.h"
 
20485
 
 
20486
#if HAVE_DLFCN_H
 
20487
#include <dlfcn.h>
 
20488
#endif
 
20489
 
 
20490
#include <stdio.h>
 
20491
 
 
20492
#ifdef RTLD_GLOBAL
 
20493
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
20494
#else
 
20495
#  ifdef DL_GLOBAL
 
20496
#    define LT_DLGLOBAL         DL_GLOBAL
 
20497
#  else
 
20498
#    define LT_DLGLOBAL         0
 
20499
#  endif
 
20500
#endif
 
20501
 
 
20502
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
20503
   find out it does not work in some platform. */
 
20504
#ifndef LT_DLLAZY_OR_NOW
 
20505
#  ifdef RTLD_LAZY
 
20506
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
20507
#  else
 
20508
#    ifdef DL_LAZY
 
20509
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
20510
#    else
 
20511
#      ifdef RTLD_NOW
 
20512
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
20513
#      else
 
20514
#        ifdef DL_NOW
 
20515
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
20516
#        else
 
20517
#          define LT_DLLAZY_OR_NOW      0
 
20518
#        endif
 
20519
#      endif
 
20520
#    endif
 
20521
#  endif
 
20522
#endif
 
20523
 
 
20524
#ifdef __cplusplus
 
20525
extern "C" void exit (int);
 
20526
#endif
 
20527
 
 
20528
void fnord() { int i=42;}
 
20529
int main ()
 
20530
{
 
20531
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
20532
  int status = $lt_dlunknown;
 
20533
 
 
20534
  if (self)
 
20535
    {
 
20536
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
20537
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
20538
      /* dlclose (self); */
 
20539
    }
 
20540
 
 
20541
    exit (status);
 
20542
}
 
20543
EOF
 
20544
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20545
  (eval $ac_link) 2>&5
 
20546
  ac_status=$?
 
20547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20548
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
20549
    (./conftest; exit; ) 2>/dev/null
 
20550
    lt_status=$?
 
20551
    case x$lt_status in
 
20552
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
20553
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
20554
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
20555
    esac
 
20556
  else :
 
20557
    # compilation failed
 
20558
    lt_cv_dlopen_self_static=no
 
20559
  fi
 
20560
fi
 
20561
rm -fr conftest*
 
20562
 
 
20563
 
 
20564
fi
 
20565
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
20566
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
20567
    fi
 
20568
 
 
20569
    CPPFLAGS="$save_CPPFLAGS"
 
20570
    LDFLAGS="$save_LDFLAGS"
 
20571
    LIBS="$save_LIBS"
 
20572
    ;;
 
20573
  esac
 
20574
 
 
20575
  case $lt_cv_dlopen_self in
 
20576
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
20577
  *) enable_dlopen_self=unknown ;;
 
20578
  esac
 
20579
 
 
20580
  case $lt_cv_dlopen_self_static in
 
20581
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
20582
  *) enable_dlopen_self_static=unknown ;;
 
20583
  esac
 
20584
fi
 
20585
 
 
20586
 
 
20587
# The else clause should only fire when bootstrapping the
 
20588
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
20589
# with your package, and you will get complaints that there are
 
20590
# no rules to generate ltmain.sh.
 
20591
if test -f "$ltmain"; then
 
20592
  # See if we are running on zsh, and set the options which allow our commands through
 
20593
  # without removal of \ escapes.
 
20594
  if test -n "${ZSH_VERSION+set}" ; then
 
20595
    setopt NO_GLOB_SUBST
 
20596
  fi
 
20597
  # Now quote all the things that may contain metacharacters while being
 
20598
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
20599
  # variables and quote the copies for generation of the libtool script.
 
20600
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
20601
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
20602
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
20603
    deplibs_check_method reload_flag reload_cmds need_locks \
 
20604
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
20605
    lt_cv_sys_global_symbol_to_c_name_address \
 
20606
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
20607
    old_postinstall_cmds old_postuninstall_cmds \
 
20608
    compiler_GCJ \
 
20609
    CC_GCJ \
 
20610
    LD_GCJ \
 
20611
    lt_prog_compiler_wl_GCJ \
 
20612
    lt_prog_compiler_pic_GCJ \
 
20613
    lt_prog_compiler_static_GCJ \
 
20614
    lt_prog_compiler_no_builtin_flag_GCJ \
 
20615
    export_dynamic_flag_spec_GCJ \
 
20616
    thread_safe_flag_spec_GCJ \
 
20617
    whole_archive_flag_spec_GCJ \
 
20618
    enable_shared_with_static_runtimes_GCJ \
 
20619
    old_archive_cmds_GCJ \
 
20620
    old_archive_from_new_cmds_GCJ \
 
20621
    predep_objects_GCJ \
 
20622
    postdep_objects_GCJ \
 
20623
    predeps_GCJ \
 
20624
    postdeps_GCJ \
 
20625
    compiler_lib_search_path_GCJ \
 
20626
    archive_cmds_GCJ \
 
20627
    archive_expsym_cmds_GCJ \
 
20628
    postinstall_cmds_GCJ \
 
20629
    postuninstall_cmds_GCJ \
 
20630
    old_archive_from_expsyms_cmds_GCJ \
 
20631
    allow_undefined_flag_GCJ \
 
20632
    no_undefined_flag_GCJ \
 
20633
    export_symbols_cmds_GCJ \
 
20634
    hardcode_libdir_flag_spec_GCJ \
 
20635
    hardcode_libdir_flag_spec_ld_GCJ \
 
20636
    hardcode_libdir_separator_GCJ \
 
20637
    hardcode_automatic_GCJ \
 
20638
    module_cmds_GCJ \
 
20639
    module_expsym_cmds_GCJ \
 
20640
    lt_cv_prog_compiler_c_o_GCJ \
 
20641
    exclude_expsyms_GCJ \
 
20642
    include_expsyms_GCJ; do
 
20643
 
 
20644
    case $var in
 
20645
    old_archive_cmds_GCJ | \
 
20646
    old_archive_from_new_cmds_GCJ | \
 
20647
    archive_cmds_GCJ | \
 
20648
    archive_expsym_cmds_GCJ | \
 
20649
    module_cmds_GCJ | \
 
20650
    module_expsym_cmds_GCJ | \
 
20651
    old_archive_from_expsyms_cmds_GCJ | \
 
20652
    export_symbols_cmds_GCJ | \
 
20653
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
20654
    postinstall_cmds | postuninstall_cmds | \
 
20655
    old_postinstall_cmds | old_postuninstall_cmds | \
 
20656
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
20657
      # Double-quote double-evaled strings.
 
20658
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
20659
      ;;
 
20660
    *)
 
20661
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
20662
      ;;
 
20663
    esac
 
20664
  done
 
20665
 
 
20666
  case $lt_echo in
 
20667
  *'\$0 --fallback-echo"')
 
20668
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
20669
    ;;
 
20670
  esac
 
20671
 
 
20672
cfgfile="$ofile"
 
20673
 
 
20674
  cat <<__EOF__ >> "$cfgfile"
 
20675
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
20676
 
 
20677
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
20678
 
 
20679
# Shell to use when invoking shell scripts.
 
20680
SHELL=$lt_SHELL
 
20681
 
 
20682
# Whether or not to build shared libraries.
 
20683
build_libtool_libs=$enable_shared
 
20684
 
 
20685
# Whether or not to build static libraries.
 
20686
build_old_libs=$enable_static
 
20687
 
 
20688
# Whether or not to add -lc for building shared libraries.
 
20689
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
20690
 
 
20691
# Whether or not to disallow shared libs when runtime libs are static
 
20692
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
20693
 
 
20694
# Whether or not to optimize for fast installation.
 
20695
fast_install=$enable_fast_install
 
20696
 
 
20697
# The host system.
 
20698
host_alias=$host_alias
 
20699
host=$host
 
20700
 
 
20701
# An echo program that does not interpret backslashes.
 
20702
echo=$lt_echo
 
20703
 
 
20704
# The archiver.
 
20705
AR=$lt_AR
 
20706
AR_FLAGS=$lt_AR_FLAGS
 
20707
 
 
20708
# A C compiler.
 
20709
LTCC=$lt_LTCC
 
20710
 
 
20711
# A language-specific compiler.
 
20712
CC=$lt_compiler_GCJ
 
20713
 
 
20714
# Is the compiler the GNU C compiler?
 
20715
with_gcc=$GCC_GCJ
 
20716
 
 
20717
# An ERE matcher.
 
20718
EGREP=$lt_EGREP
 
20719
 
 
20720
# The linker used to build libraries.
 
20721
LD=$lt_LD_GCJ
 
20722
 
 
20723
# Whether we need hard or soft links.
 
20724
LN_S=$lt_LN_S
 
20725
 
 
20726
# A BSD-compatible nm program.
 
20727
NM=$lt_NM
 
20728
 
 
20729
# A symbol stripping program
 
20730
STRIP=$STRIP
 
20731
 
 
20732
# Used to examine libraries when file_magic_cmd begins "file"
 
20733
MAGIC_CMD=$MAGIC_CMD
 
20734
 
 
20735
# Used on cygwin: DLL creation program.
 
20736
DLLTOOL="$DLLTOOL"
 
20737
 
 
20738
# Used on cygwin: object dumper.
 
20739
OBJDUMP="$OBJDUMP"
 
20740
 
 
20741
# Used on cygwin: assembler.
 
20742
AS="$AS"
 
20743
 
 
20744
# The name of the directory that contains temporary libtool files.
 
20745
objdir=$objdir
 
20746
 
 
20747
# How to create reloadable object files.
 
20748
reload_flag=$lt_reload_flag
 
20749
reload_cmds=$lt_reload_cmds
 
20750
 
 
20751
# How to pass a linker flag through the compiler.
 
20752
wl=$lt_lt_prog_compiler_wl_GCJ
 
20753
 
 
20754
# Object file suffix (normally "o").
 
20755
objext="$ac_objext"
 
20756
 
 
20757
# Old archive suffix (normally "a").
 
20758
libext="$libext"
 
20759
 
 
20760
# Shared library suffix (normally ".so").
 
20761
shrext='$shrext'
 
20762
 
 
20763
# Executable file suffix (normally "").
 
20764
exeext="$exeext"
 
20765
 
 
20766
# Additional compiler flags for building library objects.
 
20767
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
20768
pic_mode=$pic_mode
 
20769
 
 
20770
# What is the maximum length of a command?
 
20771
max_cmd_len=$lt_cv_sys_max_cmd_len
 
20772
 
 
20773
# Does compiler simultaneously support -c and -o options?
 
20774
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
20775
 
 
20776
# Must we lock files when doing compilation ?
 
20777
need_locks=$lt_need_locks
 
20778
 
 
20779
# Do we need the lib prefix for modules?
 
20780
need_lib_prefix=$need_lib_prefix
 
20781
 
 
20782
# Do we need a version for libraries?
 
20783
need_version=$need_version
 
20784
 
 
20785
# Whether dlopen is supported.
 
20786
dlopen_support=$enable_dlopen
 
20787
 
 
20788
# Whether dlopen of programs is supported.
 
20789
dlopen_self=$enable_dlopen_self
 
20790
 
 
20791
# Whether dlopen of statically linked programs is supported.
 
20792
dlopen_self_static=$enable_dlopen_self_static
 
20793
 
 
20794
# Compiler flag to prevent dynamic linking.
 
20795
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
20796
 
 
20797
# Compiler flag to turn off builtin functions.
 
20798
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
20799
 
 
20800
# Compiler flag to allow reflexive dlopens.
 
20801
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
20802
 
 
20803
# Compiler flag to generate shared objects directly from archives.
 
20804
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
20805
 
 
20806
# Compiler flag to generate thread-safe objects.
 
20807
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
20808
 
 
20809
# Library versioning type.
 
20810
version_type=$version_type
 
20811
 
 
20812
# Format of library name prefix.
 
20813
libname_spec=$lt_libname_spec
 
20814
 
 
20815
# List of archive names.  First name is the real one, the rest are links.
 
20816
# The last name is the one that the linker finds with -lNAME.
 
20817
library_names_spec=$lt_library_names_spec
 
20818
 
 
20819
# The coded name of the library, if different from the real name.
 
20820
soname_spec=$lt_soname_spec
 
20821
 
 
20822
# Commands used to build and install an old-style archive.
 
20823
RANLIB=$lt_RANLIB
 
20824
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
20825
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20826
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20827
 
 
20828
# Create an old-style archive from a shared archive.
 
20829
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
20830
 
 
20831
# Create a temporary old-style archive to link instead of a shared archive.
 
20832
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
20833
 
 
20834
# Commands used to build and install a shared archive.
 
20835
archive_cmds=$lt_archive_cmds_GCJ
 
20836
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
20837
postinstall_cmds=$lt_postinstall_cmds
 
20838
postuninstall_cmds=$lt_postuninstall_cmds
 
20839
 
 
20840
# Commands used to build a loadable module (assumed same as above if empty)
 
20841
module_cmds=$lt_module_cmds_GCJ
 
20842
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
20843
 
 
20844
# Commands to strip libraries.
 
20845
old_striplib=$lt_old_striplib
 
20846
striplib=$lt_striplib
 
20847
 
 
20848
# Dependencies to place before the objects being linked to create a
 
20849
# shared library.
 
20850
predep_objects=$lt_predep_objects_GCJ
 
20851
 
 
20852
# Dependencies to place after the objects being linked to create a
 
20853
# shared library.
 
20854
postdep_objects=$lt_postdep_objects_GCJ
 
20855
 
 
20856
# Dependencies to place before the objects being linked to create a
 
20857
# shared library.
 
20858
predeps=$lt_predeps_GCJ
 
20859
 
 
20860
# Dependencies to place after the objects being linked to create a
 
20861
# shared library.
 
20862
postdeps=$lt_postdeps_GCJ
 
20863
 
 
20864
# The library search path used internally by the compiler when linking
 
20865
# a shared library.
 
20866
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
20867
 
 
20868
# Method to check whether dependent libraries are shared objects.
 
20869
deplibs_check_method=$lt_deplibs_check_method
 
20870
 
 
20871
# Command to use when deplibs_check_method == file_magic.
 
20872
file_magic_cmd=$lt_file_magic_cmd
 
20873
 
 
20874
# Flag that allows shared libraries with undefined symbols to be built.
 
20875
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
20876
 
 
20877
# Flag that forces no undefined symbols.
 
20878
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
20879
 
 
20880
# Commands used to finish a libtool library installation in a directory.
 
20881
finish_cmds=$lt_finish_cmds
 
20882
 
 
20883
# Same as above, but a single script fragment to be evaled but not shown.
 
20884
finish_eval=$lt_finish_eval
 
20885
 
 
20886
# Take the output of nm and produce a listing of raw symbols and C names.
 
20887
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20888
 
 
20889
# Transform the output of nm in a proper C declaration
 
20890
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20891
 
 
20892
# Transform the output of nm in a C name address pair
 
20893
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20894
 
 
20895
# This is the shared library runtime path variable.
 
20896
runpath_var=$runpath_var
 
20897
 
 
20898
# This is the shared library path variable.
 
20899
shlibpath_var=$shlibpath_var
 
20900
 
 
20901
# Is shlibpath searched before the hard-coded library search path?
 
20902
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20903
 
 
20904
# How to hardcode a shared library path into an executable.
 
20905
hardcode_action=$hardcode_action_GCJ
 
20906
 
 
20907
# Whether we should hardcode library paths into libraries.
 
20908
hardcode_into_libs=$hardcode_into_libs
 
20909
 
 
20910
# Flag to hardcode \$libdir into a binary during linking.
 
20911
# This must work even if \$libdir does not exist.
 
20912
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
20913
 
 
20914
# If ld is used when linking, flag to hardcode \$libdir into
 
20915
# a binary during linking. This must work even if \$libdir does
 
20916
# not exist.
 
20917
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
20918
 
 
20919
# Whether we need a single -rpath flag with a separated argument.
 
20920
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
20921
 
 
20922
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20923
# resulting binary.
 
20924
hardcode_direct=$hardcode_direct_GCJ
 
20925
 
 
20926
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20927
# resulting binary.
 
20928
hardcode_minus_L=$hardcode_minus_L_GCJ
 
20929
 
 
20930
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20931
# the resulting binary.
 
20932
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
20933
 
 
20934
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20935
# and all subsequent libraries and executables linked against it.
 
20936
hardcode_automatic=$hardcode_automatic_GCJ
 
20937
 
 
20938
# Variables whose values should be saved in libtool wrapper scripts and
 
20939
# restored at relink time.
 
20940
variables_saved_for_relink="$variables_saved_for_relink"
 
20941
 
 
20942
# Whether libtool must link a program against all its dependency libraries.
 
20943
link_all_deplibs=$link_all_deplibs_GCJ
 
20944
 
 
20945
# Compile-time system search path for libraries
 
20946
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20947
 
 
20948
# Run-time system search path for libraries
 
20949
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20950
 
 
20951
# Fix the shell variable \$srcfile for the compiler.
 
20952
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
20953
 
 
20954
# Set to yes if exported symbols are required.
 
20955
always_export_symbols=$always_export_symbols_GCJ
 
20956
 
 
20957
# The commands to list exported symbols.
 
20958
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
20959
 
 
20960
# The commands to extract the exported symbol list from a shared archive.
 
20961
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20962
 
 
20963
# Symbols that should not be listed in the preloaded symbols.
 
20964
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
20965
 
 
20966
# Symbols that must always be exported.
 
20967
include_expsyms=$lt_include_expsyms_GCJ
 
20968
 
 
20969
# ### END LIBTOOL TAG CONFIG: $tagname
 
20970
 
 
20971
__EOF__
 
20972
 
 
20973
 
 
20974
else
 
20975
  # If there is no Makefile yet, we rely on a make rule to execute
 
20976
  # `config.status --recheck' to rerun these tests and create the
 
20977
  # libtool script then.
 
20978
  test -f Makefile && make "$ltmain"
 
20979
fi
 
20980
 
 
20981
 
 
20982
ac_ext=c
 
20983
ac_cpp='$CPP $CPPFLAGS'
 
20984
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20985
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20986
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20987
 
 
20988
CC="$lt_save_CC"
 
20989
 
 
20990
        else
 
20991
          tagname=""
 
20992
        fi
 
20993
        ;;
 
20994
 
 
20995
      RC)
 
20996
 
 
20997
 
 
20998
 
 
20999
# Source file extension for RC test sources.
 
21000
ac_ext=rc
 
21001
 
 
21002
# Object file extension for compiled RC test sources.
 
21003
objext=o
 
21004
objext_RC=$objext
 
21005
 
 
21006
# Code to be used in simple compile tests
 
21007
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
21008
 
 
21009
# Code to be used in simple link tests
 
21010
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
21011
 
 
21012
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
21013
 
 
21014
# If no C compiler was specified, use CC.
 
21015
LTCC=${LTCC-"$CC"}
 
21016
 
 
21017
# Allow CC to be a program name with arguments.
 
21018
compiler=$CC
 
21019
 
 
21020
 
 
21021
# Allow CC to be a program name with arguments.
 
21022
lt_save_CC="$CC"
 
21023
CC=${RC-"windres"}
 
21024
compiler=$CC
 
21025
compiler_RC=$CC
 
21026
lt_cv_prog_compiler_c_o_RC=yes
 
21027
 
 
21028
# The else clause should only fire when bootstrapping the
 
21029
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
21030
# with your package, and you will get complaints that there are
 
21031
# no rules to generate ltmain.sh.
 
21032
if test -f "$ltmain"; then
 
21033
  # See if we are running on zsh, and set the options which allow our commands through
 
21034
  # without removal of \ escapes.
 
21035
  if test -n "${ZSH_VERSION+set}" ; then
 
21036
    setopt NO_GLOB_SUBST
 
21037
  fi
 
21038
  # Now quote all the things that may contain metacharacters while being
 
21039
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
21040
  # variables and quote the copies for generation of the libtool script.
 
21041
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
21042
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
21043
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
21044
    deplibs_check_method reload_flag reload_cmds need_locks \
 
21045
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
21046
    lt_cv_sys_global_symbol_to_c_name_address \
 
21047
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
21048
    old_postinstall_cmds old_postuninstall_cmds \
 
21049
    compiler_RC \
 
21050
    CC_RC \
 
21051
    LD_RC \
 
21052
    lt_prog_compiler_wl_RC \
 
21053
    lt_prog_compiler_pic_RC \
 
21054
    lt_prog_compiler_static_RC \
 
21055
    lt_prog_compiler_no_builtin_flag_RC \
 
21056
    export_dynamic_flag_spec_RC \
 
21057
    thread_safe_flag_spec_RC \
 
21058
    whole_archive_flag_spec_RC \
 
21059
    enable_shared_with_static_runtimes_RC \
 
21060
    old_archive_cmds_RC \
 
21061
    old_archive_from_new_cmds_RC \
 
21062
    predep_objects_RC \
 
21063
    postdep_objects_RC \
 
21064
    predeps_RC \
 
21065
    postdeps_RC \
 
21066
    compiler_lib_search_path_RC \
 
21067
    archive_cmds_RC \
 
21068
    archive_expsym_cmds_RC \
 
21069
    postinstall_cmds_RC \
 
21070
    postuninstall_cmds_RC \
 
21071
    old_archive_from_expsyms_cmds_RC \
 
21072
    allow_undefined_flag_RC \
 
21073
    no_undefined_flag_RC \
 
21074
    export_symbols_cmds_RC \
 
21075
    hardcode_libdir_flag_spec_RC \
 
21076
    hardcode_libdir_flag_spec_ld_RC \
 
21077
    hardcode_libdir_separator_RC \
 
21078
    hardcode_automatic_RC \
 
21079
    module_cmds_RC \
 
21080
    module_expsym_cmds_RC \
 
21081
    lt_cv_prog_compiler_c_o_RC \
 
21082
    exclude_expsyms_RC \
 
21083
    include_expsyms_RC; do
 
21084
 
 
21085
    case $var in
 
21086
    old_archive_cmds_RC | \
 
21087
    old_archive_from_new_cmds_RC | \
 
21088
    archive_cmds_RC | \
 
21089
    archive_expsym_cmds_RC | \
 
21090
    module_cmds_RC | \
 
21091
    module_expsym_cmds_RC | \
 
21092
    old_archive_from_expsyms_cmds_RC | \
 
21093
    export_symbols_cmds_RC | \
 
21094
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
21095
    postinstall_cmds | postuninstall_cmds | \
 
21096
    old_postinstall_cmds | old_postuninstall_cmds | \
 
21097
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
21098
      # Double-quote double-evaled strings.
 
21099
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
21100
      ;;
 
21101
    *)
 
21102
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
21103
      ;;
 
21104
    esac
 
21105
  done
 
21106
 
 
21107
  case $lt_echo in
 
21108
  *'\$0 --fallback-echo"')
 
21109
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
21110
    ;;
 
21111
  esac
 
21112
 
 
21113
cfgfile="$ofile"
 
21114
 
 
21115
  cat <<__EOF__ >> "$cfgfile"
 
21116
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
21117
 
 
21118
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
21119
 
 
21120
# Shell to use when invoking shell scripts.
 
21121
SHELL=$lt_SHELL
 
21122
 
 
21123
# Whether or not to build shared libraries.
 
21124
build_libtool_libs=$enable_shared
 
21125
 
 
21126
# Whether or not to build static libraries.
 
21127
build_old_libs=$enable_static
 
21128
 
 
21129
# Whether or not to add -lc for building shared libraries.
 
21130
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
21131
 
 
21132
# Whether or not to disallow shared libs when runtime libs are static
 
21133
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
21134
 
 
21135
# Whether or not to optimize for fast installation.
 
21136
fast_install=$enable_fast_install
 
21137
 
 
21138
# The host system.
 
21139
host_alias=$host_alias
 
21140
host=$host
 
21141
 
 
21142
# An echo program that does not interpret backslashes.
 
21143
echo=$lt_echo
 
21144
 
 
21145
# The archiver.
 
21146
AR=$lt_AR
 
21147
AR_FLAGS=$lt_AR_FLAGS
 
21148
 
 
21149
# A C compiler.
 
21150
LTCC=$lt_LTCC
 
21151
 
 
21152
# A language-specific compiler.
 
21153
CC=$lt_compiler_RC
 
21154
 
 
21155
# Is the compiler the GNU C compiler?
 
21156
with_gcc=$GCC_RC
 
21157
 
 
21158
# An ERE matcher.
 
21159
EGREP=$lt_EGREP
 
21160
 
 
21161
# The linker used to build libraries.
 
21162
LD=$lt_LD_RC
 
21163
 
 
21164
# Whether we need hard or soft links.
 
21165
LN_S=$lt_LN_S
 
21166
 
 
21167
# A BSD-compatible nm program.
 
21168
NM=$lt_NM
 
21169
 
 
21170
# A symbol stripping program
 
21171
STRIP=$STRIP
 
21172
 
 
21173
# Used to examine libraries when file_magic_cmd begins "file"
 
21174
MAGIC_CMD=$MAGIC_CMD
 
21175
 
 
21176
# Used on cygwin: DLL creation program.
 
21177
DLLTOOL="$DLLTOOL"
 
21178
 
 
21179
# Used on cygwin: object dumper.
 
21180
OBJDUMP="$OBJDUMP"
 
21181
 
 
21182
# Used on cygwin: assembler.
 
21183
AS="$AS"
 
21184
 
 
21185
# The name of the directory that contains temporary libtool files.
 
21186
objdir=$objdir
 
21187
 
 
21188
# How to create reloadable object files.
 
21189
reload_flag=$lt_reload_flag
 
21190
reload_cmds=$lt_reload_cmds
 
21191
 
 
21192
# How to pass a linker flag through the compiler.
 
21193
wl=$lt_lt_prog_compiler_wl_RC
 
21194
 
 
21195
# Object file suffix (normally "o").
 
21196
objext="$ac_objext"
 
21197
 
 
21198
# Old archive suffix (normally "a").
 
21199
libext="$libext"
 
21200
 
 
21201
# Shared library suffix (normally ".so").
 
21202
shrext='$shrext'
 
21203
 
 
21204
# Executable file suffix (normally "").
 
21205
exeext="$exeext"
 
21206
 
 
21207
# Additional compiler flags for building library objects.
 
21208
pic_flag=$lt_lt_prog_compiler_pic_RC
 
21209
pic_mode=$pic_mode
 
21210
 
 
21211
# What is the maximum length of a command?
 
21212
max_cmd_len=$lt_cv_sys_max_cmd_len
 
21213
 
 
21214
# Does compiler simultaneously support -c and -o options?
 
21215
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
21216
 
 
21217
# Must we lock files when doing compilation ?
 
21218
need_locks=$lt_need_locks
 
21219
 
 
21220
# Do we need the lib prefix for modules?
 
21221
need_lib_prefix=$need_lib_prefix
 
21222
 
 
21223
# Do we need a version for libraries?
 
21224
need_version=$need_version
 
21225
 
 
21226
# Whether dlopen is supported.
 
21227
dlopen_support=$enable_dlopen
 
21228
 
 
21229
# Whether dlopen of programs is supported.
 
21230
dlopen_self=$enable_dlopen_self
 
21231
 
 
21232
# Whether dlopen of statically linked programs is supported.
 
21233
dlopen_self_static=$enable_dlopen_self_static
 
21234
 
 
21235
# Compiler flag to prevent dynamic linking.
 
21236
link_static_flag=$lt_lt_prog_compiler_static_RC
 
21237
 
 
21238
# Compiler flag to turn off builtin functions.
 
21239
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
21240
 
 
21241
# Compiler flag to allow reflexive dlopens.
 
21242
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
21243
 
 
21244
# Compiler flag to generate shared objects directly from archives.
 
21245
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
21246
 
 
21247
# Compiler flag to generate thread-safe objects.
 
21248
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
21249
 
 
21250
# Library versioning type.
 
21251
version_type=$version_type
 
21252
 
 
21253
# Format of library name prefix.
 
21254
libname_spec=$lt_libname_spec
 
21255
 
 
21256
# List of archive names.  First name is the real one, the rest are links.
 
21257
# The last name is the one that the linker finds with -lNAME.
 
21258
library_names_spec=$lt_library_names_spec
 
21259
 
 
21260
# The coded name of the library, if different from the real name.
 
21261
soname_spec=$lt_soname_spec
 
21262
 
 
21263
# Commands used to build and install an old-style archive.
 
21264
RANLIB=$lt_RANLIB
 
21265
old_archive_cmds=$lt_old_archive_cmds_RC
 
21266
old_postinstall_cmds=$lt_old_postinstall_cmds
 
21267
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
21268
 
 
21269
# Create an old-style archive from a shared archive.
 
21270
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
21271
 
 
21272
# Create a temporary old-style archive to link instead of a shared archive.
 
21273
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
21274
 
 
21275
# Commands used to build and install a shared archive.
 
21276
archive_cmds=$lt_archive_cmds_RC
 
21277
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
21278
postinstall_cmds=$lt_postinstall_cmds
 
21279
postuninstall_cmds=$lt_postuninstall_cmds
 
21280
 
 
21281
# Commands used to build a loadable module (assumed same as above if empty)
 
21282
module_cmds=$lt_module_cmds_RC
 
21283
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
21284
 
 
21285
# Commands to strip libraries.
 
21286
old_striplib=$lt_old_striplib
 
21287
striplib=$lt_striplib
 
21288
 
 
21289
# Dependencies to place before the objects being linked to create a
 
21290
# shared library.
 
21291
predep_objects=$lt_predep_objects_RC
 
21292
 
 
21293
# Dependencies to place after the objects being linked to create a
 
21294
# shared library.
 
21295
postdep_objects=$lt_postdep_objects_RC
 
21296
 
 
21297
# Dependencies to place before the objects being linked to create a
 
21298
# shared library.
 
21299
predeps=$lt_predeps_RC
 
21300
 
 
21301
# Dependencies to place after the objects being linked to create a
 
21302
# shared library.
 
21303
postdeps=$lt_postdeps_RC
 
21304
 
 
21305
# The library search path used internally by the compiler when linking
 
21306
# a shared library.
 
21307
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
21308
 
 
21309
# Method to check whether dependent libraries are shared objects.
 
21310
deplibs_check_method=$lt_deplibs_check_method
 
21311
 
 
21312
# Command to use when deplibs_check_method == file_magic.
 
21313
file_magic_cmd=$lt_file_magic_cmd
 
21314
 
 
21315
# Flag that allows shared libraries with undefined symbols to be built.
 
21316
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
21317
 
 
21318
# Flag that forces no undefined symbols.
 
21319
no_undefined_flag=$lt_no_undefined_flag_RC
 
21320
 
 
21321
# Commands used to finish a libtool library installation in a directory.
 
21322
finish_cmds=$lt_finish_cmds
 
21323
 
 
21324
# Same as above, but a single script fragment to be evaled but not shown.
 
21325
finish_eval=$lt_finish_eval
 
21326
 
 
21327
# Take the output of nm and produce a listing of raw symbols and C names.
 
21328
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
21329
 
 
21330
# Transform the output of nm in a proper C declaration
 
21331
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
21332
 
 
21333
# Transform the output of nm in a C name address pair
 
21334
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
21335
 
 
21336
# This is the shared library runtime path variable.
 
21337
runpath_var=$runpath_var
 
21338
 
 
21339
# This is the shared library path variable.
 
21340
shlibpath_var=$shlibpath_var
 
21341
 
 
21342
# Is shlibpath searched before the hard-coded library search path?
 
21343
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
21344
 
 
21345
# How to hardcode a shared library path into an executable.
 
21346
hardcode_action=$hardcode_action_RC
 
21347
 
 
21348
# Whether we should hardcode library paths into libraries.
 
21349
hardcode_into_libs=$hardcode_into_libs
 
21350
 
 
21351
# Flag to hardcode \$libdir into a binary during linking.
 
21352
# This must work even if \$libdir does not exist.
 
21353
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
21354
 
 
21355
# If ld is used when linking, flag to hardcode \$libdir into
 
21356
# a binary during linking. This must work even if \$libdir does
 
21357
# not exist.
 
21358
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
21359
 
 
21360
# Whether we need a single -rpath flag with a separated argument.
 
21361
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
21362
 
 
21363
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
21364
# resulting binary.
 
21365
hardcode_direct=$hardcode_direct_RC
 
21366
 
 
21367
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
21368
# resulting binary.
 
21369
hardcode_minus_L=$hardcode_minus_L_RC
 
21370
 
 
21371
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
21372
# the resulting binary.
 
21373
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
21374
 
 
21375
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
21376
# and all subsequent libraries and executables linked against it.
 
21377
hardcode_automatic=$hardcode_automatic_RC
 
21378
 
 
21379
# Variables whose values should be saved in libtool wrapper scripts and
 
21380
# restored at relink time.
 
21381
variables_saved_for_relink="$variables_saved_for_relink"
 
21382
 
 
21383
# Whether libtool must link a program against all its dependency libraries.
 
21384
link_all_deplibs=$link_all_deplibs_RC
 
21385
 
 
21386
# Compile-time system search path for libraries
 
21387
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
21388
 
 
21389
# Run-time system search path for libraries
 
21390
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
21391
 
 
21392
# Fix the shell variable \$srcfile for the compiler.
 
21393
fix_srcfile_path="$fix_srcfile_path_RC"
 
21394
 
 
21395
# Set to yes if exported symbols are required.
 
21396
always_export_symbols=$always_export_symbols_RC
 
21397
 
 
21398
# The commands to list exported symbols.
 
21399
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
21400
 
 
21401
# The commands to extract the exported symbol list from a shared archive.
 
21402
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
21403
 
 
21404
# Symbols that should not be listed in the preloaded symbols.
 
21405
exclude_expsyms=$lt_exclude_expsyms_RC
 
21406
 
 
21407
# Symbols that must always be exported.
 
21408
include_expsyms=$lt_include_expsyms_RC
 
21409
 
 
21410
# ### END LIBTOOL TAG CONFIG: $tagname
 
21411
 
 
21412
__EOF__
 
21413
 
 
21414
 
 
21415
else
 
21416
  # If there is no Makefile yet, we rely on a make rule to execute
 
21417
  # `config.status --recheck' to rerun these tests and create the
 
21418
  # libtool script then.
 
21419
  test -f Makefile && make "$ltmain"
 
21420
fi
 
21421
 
 
21422
 
 
21423
ac_ext=c
 
21424
ac_cpp='$CPP $CPPFLAGS'
 
21425
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21426
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21427
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21428
 
 
21429
CC="$lt_save_CC"
 
21430
 
 
21431
        ;;
 
21432
 
 
21433
      *)
 
21434
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
21435
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
21436
   { (exit 1); exit 1; }; }
 
21437
        ;;
 
21438
      esac
 
21439
 
 
21440
      # Append the new tag name to the list of available tags.
 
21441
      if test -n "$tagname" ; then
 
21442
      available_tags="$available_tags $tagname"
 
21443
    fi
 
21444
    fi
 
21445
  done
 
21446
  IFS="$lt_save_ifs"
 
21447
 
 
21448
  # Now substitute the updated list of available tags.
 
21449
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
21450
    mv "${ofile}T" "$ofile"
 
21451
    chmod +x "$ofile"
 
21452
  else
 
21453
    rm -f "${ofile}T"
 
21454
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
21455
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
21456
   { (exit 1); exit 1; }; }
 
21457
  fi
 
21458
fi
 
21459
 
 
21460
 
 
21461
 
 
21462
# This can be used to rebuild libtool when needed
 
21463
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
21464
 
 
21465
# Always use our own libtool.
 
21466
LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
 
21467
 
 
21468
# Prevent multiple expansion
 
21469
 
 
21470
 
 
21471
 
 
21472
 
 
21473
 
 
21474
 
 
21475
 
 
21476
 
 
21477
 
 
21478
 
 
21479
 
 
21480
 
 
21481
 
 
21482
 
 
21483
 
 
21484
 
 
21485
 
 
21486
 
 
21487
 
 
21488
 
 
21489
 
 
21490
 
 
21491
 
 
21492
 
 
21493
 
 
21494
 
 
21495
 
 
21496
 
 
21497
 
 
21498
 
 
21499
 
 
21500
 
 
21501
 
 
21502
 
 
21503
LIBTOOL_SHELL="/bin/sh ./libtool"
 
21504
#  LIBTOOL="$LIBTOOL --silent"
 
21505
KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
 
21506
 
 
21507
 
 
21508
# we patch configure quite some so we better keep that consistent for incremental runs
 
21509
AUTOCONF='$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure'
 
21510
 
 
21511
 
 
21512
 
 
21513
 
 
21514
 
 
21515
    # Extract the first word of "msgfmt", so it can be a program name with args.
 
21516
set dummy msgfmt; ac_word=$2
 
21517
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21518
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21519
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
21520
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21521
else
 
21522
  case "$MSGFMT" in
 
21523
  /*)
 
21524
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
21525
  ;;
 
21526
  *)
 
21527
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
21528
  for ac_dir in $PATH; do
 
21529
    test -z "$ac_dir" && ac_dir=.
 
21530
    if test -f $ac_dir/$ac_word; then
 
21531
      if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
 
21532
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
21533
        break
 
21534
      fi
 
21535
    fi
 
21536
  done
 
21537
  IFS="$ac_save_ifs"
 
21538
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
 
21539
  ;;
 
21540
esac
 
21541
fi
 
21542
MSGFMT="$ac_cv_path_MSGFMT"
 
21543
if test -n "$MSGFMT"; then
 
21544
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
21545
echo "${ECHO_T}$MSGFMT" >&6
 
21546
else
 
21547
  echo "$as_me:$LINENO: result: no" >&5
 
21548
echo "${ECHO_T}no" >&6
 
21549
fi
 
21550
 
 
21551
    # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
21552
set dummy gmsgfmt; ac_word=$2
 
21553
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21554
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21555
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
21556
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21557
else
 
21558
  case $GMSGFMT in
 
21559
  [\\/]* | ?:[\\/]*)
 
21560
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
21561
  ;;
 
21562
  *)
 
21563
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21564
for as_dir in $PATH
 
21565
do
 
21566
  IFS=$as_save_IFS
 
21567
  test -z "$as_dir" && as_dir=.
 
21568
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21569
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21570
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
21571
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21572
    break 2
 
21573
  fi
 
21574
done
 
21575
done
 
21576
 
 
21577
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
21578
  ;;
 
21579
esac
 
21580
fi
 
21581
GMSGFMT=$ac_cv_path_GMSGFMT
 
21582
 
 
21583
if test -n "$GMSGFMT"; then
 
21584
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
21585
echo "${ECHO_T}$GMSGFMT" >&6
 
21586
else
 
21587
  echo "$as_me:$LINENO: result: no" >&5
 
21588
echo "${ECHO_T}no" >&6
 
21589
fi
 
21590
 
 
21591
 
 
21592
     if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
 
21593
        echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
 
21594
echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
 
21595
        GMSGFMT=":"
 
21596
      fi
 
21597
      MSGFMT=$GMSGFMT
 
21598
 
 
21599
 
 
21600
 
 
21601
      # Extract the first word of "xgettext", so it can be a program name with args.
 
21602
set dummy xgettext; ac_word=$2
 
21603
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21604
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21605
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
21606
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21607
else
 
21608
  case "$XGETTEXT" in
 
21609
  /*)
 
21610
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
21611
  ;;
 
21612
  *)
 
21613
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
21614
  for ac_dir in $PATH; do
 
21615
    test -z "$ac_dir" && ac_dir=.
 
21616
    if test -f $ac_dir/$ac_word; then
 
21617
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
21618
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
21619
        break
 
21620
      fi
 
21621
    fi
 
21622
  done
 
21623
  IFS="$ac_save_ifs"
 
21624
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
21625
  ;;
 
21626
esac
 
21627
fi
 
21628
XGETTEXT="$ac_cv_path_XGETTEXT"
 
21629
if test -n "$XGETTEXT"; then
 
21630
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
21631
echo "${ECHO_T}$XGETTEXT" >&6
 
21632
else
 
21633
  echo "$as_me:$LINENO: result: no" >&5
 
21634
echo "${ECHO_T}no" >&6
 
21635
fi
 
21636
 
 
21637
 
 
21638
            if test "$XGETTEXT" != ":"; then
 
21639
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
21640
          : ;
 
21641
        else
 
21642
          echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
 
21643
echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
 
21644
          XGETTEXT=":"
 
21645
        fi
 
21646
      fi
 
21647
 
 
21648
 
 
21649
 
 
21650
 
 
21651
 
 
21652
if test -z "3.0.0"; then
 
21653
  # Current default Qt version: 3.3
 
21654
  kde_qtver=3
 
21655
  kde_qtsubver=3
 
21656
else
 
21657
  kde_qtsubver=`echo "3.0.0" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
 
21658
  # following is the check if subversion isnt found in passed argument
 
21659
  if test "$kde_qtsubver" = "3.0.0"; then
 
21660
    kde_qtsubver=1
 
21661
  fi
 
21662
  kde_qtver=`echo "3.0.0" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
 
21663
  if test "$kde_qtver" = "1"; then
 
21664
    kde_qtsubver=42
 
21665
  fi
 
21666
fi
 
21667
 
 
21668
if test -z ""; then
 
21669
  if test "$kde_qtver" = "2"; then
 
21670
    if test $kde_qtsubver -gt 0; then
 
21671
      kde_qt_minversion=">= Qt 2.2.2"
 
21672
    else
 
21673
      kde_qt_minversion=">= Qt 2.0.2"
 
21674
    fi
 
21675
  fi
 
21676
  if test "$kde_qtver" = "3"; then
 
21677
    if test $kde_qtsubver -gt 0; then
 
21678
         if test $kde_qtsubver -gt 1; then
 
21679
            if test $kde_qtsubver -gt 2; then
 
21680
                kde_qt_minversion=">= Qt 3.3"
 
21681
            else
 
21682
                kde_qt_minversion=">= Qt 3.2"
 
21683
            fi
 
21684
         else
 
21685
            kde_qt_minversion=">= Qt 3.1 (20021021)"
 
21686
         fi
 
21687
    else
 
21688
      kde_qt_minversion=">= Qt 3.0"
 
21689
    fi
 
21690
  fi
 
21691
  if test "$kde_qtver" = "1"; then
 
21692
    kde_qt_minversion=">= 1.42 and < 2.0"
 
21693
  fi
 
21694
else
 
21695
   kde_qt_minversion=""
 
21696
fi
 
21697
 
 
21698
if test -z ""; then
 
21699
   if test $kde_qtver = 3; then
 
21700
     if test $kde_qtsubver -gt 0; then
 
21701
       kde_qt_verstring="QT_VERSION >= 0x03@VER@00"
 
21702
       qtsubver=`echo "00$kde_qtsubver" | sed -e 's,.*\(..\)$,\1,'`
 
21703
       kde_qt_verstring=`echo $kde_qt_verstring | sed -e "s,@VER@,$qtsubver,"`
 
21704
     else
 
21705
       kde_qt_verstring="QT_VERSION >= 300"
 
21706
     fi
 
21707
   fi
 
21708
   if test $kde_qtver = 2; then
 
21709
     if test $kde_qtsubver -gt 0; then
 
21710
       kde_qt_verstring="QT_VERSION >= 222"
 
21711
     else
 
21712
       kde_qt_verstring="QT_VERSION >= 200"
 
21713
     fi
 
21714
   fi
 
21715
   if test $kde_qtver = 1; then
 
21716
    kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
 
21717
   fi
 
21718
else
 
21719
   kde_qt_verstring=""
 
21720
fi
 
21721
 
 
21722
if test $kde_qtver = 3; then
 
21723
  kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3"
 
21724
fi
 
21725
if test $kde_qtver = 2; then
 
21726
   kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
 
21727
fi
 
21728
if test $kde_qtver = 1; then
 
21729
   kde_qt_dirs="$QTDIR /usr/lib/qt"
 
21730
fi
 
21731
 
 
21732
 
 
21733
 
 
21734
 
 
21735
     ac_ext=cc
 
21736
ac_cpp='$CXXCPP $CPPFLAGS'
 
21737
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21738
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21739
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
21740
 
 
21741
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
21742
 
 
21743
 
 
21744
    ac_save_CXXFLAGS="$CXXFLAGS"
 
21745
    CXXFLAGS="`echo $CXXFLAGS | sed s/-fno-exceptions//`"
 
21746
 
 
21747
    echo "$as_me:$LINENO: checking if C++ programs can be compiled" >&5
 
21748
echo $ECHO_N "checking if C++ programs can be compiled... $ECHO_C" >&6
 
21749
    if test "${kde_cv_stl_works+set}" = set; then
 
21750
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21751
else
 
21752
 
 
21753
      cat >conftest.$ac_ext <<_ACEOF
 
21754
/* confdefs.h.  */
 
21755
_ACEOF
 
21756
cat confdefs.h >>conftest.$ac_ext
 
21757
cat >>conftest.$ac_ext <<_ACEOF
 
21758
/* end confdefs.h.  */
 
21759
 
 
21760
#include <string>
 
21761
using namespace std;
 
21762
 
 
21763
int
 
21764
main ()
 
21765
{
 
21766
 
 
21767
  string astring="Hallo Welt.";
 
21768
  astring.erase(0, 6); // now astring is "Welt"
 
21769
  return 0;
 
21770
 
 
21771
  ;
 
21772
  return 0;
 
21773
}
 
21774
_ACEOF
 
21775
rm -f conftest.$ac_objext
 
21776
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21777
  (eval $ac_compile) 2>conftest.er1
 
21778
  ac_status=$?
 
21779
  grep -v '^ *+' conftest.er1 >conftest.err
 
21780
  rm -f conftest.er1
 
21781
  cat conftest.err >&5
 
21782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21783
  (exit $ac_status); } &&
 
21784
         { ac_try='test -z "$ac_cxx_werror_flag"
 
21785
                         || test ! -s conftest.err'
 
21786
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21787
  (eval $ac_try) 2>&5
 
21788
  ac_status=$?
 
21789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21790
  (exit $ac_status); }; } &&
 
21791
         { ac_try='test -s conftest.$ac_objext'
 
21792
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21793
  (eval $ac_try) 2>&5
 
21794
  ac_status=$?
 
21795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21796
  (exit $ac_status); }; }; then
 
21797
  kde_cv_stl_works=yes
 
21798
else
 
21799
  echo "$as_me: failed program was:" >&5
 
21800
sed 's/^/| /' conftest.$ac_ext >&5
 
21801
 
 
21802
kde_cv_stl_works=no
 
21803
fi
 
21804
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21805
 
 
21806
fi
 
21807
 
 
21808
 
 
21809
   echo "$as_me:$LINENO: result: $kde_cv_stl_works" >&5
 
21810
echo "${ECHO_T}$kde_cv_stl_works" >&6
 
21811
 
 
21812
   if test "$kde_cv_stl_works" = "yes"; then
 
21813
     # back compatible
 
21814
 
 
21815
cat >>confdefs.h <<_ACEOF
 
21816
#define HAVE_SGI_STL 1
 
21817
_ACEOF
 
21818
 
 
21819
   else
 
21820
         { { echo "$as_me:$LINENO: error: Your Installation isn't able to compile simple C++ programs.
 
21821
Check config.log for details - if you're using a Linux distribution you might miss
 
21822
a package named similar to libstdc++-dev." >&5
 
21823
echo "$as_me: error: Your Installation isn't able to compile simple C++ programs.
 
21824
Check config.log for details - if you're using a Linux distribution you might miss
 
21825
a package named similar to libstdc++-dev." >&2;}
 
21826
   { (exit 1); exit 1; }; }
 
21827
   fi
 
21828
 
 
21829
   CXXFLAGS="$ac_save_CXXFLAGS"
 
21830
   ac_ext=c
 
21831
ac_cpp='$CPP $CPPFLAGS'
 
21832
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21833
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21834
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21835
 
 
21836
 
 
21837
 
 
21838
 
 
21839
echo "$as_me:$LINENO: checking for strlcat" >&5
 
21840
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
 
21841
if test "${kde_cv_func_strlcat+set}" = set; then
 
21842
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21843
else
 
21844
 
 
21845
 
 
21846
 
 
21847
 ac_ext=cc
 
21848
ac_cpp='$CXXCPP $CPPFLAGS'
 
21849
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21850
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21851
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
21852
 
 
21853
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
21854
 
 
21855
 
 
21856
save_CXXFLAGS="$CXXFLAGS"
 
21857
kde_safe_LIBS="$LIBS"
 
21858
LIBS="$LIBS $X_EXTRA_LIBS"
 
21859
if test "$GXX" = "yes"; then
 
21860
CXXFLAGS="$CXXFLAGS -pedantic-errors"
 
21861
fi
 
21862
cat >conftest.$ac_ext <<_ACEOF
 
21863
/* confdefs.h.  */
 
21864
_ACEOF
 
21865
cat confdefs.h >>conftest.$ac_ext
 
21866
cat >>conftest.$ac_ext <<_ACEOF
 
21867
/* end confdefs.h.  */
 
21868
 
 
21869
 
 
21870
#include <string.h>
 
21871
 
 
21872
 
 
21873
int
 
21874
main ()
 
21875
{
 
21876
 
 
21877
 char buf[20];
 
21878
  buf[0]='\0';
 
21879
  strlcat(buf, "KDE function test", sizeof(buf));
 
21880
 
 
21881
 
 
21882
  ;
 
21883
  return 0;
 
21884
}
 
21885
_ACEOF
 
21886
rm -f conftest.$ac_objext
 
21887
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21888
  (eval $ac_compile) 2>conftest.er1
 
21889
  ac_status=$?
 
21890
  grep -v '^ *+' conftest.er1 >conftest.err
 
21891
  rm -f conftest.er1
 
21892
  cat conftest.err >&5
 
21893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21894
  (exit $ac_status); } &&
 
21895
         { ac_try='test -z "$ac_cxx_werror_flag"
 
21896
                         || test ! -s conftest.err'
 
21897
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21898
  (eval $ac_try) 2>&5
 
21899
  ac_status=$?
 
21900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21901
  (exit $ac_status); }; } &&
 
21902
         { ac_try='test -s conftest.$ac_objext'
 
21903
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21904
  (eval $ac_try) 2>&5
 
21905
  ac_status=$?
 
21906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21907
  (exit $ac_status); }; }; then
 
21908
  kde_cv_func_strlcat=yes
 
21909
else
 
21910
  echo "$as_me: failed program was:" >&5
 
21911
sed 's/^/| /' conftest.$ac_ext >&5
 
21912
 
 
21913
kde_cv_func_strlcat=no
 
21914
fi
 
21915
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21916
CXXFLAGS="$save_CXXFLAGS"
 
21917
LIBS="$kde_safe_LIBS"
 
21918
ac_ext=c
 
21919
ac_cpp='$CPP $CPPFLAGS'
 
21920
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21921
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21922
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21923
 
 
21924
 
 
21925
fi
 
21926
 
 
21927
 
 
21928
echo "$as_me:$LINENO: result: $kde_cv_func_strlcat" >&5
 
21929
echo "${ECHO_T}$kde_cv_func_strlcat" >&6
 
21930
 
 
21931
echo "$as_me:$LINENO: checking if strlcat needs custom prototype" >&5
 
21932
echo $ECHO_N "checking if strlcat needs custom prototype... $ECHO_C" >&6
 
21933
if test "${kde_cv_proto_strlcat+set}" = set; then
 
21934
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21935
else
 
21936
 
 
21937
if test "x$kde_cv_func_strlcat" = xyes; then
 
21938
  kde_cv_proto_strlcat=no
 
21939
else
 
21940
  case "strlcat" in
 
21941
        setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
 
21942
                kde_cv_proto_strlcat="yes - in libkdefakes"
 
21943
                ;;
 
21944
        *)
 
21945
                kde_cv_proto_strlcat=unknown
 
21946
                ;;
 
21947
  esac
 
21948
fi
 
21949
 
 
21950
if test "x$kde_cv_proto_strlcat" = xunknown; then
 
21951
 
 
21952
 
 
21953
 
 
21954
 ac_ext=cc
 
21955
ac_cpp='$CXXCPP $CPPFLAGS'
 
21956
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21957
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21958
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
21959
 
 
21960
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
21961
 
 
21962
 
 
21963
  kde_safe_libs=$LIBS
 
21964
  LIBS="$LIBS $X_EXTRA_LIBS"
 
21965
  cat >conftest.$ac_ext <<_ACEOF
 
21966
/* confdefs.h.  */
 
21967
_ACEOF
 
21968
cat confdefs.h >>conftest.$ac_ext
 
21969
cat >>conftest.$ac_ext <<_ACEOF
 
21970
/* end confdefs.h.  */
 
21971
 
 
21972
 
 
21973
#include <string.h>
 
21974
 
 
21975
 
 
21976
extern "C" unsigned long strlcat(char*, const char*, unsigned long);
 
21977
 
 
21978
int
 
21979
main ()
 
21980
{
 
21981
 
 
21982
 char buf[20];
 
21983
  buf[0]='\0';
 
21984
  strlcat(buf, "KDE function test", sizeof(buf));
 
21985
 
 
21986
 
 
21987
  ;
 
21988
  return 0;
 
21989
}
 
21990
_ACEOF
 
21991
rm -f conftest.$ac_objext conftest$ac_exeext
 
21992
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21993
  (eval $ac_link) 2>conftest.er1
 
21994
  ac_status=$?
 
21995
  grep -v '^ *+' conftest.er1 >conftest.err
 
21996
  rm -f conftest.er1
 
21997
  cat conftest.err >&5
 
21998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21999
  (exit $ac_status); } &&
 
22000
         { ac_try='test -z "$ac_cxx_werror_flag"
 
22001
                         || test ! -s conftest.err'
 
22002
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22003
  (eval $ac_try) 2>&5
 
22004
  ac_status=$?
 
22005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22006
  (exit $ac_status); }; } &&
 
22007
         { ac_try='test -s conftest$ac_exeext'
 
22008
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22009
  (eval $ac_try) 2>&5
 
22010
  ac_status=$?
 
22011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22012
  (exit $ac_status); }; }; then
 
22013
   kde_cv_func_strlcat=yes
 
22014
  kde_cv_proto_strlcat=yes
 
22015
else
 
22016
  echo "$as_me: failed program was:" >&5
 
22017
sed 's/^/| /' conftest.$ac_ext >&5
 
22018
 
 
22019
kde_cv_proto_strlcat="strlcat unavailable"
 
22020
 
 
22021
fi
 
22022
rm -f conftest.err conftest.$ac_objext \
 
22023
      conftest$ac_exeext conftest.$ac_ext
 
22024
LIBS=$kde_safe_libs
 
22025
ac_ext=c
 
22026
ac_cpp='$CPP $CPPFLAGS'
 
22027
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22028
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22029
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22030
 
 
22031
fi
 
22032
 
 
22033
fi
 
22034
 
 
22035
echo "$as_me:$LINENO: result: $kde_cv_proto_strlcat" >&5
 
22036
echo "${ECHO_T}$kde_cv_proto_strlcat" >&6
 
22037
 
 
22038
if test "x$kde_cv_func_strlcat" = xyes; then
 
22039
 
 
22040
cat >>confdefs.h <<\_ACEOF
 
22041
#define HAVE_STRLCAT 1
 
22042
_ACEOF
 
22043
 
 
22044
 
 
22045
fi
 
22046
if test "x$kde_cv_proto_strlcat" = xno; then
 
22047
 
 
22048
cat >>confdefs.h <<\_ACEOF
 
22049
#define HAVE_STRLCAT_PROTO 1
 
22050
_ACEOF
 
22051
 
 
22052
fi
 
22053
 
 
22054
 
 
22055
 
 
22056
 
 
22057
 
 
22058
 
 
22059
 
 
22060
echo "$as_me:$LINENO: checking for strlcpy" >&5
 
22061
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
 
22062
if test "${kde_cv_func_strlcpy+set}" = set; then
 
22063
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22064
else
 
22065
 
 
22066
 
 
22067
 
 
22068
 ac_ext=cc
 
22069
ac_cpp='$CXXCPP $CPPFLAGS'
 
22070
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22071
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22072
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22073
 
 
22074
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
22075
 
 
22076
 
 
22077
save_CXXFLAGS="$CXXFLAGS"
 
22078
kde_safe_LIBS="$LIBS"
 
22079
LIBS="$LIBS $X_EXTRA_LIBS"
 
22080
if test "$GXX" = "yes"; then
 
22081
CXXFLAGS="$CXXFLAGS -pedantic-errors"
 
22082
fi
 
22083
cat >conftest.$ac_ext <<_ACEOF
 
22084
/* confdefs.h.  */
 
22085
_ACEOF
 
22086
cat confdefs.h >>conftest.$ac_ext
 
22087
cat >>conftest.$ac_ext <<_ACEOF
 
22088
/* end confdefs.h.  */
 
22089
 
 
22090
 
 
22091
#include <string.h>
 
22092
 
 
22093
 
 
22094
int
 
22095
main ()
 
22096
{
 
22097
 
 
22098
 char buf[20];
 
22099
  strlcpy(buf, "KDE function test", sizeof(buf));
 
22100
 
 
22101
 
 
22102
  ;
 
22103
  return 0;
 
22104
}
 
22105
_ACEOF
 
22106
rm -f conftest.$ac_objext
 
22107
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22108
  (eval $ac_compile) 2>conftest.er1
 
22109
  ac_status=$?
 
22110
  grep -v '^ *+' conftest.er1 >conftest.err
 
22111
  rm -f conftest.er1
 
22112
  cat conftest.err >&5
 
22113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22114
  (exit $ac_status); } &&
 
22115
         { ac_try='test -z "$ac_cxx_werror_flag"
 
22116
                         || test ! -s conftest.err'
 
22117
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22118
  (eval $ac_try) 2>&5
 
22119
  ac_status=$?
 
22120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22121
  (exit $ac_status); }; } &&
 
22122
         { ac_try='test -s conftest.$ac_objext'
 
22123
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22124
  (eval $ac_try) 2>&5
 
22125
  ac_status=$?
 
22126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22127
  (exit $ac_status); }; }; then
 
22128
  kde_cv_func_strlcpy=yes
 
22129
else
 
22130
  echo "$as_me: failed program was:" >&5
 
22131
sed 's/^/| /' conftest.$ac_ext >&5
 
22132
 
 
22133
kde_cv_func_strlcpy=no
 
22134
fi
 
22135
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22136
CXXFLAGS="$save_CXXFLAGS"
 
22137
LIBS="$kde_safe_LIBS"
 
22138
ac_ext=c
 
22139
ac_cpp='$CPP $CPPFLAGS'
 
22140
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22141
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22142
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22143
 
 
22144
 
 
22145
fi
 
22146
 
 
22147
 
 
22148
echo "$as_me:$LINENO: result: $kde_cv_func_strlcpy" >&5
 
22149
echo "${ECHO_T}$kde_cv_func_strlcpy" >&6
 
22150
 
 
22151
echo "$as_me:$LINENO: checking if strlcpy needs custom prototype" >&5
 
22152
echo $ECHO_N "checking if strlcpy needs custom prototype... $ECHO_C" >&6
 
22153
if test "${kde_cv_proto_strlcpy+set}" = set; then
 
22154
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22155
else
 
22156
 
 
22157
if test "x$kde_cv_func_strlcpy" = xyes; then
 
22158
  kde_cv_proto_strlcpy=no
 
22159
else
 
22160
  case "strlcpy" in
 
22161
        setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
 
22162
                kde_cv_proto_strlcpy="yes - in libkdefakes"
 
22163
                ;;
 
22164
        *)
 
22165
                kde_cv_proto_strlcpy=unknown
 
22166
                ;;
 
22167
  esac
 
22168
fi
 
22169
 
 
22170
if test "x$kde_cv_proto_strlcpy" = xunknown; then
 
22171
 
 
22172
 
 
22173
 
 
22174
 ac_ext=cc
 
22175
ac_cpp='$CXXCPP $CPPFLAGS'
 
22176
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22177
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22178
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22179
 
 
22180
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
22181
 
 
22182
 
 
22183
  kde_safe_libs=$LIBS
 
22184
  LIBS="$LIBS $X_EXTRA_LIBS"
 
22185
  cat >conftest.$ac_ext <<_ACEOF
 
22186
/* confdefs.h.  */
 
22187
_ACEOF
 
22188
cat confdefs.h >>conftest.$ac_ext
 
22189
cat >>conftest.$ac_ext <<_ACEOF
 
22190
/* end confdefs.h.  */
 
22191
 
 
22192
 
 
22193
#include <string.h>
 
22194
 
 
22195
 
 
22196
extern "C" unsigned long strlcpy(char*, const char*, unsigned long);
 
22197
 
 
22198
int
 
22199
main ()
 
22200
{
 
22201
 
 
22202
 char buf[20];
 
22203
  strlcpy(buf, "KDE function test", sizeof(buf));
 
22204
 
 
22205
 
 
22206
  ;
 
22207
  return 0;
 
22208
}
 
22209
_ACEOF
 
22210
rm -f conftest.$ac_objext conftest$ac_exeext
 
22211
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22212
  (eval $ac_link) 2>conftest.er1
 
22213
  ac_status=$?
 
22214
  grep -v '^ *+' conftest.er1 >conftest.err
 
22215
  rm -f conftest.er1
 
22216
  cat conftest.err >&5
 
22217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22218
  (exit $ac_status); } &&
 
22219
         { ac_try='test -z "$ac_cxx_werror_flag"
 
22220
                         || test ! -s conftest.err'
 
22221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22222
  (eval $ac_try) 2>&5
 
22223
  ac_status=$?
 
22224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22225
  (exit $ac_status); }; } &&
 
22226
         { ac_try='test -s conftest$ac_exeext'
 
22227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22228
  (eval $ac_try) 2>&5
 
22229
  ac_status=$?
 
22230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22231
  (exit $ac_status); }; }; then
 
22232
   kde_cv_func_strlcpy=yes
 
22233
  kde_cv_proto_strlcpy=yes
 
22234
else
 
22235
  echo "$as_me: failed program was:" >&5
 
22236
sed 's/^/| /' conftest.$ac_ext >&5
 
22237
 
 
22238
kde_cv_proto_strlcpy="strlcpy unavailable"
 
22239
 
 
22240
fi
 
22241
rm -f conftest.err conftest.$ac_objext \
 
22242
      conftest$ac_exeext conftest.$ac_ext
 
22243
LIBS=$kde_safe_libs
 
22244
ac_ext=c
 
22245
ac_cpp='$CPP $CPPFLAGS'
 
22246
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22247
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22248
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22249
 
 
22250
fi
 
22251
 
 
22252
fi
 
22253
 
 
22254
echo "$as_me:$LINENO: result: $kde_cv_proto_strlcpy" >&5
 
22255
echo "${ECHO_T}$kde_cv_proto_strlcpy" >&6
 
22256
 
 
22257
if test "x$kde_cv_func_strlcpy" = xyes; then
 
22258
 
 
22259
cat >>confdefs.h <<\_ACEOF
 
22260
#define HAVE_STRLCPY 1
 
22261
_ACEOF
 
22262
 
 
22263
 
 
22264
fi
 
22265
if test "x$kde_cv_proto_strlcpy" = xno; then
 
22266
 
 
22267
cat >>confdefs.h <<\_ACEOF
 
22268
#define HAVE_STRLCPY_PROTO 1
 
22269
_ACEOF
 
22270
 
 
22271
fi
 
22272
 
 
22273
 
 
22274
 
 
22275
 
 
22276
 
 
22277
 
 
22278
      echo "$as_me:$LINENO: checking for main in -lutil" >&5
 
22279
echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6
 
22280
if test "${ac_cv_lib_util_main+set}" = set; then
 
22281
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22282
else
 
22283
  ac_check_lib_save_LIBS=$LIBS
 
22284
LIBS="-lutil  $LIBS"
 
22285
cat >conftest.$ac_ext <<_ACEOF
 
22286
/* confdefs.h.  */
 
22287
_ACEOF
 
22288
cat confdefs.h >>conftest.$ac_ext
 
22289
cat >>conftest.$ac_ext <<_ACEOF
 
22290
/* end confdefs.h.  */
 
22291
 
 
22292
 
 
22293
int
 
22294
main ()
 
22295
{
 
22296
main ();
 
22297
  ;
 
22298
  return 0;
 
22299
}
 
22300
_ACEOF
 
22301
rm -f conftest.$ac_objext conftest$ac_exeext
 
22302
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22303
  (eval $ac_link) 2>conftest.er1
 
22304
  ac_status=$?
 
22305
  grep -v '^ *+' conftest.er1 >conftest.err
 
22306
  rm -f conftest.er1
 
22307
  cat conftest.err >&5
 
22308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22309
  (exit $ac_status); } &&
 
22310
         { ac_try='test -z "$ac_c_werror_flag"
 
22311
                         || test ! -s conftest.err'
 
22312
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22313
  (eval $ac_try) 2>&5
 
22314
  ac_status=$?
 
22315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22316
  (exit $ac_status); }; } &&
 
22317
         { ac_try='test -s conftest$ac_exeext'
 
22318
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22319
  (eval $ac_try) 2>&5
 
22320
  ac_status=$?
 
22321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22322
  (exit $ac_status); }; }; then
 
22323
  ac_cv_lib_util_main=yes
 
22324
else
 
22325
  echo "$as_me: failed program was:" >&5
 
22326
sed 's/^/| /' conftest.$ac_ext >&5
 
22327
 
 
22328
ac_cv_lib_util_main=no
 
22329
fi
 
22330
rm -f conftest.err conftest.$ac_objext \
 
22331
      conftest$ac_exeext conftest.$ac_ext
 
22332
LIBS=$ac_check_lib_save_LIBS
 
22333
fi
 
22334
echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
 
22335
echo "${ECHO_T}$ac_cv_lib_util_main" >&6
 
22336
if test $ac_cv_lib_util_main = yes; then
 
22337
  LIBUTIL="-lutil"
 
22338
fi
 
22339
 
 
22340
   echo "$as_me:$LINENO: checking for main in -lcompat" >&5
 
22341
echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
 
22342
if test "${ac_cv_lib_compat_main+set}" = set; then
 
22343
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22344
else
 
22345
  ac_check_lib_save_LIBS=$LIBS
 
22346
LIBS="-lcompat  $LIBS"
 
22347
cat >conftest.$ac_ext <<_ACEOF
 
22348
/* confdefs.h.  */
 
22349
_ACEOF
 
22350
cat confdefs.h >>conftest.$ac_ext
 
22351
cat >>conftest.$ac_ext <<_ACEOF
 
22352
/* end confdefs.h.  */
 
22353
 
 
22354
 
 
22355
int
 
22356
main ()
 
22357
{
 
22358
main ();
 
22359
  ;
 
22360
  return 0;
 
22361
}
 
22362
_ACEOF
 
22363
rm -f conftest.$ac_objext conftest$ac_exeext
 
22364
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22365
  (eval $ac_link) 2>conftest.er1
 
22366
  ac_status=$?
 
22367
  grep -v '^ *+' conftest.er1 >conftest.err
 
22368
  rm -f conftest.er1
 
22369
  cat conftest.err >&5
 
22370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22371
  (exit $ac_status); } &&
 
22372
         { ac_try='test -z "$ac_c_werror_flag"
 
22373
                         || test ! -s conftest.err'
 
22374
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22375
  (eval $ac_try) 2>&5
 
22376
  ac_status=$?
 
22377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22378
  (exit $ac_status); }; } &&
 
22379
         { ac_try='test -s conftest$ac_exeext'
 
22380
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22381
  (eval $ac_try) 2>&5
 
22382
  ac_status=$?
 
22383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22384
  (exit $ac_status); }; }; then
 
22385
  ac_cv_lib_compat_main=yes
 
22386
else
 
22387
  echo "$as_me: failed program was:" >&5
 
22388
sed 's/^/| /' conftest.$ac_ext >&5
 
22389
 
 
22390
ac_cv_lib_compat_main=no
 
22391
fi
 
22392
rm -f conftest.err conftest.$ac_objext \
 
22393
      conftest$ac_exeext conftest.$ac_ext
 
22394
LIBS=$ac_check_lib_save_LIBS
 
22395
fi
 
22396
echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
 
22397
echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
 
22398
if test $ac_cv_lib_compat_main = yes; then
 
22399
  LIBCOMPAT="-lcompat"
 
22400
fi
 
22401
 
 
22402
   kde_have_crypt=
 
22403
   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
 
22404
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
 
22405
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
 
22406
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22407
else
 
22408
  ac_check_lib_save_LIBS=$LIBS
 
22409
LIBS="-lcrypt  $LIBS"
 
22410
cat >conftest.$ac_ext <<_ACEOF
 
22411
/* confdefs.h.  */
 
22412
_ACEOF
 
22413
cat confdefs.h >>conftest.$ac_ext
 
22414
cat >>conftest.$ac_ext <<_ACEOF
 
22415
/* end confdefs.h.  */
 
22416
 
 
22417
/* Override any gcc2 internal prototype to avoid an error.  */
 
22418
#ifdef __cplusplus
 
22419
extern "C"
 
22420
#endif
 
22421
/* We use char because int might match the return type of a gcc2
 
22422
   builtin and then its argument prototype would still apply.  */
 
22423
char crypt ();
 
22424
int
 
22425
main ()
 
22426
{
 
22427
crypt ();
 
22428
  ;
 
22429
  return 0;
 
22430
}
 
22431
_ACEOF
 
22432
rm -f conftest.$ac_objext conftest$ac_exeext
 
22433
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22434
  (eval $ac_link) 2>conftest.er1
 
22435
  ac_status=$?
 
22436
  grep -v '^ *+' conftest.er1 >conftest.err
 
22437
  rm -f conftest.er1
 
22438
  cat conftest.err >&5
 
22439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22440
  (exit $ac_status); } &&
 
22441
         { ac_try='test -z "$ac_c_werror_flag"
 
22442
                         || test ! -s conftest.err'
 
22443
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22444
  (eval $ac_try) 2>&5
 
22445
  ac_status=$?
 
22446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22447
  (exit $ac_status); }; } &&
 
22448
         { ac_try='test -s conftest$ac_exeext'
 
22449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22450
  (eval $ac_try) 2>&5
 
22451
  ac_status=$?
 
22452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22453
  (exit $ac_status); }; }; then
 
22454
  ac_cv_lib_crypt_crypt=yes
 
22455
else
 
22456
  echo "$as_me: failed program was:" >&5
 
22457
sed 's/^/| /' conftest.$ac_ext >&5
 
22458
 
 
22459
ac_cv_lib_crypt_crypt=no
 
22460
fi
 
22461
rm -f conftest.err conftest.$ac_objext \
 
22462
      conftest$ac_exeext conftest.$ac_ext
 
22463
LIBS=$ac_check_lib_save_LIBS
 
22464
fi
 
22465
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
 
22466
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
 
22467
if test $ac_cv_lib_crypt_crypt = yes; then
 
22468
  LIBCRYPT="-lcrypt"; kde_have_crypt=yes
 
22469
else
 
22470
  echo "$as_me:$LINENO: checking for crypt in -lc" >&5
 
22471
echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
 
22472
if test "${ac_cv_lib_c_crypt+set}" = set; then
 
22473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22474
else
 
22475
  ac_check_lib_save_LIBS=$LIBS
 
22476
LIBS="-lc  $LIBS"
 
22477
cat >conftest.$ac_ext <<_ACEOF
 
22478
/* confdefs.h.  */
 
22479
_ACEOF
 
22480
cat confdefs.h >>conftest.$ac_ext
 
22481
cat >>conftest.$ac_ext <<_ACEOF
 
22482
/* end confdefs.h.  */
 
22483
 
 
22484
/* Override any gcc2 internal prototype to avoid an error.  */
 
22485
#ifdef __cplusplus
 
22486
extern "C"
 
22487
#endif
 
22488
/* We use char because int might match the return type of a gcc2
 
22489
   builtin and then its argument prototype would still apply.  */
 
22490
char crypt ();
 
22491
int
 
22492
main ()
 
22493
{
 
22494
crypt ();
 
22495
  ;
 
22496
  return 0;
 
22497
}
 
22498
_ACEOF
 
22499
rm -f conftest.$ac_objext conftest$ac_exeext
 
22500
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22501
  (eval $ac_link) 2>conftest.er1
 
22502
  ac_status=$?
 
22503
  grep -v '^ *+' conftest.er1 >conftest.err
 
22504
  rm -f conftest.er1
 
22505
  cat conftest.err >&5
 
22506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22507
  (exit $ac_status); } &&
 
22508
         { ac_try='test -z "$ac_c_werror_flag"
 
22509
                         || test ! -s conftest.err'
 
22510
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22511
  (eval $ac_try) 2>&5
 
22512
  ac_status=$?
 
22513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22514
  (exit $ac_status); }; } &&
 
22515
         { ac_try='test -s conftest$ac_exeext'
 
22516
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22517
  (eval $ac_try) 2>&5
 
22518
  ac_status=$?
 
22519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22520
  (exit $ac_status); }; }; then
 
22521
  ac_cv_lib_c_crypt=yes
 
22522
else
 
22523
  echo "$as_me: failed program was:" >&5
 
22524
sed 's/^/| /' conftest.$ac_ext >&5
 
22525
 
 
22526
ac_cv_lib_c_crypt=no
 
22527
fi
 
22528
rm -f conftest.err conftest.$ac_objext \
 
22529
      conftest$ac_exeext conftest.$ac_ext
 
22530
LIBS=$ac_check_lib_save_LIBS
 
22531
fi
 
22532
echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
 
22533
echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
 
22534
if test $ac_cv_lib_c_crypt = yes; then
 
22535
  kde_have_crypt=yes
 
22536
else
 
22537
 
 
22538
        { echo "$as_me:$LINENO: WARNING: you have no crypt in either libcrypt or libc.
 
22539
You should install libcrypt from another source or configure with PAM
 
22540
support" >&5
 
22541
echo "$as_me: WARNING: you have no crypt in either libcrypt or libc.
 
22542
You should install libcrypt from another source or configure with PAM
 
22543
support" >&2;}
 
22544
        kde_have_crypt=no
 
22545
 
 
22546
fi
 
22547
 
 
22548
fi
 
22549
 
 
22550
 
 
22551
   if test $kde_have_crypt = yes; then
 
22552
 
 
22553
cat >>confdefs.h <<_ACEOF
 
22554
#define HAVE_CRYPT 1
 
22555
_ACEOF
 
22556
 
 
22557
   fi
 
22558
 
 
22559
   echo "$as_me:$LINENO: checking for socklen_t" >&5
 
22560
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
 
22561
   if test "${kde_cv_socklen_t+set}" = set; then
 
22562
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22563
else
 
22564
 
 
22565
      ac_ext=cc
 
22566
ac_cpp='$CXXCPP $CPPFLAGS'
 
22567
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22568
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22569
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22570
 
 
22571
      kde_cv_socklen_t=no
 
22572
      cat >conftest.$ac_ext <<_ACEOF
 
22573
/* confdefs.h.  */
 
22574
_ACEOF
 
22575
cat confdefs.h >>conftest.$ac_ext
 
22576
cat >>conftest.$ac_ext <<_ACEOF
 
22577
/* end confdefs.h.  */
 
22578
 
 
22579
         #include <sys/types.h>
 
22580
         #include <sys/socket.h>
 
22581
 
 
22582
int
 
22583
main ()
 
22584
{
 
22585
 
 
22586
         socklen_t len;
 
22587
         getpeername(0,0,&len);
 
22588
 
 
22589
  ;
 
22590
  return 0;
 
22591
}
 
22592
_ACEOF
 
22593
rm -f conftest.$ac_objext
 
22594
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22595
  (eval $ac_compile) 2>conftest.er1
 
22596
  ac_status=$?
 
22597
  grep -v '^ *+' conftest.er1 >conftest.err
 
22598
  rm -f conftest.er1
 
22599
  cat conftest.err >&5
 
22600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22601
  (exit $ac_status); } &&
 
22602
         { ac_try='test -z "$ac_cxx_werror_flag"
 
22603
                         || test ! -s conftest.err'
 
22604
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22605
  (eval $ac_try) 2>&5
 
22606
  ac_status=$?
 
22607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22608
  (exit $ac_status); }; } &&
 
22609
         { ac_try='test -s conftest.$ac_objext'
 
22610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22611
  (eval $ac_try) 2>&5
 
22612
  ac_status=$?
 
22613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22614
  (exit $ac_status); }; }; then
 
22615
 
 
22616
         kde_cv_socklen_t=yes
 
22617
         kde_cv_socklen_t_equiv=socklen_t
 
22618
 
 
22619
else
 
22620
  echo "$as_me: failed program was:" >&5
 
22621
sed 's/^/| /' conftest.$ac_ext >&5
 
22622
 
 
22623
fi
 
22624
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22625
      ac_ext=c
 
22626
ac_cpp='$CPP $CPPFLAGS'
 
22627
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22628
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22629
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22630
 
 
22631
 
 
22632
fi
 
22633
 
 
22634
   echo "$as_me:$LINENO: result: $kde_cv_socklen_t" >&5
 
22635
echo "${ECHO_T}$kde_cv_socklen_t" >&6
 
22636
   if test $kde_cv_socklen_t = no; then
 
22637
      echo "$as_me:$LINENO: checking for socklen_t equivalent for socket functions" >&5
 
22638
echo $ECHO_N "checking for socklen_t equivalent for socket functions... $ECHO_C" >&6
 
22639
      if test "${kde_cv_socklen_t_equiv+set}" = set; then
 
22640
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22641
else
 
22642
 
 
22643
         kde_cv_socklen_t_equiv=int
 
22644
         ac_ext=cc
 
22645
ac_cpp='$CXXCPP $CPPFLAGS'
 
22646
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22647
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22648
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22649
 
 
22650
         for t in int size_t unsigned long "unsigned long"; do
 
22651
            cat >conftest.$ac_ext <<_ACEOF
 
22652
/* confdefs.h.  */
 
22653
_ACEOF
 
22654
cat confdefs.h >>conftest.$ac_ext
 
22655
cat >>conftest.$ac_ext <<_ACEOF
 
22656
/* end confdefs.h.  */
 
22657
 
 
22658
               #include <sys/types.h>
 
22659
               #include <sys/socket.h>
 
22660
 
 
22661
int
 
22662
main ()
 
22663
{
 
22664
 
 
22665
               $t len;
 
22666
               getpeername(0,0,&len);
 
22667
 
 
22668
  ;
 
22669
  return 0;
 
22670
}
 
22671
_ACEOF
 
22672
rm -f conftest.$ac_objext
 
22673
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22674
  (eval $ac_compile) 2>conftest.er1
 
22675
  ac_status=$?
 
22676
  grep -v '^ *+' conftest.er1 >conftest.err
 
22677
  rm -f conftest.er1
 
22678
  cat conftest.err >&5
 
22679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22680
  (exit $ac_status); } &&
 
22681
         { ac_try='test -z "$ac_cxx_werror_flag"
 
22682
                         || test ! -s conftest.err'
 
22683
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22684
  (eval $ac_try) 2>&5
 
22685
  ac_status=$?
 
22686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22687
  (exit $ac_status); }; } &&
 
22688
         { ac_try='test -s conftest.$ac_objext'
 
22689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22690
  (eval $ac_try) 2>&5
 
22691
  ac_status=$?
 
22692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22693
  (exit $ac_status); }; }; then
 
22694
 
 
22695
               kde_cv_socklen_t_equiv="$t"
 
22696
               break
 
22697
 
 
22698
else
 
22699
  echo "$as_me: failed program was:" >&5
 
22700
sed 's/^/| /' conftest.$ac_ext >&5
 
22701
 
 
22702
fi
 
22703
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22704
         done
 
22705
         ac_ext=c
 
22706
ac_cpp='$CPP $CPPFLAGS'
 
22707
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22708
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22709
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22710
 
 
22711
 
 
22712
fi
 
22713
 
 
22714
      echo "$as_me:$LINENO: result: $kde_cv_socklen_t_equiv" >&5
 
22715
echo "${ECHO_T}$kde_cv_socklen_t_equiv" >&6
 
22716
   fi
 
22717
 
 
22718
cat >>confdefs.h <<_ACEOF
 
22719
#define kde_socklen_t $kde_cv_socklen_t_equiv
 
22720
_ACEOF
 
22721
 
 
22722
 
 
22723
cat >>confdefs.h <<_ACEOF
 
22724
#define ksize_t $kde_cv_socklen_t_equiv
 
22725
_ACEOF
 
22726
 
 
22727
 
 
22728
   echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
 
22729
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
 
22730
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
 
22731
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22732
else
 
22733
  ac_check_lib_save_LIBS=$LIBS
 
22734
LIBS="-ldnet  $LIBS"
 
22735
cat >conftest.$ac_ext <<_ACEOF
 
22736
/* confdefs.h.  */
 
22737
_ACEOF
 
22738
cat confdefs.h >>conftest.$ac_ext
 
22739
cat >>conftest.$ac_ext <<_ACEOF
 
22740
/* end confdefs.h.  */
 
22741
 
 
22742
/* Override any gcc2 internal prototype to avoid an error.  */
 
22743
#ifdef __cplusplus
 
22744
extern "C"
 
22745
#endif
 
22746
/* We use char because int might match the return type of a gcc2
 
22747
   builtin and then its argument prototype would still apply.  */
 
22748
char dnet_ntoa ();
 
22749
int
 
22750
main ()
 
22751
{
 
22752
dnet_ntoa ();
 
22753
  ;
 
22754
  return 0;
 
22755
}
 
22756
_ACEOF
 
22757
rm -f conftest.$ac_objext conftest$ac_exeext
 
22758
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22759
  (eval $ac_link) 2>conftest.er1
 
22760
  ac_status=$?
 
22761
  grep -v '^ *+' conftest.er1 >conftest.err
 
22762
  rm -f conftest.er1
 
22763
  cat conftest.err >&5
 
22764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22765
  (exit $ac_status); } &&
 
22766
         { ac_try='test -z "$ac_c_werror_flag"
 
22767
                         || test ! -s conftest.err'
 
22768
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22769
  (eval $ac_try) 2>&5
 
22770
  ac_status=$?
 
22771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22772
  (exit $ac_status); }; } &&
 
22773
         { ac_try='test -s conftest$ac_exeext'
 
22774
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22775
  (eval $ac_try) 2>&5
 
22776
  ac_status=$?
 
22777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22778
  (exit $ac_status); }; }; then
 
22779
  ac_cv_lib_dnet_dnet_ntoa=yes
 
22780
else
 
22781
  echo "$as_me: failed program was:" >&5
 
22782
sed 's/^/| /' conftest.$ac_ext >&5
 
22783
 
 
22784
ac_cv_lib_dnet_dnet_ntoa=no
 
22785
fi
 
22786
rm -f conftest.err conftest.$ac_objext \
 
22787
      conftest$ac_exeext conftest.$ac_ext
 
22788
LIBS=$ac_check_lib_save_LIBS
 
22789
fi
 
22790
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
22791
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
 
22792
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
 
22793
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 
22794
fi
 
22795
 
 
22796
   if test $ac_cv_lib_dnet_dnet_ntoa = no; then
 
22797
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
 
22798
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
 
22799
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
 
22800
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22801
else
 
22802
  ac_check_lib_save_LIBS=$LIBS
 
22803
LIBS="-ldnet_stub  $LIBS"
 
22804
cat >conftest.$ac_ext <<_ACEOF
 
22805
/* confdefs.h.  */
 
22806
_ACEOF
 
22807
cat confdefs.h >>conftest.$ac_ext
 
22808
cat >>conftest.$ac_ext <<_ACEOF
 
22809
/* end confdefs.h.  */
 
22810
 
 
22811
/* Override any gcc2 internal prototype to avoid an error.  */
 
22812
#ifdef __cplusplus
 
22813
extern "C"
 
22814
#endif
 
22815
/* We use char because int might match the return type of a gcc2
 
22816
   builtin and then its argument prototype would still apply.  */
 
22817
char dnet_ntoa ();
 
22818
int
 
22819
main ()
 
22820
{
 
22821
dnet_ntoa ();
 
22822
  ;
 
22823
  return 0;
 
22824
}
 
22825
_ACEOF
 
22826
rm -f conftest.$ac_objext conftest$ac_exeext
 
22827
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22828
  (eval $ac_link) 2>conftest.er1
 
22829
  ac_status=$?
 
22830
  grep -v '^ *+' conftest.er1 >conftest.err
 
22831
  rm -f conftest.er1
 
22832
  cat conftest.err >&5
 
22833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22834
  (exit $ac_status); } &&
 
22835
         { ac_try='test -z "$ac_c_werror_flag"
 
22836
                         || test ! -s conftest.err'
 
22837
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22838
  (eval $ac_try) 2>&5
 
22839
  ac_status=$?
 
22840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22841
  (exit $ac_status); }; } &&
 
22842
         { ac_try='test -s conftest$ac_exeext'
 
22843
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22844
  (eval $ac_try) 2>&5
 
22845
  ac_status=$?
 
22846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22847
  (exit $ac_status); }; }; then
 
22848
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 
22849
else
 
22850
  echo "$as_me: failed program was:" >&5
 
22851
sed 's/^/| /' conftest.$ac_ext >&5
 
22852
 
 
22853
ac_cv_lib_dnet_stub_dnet_ntoa=no
 
22854
fi
 
22855
rm -f conftest.err conftest.$ac_objext \
 
22856
      conftest$ac_exeext conftest.$ac_ext
 
22857
LIBS=$ac_check_lib_save_LIBS
 
22858
fi
 
22859
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
22860
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
 
22861
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
 
22862
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 
22863
fi
 
22864
 
 
22865
   fi
 
22866
   echo "$as_me:$LINENO: checking for inet_ntoa" >&5
 
22867
echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6
 
22868
if test "${ac_cv_func_inet_ntoa+set}" = set; then
 
22869
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22870
else
 
22871
  cat >conftest.$ac_ext <<_ACEOF
 
22872
/* confdefs.h.  */
 
22873
_ACEOF
 
22874
cat confdefs.h >>conftest.$ac_ext
 
22875
cat >>conftest.$ac_ext <<_ACEOF
 
22876
/* end confdefs.h.  */
 
22877
/* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa.
 
22878
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22879
#define inet_ntoa innocuous_inet_ntoa
 
22880
 
 
22881
/* System header to define __stub macros and hopefully few prototypes,
 
22882
    which can conflict with char inet_ntoa (); below.
 
22883
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22884
    <limits.h> exists even on freestanding compilers.  */
 
22885
 
 
22886
#ifdef __STDC__
 
22887
# include <limits.h>
 
22888
#else
 
22889
# include <assert.h>
 
22890
#endif
 
22891
 
 
22892
#undef inet_ntoa
 
22893
 
 
22894
/* Override any gcc2 internal prototype to avoid an error.  */
 
22895
#ifdef __cplusplus
 
22896
extern "C"
 
22897
{
 
22898
#endif
 
22899
/* We use char because int might match the return type of a gcc2
 
22900
   builtin and then its argument prototype would still apply.  */
 
22901
char inet_ntoa ();
 
22902
/* The GNU C library defines this for functions which it implements
 
22903
    to always fail with ENOSYS.  Some functions are actually named
 
22904
    something starting with __ and the normal name is an alias.  */
 
22905
#if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
 
22906
choke me
 
22907
#else
 
22908
char (*f) () = inet_ntoa;
 
22909
#endif
 
22910
#ifdef __cplusplus
 
22911
}
 
22912
#endif
 
22913
 
 
22914
int
 
22915
main ()
 
22916
{
 
22917
return f != inet_ntoa;
 
22918
  ;
 
22919
  return 0;
 
22920
}
 
22921
_ACEOF
 
22922
rm -f conftest.$ac_objext conftest$ac_exeext
 
22923
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22924
  (eval $ac_link) 2>conftest.er1
 
22925
  ac_status=$?
 
22926
  grep -v '^ *+' conftest.er1 >conftest.err
 
22927
  rm -f conftest.er1
 
22928
  cat conftest.err >&5
 
22929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22930
  (exit $ac_status); } &&
 
22931
         { ac_try='test -z "$ac_c_werror_flag"
 
22932
                         || test ! -s conftest.err'
 
22933
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22934
  (eval $ac_try) 2>&5
 
22935
  ac_status=$?
 
22936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22937
  (exit $ac_status); }; } &&
 
22938
         { ac_try='test -s conftest$ac_exeext'
 
22939
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22940
  (eval $ac_try) 2>&5
 
22941
  ac_status=$?
 
22942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22943
  (exit $ac_status); }; }; then
 
22944
  ac_cv_func_inet_ntoa=yes
 
22945
else
 
22946
  echo "$as_me: failed program was:" >&5
 
22947
sed 's/^/| /' conftest.$ac_ext >&5
 
22948
 
 
22949
ac_cv_func_inet_ntoa=no
 
22950
fi
 
22951
rm -f conftest.err conftest.$ac_objext \
 
22952
      conftest$ac_exeext conftest.$ac_ext
 
22953
fi
 
22954
echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
 
22955
echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6
 
22956
 
 
22957
   if test $ac_cv_func_inet_ntoa = no; then
 
22958
     echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
 
22959
echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
 
22960
if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
 
22961
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22962
else
 
22963
  ac_check_lib_save_LIBS=$LIBS
 
22964
LIBS="-lnsl  $LIBS"
 
22965
cat >conftest.$ac_ext <<_ACEOF
 
22966
/* confdefs.h.  */
 
22967
_ACEOF
 
22968
cat confdefs.h >>conftest.$ac_ext
 
22969
cat >>conftest.$ac_ext <<_ACEOF
 
22970
/* end confdefs.h.  */
 
22971
 
 
22972
/* Override any gcc2 internal prototype to avoid an error.  */
 
22973
#ifdef __cplusplus
 
22974
extern "C"
 
22975
#endif
 
22976
/* We use char because int might match the return type of a gcc2
 
22977
   builtin and then its argument prototype would still apply.  */
 
22978
char inet_ntoa ();
 
22979
int
 
22980
main ()
 
22981
{
 
22982
inet_ntoa ();
 
22983
  ;
 
22984
  return 0;
 
22985
}
 
22986
_ACEOF
 
22987
rm -f conftest.$ac_objext conftest$ac_exeext
 
22988
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22989
  (eval $ac_link) 2>conftest.er1
 
22990
  ac_status=$?
 
22991
  grep -v '^ *+' conftest.er1 >conftest.err
 
22992
  rm -f conftest.er1
 
22993
  cat conftest.err >&5
 
22994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22995
  (exit $ac_status); } &&
 
22996
         { ac_try='test -z "$ac_c_werror_flag"
 
22997
                         || test ! -s conftest.err'
 
22998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22999
  (eval $ac_try) 2>&5
 
23000
  ac_status=$?
 
23001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23002
  (exit $ac_status); }; } &&
 
23003
         { ac_try='test -s conftest$ac_exeext'
 
23004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23005
  (eval $ac_try) 2>&5
 
23006
  ac_status=$?
 
23007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23008
  (exit $ac_status); }; }; then
 
23009
  ac_cv_lib_nsl_inet_ntoa=yes
 
23010
else
 
23011
  echo "$as_me: failed program was:" >&5
 
23012
sed 's/^/| /' conftest.$ac_ext >&5
 
23013
 
 
23014
ac_cv_lib_nsl_inet_ntoa=no
 
23015
fi
 
23016
rm -f conftest.err conftest.$ac_objext \
 
23017
      conftest$ac_exeext conftest.$ac_ext
 
23018
LIBS=$ac_check_lib_save_LIBS
 
23019
fi
 
23020
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
 
23021
echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
 
23022
if test $ac_cv_lib_nsl_inet_ntoa = yes; then
 
23023
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 
23024
fi
 
23025
 
 
23026
   fi
 
23027
   echo "$as_me:$LINENO: checking for connect" >&5
 
23028
echo $ECHO_N "checking for connect... $ECHO_C" >&6
 
23029
if test "${ac_cv_func_connect+set}" = set; then
 
23030
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23031
else
 
23032
  cat >conftest.$ac_ext <<_ACEOF
 
23033
/* confdefs.h.  */
 
23034
_ACEOF
 
23035
cat confdefs.h >>conftest.$ac_ext
 
23036
cat >>conftest.$ac_ext <<_ACEOF
 
23037
/* end confdefs.h.  */
 
23038
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
 
23039
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23040
#define connect innocuous_connect
 
23041
 
 
23042
/* System header to define __stub macros and hopefully few prototypes,
 
23043
    which can conflict with char connect (); below.
 
23044
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23045
    <limits.h> exists even on freestanding compilers.  */
 
23046
 
 
23047
#ifdef __STDC__
 
23048
# include <limits.h>
 
23049
#else
 
23050
# include <assert.h>
 
23051
#endif
 
23052
 
 
23053
#undef connect
 
23054
 
 
23055
/* Override any gcc2 internal prototype to avoid an error.  */
 
23056
#ifdef __cplusplus
 
23057
extern "C"
 
23058
{
 
23059
#endif
 
23060
/* We use char because int might match the return type of a gcc2
 
23061
   builtin and then its argument prototype would still apply.  */
 
23062
char connect ();
 
23063
/* The GNU C library defines this for functions which it implements
 
23064
    to always fail with ENOSYS.  Some functions are actually named
 
23065
    something starting with __ and the normal name is an alias.  */
 
23066
#if defined (__stub_connect) || defined (__stub___connect)
 
23067
choke me
 
23068
#else
 
23069
char (*f) () = connect;
 
23070
#endif
 
23071
#ifdef __cplusplus
 
23072
}
 
23073
#endif
 
23074
 
 
23075
int
 
23076
main ()
 
23077
{
 
23078
return f != connect;
 
23079
  ;
 
23080
  return 0;
 
23081
}
 
23082
_ACEOF
 
23083
rm -f conftest.$ac_objext conftest$ac_exeext
 
23084
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23085
  (eval $ac_link) 2>conftest.er1
 
23086
  ac_status=$?
 
23087
  grep -v '^ *+' conftest.er1 >conftest.err
 
23088
  rm -f conftest.er1
 
23089
  cat conftest.err >&5
 
23090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23091
  (exit $ac_status); } &&
 
23092
         { ac_try='test -z "$ac_c_werror_flag"
 
23093
                         || test ! -s conftest.err'
 
23094
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23095
  (eval $ac_try) 2>&5
 
23096
  ac_status=$?
 
23097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23098
  (exit $ac_status); }; } &&
 
23099
         { ac_try='test -s conftest$ac_exeext'
 
23100
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23101
  (eval $ac_try) 2>&5
 
23102
  ac_status=$?
 
23103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23104
  (exit $ac_status); }; }; then
 
23105
  ac_cv_func_connect=yes
 
23106
else
 
23107
  echo "$as_me: failed program was:" >&5
 
23108
sed 's/^/| /' conftest.$ac_ext >&5
 
23109
 
 
23110
ac_cv_func_connect=no
 
23111
fi
 
23112
rm -f conftest.err conftest.$ac_objext \
 
23113
      conftest$ac_exeext conftest.$ac_ext
 
23114
fi
 
23115
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
23116
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
23117
 
 
23118
   if test $ac_cv_func_connect = no; then
 
23119
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
23120
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
 
23121
if test "${ac_cv_lib_socket_connect+set}" = set; then
 
23122
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23123
else
 
23124
  ac_check_lib_save_LIBS=$LIBS
 
23125
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 
23126
cat >conftest.$ac_ext <<_ACEOF
 
23127
/* confdefs.h.  */
 
23128
_ACEOF
 
23129
cat confdefs.h >>conftest.$ac_ext
 
23130
cat >>conftest.$ac_ext <<_ACEOF
 
23131
/* end confdefs.h.  */
 
23132
 
 
23133
/* Override any gcc2 internal prototype to avoid an error.  */
 
23134
#ifdef __cplusplus
 
23135
extern "C"
 
23136
#endif
 
23137
/* We use char because int might match the return type of a gcc2
 
23138
   builtin and then its argument prototype would still apply.  */
 
23139
char connect ();
 
23140
int
 
23141
main ()
 
23142
{
 
23143
connect ();
 
23144
  ;
 
23145
  return 0;
 
23146
}
 
23147
_ACEOF
 
23148
rm -f conftest.$ac_objext conftest$ac_exeext
 
23149
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23150
  (eval $ac_link) 2>conftest.er1
 
23151
  ac_status=$?
 
23152
  grep -v '^ *+' conftest.er1 >conftest.err
 
23153
  rm -f conftest.er1
 
23154
  cat conftest.err >&5
 
23155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23156
  (exit $ac_status); } &&
 
23157
         { ac_try='test -z "$ac_c_werror_flag"
 
23158
                         || test ! -s conftest.err'
 
23159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23160
  (eval $ac_try) 2>&5
 
23161
  ac_status=$?
 
23162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23163
  (exit $ac_status); }; } &&
 
23164
         { ac_try='test -s conftest$ac_exeext'
 
23165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23166
  (eval $ac_try) 2>&5
 
23167
  ac_status=$?
 
23168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23169
  (exit $ac_status); }; }; then
 
23170
  ac_cv_lib_socket_connect=yes
 
23171
else
 
23172
  echo "$as_me: failed program was:" >&5
 
23173
sed 's/^/| /' conftest.$ac_ext >&5
 
23174
 
 
23175
ac_cv_lib_socket_connect=no
 
23176
fi
 
23177
rm -f conftest.err conftest.$ac_objext \
 
23178
      conftest$ac_exeext conftest.$ac_ext
 
23179
LIBS=$ac_check_lib_save_LIBS
 
23180
fi
 
23181
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
23182
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
 
23183
if test $ac_cv_lib_socket_connect = yes; then
 
23184
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 
23185
fi
 
23186
 
 
23187
   fi
 
23188
 
 
23189
   echo "$as_me:$LINENO: checking for remove" >&5
 
23190
echo $ECHO_N "checking for remove... $ECHO_C" >&6
 
23191
if test "${ac_cv_func_remove+set}" = set; then
 
23192
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23193
else
 
23194
  cat >conftest.$ac_ext <<_ACEOF
 
23195
/* confdefs.h.  */
 
23196
_ACEOF
 
23197
cat confdefs.h >>conftest.$ac_ext
 
23198
cat >>conftest.$ac_ext <<_ACEOF
 
23199
/* end confdefs.h.  */
 
23200
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
 
23201
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23202
#define remove innocuous_remove
 
23203
 
 
23204
/* System header to define __stub macros and hopefully few prototypes,
 
23205
    which can conflict with char remove (); below.
 
23206
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23207
    <limits.h> exists even on freestanding compilers.  */
 
23208
 
 
23209
#ifdef __STDC__
 
23210
# include <limits.h>
 
23211
#else
 
23212
# include <assert.h>
 
23213
#endif
 
23214
 
 
23215
#undef remove
 
23216
 
 
23217
/* Override any gcc2 internal prototype to avoid an error.  */
 
23218
#ifdef __cplusplus
 
23219
extern "C"
 
23220
{
 
23221
#endif
 
23222
/* We use char because int might match the return type of a gcc2
 
23223
   builtin and then its argument prototype would still apply.  */
 
23224
char remove ();
 
23225
/* The GNU C library defines this for functions which it implements
 
23226
    to always fail with ENOSYS.  Some functions are actually named
 
23227
    something starting with __ and the normal name is an alias.  */
 
23228
#if defined (__stub_remove) || defined (__stub___remove)
 
23229
choke me
 
23230
#else
 
23231
char (*f) () = remove;
 
23232
#endif
 
23233
#ifdef __cplusplus
 
23234
}
 
23235
#endif
 
23236
 
 
23237
int
 
23238
main ()
 
23239
{
 
23240
return f != remove;
 
23241
  ;
 
23242
  return 0;
 
23243
}
 
23244
_ACEOF
 
23245
rm -f conftest.$ac_objext conftest$ac_exeext
 
23246
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23247
  (eval $ac_link) 2>conftest.er1
 
23248
  ac_status=$?
 
23249
  grep -v '^ *+' conftest.er1 >conftest.err
 
23250
  rm -f conftest.er1
 
23251
  cat conftest.err >&5
 
23252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23253
  (exit $ac_status); } &&
 
23254
         { ac_try='test -z "$ac_c_werror_flag"
 
23255
                         || test ! -s conftest.err'
 
23256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23257
  (eval $ac_try) 2>&5
 
23258
  ac_status=$?
 
23259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23260
  (exit $ac_status); }; } &&
 
23261
         { ac_try='test -s conftest$ac_exeext'
 
23262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23263
  (eval $ac_try) 2>&5
 
23264
  ac_status=$?
 
23265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23266
  (exit $ac_status); }; }; then
 
23267
  ac_cv_func_remove=yes
 
23268
else
 
23269
  echo "$as_me: failed program was:" >&5
 
23270
sed 's/^/| /' conftest.$ac_ext >&5
 
23271
 
 
23272
ac_cv_func_remove=no
 
23273
fi
 
23274
rm -f conftest.err conftest.$ac_objext \
 
23275
      conftest$ac_exeext conftest.$ac_ext
 
23276
fi
 
23277
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
23278
echo "${ECHO_T}$ac_cv_func_remove" >&6
 
23279
 
 
23280
   if test $ac_cv_func_remove = no; then
 
23281
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
 
23282
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
 
23283
if test "${ac_cv_lib_posix_remove+set}" = set; then
 
23284
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23285
else
 
23286
  ac_check_lib_save_LIBS=$LIBS
 
23287
LIBS="-lposix  $LIBS"
 
23288
cat >conftest.$ac_ext <<_ACEOF
 
23289
/* confdefs.h.  */
 
23290
_ACEOF
 
23291
cat confdefs.h >>conftest.$ac_ext
 
23292
cat >>conftest.$ac_ext <<_ACEOF
 
23293
/* end confdefs.h.  */
 
23294
 
 
23295
/* Override any gcc2 internal prototype to avoid an error.  */
 
23296
#ifdef __cplusplus
 
23297
extern "C"
 
23298
#endif
 
23299
/* We use char because int might match the return type of a gcc2
 
23300
   builtin and then its argument prototype would still apply.  */
 
23301
char remove ();
 
23302
int
 
23303
main ()
 
23304
{
 
23305
remove ();
 
23306
  ;
 
23307
  return 0;
 
23308
}
 
23309
_ACEOF
 
23310
rm -f conftest.$ac_objext conftest$ac_exeext
 
23311
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23312
  (eval $ac_link) 2>conftest.er1
 
23313
  ac_status=$?
 
23314
  grep -v '^ *+' conftest.er1 >conftest.err
 
23315
  rm -f conftest.er1
 
23316
  cat conftest.err >&5
 
23317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23318
  (exit $ac_status); } &&
 
23319
         { ac_try='test -z "$ac_c_werror_flag"
 
23320
                         || test ! -s conftest.err'
 
23321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23322
  (eval $ac_try) 2>&5
 
23323
  ac_status=$?
 
23324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23325
  (exit $ac_status); }; } &&
 
23326
         { ac_try='test -s conftest$ac_exeext'
 
23327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23328
  (eval $ac_try) 2>&5
 
23329
  ac_status=$?
 
23330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23331
  (exit $ac_status); }; }; then
 
23332
  ac_cv_lib_posix_remove=yes
 
23333
else
 
23334
  echo "$as_me: failed program was:" >&5
 
23335
sed 's/^/| /' conftest.$ac_ext >&5
 
23336
 
 
23337
ac_cv_lib_posix_remove=no
 
23338
fi
 
23339
rm -f conftest.err conftest.$ac_objext \
 
23340
      conftest$ac_exeext conftest.$ac_ext
 
23341
LIBS=$ac_check_lib_save_LIBS
 
23342
fi
 
23343
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
 
23344
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
 
23345
if test $ac_cv_lib_posix_remove = yes; then
 
23346
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 
23347
fi
 
23348
 
 
23349
   fi
 
23350
 
 
23351
   # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
 
23352
   echo "$as_me:$LINENO: checking for shmat" >&5
 
23353
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
 
23354
if test "${ac_cv_func_shmat+set}" = set; then
 
23355
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23356
else
 
23357
  cat >conftest.$ac_ext <<_ACEOF
 
23358
/* confdefs.h.  */
 
23359
_ACEOF
 
23360
cat confdefs.h >>conftest.$ac_ext
 
23361
cat >>conftest.$ac_ext <<_ACEOF
 
23362
/* end confdefs.h.  */
 
23363
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
 
23364
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23365
#define shmat innocuous_shmat
 
23366
 
 
23367
/* System header to define __stub macros and hopefully few prototypes,
 
23368
    which can conflict with char shmat (); below.
 
23369
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23370
    <limits.h> exists even on freestanding compilers.  */
 
23371
 
 
23372
#ifdef __STDC__
 
23373
# include <limits.h>
 
23374
#else
 
23375
# include <assert.h>
 
23376
#endif
 
23377
 
 
23378
#undef shmat
 
23379
 
 
23380
/* Override any gcc2 internal prototype to avoid an error.  */
 
23381
#ifdef __cplusplus
 
23382
extern "C"
 
23383
{
 
23384
#endif
 
23385
/* We use char because int might match the return type of a gcc2
 
23386
   builtin and then its argument prototype would still apply.  */
 
23387
char shmat ();
 
23388
/* The GNU C library defines this for functions which it implements
 
23389
    to always fail with ENOSYS.  Some functions are actually named
 
23390
    something starting with __ and the normal name is an alias.  */
 
23391
#if defined (__stub_shmat) || defined (__stub___shmat)
 
23392
choke me
 
23393
#else
 
23394
char (*f) () = shmat;
 
23395
#endif
 
23396
#ifdef __cplusplus
 
23397
}
 
23398
#endif
 
23399
 
 
23400
int
 
23401
main ()
 
23402
{
 
23403
return f != shmat;
 
23404
  ;
 
23405
  return 0;
 
23406
}
 
23407
_ACEOF
 
23408
rm -f conftest.$ac_objext conftest$ac_exeext
 
23409
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23410
  (eval $ac_link) 2>conftest.er1
 
23411
  ac_status=$?
 
23412
  grep -v '^ *+' conftest.er1 >conftest.err
 
23413
  rm -f conftest.er1
 
23414
  cat conftest.err >&5
 
23415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23416
  (exit $ac_status); } &&
 
23417
         { ac_try='test -z "$ac_c_werror_flag"
 
23418
                         || test ! -s conftest.err'
 
23419
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23420
  (eval $ac_try) 2>&5
 
23421
  ac_status=$?
 
23422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23423
  (exit $ac_status); }; } &&
 
23424
         { ac_try='test -s conftest$ac_exeext'
 
23425
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23426
  (eval $ac_try) 2>&5
 
23427
  ac_status=$?
 
23428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23429
  (exit $ac_status); }; }; then
 
23430
  ac_cv_func_shmat=yes
 
23431
else
 
23432
  echo "$as_me: failed program was:" >&5
 
23433
sed 's/^/| /' conftest.$ac_ext >&5
 
23434
 
 
23435
ac_cv_func_shmat=no
 
23436
fi
 
23437
rm -f conftest.err conftest.$ac_objext \
 
23438
      conftest$ac_exeext conftest.$ac_ext
 
23439
fi
 
23440
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
23441
echo "${ECHO_T}$ac_cv_func_shmat" >&6
 
23442
if test $ac_cv_func_shmat = yes; then
 
23443
  :
 
23444
else
 
23445
  echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
 
23446
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
 
23447
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
 
23448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23449
else
 
23450
  ac_check_lib_save_LIBS=$LIBS
 
23451
LIBS="-lipc  $LIBS"
 
23452
cat >conftest.$ac_ext <<_ACEOF
 
23453
/* confdefs.h.  */
 
23454
_ACEOF
 
23455
cat confdefs.h >>conftest.$ac_ext
 
23456
cat >>conftest.$ac_ext <<_ACEOF
 
23457
/* end confdefs.h.  */
 
23458
 
 
23459
/* Override any gcc2 internal prototype to avoid an error.  */
 
23460
#ifdef __cplusplus
 
23461
extern "C"
 
23462
#endif
 
23463
/* We use char because int might match the return type of a gcc2
 
23464
   builtin and then its argument prototype would still apply.  */
 
23465
char shmat ();
 
23466
int
 
23467
main ()
 
23468
{
 
23469
shmat ();
 
23470
  ;
 
23471
  return 0;
 
23472
}
 
23473
_ACEOF
 
23474
rm -f conftest.$ac_objext conftest$ac_exeext
 
23475
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23476
  (eval $ac_link) 2>conftest.er1
 
23477
  ac_status=$?
 
23478
  grep -v '^ *+' conftest.er1 >conftest.err
 
23479
  rm -f conftest.er1
 
23480
  cat conftest.err >&5
 
23481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23482
  (exit $ac_status); } &&
 
23483
         { ac_try='test -z "$ac_c_werror_flag"
 
23484
                         || test ! -s conftest.err'
 
23485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23486
  (eval $ac_try) 2>&5
 
23487
  ac_status=$?
 
23488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23489
  (exit $ac_status); }; } &&
 
23490
         { ac_try='test -s conftest$ac_exeext'
 
23491
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23492
  (eval $ac_try) 2>&5
 
23493
  ac_status=$?
 
23494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23495
  (exit $ac_status); }; }; then
 
23496
  ac_cv_lib_ipc_shmat=yes
 
23497
else
 
23498
  echo "$as_me: failed program was:" >&5
 
23499
sed 's/^/| /' conftest.$ac_ext >&5
 
23500
 
 
23501
ac_cv_lib_ipc_shmat=no
 
23502
fi
 
23503
rm -f conftest.err conftest.$ac_objext \
 
23504
      conftest$ac_exeext conftest.$ac_ext
 
23505
LIBS=$ac_check_lib_save_LIBS
 
23506
fi
 
23507
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
 
23508
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
 
23509
if test $ac_cv_lib_ipc_shmat = yes; then
 
23510
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 
23511
fi
 
23512
 
 
23513
fi
 
23514
 
 
23515
 
 
23516
   # more headers that need to be explicitly included on darwin
 
23517
 
 
23518
 
 
23519
for ac_header in sys/types.h stdint.h
 
23520
do
 
23521
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
23522
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23523
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23524
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23525
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23526
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23527
fi
 
23528
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23529
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23530
else
 
23531
  # Is the header compilable?
 
23532
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
23533
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
23534
cat >conftest.$ac_ext <<_ACEOF
 
23535
/* confdefs.h.  */
 
23536
_ACEOF
 
23537
cat confdefs.h >>conftest.$ac_ext
 
23538
cat >>conftest.$ac_ext <<_ACEOF
 
23539
/* end confdefs.h.  */
 
23540
$ac_includes_default
 
23541
#include <$ac_header>
 
23542
_ACEOF
 
23543
rm -f conftest.$ac_objext
 
23544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23545
  (eval $ac_compile) 2>conftest.er1
 
23546
  ac_status=$?
 
23547
  grep -v '^ *+' conftest.er1 >conftest.err
 
23548
  rm -f conftest.er1
 
23549
  cat conftest.err >&5
 
23550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23551
  (exit $ac_status); } &&
 
23552
         { ac_try='test -z "$ac_c_werror_flag"
 
23553
                         || test ! -s conftest.err'
 
23554
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23555
  (eval $ac_try) 2>&5
 
23556
  ac_status=$?
 
23557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23558
  (exit $ac_status); }; } &&
 
23559
         { ac_try='test -s conftest.$ac_objext'
 
23560
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23561
  (eval $ac_try) 2>&5
 
23562
  ac_status=$?
 
23563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23564
  (exit $ac_status); }; }; then
 
23565
  ac_header_compiler=yes
 
23566
else
 
23567
  echo "$as_me: failed program was:" >&5
 
23568
sed 's/^/| /' conftest.$ac_ext >&5
 
23569
 
 
23570
ac_header_compiler=no
 
23571
fi
 
23572
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23573
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23574
echo "${ECHO_T}$ac_header_compiler" >&6
 
23575
 
 
23576
# Is the header present?
 
23577
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23578
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
23579
cat >conftest.$ac_ext <<_ACEOF
 
23580
/* confdefs.h.  */
 
23581
_ACEOF
 
23582
cat confdefs.h >>conftest.$ac_ext
 
23583
cat >>conftest.$ac_ext <<_ACEOF
 
23584
/* end confdefs.h.  */
 
23585
#include <$ac_header>
 
23586
_ACEOF
 
23587
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
23588
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23589
  ac_status=$?
 
23590
  grep -v '^ *+' conftest.er1 >conftest.err
 
23591
  rm -f conftest.er1
 
23592
  cat conftest.err >&5
 
23593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23594
  (exit $ac_status); } >/dev/null; then
 
23595
  if test -s conftest.err; then
 
23596
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23597
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
23598
  else
 
23599
    ac_cpp_err=
 
23600
  fi
 
23601
else
 
23602
  ac_cpp_err=yes
 
23603
fi
 
23604
if test -z "$ac_cpp_err"; then
 
23605
  ac_header_preproc=yes
 
23606
else
 
23607
  echo "$as_me: failed program was:" >&5
 
23608
sed 's/^/| /' conftest.$ac_ext >&5
 
23609
 
 
23610
  ac_header_preproc=no
 
23611
fi
 
23612
rm -f conftest.err conftest.$ac_ext
 
23613
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23614
echo "${ECHO_T}$ac_header_preproc" >&6
 
23615
 
 
23616
# So?  What about this header?
 
23617
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23618
  yes:no: )
 
23619
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
23620
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23621
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23622
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23623
    ac_header_preproc=yes
 
23624
    ;;
 
23625
  no:yes:* )
 
23626
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
23627
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
23628
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23629
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23630
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23631
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23632
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23633
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23634
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
23635
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23636
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23637
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
23638
    (
 
23639
      cat <<\_ASBOX
 
23640
## ------------------------------------------ ##
 
23641
## Report this to the AC_PACKAGE_NAME lists.  ##
 
23642
## ------------------------------------------ ##
 
23643
_ASBOX
 
23644
    ) |
 
23645
      sed "s/^/$as_me: WARNING:     /" >&2
 
23646
    ;;
 
23647
esac
 
23648
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23649
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23650
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23651
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23652
else
 
23653
  eval "$as_ac_Header=\$ac_header_preproc"
 
23654
fi
 
23655
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23656
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23657
 
 
23658
fi
 
23659
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
23660
  cat >>confdefs.h <<_ACEOF
 
23661
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
23662
_ACEOF
 
23663
 
 
23664
fi
 
23665
 
 
23666
done
 
23667
 
 
23668
 
 
23669
   # sys/bitypes.h is needed for uint32_t and friends on Tru64
 
23670
 
 
23671
for ac_header in sys/bitypes.h
 
23672
do
 
23673
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
23674
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23675
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23676
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23677
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23678
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23679
fi
 
23680
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23681
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23682
else
 
23683
  # Is the header compilable?
 
23684
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
23685
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
23686
cat >conftest.$ac_ext <<_ACEOF
 
23687
/* confdefs.h.  */
 
23688
_ACEOF
 
23689
cat confdefs.h >>conftest.$ac_ext
 
23690
cat >>conftest.$ac_ext <<_ACEOF
 
23691
/* end confdefs.h.  */
 
23692
$ac_includes_default
 
23693
#include <$ac_header>
 
23694
_ACEOF
 
23695
rm -f conftest.$ac_objext
 
23696
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23697
  (eval $ac_compile) 2>conftest.er1
 
23698
  ac_status=$?
 
23699
  grep -v '^ *+' conftest.er1 >conftest.err
 
23700
  rm -f conftest.er1
 
23701
  cat conftest.err >&5
 
23702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23703
  (exit $ac_status); } &&
 
23704
         { ac_try='test -z "$ac_c_werror_flag"
 
23705
                         || test ! -s conftest.err'
 
23706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23707
  (eval $ac_try) 2>&5
 
23708
  ac_status=$?
 
23709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23710
  (exit $ac_status); }; } &&
 
23711
         { ac_try='test -s conftest.$ac_objext'
 
23712
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23713
  (eval $ac_try) 2>&5
 
23714
  ac_status=$?
 
23715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23716
  (exit $ac_status); }; }; then
 
23717
  ac_header_compiler=yes
 
23718
else
 
23719
  echo "$as_me: failed program was:" >&5
 
23720
sed 's/^/| /' conftest.$ac_ext >&5
 
23721
 
 
23722
ac_header_compiler=no
 
23723
fi
 
23724
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23725
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23726
echo "${ECHO_T}$ac_header_compiler" >&6
 
23727
 
 
23728
# Is the header present?
 
23729
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23730
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
23731
cat >conftest.$ac_ext <<_ACEOF
 
23732
/* confdefs.h.  */
 
23733
_ACEOF
 
23734
cat confdefs.h >>conftest.$ac_ext
 
23735
cat >>conftest.$ac_ext <<_ACEOF
 
23736
/* end confdefs.h.  */
 
23737
#include <$ac_header>
 
23738
_ACEOF
 
23739
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
23740
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23741
  ac_status=$?
 
23742
  grep -v '^ *+' conftest.er1 >conftest.err
 
23743
  rm -f conftest.er1
 
23744
  cat conftest.err >&5
 
23745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23746
  (exit $ac_status); } >/dev/null; then
 
23747
  if test -s conftest.err; then
 
23748
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23749
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
23750
  else
 
23751
    ac_cpp_err=
 
23752
  fi
 
23753
else
 
23754
  ac_cpp_err=yes
 
23755
fi
 
23756
if test -z "$ac_cpp_err"; then
 
23757
  ac_header_preproc=yes
 
23758
else
 
23759
  echo "$as_me: failed program was:" >&5
 
23760
sed 's/^/| /' conftest.$ac_ext >&5
 
23761
 
 
23762
  ac_header_preproc=no
 
23763
fi
 
23764
rm -f conftest.err conftest.$ac_ext
 
23765
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23766
echo "${ECHO_T}$ac_header_preproc" >&6
 
23767
 
 
23768
# So?  What about this header?
 
23769
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23770
  yes:no: )
 
23771
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
23772
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23773
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23774
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23775
    ac_header_preproc=yes
 
23776
    ;;
 
23777
  no:yes:* )
 
23778
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
23779
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
23780
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23781
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23782
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23783
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23784
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23785
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23786
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
23787
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23788
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23789
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
23790
    (
 
23791
      cat <<\_ASBOX
 
23792
## ------------------------------------------ ##
 
23793
## Report this to the AC_PACKAGE_NAME lists.  ##
 
23794
## ------------------------------------------ ##
 
23795
_ASBOX
 
23796
    ) |
 
23797
      sed "s/^/$as_me: WARNING:     /" >&2
 
23798
    ;;
 
23799
esac
 
23800
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23801
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23802
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23803
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23804
else
 
23805
  eval "$as_ac_Header=\$ac_header_preproc"
 
23806
fi
 
23807
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23808
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23809
 
 
23810
fi
 
23811
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
23812
  cat >>confdefs.h <<_ACEOF
 
23813
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
23814
_ACEOF
 
23815
 
 
23816
fi
 
23817
 
 
23818
done
 
23819
 
 
23820
 
 
23821
   # darwin requires a poll emulation library
 
23822
   echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
 
23823
echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
 
23824
if test "${ac_cv_lib_poll_poll+set}" = set; then
 
23825
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23826
else
 
23827
  ac_check_lib_save_LIBS=$LIBS
 
23828
LIBS="-lpoll  $LIBS"
 
23829
cat >conftest.$ac_ext <<_ACEOF
 
23830
/* confdefs.h.  */
 
23831
_ACEOF
 
23832
cat confdefs.h >>conftest.$ac_ext
 
23833
cat >>conftest.$ac_ext <<_ACEOF
 
23834
/* end confdefs.h.  */
 
23835
 
 
23836
/* Override any gcc2 internal prototype to avoid an error.  */
 
23837
#ifdef __cplusplus
 
23838
extern "C"
 
23839
#endif
 
23840
/* We use char because int might match the return type of a gcc2
 
23841
   builtin and then its argument prototype would still apply.  */
 
23842
char poll ();
 
23843
int
 
23844
main ()
 
23845
{
 
23846
poll ();
 
23847
  ;
 
23848
  return 0;
 
23849
}
 
23850
_ACEOF
 
23851
rm -f conftest.$ac_objext conftest$ac_exeext
 
23852
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23853
  (eval $ac_link) 2>conftest.er1
 
23854
  ac_status=$?
 
23855
  grep -v '^ *+' conftest.er1 >conftest.err
 
23856
  rm -f conftest.er1
 
23857
  cat conftest.err >&5
 
23858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23859
  (exit $ac_status); } &&
 
23860
         { ac_try='test -z "$ac_c_werror_flag"
 
23861
                         || test ! -s conftest.err'
 
23862
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23863
  (eval $ac_try) 2>&5
 
23864
  ac_status=$?
 
23865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23866
  (exit $ac_status); }; } &&
 
23867
         { ac_try='test -s conftest$ac_exeext'
 
23868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23869
  (eval $ac_try) 2>&5
 
23870
  ac_status=$?
 
23871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23872
  (exit $ac_status); }; }; then
 
23873
  ac_cv_lib_poll_poll=yes
 
23874
else
 
23875
  echo "$as_me: failed program was:" >&5
 
23876
sed 's/^/| /' conftest.$ac_ext >&5
 
23877
 
 
23878
ac_cv_lib_poll_poll=no
 
23879
fi
 
23880
rm -f conftest.err conftest.$ac_objext \
 
23881
      conftest$ac_exeext conftest.$ac_ext
 
23882
LIBS=$ac_check_lib_save_LIBS
 
23883
fi
 
23884
echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
 
23885
echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
 
23886
if test $ac_cv_lib_poll_poll = yes; then
 
23887
  LIB_POLL="-lpoll"
 
23888
fi
 
23889
 
 
23890
 
 
23891
   # CoreAudio framework
 
23892
   if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 
23893
  echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 
23894
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
 
23895
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 
23896
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23897
fi
 
23898
echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 
23899
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
 
23900
else
 
23901
  # Is the header compilable?
 
23902
echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
 
23903
echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
 
23904
cat >conftest.$ac_ext <<_ACEOF
 
23905
/* confdefs.h.  */
 
23906
_ACEOF
 
23907
cat confdefs.h >>conftest.$ac_ext
 
23908
cat >>conftest.$ac_ext <<_ACEOF
 
23909
/* end confdefs.h.  */
 
23910
$ac_includes_default
 
23911
#include <CoreAudio/CoreAudio.h>
 
23912
_ACEOF
 
23913
rm -f conftest.$ac_objext
 
23914
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23915
  (eval $ac_compile) 2>conftest.er1
 
23916
  ac_status=$?
 
23917
  grep -v '^ *+' conftest.er1 >conftest.err
 
23918
  rm -f conftest.er1
 
23919
  cat conftest.err >&5
 
23920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23921
  (exit $ac_status); } &&
 
23922
         { ac_try='test -z "$ac_c_werror_flag"
 
23923
                         || test ! -s conftest.err'
 
23924
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23925
  (eval $ac_try) 2>&5
 
23926
  ac_status=$?
 
23927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23928
  (exit $ac_status); }; } &&
 
23929
         { ac_try='test -s conftest.$ac_objext'
 
23930
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23931
  (eval $ac_try) 2>&5
 
23932
  ac_status=$?
 
23933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23934
  (exit $ac_status); }; }; then
 
23935
  ac_header_compiler=yes
 
23936
else
 
23937
  echo "$as_me: failed program was:" >&5
 
23938
sed 's/^/| /' conftest.$ac_ext >&5
 
23939
 
 
23940
ac_header_compiler=no
 
23941
fi
 
23942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23943
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23944
echo "${ECHO_T}$ac_header_compiler" >&6
 
23945
 
 
23946
# Is the header present?
 
23947
echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
 
23948
echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
 
23949
cat >conftest.$ac_ext <<_ACEOF
 
23950
/* confdefs.h.  */
 
23951
_ACEOF
 
23952
cat confdefs.h >>conftest.$ac_ext
 
23953
cat >>conftest.$ac_ext <<_ACEOF
 
23954
/* end confdefs.h.  */
 
23955
#include <CoreAudio/CoreAudio.h>
 
23956
_ACEOF
 
23957
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
23958
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23959
  ac_status=$?
 
23960
  grep -v '^ *+' conftest.er1 >conftest.err
 
23961
  rm -f conftest.er1
 
23962
  cat conftest.err >&5
 
23963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23964
  (exit $ac_status); } >/dev/null; then
 
23965
  if test -s conftest.err; then
 
23966
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23967
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
23968
  else
 
23969
    ac_cpp_err=
 
23970
  fi
 
23971
else
 
23972
  ac_cpp_err=yes
 
23973
fi
 
23974
if test -z "$ac_cpp_err"; then
 
23975
  ac_header_preproc=yes
 
23976
else
 
23977
  echo "$as_me: failed program was:" >&5
 
23978
sed 's/^/| /' conftest.$ac_ext >&5
 
23979
 
 
23980
  ac_header_preproc=no
 
23981
fi
 
23982
rm -f conftest.err conftest.$ac_ext
 
23983
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23984
echo "${ECHO_T}$ac_header_preproc" >&6
 
23985
 
 
23986
# So?  What about this header?
 
23987
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23988
  yes:no: )
 
23989
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
23990
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23991
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
 
23992
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
 
23993
    ac_header_preproc=yes
 
23994
    ;;
 
23995
  no:yes:* )
 
23996
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
 
23997
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
 
23998
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
 
23999
echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
 
24000
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
 
24001
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
 
24002
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
 
24003
echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24004
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
 
24005
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
 
24006
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
 
24007
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
 
24008
    (
 
24009
      cat <<\_ASBOX
 
24010
## ------------------------------------------ ##
 
24011
## Report this to the AC_PACKAGE_NAME lists.  ##
 
24012
## ------------------------------------------ ##
 
24013
_ASBOX
 
24014
    ) |
 
24015
      sed "s/^/$as_me: WARNING:     /" >&2
 
24016
    ;;
 
24017
esac
 
24018
echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 
24019
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
 
24020
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 
24021
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24022
else
 
24023
  ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
 
24024
fi
 
24025
echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 
24026
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
 
24027
 
 
24028
fi
 
24029
if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
 
24030
 
 
24031
 
 
24032
cat >>confdefs.h <<\_ACEOF
 
24033
#define HAVE_COREAUDIO 1
 
24034
_ACEOF
 
24035
 
 
24036
     FRAMEWORK_COREAUDIO="-Xlinker -framework -Xlinker CoreAudio"
 
24037
 
 
24038
fi
 
24039
 
 
24040
 
 
24041
 
 
24042
 
 
24043
  echo "$as_me:$LINENO: checking if res_init needs -lresolv" >&5
 
24044
echo $ECHO_N "checking if res_init needs -lresolv... $ECHO_C" >&6
 
24045
  kde_libs_safe="$LIBS"
 
24046
  LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
 
24047
  cat >conftest.$ac_ext <<_ACEOF
 
24048
/* confdefs.h.  */
 
24049
_ACEOF
 
24050
cat confdefs.h >>conftest.$ac_ext
 
24051
cat >>conftest.$ac_ext <<_ACEOF
 
24052
/* end confdefs.h.  */
 
24053
 
 
24054
#include <sys/types.h>
 
24055
#include <netinet/in.h>
 
24056
#include <arpa/nameser.h>
 
24057
#include <resolv.h>
 
24058
 
 
24059
int
 
24060
main ()
 
24061
{
 
24062
 
 
24063
      res_init();
 
24064
 
 
24065
  ;
 
24066
  return 0;
 
24067
}
 
24068
_ACEOF
 
24069
rm -f conftest.$ac_objext conftest$ac_exeext
 
24070
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24071
  (eval $ac_link) 2>conftest.er1
 
24072
  ac_status=$?
 
24073
  grep -v '^ *+' conftest.er1 >conftest.err
 
24074
  rm -f conftest.er1
 
24075
  cat conftest.err >&5
 
24076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24077
  (exit $ac_status); } &&
 
24078
         { ac_try='test -z "$ac_c_werror_flag"
 
24079
                         || test ! -s conftest.err'
 
24080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24081
  (eval $ac_try) 2>&5
 
24082
  ac_status=$?
 
24083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24084
  (exit $ac_status); }; } &&
 
24085
         { ac_try='test -s conftest$ac_exeext'
 
24086
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24087
  (eval $ac_try) 2>&5
 
24088
  ac_status=$?
 
24089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24090
  (exit $ac_status); }; }; then
 
24091
 
 
24092
      LIBRESOLV="-lresolv"
 
24093
      echo "$as_me:$LINENO: result: yes" >&5
 
24094
echo "${ECHO_T}yes" >&6
 
24095
 
 
24096
cat >>confdefs.h <<\_ACEOF
 
24097
#define HAVE_RES_INIT 1
 
24098
_ACEOF
 
24099
 
 
24100
 
 
24101
else
 
24102
  echo "$as_me: failed program was:" >&5
 
24103
sed 's/^/| /' conftest.$ac_ext >&5
 
24104
 
 
24105
 echo "$as_me:$LINENO: result: no" >&5
 
24106
echo "${ECHO_T}no" >&6
 
24107
 
 
24108
fi
 
24109
rm -f conftest.err conftest.$ac_objext \
 
24110
      conftest$ac_exeext conftest.$ac_ext
 
24111
  LIBS=$kde_libs_safe
 
24112
 
 
24113
 
 
24114
 
 
24115
echo "$as_me:$LINENO: checking for res_init" >&5
 
24116
echo $ECHO_N "checking for res_init... $ECHO_C" >&6
 
24117
if test "${kde_cv_func_res_init+set}" = set; then
 
24118
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24119
else
 
24120
 
 
24121
 
 
24122
 
 
24123
 ac_ext=cc
 
24124
ac_cpp='$CXXCPP $CPPFLAGS'
 
24125
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
24126
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
24127
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
24128
 
 
24129
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
24130
 
 
24131
 
 
24132
save_CXXFLAGS="$CXXFLAGS"
 
24133
kde_safe_LIBS="$LIBS"
 
24134
LIBS="$LIBS $X_EXTRA_LIBS"
 
24135
if test "$GXX" = "yes"; then
 
24136
CXXFLAGS="$CXXFLAGS -pedantic-errors"
 
24137
fi
 
24138
cat >conftest.$ac_ext <<_ACEOF
 
24139
/* confdefs.h.  */
 
24140
_ACEOF
 
24141
cat confdefs.h >>conftest.$ac_ext
 
24142
cat >>conftest.$ac_ext <<_ACEOF
 
24143
/* end confdefs.h.  */
 
24144
 
 
24145
 
 
24146
#include <sys/types.h>
 
24147
#include <netinet/in.h>
 
24148
#include <arpa/nameser.h>
 
24149
#include <resolv.h>
 
24150
 
 
24151
 
 
24152
int
 
24153
main ()
 
24154
{
 
24155
 
 
24156
res_init()
 
24157
 
 
24158
  ;
 
24159
  return 0;
 
24160
}
 
24161
_ACEOF
 
24162
rm -f conftest.$ac_objext
 
24163
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24164
  (eval $ac_compile) 2>conftest.er1
 
24165
  ac_status=$?
 
24166
  grep -v '^ *+' conftest.er1 >conftest.err
 
24167
  rm -f conftest.er1
 
24168
  cat conftest.err >&5
 
24169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24170
  (exit $ac_status); } &&
 
24171
         { ac_try='test -z "$ac_cxx_werror_flag"
 
24172
                         || test ! -s conftest.err'
 
24173
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24174
  (eval $ac_try) 2>&5
 
24175
  ac_status=$?
 
24176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24177
  (exit $ac_status); }; } &&
 
24178
         { ac_try='test -s conftest.$ac_objext'
 
24179
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24180
  (eval $ac_try) 2>&5
 
24181
  ac_status=$?
 
24182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24183
  (exit $ac_status); }; }; then
 
24184
  kde_cv_func_res_init=yes
 
24185
else
 
24186
  echo "$as_me: failed program was:" >&5
 
24187
sed 's/^/| /' conftest.$ac_ext >&5
 
24188
 
 
24189
kde_cv_func_res_init=no
 
24190
fi
 
24191
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24192
CXXFLAGS="$save_CXXFLAGS"
 
24193
LIBS="$kde_safe_LIBS"
 
24194
ac_ext=c
 
24195
ac_cpp='$CPP $CPPFLAGS'
 
24196
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
24197
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
24198
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
24199
 
 
24200
 
 
24201
fi
 
24202
 
 
24203
 
 
24204
echo "$as_me:$LINENO: result: $kde_cv_func_res_init" >&5
 
24205
echo "${ECHO_T}$kde_cv_func_res_init" >&6
 
24206
 
 
24207
echo "$as_me:$LINENO: checking if res_init needs custom prototype" >&5
 
24208
echo $ECHO_N "checking if res_init needs custom prototype... $ECHO_C" >&6
 
24209
if test "${kde_cv_proto_res_init+set}" = set; then
 
24210
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24211
else
 
24212
 
 
24213
if test "x$kde_cv_func_res_init" = xyes; then
 
24214
  kde_cv_proto_res_init=no
 
24215
else
 
24216
  case "res_init" in
 
24217
        setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
 
24218
                kde_cv_proto_res_init="yes - in libkdefakes"
 
24219
                ;;
 
24220
        *)
 
24221
                kde_cv_proto_res_init=unknown
 
24222
                ;;
 
24223
  esac
 
24224
fi
 
24225
 
 
24226
if test "x$kde_cv_proto_res_init" = xunknown; then
 
24227
 
 
24228
 
 
24229
 
 
24230
 ac_ext=cc
 
24231
ac_cpp='$CXXCPP $CPPFLAGS'
 
24232
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
24233
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
24234
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
24235
 
 
24236
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
24237
 
 
24238
 
 
24239
  kde_safe_libs=$LIBS
 
24240
  LIBS="$LIBS $X_EXTRA_LIBS"
 
24241
  cat >conftest.$ac_ext <<_ACEOF
 
24242
/* confdefs.h.  */
 
24243
_ACEOF
 
24244
cat confdefs.h >>conftest.$ac_ext
 
24245
cat >>conftest.$ac_ext <<_ACEOF
 
24246
/* end confdefs.h.  */
 
24247
 
 
24248
 
 
24249
#include <sys/types.h>
 
24250
#include <netinet/in.h>
 
24251
#include <arpa/nameser.h>
 
24252
#include <resolv.h>
 
24253
 
 
24254
 
 
24255
extern "C" int res_init(void);
 
24256
 
 
24257
int
 
24258
main ()
 
24259
{
 
24260
 
 
24261
res_init()
 
24262
 
 
24263
  ;
 
24264
  return 0;
 
24265
}
 
24266
_ACEOF
 
24267
rm -f conftest.$ac_objext conftest$ac_exeext
 
24268
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24269
  (eval $ac_link) 2>conftest.er1
 
24270
  ac_status=$?
 
24271
  grep -v '^ *+' conftest.er1 >conftest.err
 
24272
  rm -f conftest.er1
 
24273
  cat conftest.err >&5
 
24274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24275
  (exit $ac_status); } &&
 
24276
         { ac_try='test -z "$ac_cxx_werror_flag"
 
24277
                         || test ! -s conftest.err'
 
24278
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24279
  (eval $ac_try) 2>&5
 
24280
  ac_status=$?
 
24281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24282
  (exit $ac_status); }; } &&
 
24283
         { ac_try='test -s conftest$ac_exeext'
 
24284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24285
  (eval $ac_try) 2>&5
 
24286
  ac_status=$?
 
24287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24288
  (exit $ac_status); }; }; then
 
24289
   kde_cv_func_res_init=yes
 
24290
  kde_cv_proto_res_init=yes
 
24291
else
 
24292
  echo "$as_me: failed program was:" >&5
 
24293
sed 's/^/| /' conftest.$ac_ext >&5
 
24294
 
 
24295
kde_cv_proto_res_init="res_init unavailable"
 
24296
 
 
24297
fi
 
24298
rm -f conftest.err conftest.$ac_objext \
 
24299
      conftest$ac_exeext conftest.$ac_ext
 
24300
LIBS=$kde_safe_libs
 
24301
ac_ext=c
 
24302
ac_cpp='$CPP $CPPFLAGS'
 
24303
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
24304
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
24305
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
24306
 
 
24307
fi
 
24308
 
 
24309
fi
 
24310
 
 
24311
echo "$as_me:$LINENO: result: $kde_cv_proto_res_init" >&5
 
24312
echo "${ECHO_T}$kde_cv_proto_res_init" >&6
 
24313
 
 
24314
if test "x$kde_cv_func_res_init" = xyes; then
 
24315
 
 
24316
cat >>confdefs.h <<\_ACEOF
 
24317
#define HAVE_RES_INIT 1
 
24318
_ACEOF
 
24319
 
 
24320
 
 
24321
fi
 
24322
if test "x$kde_cv_proto_res_init" = xno; then
 
24323
 
 
24324
cat >>confdefs.h <<\_ACEOF
 
24325
#define HAVE_RES_INIT_PROTO 1
 
24326
_ACEOF
 
24327
 
 
24328
fi
 
24329
 
 
24330
 
 
24331
 
 
24332
 
 
24333
 
 
24334
 
 
24335
 
 
24336
   LIBSOCKET="$X_EXTRA_LIBS"
 
24337
 
 
24338
 
 
24339
   echo "$as_me:$LINENO: checking for killpg in -lucb" >&5
 
24340
echo $ECHO_N "checking for killpg in -lucb... $ECHO_C" >&6
 
24341
if test "${ac_cv_lib_ucb_killpg+set}" = set; then
 
24342
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24343
else
 
24344
  ac_check_lib_save_LIBS=$LIBS
 
24345
LIBS="-lucb  $LIBS"
 
24346
cat >conftest.$ac_ext <<_ACEOF
 
24347
/* confdefs.h.  */
 
24348
_ACEOF
 
24349
cat confdefs.h >>conftest.$ac_ext
 
24350
cat >>conftest.$ac_ext <<_ACEOF
 
24351
/* end confdefs.h.  */
 
24352
 
 
24353
/* Override any gcc2 internal prototype to avoid an error.  */
 
24354
#ifdef __cplusplus
 
24355
extern "C"
 
24356
#endif
 
24357
/* We use char because int might match the return type of a gcc2
 
24358
   builtin and then its argument prototype would still apply.  */
 
24359
char killpg ();
 
24360
int
 
24361
main ()
 
24362
{
 
24363
killpg ();
 
24364
  ;
 
24365
  return 0;
 
24366
}
 
24367
_ACEOF
 
24368
rm -f conftest.$ac_objext conftest$ac_exeext
 
24369
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24370
  (eval $ac_link) 2>conftest.er1
 
24371
  ac_status=$?
 
24372
  grep -v '^ *+' conftest.er1 >conftest.err
 
24373
  rm -f conftest.er1
 
24374
  cat conftest.err >&5
 
24375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24376
  (exit $ac_status); } &&
 
24377
         { ac_try='test -z "$ac_c_werror_flag"
 
24378
                         || test ! -s conftest.err'
 
24379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24380
  (eval $ac_try) 2>&5
 
24381
  ac_status=$?
 
24382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24383
  (exit $ac_status); }; } &&
 
24384
         { ac_try='test -s conftest$ac_exeext'
 
24385
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24386
  (eval $ac_try) 2>&5
 
24387
  ac_status=$?
 
24388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24389
  (exit $ac_status); }; }; then
 
24390
  ac_cv_lib_ucb_killpg=yes
 
24391
else
 
24392
  echo "$as_me: failed program was:" >&5
 
24393
sed 's/^/| /' conftest.$ac_ext >&5
 
24394
 
 
24395
ac_cv_lib_ucb_killpg=no
 
24396
fi
 
24397
rm -f conftest.err conftest.$ac_objext \
 
24398
      conftest$ac_exeext conftest.$ac_ext
 
24399
LIBS=$ac_check_lib_save_LIBS
 
24400
fi
 
24401
echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5
 
24402
echo "${ECHO_T}$ac_cv_lib_ucb_killpg" >&6
 
24403
if test $ac_cv_lib_ucb_killpg = yes; then
 
24404
  LIBUCB="-lucb"
 
24405
fi
 
24406
 
 
24407
 
 
24408
   case $host in     *-*-lynxos* )
 
24409
        echo "$as_me:$LINENO: checking LynxOS header file wrappers" >&5
 
24410
echo $ECHO_N "checking LynxOS header file wrappers... $ECHO_C" >&6
 
24411
        CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
 
24412
        echo "$as_me:$LINENO: result: disabled" >&5
 
24413
echo "${ECHO_T}disabled" >&6
 
24414
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
 
24415
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
 
24416
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
 
24417
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24418
else
 
24419
  ac_check_lib_save_LIBS=$LIBS
 
24420
LIBS="-lbsd  $LIBS"
 
24421
cat >conftest.$ac_ext <<_ACEOF
 
24422
/* confdefs.h.  */
 
24423
_ACEOF
 
24424
cat confdefs.h >>conftest.$ac_ext
 
24425
cat >>conftest.$ac_ext <<_ACEOF
 
24426
/* end confdefs.h.  */
 
24427
 
 
24428
/* Override any gcc2 internal prototype to avoid an error.  */
 
24429
#ifdef __cplusplus
 
24430
extern "C"
 
24431
#endif
 
24432
/* We use char because int might match the return type of a gcc2
 
24433
   builtin and then its argument prototype would still apply.  */
 
24434
char gethostbyname ();
 
24435
int
 
24436
main ()
 
24437
{
 
24438
gethostbyname ();
 
24439
  ;
 
24440
  return 0;
 
24441
}
 
24442
_ACEOF
 
24443
rm -f conftest.$ac_objext conftest$ac_exeext
 
24444
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24445
  (eval $ac_link) 2>conftest.er1
 
24446
  ac_status=$?
 
24447
  grep -v '^ *+' conftest.er1 >conftest.err
 
24448
  rm -f conftest.er1
 
24449
  cat conftest.err >&5
 
24450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24451
  (exit $ac_status); } &&
 
24452
         { ac_try='test -z "$ac_c_werror_flag"
 
24453
                         || test ! -s conftest.err'
 
24454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24455
  (eval $ac_try) 2>&5
 
24456
  ac_status=$?
 
24457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24458
  (exit $ac_status); }; } &&
 
24459
         { ac_try='test -s conftest$ac_exeext'
 
24460
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24461
  (eval $ac_try) 2>&5
 
24462
  ac_status=$?
 
24463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24464
  (exit $ac_status); }; }; then
 
24465
  ac_cv_lib_bsd_gethostbyname=yes
 
24466
else
 
24467
  echo "$as_me: failed program was:" >&5
 
24468
sed 's/^/| /' conftest.$ac_ext >&5
 
24469
 
 
24470
ac_cv_lib_bsd_gethostbyname=no
 
24471
fi
 
24472
rm -f conftest.err conftest.$ac_objext \
 
24473
      conftest$ac_exeext conftest.$ac_ext
 
24474
LIBS=$ac_check_lib_save_LIBS
 
24475
fi
 
24476
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
24477
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
 
24478
if test $ac_cv_lib_bsd_gethostbyname = yes; then
 
24479
  LIBSOCKET="-lbsd"
 
24480
fi
 
24481
          ;;
 
24482
    esac
 
24483
 
 
24484
     echo "$as_me:$LINENO: checking for int" >&5
 
24485
echo $ECHO_N "checking for int... $ECHO_C" >&6
 
24486
if test "${ac_cv_type_int+set}" = set; then
 
24487
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24488
else
 
24489
  cat >conftest.$ac_ext <<_ACEOF
 
24490
/* confdefs.h.  */
 
24491
_ACEOF
 
24492
cat confdefs.h >>conftest.$ac_ext
 
24493
cat >>conftest.$ac_ext <<_ACEOF
 
24494
/* end confdefs.h.  */
 
24495
$ac_includes_default
 
24496
int
 
24497
main ()
 
24498
{
 
24499
if ((int *) 0)
 
24500
  return 0;
 
24501
if (sizeof (int))
 
24502
  return 0;
 
24503
  ;
 
24504
  return 0;
 
24505
}
 
24506
_ACEOF
 
24507
rm -f conftest.$ac_objext
 
24508
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24509
  (eval $ac_compile) 2>conftest.er1
 
24510
  ac_status=$?
 
24511
  grep -v '^ *+' conftest.er1 >conftest.err
 
24512
  rm -f conftest.er1
 
24513
  cat conftest.err >&5
 
24514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24515
  (exit $ac_status); } &&
 
24516
         { ac_try='test -z "$ac_c_werror_flag"
 
24517
                         || test ! -s conftest.err'
 
24518
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24519
  (eval $ac_try) 2>&5
 
24520
  ac_status=$?
 
24521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24522
  (exit $ac_status); }; } &&
 
24523
         { ac_try='test -s conftest.$ac_objext'
 
24524
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24525
  (eval $ac_try) 2>&5
 
24526
  ac_status=$?
 
24527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24528
  (exit $ac_status); }; }; then
 
24529
  ac_cv_type_int=yes
 
24530
else
 
24531
  echo "$as_me: failed program was:" >&5
 
24532
sed 's/^/| /' conftest.$ac_ext >&5
 
24533
 
 
24534
ac_cv_type_int=no
 
24535
fi
 
24536
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24537
fi
 
24538
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
24539
echo "${ECHO_T}$ac_cv_type_int" >&6
 
24540
 
 
24541
echo "$as_me:$LINENO: checking size of int" >&5
 
24542
echo $ECHO_N "checking size of int... $ECHO_C" >&6
 
24543
if test "${ac_cv_sizeof_int+set}" = set; then
 
24544
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24545
else
 
24546
  if test "$ac_cv_type_int" = yes; then
 
24547
  # The cast to unsigned long works around a bug in the HP C Compiler
 
24548
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
24549
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
24550
  # This bug is HP SR number 8606223364.
 
24551
  if test "$cross_compiling" = yes; then
 
24552
  # Depending upon the size, compute the lo and hi bounds.
 
24553
cat >conftest.$ac_ext <<_ACEOF
 
24554
/* confdefs.h.  */
 
24555
_ACEOF
 
24556
cat confdefs.h >>conftest.$ac_ext
 
24557
cat >>conftest.$ac_ext <<_ACEOF
 
24558
/* end confdefs.h.  */
 
24559
$ac_includes_default
 
24560
int
 
24561
main ()
 
24562
{
 
24563
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
 
24564
test_array [0] = 0
 
24565
 
 
24566
  ;
 
24567
  return 0;
 
24568
}
 
24569
_ACEOF
 
24570
rm -f conftest.$ac_objext
 
24571
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24572
  (eval $ac_compile) 2>conftest.er1
 
24573
  ac_status=$?
 
24574
  grep -v '^ *+' conftest.er1 >conftest.err
 
24575
  rm -f conftest.er1
 
24576
  cat conftest.err >&5
 
24577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24578
  (exit $ac_status); } &&
 
24579
         { ac_try='test -z "$ac_c_werror_flag"
 
24580
                         || test ! -s conftest.err'
 
24581
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24582
  (eval $ac_try) 2>&5
 
24583
  ac_status=$?
 
24584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24585
  (exit $ac_status); }; } &&
 
24586
         { ac_try='test -s conftest.$ac_objext'
 
24587
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24588
  (eval $ac_try) 2>&5
 
24589
  ac_status=$?
 
24590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24591
  (exit $ac_status); }; }; then
 
24592
  ac_lo=0 ac_mid=0
 
24593
  while :; do
 
24594
    cat >conftest.$ac_ext <<_ACEOF
 
24595
/* confdefs.h.  */
 
24596
_ACEOF
 
24597
cat confdefs.h >>conftest.$ac_ext
 
24598
cat >>conftest.$ac_ext <<_ACEOF
 
24599
/* end confdefs.h.  */
 
24600
$ac_includes_default
 
24601
int
 
24602
main ()
 
24603
{
 
24604
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
24605
test_array [0] = 0
 
24606
 
 
24607
  ;
 
24608
  return 0;
 
24609
}
 
24610
_ACEOF
 
24611
rm -f conftest.$ac_objext
 
24612
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24613
  (eval $ac_compile) 2>conftest.er1
 
24614
  ac_status=$?
 
24615
  grep -v '^ *+' conftest.er1 >conftest.err
 
24616
  rm -f conftest.er1
 
24617
  cat conftest.err >&5
 
24618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24619
  (exit $ac_status); } &&
 
24620
         { ac_try='test -z "$ac_c_werror_flag"
 
24621
                         || test ! -s conftest.err'
 
24622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24623
  (eval $ac_try) 2>&5
 
24624
  ac_status=$?
 
24625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24626
  (exit $ac_status); }; } &&
 
24627
         { ac_try='test -s conftest.$ac_objext'
 
24628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24629
  (eval $ac_try) 2>&5
 
24630
  ac_status=$?
 
24631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24632
  (exit $ac_status); }; }; then
 
24633
  ac_hi=$ac_mid; break
 
24634
else
 
24635
  echo "$as_me: failed program was:" >&5
 
24636
sed 's/^/| /' conftest.$ac_ext >&5
 
24637
 
 
24638
ac_lo=`expr $ac_mid + 1`
 
24639
                    if test $ac_lo -le $ac_mid; then
 
24640
                      ac_lo= ac_hi=
 
24641
                      break
 
24642
                    fi
 
24643
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
24644
fi
 
24645
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24646
  done
 
24647
else
 
24648
  echo "$as_me: failed program was:" >&5
 
24649
sed 's/^/| /' conftest.$ac_ext >&5
 
24650
 
 
24651
cat >conftest.$ac_ext <<_ACEOF
 
24652
/* confdefs.h.  */
 
24653
_ACEOF
 
24654
cat confdefs.h >>conftest.$ac_ext
 
24655
cat >>conftest.$ac_ext <<_ACEOF
 
24656
/* end confdefs.h.  */
 
24657
$ac_includes_default
 
24658
int
 
24659
main ()
 
24660
{
 
24661
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
 
24662
test_array [0] = 0
 
24663
 
 
24664
  ;
 
24665
  return 0;
 
24666
}
 
24667
_ACEOF
 
24668
rm -f conftest.$ac_objext
 
24669
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24670
  (eval $ac_compile) 2>conftest.er1
 
24671
  ac_status=$?
 
24672
  grep -v '^ *+' conftest.er1 >conftest.err
 
24673
  rm -f conftest.er1
 
24674
  cat conftest.err >&5
 
24675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24676
  (exit $ac_status); } &&
 
24677
         { ac_try='test -z "$ac_c_werror_flag"
 
24678
                         || test ! -s conftest.err'
 
24679
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24680
  (eval $ac_try) 2>&5
 
24681
  ac_status=$?
 
24682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24683
  (exit $ac_status); }; } &&
 
24684
         { ac_try='test -s conftest.$ac_objext'
 
24685
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24686
  (eval $ac_try) 2>&5
 
24687
  ac_status=$?
 
24688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24689
  (exit $ac_status); }; }; then
 
24690
  ac_hi=-1 ac_mid=-1
 
24691
  while :; do
 
24692
    cat >conftest.$ac_ext <<_ACEOF
 
24693
/* confdefs.h.  */
 
24694
_ACEOF
 
24695
cat confdefs.h >>conftest.$ac_ext
 
24696
cat >>conftest.$ac_ext <<_ACEOF
 
24697
/* end confdefs.h.  */
 
24698
$ac_includes_default
 
24699
int
 
24700
main ()
 
24701
{
 
24702
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
 
24703
test_array [0] = 0
 
24704
 
 
24705
  ;
 
24706
  return 0;
 
24707
}
 
24708
_ACEOF
 
24709
rm -f conftest.$ac_objext
 
24710
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24711
  (eval $ac_compile) 2>conftest.er1
 
24712
  ac_status=$?
 
24713
  grep -v '^ *+' conftest.er1 >conftest.err
 
24714
  rm -f conftest.er1
 
24715
  cat conftest.err >&5
 
24716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24717
  (exit $ac_status); } &&
 
24718
         { ac_try='test -z "$ac_c_werror_flag"
 
24719
                         || test ! -s conftest.err'
 
24720
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24721
  (eval $ac_try) 2>&5
 
24722
  ac_status=$?
 
24723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24724
  (exit $ac_status); }; } &&
 
24725
         { ac_try='test -s conftest.$ac_objext'
 
24726
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24727
  (eval $ac_try) 2>&5
 
24728
  ac_status=$?
 
24729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24730
  (exit $ac_status); }; }; then
 
24731
  ac_lo=$ac_mid; break
 
24732
else
 
24733
  echo "$as_me: failed program was:" >&5
 
24734
sed 's/^/| /' conftest.$ac_ext >&5
 
24735
 
 
24736
ac_hi=`expr '(' $ac_mid ')' - 1`
 
24737
                       if test $ac_mid -le $ac_hi; then
 
24738
                         ac_lo= ac_hi=
 
24739
                         break
 
24740
                       fi
 
24741
                       ac_mid=`expr 2 '*' $ac_mid`
 
24742
fi
 
24743
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24744
  done
 
24745
else
 
24746
  echo "$as_me: failed program was:" >&5
 
24747
sed 's/^/| /' conftest.$ac_ext >&5
 
24748
 
 
24749
ac_lo= ac_hi=
 
24750
fi
 
24751
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24752
fi
 
24753
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24754
# Binary search between lo and hi bounds.
 
24755
while test "x$ac_lo" != "x$ac_hi"; do
 
24756
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
24757
  cat >conftest.$ac_ext <<_ACEOF
 
24758
/* confdefs.h.  */
 
24759
_ACEOF
 
24760
cat confdefs.h >>conftest.$ac_ext
 
24761
cat >>conftest.$ac_ext <<_ACEOF
 
24762
/* end confdefs.h.  */
 
24763
$ac_includes_default
 
24764
int
 
24765
main ()
 
24766
{
 
24767
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
24768
test_array [0] = 0
 
24769
 
 
24770
  ;
 
24771
  return 0;
 
24772
}
 
24773
_ACEOF
 
24774
rm -f conftest.$ac_objext
 
24775
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24776
  (eval $ac_compile) 2>conftest.er1
 
24777
  ac_status=$?
 
24778
  grep -v '^ *+' conftest.er1 >conftest.err
 
24779
  rm -f conftest.er1
 
24780
  cat conftest.err >&5
 
24781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24782
  (exit $ac_status); } &&
 
24783
         { ac_try='test -z "$ac_c_werror_flag"
 
24784
                         || test ! -s conftest.err'
 
24785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24786
  (eval $ac_try) 2>&5
 
24787
  ac_status=$?
 
24788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24789
  (exit $ac_status); }; } &&
 
24790
         { ac_try='test -s conftest.$ac_objext'
 
24791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24792
  (eval $ac_try) 2>&5
 
24793
  ac_status=$?
 
24794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24795
  (exit $ac_status); }; }; then
 
24796
  ac_hi=$ac_mid
 
24797
else
 
24798
  echo "$as_me: failed program was:" >&5
 
24799
sed 's/^/| /' conftest.$ac_ext >&5
 
24800
 
 
24801
ac_lo=`expr '(' $ac_mid ')' + 1`
 
24802
fi
 
24803
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24804
done
 
24805
case $ac_lo in
 
24806
?*) ac_cv_sizeof_int=$ac_lo;;
 
24807
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
24808
See \`config.log' for more details." >&5
 
24809
echo "$as_me: error: cannot compute sizeof (int), 77
 
24810
See \`config.log' for more details." >&2;}
 
24811
   { (exit 1); exit 1; }; } ;;
 
24812
esac
 
24813
else
 
24814
  if test "$cross_compiling" = yes; then
 
24815
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
24816
See \`config.log' for more details." >&5
 
24817
echo "$as_me: error: cannot run test program while cross compiling
 
24818
See \`config.log' for more details." >&2;}
 
24819
   { (exit 1); exit 1; }; }
 
24820
else
 
24821
  cat >conftest.$ac_ext <<_ACEOF
 
24822
/* confdefs.h.  */
 
24823
_ACEOF
 
24824
cat confdefs.h >>conftest.$ac_ext
 
24825
cat >>conftest.$ac_ext <<_ACEOF
 
24826
/* end confdefs.h.  */
 
24827
$ac_includes_default
 
24828
long longval () { return (long) (sizeof (int)); }
 
24829
unsigned long ulongval () { return (long) (sizeof (int)); }
 
24830
#include <stdio.h>
 
24831
#include <stdlib.h>
 
24832
int
 
24833
main ()
 
24834
{
 
24835
 
 
24836
  FILE *f = fopen ("conftest.val", "w");
 
24837
  if (! f)
 
24838
    exit (1);
 
24839
  if (((long) (sizeof (int))) < 0)
 
24840
    {
 
24841
      long i = longval ();
 
24842
      if (i != ((long) (sizeof (int))))
 
24843
        exit (1);
 
24844
      fprintf (f, "%ld\n", i);
 
24845
    }
 
24846
  else
 
24847
    {
 
24848
      unsigned long i = ulongval ();
 
24849
      if (i != ((long) (sizeof (int))))
 
24850
        exit (1);
 
24851
      fprintf (f, "%lu\n", i);
 
24852
    }
 
24853
  exit (ferror (f) || fclose (f) != 0);
 
24854
 
 
24855
  ;
 
24856
  return 0;
 
24857
}
 
24858
_ACEOF
 
24859
rm -f conftest$ac_exeext
 
24860
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24861
  (eval $ac_link) 2>&5
 
24862
  ac_status=$?
 
24863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24864
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24865
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24866
  (eval $ac_try) 2>&5
 
24867
  ac_status=$?
 
24868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24869
  (exit $ac_status); }; }; then
 
24870
  ac_cv_sizeof_int=`cat conftest.val`
 
24871
else
 
24872
  echo "$as_me: program exited with status $ac_status" >&5
 
24873
echo "$as_me: failed program was:" >&5
 
24874
sed 's/^/| /' conftest.$ac_ext >&5
 
24875
 
 
24876
( exit $ac_status )
 
24877
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
24878
See \`config.log' for more details." >&5
 
24879
echo "$as_me: error: cannot compute sizeof (int), 77
 
24880
See \`config.log' for more details." >&2;}
 
24881
   { (exit 1); exit 1; }; }
 
24882
fi
 
24883
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24884
fi
 
24885
fi
 
24886
rm -f conftest.val
 
24887
else
 
24888
  ac_cv_sizeof_int=0
 
24889
fi
 
24890
fi
 
24891
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
24892
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
 
24893
cat >>confdefs.h <<_ACEOF
 
24894
#define SIZEOF_INT $ac_cv_sizeof_int
 
24895
_ACEOF
 
24896
 
 
24897
   echo "$as_me:$LINENO: checking for short" >&5
 
24898
echo $ECHO_N "checking for short... $ECHO_C" >&6
 
24899
if test "${ac_cv_type_short+set}" = set; then
 
24900
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24901
else
 
24902
  cat >conftest.$ac_ext <<_ACEOF
 
24903
/* confdefs.h.  */
 
24904
_ACEOF
 
24905
cat confdefs.h >>conftest.$ac_ext
 
24906
cat >>conftest.$ac_ext <<_ACEOF
 
24907
/* end confdefs.h.  */
 
24908
$ac_includes_default
 
24909
int
 
24910
main ()
 
24911
{
 
24912
if ((short *) 0)
 
24913
  return 0;
 
24914
if (sizeof (short))
 
24915
  return 0;
 
24916
  ;
 
24917
  return 0;
 
24918
}
 
24919
_ACEOF
 
24920
rm -f conftest.$ac_objext
 
24921
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24922
  (eval $ac_compile) 2>conftest.er1
 
24923
  ac_status=$?
 
24924
  grep -v '^ *+' conftest.er1 >conftest.err
 
24925
  rm -f conftest.er1
 
24926
  cat conftest.err >&5
 
24927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24928
  (exit $ac_status); } &&
 
24929
         { ac_try='test -z "$ac_c_werror_flag"
 
24930
                         || test ! -s conftest.err'
 
24931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24932
  (eval $ac_try) 2>&5
 
24933
  ac_status=$?
 
24934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24935
  (exit $ac_status); }; } &&
 
24936
         { ac_try='test -s conftest.$ac_objext'
 
24937
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24938
  (eval $ac_try) 2>&5
 
24939
  ac_status=$?
 
24940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24941
  (exit $ac_status); }; }; then
 
24942
  ac_cv_type_short=yes
 
24943
else
 
24944
  echo "$as_me: failed program was:" >&5
 
24945
sed 's/^/| /' conftest.$ac_ext >&5
 
24946
 
 
24947
ac_cv_type_short=no
 
24948
fi
 
24949
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24950
fi
 
24951
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
 
24952
echo "${ECHO_T}$ac_cv_type_short" >&6
 
24953
 
 
24954
echo "$as_me:$LINENO: checking size of short" >&5
 
24955
echo $ECHO_N "checking size of short... $ECHO_C" >&6
 
24956
if test "${ac_cv_sizeof_short+set}" = set; then
 
24957
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24958
else
 
24959
  if test "$ac_cv_type_short" = yes; then
 
24960
  # The cast to unsigned long works around a bug in the HP C Compiler
 
24961
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
24962
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
24963
  # This bug is HP SR number 8606223364.
 
24964
  if test "$cross_compiling" = yes; then
 
24965
  # Depending upon the size, compute the lo and hi bounds.
 
24966
cat >conftest.$ac_ext <<_ACEOF
 
24967
/* confdefs.h.  */
 
24968
_ACEOF
 
24969
cat confdefs.h >>conftest.$ac_ext
 
24970
cat >>conftest.$ac_ext <<_ACEOF
 
24971
/* end confdefs.h.  */
 
24972
$ac_includes_default
 
24973
int
 
24974
main ()
 
24975
{
 
24976
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
 
24977
test_array [0] = 0
 
24978
 
 
24979
  ;
 
24980
  return 0;
 
24981
}
 
24982
_ACEOF
 
24983
rm -f conftest.$ac_objext
 
24984
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24985
  (eval $ac_compile) 2>conftest.er1
 
24986
  ac_status=$?
 
24987
  grep -v '^ *+' conftest.er1 >conftest.err
 
24988
  rm -f conftest.er1
 
24989
  cat conftest.err >&5
 
24990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24991
  (exit $ac_status); } &&
 
24992
         { ac_try='test -z "$ac_c_werror_flag"
 
24993
                         || test ! -s conftest.err'
 
24994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24995
  (eval $ac_try) 2>&5
 
24996
  ac_status=$?
 
24997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24998
  (exit $ac_status); }; } &&
 
24999
         { ac_try='test -s conftest.$ac_objext'
 
25000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25001
  (eval $ac_try) 2>&5
 
25002
  ac_status=$?
 
25003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25004
  (exit $ac_status); }; }; then
 
25005
  ac_lo=0 ac_mid=0
 
25006
  while :; do
 
25007
    cat >conftest.$ac_ext <<_ACEOF
 
25008
/* confdefs.h.  */
 
25009
_ACEOF
 
25010
cat confdefs.h >>conftest.$ac_ext
 
25011
cat >>conftest.$ac_ext <<_ACEOF
 
25012
/* end confdefs.h.  */
 
25013
$ac_includes_default
 
25014
int
 
25015
main ()
 
25016
{
 
25017
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
25018
test_array [0] = 0
 
25019
 
 
25020
  ;
 
25021
  return 0;
 
25022
}
 
25023
_ACEOF
 
25024
rm -f conftest.$ac_objext
 
25025
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25026
  (eval $ac_compile) 2>conftest.er1
 
25027
  ac_status=$?
 
25028
  grep -v '^ *+' conftest.er1 >conftest.err
 
25029
  rm -f conftest.er1
 
25030
  cat conftest.err >&5
 
25031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25032
  (exit $ac_status); } &&
 
25033
         { ac_try='test -z "$ac_c_werror_flag"
 
25034
                         || test ! -s conftest.err'
 
25035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25036
  (eval $ac_try) 2>&5
 
25037
  ac_status=$?
 
25038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25039
  (exit $ac_status); }; } &&
 
25040
         { ac_try='test -s conftest.$ac_objext'
 
25041
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25042
  (eval $ac_try) 2>&5
 
25043
  ac_status=$?
 
25044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25045
  (exit $ac_status); }; }; then
 
25046
  ac_hi=$ac_mid; break
 
25047
else
 
25048
  echo "$as_me: failed program was:" >&5
 
25049
sed 's/^/| /' conftest.$ac_ext >&5
 
25050
 
 
25051
ac_lo=`expr $ac_mid + 1`
 
25052
                    if test $ac_lo -le $ac_mid; then
 
25053
                      ac_lo= ac_hi=
 
25054
                      break
 
25055
                    fi
 
25056
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
25057
fi
 
25058
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25059
  done
 
25060
else
 
25061
  echo "$as_me: failed program was:" >&5
 
25062
sed 's/^/| /' conftest.$ac_ext >&5
 
25063
 
 
25064
cat >conftest.$ac_ext <<_ACEOF
 
25065
/* confdefs.h.  */
 
25066
_ACEOF
 
25067
cat confdefs.h >>conftest.$ac_ext
 
25068
cat >>conftest.$ac_ext <<_ACEOF
 
25069
/* end confdefs.h.  */
 
25070
$ac_includes_default
 
25071
int
 
25072
main ()
 
25073
{
 
25074
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
 
25075
test_array [0] = 0
 
25076
 
 
25077
  ;
 
25078
  return 0;
 
25079
}
 
25080
_ACEOF
 
25081
rm -f conftest.$ac_objext
 
25082
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25083
  (eval $ac_compile) 2>conftest.er1
 
25084
  ac_status=$?
 
25085
  grep -v '^ *+' conftest.er1 >conftest.err
 
25086
  rm -f conftest.er1
 
25087
  cat conftest.err >&5
 
25088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25089
  (exit $ac_status); } &&
 
25090
         { ac_try='test -z "$ac_c_werror_flag"
 
25091
                         || test ! -s conftest.err'
 
25092
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25093
  (eval $ac_try) 2>&5
 
25094
  ac_status=$?
 
25095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25096
  (exit $ac_status); }; } &&
 
25097
         { ac_try='test -s conftest.$ac_objext'
 
25098
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25099
  (eval $ac_try) 2>&5
 
25100
  ac_status=$?
 
25101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25102
  (exit $ac_status); }; }; then
 
25103
  ac_hi=-1 ac_mid=-1
 
25104
  while :; do
 
25105
    cat >conftest.$ac_ext <<_ACEOF
 
25106
/* confdefs.h.  */
 
25107
_ACEOF
 
25108
cat confdefs.h >>conftest.$ac_ext
 
25109
cat >>conftest.$ac_ext <<_ACEOF
 
25110
/* end confdefs.h.  */
 
25111
$ac_includes_default
 
25112
int
 
25113
main ()
 
25114
{
 
25115
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
 
25116
test_array [0] = 0
 
25117
 
 
25118
  ;
 
25119
  return 0;
 
25120
}
 
25121
_ACEOF
 
25122
rm -f conftest.$ac_objext
 
25123
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25124
  (eval $ac_compile) 2>conftest.er1
 
25125
  ac_status=$?
 
25126
  grep -v '^ *+' conftest.er1 >conftest.err
 
25127
  rm -f conftest.er1
 
25128
  cat conftest.err >&5
 
25129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25130
  (exit $ac_status); } &&
 
25131
         { ac_try='test -z "$ac_c_werror_flag"
 
25132
                         || test ! -s conftest.err'
 
25133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25134
  (eval $ac_try) 2>&5
 
25135
  ac_status=$?
 
25136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25137
  (exit $ac_status); }; } &&
 
25138
         { ac_try='test -s conftest.$ac_objext'
 
25139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25140
  (eval $ac_try) 2>&5
 
25141
  ac_status=$?
 
25142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25143
  (exit $ac_status); }; }; then
 
25144
  ac_lo=$ac_mid; break
 
25145
else
 
25146
  echo "$as_me: failed program was:" >&5
 
25147
sed 's/^/| /' conftest.$ac_ext >&5
 
25148
 
 
25149
ac_hi=`expr '(' $ac_mid ')' - 1`
 
25150
                       if test $ac_mid -le $ac_hi; then
 
25151
                         ac_lo= ac_hi=
 
25152
                         break
 
25153
                       fi
 
25154
                       ac_mid=`expr 2 '*' $ac_mid`
 
25155
fi
 
25156
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25157
  done
 
25158
else
 
25159
  echo "$as_me: failed program was:" >&5
 
25160
sed 's/^/| /' conftest.$ac_ext >&5
 
25161
 
 
25162
ac_lo= ac_hi=
 
25163
fi
 
25164
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25165
fi
 
25166
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25167
# Binary search between lo and hi bounds.
 
25168
while test "x$ac_lo" != "x$ac_hi"; do
 
25169
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
25170
  cat >conftest.$ac_ext <<_ACEOF
 
25171
/* confdefs.h.  */
 
25172
_ACEOF
 
25173
cat confdefs.h >>conftest.$ac_ext
 
25174
cat >>conftest.$ac_ext <<_ACEOF
 
25175
/* end confdefs.h.  */
 
25176
$ac_includes_default
 
25177
int
 
25178
main ()
 
25179
{
 
25180
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
25181
test_array [0] = 0
 
25182
 
 
25183
  ;
 
25184
  return 0;
 
25185
}
 
25186
_ACEOF
 
25187
rm -f conftest.$ac_objext
 
25188
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25189
  (eval $ac_compile) 2>conftest.er1
 
25190
  ac_status=$?
 
25191
  grep -v '^ *+' conftest.er1 >conftest.err
 
25192
  rm -f conftest.er1
 
25193
  cat conftest.err >&5
 
25194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25195
  (exit $ac_status); } &&
 
25196
         { ac_try='test -z "$ac_c_werror_flag"
 
25197
                         || test ! -s conftest.err'
 
25198
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25199
  (eval $ac_try) 2>&5
 
25200
  ac_status=$?
 
25201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25202
  (exit $ac_status); }; } &&
 
25203
         { ac_try='test -s conftest.$ac_objext'
 
25204
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25205
  (eval $ac_try) 2>&5
 
25206
  ac_status=$?
 
25207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25208
  (exit $ac_status); }; }; then
 
25209
  ac_hi=$ac_mid
 
25210
else
 
25211
  echo "$as_me: failed program was:" >&5
 
25212
sed 's/^/| /' conftest.$ac_ext >&5
 
25213
 
 
25214
ac_lo=`expr '(' $ac_mid ')' + 1`
 
25215
fi
 
25216
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25217
done
 
25218
case $ac_lo in
 
25219
?*) ac_cv_sizeof_short=$ac_lo;;
 
25220
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
25221
See \`config.log' for more details." >&5
 
25222
echo "$as_me: error: cannot compute sizeof (short), 77
 
25223
See \`config.log' for more details." >&2;}
 
25224
   { (exit 1); exit 1; }; } ;;
 
25225
esac
 
25226
else
 
25227
  if test "$cross_compiling" = yes; then
 
25228
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
25229
See \`config.log' for more details." >&5
 
25230
echo "$as_me: error: cannot run test program while cross compiling
 
25231
See \`config.log' for more details." >&2;}
 
25232
   { (exit 1); exit 1; }; }
 
25233
else
 
25234
  cat >conftest.$ac_ext <<_ACEOF
 
25235
/* confdefs.h.  */
 
25236
_ACEOF
 
25237
cat confdefs.h >>conftest.$ac_ext
 
25238
cat >>conftest.$ac_ext <<_ACEOF
 
25239
/* end confdefs.h.  */
 
25240
$ac_includes_default
 
25241
long longval () { return (long) (sizeof (short)); }
 
25242
unsigned long ulongval () { return (long) (sizeof (short)); }
 
25243
#include <stdio.h>
 
25244
#include <stdlib.h>
 
25245
int
 
25246
main ()
 
25247
{
 
25248
 
 
25249
  FILE *f = fopen ("conftest.val", "w");
 
25250
  if (! f)
 
25251
    exit (1);
 
25252
  if (((long) (sizeof (short))) < 0)
 
25253
    {
 
25254
      long i = longval ();
 
25255
      if (i != ((long) (sizeof (short))))
 
25256
        exit (1);
 
25257
      fprintf (f, "%ld\n", i);
 
25258
    }
 
25259
  else
 
25260
    {
 
25261
      unsigned long i = ulongval ();
 
25262
      if (i != ((long) (sizeof (short))))
 
25263
        exit (1);
 
25264
      fprintf (f, "%lu\n", i);
 
25265
    }
 
25266
  exit (ferror (f) || fclose (f) != 0);
 
25267
 
 
25268
  ;
 
25269
  return 0;
 
25270
}
 
25271
_ACEOF
 
25272
rm -f conftest$ac_exeext
 
25273
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25274
  (eval $ac_link) 2>&5
 
25275
  ac_status=$?
 
25276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25277
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
25278
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25279
  (eval $ac_try) 2>&5
 
25280
  ac_status=$?
 
25281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25282
  (exit $ac_status); }; }; then
 
25283
  ac_cv_sizeof_short=`cat conftest.val`
 
25284
else
 
25285
  echo "$as_me: program exited with status $ac_status" >&5
 
25286
echo "$as_me: failed program was:" >&5
 
25287
sed 's/^/| /' conftest.$ac_ext >&5
 
25288
 
 
25289
( exit $ac_status )
 
25290
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
25291
See \`config.log' for more details." >&5
 
25292
echo "$as_me: error: cannot compute sizeof (short), 77
 
25293
See \`config.log' for more details." >&2;}
 
25294
   { (exit 1); exit 1; }; }
 
25295
fi
 
25296
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
25297
fi
 
25298
fi
 
25299
rm -f conftest.val
 
25300
else
 
25301
  ac_cv_sizeof_short=0
 
25302
fi
 
25303
fi
 
25304
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
25305
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
 
25306
cat >>confdefs.h <<_ACEOF
 
25307
#define SIZEOF_SHORT $ac_cv_sizeof_short
 
25308
_ACEOF
 
25309
 
 
25310
  echo "$as_me:$LINENO: checking for long" >&5
 
25311
echo $ECHO_N "checking for long... $ECHO_C" >&6
 
25312
if test "${ac_cv_type_long+set}" = set; then
 
25313
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25314
else
 
25315
  cat >conftest.$ac_ext <<_ACEOF
 
25316
/* confdefs.h.  */
 
25317
_ACEOF
 
25318
cat confdefs.h >>conftest.$ac_ext
 
25319
cat >>conftest.$ac_ext <<_ACEOF
 
25320
/* end confdefs.h.  */
 
25321
$ac_includes_default
 
25322
int
 
25323
main ()
 
25324
{
 
25325
if ((long *) 0)
 
25326
  return 0;
 
25327
if (sizeof (long))
 
25328
  return 0;
 
25329
  ;
 
25330
  return 0;
 
25331
}
 
25332
_ACEOF
 
25333
rm -f conftest.$ac_objext
 
25334
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25335
  (eval $ac_compile) 2>conftest.er1
 
25336
  ac_status=$?
 
25337
  grep -v '^ *+' conftest.er1 >conftest.err
 
25338
  rm -f conftest.er1
 
25339
  cat conftest.err >&5
 
25340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25341
  (exit $ac_status); } &&
 
25342
         { ac_try='test -z "$ac_c_werror_flag"
 
25343
                         || test ! -s conftest.err'
 
25344
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25345
  (eval $ac_try) 2>&5
 
25346
  ac_status=$?
 
25347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25348
  (exit $ac_status); }; } &&
 
25349
         { ac_try='test -s conftest.$ac_objext'
 
25350
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25351
  (eval $ac_try) 2>&5
 
25352
  ac_status=$?
 
25353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25354
  (exit $ac_status); }; }; then
 
25355
  ac_cv_type_long=yes
 
25356
else
 
25357
  echo "$as_me: failed program was:" >&5
 
25358
sed 's/^/| /' conftest.$ac_ext >&5
 
25359
 
 
25360
ac_cv_type_long=no
 
25361
fi
 
25362
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25363
fi
 
25364
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
25365
echo "${ECHO_T}$ac_cv_type_long" >&6
 
25366
 
 
25367
echo "$as_me:$LINENO: checking size of long" >&5
 
25368
echo $ECHO_N "checking size of long... $ECHO_C" >&6
 
25369
if test "${ac_cv_sizeof_long+set}" = set; then
 
25370
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25371
else
 
25372
  if test "$ac_cv_type_long" = yes; then
 
25373
  # The cast to unsigned long works around a bug in the HP C Compiler
 
25374
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
25375
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
25376
  # This bug is HP SR number 8606223364.
 
25377
  if test "$cross_compiling" = yes; then
 
25378
  # Depending upon the size, compute the lo and hi bounds.
 
25379
cat >conftest.$ac_ext <<_ACEOF
 
25380
/* confdefs.h.  */
 
25381
_ACEOF
 
25382
cat confdefs.h >>conftest.$ac_ext
 
25383
cat >>conftest.$ac_ext <<_ACEOF
 
25384
/* end confdefs.h.  */
 
25385
$ac_includes_default
 
25386
int
 
25387
main ()
 
25388
{
 
25389
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
 
25390
test_array [0] = 0
 
25391
 
 
25392
  ;
 
25393
  return 0;
 
25394
}
 
25395
_ACEOF
 
25396
rm -f conftest.$ac_objext
 
25397
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25398
  (eval $ac_compile) 2>conftest.er1
 
25399
  ac_status=$?
 
25400
  grep -v '^ *+' conftest.er1 >conftest.err
 
25401
  rm -f conftest.er1
 
25402
  cat conftest.err >&5
 
25403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25404
  (exit $ac_status); } &&
 
25405
         { ac_try='test -z "$ac_c_werror_flag"
 
25406
                         || test ! -s conftest.err'
 
25407
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25408
  (eval $ac_try) 2>&5
 
25409
  ac_status=$?
 
25410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25411
  (exit $ac_status); }; } &&
 
25412
         { ac_try='test -s conftest.$ac_objext'
 
25413
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25414
  (eval $ac_try) 2>&5
 
25415
  ac_status=$?
 
25416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25417
  (exit $ac_status); }; }; then
 
25418
  ac_lo=0 ac_mid=0
 
25419
  while :; do
 
25420
    cat >conftest.$ac_ext <<_ACEOF
 
25421
/* confdefs.h.  */
 
25422
_ACEOF
 
25423
cat confdefs.h >>conftest.$ac_ext
 
25424
cat >>conftest.$ac_ext <<_ACEOF
 
25425
/* end confdefs.h.  */
 
25426
$ac_includes_default
 
25427
int
 
25428
main ()
 
25429
{
 
25430
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
25431
test_array [0] = 0
 
25432
 
 
25433
  ;
 
25434
  return 0;
 
25435
}
 
25436
_ACEOF
 
25437
rm -f conftest.$ac_objext
 
25438
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25439
  (eval $ac_compile) 2>conftest.er1
 
25440
  ac_status=$?
 
25441
  grep -v '^ *+' conftest.er1 >conftest.err
 
25442
  rm -f conftest.er1
 
25443
  cat conftest.err >&5
 
25444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25445
  (exit $ac_status); } &&
 
25446
         { ac_try='test -z "$ac_c_werror_flag"
 
25447
                         || test ! -s conftest.err'
 
25448
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25449
  (eval $ac_try) 2>&5
 
25450
  ac_status=$?
 
25451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25452
  (exit $ac_status); }; } &&
 
25453
         { ac_try='test -s conftest.$ac_objext'
 
25454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25455
  (eval $ac_try) 2>&5
 
25456
  ac_status=$?
 
25457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25458
  (exit $ac_status); }; }; then
 
25459
  ac_hi=$ac_mid; break
 
25460
else
 
25461
  echo "$as_me: failed program was:" >&5
 
25462
sed 's/^/| /' conftest.$ac_ext >&5
 
25463
 
 
25464
ac_lo=`expr $ac_mid + 1`
 
25465
                    if test $ac_lo -le $ac_mid; then
 
25466
                      ac_lo= ac_hi=
 
25467
                      break
 
25468
                    fi
 
25469
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
25470
fi
 
25471
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25472
  done
 
25473
else
 
25474
  echo "$as_me: failed program was:" >&5
 
25475
sed 's/^/| /' conftest.$ac_ext >&5
 
25476
 
 
25477
cat >conftest.$ac_ext <<_ACEOF
 
25478
/* confdefs.h.  */
 
25479
_ACEOF
 
25480
cat confdefs.h >>conftest.$ac_ext
 
25481
cat >>conftest.$ac_ext <<_ACEOF
 
25482
/* end confdefs.h.  */
 
25483
$ac_includes_default
 
25484
int
 
25485
main ()
 
25486
{
 
25487
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
 
25488
test_array [0] = 0
 
25489
 
 
25490
  ;
 
25491
  return 0;
 
25492
}
 
25493
_ACEOF
 
25494
rm -f conftest.$ac_objext
 
25495
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25496
  (eval $ac_compile) 2>conftest.er1
 
25497
  ac_status=$?
 
25498
  grep -v '^ *+' conftest.er1 >conftest.err
 
25499
  rm -f conftest.er1
 
25500
  cat conftest.err >&5
 
25501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25502
  (exit $ac_status); } &&
 
25503
         { ac_try='test -z "$ac_c_werror_flag"
 
25504
                         || test ! -s conftest.err'
 
25505
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25506
  (eval $ac_try) 2>&5
 
25507
  ac_status=$?
 
25508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25509
  (exit $ac_status); }; } &&
 
25510
         { ac_try='test -s conftest.$ac_objext'
 
25511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25512
  (eval $ac_try) 2>&5
 
25513
  ac_status=$?
 
25514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25515
  (exit $ac_status); }; }; then
 
25516
  ac_hi=-1 ac_mid=-1
 
25517
  while :; do
 
25518
    cat >conftest.$ac_ext <<_ACEOF
 
25519
/* confdefs.h.  */
 
25520
_ACEOF
 
25521
cat confdefs.h >>conftest.$ac_ext
 
25522
cat >>conftest.$ac_ext <<_ACEOF
 
25523
/* end confdefs.h.  */
 
25524
$ac_includes_default
 
25525
int
 
25526
main ()
 
25527
{
 
25528
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
 
25529
test_array [0] = 0
 
25530
 
 
25531
  ;
 
25532
  return 0;
 
25533
}
 
25534
_ACEOF
 
25535
rm -f conftest.$ac_objext
 
25536
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25537
  (eval $ac_compile) 2>conftest.er1
 
25538
  ac_status=$?
 
25539
  grep -v '^ *+' conftest.er1 >conftest.err
 
25540
  rm -f conftest.er1
 
25541
  cat conftest.err >&5
 
25542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25543
  (exit $ac_status); } &&
 
25544
         { ac_try='test -z "$ac_c_werror_flag"
 
25545
                         || test ! -s conftest.err'
 
25546
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25547
  (eval $ac_try) 2>&5
 
25548
  ac_status=$?
 
25549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25550
  (exit $ac_status); }; } &&
 
25551
         { ac_try='test -s conftest.$ac_objext'
 
25552
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25553
  (eval $ac_try) 2>&5
 
25554
  ac_status=$?
 
25555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25556
  (exit $ac_status); }; }; then
 
25557
  ac_lo=$ac_mid; break
 
25558
else
 
25559
  echo "$as_me: failed program was:" >&5
 
25560
sed 's/^/| /' conftest.$ac_ext >&5
 
25561
 
 
25562
ac_hi=`expr '(' $ac_mid ')' - 1`
 
25563
                       if test $ac_mid -le $ac_hi; then
 
25564
                         ac_lo= ac_hi=
 
25565
                         break
 
25566
                       fi
 
25567
                       ac_mid=`expr 2 '*' $ac_mid`
 
25568
fi
 
25569
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25570
  done
 
25571
else
 
25572
  echo "$as_me: failed program was:" >&5
 
25573
sed 's/^/| /' conftest.$ac_ext >&5
 
25574
 
 
25575
ac_lo= ac_hi=
 
25576
fi
 
25577
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25578
fi
 
25579
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25580
# Binary search between lo and hi bounds.
 
25581
while test "x$ac_lo" != "x$ac_hi"; do
 
25582
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
25583
  cat >conftest.$ac_ext <<_ACEOF
 
25584
/* confdefs.h.  */
 
25585
_ACEOF
 
25586
cat confdefs.h >>conftest.$ac_ext
 
25587
cat >>conftest.$ac_ext <<_ACEOF
 
25588
/* end confdefs.h.  */
 
25589
$ac_includes_default
 
25590
int
 
25591
main ()
 
25592
{
 
25593
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
25594
test_array [0] = 0
 
25595
 
 
25596
  ;
 
25597
  return 0;
 
25598
}
 
25599
_ACEOF
 
25600
rm -f conftest.$ac_objext
 
25601
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25602
  (eval $ac_compile) 2>conftest.er1
 
25603
  ac_status=$?
 
25604
  grep -v '^ *+' conftest.er1 >conftest.err
 
25605
  rm -f conftest.er1
 
25606
  cat conftest.err >&5
 
25607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25608
  (exit $ac_status); } &&
 
25609
         { ac_try='test -z "$ac_c_werror_flag"
 
25610
                         || test ! -s conftest.err'
 
25611
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25612
  (eval $ac_try) 2>&5
 
25613
  ac_status=$?
 
25614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25615
  (exit $ac_status); }; } &&
 
25616
         { ac_try='test -s conftest.$ac_objext'
 
25617
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25618
  (eval $ac_try) 2>&5
 
25619
  ac_status=$?
 
25620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25621
  (exit $ac_status); }; }; then
 
25622
  ac_hi=$ac_mid
 
25623
else
 
25624
  echo "$as_me: failed program was:" >&5
 
25625
sed 's/^/| /' conftest.$ac_ext >&5
 
25626
 
 
25627
ac_lo=`expr '(' $ac_mid ')' + 1`
 
25628
fi
 
25629
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25630
done
 
25631
case $ac_lo in
 
25632
?*) ac_cv_sizeof_long=$ac_lo;;
 
25633
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
25634
See \`config.log' for more details." >&5
 
25635
echo "$as_me: error: cannot compute sizeof (long), 77
 
25636
See \`config.log' for more details." >&2;}
 
25637
   { (exit 1); exit 1; }; } ;;
 
25638
esac
 
25639
else
 
25640
  if test "$cross_compiling" = yes; then
 
25641
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
25642
See \`config.log' for more details." >&5
 
25643
echo "$as_me: error: cannot run test program while cross compiling
 
25644
See \`config.log' for more details." >&2;}
 
25645
   { (exit 1); exit 1; }; }
 
25646
else
 
25647
  cat >conftest.$ac_ext <<_ACEOF
 
25648
/* confdefs.h.  */
 
25649
_ACEOF
 
25650
cat confdefs.h >>conftest.$ac_ext
 
25651
cat >>conftest.$ac_ext <<_ACEOF
 
25652
/* end confdefs.h.  */
 
25653
$ac_includes_default
 
25654
long longval () { return (long) (sizeof (long)); }
 
25655
unsigned long ulongval () { return (long) (sizeof (long)); }
 
25656
#include <stdio.h>
 
25657
#include <stdlib.h>
 
25658
int
 
25659
main ()
 
25660
{
 
25661
 
 
25662
  FILE *f = fopen ("conftest.val", "w");
 
25663
  if (! f)
 
25664
    exit (1);
 
25665
  if (((long) (sizeof (long))) < 0)
 
25666
    {
 
25667
      long i = longval ();
 
25668
      if (i != ((long) (sizeof (long))))
 
25669
        exit (1);
 
25670
      fprintf (f, "%ld\n", i);
 
25671
    }
 
25672
  else
 
25673
    {
 
25674
      unsigned long i = ulongval ();
 
25675
      if (i != ((long) (sizeof (long))))
 
25676
        exit (1);
 
25677
      fprintf (f, "%lu\n", i);
 
25678
    }
 
25679
  exit (ferror (f) || fclose (f) != 0);
 
25680
 
 
25681
  ;
 
25682
  return 0;
 
25683
}
 
25684
_ACEOF
 
25685
rm -f conftest$ac_exeext
 
25686
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25687
  (eval $ac_link) 2>&5
 
25688
  ac_status=$?
 
25689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25690
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
25691
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25692
  (eval $ac_try) 2>&5
 
25693
  ac_status=$?
 
25694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25695
  (exit $ac_status); }; }; then
 
25696
  ac_cv_sizeof_long=`cat conftest.val`
 
25697
else
 
25698
  echo "$as_me: program exited with status $ac_status" >&5
 
25699
echo "$as_me: failed program was:" >&5
 
25700
sed 's/^/| /' conftest.$ac_ext >&5
 
25701
 
 
25702
( exit $ac_status )
 
25703
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
25704
See \`config.log' for more details." >&5
 
25705
echo "$as_me: error: cannot compute sizeof (long), 77
 
25706
See \`config.log' for more details." >&2;}
 
25707
   { (exit 1); exit 1; }; }
 
25708
fi
 
25709
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
25710
fi
 
25711
fi
 
25712
rm -f conftest.val
 
25713
else
 
25714
  ac_cv_sizeof_long=0
 
25715
fi
 
25716
fi
 
25717
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
25718
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
 
25719
cat >>confdefs.h <<_ACEOF
 
25720
#define SIZEOF_LONG $ac_cv_sizeof_long
 
25721
_ACEOF
 
25722
 
 
25723
  echo "$as_me:$LINENO: checking for char *" >&5
 
25724
echo $ECHO_N "checking for char *... $ECHO_C" >&6
 
25725
if test "${ac_cv_type_char_p+set}" = set; then
 
25726
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25727
else
 
25728
  cat >conftest.$ac_ext <<_ACEOF
 
25729
/* confdefs.h.  */
 
25730
_ACEOF
 
25731
cat confdefs.h >>conftest.$ac_ext
 
25732
cat >>conftest.$ac_ext <<_ACEOF
 
25733
/* end confdefs.h.  */
 
25734
$ac_includes_default
 
25735
int
 
25736
main ()
 
25737
{
 
25738
if ((char * *) 0)
 
25739
  return 0;
 
25740
if (sizeof (char *))
 
25741
  return 0;
 
25742
  ;
 
25743
  return 0;
 
25744
}
 
25745
_ACEOF
 
25746
rm -f conftest.$ac_objext
 
25747
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25748
  (eval $ac_compile) 2>conftest.er1
 
25749
  ac_status=$?
 
25750
  grep -v '^ *+' conftest.er1 >conftest.err
 
25751
  rm -f conftest.er1
 
25752
  cat conftest.err >&5
 
25753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25754
  (exit $ac_status); } &&
 
25755
         { ac_try='test -z "$ac_c_werror_flag"
 
25756
                         || test ! -s conftest.err'
 
25757
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25758
  (eval $ac_try) 2>&5
 
25759
  ac_status=$?
 
25760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25761
  (exit $ac_status); }; } &&
 
25762
         { ac_try='test -s conftest.$ac_objext'
 
25763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25764
  (eval $ac_try) 2>&5
 
25765
  ac_status=$?
 
25766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25767
  (exit $ac_status); }; }; then
 
25768
  ac_cv_type_char_p=yes
 
25769
else
 
25770
  echo "$as_me: failed program was:" >&5
 
25771
sed 's/^/| /' conftest.$ac_ext >&5
 
25772
 
 
25773
ac_cv_type_char_p=no
 
25774
fi
 
25775
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25776
fi
 
25777
echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
 
25778
echo "${ECHO_T}$ac_cv_type_char_p" >&6
 
25779
 
 
25780
echo "$as_me:$LINENO: checking size of char *" >&5
 
25781
echo $ECHO_N "checking size of char *... $ECHO_C" >&6
 
25782
if test "${ac_cv_sizeof_char_p+set}" = set; then
 
25783
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25784
else
 
25785
  if test "$ac_cv_type_char_p" = yes; then
 
25786
  # The cast to unsigned long works around a bug in the HP C Compiler
 
25787
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
25788
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
25789
  # This bug is HP SR number 8606223364.
 
25790
  if test "$cross_compiling" = yes; then
 
25791
  # Depending upon the size, compute the lo and hi bounds.
 
25792
cat >conftest.$ac_ext <<_ACEOF
 
25793
/* confdefs.h.  */
 
25794
_ACEOF
 
25795
cat confdefs.h >>conftest.$ac_ext
 
25796
cat >>conftest.$ac_ext <<_ACEOF
 
25797
/* end confdefs.h.  */
 
25798
$ac_includes_default
 
25799
int
 
25800
main ()
 
25801
{
 
25802
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
 
25803
test_array [0] = 0
 
25804
 
 
25805
  ;
 
25806
  return 0;
 
25807
}
 
25808
_ACEOF
 
25809
rm -f conftest.$ac_objext
 
25810
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25811
  (eval $ac_compile) 2>conftest.er1
 
25812
  ac_status=$?
 
25813
  grep -v '^ *+' conftest.er1 >conftest.err
 
25814
  rm -f conftest.er1
 
25815
  cat conftest.err >&5
 
25816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25817
  (exit $ac_status); } &&
 
25818
         { ac_try='test -z "$ac_c_werror_flag"
 
25819
                         || test ! -s conftest.err'
 
25820
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25821
  (eval $ac_try) 2>&5
 
25822
  ac_status=$?
 
25823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25824
  (exit $ac_status); }; } &&
 
25825
         { ac_try='test -s conftest.$ac_objext'
 
25826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25827
  (eval $ac_try) 2>&5
 
25828
  ac_status=$?
 
25829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25830
  (exit $ac_status); }; }; then
 
25831
  ac_lo=0 ac_mid=0
 
25832
  while :; do
 
25833
    cat >conftest.$ac_ext <<_ACEOF
 
25834
/* confdefs.h.  */
 
25835
_ACEOF
 
25836
cat confdefs.h >>conftest.$ac_ext
 
25837
cat >>conftest.$ac_ext <<_ACEOF
 
25838
/* end confdefs.h.  */
 
25839
$ac_includes_default
 
25840
int
 
25841
main ()
 
25842
{
 
25843
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
 
25844
test_array [0] = 0
 
25845
 
 
25846
  ;
 
25847
  return 0;
 
25848
}
 
25849
_ACEOF
 
25850
rm -f conftest.$ac_objext
 
25851
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25852
  (eval $ac_compile) 2>conftest.er1
 
25853
  ac_status=$?
 
25854
  grep -v '^ *+' conftest.er1 >conftest.err
 
25855
  rm -f conftest.er1
 
25856
  cat conftest.err >&5
 
25857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25858
  (exit $ac_status); } &&
 
25859
         { ac_try='test -z "$ac_c_werror_flag"
 
25860
                         || test ! -s conftest.err'
 
25861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25862
  (eval $ac_try) 2>&5
 
25863
  ac_status=$?
 
25864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25865
  (exit $ac_status); }; } &&
 
25866
         { ac_try='test -s conftest.$ac_objext'
 
25867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25868
  (eval $ac_try) 2>&5
 
25869
  ac_status=$?
 
25870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25871
  (exit $ac_status); }; }; then
 
25872
  ac_hi=$ac_mid; break
 
25873
else
 
25874
  echo "$as_me: failed program was:" >&5
 
25875
sed 's/^/| /' conftest.$ac_ext >&5
 
25876
 
 
25877
ac_lo=`expr $ac_mid + 1`
 
25878
                    if test $ac_lo -le $ac_mid; then
 
25879
                      ac_lo= ac_hi=
 
25880
                      break
 
25881
                    fi
 
25882
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
25883
fi
 
25884
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25885
  done
 
25886
else
 
25887
  echo "$as_me: failed program was:" >&5
 
25888
sed 's/^/| /' conftest.$ac_ext >&5
 
25889
 
 
25890
cat >conftest.$ac_ext <<_ACEOF
 
25891
/* confdefs.h.  */
 
25892
_ACEOF
 
25893
cat confdefs.h >>conftest.$ac_ext
 
25894
cat >>conftest.$ac_ext <<_ACEOF
 
25895
/* end confdefs.h.  */
 
25896
$ac_includes_default
 
25897
int
 
25898
main ()
 
25899
{
 
25900
static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
 
25901
test_array [0] = 0
 
25902
 
 
25903
  ;
 
25904
  return 0;
 
25905
}
 
25906
_ACEOF
 
25907
rm -f conftest.$ac_objext
 
25908
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25909
  (eval $ac_compile) 2>conftest.er1
 
25910
  ac_status=$?
 
25911
  grep -v '^ *+' conftest.er1 >conftest.err
 
25912
  rm -f conftest.er1
 
25913
  cat conftest.err >&5
 
25914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25915
  (exit $ac_status); } &&
 
25916
         { ac_try='test -z "$ac_c_werror_flag"
 
25917
                         || test ! -s conftest.err'
 
25918
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25919
  (eval $ac_try) 2>&5
 
25920
  ac_status=$?
 
25921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25922
  (exit $ac_status); }; } &&
 
25923
         { ac_try='test -s conftest.$ac_objext'
 
25924
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25925
  (eval $ac_try) 2>&5
 
25926
  ac_status=$?
 
25927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25928
  (exit $ac_status); }; }; then
 
25929
  ac_hi=-1 ac_mid=-1
 
25930
  while :; do
 
25931
    cat >conftest.$ac_ext <<_ACEOF
 
25932
/* confdefs.h.  */
 
25933
_ACEOF
 
25934
cat confdefs.h >>conftest.$ac_ext
 
25935
cat >>conftest.$ac_ext <<_ACEOF
 
25936
/* end confdefs.h.  */
 
25937
$ac_includes_default
 
25938
int
 
25939
main ()
 
25940
{
 
25941
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
 
25942
test_array [0] = 0
 
25943
 
 
25944
  ;
 
25945
  return 0;
 
25946
}
 
25947
_ACEOF
 
25948
rm -f conftest.$ac_objext
 
25949
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25950
  (eval $ac_compile) 2>conftest.er1
 
25951
  ac_status=$?
 
25952
  grep -v '^ *+' conftest.er1 >conftest.err
 
25953
  rm -f conftest.er1
 
25954
  cat conftest.err >&5
 
25955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25956
  (exit $ac_status); } &&
 
25957
         { ac_try='test -z "$ac_c_werror_flag"
 
25958
                         || test ! -s conftest.err'
 
25959
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25960
  (eval $ac_try) 2>&5
 
25961
  ac_status=$?
 
25962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25963
  (exit $ac_status); }; } &&
 
25964
         { ac_try='test -s conftest.$ac_objext'
 
25965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25966
  (eval $ac_try) 2>&5
 
25967
  ac_status=$?
 
25968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25969
  (exit $ac_status); }; }; then
 
25970
  ac_lo=$ac_mid; break
 
25971
else
 
25972
  echo "$as_me: failed program was:" >&5
 
25973
sed 's/^/| /' conftest.$ac_ext >&5
 
25974
 
 
25975
ac_hi=`expr '(' $ac_mid ')' - 1`
 
25976
                       if test $ac_mid -le $ac_hi; then
 
25977
                         ac_lo= ac_hi=
 
25978
                         break
 
25979
                       fi
 
25980
                       ac_mid=`expr 2 '*' $ac_mid`
 
25981
fi
 
25982
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25983
  done
 
25984
else
 
25985
  echo "$as_me: failed program was:" >&5
 
25986
sed 's/^/| /' conftest.$ac_ext >&5
 
25987
 
 
25988
ac_lo= ac_hi=
 
25989
fi
 
25990
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25991
fi
 
25992
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25993
# Binary search between lo and hi bounds.
 
25994
while test "x$ac_lo" != "x$ac_hi"; do
 
25995
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
25996
  cat >conftest.$ac_ext <<_ACEOF
 
25997
/* confdefs.h.  */
 
25998
_ACEOF
 
25999
cat confdefs.h >>conftest.$ac_ext
 
26000
cat >>conftest.$ac_ext <<_ACEOF
 
26001
/* end confdefs.h.  */
 
26002
$ac_includes_default
 
26003
int
 
26004
main ()
 
26005
{
 
26006
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
 
26007
test_array [0] = 0
 
26008
 
 
26009
  ;
 
26010
  return 0;
 
26011
}
 
26012
_ACEOF
 
26013
rm -f conftest.$ac_objext
 
26014
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26015
  (eval $ac_compile) 2>conftest.er1
 
26016
  ac_status=$?
 
26017
  grep -v '^ *+' conftest.er1 >conftest.err
 
26018
  rm -f conftest.er1
 
26019
  cat conftest.err >&5
 
26020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26021
  (exit $ac_status); } &&
 
26022
         { ac_try='test -z "$ac_c_werror_flag"
 
26023
                         || test ! -s conftest.err'
 
26024
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26025
  (eval $ac_try) 2>&5
 
26026
  ac_status=$?
 
26027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26028
  (exit $ac_status); }; } &&
 
26029
         { ac_try='test -s conftest.$ac_objext'
 
26030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26031
  (eval $ac_try) 2>&5
 
26032
  ac_status=$?
 
26033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26034
  (exit $ac_status); }; }; then
 
26035
  ac_hi=$ac_mid
 
26036
else
 
26037
  echo "$as_me: failed program was:" >&5
 
26038
sed 's/^/| /' conftest.$ac_ext >&5
 
26039
 
 
26040
ac_lo=`expr '(' $ac_mid ')' + 1`
 
26041
fi
 
26042
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26043
done
 
26044
case $ac_lo in
 
26045
?*) ac_cv_sizeof_char_p=$ac_lo;;
 
26046
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
 
26047
See \`config.log' for more details." >&5
 
26048
echo "$as_me: error: cannot compute sizeof (char *), 77
 
26049
See \`config.log' for more details." >&2;}
 
26050
   { (exit 1); exit 1; }; } ;;
 
26051
esac
 
26052
else
 
26053
  if test "$cross_compiling" = yes; then
 
26054
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
26055
See \`config.log' for more details." >&5
 
26056
echo "$as_me: error: cannot run test program while cross compiling
 
26057
See \`config.log' for more details." >&2;}
 
26058
   { (exit 1); exit 1; }; }
 
26059
else
 
26060
  cat >conftest.$ac_ext <<_ACEOF
 
26061
/* confdefs.h.  */
 
26062
_ACEOF
 
26063
cat confdefs.h >>conftest.$ac_ext
 
26064
cat >>conftest.$ac_ext <<_ACEOF
 
26065
/* end confdefs.h.  */
 
26066
$ac_includes_default
 
26067
long longval () { return (long) (sizeof (char *)); }
 
26068
unsigned long ulongval () { return (long) (sizeof (char *)); }
 
26069
#include <stdio.h>
 
26070
#include <stdlib.h>
 
26071
int
 
26072
main ()
 
26073
{
 
26074
 
 
26075
  FILE *f = fopen ("conftest.val", "w");
 
26076
  if (! f)
 
26077
    exit (1);
 
26078
  if (((long) (sizeof (char *))) < 0)
 
26079
    {
 
26080
      long i = longval ();
 
26081
      if (i != ((long) (sizeof (char *))))
 
26082
        exit (1);
 
26083
      fprintf (f, "%ld\n", i);
 
26084
    }
 
26085
  else
 
26086
    {
 
26087
      unsigned long i = ulongval ();
 
26088
      if (i != ((long) (sizeof (char *))))
 
26089
        exit (1);
 
26090
      fprintf (f, "%lu\n", i);
 
26091
    }
 
26092
  exit (ferror (f) || fclose (f) != 0);
 
26093
 
 
26094
  ;
 
26095
  return 0;
 
26096
}
 
26097
_ACEOF
 
26098
rm -f conftest$ac_exeext
 
26099
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26100
  (eval $ac_link) 2>&5
 
26101
  ac_status=$?
 
26102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26103
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26105
  (eval $ac_try) 2>&5
 
26106
  ac_status=$?
 
26107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26108
  (exit $ac_status); }; }; then
 
26109
  ac_cv_sizeof_char_p=`cat conftest.val`
 
26110
else
 
26111
  echo "$as_me: program exited with status $ac_status" >&5
 
26112
echo "$as_me: failed program was:" >&5
 
26113
sed 's/^/| /' conftest.$ac_ext >&5
 
26114
 
 
26115
( exit $ac_status )
 
26116
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
 
26117
See \`config.log' for more details." >&5
 
26118
echo "$as_me: error: cannot compute sizeof (char *), 77
 
26119
See \`config.log' for more details." >&2;}
 
26120
   { (exit 1); exit 1; }; }
 
26121
fi
 
26122
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26123
fi
 
26124
fi
 
26125
rm -f conftest.val
 
26126
else
 
26127
  ac_cv_sizeof_char_p=0
 
26128
fi
 
26129
fi
 
26130
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
 
26131
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
 
26132
cat >>confdefs.h <<_ACEOF
 
26133
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
 
26134
_ACEOF
 
26135
 
 
26136
 
 
26137
 
 
26138
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
26139
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
26140
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
26141
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26142
else
 
26143
  ac_check_lib_save_LIBS=$LIBS
 
26144
LIBS="-ldl  $LIBS"
 
26145
cat >conftest.$ac_ext <<_ACEOF
 
26146
/* confdefs.h.  */
 
26147
_ACEOF
 
26148
cat confdefs.h >>conftest.$ac_ext
 
26149
cat >>conftest.$ac_ext <<_ACEOF
 
26150
/* end confdefs.h.  */
 
26151
 
 
26152
/* Override any gcc2 internal prototype to avoid an error.  */
 
26153
#ifdef __cplusplus
 
26154
extern "C"
 
26155
#endif
 
26156
/* We use char because int might match the return type of a gcc2
 
26157
   builtin and then its argument prototype would still apply.  */
 
26158
char dlopen ();
 
26159
int
 
26160
main ()
 
26161
{
 
26162
dlopen ();
 
26163
  ;
 
26164
  return 0;
 
26165
}
 
26166
_ACEOF
 
26167
rm -f conftest.$ac_objext conftest$ac_exeext
 
26168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26169
  (eval $ac_link) 2>conftest.er1
 
26170
  ac_status=$?
 
26171
  grep -v '^ *+' conftest.er1 >conftest.err
 
26172
  rm -f conftest.er1
 
26173
  cat conftest.err >&5
 
26174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26175
  (exit $ac_status); } &&
 
26176
         { ac_try='test -z "$ac_c_werror_flag"
 
26177
                         || test ! -s conftest.err'
 
26178
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26179
  (eval $ac_try) 2>&5
 
26180
  ac_status=$?
 
26181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26182
  (exit $ac_status); }; } &&
 
26183
         { ac_try='test -s conftest$ac_exeext'
 
26184
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26185
  (eval $ac_try) 2>&5
 
26186
  ac_status=$?
 
26187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26188
  (exit $ac_status); }; }; then
 
26189
  ac_cv_lib_dl_dlopen=yes
 
26190
else
 
26191
  echo "$as_me: failed program was:" >&5
 
26192
sed 's/^/| /' conftest.$ac_ext >&5
 
26193
 
 
26194
ac_cv_lib_dl_dlopen=no
 
26195
fi
 
26196
rm -f conftest.err conftest.$ac_objext \
 
26197
      conftest$ac_exeext conftest.$ac_ext
 
26198
LIBS=$ac_check_lib_save_LIBS
 
26199
fi
 
26200
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
26201
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
26202
if test $ac_cv_lib_dl_dlopen = yes; then
 
26203
 
 
26204
LIBDL="-ldl"
 
26205
ac_cv_have_dlfcn=yes
 
26206
 
 
26207
fi
 
26208
 
 
26209
 
 
26210
echo "$as_me:$LINENO: checking for shl_unload in -ldld" >&5
 
26211
echo $ECHO_N "checking for shl_unload in -ldld... $ECHO_C" >&6
 
26212
if test "${ac_cv_lib_dld_shl_unload+set}" = set; then
 
26213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26214
else
 
26215
  ac_check_lib_save_LIBS=$LIBS
 
26216
LIBS="-ldld  $LIBS"
 
26217
cat >conftest.$ac_ext <<_ACEOF
 
26218
/* confdefs.h.  */
 
26219
_ACEOF
 
26220
cat confdefs.h >>conftest.$ac_ext
 
26221
cat >>conftest.$ac_ext <<_ACEOF
 
26222
/* end confdefs.h.  */
 
26223
 
 
26224
/* Override any gcc2 internal prototype to avoid an error.  */
 
26225
#ifdef __cplusplus
 
26226
extern "C"
 
26227
#endif
 
26228
/* We use char because int might match the return type of a gcc2
 
26229
   builtin and then its argument prototype would still apply.  */
 
26230
char shl_unload ();
 
26231
int
 
26232
main ()
 
26233
{
 
26234
shl_unload ();
 
26235
  ;
 
26236
  return 0;
 
26237
}
 
26238
_ACEOF
 
26239
rm -f conftest.$ac_objext conftest$ac_exeext
 
26240
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26241
  (eval $ac_link) 2>conftest.er1
 
26242
  ac_status=$?
 
26243
  grep -v '^ *+' conftest.er1 >conftest.err
 
26244
  rm -f conftest.er1
 
26245
  cat conftest.err >&5
 
26246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26247
  (exit $ac_status); } &&
 
26248
         { ac_try='test -z "$ac_c_werror_flag"
 
26249
                         || test ! -s conftest.err'
 
26250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26251
  (eval $ac_try) 2>&5
 
26252
  ac_status=$?
 
26253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26254
  (exit $ac_status); }; } &&
 
26255
         { ac_try='test -s conftest$ac_exeext'
 
26256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26257
  (eval $ac_try) 2>&5
 
26258
  ac_status=$?
 
26259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26260
  (exit $ac_status); }; }; then
 
26261
  ac_cv_lib_dld_shl_unload=yes
 
26262
else
 
26263
  echo "$as_me: failed program was:" >&5
 
26264
sed 's/^/| /' conftest.$ac_ext >&5
 
26265
 
 
26266
ac_cv_lib_dld_shl_unload=no
 
26267
fi
 
26268
rm -f conftest.err conftest.$ac_objext \
 
26269
      conftest$ac_exeext conftest.$ac_ext
 
26270
LIBS=$ac_check_lib_save_LIBS
 
26271
fi
 
26272
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5
 
26273
echo "${ECHO_T}$ac_cv_lib_dld_shl_unload" >&6
 
26274
if test $ac_cv_lib_dld_shl_unload = yes; then
 
26275
 
 
26276
LIBDL="-ldld"
 
26277
ac_cv_have_shload=yes
 
26278
 
 
26279
fi
 
26280
 
 
26281
 
 
26282
 
 
26283
 
 
26284
 
 
26285
 
 
26286
 
 
26287
  echo "$as_me:$LINENO: checking for size_t" >&5
 
26288
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
26289
if test "${ac_cv_type_size_t+set}" = set; then
 
26290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26291
else
 
26292
  cat >conftest.$ac_ext <<_ACEOF
 
26293
/* confdefs.h.  */
 
26294
_ACEOF
 
26295
cat confdefs.h >>conftest.$ac_ext
 
26296
cat >>conftest.$ac_ext <<_ACEOF
 
26297
/* end confdefs.h.  */
 
26298
$ac_includes_default
 
26299
int
 
26300
main ()
 
26301
{
 
26302
if ((size_t *) 0)
 
26303
  return 0;
 
26304
if (sizeof (size_t))
 
26305
  return 0;
 
26306
  ;
 
26307
  return 0;
 
26308
}
 
26309
_ACEOF
 
26310
rm -f conftest.$ac_objext
 
26311
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26312
  (eval $ac_compile) 2>conftest.er1
 
26313
  ac_status=$?
 
26314
  grep -v '^ *+' conftest.er1 >conftest.err
 
26315
  rm -f conftest.er1
 
26316
  cat conftest.err >&5
 
26317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26318
  (exit $ac_status); } &&
 
26319
         { ac_try='test -z "$ac_c_werror_flag"
 
26320
                         || test ! -s conftest.err'
 
26321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26322
  (eval $ac_try) 2>&5
 
26323
  ac_status=$?
 
26324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26325
  (exit $ac_status); }; } &&
 
26326
         { ac_try='test -s conftest.$ac_objext'
 
26327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26328
  (eval $ac_try) 2>&5
 
26329
  ac_status=$?
 
26330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26331
  (exit $ac_status); }; }; then
 
26332
  ac_cv_type_size_t=yes
 
26333
else
 
26334
  echo "$as_me: failed program was:" >&5
 
26335
sed 's/^/| /' conftest.$ac_ext >&5
 
26336
 
 
26337
ac_cv_type_size_t=no
 
26338
fi
 
26339
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26340
fi
 
26341
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
26342
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
26343
 
 
26344
echo "$as_me:$LINENO: checking size of size_t" >&5
 
26345
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
 
26346
if test "${ac_cv_sizeof_size_t+set}" = set; then
 
26347
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26348
else
 
26349
  if test "$ac_cv_type_size_t" = yes; then
 
26350
  # The cast to unsigned long works around a bug in the HP C Compiler
 
26351
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
26352
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
26353
  # This bug is HP SR number 8606223364.
 
26354
  if test "$cross_compiling" = yes; then
 
26355
  # Depending upon the size, compute the lo and hi bounds.
 
26356
cat >conftest.$ac_ext <<_ACEOF
 
26357
/* confdefs.h.  */
 
26358
_ACEOF
 
26359
cat confdefs.h >>conftest.$ac_ext
 
26360
cat >>conftest.$ac_ext <<_ACEOF
 
26361
/* end confdefs.h.  */
 
26362
$ac_includes_default
 
26363
int
 
26364
main ()
 
26365
{
 
26366
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
 
26367
test_array [0] = 0
 
26368
 
 
26369
  ;
 
26370
  return 0;
 
26371
}
 
26372
_ACEOF
 
26373
rm -f conftest.$ac_objext
 
26374
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26375
  (eval $ac_compile) 2>conftest.er1
 
26376
  ac_status=$?
 
26377
  grep -v '^ *+' conftest.er1 >conftest.err
 
26378
  rm -f conftest.er1
 
26379
  cat conftest.err >&5
 
26380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26381
  (exit $ac_status); } &&
 
26382
         { ac_try='test -z "$ac_c_werror_flag"
 
26383
                         || test ! -s conftest.err'
 
26384
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26385
  (eval $ac_try) 2>&5
 
26386
  ac_status=$?
 
26387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26388
  (exit $ac_status); }; } &&
 
26389
         { ac_try='test -s conftest.$ac_objext'
 
26390
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26391
  (eval $ac_try) 2>&5
 
26392
  ac_status=$?
 
26393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26394
  (exit $ac_status); }; }; then
 
26395
  ac_lo=0 ac_mid=0
 
26396
  while :; do
 
26397
    cat >conftest.$ac_ext <<_ACEOF
 
26398
/* confdefs.h.  */
 
26399
_ACEOF
 
26400
cat confdefs.h >>conftest.$ac_ext
 
26401
cat >>conftest.$ac_ext <<_ACEOF
 
26402
/* end confdefs.h.  */
 
26403
$ac_includes_default
 
26404
int
 
26405
main ()
 
26406
{
 
26407
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
 
26408
test_array [0] = 0
 
26409
 
 
26410
  ;
 
26411
  return 0;
 
26412
}
 
26413
_ACEOF
 
26414
rm -f conftest.$ac_objext
 
26415
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26416
  (eval $ac_compile) 2>conftest.er1
 
26417
  ac_status=$?
 
26418
  grep -v '^ *+' conftest.er1 >conftest.err
 
26419
  rm -f conftest.er1
 
26420
  cat conftest.err >&5
 
26421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26422
  (exit $ac_status); } &&
 
26423
         { ac_try='test -z "$ac_c_werror_flag"
 
26424
                         || test ! -s conftest.err'
 
26425
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26426
  (eval $ac_try) 2>&5
 
26427
  ac_status=$?
 
26428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26429
  (exit $ac_status); }; } &&
 
26430
         { ac_try='test -s conftest.$ac_objext'
 
26431
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26432
  (eval $ac_try) 2>&5
 
26433
  ac_status=$?
 
26434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26435
  (exit $ac_status); }; }; then
 
26436
  ac_hi=$ac_mid; break
 
26437
else
 
26438
  echo "$as_me: failed program was:" >&5
 
26439
sed 's/^/| /' conftest.$ac_ext >&5
 
26440
 
 
26441
ac_lo=`expr $ac_mid + 1`
 
26442
                    if test $ac_lo -le $ac_mid; then
 
26443
                      ac_lo= ac_hi=
 
26444
                      break
 
26445
                    fi
 
26446
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
26447
fi
 
26448
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26449
  done
 
26450
else
 
26451
  echo "$as_me: failed program was:" >&5
 
26452
sed 's/^/| /' conftest.$ac_ext >&5
 
26453
 
 
26454
cat >conftest.$ac_ext <<_ACEOF
 
26455
/* confdefs.h.  */
 
26456
_ACEOF
 
26457
cat confdefs.h >>conftest.$ac_ext
 
26458
cat >>conftest.$ac_ext <<_ACEOF
 
26459
/* end confdefs.h.  */
 
26460
$ac_includes_default
 
26461
int
 
26462
main ()
 
26463
{
 
26464
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
 
26465
test_array [0] = 0
 
26466
 
 
26467
  ;
 
26468
  return 0;
 
26469
}
 
26470
_ACEOF
 
26471
rm -f conftest.$ac_objext
 
26472
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26473
  (eval $ac_compile) 2>conftest.er1
 
26474
  ac_status=$?
 
26475
  grep -v '^ *+' conftest.er1 >conftest.err
 
26476
  rm -f conftest.er1
 
26477
  cat conftest.err >&5
 
26478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26479
  (exit $ac_status); } &&
 
26480
         { ac_try='test -z "$ac_c_werror_flag"
 
26481
                         || test ! -s conftest.err'
 
26482
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26483
  (eval $ac_try) 2>&5
 
26484
  ac_status=$?
 
26485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26486
  (exit $ac_status); }; } &&
 
26487
         { ac_try='test -s conftest.$ac_objext'
 
26488
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26489
  (eval $ac_try) 2>&5
 
26490
  ac_status=$?
 
26491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26492
  (exit $ac_status); }; }; then
 
26493
  ac_hi=-1 ac_mid=-1
 
26494
  while :; do
 
26495
    cat >conftest.$ac_ext <<_ACEOF
 
26496
/* confdefs.h.  */
 
26497
_ACEOF
 
26498
cat confdefs.h >>conftest.$ac_ext
 
26499
cat >>conftest.$ac_ext <<_ACEOF
 
26500
/* end confdefs.h.  */
 
26501
$ac_includes_default
 
26502
int
 
26503
main ()
 
26504
{
 
26505
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
 
26506
test_array [0] = 0
 
26507
 
 
26508
  ;
 
26509
  return 0;
 
26510
}
 
26511
_ACEOF
 
26512
rm -f conftest.$ac_objext
 
26513
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26514
  (eval $ac_compile) 2>conftest.er1
 
26515
  ac_status=$?
 
26516
  grep -v '^ *+' conftest.er1 >conftest.err
 
26517
  rm -f conftest.er1
 
26518
  cat conftest.err >&5
 
26519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26520
  (exit $ac_status); } &&
 
26521
         { ac_try='test -z "$ac_c_werror_flag"
 
26522
                         || test ! -s conftest.err'
 
26523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26524
  (eval $ac_try) 2>&5
 
26525
  ac_status=$?
 
26526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26527
  (exit $ac_status); }; } &&
 
26528
         { ac_try='test -s conftest.$ac_objext'
 
26529
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26530
  (eval $ac_try) 2>&5
 
26531
  ac_status=$?
 
26532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26533
  (exit $ac_status); }; }; then
 
26534
  ac_lo=$ac_mid; break
 
26535
else
 
26536
  echo "$as_me: failed program was:" >&5
 
26537
sed 's/^/| /' conftest.$ac_ext >&5
 
26538
 
 
26539
ac_hi=`expr '(' $ac_mid ')' - 1`
 
26540
                       if test $ac_mid -le $ac_hi; then
 
26541
                         ac_lo= ac_hi=
 
26542
                         break
 
26543
                       fi
 
26544
                       ac_mid=`expr 2 '*' $ac_mid`
 
26545
fi
 
26546
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26547
  done
 
26548
else
 
26549
  echo "$as_me: failed program was:" >&5
 
26550
sed 's/^/| /' conftest.$ac_ext >&5
 
26551
 
 
26552
ac_lo= ac_hi=
 
26553
fi
 
26554
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26555
fi
 
26556
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26557
# Binary search between lo and hi bounds.
 
26558
while test "x$ac_lo" != "x$ac_hi"; do
 
26559
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
26560
  cat >conftest.$ac_ext <<_ACEOF
 
26561
/* confdefs.h.  */
 
26562
_ACEOF
 
26563
cat confdefs.h >>conftest.$ac_ext
 
26564
cat >>conftest.$ac_ext <<_ACEOF
 
26565
/* end confdefs.h.  */
 
26566
$ac_includes_default
 
26567
int
 
26568
main ()
 
26569
{
 
26570
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
 
26571
test_array [0] = 0
 
26572
 
 
26573
  ;
 
26574
  return 0;
 
26575
}
 
26576
_ACEOF
 
26577
rm -f conftest.$ac_objext
 
26578
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26579
  (eval $ac_compile) 2>conftest.er1
 
26580
  ac_status=$?
 
26581
  grep -v '^ *+' conftest.er1 >conftest.err
 
26582
  rm -f conftest.er1
 
26583
  cat conftest.err >&5
 
26584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26585
  (exit $ac_status); } &&
 
26586
         { ac_try='test -z "$ac_c_werror_flag"
 
26587
                         || test ! -s conftest.err'
 
26588
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26589
  (eval $ac_try) 2>&5
 
26590
  ac_status=$?
 
26591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26592
  (exit $ac_status); }; } &&
 
26593
         { ac_try='test -s conftest.$ac_objext'
 
26594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26595
  (eval $ac_try) 2>&5
 
26596
  ac_status=$?
 
26597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26598
  (exit $ac_status); }; }; then
 
26599
  ac_hi=$ac_mid
 
26600
else
 
26601
  echo "$as_me: failed program was:" >&5
 
26602
sed 's/^/| /' conftest.$ac_ext >&5
 
26603
 
 
26604
ac_lo=`expr '(' $ac_mid ')' + 1`
 
26605
fi
 
26606
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26607
done
 
26608
case $ac_lo in
 
26609
?*) ac_cv_sizeof_size_t=$ac_lo;;
 
26610
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
 
26611
See \`config.log' for more details." >&5
 
26612
echo "$as_me: error: cannot compute sizeof (size_t), 77
 
26613
See \`config.log' for more details." >&2;}
 
26614
   { (exit 1); exit 1; }; } ;;
 
26615
esac
 
26616
else
 
26617
  if test "$cross_compiling" = yes; then
 
26618
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
26619
See \`config.log' for more details." >&5
 
26620
echo "$as_me: error: cannot run test program while cross compiling
 
26621
See \`config.log' for more details." >&2;}
 
26622
   { (exit 1); exit 1; }; }
 
26623
else
 
26624
  cat >conftest.$ac_ext <<_ACEOF
 
26625
/* confdefs.h.  */
 
26626
_ACEOF
 
26627
cat confdefs.h >>conftest.$ac_ext
 
26628
cat >>conftest.$ac_ext <<_ACEOF
 
26629
/* end confdefs.h.  */
 
26630
$ac_includes_default
 
26631
long longval () { return (long) (sizeof (size_t)); }
 
26632
unsigned long ulongval () { return (long) (sizeof (size_t)); }
 
26633
#include <stdio.h>
 
26634
#include <stdlib.h>
 
26635
int
 
26636
main ()
 
26637
{
 
26638
 
 
26639
  FILE *f = fopen ("conftest.val", "w");
 
26640
  if (! f)
 
26641
    exit (1);
 
26642
  if (((long) (sizeof (size_t))) < 0)
 
26643
    {
 
26644
      long i = longval ();
 
26645
      if (i != ((long) (sizeof (size_t))))
 
26646
        exit (1);
 
26647
      fprintf (f, "%ld\n", i);
 
26648
    }
 
26649
  else
 
26650
    {
 
26651
      unsigned long i = ulongval ();
 
26652
      if (i != ((long) (sizeof (size_t))))
 
26653
        exit (1);
 
26654
      fprintf (f, "%lu\n", i);
 
26655
    }
 
26656
  exit (ferror (f) || fclose (f) != 0);
 
26657
 
 
26658
  ;
 
26659
  return 0;
 
26660
}
 
26661
_ACEOF
 
26662
rm -f conftest$ac_exeext
 
26663
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26664
  (eval $ac_link) 2>&5
 
26665
  ac_status=$?
 
26666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26667
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26669
  (eval $ac_try) 2>&5
 
26670
  ac_status=$?
 
26671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26672
  (exit $ac_status); }; }; then
 
26673
  ac_cv_sizeof_size_t=`cat conftest.val`
 
26674
else
 
26675
  echo "$as_me: program exited with status $ac_status" >&5
 
26676
echo "$as_me: failed program was:" >&5
 
26677
sed 's/^/| /' conftest.$ac_ext >&5
 
26678
 
 
26679
( exit $ac_status )
 
26680
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
 
26681
See \`config.log' for more details." >&5
 
26682
echo "$as_me: error: cannot compute sizeof (size_t), 77
 
26683
See \`config.log' for more details." >&2;}
 
26684
   { (exit 1); exit 1; }; }
 
26685
fi
 
26686
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26687
fi
 
26688
fi
 
26689
rm -f conftest.val
 
26690
else
 
26691
  ac_cv_sizeof_size_t=0
 
26692
fi
 
26693
fi
 
26694
echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
 
26695
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
 
26696
cat >>confdefs.h <<_ACEOF
 
26697
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
 
26698
_ACEOF
 
26699
 
 
26700
 
 
26701
  echo "$as_me:$LINENO: checking for unsigned long" >&5
 
26702
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
 
26703
if test "${ac_cv_type_unsigned_long+set}" = set; then
 
26704
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26705
else
 
26706
  cat >conftest.$ac_ext <<_ACEOF
 
26707
/* confdefs.h.  */
 
26708
_ACEOF
 
26709
cat confdefs.h >>conftest.$ac_ext
 
26710
cat >>conftest.$ac_ext <<_ACEOF
 
26711
/* end confdefs.h.  */
 
26712
$ac_includes_default
 
26713
int
 
26714
main ()
 
26715
{
 
26716
if ((unsigned long *) 0)
 
26717
  return 0;
 
26718
if (sizeof (unsigned long))
 
26719
  return 0;
 
26720
  ;
 
26721
  return 0;
 
26722
}
 
26723
_ACEOF
 
26724
rm -f conftest.$ac_objext
 
26725
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26726
  (eval $ac_compile) 2>conftest.er1
 
26727
  ac_status=$?
 
26728
  grep -v '^ *+' conftest.er1 >conftest.err
 
26729
  rm -f conftest.er1
 
26730
  cat conftest.err >&5
 
26731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26732
  (exit $ac_status); } &&
 
26733
         { ac_try='test -z "$ac_c_werror_flag"
 
26734
                         || test ! -s conftest.err'
 
26735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26736
  (eval $ac_try) 2>&5
 
26737
  ac_status=$?
 
26738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26739
  (exit $ac_status); }; } &&
 
26740
         { ac_try='test -s conftest.$ac_objext'
 
26741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26742
  (eval $ac_try) 2>&5
 
26743
  ac_status=$?
 
26744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26745
  (exit $ac_status); }; }; then
 
26746
  ac_cv_type_unsigned_long=yes
 
26747
else
 
26748
  echo "$as_me: failed program was:" >&5
 
26749
sed 's/^/| /' conftest.$ac_ext >&5
 
26750
 
 
26751
ac_cv_type_unsigned_long=no
 
26752
fi
 
26753
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26754
fi
 
26755
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
 
26756
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
 
26757
 
 
26758
echo "$as_me:$LINENO: checking size of unsigned long" >&5
 
26759
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
 
26760
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
 
26761
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26762
else
 
26763
  if test "$ac_cv_type_unsigned_long" = yes; then
 
26764
  # The cast to unsigned long works around a bug in the HP C Compiler
 
26765
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
26766
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
26767
  # This bug is HP SR number 8606223364.
 
26768
  if test "$cross_compiling" = yes; then
 
26769
  # Depending upon the size, compute the lo and hi bounds.
 
26770
cat >conftest.$ac_ext <<_ACEOF
 
26771
/* confdefs.h.  */
 
26772
_ACEOF
 
26773
cat confdefs.h >>conftest.$ac_ext
 
26774
cat >>conftest.$ac_ext <<_ACEOF
 
26775
/* end confdefs.h.  */
 
26776
$ac_includes_default
 
26777
int
 
26778
main ()
 
26779
{
 
26780
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
 
26781
test_array [0] = 0
 
26782
 
 
26783
  ;
 
26784
  return 0;
 
26785
}
 
26786
_ACEOF
 
26787
rm -f conftest.$ac_objext
 
26788
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26789
  (eval $ac_compile) 2>conftest.er1
 
26790
  ac_status=$?
 
26791
  grep -v '^ *+' conftest.er1 >conftest.err
 
26792
  rm -f conftest.er1
 
26793
  cat conftest.err >&5
 
26794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26795
  (exit $ac_status); } &&
 
26796
         { ac_try='test -z "$ac_c_werror_flag"
 
26797
                         || test ! -s conftest.err'
 
26798
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26799
  (eval $ac_try) 2>&5
 
26800
  ac_status=$?
 
26801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26802
  (exit $ac_status); }; } &&
 
26803
         { ac_try='test -s conftest.$ac_objext'
 
26804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26805
  (eval $ac_try) 2>&5
 
26806
  ac_status=$?
 
26807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26808
  (exit $ac_status); }; }; then
 
26809
  ac_lo=0 ac_mid=0
 
26810
  while :; do
 
26811
    cat >conftest.$ac_ext <<_ACEOF
 
26812
/* confdefs.h.  */
 
26813
_ACEOF
 
26814
cat confdefs.h >>conftest.$ac_ext
 
26815
cat >>conftest.$ac_ext <<_ACEOF
 
26816
/* end confdefs.h.  */
 
26817
$ac_includes_default
 
26818
int
 
26819
main ()
 
26820
{
 
26821
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
 
26822
test_array [0] = 0
 
26823
 
 
26824
  ;
 
26825
  return 0;
 
26826
}
 
26827
_ACEOF
 
26828
rm -f conftest.$ac_objext
 
26829
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26830
  (eval $ac_compile) 2>conftest.er1
 
26831
  ac_status=$?
 
26832
  grep -v '^ *+' conftest.er1 >conftest.err
 
26833
  rm -f conftest.er1
 
26834
  cat conftest.err >&5
 
26835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26836
  (exit $ac_status); } &&
 
26837
         { ac_try='test -z "$ac_c_werror_flag"
 
26838
                         || test ! -s conftest.err'
 
26839
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26840
  (eval $ac_try) 2>&5
 
26841
  ac_status=$?
 
26842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26843
  (exit $ac_status); }; } &&
 
26844
         { ac_try='test -s conftest.$ac_objext'
 
26845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26846
  (eval $ac_try) 2>&5
 
26847
  ac_status=$?
 
26848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26849
  (exit $ac_status); }; }; then
 
26850
  ac_hi=$ac_mid; break
 
26851
else
 
26852
  echo "$as_me: failed program was:" >&5
 
26853
sed 's/^/| /' conftest.$ac_ext >&5
 
26854
 
 
26855
ac_lo=`expr $ac_mid + 1`
 
26856
                    if test $ac_lo -le $ac_mid; then
 
26857
                      ac_lo= ac_hi=
 
26858
                      break
 
26859
                    fi
 
26860
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
26861
fi
 
26862
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26863
  done
 
26864
else
 
26865
  echo "$as_me: failed program was:" >&5
 
26866
sed 's/^/| /' conftest.$ac_ext >&5
 
26867
 
 
26868
cat >conftest.$ac_ext <<_ACEOF
 
26869
/* confdefs.h.  */
 
26870
_ACEOF
 
26871
cat confdefs.h >>conftest.$ac_ext
 
26872
cat >>conftest.$ac_ext <<_ACEOF
 
26873
/* end confdefs.h.  */
 
26874
$ac_includes_default
 
26875
int
 
26876
main ()
 
26877
{
 
26878
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
 
26879
test_array [0] = 0
 
26880
 
 
26881
  ;
 
26882
  return 0;
 
26883
}
 
26884
_ACEOF
 
26885
rm -f conftest.$ac_objext
 
26886
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26887
  (eval $ac_compile) 2>conftest.er1
 
26888
  ac_status=$?
 
26889
  grep -v '^ *+' conftest.er1 >conftest.err
 
26890
  rm -f conftest.er1
 
26891
  cat conftest.err >&5
 
26892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26893
  (exit $ac_status); } &&
 
26894
         { ac_try='test -z "$ac_c_werror_flag"
 
26895
                         || test ! -s conftest.err'
 
26896
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26897
  (eval $ac_try) 2>&5
 
26898
  ac_status=$?
 
26899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26900
  (exit $ac_status); }; } &&
 
26901
         { ac_try='test -s conftest.$ac_objext'
 
26902
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26903
  (eval $ac_try) 2>&5
 
26904
  ac_status=$?
 
26905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26906
  (exit $ac_status); }; }; then
 
26907
  ac_hi=-1 ac_mid=-1
 
26908
  while :; do
 
26909
    cat >conftest.$ac_ext <<_ACEOF
 
26910
/* confdefs.h.  */
 
26911
_ACEOF
 
26912
cat confdefs.h >>conftest.$ac_ext
 
26913
cat >>conftest.$ac_ext <<_ACEOF
 
26914
/* end confdefs.h.  */
 
26915
$ac_includes_default
 
26916
int
 
26917
main ()
 
26918
{
 
26919
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
 
26920
test_array [0] = 0
 
26921
 
 
26922
  ;
 
26923
  return 0;
 
26924
}
 
26925
_ACEOF
 
26926
rm -f conftest.$ac_objext
 
26927
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26928
  (eval $ac_compile) 2>conftest.er1
 
26929
  ac_status=$?
 
26930
  grep -v '^ *+' conftest.er1 >conftest.err
 
26931
  rm -f conftest.er1
 
26932
  cat conftest.err >&5
 
26933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26934
  (exit $ac_status); } &&
 
26935
         { ac_try='test -z "$ac_c_werror_flag"
 
26936
                         || test ! -s conftest.err'
 
26937
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26938
  (eval $ac_try) 2>&5
 
26939
  ac_status=$?
 
26940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26941
  (exit $ac_status); }; } &&
 
26942
         { ac_try='test -s conftest.$ac_objext'
 
26943
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26944
  (eval $ac_try) 2>&5
 
26945
  ac_status=$?
 
26946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26947
  (exit $ac_status); }; }; then
 
26948
  ac_lo=$ac_mid; break
 
26949
else
 
26950
  echo "$as_me: failed program was:" >&5
 
26951
sed 's/^/| /' conftest.$ac_ext >&5
 
26952
 
 
26953
ac_hi=`expr '(' $ac_mid ')' - 1`
 
26954
                       if test $ac_mid -le $ac_hi; then
 
26955
                         ac_lo= ac_hi=
 
26956
                         break
 
26957
                       fi
 
26958
                       ac_mid=`expr 2 '*' $ac_mid`
 
26959
fi
 
26960
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26961
  done
 
26962
else
 
26963
  echo "$as_me: failed program was:" >&5
 
26964
sed 's/^/| /' conftest.$ac_ext >&5
 
26965
 
 
26966
ac_lo= ac_hi=
 
26967
fi
 
26968
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26969
fi
 
26970
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26971
# Binary search between lo and hi bounds.
 
26972
while test "x$ac_lo" != "x$ac_hi"; do
 
26973
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
26974
  cat >conftest.$ac_ext <<_ACEOF
 
26975
/* confdefs.h.  */
 
26976
_ACEOF
 
26977
cat confdefs.h >>conftest.$ac_ext
 
26978
cat >>conftest.$ac_ext <<_ACEOF
 
26979
/* end confdefs.h.  */
 
26980
$ac_includes_default
 
26981
int
 
26982
main ()
 
26983
{
 
26984
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
 
26985
test_array [0] = 0
 
26986
 
 
26987
  ;
 
26988
  return 0;
 
26989
}
 
26990
_ACEOF
 
26991
rm -f conftest.$ac_objext
 
26992
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26993
  (eval $ac_compile) 2>conftest.er1
 
26994
  ac_status=$?
 
26995
  grep -v '^ *+' conftest.er1 >conftest.err
 
26996
  rm -f conftest.er1
 
26997
  cat conftest.err >&5
 
26998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26999
  (exit $ac_status); } &&
 
27000
         { ac_try='test -z "$ac_c_werror_flag"
 
27001
                         || test ! -s conftest.err'
 
27002
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27003
  (eval $ac_try) 2>&5
 
27004
  ac_status=$?
 
27005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27006
  (exit $ac_status); }; } &&
 
27007
         { ac_try='test -s conftest.$ac_objext'
 
27008
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27009
  (eval $ac_try) 2>&5
 
27010
  ac_status=$?
 
27011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27012
  (exit $ac_status); }; }; then
 
27013
  ac_hi=$ac_mid
 
27014
else
 
27015
  echo "$as_me: failed program was:" >&5
 
27016
sed 's/^/| /' conftest.$ac_ext >&5
 
27017
 
 
27018
ac_lo=`expr '(' $ac_mid ')' + 1`
 
27019
fi
 
27020
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27021
done
 
27022
case $ac_lo in
 
27023
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
 
27024
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
 
27025
See \`config.log' for more details." >&5
 
27026
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
 
27027
See \`config.log' for more details." >&2;}
 
27028
   { (exit 1); exit 1; }; } ;;
 
27029
esac
 
27030
else
 
27031
  if test "$cross_compiling" = yes; then
 
27032
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
27033
See \`config.log' for more details." >&5
 
27034
echo "$as_me: error: cannot run test program while cross compiling
 
27035
See \`config.log' for more details." >&2;}
 
27036
   { (exit 1); exit 1; }; }
 
27037
else
 
27038
  cat >conftest.$ac_ext <<_ACEOF
 
27039
/* confdefs.h.  */
 
27040
_ACEOF
 
27041
cat confdefs.h >>conftest.$ac_ext
 
27042
cat >>conftest.$ac_ext <<_ACEOF
 
27043
/* end confdefs.h.  */
 
27044
$ac_includes_default
 
27045
long longval () { return (long) (sizeof (unsigned long)); }
 
27046
unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
 
27047
#include <stdio.h>
 
27048
#include <stdlib.h>
 
27049
int
 
27050
main ()
 
27051
{
 
27052
 
 
27053
  FILE *f = fopen ("conftest.val", "w");
 
27054
  if (! f)
 
27055
    exit (1);
 
27056
  if (((long) (sizeof (unsigned long))) < 0)
 
27057
    {
 
27058
      long i = longval ();
 
27059
      if (i != ((long) (sizeof (unsigned long))))
 
27060
        exit (1);
 
27061
      fprintf (f, "%ld\n", i);
 
27062
    }
 
27063
  else
 
27064
    {
 
27065
      unsigned long i = ulongval ();
 
27066
      if (i != ((long) (sizeof (unsigned long))))
 
27067
        exit (1);
 
27068
      fprintf (f, "%lu\n", i);
 
27069
    }
 
27070
  exit (ferror (f) || fclose (f) != 0);
 
27071
 
 
27072
  ;
 
27073
  return 0;
 
27074
}
 
27075
_ACEOF
 
27076
rm -f conftest$ac_exeext
 
27077
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27078
  (eval $ac_link) 2>&5
 
27079
  ac_status=$?
 
27080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27081
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
27082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27083
  (eval $ac_try) 2>&5
 
27084
  ac_status=$?
 
27085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27086
  (exit $ac_status); }; }; then
 
27087
  ac_cv_sizeof_unsigned_long=`cat conftest.val`
 
27088
else
 
27089
  echo "$as_me: program exited with status $ac_status" >&5
 
27090
echo "$as_me: failed program was:" >&5
 
27091
sed 's/^/| /' conftest.$ac_ext >&5
 
27092
 
 
27093
( exit $ac_status )
 
27094
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
 
27095
See \`config.log' for more details." >&5
 
27096
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
 
27097
See \`config.log' for more details." >&2;}
 
27098
   { (exit 1); exit 1; }; }
 
27099
fi
 
27100
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
27101
fi
 
27102
fi
 
27103
rm -f conftest.val
 
27104
else
 
27105
  ac_cv_sizeof_unsigned_long=0
 
27106
fi
 
27107
fi
 
27108
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
 
27109
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
 
27110
cat >>confdefs.h <<_ACEOF
 
27111
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
 
27112
_ACEOF
 
27113
 
 
27114
 
 
27115
 
 
27116
  echo "$as_me:$LINENO: checking sizeof size_t == sizeof unsigned long" >&5
 
27117
echo $ECHO_N "checking sizeof size_t == sizeof unsigned long... $ECHO_C" >&6
 
27118
  cat >conftest.$ac_ext <<_ACEOF
 
27119
/* confdefs.h.  */
 
27120
_ACEOF
 
27121
cat confdefs.h >>conftest.$ac_ext
 
27122
cat >>conftest.$ac_ext <<_ACEOF
 
27123
/* end confdefs.h.  */
 
27124
 
 
27125
int
 
27126
main ()
 
27127
{
 
27128
 
 
27129
    #if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG
 
27130
       choke me
 
27131
    #endif
 
27132
 
 
27133
  ;
 
27134
  return 0;
 
27135
}
 
27136
_ACEOF
 
27137
rm -f conftest.$ac_objext
 
27138
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27139
  (eval $ac_compile) 2>conftest.er1
 
27140
  ac_status=$?
 
27141
  grep -v '^ *+' conftest.er1 >conftest.err
 
27142
  rm -f conftest.er1
 
27143
  cat conftest.err >&5
 
27144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27145
  (exit $ac_status); } &&
 
27146
         { ac_try='test -z "$ac_c_werror_flag"
 
27147
                         || test ! -s conftest.err'
 
27148
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27149
  (eval $ac_try) 2>&5
 
27150
  ac_status=$?
 
27151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27152
  (exit $ac_status); }; } &&
 
27153
         { ac_try='test -s conftest.$ac_objext'
 
27154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27155
  (eval $ac_try) 2>&5
 
27156
  ac_status=$?
 
27157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27158
  (exit $ac_status); }; }; then
 
27159
  echo "$as_me:$LINENO: result: yes" >&5
 
27160
echo "${ECHO_T}yes" >&6
 
27161
else
 
27162
  echo "$as_me: failed program was:" >&5
 
27163
sed 's/^/| /' conftest.$ac_ext >&5
 
27164
 
 
27165
 
 
27166
      echo "$as_me:$LINENO: result: no" >&5
 
27167
echo "${ECHO_T}no" >&6
 
27168
      { { echo "$as_me:$LINENO: error:
 
27169
       Apparently on your system our assumption sizeof size_t == sizeof unsigned long
 
27170
       does not apply. Please mail kde-devel@kde.org with a description of your system!
 
27171
      " >&5
 
27172
echo "$as_me: error:
 
27173
       Apparently on your system our assumption sizeof size_t == sizeof unsigned long
 
27174
       does not apply. Please mail kde-devel@kde.org with a description of your system!
 
27175
      " >&2;}
 
27176
   { (exit 1); exit 1; }; }
 
27177
 
 
27178
fi
 
27179
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27180
 
 
27181
 
 
27182
# darwin needs this to initialize the environment
 
27183
 
 
27184
for ac_header in crt_externs.h
 
27185
do
 
27186
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
27187
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
27188
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
27189
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
27190
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
27191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27192
fi
 
27193
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
27194
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
27195
else
 
27196
  # Is the header compilable?
 
27197
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
27198
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
27199
cat >conftest.$ac_ext <<_ACEOF
 
27200
/* confdefs.h.  */
 
27201
_ACEOF
 
27202
cat confdefs.h >>conftest.$ac_ext
 
27203
cat >>conftest.$ac_ext <<_ACEOF
 
27204
/* end confdefs.h.  */
 
27205
$ac_includes_default
 
27206
#include <$ac_header>
 
27207
_ACEOF
 
27208
rm -f conftest.$ac_objext
 
27209
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27210
  (eval $ac_compile) 2>conftest.er1
 
27211
  ac_status=$?
 
27212
  grep -v '^ *+' conftest.er1 >conftest.err
 
27213
  rm -f conftest.er1
 
27214
  cat conftest.err >&5
 
27215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27216
  (exit $ac_status); } &&
 
27217
         { ac_try='test -z "$ac_c_werror_flag"
 
27218
                         || test ! -s conftest.err'
 
27219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27220
  (eval $ac_try) 2>&5
 
27221
  ac_status=$?
 
27222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27223
  (exit $ac_status); }; } &&
 
27224
         { ac_try='test -s conftest.$ac_objext'
 
27225
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27226
  (eval $ac_try) 2>&5
 
27227
  ac_status=$?
 
27228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27229
  (exit $ac_status); }; }; then
 
27230
  ac_header_compiler=yes
 
27231
else
 
27232
  echo "$as_me: failed program was:" >&5
 
27233
sed 's/^/| /' conftest.$ac_ext >&5
 
27234
 
 
27235
ac_header_compiler=no
 
27236
fi
 
27237
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27238
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
27239
echo "${ECHO_T}$ac_header_compiler" >&6
 
27240
 
 
27241
# Is the header present?
 
27242
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
27243
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
27244
cat >conftest.$ac_ext <<_ACEOF
 
27245
/* confdefs.h.  */
 
27246
_ACEOF
 
27247
cat confdefs.h >>conftest.$ac_ext
 
27248
cat >>conftest.$ac_ext <<_ACEOF
 
27249
/* end confdefs.h.  */
 
27250
#include <$ac_header>
 
27251
_ACEOF
 
27252
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
27253
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
27254
  ac_status=$?
 
27255
  grep -v '^ *+' conftest.er1 >conftest.err
 
27256
  rm -f conftest.er1
 
27257
  cat conftest.err >&5
 
27258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27259
  (exit $ac_status); } >/dev/null; then
 
27260
  if test -s conftest.err; then
 
27261
    ac_cpp_err=$ac_c_preproc_warn_flag
 
27262
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
27263
  else
 
27264
    ac_cpp_err=
 
27265
  fi
 
27266
else
 
27267
  ac_cpp_err=yes
 
27268
fi
 
27269
if test -z "$ac_cpp_err"; then
 
27270
  ac_header_preproc=yes
 
27271
else
 
27272
  echo "$as_me: failed program was:" >&5
 
27273
sed 's/^/| /' conftest.$ac_ext >&5
 
27274
 
 
27275
  ac_header_preproc=no
 
27276
fi
 
27277
rm -f conftest.err conftest.$ac_ext
 
27278
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
27279
echo "${ECHO_T}$ac_header_preproc" >&6
 
27280
 
 
27281
# So?  What about this header?
 
27282
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
27283
  yes:no: )
 
27284
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
27285
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
27286
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
27287
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
27288
    ac_header_preproc=yes
 
27289
    ;;
 
27290
  no:yes:* )
 
27291
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
27292
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
27293
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
27294
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
27295
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
27296
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
27297
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
27298
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
27299
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
27300
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
27301
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
27302
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
27303
    (
 
27304
      cat <<\_ASBOX
 
27305
## ------------------------------------------ ##
 
27306
## Report this to the AC_PACKAGE_NAME lists.  ##
 
27307
## ------------------------------------------ ##
 
27308
_ASBOX
 
27309
    ) |
 
27310
      sed "s/^/$as_me: WARNING:     /" >&2
 
27311
    ;;
 
27312
esac
 
27313
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
27314
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
27315
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
27316
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27317
else
 
27318
  eval "$as_ac_Header=\$ac_header_preproc"
 
27319
fi
 
27320
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
27321
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
27322
 
 
27323
fi
 
27324
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
27325
  cat >>confdefs.h <<_ACEOF
 
27326
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
27327
_ACEOF
 
27328
 
 
27329
fi
 
27330
 
 
27331
done
 
27332
 
 
27333
echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
 
27334
echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6
 
27335
if test "${ac_cv_func__NSGetEnviron+set}" = set; then
 
27336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27337
else
 
27338
  cat >conftest.$ac_ext <<_ACEOF
 
27339
/* confdefs.h.  */
 
27340
_ACEOF
 
27341
cat confdefs.h >>conftest.$ac_ext
 
27342
cat >>conftest.$ac_ext <<_ACEOF
 
27343
/* end confdefs.h.  */
 
27344
/* Define _NSGetEnviron to an innocuous variant, in case <limits.h> declares _NSGetEnviron.
 
27345
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
27346
#define _NSGetEnviron innocuous__NSGetEnviron
 
27347
 
 
27348
/* System header to define __stub macros and hopefully few prototypes,
 
27349
    which can conflict with char _NSGetEnviron (); below.
 
27350
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
27351
    <limits.h> exists even on freestanding compilers.  */
 
27352
 
 
27353
#ifdef __STDC__
 
27354
# include <limits.h>
 
27355
#else
 
27356
# include <assert.h>
 
27357
#endif
 
27358
 
 
27359
#undef _NSGetEnviron
 
27360
 
 
27361
/* Override any gcc2 internal prototype to avoid an error.  */
 
27362
#ifdef __cplusplus
 
27363
extern "C"
 
27364
{
 
27365
#endif
 
27366
/* We use char because int might match the return type of a gcc2
 
27367
   builtin and then its argument prototype would still apply.  */
 
27368
char _NSGetEnviron ();
 
27369
/* The GNU C library defines this for functions which it implements
 
27370
    to always fail with ENOSYS.  Some functions are actually named
 
27371
    something starting with __ and the normal name is an alias.  */
 
27372
#if defined (__stub__NSGetEnviron) || defined (__stub____NSGetEnviron)
 
27373
choke me
 
27374
#else
 
27375
char (*f) () = _NSGetEnviron;
 
27376
#endif
 
27377
#ifdef __cplusplus
 
27378
}
 
27379
#endif
 
27380
 
 
27381
int
 
27382
main ()
 
27383
{
 
27384
return f != _NSGetEnviron;
 
27385
  ;
 
27386
  return 0;
 
27387
}
 
27388
_ACEOF
 
27389
rm -f conftest.$ac_objext conftest$ac_exeext
 
27390
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27391
  (eval $ac_link) 2>conftest.er1
 
27392
  ac_status=$?
 
27393
  grep -v '^ *+' conftest.er1 >conftest.err
 
27394
  rm -f conftest.er1
 
27395
  cat conftest.err >&5
 
27396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27397
  (exit $ac_status); } &&
 
27398
         { ac_try='test -z "$ac_c_werror_flag"
 
27399
                         || test ! -s conftest.err'
 
27400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27401
  (eval $ac_try) 2>&5
 
27402
  ac_status=$?
 
27403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27404
  (exit $ac_status); }; } &&
 
27405
         { ac_try='test -s conftest$ac_exeext'
 
27406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27407
  (eval $ac_try) 2>&5
 
27408
  ac_status=$?
 
27409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27410
  (exit $ac_status); }; }; then
 
27411
  ac_cv_func__NSGetEnviron=yes
 
27412
else
 
27413
  echo "$as_me: failed program was:" >&5
 
27414
sed 's/^/| /' conftest.$ac_ext >&5
 
27415
 
 
27416
ac_cv_func__NSGetEnviron=no
 
27417
fi
 
27418
rm -f conftest.err conftest.$ac_objext \
 
27419
      conftest$ac_exeext conftest.$ac_ext
 
27420
fi
 
27421
echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
 
27422
echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6
 
27423
if test $ac_cv_func__NSGetEnviron = yes; then
 
27424
 
 
27425
cat >>confdefs.h <<\_ACEOF
 
27426
#define HAVE_NSGETENVIRON 1
 
27427
_ACEOF
 
27428
 
 
27429
fi
 
27430
 
 
27431
 
 
27432
 
 
27433
 
 
27434
 
 
27435
 
 
27436
 
 
27437
 
 
27438
 
 
27439
 
 
27440
for ac_func in vsnprintf snprintf
 
27441
do
 
27442
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
27443
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
27444
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
27445
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
27446
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27447
else
 
27448
  cat >conftest.$ac_ext <<_ACEOF
 
27449
/* confdefs.h.  */
 
27450
_ACEOF
 
27451
cat confdefs.h >>conftest.$ac_ext
 
27452
cat >>conftest.$ac_ext <<_ACEOF
 
27453
/* end confdefs.h.  */
 
27454
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
27455
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
27456
#define $ac_func innocuous_$ac_func
 
27457
 
 
27458
/* System header to define __stub macros and hopefully few prototypes,
 
27459
    which can conflict with char $ac_func (); below.
 
27460
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
27461
    <limits.h> exists even on freestanding compilers.  */
 
27462
 
 
27463
#ifdef __STDC__
 
27464
# include <limits.h>
 
27465
#else
 
27466
# include <assert.h>
 
27467
#endif
 
27468
 
 
27469
#undef $ac_func
 
27470
 
 
27471
/* Override any gcc2 internal prototype to avoid an error.  */
 
27472
#ifdef __cplusplus
 
27473
extern "C"
 
27474
{
 
27475
#endif
 
27476
/* We use char because int might match the return type of a gcc2
 
27477
   builtin and then its argument prototype would still apply.  */
 
27478
char $ac_func ();
 
27479
/* The GNU C library defines this for functions which it implements
 
27480
    to always fail with ENOSYS.  Some functions are actually named
 
27481
    something starting with __ and the normal name is an alias.  */
 
27482
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
27483
choke me
 
27484
#else
 
27485
char (*f) () = $ac_func;
 
27486
#endif
 
27487
#ifdef __cplusplus
 
27488
}
 
27489
#endif
 
27490
 
 
27491
int
 
27492
main ()
 
27493
{
 
27494
return f != $ac_func;
 
27495
  ;
 
27496
  return 0;
 
27497
}
 
27498
_ACEOF
 
27499
rm -f conftest.$ac_objext conftest$ac_exeext
 
27500
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27501
  (eval $ac_link) 2>conftest.er1
 
27502
  ac_status=$?
 
27503
  grep -v '^ *+' conftest.er1 >conftest.err
 
27504
  rm -f conftest.er1
 
27505
  cat conftest.err >&5
 
27506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27507
  (exit $ac_status); } &&
 
27508
         { ac_try='test -z "$ac_c_werror_flag"
 
27509
                         || test ! -s conftest.err'
 
27510
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27511
  (eval $ac_try) 2>&5
 
27512
  ac_status=$?
 
27513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27514
  (exit $ac_status); }; } &&
 
27515
         { ac_try='test -s conftest$ac_exeext'
 
27516
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27517
  (eval $ac_try) 2>&5
 
27518
  ac_status=$?
 
27519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27520
  (exit $ac_status); }; }; then
 
27521
  eval "$as_ac_var=yes"
 
27522
else
 
27523
  echo "$as_me: failed program was:" >&5
 
27524
sed 's/^/| /' conftest.$ac_ext >&5
 
27525
 
 
27526
eval "$as_ac_var=no"
 
27527
fi
 
27528
rm -f conftest.err conftest.$ac_objext \
 
27529
      conftest$ac_exeext conftest.$ac_ext
 
27530
fi
 
27531
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
27532
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
27533
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
27534
  cat >>confdefs.h <<_ACEOF
 
27535
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
27536
_ACEOF
 
27537
 
 
27538
fi
 
27539
done
 
27540
 
 
27541
 
 
27542
 
 
27543
 
 
27544
 
 
27545
 
 
27546
 
 
27547
 
 
27548
 
 
27549
# Check whether --enable-embedded or --disable-embedded was given.
 
27550
if test "${enable_embedded+set}" = set; then
 
27551
  enableval="$enable_embedded"
 
27552
  kde_use_qt_emb=$enableval
 
27553
else
 
27554
  kde_use_qt_emb=no
 
27555
 
 
27556
fi;
 
27557
 
 
27558
# Check whether --enable-qtopia or --disable-qtopia was given.
 
27559
if test "${enable_qtopia+set}" = set; then
 
27560
  enableval="$enable_qtopia"
 
27561
  kde_use_qt_emb_palm=$enableval
 
27562
else
 
27563
  kde_use_qt_emb_palm=no
 
27564
 
 
27565
fi;
 
27566
 
 
27567
# Check whether --enable-mac or --disable-mac was given.
 
27568
if test "${enable_mac+set}" = set; then
 
27569
  enableval="$enable_mac"
 
27570
  kde_use_qt_mac=$enableval
 
27571
else
 
27572
  kde_use_qt_mac=no
 
27573
 
 
27574
fi;
 
27575
 
 
27576
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
 
27577
 
 
27578
echo "$as_me:$LINENO: checking for X" >&5
 
27579
echo $ECHO_N "checking for X... $ECHO_C" >&6
 
27580
 
 
27581
if test "${kde_cv_have_x+set}" = set; then
 
27582
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27583
else
 
27584
  # One or both of the vars are not set, and there is no cached value.
 
27585
if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
 
27586
   kde_x_includes=NO
 
27587
else
 
27588
   kde_x_includes=$x_includes
 
27589
fi
 
27590
if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
 
27591
   kde_x_libraries=NO
 
27592
else
 
27593
   kde_x_libraries=$x_libraries
 
27594
fi
 
27595
 
 
27596
# below we use the standard autoconf calls
 
27597
ac_x_libraries=$kde_x_libraries
 
27598
ac_x_includes=$kde_x_includes
 
27599
 
 
27600
 
 
27601
 
 
27602
 
 
27603
if test "$ac_x_includes" = NO; then
 
27604
  # Guess where to find include files, by looking for this one X11 .h file.
 
27605
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
 
27606
 
 
27607
  # First, try using that file with no special directory specified.
 
27608
cat >conftest.$ac_ext <<_ACEOF
 
27609
/* confdefs.h.  */
 
27610
_ACEOF
 
27611
cat confdefs.h >>conftest.$ac_ext
 
27612
cat >>conftest.$ac_ext <<_ACEOF
 
27613
/* end confdefs.h.  */
 
27614
#include <$x_direct_test_include>
 
27615
_ACEOF
 
27616
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
27617
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
27618
  ac_status=$?
 
27619
  grep -v '^ *+' conftest.er1 >conftest.err
 
27620
  rm -f conftest.er1
 
27621
  cat conftest.err >&5
 
27622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27623
  (exit $ac_status); } >/dev/null; then
 
27624
  if test -s conftest.err; then
 
27625
    ac_cpp_err=$ac_c_preproc_warn_flag
 
27626
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
27627
  else
 
27628
    ac_cpp_err=
 
27629
  fi
 
27630
else
 
27631
  ac_cpp_err=yes
 
27632
fi
 
27633
if test -z "$ac_cpp_err"; then
 
27634
  # We can compile using X headers with no special include directory.
 
27635
ac_x_includes=
 
27636
else
 
27637
  echo "$as_me: failed program was:" >&5
 
27638
sed 's/^/| /' conftest.$ac_ext >&5
 
27639
 
 
27640
  # Look for the header file in a standard set of common directories.
 
27641
# Check X11 before X11Rn because it is often a symlink to the current release.
 
27642
  for ac_dir in               \
 
27643
    /usr/X11/include          \
 
27644
    /usr/X11R6/include        \
 
27645
    /usr/X11R5/include        \
 
27646
    /usr/X11R4/include        \
 
27647
                              \
 
27648
    /usr/include/X11          \
 
27649
    /usr/include/X11R6        \
 
27650
    /usr/include/X11R5        \
 
27651
    /usr/include/X11R4        \
 
27652
                              \
 
27653
    /usr/local/X11/include    \
 
27654
    /usr/local/X11R6/include  \
 
27655
    /usr/local/X11R5/include  \
 
27656
    /usr/local/X11R4/include  \
 
27657
                              \
 
27658
    /usr/local/include/X11    \
 
27659
    /usr/local/include/X11R6  \
 
27660
    /usr/local/include/X11R5  \
 
27661
    /usr/local/include/X11R4  \
 
27662
                              \
 
27663
    /usr/X386/include         \
 
27664
    /usr/x386/include         \
 
27665
    /usr/XFree86/include/X11  \
 
27666
                              \
 
27667
    /usr/include              \
 
27668
    /usr/local/include        \
 
27669
    /usr/unsupported/include  \
 
27670
    /usr/athena/include       \
 
27671
    /usr/local/x11r5/include  \
 
27672
    /usr/lpp/Xamples/include  \
 
27673
                              \
 
27674
    /usr/openwin/include      \
 
27675
    /usr/openwin/share/include \
 
27676
    ; \
 
27677
  do
 
27678
    if test -r "$ac_dir/$x_direct_test_include"; then
 
27679
      ac_x_includes=$ac_dir
 
27680
      break
 
27681
    fi
 
27682
  done
 
27683
fi
 
27684
rm -f conftest.err conftest.$ac_ext
 
27685
fi # $ac_x_includes = NO
 
27686
 
 
27687
if test "$ac_x_libraries" = NO; then
 
27688
  # Check for the libraries.
 
27689
 
 
27690
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
 
27691
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
 
27692
 
 
27693
  # See if we find them without any special options.
 
27694
  # Don't add to $LIBS permanently.
 
27695
  ac_save_LIBS="$LIBS"
 
27696
  LIBS="-l$x_direct_test_library $LIBS"
 
27697
cat >conftest.$ac_ext <<_ACEOF
 
27698
/* confdefs.h.  */
 
27699
_ACEOF
 
27700
cat confdefs.h >>conftest.$ac_ext
 
27701
cat >>conftest.$ac_ext <<_ACEOF
 
27702
/* end confdefs.h.  */
 
27703
#include <X11/Intrinsic.h>
 
27704
int
 
27705
main ()
 
27706
{
 
27707
${x_direct_test_function}(1)
 
27708
  ;
 
27709
  return 0;
 
27710
}
 
27711
_ACEOF
 
27712
rm -f conftest.$ac_objext conftest$ac_exeext
 
27713
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27714
  (eval $ac_link) 2>conftest.er1
 
27715
  ac_status=$?
 
27716
  grep -v '^ *+' conftest.er1 >conftest.err
 
27717
  rm -f conftest.er1
 
27718
  cat conftest.err >&5
 
27719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27720
  (exit $ac_status); } &&
 
27721
         { ac_try='test -z "$ac_c_werror_flag"
 
27722
                         || test ! -s conftest.err'
 
27723
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27724
  (eval $ac_try) 2>&5
 
27725
  ac_status=$?
 
27726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27727
  (exit $ac_status); }; } &&
 
27728
         { ac_try='test -s conftest$ac_exeext'
 
27729
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27730
  (eval $ac_try) 2>&5
 
27731
  ac_status=$?
 
27732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27733
  (exit $ac_status); }; }; then
 
27734
  LIBS="$ac_save_LIBS"
 
27735
# We can link X programs with no special library path.
 
27736
ac_x_libraries=
 
27737
else
 
27738
  echo "$as_me: failed program was:" >&5
 
27739
sed 's/^/| /' conftest.$ac_ext >&5
 
27740
 
 
27741
LIBS="$ac_save_LIBS"
 
27742
# First see if replacing the include by lib works.
 
27743
# Check X11 before X11Rn because it is often a symlink to the current release.
 
27744
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib${kdelibsuff}/` \
 
27745
    /usr/X11/lib${kdelibsuff}           \
 
27746
    /usr/X11R6/lib${kdelibsuff}         \
 
27747
    /usr/X11R5/lib${kdelibsuff}         \
 
27748
    /usr/X11R4/lib${kdelibsuff}         \
 
27749
                                        \
 
27750
    /usr/lib${kdelibsuff}/X11           \
 
27751
    /usr/lib${kdelibsuff}/X11R6         \
 
27752
    /usr/lib${kdelibsuff}/X11R5         \
 
27753
    /usr/lib${kdelibsuff}/X11R4         \
 
27754
                                        \
 
27755
    /usr/local/X11/lib${kdelibsuff}     \
 
27756
    /usr/local/X11R6/lib${kdelibsuff}   \
 
27757
    /usr/local/X11R5/lib${kdelibsuff}   \
 
27758
    /usr/local/X11R4/lib${kdelibsuff}   \
 
27759
                                        \
 
27760
    /usr/local/lib${kdelibsuff}/X11     \
 
27761
    /usr/local/lib${kdelibsuff}/X11R6   \
 
27762
    /usr/local/lib${kdelibsuff}/X11R5   \
 
27763
    /usr/local/lib${kdelibsuff}/X11R4   \
 
27764
                                        \
 
27765
    /usr/X386/lib${kdelibsuff}          \
 
27766
    /usr/x386/lib${kdelibsuff}          \
 
27767
    /usr/XFree86/lib${kdelibsuff}/X11   \
 
27768
                                        \
 
27769
    /usr/lib${kdelibsuff}               \
 
27770
    /usr/local/lib${kdelibsuff}         \
 
27771
    /usr/unsupported/lib${kdelibsuff}   \
 
27772
    /usr/athena/lib${kdelibsuff}        \
 
27773
    /usr/local/x11r5/lib${kdelibsuff}   \
 
27774
    /usr/lpp/Xamples/lib${kdelibsuff}   \
 
27775
    /lib/usr/lib${kdelibsuff}/X11       \
 
27776
                                        \
 
27777
    /usr/openwin/lib${kdelibsuff}       \
 
27778
    /usr/openwin/share/lib${kdelibsuff} \
 
27779
    ; \
 
27780
do
 
27781
  for ac_extension in a so sl; do
 
27782
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
 
27783
      ac_x_libraries=$ac_dir
 
27784
      break 2
 
27785
    fi
 
27786
  done
 
27787
done
 
27788
fi
 
27789
rm -f conftest.err conftest.$ac_objext \
 
27790
      conftest$ac_exeext conftest.$ac_ext
 
27791
fi # $ac_x_libraries = NO
 
27792
 
 
27793
case "$host" in
 
27794
mips-sgi-irix6*)
 
27795
  ;;
 
27796
*-*-solaris*)
 
27797
  ;;
 
27798
*)
 
27799
  rm -fr conftest.dir
 
27800
if mkdir conftest.dir; then
 
27801
  cd conftest.dir
 
27802
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 
27803
  cat >Imakefile <<'_ACEOF'
 
27804
acfindx:
 
27805
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
27806
_ACEOF
 
27807
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
27808
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
27809
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
27810
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 
27811
    for ac_extension in a so sl; do
 
27812
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
 
27813
         test -f $ac_im_libdir/libX11.$ac_extension; then
 
27814
        ac_im_usrlibdir=$ac_im_libdir; break
 
27815
      fi
 
27816
    done
 
27817
    # Screen out bogus values from the imake configuration.  They are
 
27818
    # bogus both because they are the default anyway, and because
 
27819
    # using them would break gcc on systems where it needs fixed includes.
 
27820
    case $ac_im_incroot in
 
27821
        /usr/include) ;;
 
27822
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
27823
    esac
 
27824
    case $ac_im_usrlibdir in
 
27825
        /usr/lib | /lib) ;;
 
27826
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
27827
    esac
 
27828
  fi
 
27829
  cd ..
 
27830
  rm -fr conftest.dir
 
27831
fi
 
27832
 
 
27833
  if test -z "$ac_x_includes"; then
 
27834
    ac_x_includes="."
 
27835
  fi
 
27836
  if test -z "$ac_x_libraries"; then
 
27837
    ac_x_libraries="/usr/lib${kdelibsuff}"
 
27838
  fi
 
27839
esac
 
27840
#from now on we use our own again
 
27841
 
 
27842
# when the user already gave --x-includes, we ignore
 
27843
# what the standard autoconf macros told us.
 
27844
if test "$kde_x_includes" = NO; then
 
27845
  kde_x_includes=$ac_x_includes
 
27846
fi
 
27847
 
 
27848
# for --x-libraries too
 
27849
if test "$kde_x_libraries" = NO; then
 
27850
  kde_x_libraries=$ac_x_libraries
 
27851
fi
 
27852
 
 
27853
if test "$kde_x_includes" = NO; then
 
27854
  { { echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and add the correct paths!" >&5
 
27855
echo "$as_me: error: Can't find X includes. Please check your installation and add the correct paths!" >&2;}
 
27856
   { (exit 1); exit 1; }; }
 
27857
fi
 
27858
 
 
27859
if test "$kde_x_libraries" = NO; then
 
27860
  { { echo "$as_me:$LINENO: error: Can't find X libraries. Please check your installation and add the correct paths!" >&5
 
27861
echo "$as_me: error: Can't find X libraries. Please check your installation and add the correct paths!" >&2;}
 
27862
   { (exit 1); exit 1; }; }
 
27863
fi
 
27864
 
 
27865
# Record where we found X for the cache.
 
27866
kde_cv_have_x="have_x=yes \
 
27867
         kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
 
27868
 
 
27869
fi
 
27870
 
 
27871
eval "$kde_cv_have_x"
 
27872
 
 
27873
if test "$have_x" != yes; then
 
27874
  echo "$as_me:$LINENO: result: $have_x" >&5
 
27875
echo "${ECHO_T}$have_x" >&6
 
27876
  no_x=yes
 
27877
else
 
27878
  echo "$as_me:$LINENO: result: libraries $kde_x_libraries, headers $kde_x_includes" >&5
 
27879
echo "${ECHO_T}libraries $kde_x_libraries, headers $kde_x_includes" >&6
 
27880
fi
 
27881
 
 
27882
if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
 
27883
  X_INCLUDES=""
 
27884
  x_includes=".";  else
 
27885
  x_includes=$kde_x_includes
 
27886
  X_INCLUDES="-I$x_includes"
 
27887
fi
 
27888
 
 
27889
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
 
27890
  X_LDFLAGS=""
 
27891
  x_libraries="/usr/lib";  else
 
27892
  x_libraries=$kde_x_libraries
 
27893
  X_LDFLAGS="-L$x_libraries"
 
27894
fi
 
27895
all_includes="$X_INCLUDES"
 
27896
all_libraries="$X_LDFLAGS $LDFLAGS_AS_NEEDED"
 
27897
 
 
27898
# Check for libraries that X11R6 Xt/Xaw programs need.
 
27899
ac_save_LDFLAGS="$LDFLAGS"
 
27900
LDFLAGS="$LDFLAGS $X_LDFLAGS"
 
27901
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
 
27902
# check for ICE first), but we must link in the order -lSM -lICE or
 
27903
# we get undefined symbols.  So assume we have SM if we have ICE.
 
27904
# These have to be linked with before -lX11, unlike the other
 
27905
# libraries we check for below, so use a different variable.
 
27906
#  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
 
27907
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
 
27908
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
 
27909
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
 
27910
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27911
else
 
27912
  ac_check_lib_save_LIBS=$LIBS
 
27913
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 
27914
cat >conftest.$ac_ext <<_ACEOF
 
27915
/* confdefs.h.  */
 
27916
_ACEOF
 
27917
cat confdefs.h >>conftest.$ac_ext
 
27918
cat >>conftest.$ac_ext <<_ACEOF
 
27919
/* end confdefs.h.  */
 
27920
 
 
27921
/* Override any gcc2 internal prototype to avoid an error.  */
 
27922
#ifdef __cplusplus
 
27923
extern "C"
 
27924
#endif
 
27925
/* We use char because int might match the return type of a gcc2
 
27926
   builtin and then its argument prototype would still apply.  */
 
27927
char IceConnectionNumber ();
 
27928
int
 
27929
main ()
 
27930
{
 
27931
IceConnectionNumber ();
 
27932
  ;
 
27933
  return 0;
 
27934
}
 
27935
_ACEOF
 
27936
rm -f conftest.$ac_objext conftest$ac_exeext
 
27937
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27938
  (eval $ac_link) 2>conftest.er1
 
27939
  ac_status=$?
 
27940
  grep -v '^ *+' conftest.er1 >conftest.err
 
27941
  rm -f conftest.er1
 
27942
  cat conftest.err >&5
 
27943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27944
  (exit $ac_status); } &&
 
27945
         { ac_try='test -z "$ac_c_werror_flag"
 
27946
                         || test ! -s conftest.err'
 
27947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27948
  (eval $ac_try) 2>&5
 
27949
  ac_status=$?
 
27950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27951
  (exit $ac_status); }; } &&
 
27952
         { ac_try='test -s conftest$ac_exeext'
 
27953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27954
  (eval $ac_try) 2>&5
 
27955
  ac_status=$?
 
27956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27957
  (exit $ac_status); }; }; then
 
27958
  ac_cv_lib_ICE_IceConnectionNumber=yes
 
27959
else
 
27960
  echo "$as_me: failed program was:" >&5
 
27961
sed 's/^/| /' conftest.$ac_ext >&5
 
27962
 
 
27963
ac_cv_lib_ICE_IceConnectionNumber=no
 
27964
fi
 
27965
rm -f conftest.err conftest.$ac_objext \
 
27966
      conftest$ac_exeext conftest.$ac_ext
 
27967
LIBS=$ac_check_lib_save_LIBS
 
27968
fi
 
27969
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
27970
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
 
27971
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
 
27972
  LIBSM="-lSM -lICE"
 
27973
fi
 
27974
 
 
27975
LDFLAGS="$ac_save_LDFLAGS"
 
27976
 
 
27977
LIB_X11='-lX11 $(LIBSOCKET)'
 
27978
 
 
27979
echo "$as_me:$LINENO: checking for libXext" >&5
 
27980
echo $ECHO_N "checking for libXext... $ECHO_C" >&6
 
27981
if test "${kde_cv_have_libXext+set}" = set; then
 
27982
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27983
else
 
27984
 
 
27985
kde_ldflags_safe="$LDFLAGS"
 
27986
kde_libs_safe="$LIBS"
 
27987
 
 
27988
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
 
27989
LIBS="-lXext -lX11 $LIBSOCKET"
 
27990
 
 
27991
cat >conftest.$ac_ext <<_ACEOF
 
27992
/* confdefs.h.  */
 
27993
_ACEOF
 
27994
cat confdefs.h >>conftest.$ac_ext
 
27995
cat >>conftest.$ac_ext <<_ACEOF
 
27996
/* end confdefs.h.  */
 
27997
 
 
27998
#include <stdio.h>
 
27999
#ifdef STDC_HEADERS
 
28000
# include <stdlib.h>
 
28001
#endif
 
28002
 
 
28003
int
 
28004
main ()
 
28005
{
 
28006
 
 
28007
printf("hello Xext\n");
 
28008
 
 
28009
  ;
 
28010
  return 0;
 
28011
}
 
28012
_ACEOF
 
28013
rm -f conftest.$ac_objext conftest$ac_exeext
 
28014
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28015
  (eval $ac_link) 2>conftest.er1
 
28016
  ac_status=$?
 
28017
  grep -v '^ *+' conftest.er1 >conftest.err
 
28018
  rm -f conftest.er1
 
28019
  cat conftest.err >&5
 
28020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28021
  (exit $ac_status); } &&
 
28022
         { ac_try='test -z "$ac_c_werror_flag"
 
28023
                         || test ! -s conftest.err'
 
28024
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28025
  (eval $ac_try) 2>&5
 
28026
  ac_status=$?
 
28027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28028
  (exit $ac_status); }; } &&
 
28029
         { ac_try='test -s conftest$ac_exeext'
 
28030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28031
  (eval $ac_try) 2>&5
 
28032
  ac_status=$?
 
28033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28034
  (exit $ac_status); }; }; then
 
28035
  kde_cv_have_libXext=yes
 
28036
else
 
28037
  echo "$as_me: failed program was:" >&5
 
28038
sed 's/^/| /' conftest.$ac_ext >&5
 
28039
 
 
28040
kde_cv_have_libXext=no
 
28041
 
 
28042
fi
 
28043
rm -f conftest.err conftest.$ac_objext \
 
28044
      conftest$ac_exeext conftest.$ac_ext
 
28045
 
 
28046
LDFLAGS=$kde_ldflags_safe
 
28047
LIBS=$kde_libs_safe
 
28048
 
 
28049
fi
 
28050
 
 
28051
 
 
28052
echo "$as_me:$LINENO: result: $kde_cv_have_libXext" >&5
 
28053
echo "${ECHO_T}$kde_cv_have_libXext" >&6
 
28054
 
 
28055
if test "$kde_cv_have_libXext" = "no"; then
 
28056
  { { echo "$as_me:$LINENO: error: We need a working libXext to proceed. Since configure
 
28057
can't find it itself, we stop here assuming that make wouldn't find
 
28058
them either." >&5
 
28059
echo "$as_me: error: We need a working libXext to proceed. Since configure
 
28060
can't find it itself, we stop here assuming that make wouldn't find
 
28061
them either." >&2;}
 
28062
   { (exit 1); exit 1; }; }
 
28063
fi
 
28064
 
 
28065
LIB_XEXT="-lXext"
 
28066
QTE_NORTTI=""
 
28067
 
 
28068
elif test "$kde_use_qt_emb" = "yes"; then
 
28069
    CPPFLAGS=-DQWS
 
28070
  CXXFLAGS="$CXXFLAGS -fno-rtti"
 
28071
  QTE_NORTTI="-fno-rtti -DQWS"
 
28072
  X_PRE_LIBS=""
 
28073
  LIB_X11=""
 
28074
  LIB_XEXT=""
 
28075
  LIB_XRENDER=""
 
28076
  LIBSM=""
 
28077
  X_INCLUDES=""
 
28078
  X_LDFLAGS=""
 
28079
  x_includes=""
 
28080
  x_libraries=""
 
28081
elif test "$kde_use_qt_mac" = "yes"; then
 
28082
      CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp"
 
28083
  CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp"
 
28084
  X_PRE_LIBS=""
 
28085
  LIB_X11=""
 
28086
  LIB_XEXT=""
 
28087
  LIB_XRENDER=""
 
28088
  LIBSM=""
 
28089
  X_INCLUDES=""
 
28090
  X_LDFLAGS=""
 
28091
  x_includes=""
 
28092
  x_libraries=""
 
28093
fi
 
28094
 
 
28095
 
 
28096
 
 
28097
 
 
28098
 
 
28099
 
 
28100
 
 
28101
 
 
28102
 
 
28103
 
 
28104
 
 
28105
 
 
28106
 
 
28107
                LIBPTHREAD=""
 
28108
 
 
28109
  if test -n "$PTHREAD_LIBS"; then
 
28110
    if test "x$PTHREAD_LIBS" = "x-pthread" ; then
 
28111
      LIBPTHREAD="PTHREAD"
 
28112
    else
 
28113
      PTHREAD_LIBS_save="$PTHREAD_LIBS"
 
28114
      PTHREAD_LIBS=`echo "$PTHREAD_LIBS_save" | sed -e 's,^-l,,g'`
 
28115
      echo "$as_me:$LINENO: checking for pthread_create in $PTHREAD_LIBS" >&5
 
28116
echo $ECHO_N "checking for pthread_create in $PTHREAD_LIBS... $ECHO_C" >&6
 
28117
 
 
28118
     kde_save_LDFLAGS="$LDFLAGS"
 
28119
          kde_save_LIBS="$LIBS"
 
28120
     LDFLAGS="$LDFLAGS $all_libraries"
 
28121
     case $host_os in
 
28122
      aix*) LDFLAGS="-brtl $LDFLAGS"
 
28123
        test "$GCC" = yes && LDFLAGS="-Wl,$LDFLAGS"
 
28124
        ;;
 
28125
     esac
 
28126
     as_ac_Lib=`echo "ac_cv_lib_$PTHREAD_LIBS''_pthread_create" | $as_tr_sh`
 
28127
echo "$as_me:$LINENO: checking for pthread_create in -l$PTHREAD_LIBS" >&5
 
28128
echo $ECHO_N "checking for pthread_create in -l$PTHREAD_LIBS... $ECHO_C" >&6
 
28129
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
 
28130
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28131
else
 
28132
  ac_check_lib_save_LIBS=$LIBS
 
28133
LIBS="-l$PTHREAD_LIBS  $LIBS"
 
28134
cat >conftest.$ac_ext <<_ACEOF
 
28135
/* confdefs.h.  */
 
28136
_ACEOF
 
28137
cat confdefs.h >>conftest.$ac_ext
 
28138
cat >>conftest.$ac_ext <<_ACEOF
 
28139
/* end confdefs.h.  */
 
28140
 
 
28141
/* Override any gcc2 internal prototype to avoid an error.  */
 
28142
#ifdef __cplusplus
 
28143
extern "C"
 
28144
#endif
 
28145
/* We use char because int might match the return type of a gcc2
 
28146
   builtin and then its argument prototype would still apply.  */
 
28147
char pthread_create ();
 
28148
int
 
28149
main ()
 
28150
{
 
28151
pthread_create ();
 
28152
  ;
 
28153
  return 0;
 
28154
}
 
28155
_ACEOF
 
28156
rm -f conftest.$ac_objext conftest$ac_exeext
 
28157
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28158
  (eval $ac_link) 2>conftest.er1
 
28159
  ac_status=$?
 
28160
  grep -v '^ *+' conftest.er1 >conftest.err
 
28161
  rm -f conftest.er1
 
28162
  cat conftest.err >&5
 
28163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28164
  (exit $ac_status); } &&
 
28165
         { ac_try='test -z "$ac_c_werror_flag"
 
28166
                         || test ! -s conftest.err'
 
28167
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28168
  (eval $ac_try) 2>&5
 
28169
  ac_status=$?
 
28170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28171
  (exit $ac_status); }; } &&
 
28172
         { ac_try='test -s conftest$ac_exeext'
 
28173
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28174
  (eval $ac_try) 2>&5
 
28175
  ac_status=$?
 
28176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28177
  (exit $ac_status); }; }; then
 
28178
  eval "$as_ac_Lib=yes"
 
28179
else
 
28180
  echo "$as_me: failed program was:" >&5
 
28181
sed 's/^/| /' conftest.$ac_ext >&5
 
28182
 
 
28183
eval "$as_ac_Lib=no"
 
28184
fi
 
28185
rm -f conftest.err conftest.$ac_objext \
 
28186
      conftest$ac_exeext conftest.$ac_ext
 
28187
LIBS=$ac_check_lib_save_LIBS
 
28188
fi
 
28189
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
 
28190
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
 
28191
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
28192
  LIBPTHREAD="$PTHREAD_LIBS_save"
 
28193
fi
 
28194
 
 
28195
     LDFLAGS="$kde_save_LDFLAGS"
 
28196
     LIBS="$kde_save_LIBS"
 
28197
 
 
28198
      PTHREAD_LIBS="$PTHREAD_LIBS_save"
 
28199
    fi
 
28200
  fi
 
28201
 
 
28202
    if test -z "$LIBPTHREAD"; then
 
28203
    echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
28204
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
 
28205
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
 
28206
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28207
else
 
28208
  ac_check_lib_save_LIBS=$LIBS
 
28209
LIBS="-lpthread  $LIBS"
 
28210
cat >conftest.$ac_ext <<_ACEOF
 
28211
/* confdefs.h.  */
 
28212
_ACEOF
 
28213
cat confdefs.h >>conftest.$ac_ext
 
28214
cat >>conftest.$ac_ext <<_ACEOF
 
28215
/* end confdefs.h.  */
 
28216
 
 
28217
/* Override any gcc2 internal prototype to avoid an error.  */
 
28218
#ifdef __cplusplus
 
28219
extern "C"
 
28220
#endif
 
28221
/* We use char because int might match the return type of a gcc2
 
28222
   builtin and then its argument prototype would still apply.  */
 
28223
char pthread_create ();
 
28224
int
 
28225
main ()
 
28226
{
 
28227
pthread_create ();
 
28228
  ;
 
28229
  return 0;
 
28230
}
 
28231
_ACEOF
 
28232
rm -f conftest.$ac_objext conftest$ac_exeext
 
28233
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28234
  (eval $ac_link) 2>conftest.er1
 
28235
  ac_status=$?
 
28236
  grep -v '^ *+' conftest.er1 >conftest.err
 
28237
  rm -f conftest.er1
 
28238
  cat conftest.err >&5
 
28239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28240
  (exit $ac_status); } &&
 
28241
         { ac_try='test -z "$ac_c_werror_flag"
 
28242
                         || test ! -s conftest.err'
 
28243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28244
  (eval $ac_try) 2>&5
 
28245
  ac_status=$?
 
28246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28247
  (exit $ac_status); }; } &&
 
28248
         { ac_try='test -s conftest$ac_exeext'
 
28249
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28250
  (eval $ac_try) 2>&5
 
28251
  ac_status=$?
 
28252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28253
  (exit $ac_status); }; }; then
 
28254
  ac_cv_lib_pthread_pthread_create=yes
 
28255
else
 
28256
  echo "$as_me: failed program was:" >&5
 
28257
sed 's/^/| /' conftest.$ac_ext >&5
 
28258
 
 
28259
ac_cv_lib_pthread_pthread_create=no
 
28260
fi
 
28261
rm -f conftest.err conftest.$ac_objext \
 
28262
      conftest$ac_exeext conftest.$ac_ext
 
28263
LIBS=$ac_check_lib_save_LIBS
 
28264
fi
 
28265
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
 
28266
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
 
28267
if test $ac_cv_lib_pthread_pthread_create = yes; then
 
28268
  LIBPTHREAD="-lpthread"
 
28269
fi
 
28270
 
 
28271
  fi
 
28272
 
 
28273
    if test -z "$LIBPTHREAD" ; then
 
28274
    echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
28275
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
 
28276
    kde_safe_libs=$LIBS
 
28277
    LIBS="$LIBS -lpthread"
 
28278
    cat >conftest.$ac_ext <<_ACEOF
 
28279
/* confdefs.h.  */
 
28280
_ACEOF
 
28281
cat confdefs.h >>conftest.$ac_ext
 
28282
cat >>conftest.$ac_ext <<_ACEOF
 
28283
/* end confdefs.h.  */
 
28284
#include <pthread.h>
 
28285
int
 
28286
main ()
 
28287
{
 
28288
(void)pthread_create(0,0,0,0);
 
28289
  ;
 
28290
  return 0;
 
28291
}
 
28292
_ACEOF
 
28293
rm -f conftest.$ac_objext conftest$ac_exeext
 
28294
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28295
  (eval $ac_link) 2>conftest.er1
 
28296
  ac_status=$?
 
28297
  grep -v '^ *+' conftest.er1 >conftest.err
 
28298
  rm -f conftest.er1
 
28299
  cat conftest.err >&5
 
28300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28301
  (exit $ac_status); } &&
 
28302
         { ac_try='test -z "$ac_c_werror_flag"
 
28303
                         || test ! -s conftest.err'
 
28304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28305
  (eval $ac_try) 2>&5
 
28306
  ac_status=$?
 
28307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28308
  (exit $ac_status); }; } &&
 
28309
         { ac_try='test -s conftest$ac_exeext'
 
28310
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28311
  (eval $ac_try) 2>&5
 
28312
  ac_status=$?
 
28313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28314
  (exit $ac_status); }; }; then
 
28315
 
 
28316
        echo "$as_me:$LINENO: result: yes" >&5
 
28317
echo "${ECHO_T}yes" >&6
 
28318
        LIBPTHREAD="-lpthread"
 
28319
else
 
28320
  echo "$as_me: failed program was:" >&5
 
28321
sed 's/^/| /' conftest.$ac_ext >&5
 
28322
 
 
28323
 
 
28324
        echo "$as_me:$LINENO: result: no" >&5
 
28325
echo "${ECHO_T}no" >&6
 
28326
fi
 
28327
rm -f conftest.err conftest.$ac_objext \
 
28328
      conftest$ac_exeext conftest.$ac_ext
 
28329
    LIBS=$kde_safe_libs
 
28330
  fi
 
28331
 
 
28332
    if test "x$LIBPTHREAD" = "xPTHREAD" ; then
 
28333
    LIBPTHREAD=""
 
28334
  fi
 
28335
 
 
28336
 
 
28337
 
 
28338
 
 
28339
      USE_THREADS=""
 
28340
      if test -z "$LIBPTHREAD"; then
 
28341
 
 
28342
echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
 
28343
echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6
 
28344
kde_cache=`echo pthread | sed 'y% .=/+-,%____p__%'`
 
28345
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
28346
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28347
else
 
28348
 
 
28349
 
 
28350
 
 
28351
   ac_ext=cc
 
28352
ac_cpp='$CXXCPP $CPPFLAGS'
 
28353
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
28354
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
28355
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
28356
 
 
28357
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
28358
 
 
28359
 
 
28360
  save_CXXFLAGS="$CXXFLAGS"
 
28361
  CXXFLAGS="$CXXFLAGS -pthread"
 
28362
  cat >conftest.$ac_ext <<_ACEOF
 
28363
/* confdefs.h.  */
 
28364
_ACEOF
 
28365
cat confdefs.h >>conftest.$ac_ext
 
28366
cat >>conftest.$ac_ext <<_ACEOF
 
28367
/* end confdefs.h.  */
 
28368
 
 
28369
int
 
28370
main ()
 
28371
{
 
28372
 return 0;
 
28373
  ;
 
28374
  return 0;
 
28375
}
 
28376
_ACEOF
 
28377
rm -f conftest.$ac_objext conftest$ac_exeext
 
28378
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28379
  (eval $ac_link) 2>conftest.er1
 
28380
  ac_status=$?
 
28381
  grep -v '^ *+' conftest.er1 >conftest.err
 
28382
  rm -f conftest.er1
 
28383
  cat conftest.err >&5
 
28384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28385
  (exit $ac_status); } &&
 
28386
         { ac_try='test -z "$ac_cxx_werror_flag"
 
28387
                         || test ! -s conftest.err'
 
28388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28389
  (eval $ac_try) 2>&5
 
28390
  ac_status=$?
 
28391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28392
  (exit $ac_status); }; } &&
 
28393
         { ac_try='test -s conftest$ac_exeext'
 
28394
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28395
  (eval $ac_try) 2>&5
 
28396
  ac_status=$?
 
28397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28398
  (exit $ac_status); }; }; then
 
28399
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
28400
else
 
28401
  echo "$as_me: failed program was:" >&5
 
28402
sed 's/^/| /' conftest.$ac_ext >&5
 
28403
 
 
28404
fi
 
28405
rm -f conftest.err conftest.$ac_objext \
 
28406
      conftest$ac_exeext conftest.$ac_ext
 
28407
  CXXFLAGS="$save_CXXFLAGS"
 
28408
  ac_ext=c
 
28409
ac_cpp='$CPP $CPPFLAGS'
 
28410
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
28411
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
28412
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
28413
 
 
28414
 
 
28415
fi
 
28416
 
 
28417
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
28418
 echo "$as_me:$LINENO: result: yes" >&5
 
28419
echo "${ECHO_T}yes" >&6
 
28420
 :
 
28421
 USE_THREADS="-D_THREAD_SAFE -pthread"
 
28422
else
 
28423
 echo "$as_me:$LINENO: result: no" >&5
 
28424
echo "${ECHO_T}no" >&6
 
28425
 :
 
28426
 
 
28427
fi
 
28428
 
 
28429
      fi
 
28430
 
 
28431
 
 
28432
 
 
28433
    case $host_os in
 
28434
        solaris*)
 
28435
 
 
28436
echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
 
28437
echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6
 
28438
kde_cache=`echo mt | sed 'y% .=/+-,%____p__%'`
 
28439
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
28440
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28441
else
 
28442
 
 
28443
 
 
28444
 
 
28445
   ac_ext=cc
 
28446
ac_cpp='$CXXCPP $CPPFLAGS'
 
28447
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
28448
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
28449
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
28450
 
 
28451
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
28452
 
 
28453
 
 
28454
  save_CXXFLAGS="$CXXFLAGS"
 
28455
  CXXFLAGS="$CXXFLAGS -mt"
 
28456
  cat >conftest.$ac_ext <<_ACEOF
 
28457
/* confdefs.h.  */
 
28458
_ACEOF
 
28459
cat confdefs.h >>conftest.$ac_ext
 
28460
cat >>conftest.$ac_ext <<_ACEOF
 
28461
/* end confdefs.h.  */
 
28462
 
 
28463
int
 
28464
main ()
 
28465
{
 
28466
 return 0;
 
28467
  ;
 
28468
  return 0;
 
28469
}
 
28470
_ACEOF
 
28471
rm -f conftest.$ac_objext conftest$ac_exeext
 
28472
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28473
  (eval $ac_link) 2>conftest.er1
 
28474
  ac_status=$?
 
28475
  grep -v '^ *+' conftest.er1 >conftest.err
 
28476
  rm -f conftest.er1
 
28477
  cat conftest.err >&5
 
28478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28479
  (exit $ac_status); } &&
 
28480
         { ac_try='test -z "$ac_cxx_werror_flag"
 
28481
                         || test ! -s conftest.err'
 
28482
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28483
  (eval $ac_try) 2>&5
 
28484
  ac_status=$?
 
28485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28486
  (exit $ac_status); }; } &&
 
28487
         { ac_try='test -s conftest$ac_exeext'
 
28488
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28489
  (eval $ac_try) 2>&5
 
28490
  ac_status=$?
 
28491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28492
  (exit $ac_status); }; }; then
 
28493
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
28494
else
 
28495
  echo "$as_me: failed program was:" >&5
 
28496
sed 's/^/| /' conftest.$ac_ext >&5
 
28497
 
 
28498
fi
 
28499
rm -f conftest.err conftest.$ac_objext \
 
28500
      conftest$ac_exeext conftest.$ac_ext
 
28501
  CXXFLAGS="$save_CXXFLAGS"
 
28502
  ac_ext=c
 
28503
ac_cpp='$CPP $CPPFLAGS'
 
28504
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
28505
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
28506
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
28507
 
 
28508
 
 
28509
fi
 
28510
 
 
28511
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
28512
 echo "$as_me:$LINENO: result: yes" >&5
 
28513
echo "${ECHO_T}yes" >&6
 
28514
 :
 
28515
 USE_THREADS="-mt"
 
28516
else
 
28517
 echo "$as_me:$LINENO: result: no" >&5
 
28518
echo "${ECHO_T}no" >&6
 
28519
 :
 
28520
 
 
28521
fi
 
28522
 
 
28523
                CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
 
28524
                ;;
 
28525
        freebsd*)
 
28526
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE $PTHREAD_CFLAGS"
 
28527
                ;;
 
28528
        aix*)
 
28529
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
 
28530
                LIBPTHREAD="$LIBPTHREAD -lc_r"
 
28531
                ;;
 
28532
        linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
 
28533
                if test "$CXX" = "KCC"; then
 
28534
                  CXXFLAGS="$CXXFLAGS --thread_safe"
 
28535
                  NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe"
 
28536
                fi
 
28537
                ;;
 
28538
        *)
 
28539
                ;;
 
28540
    esac
 
28541
 
 
28542
 
 
28543
 
 
28544
 
 
28545
echo "$as_me:$LINENO: checking for extra includes" >&5
 
28546
echo $ECHO_N "checking for extra includes... $ECHO_C" >&6
 
28547
 
 
28548
# Check whether --with-extra-includes or --without-extra-includes was given.
 
28549
if test "${with_extra_includes+set}" = set; then
 
28550
  withval="$with_extra_includes"
 
28551
  kde_use_extra_includes="$withval"
 
28552
else
 
28553
  kde_use_extra_includes=NONE
 
28554
 
 
28555
fi;
 
28556
kde_extra_includes=
 
28557
if test -n "$kde_use_extra_includes" && \
 
28558
   test "$kde_use_extra_includes" != "NONE"; then
 
28559
 
 
28560
   ac_save_ifs=$IFS
 
28561
   IFS=':'
 
28562
   for dir in $kde_use_extra_includes; do
 
28563
     kde_extra_includes="$kde_extra_includes $dir"
 
28564
     USER_INCLUDES="$USER_INCLUDES -I$dir"
 
28565
   done
 
28566
   IFS=$ac_save_ifs
 
28567
   kde_use_extra_includes="added"
 
28568
else
 
28569
   kde_use_extra_includes="no"
 
28570
fi
 
28571
 
 
28572
 
 
28573
echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
 
28574
echo "${ECHO_T}$kde_use_extra_includes" >&6
 
28575
 
 
28576
kde_extra_libs=
 
28577
echo "$as_me:$LINENO: checking for extra libs" >&5
 
28578
echo $ECHO_N "checking for extra libs... $ECHO_C" >&6
 
28579
 
 
28580
# Check whether --with-extra-libs or --without-extra-libs was given.
 
28581
if test "${with_extra_libs+set}" = set; then
 
28582
  withval="$with_extra_libs"
 
28583
  kde_use_extra_libs=$withval
 
28584
else
 
28585
  kde_use_extra_libs=NONE
 
28586
 
 
28587
fi;
 
28588
if test -n "$kde_use_extra_libs" && \
 
28589
   test "$kde_use_extra_libs" != "NONE"; then
 
28590
 
 
28591
   ac_save_ifs=$IFS
 
28592
   IFS=':'
 
28593
   for dir in $kde_use_extra_libs; do
 
28594
     kde_extra_libs="$kde_extra_libs $dir"
 
28595
     KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
 
28596
     USER_LDFLAGS="$USER_LDFLAGS -L$dir"
 
28597
   done
 
28598
   IFS=$ac_save_ifs
 
28599
   kde_use_extra_libs="added"
 
28600
else
 
28601
   kde_use_extra_libs="no"
 
28602
fi
 
28603
 
 
28604
 
 
28605
 
 
28606
echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
 
28607
echo "${ECHO_T}$kde_use_extra_libs" >&6
 
28608
 
 
28609
 
 
28610
 
 
28611
 
 
28612
echo "$as_me:$LINENO: checking for libz" >&5
 
28613
echo $ECHO_N "checking for libz... $ECHO_C" >&6
 
28614
if test "${ac_cv_lib_z+set}" = set; then
 
28615
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28616
else
 
28617
 
 
28618
kde_save_LIBS="$LIBS"
 
28619
LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
 
28620
kde_save_CFLAGS="$CFLAGS"
 
28621
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
28622
cat >conftest.$ac_ext <<_ACEOF
 
28623
/* confdefs.h.  */
 
28624
_ACEOF
 
28625
cat confdefs.h >>conftest.$ac_ext
 
28626
cat >>conftest.$ac_ext <<_ACEOF
 
28627
/* end confdefs.h.  */
 
28628
 
 
28629
#include<zlib.h>
 
28630
 
 
28631
int
 
28632
main ()
 
28633
{
 
28634
 
 
28635
  char buf[42];
 
28636
  gzFile f = (gzFile) 0;
 
28637
  /* this would segfault.. but we only link, don't run */
 
28638
  (void) gzgets(f, buf, sizeof(buf));
 
28639
 
 
28640
  return (zlibVersion() == ZLIB_VERSION);
 
28641
 
 
28642
  ;
 
28643
  return 0;
 
28644
}
 
28645
_ACEOF
 
28646
rm -f conftest.$ac_objext conftest$ac_exeext
 
28647
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28648
  (eval $ac_link) 2>conftest.er1
 
28649
  ac_status=$?
 
28650
  grep -v '^ *+' conftest.er1 >conftest.err
 
28651
  rm -f conftest.er1
 
28652
  cat conftest.err >&5
 
28653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28654
  (exit $ac_status); } &&
 
28655
         { ac_try='test -z "$ac_c_werror_flag"
 
28656
                         || test ! -s conftest.err'
 
28657
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28658
  (eval $ac_try) 2>&5
 
28659
  ac_status=$?
 
28660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28661
  (exit $ac_status); }; } &&
 
28662
         { ac_try='test -s conftest$ac_exeext'
 
28663
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28664
  (eval $ac_try) 2>&5
 
28665
  ac_status=$?
 
28666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28667
  (exit $ac_status); }; }; then
 
28668
  eval "ac_cv_lib_z='-lz'"
 
28669
else
 
28670
  echo "$as_me: failed program was:" >&5
 
28671
sed 's/^/| /' conftest.$ac_ext >&5
 
28672
 
 
28673
eval "ac_cv_lib_z=no"
 
28674
fi
 
28675
rm -f conftest.err conftest.$ac_objext \
 
28676
      conftest$ac_exeext conftest.$ac_ext
 
28677
LIBS="$kde_save_LIBS"
 
28678
CFLAGS="$kde_save_CFLAGS"
 
28679
 
 
28680
fi
 
28681
if test ! "$ac_cv_lib_z" = no; then
 
28682
 
 
28683
cat >>confdefs.h <<_ACEOF
 
28684
#define HAVE_LIBZ 1
 
28685
_ACEOF
 
28686
 
 
28687
  LIBZ="$ac_cv_lib_z"
 
28688
  echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
 
28689
echo "${ECHO_T}$ac_cv_lib_z" >&6
 
28690
else
 
28691
  { { echo "$as_me:$LINENO: error: not found.
 
28692
          Possibly configure picks up an outdated version
 
28693
          installed by XFree86. Remove it from your system.
 
28694
 
 
28695
          Check your installation and look into config.log" >&5
 
28696
echo "$as_me: error: not found.
 
28697
          Possibly configure picks up an outdated version
 
28698
          installed by XFree86. Remove it from your system.
 
28699
 
 
28700
          Check your installation and look into config.log" >&2;}
 
28701
   { (exit 1); exit 1; }; }
 
28702
  LIBZ=""
 
28703
fi
 
28704
 
 
28705
 
 
28706
 
 
28707
 
 
28708
 
 
28709
echo "$as_me:$LINENO: checking for libpng" >&5
 
28710
echo $ECHO_N "checking for libpng... $ECHO_C" >&6
 
28711
if test "${ac_cv_lib_png+set}" = set; then
 
28712
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28713
else
 
28714
 
 
28715
kde_save_LIBS="$LIBS"
 
28716
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
 
28717
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
 
28718
else
 
28719
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
 
28720
fi
 
28721
kde_save_CFLAGS="$CFLAGS"
 
28722
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
28723
 
 
28724
cat >conftest.$ac_ext <<_ACEOF
 
28725
/* confdefs.h.  */
 
28726
_ACEOF
 
28727
cat confdefs.h >>conftest.$ac_ext
 
28728
cat >>conftest.$ac_ext <<_ACEOF
 
28729
/* end confdefs.h.  */
 
28730
 
 
28731
    #include<png.h>
 
28732
 
 
28733
int
 
28734
main ()
 
28735
{
 
28736
 
 
28737
    png_structp png_ptr = png_create_read_struct(  /* image ptr */
 
28738
                PNG_LIBPNG_VER_STRING, 0, 0, 0 );
 
28739
    return( png_ptr != 0 );
 
28740
 
 
28741
  ;
 
28742
  return 0;
 
28743
}
 
28744
_ACEOF
 
28745
rm -f conftest.$ac_objext conftest$ac_exeext
 
28746
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28747
  (eval $ac_link) 2>conftest.er1
 
28748
  ac_status=$?
 
28749
  grep -v '^ *+' conftest.er1 >conftest.err
 
28750
  rm -f conftest.er1
 
28751
  cat conftest.err >&5
 
28752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28753
  (exit $ac_status); } &&
 
28754
         { ac_try='test -z "$ac_c_werror_flag"
 
28755
                         || test ! -s conftest.err'
 
28756
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28757
  (eval $ac_try) 2>&5
 
28758
  ac_status=$?
 
28759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28760
  (exit $ac_status); }; } &&
 
28761
         { ac_try='test -s conftest$ac_exeext'
 
28762
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28763
  (eval $ac_try) 2>&5
 
28764
  ac_status=$?
 
28765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28766
  (exit $ac_status); }; }; then
 
28767
  eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
 
28768
else
 
28769
  echo "$as_me: failed program was:" >&5
 
28770
sed 's/^/| /' conftest.$ac_ext >&5
 
28771
 
 
28772
eval "ac_cv_lib_png=no"
 
28773
 
 
28774
fi
 
28775
rm -f conftest.err conftest.$ac_objext \
 
28776
      conftest$ac_exeext conftest.$ac_ext
 
28777
LIBS="$kde_save_LIBS"
 
28778
CFLAGS="$kde_save_CFLAGS"
 
28779
 
 
28780
fi
 
28781
if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
 
28782
 
 
28783
cat >>confdefs.h <<_ACEOF
 
28784
#define HAVE_LIBPNG 1
 
28785
_ACEOF
 
28786
 
 
28787
  LIBPNG="$ac_cv_lib_png"
 
28788
 
 
28789
  echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5
 
28790
echo "${ECHO_T}$ac_cv_lib_png" >&6
 
28791
else
 
28792
  echo "$as_me:$LINENO: result: no" >&5
 
28793
echo "${ECHO_T}no" >&6
 
28794
  LIBPNG=""
 
28795
 
 
28796
fi
 
28797
 
 
28798
 
 
28799
 
 
28800
echo "$as_me:$LINENO: checking for libjpeg6b" >&5
 
28801
echo $ECHO_N "checking for libjpeg6b... $ECHO_C" >&6
 
28802
if test "${ac_cv_lib_jpeg_6b+set}" = set; then
 
28803
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28804
else
 
28805
 
 
28806
ac_save_LIBS="$LIBS"
 
28807
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
 
28808
ac_save_CFLAGS="$CFLAGS"
 
28809
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
28810
cat >conftest.$ac_ext <<_ACEOF
 
28811
/* confdefs.h.  */
 
28812
_ACEOF
 
28813
cat confdefs.h >>conftest.$ac_ext
 
28814
cat >>conftest.$ac_ext <<_ACEOF
 
28815
/* end confdefs.h.  */
 
28816
/* Override any gcc2 internal prototype to avoid an error.  */
 
28817
struct jpeg_decompress_struct;
 
28818
typedef struct jpeg_decompress_struct * j_decompress_ptr;
 
28819
typedef int size_t;
 
28820
#ifdef __cplusplus
 
28821
extern "C" {
 
28822
#endif
 
28823
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
 
28824
                                    int version, size_t structsize);
 
28825
#ifdef __cplusplus
 
28826
}
 
28827
#endif
 
28828
/* We use char because int might match the return type of a gcc2
 
28829
    builtin and then its argument prototype would still apply.  */
 
28830
 
 
28831
int
 
28832
main ()
 
28833
{
 
28834
jpeg_CreateDecompress(0L, 0, 0);
 
28835
  ;
 
28836
  return 0;
 
28837
}
 
28838
_ACEOF
 
28839
rm -f conftest.$ac_objext conftest$ac_exeext
 
28840
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28841
  (eval $ac_link) 2>conftest.er1
 
28842
  ac_status=$?
 
28843
  grep -v '^ *+' conftest.er1 >conftest.err
 
28844
  rm -f conftest.er1
 
28845
  cat conftest.err >&5
 
28846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28847
  (exit $ac_status); } &&
 
28848
         { ac_try='test -z "$ac_c_werror_flag"
 
28849
                         || test ! -s conftest.err'
 
28850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28851
  (eval $ac_try) 2>&5
 
28852
  ac_status=$?
 
28853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28854
  (exit $ac_status); }; } &&
 
28855
         { ac_try='test -s conftest$ac_exeext'
 
28856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28857
  (eval $ac_try) 2>&5
 
28858
  ac_status=$?
 
28859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28860
  (exit $ac_status); }; }; then
 
28861
  eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
 
28862
else
 
28863
  echo "$as_me: failed program was:" >&5
 
28864
sed 's/^/| /' conftest.$ac_ext >&5
 
28865
 
 
28866
eval "ac_cv_lib_jpeg_6b=no"
 
28867
fi
 
28868
rm -f conftest.err conftest.$ac_objext \
 
28869
      conftest$ac_exeext conftest.$ac_ext
 
28870
LIBS="$ac_save_LIBS"
 
28871
CFLAGS="$ac_save_CFLAGS"
 
28872
 
 
28873
fi
 
28874
 
 
28875
 
 
28876
if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
 
28877
  LIBJPEG="$ac_cv_lib_jpeg_6b"
 
28878
  echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5
 
28879
echo "${ECHO_T}$ac_cv_lib_jpeg_6b" >&6
 
28880
else
 
28881
  echo "$as_me:$LINENO: result: no" >&5
 
28882
echo "${ECHO_T}no" >&6
 
28883
 
 
28884
echo "$as_me:$LINENO: checking for libjpeg" >&5
 
28885
echo $ECHO_N "checking for libjpeg... $ECHO_C" >&6
 
28886
if test "${ac_cv_lib_jpeg_normal+set}" = set; then
 
28887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28888
else
 
28889
 
 
28890
ac_save_LIBS="$LIBS"
 
28891
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
 
28892
ac_save_CFLAGS="$CFLAGS"
 
28893
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
28894
cat >conftest.$ac_ext <<_ACEOF
 
28895
/* confdefs.h.  */
 
28896
_ACEOF
 
28897
cat confdefs.h >>conftest.$ac_ext
 
28898
cat >>conftest.$ac_ext <<_ACEOF
 
28899
/* end confdefs.h.  */
 
28900
/* Override any gcc2 internal prototype to avoid an error.  */
 
28901
struct jpeg_decompress_struct;
 
28902
typedef struct jpeg_decompress_struct * j_decompress_ptr;
 
28903
typedef int size_t;
 
28904
#ifdef __cplusplus
 
28905
extern "C" {
 
28906
#endif
 
28907
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
 
28908
                                    int version, size_t structsize);
 
28909
#ifdef __cplusplus
 
28910
}
 
28911
#endif
 
28912
/* We use char because int might match the return type of a gcc2
 
28913
    builtin and then its argument prototype would still apply.  */
 
28914
 
 
28915
int
 
28916
main ()
 
28917
{
 
28918
jpeg_CreateDecompress(0L, 0, 0);
 
28919
  ;
 
28920
  return 0;
 
28921
}
 
28922
_ACEOF
 
28923
rm -f conftest.$ac_objext conftest$ac_exeext
 
28924
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28925
  (eval $ac_link) 2>conftest.er1
 
28926
  ac_status=$?
 
28927
  grep -v '^ *+' conftest.er1 >conftest.err
 
28928
  rm -f conftest.er1
 
28929
  cat conftest.err >&5
 
28930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28931
  (exit $ac_status); } &&
 
28932
         { ac_try='test -z "$ac_c_werror_flag"
 
28933
                         || test ! -s conftest.err'
 
28934
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28935
  (eval $ac_try) 2>&5
 
28936
  ac_status=$?
 
28937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28938
  (exit $ac_status); }; } &&
 
28939
         { ac_try='test -s conftest$ac_exeext'
 
28940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28941
  (eval $ac_try) 2>&5
 
28942
  ac_status=$?
 
28943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28944
  (exit $ac_status); }; }; then
 
28945
  eval "ac_cv_lib_jpeg_normal=-ljpeg"
 
28946
else
 
28947
  echo "$as_me: failed program was:" >&5
 
28948
sed 's/^/| /' conftest.$ac_ext >&5
 
28949
 
 
28950
eval "ac_cv_lib_jpeg_normal=no"
 
28951
fi
 
28952
rm -f conftest.err conftest.$ac_objext \
 
28953
      conftest$ac_exeext conftest.$ac_ext
 
28954
LIBS="$ac_save_LIBS"
 
28955
CFLAGS="$ac_save_CFLAGS"
 
28956
 
 
28957
fi
 
28958
 
 
28959
 
 
28960
if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
 
28961
  LIBJPEG="$ac_cv_lib_jpeg_normal"
 
28962
  echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5
 
28963
echo "${ECHO_T}$ac_cv_lib_jpeg_normal" >&6
 
28964
else
 
28965
  echo "$as_me:$LINENO: result: no" >&5
 
28966
echo "${ECHO_T}no" >&6
 
28967
 
 
28968
       LIBJPEG=
 
28969
 
 
28970
 
 
28971
fi
 
28972
 
 
28973
 
 
28974
 
 
28975
fi
 
28976
 
 
28977
 
 
28978
 
 
28979
jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes"
 
28980
 
 
28981
jpeg_incdir=NO
 
28982
for i in $jpeg_incdirs;
 
28983
do
 
28984
  for j in jpeglib.h;
 
28985
  do
 
28986
    echo "configure: 28986: $i/$j" >&5
 
28987
    if test -r "$i/$j"; then
 
28988
      echo "taking that" >&5
 
28989
      jpeg_incdir=$i
 
28990
      break 2
 
28991
    fi
 
28992
  done
 
28993
done
 
28994
 
 
28995
test "x$jpeg_incdir" = xNO && jpeg_incdir=
 
28996
 
 
28997
if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
 
28998
 
 
28999
cat >>confdefs.h <<_ACEOF
 
29000
#define HAVE_LIBJPEG 1
 
29001
_ACEOF
 
29002
 
 
29003
else
 
29004
  if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
 
29005
    { echo "$as_me:$LINENO: WARNING:
 
29006
There is an installation error in jpeg support. You seem to have only one
 
29007
of either the headers _or_ the libraries installed. You may need to either
 
29008
provide correct --with-extra-... options, or the development package of
 
29009
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
 
29010
Disabling JPEG support.
 
29011
" >&5
 
29012
echo "$as_me: WARNING:
 
29013
There is an installation error in jpeg support. You seem to have only one
 
29014
of either the headers _or_ the libraries installed. You may need to either
 
29015
provide correct --with-extra-... options, or the development package of
 
29016
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
 
29017
Disabling JPEG support.
 
29018
" >&2;}
 
29019
  else
 
29020
    { echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5
 
29021
echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
 
29022
  fi
 
29023
  jpeg_incdir=
 
29024
  LIBJPEG=
 
29025
fi
 
29026
 
 
29027
 
 
29028
 
 
29029
 
 
29030
 
 
29031
 
 
29032
 
 
29033
   echo "$as_me:$LINENO: checking for perl" >&5
 
29034
echo $ECHO_N "checking for perl... $ECHO_C" >&6
 
29035
   if test -n "$PERL"; then
 
29036
        kde_cv_path="$PERL";
 
29037
   else
 
29038
        kde_cache=`echo perl | sed 'y%./+-%__p_%'`
 
29039
 
 
29040
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
29041
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29042
else
 
29043
 
 
29044
        kde_cv_path="NONE"
 
29045
        kde_save_IFS=$IFS
 
29046
        IFS=':'
 
29047
        dirs=""
 
29048
        for dir in $PATH; do
 
29049
          dirs="$dirs $dir"
 
29050
        done
 
29051
        if test -z ""; then       dirs="$bindir $exec_prefix/bin $prefix/bin $dirs"
 
29052
        else      dirs="$dirs $bindir $exec_prefix/bin $prefix/bin"
 
29053
        fi
 
29054
        IFS=$kde_save_IFS
 
29055
 
 
29056
        for dir in $dirs; do
 
29057
          if test -x "$dir/perl"; then
 
29058
            if test -n ""
 
29059
            then
 
29060
              evalstr="$dir/perl  2>&1 "
 
29061
              if eval $evalstr; then
 
29062
                kde_cv_path="$dir/perl"
 
29063
                break
 
29064
              fi
 
29065
            else
 
29066
                kde_cv_path="$dir/perl"
 
29067
                break
 
29068
            fi
 
29069
          fi
 
29070
        done
 
29071
 
 
29072
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
29073
 
 
29074
 
 
29075
fi
 
29076
 
 
29077
 
 
29078
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
29079
 
 
29080
   fi
 
29081
 
 
29082
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
29083
      echo "$as_me:$LINENO: result: not found" >&5
 
29084
echo "${ECHO_T}not found" >&6
 
29085
 
 
29086
                    { { echo "$as_me:$LINENO: error: No Perl found in your $PATH.
 
29087
We need perl to generate some code." >&5
 
29088
echo "$as_me: error: No Perl found in your $PATH.
 
29089
We need perl to generate some code." >&2;}
 
29090
   { (exit 1); exit 1; }; }
 
29091
 
 
29092
   else
 
29093
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
29094
echo "${ECHO_T}$kde_cv_path" >&6
 
29095
      PERL=$kde_cv_path
 
29096
 
 
29097
   fi
 
29098
 
 
29099
 
 
29100
 
 
29101
 
 
29102
 
 
29103
 
 
29104
 
 
29105
 
 
29106
 
 
29107
 
 
29108
# Check whether --enable-mt or --disable-mt was given.
 
29109
if test "${enable_mt+set}" = set; then
 
29110
  enableval="$enable_mt"
 
29111
  kde_use_qt_mt=$enableval
 
29112
else
 
29113
 
 
29114
    if test $kde_qtver = 3; then
 
29115
      kde_use_qt_mt=yes
 
29116
    else
 
29117
      kde_use_qt_mt=no
 
29118
    fi
 
29119
 
 
29120
 
 
29121
fi;
 
29122
 
 
29123
USING_QT_MT=""
 
29124
 
 
29125
 
 
29126
KDE_MT_LDFLAGS=
 
29127
KDE_MT_LIBS=
 
29128
if test "x$kde_use_qt_mt" = "xyes"; then
 
29129
 
 
29130
 
 
29131
 
 
29132
    if test -z "$LIBPTHREAD"; then
 
29133
    if test -z "$USE_THREADS"; then
 
29134
      kde_check_threading_default=no
 
29135
    else
 
29136
      kde_check_threading_default=yes
 
29137
    fi
 
29138
  else
 
29139
    kde_check_threading_default=yes
 
29140
  fi
 
29141
  # Check whether --enable-threading or --disable-threading was given.
 
29142
if test "${enable_threading+set}" = set; then
 
29143
  enableval="$enable_threading"
 
29144
  kde_use_threading=$enableval
 
29145
else
 
29146
  kde_use_threading=$kde_check_threading_default
 
29147
fi;
 
29148
  if test "x$kde_use_threading" = "xyes"; then
 
29149
 
 
29150
cat >>confdefs.h <<\_ACEOF
 
29151
#define HAVE_LIBPTHREAD 1
 
29152
_ACEOF
 
29153
 
 
29154
  fi
 
29155
 
 
29156
  if test "x$kde_use_threading" = "xyes"; then
 
29157
    CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
 
29158
    KDE_MT_LDFLAGS="$USE_THREADS"
 
29159
    KDE_MT_LIBS="$LIBPTHREAD"
 
29160
  else
 
29161
    kde_use_qt_mt=no
 
29162
  fi
 
29163
fi
 
29164
 
 
29165
 
 
29166
 
 
29167
kde_qt_was_given=yes
 
29168
 
 
29169
if test -z "$LIBQT_GLOB"; then
 
29170
  if test "x$kde_use_qt_emb" = "xyes"; then
 
29171
    LIBQT_GLOB="libqte.*"
 
29172
  else
 
29173
    LIBQT_GLOB="libqt.*"
 
29174
  fi
 
29175
fi
 
29176
 
 
29177
if test -z "$LIBQT"; then
 
29178
  if test "x$kde_use_qt_emb" = "xyes"; then
 
29179
    qtlib="qte"
 
29180
  else
 
29181
    qtlib="qt"
 
29182
  fi
 
29183
 
 
29184
  kde_int_qt="-l$qtlib"
 
29185
else
 
29186
  kde_int_qt="$LIBQT"
 
29187
  kde_lib_qt_set=yes
 
29188
fi
 
29189
 
 
29190
if test -z "$LIBQPE"; then
 
29191
  if test "x$kde_use_qt_emb" = "xyes"; then
 
29192
    if test "x$kde_use_qt_emb_palm" = "xyes"; then
 
29193
      LIB_QPE="-lqpe"
 
29194
    else
 
29195
      LIB_QPE=""
 
29196
    fi
 
29197
  else
 
29198
    LIB_QPE=""
 
29199
  fi
 
29200
fi
 
29201
 
 
29202
 
 
29203
if test "x$kde_use_qt_mt" = "xyes"; then
 
29204
  if test -z "$LIBQT"; then
 
29205
    LIBQT="-l$qtlib-mt"
 
29206
    kde_int_qt="-l$qtlib-mt"
 
29207
  else
 
29208
    LIBQT="$qtlib-mt"
 
29209
    kde_int_qt="$qtlib-mt"
 
29210
  fi
 
29211
  LIBQT_GLOB="lib$qtlib-mt.*"
 
29212
  USING_QT_MT="using -mt"
 
29213
else
 
29214
  LIBQT="-l$qtlib"
 
29215
fi
 
29216
 
 
29217
if test $kde_qtver != 1; then
 
29218
 
 
29219
 
 
29220
 
 
29221
  LIBQT="$LIBQT $LIBPNG $LIBJPEG"
 
29222
fi
 
29223
 
 
29224
if test $kde_qtver = 3; then
 
29225
 
 
29226
  LIBQT="$LIBQT $LIBDL"
 
29227
fi
 
29228
 
 
29229
echo "$as_me:$LINENO: checking for Qt" >&5
 
29230
echo $ECHO_N "checking for Qt... $ECHO_C" >&6
 
29231
 
 
29232
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
 
29233
LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
 
29234
fi
 
29235
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
 
29236
qt_libraries=""
 
29237
qt_includes=""
 
29238
 
 
29239
# Check whether --with-qt-dir or --without-qt-dir was given.
 
29240
if test "${with_qt_dir+set}" = set; then
 
29241
  withval="$with_qt_dir"
 
29242
    ac_qt_includes="$withval"/include
 
29243
       ac_qt_libraries="$withval"/lib${kdelibsuff}
 
29244
       ac_qt_bindir="$withval"/bin
 
29245
 
 
29246
fi;
 
29247
 
 
29248
 
 
29249
# Check whether --with-qt-includes or --without-qt-includes was given.
 
29250
if test "${with_qt_includes+set}" = set; then
 
29251
  withval="$with_qt_includes"
 
29252
 
 
29253
       ac_qt_includes="$withval"
 
29254
 
 
29255
fi;
 
29256
 
 
29257
kde_qt_libs_given=no
 
29258
 
 
29259
 
 
29260
# Check whether --with-qt-libraries or --without-qt-libraries was given.
 
29261
if test "${with_qt_libraries+set}" = set; then
 
29262
  withval="$with_qt_libraries"
 
29263
    ac_qt_libraries="$withval"
 
29264
       kde_qt_libs_given=yes
 
29265
 
 
29266
fi;
 
29267
 
 
29268
if test "${ac_cv_have_qt+set}" = set; then
 
29269
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29270
else
 
29271
  #try to guess Qt locations
 
29272
 
 
29273
qt_incdirs=""
 
29274
for dir in $kde_qt_dirs; do
 
29275
   qt_incdirs="$qt_incdirs $dir/include $dir"
 
29276
done
 
29277
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 /usr/include/qt3 $x_includes"
 
29278
if test ! "$ac_qt_includes" = "NO"; then
 
29279
   qt_incdirs="$ac_qt_includes $qt_incdirs"
 
29280
fi
 
29281
 
 
29282
if test "$kde_qtver" != "1"; then
 
29283
  kde_qt_header=qstyle.h
 
29284
else
 
29285
  kde_qt_header=qglobal.h
 
29286
fi
 
29287
 
 
29288
 
 
29289
qt_incdir=NO
 
29290
for i in $qt_incdirs;
 
29291
do
 
29292
  for j in $kde_qt_header;
 
29293
  do
 
29294
    echo "configure: 29294: $i/$j" >&5
 
29295
    if test -r "$i/$j"; then
 
29296
      echo "taking that" >&5
 
29297
      qt_incdir=$i
 
29298
      break 2
 
29299
    fi
 
29300
  done
 
29301
done
 
29302
 
 
29303
ac_qt_includes="$qt_incdir"
 
29304
 
 
29305
qt_libdirs=""
 
29306
for dir in $kde_qt_dirs; do
 
29307
   qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir"
 
29308
done
 
29309
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
 
29310
if test ! "$ac_qt_libraries" = "NO"; then
 
29311
  qt_libdir=$ac_qt_libraries
 
29312
else
 
29313
  qt_libdirs="$ac_qt_libraries $qt_libdirs"
 
29314
  # if the Qt was given, the chance is too big that libqt.* doesn't exist
 
29315
  qt_libdir=NONE
 
29316
  for dir in $qt_libdirs; do
 
29317
    try="ls -1 $dir/${LIBQT_GLOB}"
 
29318
    if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
 
29319
  done
 
29320
fi
 
29321
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
 
29322
  if test -e "$a"; then
 
29323
    LIBQT="$LIBQT ${kde_int_qt}_incremental"
 
29324
    break
 
29325
  fi
 
29326
done
 
29327
 
 
29328
ac_qt_libraries="$qt_libdir"
 
29329
 
 
29330
 
 
29331
 
 
29332
 ac_ext=cc
 
29333
ac_cpp='$CXXCPP $CPPFLAGS'
 
29334
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29335
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29336
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
29337
 
 
29338
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
29339
 
 
29340
 
 
29341
 
 
29342
ac_cxxflags_safe="$CXXFLAGS"
 
29343
ac_ldflags_safe="$LDFLAGS"
 
29344
ac_libs_safe="$LIBS"
 
29345
 
 
29346
CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
 
29347
LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
 
29348
LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
 
29349
 
 
29350
 
 
29351
 
 
29352
cat > conftest.$ac_ext <<EOF
 
29353
#include "confdefs.h"
 
29354
#include <qglobal.h>
 
29355
#include <qapplication.h>
 
29356
EOF
 
29357
if test "$kde_qtver" = "2"; then
 
29358
cat >> conftest.$ac_ext <<EOF
 
29359
#include <qevent.h>
 
29360
#include <qstring.h>
 
29361
#include <qstyle.h>
 
29362
EOF
 
29363
 
 
29364
if test $kde_qtsubver -gt 0; then
 
29365
cat >> conftest.$ac_ext <<EOF
 
29366
#if QT_VERSION < 210
 
29367
#error 1
 
29368
#endif
 
29369
EOF
 
29370
fi
 
29371
fi
 
29372
 
 
29373
if test "$kde_qtver" = "3"; then
 
29374
cat >> conftest.$ac_ext <<EOF
 
29375
#include <qcursor.h>
 
29376
#include <qstylefactory.h>
 
29377
#include <private/qucomextra_p.h>
 
29378
EOF
 
29379
fi
 
29380
 
 
29381
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
 
29382
cat >> conftest.$ac_ext <<EOF
 
29383
#error 1
 
29384
#endif
 
29385
 
 
29386
int main() {
 
29387
EOF
 
29388
if test "$kde_qtver" = "2"; then
 
29389
cat >> conftest.$ac_ext <<EOF
 
29390
    QStringList *t = new QStringList();
 
29391
    Q_UNUSED(t);
 
29392
EOF
 
29393
if test $kde_qtsubver -gt 0; then
 
29394
cat >> conftest.$ac_ext <<EOF
 
29395
    QString s;
 
29396
    s.setLatin1("Elvis is alive", 14);
 
29397
EOF
 
29398
fi
 
29399
fi
 
29400
if test "$kde_qtver" = "3"; then
 
29401
cat >> conftest.$ac_ext <<EOF
 
29402
    (void)QStyleFactory::create(QString::null);
 
29403
    QCursor c(Qt::WhatsThisCursor);
 
29404
EOF
 
29405
fi
 
29406
cat >> conftest.$ac_ext <<EOF
 
29407
    return 0;
 
29408
}
 
29409
EOF
 
29410
 
 
29411
 
 
29412
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29413
  (eval $ac_link) 2>&5
 
29414
  ac_status=$?
 
29415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29416
  (exit $ac_status); } && test -s conftest; then
 
29417
  rm -f conftest*
 
29418
else
 
29419
  echo "configure: failed program was:" >&5
 
29420
  cat conftest.$ac_ext >&5
 
29421
  ac_qt_libraries="NO"
 
29422
fi
 
29423
rm -f conftest*
 
29424
CXXFLAGS="$ac_cxxflags_safe"
 
29425
LDFLAGS="$ac_ldflags_safe"
 
29426
LIBS="$ac_libs_safe"
 
29427
 
 
29428
ac_ext=c
 
29429
ac_cpp='$CPP $CPPFLAGS'
 
29430
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29431
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29432
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
29433
 
 
29434
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
 
29435
  ac_cv_have_qt="have_qt=no"
 
29436
  ac_qt_notfound=""
 
29437
  missing_qt_mt=""
 
29438
  if test "$ac_qt_includes" = NO; then
 
29439
    if test "$ac_qt_libraries" = NO; then
 
29440
      ac_qt_notfound="(headers and libraries)";
 
29441
    else
 
29442
      ac_qt_notfound="(headers)";
 
29443
    fi
 
29444
  else
 
29445
    if test "x$kde_use_qt_mt" = "xyes"; then
 
29446
       missing_qt_mt="
 
29447
Make sure that you have compiled Qt with thread support!"
 
29448
       ac_qt_notfound="(library $qtlib-mt)";
 
29449
    else
 
29450
       ac_qt_notfound="(library $qtlib)";
 
29451
    fi
 
29452
  fi
 
29453
 
 
29454
  { { echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
 
29455
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
 
29456
echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
 
29457
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
 
29458
   { (exit 1); exit 1; }; }
 
29459
else
 
29460
  have_qt="yes"
 
29461
fi
 
29462
 
 
29463
fi
 
29464
 
 
29465
 
 
29466
eval "$ac_cv_have_qt"
 
29467
 
 
29468
if test "$have_qt" != yes; then
 
29469
  echo "$as_me:$LINENO: result: $have_qt" >&5
 
29470
echo "${ECHO_T}$have_qt" >&6;
 
29471
else
 
29472
  ac_cv_have_qt="have_qt=yes \
 
29473
    ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
 
29474
  echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
 
29475
echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6
 
29476
 
 
29477
  qt_libraries="$ac_qt_libraries"
 
29478
  qt_includes="$ac_qt_includes"
 
29479
fi
 
29480
 
 
29481
if test ! "$kde_qt_libs_given" = "yes" && test ! "$kde_qtver" = 3; then
 
29482
 
 
29483
 
 
29484
echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
 
29485
echo $ECHO_N "checking if Qt compiles without flags... $ECHO_C" >&6
 
29486
if test "${kde_cv_qt_direct+set}" = set; then
 
29487
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29488
else
 
29489
 
 
29490
 
 
29491
 
 
29492
 ac_ext=cc
 
29493
ac_cpp='$CXXCPP $CPPFLAGS'
 
29494
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29495
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29496
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
29497
 
 
29498
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
29499
 
 
29500
 
 
29501
ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
 
29502
ac_LIBRARY_PATH="$LIBRARY_PATH"
 
29503
ac_cxxflags_safe="$CXXFLAGS"
 
29504
ac_ldflags_safe="$LDFLAGS"
 
29505
ac_libs_safe="$LIBS"
 
29506
 
 
29507
CXXFLAGS="$CXXFLAGS -I$qt_includes"
 
29508
LDFLAGS="$LDFLAGS $X_LDFLAGS"
 
29509
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
 
29510
LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
 
29511
else
 
29512
LIBS="$LIBQT $LIBSOCKET"
 
29513
fi
 
29514
LD_LIBRARY_PATH=
 
29515
export LD_LIBRARY_PATH
 
29516
LIBRARY_PATH=
 
29517
export LIBRARY_PATH
 
29518
 
 
29519
 
 
29520
 
 
29521
cat > conftest.$ac_ext <<EOF
 
29522
#include "confdefs.h"
 
29523
#include <qglobal.h>
 
29524
#include <qapplication.h>
 
29525
EOF
 
29526
if test "$kde_qtver" = "2"; then
 
29527
cat >> conftest.$ac_ext <<EOF
 
29528
#include <qevent.h>
 
29529
#include <qstring.h>
 
29530
#include <qstyle.h>
 
29531
EOF
 
29532
 
 
29533
if test $kde_qtsubver -gt 0; then
 
29534
cat >> conftest.$ac_ext <<EOF
 
29535
#if QT_VERSION < 210
 
29536
#error 1
 
29537
#endif
 
29538
EOF
 
29539
fi
 
29540
fi
 
29541
 
 
29542
if test "$kde_qtver" = "3"; then
 
29543
cat >> conftest.$ac_ext <<EOF
 
29544
#include <qcursor.h>
 
29545
#include <qstylefactory.h>
 
29546
#include <private/qucomextra_p.h>
 
29547
EOF
 
29548
fi
 
29549
 
 
29550
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
 
29551
cat >> conftest.$ac_ext <<EOF
 
29552
#error 1
 
29553
#endif
 
29554
 
 
29555
int main() {
 
29556
EOF
 
29557
if test "$kde_qtver" = "2"; then
 
29558
cat >> conftest.$ac_ext <<EOF
 
29559
    QStringList *t = new QStringList();
 
29560
    Q_UNUSED(t);
 
29561
EOF
 
29562
if test $kde_qtsubver -gt 0; then
 
29563
cat >> conftest.$ac_ext <<EOF
 
29564
    QString s;
 
29565
    s.setLatin1("Elvis is alive", 14);
 
29566
EOF
 
29567
fi
 
29568
fi
 
29569
if test "$kde_qtver" = "3"; then
 
29570
cat >> conftest.$ac_ext <<EOF
 
29571
    (void)QStyleFactory::create(QString::null);
 
29572
    QCursor c(Qt::WhatsThisCursor);
 
29573
EOF
 
29574
fi
 
29575
cat >> conftest.$ac_ext <<EOF
 
29576
    return 0;
 
29577
}
 
29578
EOF
 
29579
 
 
29580
 
 
29581
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29582
  (eval $ac_link) 2>&5
 
29583
  ac_status=$?
 
29584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29585
  (exit $ac_status); } && test -s conftest; then
 
29586
  kde_cv_qt_direct="yes"
 
29587
else
 
29588
  kde_cv_qt_direct="no"
 
29589
  echo "configure: failed program was:" >&5
 
29590
  cat conftest.$ac_ext >&5
 
29591
fi
 
29592
 
 
29593
rm -f conftest*
 
29594
CXXFLAGS="$ac_cxxflags_safe"
 
29595
LDFLAGS="$ac_ldflags_safe"
 
29596
LIBS="$ac_libs_safe"
 
29597
 
 
29598
LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
 
29599
export LD_LIBRARY_PATH
 
29600
LIBRARY_PATH="$ac_LIBRARY_PATH"
 
29601
export LIBRARY_PATH
 
29602
ac_ext=c
 
29603
ac_cpp='$CPP $CPPFLAGS'
 
29604
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29605
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29606
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
29607
 
 
29608
 
 
29609
fi
 
29610
 
 
29611
 
 
29612
if test "$kde_cv_qt_direct" = "yes"; then
 
29613
  echo "$as_me:$LINENO: result: yes" >&5
 
29614
echo "${ECHO_T}yes" >&6
 
29615
  qt_libraries=
 
29616
else
 
29617
  echo "$as_me:$LINENO: result: no" >&5
 
29618
echo "${ECHO_T}no" >&6
 
29619
 
 
29620
fi
 
29621
 
 
29622
fi
 
29623
 
 
29624
 
 
29625
 
 
29626
 
 
29627
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
 
29628
 QT_INCLUDES=""
 
29629
else
 
29630
 QT_INCLUDES="-I$qt_includes"
 
29631
 all_includes="$QT_INCLUDES $all_includes"
 
29632
fi
 
29633
 
 
29634
if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
 
29635
 QT_LDFLAGS=""
 
29636
else
 
29637
 QT_LDFLAGS="-L$qt_libraries"
 
29638
 all_libraries="$QT_LDFLAGS $all_libraries"
 
29639
fi
 
29640
test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
 
29641
 
 
29642
 
 
29643
 
 
29644
 
 
29645
 
 
29646
   qt_bindirs=""
 
29647
   for dir in $kde_qt_dirs; do
 
29648
      qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
 
29649
   done
 
29650
   qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
 
29651
   if test ! "$ac_qt_bindir" = "NO"; then
 
29652
      qt_bindirs="$ac_qt_bindir $qt_bindirs"
 
29653
   fi
 
29654
 
 
29655
 
 
29656
   echo "$as_me:$LINENO: checking for moc" >&5
 
29657
echo $ECHO_N "checking for moc... $ECHO_C" >&6
 
29658
   if test -n "$MOC"; then
 
29659
        kde_cv_path="$MOC";
 
29660
   else
 
29661
        kde_cache=`echo moc | sed 'y%./+-%__p_%'`
 
29662
 
 
29663
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
29664
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29665
else
 
29666
 
 
29667
        kde_cv_path="NONE"
 
29668
        kde_save_IFS=$IFS
 
29669
        IFS=':'
 
29670
        dirs=""
 
29671
        for dir in $PATH; do
 
29672
          dirs="$dirs $dir"
 
29673
        done
 
29674
        if test -z ""; then       dirs="$qt_bindirs $dirs"
 
29675
        else      dirs="$dirs $qt_bindirs"
 
29676
        fi
 
29677
        IFS=$kde_save_IFS
 
29678
 
 
29679
        for dir in $dirs; do
 
29680
          if test -x "$dir/moc"; then
 
29681
            if test -n ""
 
29682
            then
 
29683
              evalstr="$dir/moc  2>&1 "
 
29684
              if eval $evalstr; then
 
29685
                kde_cv_path="$dir/moc"
 
29686
                break
 
29687
              fi
 
29688
            else
 
29689
                kde_cv_path="$dir/moc"
 
29690
                break
 
29691
            fi
 
29692
          fi
 
29693
        done
 
29694
 
 
29695
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
29696
 
 
29697
 
 
29698
fi
 
29699
 
 
29700
 
 
29701
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
29702
 
 
29703
   fi
 
29704
 
 
29705
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
29706
      echo "$as_me:$LINENO: result: not found" >&5
 
29707
echo "${ECHO_T}not found" >&6
 
29708
 
 
29709
    { { echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
 
29710
Please check whether you installed Qt correctly.
 
29711
You need to have a running moc binary.
 
29712
configure tried to run $ac_cv_path_moc and the test didn't
 
29713
succeed. If configure shouldn't have tried this one, set
 
29714
the environment variable MOC to the right one before running
 
29715
configure.
 
29716
" >&5
 
29717
echo "$as_me: error: No Qt meta object compiler (moc) found!
 
29718
Please check whether you installed Qt correctly.
 
29719
You need to have a running moc binary.
 
29720
configure tried to run $ac_cv_path_moc and the test didn't
 
29721
succeed. If configure shouldn't have tried this one, set
 
29722
the environment variable MOC to the right one before running
 
29723
configure.
 
29724
" >&2;}
 
29725
   { (exit 1); exit 1; }; }
 
29726
 
 
29727
   else
 
29728
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
29729
echo "${ECHO_T}$kde_cv_path" >&6
 
29730
      MOC=$kde_cv_path
 
29731
 
 
29732
   fi
 
29733
 
 
29734
   if test -z "$UIC_NOT_NEEDED"; then
 
29735
 
 
29736
   echo "$as_me:$LINENO: checking for uic" >&5
 
29737
echo $ECHO_N "checking for uic... $ECHO_C" >&6
 
29738
   if test -n "$UIC_PATH"; then
 
29739
        kde_cv_path="$UIC_PATH";
 
29740
   else
 
29741
        kde_cache=`echo uic | sed 'y%./+-%__p_%'`
 
29742
 
 
29743
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
29744
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29745
else
 
29746
 
 
29747
        kde_cv_path="NONE"
 
29748
        kde_save_IFS=$IFS
 
29749
        IFS=':'
 
29750
        dirs=""
 
29751
        for dir in $PATH; do
 
29752
          dirs="$dirs $dir"
 
29753
        done
 
29754
        if test -z ""; then       dirs="$qt_bindirs $dirs"
 
29755
        else      dirs="$dirs $qt_bindirs"
 
29756
        fi
 
29757
        IFS=$kde_save_IFS
 
29758
 
 
29759
        for dir in $dirs; do
 
29760
          if test -x "$dir/uic"; then
 
29761
            if test -n ""
 
29762
            then
 
29763
              evalstr="$dir/uic  2>&1 "
 
29764
              if eval $evalstr; then
 
29765
                kde_cv_path="$dir/uic"
 
29766
                break
 
29767
              fi
 
29768
            else
 
29769
                kde_cv_path="$dir/uic"
 
29770
                break
 
29771
            fi
 
29772
          fi
 
29773
        done
 
29774
 
 
29775
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
29776
 
 
29777
 
 
29778
fi
 
29779
 
 
29780
 
 
29781
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
29782
 
 
29783
   fi
 
29784
 
 
29785
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
29786
      echo "$as_me:$LINENO: result: not found" >&5
 
29787
echo "${ECHO_T}not found" >&6
 
29788
      UIC_PATH=""
 
29789
   else
 
29790
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
29791
echo "${ECHO_T}$kde_cv_path" >&6
 
29792
      UIC_PATH=$kde_cv_path
 
29793
 
 
29794
   fi
 
29795
 
 
29796
     if test -z "$UIC_PATH" ; then
 
29797
 
 
29798
    { echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found!
 
29799
Please check whether you installed Qt correctly.
 
29800
You need to have a running uic binary.
 
29801
configure tried to run $ac_cv_path_uic and the test didn't
 
29802
succeed. If configure shouldn't have tried this one, set
 
29803
the environment variable UIC to the right one before running
 
29804
configure.
 
29805
" >&5
 
29806
echo "$as_me: WARNING: No Qt ui compiler (uic) found!
 
29807
Please check whether you installed Qt correctly.
 
29808
You need to have a running uic binary.
 
29809
configure tried to run $ac_cv_path_uic and the test didn't
 
29810
succeed. If configure shouldn't have tried this one, set
 
29811
the environment variable UIC to the right one before running
 
29812
configure.
 
29813
" >&2;}
 
29814
 
 
29815
       exit 1
 
29816
     else
 
29817
       UIC=$UIC_PATH
 
29818
 
 
29819
       if test $kde_qtver = 3; then
 
29820
 
 
29821
    echo "$as_me:$LINENO: checking whether uic supports -L " >&5
 
29822
echo $ECHO_N "checking whether uic supports -L ... $ECHO_C" >&6
 
29823
    kde_cache=`echo L | sed 'y% .=/+-%____p_%'`
 
29824
    if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
 
29825
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29826
else
 
29827
 
 
29828
        cat >conftest.ui <<EOT
 
29829
        <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
 
29830
EOT
 
29831
        ac_uic_testrun="$UIC_PATH -L /nonexistent conftest.ui >/dev/null"
 
29832
        if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
 
29833
  (eval $ac_uic_testrun) 2>&5
 
29834
  ac_status=$?
 
29835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29836
  (exit $ac_status); }; then
 
29837
            eval "kde_cv_prog_uic_$kde_cache=yes"
 
29838
        else
 
29839
            eval "kde_cv_prog_uic_$kde_cache=no"
 
29840
        fi
 
29841
        rm -f conftest*
 
29842
 
 
29843
fi
 
29844
 
 
29845
 
 
29846
    if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
 
29847
        echo "$as_me:$LINENO: result: yes" >&5
 
29848
echo "${ECHO_T}yes" >&6
 
29849
        :
 
29850
        ac_uic_supports_libpath=yes
 
29851
    else
 
29852
        echo "$as_me:$LINENO: result: no" >&5
 
29853
echo "${ECHO_T}no" >&6
 
29854
        :
 
29855
        ac_uic_supports_libpath=no
 
29856
    fi
 
29857
 
 
29858
 
 
29859
    echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5
 
29860
echo $ECHO_N "checking whether uic supports -nounload ... $ECHO_C" >&6
 
29861
    kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'`
 
29862
    if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
 
29863
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29864
else
 
29865
 
 
29866
        cat >conftest.ui <<EOT
 
29867
        <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
 
29868
EOT
 
29869
        ac_uic_testrun="$UIC_PATH -nounload  conftest.ui >/dev/null"
 
29870
        if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
 
29871
  (eval $ac_uic_testrun) 2>&5
 
29872
  ac_status=$?
 
29873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29874
  (exit $ac_status); }; then
 
29875
            eval "kde_cv_prog_uic_$kde_cache=yes"
 
29876
        else
 
29877
            eval "kde_cv_prog_uic_$kde_cache=no"
 
29878
        fi
 
29879
        rm -f conftest*
 
29880
 
 
29881
fi
 
29882
 
 
29883
 
 
29884
    if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
 
29885
        echo "$as_me:$LINENO: result: yes" >&5
 
29886
echo "${ECHO_T}yes" >&6
 
29887
        :
 
29888
        ac_uic_supports_nounload=yes
 
29889
    else
 
29890
        echo "$as_me:$LINENO: result: no" >&5
 
29891
echo "${ECHO_T}no" >&6
 
29892
        :
 
29893
        ac_uic_supports_nounload=no
 
29894
    fi
 
29895
 
 
29896
 
 
29897
         if test x$ac_uic_supports_libpath = xyes; then
 
29898
             UIC="$UIC -L \$(kde_widgetdir)"
 
29899
         fi
 
29900
         if test x$ac_uic_supports_nounload = xyes; then
 
29901
             UIC="$UIC -nounload"
 
29902
         fi
 
29903
       fi
 
29904
     fi
 
29905
   else
 
29906
     UIC="echo uic not available: "
 
29907
   fi
 
29908
 
 
29909
 
 
29910
 
 
29911
 
 
29912
   UIC_TR="i18n"
 
29913
   if test $kde_qtver = 3; then
 
29914
     UIC_TR="tr2i18n"
 
29915
   fi
 
29916
 
 
29917
 
 
29918
 
 
29919
 
 
29920
 
 
29921
if test -n "$LIBJPEG"; then
 
29922
echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
 
29923
echo $ECHO_N "checking if Qt needs $LIBJPEG... $ECHO_C" >&6
 
29924
if test "${kde_cv_qt_jpeg+set}" = set; then
 
29925
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29926
else
 
29927
 
 
29928
 
 
29929
 
 
29930
 ac_ext=cc
 
29931
ac_cpp='$CXXCPP $CPPFLAGS'
 
29932
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29933
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29934
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
29935
 
 
29936
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
29937
 
 
29938
 
 
29939
ac_save_LIBS="$LIBS"
 
29940
LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
 
29941
LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
 
29942
ac_save_CXXFLAGS="$CXXFLAGS"
 
29943
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
 
29944
cat >conftest.$ac_ext <<_ACEOF
 
29945
/* confdefs.h.  */
 
29946
_ACEOF
 
29947
cat confdefs.h >>conftest.$ac_ext
 
29948
cat >>conftest.$ac_ext <<_ACEOF
 
29949
/* end confdefs.h.  */
 
29950
#include <qapplication.h>
 
29951
int
 
29952
main ()
 
29953
{
 
29954
 
 
29955
            int argc;
 
29956
            char** argv;
 
29957
            QApplication app(argc, argv);
 
29958
  ;
 
29959
  return 0;
 
29960
}
 
29961
_ACEOF
 
29962
rm -f conftest.$ac_objext conftest$ac_exeext
 
29963
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29964
  (eval $ac_link) 2>conftest.er1
 
29965
  ac_status=$?
 
29966
  grep -v '^ *+' conftest.er1 >conftest.err
 
29967
  rm -f conftest.er1
 
29968
  cat conftest.err >&5
 
29969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29970
  (exit $ac_status); } &&
 
29971
         { ac_try='test -z "$ac_cxx_werror_flag"
 
29972
                         || test ! -s conftest.err'
 
29973
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29974
  (eval $ac_try) 2>&5
 
29975
  ac_status=$?
 
29976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29977
  (exit $ac_status); }; } &&
 
29978
         { ac_try='test -s conftest$ac_exeext'
 
29979
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29980
  (eval $ac_try) 2>&5
 
29981
  ac_status=$?
 
29982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29983
  (exit $ac_status); }; }; then
 
29984
  eval "kde_cv_qt_jpeg=no"
 
29985
else
 
29986
  echo "$as_me: failed program was:" >&5
 
29987
sed 's/^/| /' conftest.$ac_ext >&5
 
29988
 
 
29989
eval "kde_cv_qt_jpeg=yes"
 
29990
fi
 
29991
rm -f conftest.err conftest.$ac_objext \
 
29992
      conftest$ac_exeext conftest.$ac_ext
 
29993
LIBS="$ac_save_LIBS"
 
29994
CXXFLAGS="$ac_save_CXXFLAGS"
 
29995
ac_ext=c
 
29996
ac_cpp='$CPP $CPPFLAGS'
 
29997
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29998
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29999
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
30000
 
 
30001
fi
 
30002
 
 
30003
fi
 
30004
 
 
30005
 
 
30006
if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then
 
30007
  echo "$as_me:$LINENO: result: yes" >&5
 
30008
echo "${ECHO_T}yes" >&6
 
30009
  LIBJPEG_QT='$(LIBJPEG)'
 
30010
else
 
30011
  echo "$as_me:$LINENO: result: no" >&5
 
30012
echo "${ECHO_T}no" >&6
 
30013
  LIBJPEG_QT=
 
30014
fi
 
30015
 
 
30016
 
 
30017
 
 
30018
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
 
30019
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
 
30020
else
 
30021
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG)'
 
30022
fi
 
30023
test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
 
30024
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
 
30025
  if test -e "$a"; then
 
30026
     LIB_QT="$LIB_QT ${kde_int_qt}_incremental"
 
30027
     break
 
30028
  fi
 
30029
done
 
30030
 
 
30031
 
 
30032
 
 
30033
 
 
30034
 
 
30035
 
 
30036
 
 
30037
 
 
30038
 
 
30039
 
 
30040
 
 
30041
 
 
30042
 
 
30043
echo "$as_me:$LINENO: checking for rpath" >&5
 
30044
echo $ECHO_N "checking for rpath... $ECHO_C" >&6
 
30045
# Check whether --enable-rpath or --disable-rpath was given.
 
30046
if test "${enable_rpath+set}" = set; then
 
30047
  enableval="$enable_rpath"
 
30048
  USE_RPATH=$enableval
 
30049
else
 
30050
  USE_RPATH=yes
 
30051
fi;
 
30052
 
 
30053
if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
 
30054
 
 
30055
  KDE_RPATH="-R \$(kde_libraries)"
 
30056
 
 
30057
  if test -n "$qt_libraries"; then
 
30058
    KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
 
30059
  fi
 
30060
    if test -n "$X_LDFLAGS"; then
 
30061
    X_RPATH="-R \$(x_libraries)"
 
30062
    KDE_RPATH="$KDE_RPATH $X_RPATH"
 
30063
  fi
 
30064
  if test -n "$KDE_EXTRA_RPATH"; then
 
30065
    KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)"
 
30066
  fi
 
30067
fi
 
30068
 
 
30069
 
 
30070
 
 
30071
echo "$as_me:$LINENO: result: $USE_RPATH" >&5
 
30072
echo "${ECHO_T}$USE_RPATH" >&6
 
30073
 
 
30074
echo "$as_me:$LINENO: checking for KDE" >&5
 
30075
echo $ECHO_N "checking for KDE... $ECHO_C" >&6
 
30076
 
 
30077
if test "${prefix}" != NONE; then
 
30078
  kde_includes=${includedir}
 
30079
 
 
30080
savex=$exec_prefix
 
30081
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
30082
tmp=$includedir
 
30083
while ac_kde_includes=`eval echo "$tmp"`; test "x$ac_kde_includes" != "x$tmp"; do tmp=$ac_kde_includes; done
 
30084
exec_prefix=$savex
 
30085
 
 
30086
 
 
30087
  kde_libraries=${libdir}
 
30088
 
 
30089
savex=$exec_prefix
 
30090
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
30091
tmp=$libdir
 
30092
while ac_kde_libraries=`eval echo "$tmp"`; test "x$ac_kde_libraries" != "x$tmp"; do tmp=$ac_kde_libraries; done
 
30093
exec_prefix=$savex
 
30094
 
 
30095
 
 
30096
else
 
30097
  ac_kde_includes=
 
30098
  ac_kde_libraries=
 
30099
  kde_libraries=""
 
30100
  kde_includes=""
 
30101
fi
 
30102
 
 
30103
if test "${ac_cv_have_kde+set}" = set; then
 
30104
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30105
else
 
30106
  #try to guess kde locations
 
30107
 
 
30108
if test "$kde_qtver" = 1; then
 
30109
  kde_check_header="ksock.h"
 
30110
  kde_check_lib="libkdecore.la"
 
30111
else
 
30112
  kde_check_header="ksharedptr.h"
 
30113
  kde_check_lib="libkio.la"
 
30114
fi
 
30115
 
 
30116
if test -z ""; then
 
30117
 
 
30118
kde_incdirs="$kde_libs_prefix/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes"
 
30119
test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
 
30120
kde_incdirs="$ac_kde_includes $kde_incdirs"
 
30121
 
 
30122
kde_incdir=NO
 
30123
for i in $kde_incdirs;
 
30124
do
 
30125
  for j in $kde_check_header;
 
30126
  do
 
30127
    echo "configure: 30127: $i/$j" >&5
 
30128
    if test -r "$i/$j"; then
 
30129
      echo "taking that" >&5
 
30130
      kde_incdir=$i
 
30131
      break 2
 
30132
    fi
 
30133
  done
 
30134
done
 
30135
 
 
30136
ac_kde_includes="$kde_incdir"
 
30137
 
 
30138
if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
 
30139
  { { echo "$as_me:$LINENO: error:
 
30140
in the prefix, you've chosen, are no KDE headers installed. This will fail.
 
30141
So, check this please and use another prefix!" >&5
 
30142
echo "$as_me: error:
 
30143
in the prefix, you've chosen, are no KDE headers installed. This will fail.
 
30144
So, check this please and use another prefix!" >&2;}
 
30145
   { (exit 1); exit 1; }; }
 
30146
fi
 
30147
 
 
30148
kde_libdirs="$kde_libs_prefix/lib${kdelibsuff} /usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}"
 
30149
test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs"
 
30150
kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs"
 
30151
 
 
30152
kde_libdir=NO
 
30153
for i in $kde_libdirs;
 
30154
do
 
30155
  for j in $kde_check_lib;
 
30156
  do
 
30157
    echo "configure: 30157: $i/$j" >&5
 
30158
    if test -r "$i/$j"; then
 
30159
      echo "taking that" >&5
 
30160
      kde_libdir=$i
 
30161
      break 2
 
30162
    fi
 
30163
  done
 
30164
done
 
30165
 
 
30166
ac_kde_libraries="$kde_libdir"
 
30167
 
 
30168
kde_widgetdir=NO
 
30169
 
 
30170
kde_widgetdir=NO
 
30171
for i in $kde_libdirs;
 
30172
do
 
30173
  for j in "kde3/plugins/designer/kdewidgets.la";
 
30174
  do
 
30175
    echo "configure: 30175: $i/$j" >&5
 
30176
    if test -r "$i/$j"; then
 
30177
      echo "taking that" >&5
 
30178
      kde_widgetdir=$i
 
30179
      break 2
 
30180
    fi
 
30181
  done
 
30182
done
 
30183
 
 
30184
 
 
30185
if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
 
30186
{ { echo "$as_me:$LINENO: error:
 
30187
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
 
30188
So, check this please and use another prefix!" >&5
 
30189
echo "$as_me: error:
 
30190
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
 
30191
So, check this please and use another prefix!" >&2;}
 
30192
   { (exit 1); exit 1; }; }
 
30193
fi
 
30194
 
 
30195
if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then
 
30196
{ { echo "$as_me:$LINENO: error:
 
30197
I can't find the designer plugins. These are required and should have been installed
 
30198
by kdelibs" >&5
 
30199
echo "$as_me: error:
 
30200
I can't find the designer plugins. These are required and should have been installed
 
30201
by kdelibs" >&2;}
 
30202
   { (exit 1); exit 1; }; }
 
30203
fi
 
30204
 
 
30205
if test -n "$kde_widgetdir"; then
 
30206
    kde_widgetdir="$kde_widgetdir/kde3/plugins/designer"
 
30207
fi
 
30208
 
 
30209
 
 
30210
if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO || test "$kde_widgetdir" = NO; then
 
30211
  ac_cv_have_kde="have_kde=no"
 
30212
else
 
30213
  ac_cv_have_kde="have_kde=yes \
 
30214
    ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
 
30215
fi
 
30216
 
 
30217
else
 
30218
  ac_cv_have_kde="have_kde=no"
 
30219
 
 
30220
fi
 
30221
 
 
30222
fi
 
30223
 
 
30224
eval "$ac_cv_have_kde"
 
30225
 
 
30226
if test "$have_kde" != "yes"; then
 
30227
 if test "${prefix}" = NONE; then
 
30228
  ac_kde_prefix="$ac_default_prefix"
 
30229
 else
 
30230
  ac_kde_prefix="$prefix"
 
30231
 fi
 
30232
 if test "$exec_prefix" = NONE; then
 
30233
  ac_kde_exec_prefix="$ac_kde_prefix"
 
30234
  echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix" >&5
 
30235
echo "${ECHO_T}will be installed in $ac_kde_prefix" >&6
 
30236
 else
 
30237
  ac_kde_exec_prefix="$exec_prefix"
 
30238
  echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&5
 
30239
echo "${ECHO_T}will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&6
 
30240
 fi
 
30241
 
 
30242
 kde_libraries="${libdir}"
 
30243
 kde_includes="${includedir}"
 
30244
 
 
30245
else
 
30246
  ac_cv_have_kde="have_kde=yes \
 
30247
    ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
 
30248
  echo "$as_me:$LINENO: result: libraries $ac_kde_libraries, headers $ac_kde_includes" >&5
 
30249
echo "${ECHO_T}libraries $ac_kde_libraries, headers $ac_kde_includes" >&6
 
30250
 
 
30251
  kde_libraries="$ac_kde_libraries"
 
30252
  kde_includes="$ac_kde_includes"
 
30253
fi
 
30254
 
 
30255
 
 
30256
 
 
30257
if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes"  || test "$kde_includes" = "/usr/include"; then
 
30258
 KDE_INCLUDES=""
 
30259
else
 
30260
 KDE_INCLUDES="-I$kde_includes"
 
30261
 all_includes="$KDE_INCLUDES $all_includes"
 
30262
fi
 
30263
 
 
30264
KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION"
 
30265
 
 
30266
KDE_LDFLAGS="-L$kde_libraries"
 
30267
if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
 
30268
 all_libraries="$KDE_LDFLAGS $all_libraries"
 
30269
fi
 
30270
 
 
30271
 
 
30272
 
 
30273
 
 
30274
 
 
30275
 
 
30276
all_libraries="$USER_LDFLAGS $all_libraries"
 
30277
all_includes="$all_includes $USER_INCLUDES"
 
30278
 
 
30279
 
 
30280
 
 
30281
if test -z ""; then
 
30282
 
 
30283
 
 
30284
 
 
30285
if test x$ac_uic_supports_libpath = xyes; then
 
30286
 
 
30287
echo "$as_me:$LINENO: checking if UIC has KDE plugins available" >&5
 
30288
echo $ECHO_N "checking if UIC has KDE plugins available... $ECHO_C" >&6
 
30289
if test "${kde_cv_uic_plugins+set}" = set; then
 
30290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30291
else
 
30292
 
 
30293
cat > actest.ui << EOF
 
30294
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
 
30295
<class>NewConnectionDialog</class>
 
30296
<widget class="QDialog">
 
30297
   <widget class="KLineEdit">
 
30298
        <property name="name">
 
30299
           <cstring>testInput</cstring>
 
30300
        </property>
 
30301
   </widget>
 
30302
</widget>
 
30303
</UI>
 
30304
EOF
 
30305
 
 
30306
 
 
30307
 
 
30308
kde_cv_uic_plugins=no
 
30309
kde_line="$UIC_PATH -L $kde_widgetdir"
 
30310
if test x$ac_uic_supports_nounload = xyes; then
 
30311
   kde_line="$kde_line -nounload"
 
30312
fi
 
30313
kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
 
30314
if { (eval echo "$as_me:$LINENO: \"$kde_line\"") >&5
 
30315
  (eval $kde_line) 2>&5
 
30316
  ac_status=$?
 
30317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30318
  (exit $ac_status); }; then
 
30319
        # if you're trying to debug this check and think it's incorrect,
 
30320
        # better check your installation. The check _is_ correct - your
 
30321
        # installation is not.
 
30322
        if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
 
30323
                kde_cv_uic_plugins=yes
 
30324
        fi
 
30325
fi
 
30326
rm -f actest.ui actest.cpp
 
30327
 
 
30328
fi
 
30329
 
 
30330
 
 
30331
echo "$as_me:$LINENO: result: $kde_cv_uic_plugins" >&5
 
30332
echo "${ECHO_T}$kde_cv_uic_plugins" >&6
 
30333
if test "$kde_cv_uic_plugins" != yes; then
 
30334
        { { echo "$as_me:$LINENO: error: you need to install kdelibs first." >&5
 
30335
echo "$as_me: error: you need to install kdelibs first." >&2;}
 
30336
   { (exit 1); exit 1; }; }
 
30337
fi
 
30338
fi
 
30339
 
 
30340
fi
 
30341
 
 
30342
ac_kde_libraries="$kde_libdir"
 
30343
 
 
30344
 
 
30345
 
 
30346
 
 
30347
 
 
30348
  # Check whether --enable-path-check or --disable-path-check was given.
 
30349
if test "${enable_path_check+set}" = set; then
 
30350
  enableval="$enable_path_check"
 
30351
 
 
30352
  if test "$enableval" = "no";
 
30353
    then ac_use_path_checking="default"
 
30354
    else ac_use_path_checking=""
 
30355
  fi
 
30356
 
 
30357
else
 
30358
 
 
30359
  if test "$kde_qtver" = 1;
 
30360
    then ac_use_path_checking=""
 
30361
    else ac_use_path_checking="default"
 
30362
  fi
 
30363
 
 
30364
 
 
30365
fi;
 
30366
 
 
30367
 
 
30368
 
 
30369
 
 
30370
echo "$as_me:$LINENO: checking for KDE paths" >&5
 
30371
echo $ECHO_N "checking for KDE paths... $ECHO_C" >&6
 
30372
kde_result=""
 
30373
kde_cached_paths=yes
 
30374
if test "${kde_cv_all_paths+set}" = set; then
 
30375
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30376
else
 
30377
 
 
30378
 
 
30379
if test "$ac_use_path_checking" = "default"; then
 
30380
 
 
30381
  if test -z "$kde_htmldir"; then
 
30382
    kde_htmldir='\${datadir}/doc/HTML'
 
30383
  fi
 
30384
  if test -z "$kde_appsdir"; then
 
30385
    kde_appsdir='\${datadir}/applnk'
 
30386
  fi
 
30387
  if test -z "$kde_icondir"; then
 
30388
    kde_icondir='\${datadir}/icons'
 
30389
  fi
 
30390
  if test -z "$kde_sounddir"; then
 
30391
    kde_sounddir='\${datadir}/sounds'
 
30392
  fi
 
30393
  if test -z "$kde_datadir"; then
 
30394
    kde_datadir='\${datadir}/apps'
 
30395
  fi
 
30396
  if test -z "$kde_locale"; then
 
30397
    kde_locale='\${datadir}/locale'
 
30398
  fi
 
30399
  if test -z "$kde_cgidir"; then
 
30400
    kde_cgidir='\${exec_prefix}/cgi-bin'
 
30401
  fi
 
30402
  if test -z "$kde_confdir"; then
 
30403
    kde_confdir='\${datadir}/config'
 
30404
  fi
 
30405
  if test -z "$kde_kcfgdir"; then
 
30406
    kde_kcfgdir='\${datadir}/config.kcfg'
 
30407
  fi
 
30408
  if test -z "$kde_mimedir"; then
 
30409
    kde_mimedir='\${datadir}/mimelnk'
 
30410
  fi
 
30411
  if test -z "$kde_toolbardir"; then
 
30412
    kde_toolbardir='\${datadir}/toolbar'
 
30413
  fi
 
30414
  if test -z "$kde_wallpaperdir"; then
 
30415
    kde_wallpaperdir='\${datadir}/wallpapers'
 
30416
  fi
 
30417
  if test -z "$kde_templatesdir"; then
 
30418
    kde_templatesdir='\${datadir}/templates'
 
30419
  fi
 
30420
  if test -z "$kde_bindir"; then
 
30421
    kde_bindir='\${exec_prefix}/bin'
 
30422
  fi
 
30423
  if test -z "$kde_servicesdir"; then
 
30424
    kde_servicesdir='\${datadir}/services'
 
30425
  fi
 
30426
  if test -z "$kde_servicetypesdir"; then
 
30427
    kde_servicetypesdir='\${datadir}/servicetypes'
 
30428
  fi
 
30429
  if test -z "$kde_moduledir"; then
 
30430
    if test "$kde_qtver" = "2"; then
 
30431
      kde_moduledir='\${libdir}/kde2'
 
30432
    else
 
30433
      kde_moduledir='\${libdir}/kde3'
 
30434
    fi
 
30435
  fi
 
30436
  if test -z "$kde_styledir"; then
 
30437
    kde_styledir='\${libdir}/kde3/plugins/styles'
 
30438
  fi
 
30439
  if test -z "$kde_widgetdir"; then
 
30440
    kde_widgetdir='\${libdir}/kde3/plugins/designer'
 
30441
  fi
 
30442
  if test -z "$xdg_appsdir"; then
 
30443
    xdg_appsdir='\${datadir}/applications/kde'
 
30444
  fi
 
30445
  if test -z "$xdg_menudir"; then
 
30446
    xdg_menudir='\${sysconfdir}/xdg/menus'
 
30447
  fi
 
30448
  if test -z "$xdg_directorydir"; then
 
30449
    xdg_directorydir='\${datadir}/desktop-directories'
 
30450
  fi
 
30451
 
 
30452
 
 
30453
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
 
30454
        kde_htmldir=\"$kde_htmldir\" \
 
30455
        kde_appsdir=\"$kde_appsdir\" \
 
30456
        kde_icondir=\"$kde_icondir\" \
 
30457
        kde_sounddir=\"$kde_sounddir\" \
 
30458
        kde_datadir=\"$kde_datadir\" \
 
30459
        kde_locale=\"$kde_locale\" \
 
30460
        kde_cgidir=\"$kde_cgidir\" \
 
30461
        kde_confdir=\"$kde_confdir\" \
 
30462
        kde_kcfgdir=\"$kde_kcfgdir\" \
 
30463
        kde_mimedir=\"$kde_mimedir\" \
 
30464
        kde_toolbardir=\"$kde_toolbardir\" \
 
30465
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
 
30466
        kde_templatesdir=\"$kde_templatesdir\" \
 
30467
        kde_bindir=\"$kde_bindir\" \
 
30468
        kde_servicesdir=\"$kde_servicesdir\" \
 
30469
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
 
30470
        kde_moduledir=\"$kde_moduledir\" \
 
30471
        kde_styledir=\"$kde_styledir\" \
 
30472
        kde_widgetdir=\"$kde_widgetdir\" \
 
30473
        xdg_appsdir=\"$xdg_appsdir\" \
 
30474
        xdg_menudir=\"$xdg_menudir\" \
 
30475
        xdg_directorydir=\"$xdg_directorydir\" \
 
30476
        kde_result=defaults"
 
30477
 
 
30478
 
 
30479
else
 
30480
 
 
30481
  if test $kde_qtver = 1; then
 
30482
     echo "$as_me:$LINENO: result: compiling" >&5
 
30483
echo "${ECHO_T}compiling" >&6
 
30484
 
 
30485
 
 
30486
    echo "$as_me:$LINENO: checking for KDE headers installed" >&5
 
30487
echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6
 
30488
 
 
30489
 
 
30490
     ac_ext=cc
 
30491
ac_cpp='$CXXCPP $CPPFLAGS'
 
30492
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30493
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30494
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
30495
 
 
30496
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
30497
 
 
30498
 
 
30499
cat > conftest.$ac_ext <<EOF
 
30500
#ifdef STDC_HEADERS
 
30501
# include <stdlib.h>
 
30502
#endif
 
30503
#include <stdio.h>
 
30504
#include "confdefs.h"
 
30505
#include <kapp.h>
 
30506
 
 
30507
int main() {
 
30508
    printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
 
30509
    printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
 
30510
    printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
 
30511
    printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
 
30512
    printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
 
30513
    printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
 
30514
    printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
 
30515
    printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
 
30516
    printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
 
30517
    printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
 
30518
    printf("kde_wallpaperdir=\\"%s\\"\n",
 
30519
        KApplication::kde_wallpaperdir().data());
 
30520
    printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
 
30521
    printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
 
30522
    printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
 
30523
    printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
 
30524
    printf("kde_moduledir=\\"/tmp/dummy\\"\n");
 
30525
    printf("kde_styledir=\\"/tmp/dummy\\"\n");
 
30526
    printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
 
30527
    printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
 
30528
    printf("xdg_menudir=\\"/tmp/dummy\\"\n");
 
30529
    printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
 
30530
    printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
 
30531
    return 0;
 
30532
    }
 
30533
EOF
 
30534
 
 
30535
 ac_save_CPPFLAGS=$CPPFLAGS
 
30536
 CPPFLAGS="$all_includes $CPPFLAGS"
 
30537
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30538
  (eval $ac_compile) 2>&5
 
30539
  ac_status=$?
 
30540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30541
  (exit $ac_status); }; then
 
30542
   echo "$as_me:$LINENO: result: yes" >&5
 
30543
echo "${ECHO_T}yes" >&6
 
30544
 else
 
30545
   { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
 
30546
Check, if you installed the KDE header files correctly.
 
30547
For more details about this problem, look at the end of config.log." >&5
 
30548
echo "$as_me: error: your system is not able to compile a small KDE application!
 
30549
Check, if you installed the KDE header files correctly.
 
30550
For more details about this problem, look at the end of config.log." >&2;}
 
30551
   { (exit 1); exit 1; }; }
 
30552
  fi
 
30553
  CPPFLAGS=$ac_save_CPPFLAGS
 
30554
 
 
30555
  ac_ext=c
 
30556
ac_cpp='$CPP $CPPFLAGS'
 
30557
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30558
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30559
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
30560
 
 
30561
 
 
30562
 
 
30563
  KDE_TEST_RPATH=
 
30564
 
 
30565
  if test -n "$USE_RPATH"; then
 
30566
 
 
30567
     if test -n "$kde_libraries"; then
 
30568
       KDE_TEST_RPATH="-R $kde_libraries"
 
30569
     fi
 
30570
 
 
30571
     if test -n "$qt_libraries"; then
 
30572
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
 
30573
     fi
 
30574
 
 
30575
     if test -n "$x_libraries"; then
 
30576
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
 
30577
     fi
 
30578
 
 
30579
     KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
 
30580
  fi
 
30581
 
 
30582
echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
 
30583
echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6
 
30584
ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
 
30585
 
 
30586
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30587
  (eval $ac_link) 2>&5
 
30588
  ac_status=$?
 
30589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30590
  (exit $ac_status); } && test -s conftest; then
 
30591
  echo "$as_me:$LINENO: result: yes" >&5
 
30592
echo "${ECHO_T}yes" >&6
 
30593
else
 
30594
  { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
 
30595
Check, if your compiler is installed correctly and if you have used the
 
30596
same compiler to compile Qt and kdelibs as you did use now.
 
30597
For more details about this problem, look at the end of config.log." >&5
 
30598
echo "$as_me: error: your system fails at linking a small KDE application!
 
30599
Check, if your compiler is installed correctly and if you have used the
 
30600
same compiler to compile Qt and kdelibs as you did use now.
 
30601
For more details about this problem, look at the end of config.log." >&2;}
 
30602
   { (exit 1); exit 1; }; }
 
30603
fi
 
30604
 
 
30605
if eval `KDEDIR= ./conftest 2>&5`; then
 
30606
  kde_result=done
 
30607
else
 
30608
  kde_result=problems
 
30609
fi
 
30610
 
 
30611
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
 
30612
kde_have_all_paths=yes
 
30613
 
 
30614
 
 
30615
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
 
30616
        kde_htmldir=\"$kde_htmldir\" \
 
30617
        kde_appsdir=\"$kde_appsdir\" \
 
30618
        kde_icondir=\"$kde_icondir\" \
 
30619
        kde_sounddir=\"$kde_sounddir\" \
 
30620
        kde_datadir=\"$kde_datadir\" \
 
30621
        kde_locale=\"$kde_locale\" \
 
30622
        kde_cgidir=\"$kde_cgidir\" \
 
30623
        kde_confdir=\"$kde_confdir\" \
 
30624
        kde_kcfgdir=\"$kde_kcfgdir\" \
 
30625
        kde_mimedir=\"$kde_mimedir\" \
 
30626
        kde_toolbardir=\"$kde_toolbardir\" \
 
30627
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
 
30628
        kde_templatesdir=\"$kde_templatesdir\" \
 
30629
        kde_bindir=\"$kde_bindir\" \
 
30630
        kde_servicesdir=\"$kde_servicesdir\" \
 
30631
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
 
30632
        kde_moduledir=\"$kde_moduledir\" \
 
30633
        kde_styledir=\"$kde_styledir\" \
 
30634
        kde_widgetdir=\"$kde_widgetdir\" \
 
30635
        xdg_appsdir=\"$xdg_appsdir\" \
 
30636
        xdg_menudir=\"$xdg_menudir\" \
 
30637
        xdg_directorydir=\"$xdg_directorydir\" \
 
30638
        kde_result=$kde_result"
 
30639
 
 
30640
 
 
30641
 
 
30642
  else
 
30643
     { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
 
30644
echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
 
30645
   { (exit 1); exit 1; }; }
 
30646
  fi
 
30647
 
 
30648
fi
 
30649
 
 
30650
  kde_cached_paths=no
 
30651
 
 
30652
fi
 
30653
 
 
30654
eval "$kde_cv_all_paths"
 
30655
 if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
 
30656
   test -z "$kde_icondir" || test -z "$kde_sounddir" ||
 
30657
   test -z "$kde_datadir" || test -z "$kde_locale"  ||
 
30658
   test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
 
30659
   test -z "$kde_kcfgdir" ||
 
30660
   test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
 
30661
   test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
 
30662
   test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
 
30663
   test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
 
30664
   test -z "$kde_styledir" || test -z "kde_widgetdir" ||
 
30665
   test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
 
30666
   test "x$kde_have_all_paths" != "xyes"; then
 
30667
     kde_have_all_paths=no
 
30668
  fi
 
30669
 
 
30670
if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then
 
30671
  # wrong values were cached, may be, we can set better ones
 
30672
  kde_result=
 
30673
  kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
 
30674
  kde_datadir= kde_locale=  kde_cgidir=  kde_confdir= kde_kcfgdir=
 
30675
  kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
 
30676
  kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
 
30677
  kde_have_all_paths=
 
30678
  kde_styledir=
 
30679
  kde_widgetdir=
 
30680
  xdg_appsdir = xdg_menudir= xdg_directorydir=
 
30681
 
 
30682
if test "$ac_use_path_checking" = "default"; then
 
30683
 
 
30684
  if test -z "$kde_htmldir"; then
 
30685
    kde_htmldir='\${datadir}/doc/HTML'
 
30686
  fi
 
30687
  if test -z "$kde_appsdir"; then
 
30688
    kde_appsdir='\${datadir}/applnk'
 
30689
  fi
 
30690
  if test -z "$kde_icondir"; then
 
30691
    kde_icondir='\${datadir}/icons'
 
30692
  fi
 
30693
  if test -z "$kde_sounddir"; then
 
30694
    kde_sounddir='\${datadir}/sounds'
 
30695
  fi
 
30696
  if test -z "$kde_datadir"; then
 
30697
    kde_datadir='\${datadir}/apps'
 
30698
  fi
 
30699
  if test -z "$kde_locale"; then
 
30700
    kde_locale='\${datadir}/locale'
 
30701
  fi
 
30702
  if test -z "$kde_cgidir"; then
 
30703
    kde_cgidir='\${exec_prefix}/cgi-bin'
 
30704
  fi
 
30705
  if test -z "$kde_confdir"; then
 
30706
    kde_confdir='\${datadir}/config'
 
30707
  fi
 
30708
  if test -z "$kde_kcfgdir"; then
 
30709
    kde_kcfgdir='\${datadir}/config.kcfg'
 
30710
  fi
 
30711
  if test -z "$kde_mimedir"; then
 
30712
    kde_mimedir='\${datadir}/mimelnk'
 
30713
  fi
 
30714
  if test -z "$kde_toolbardir"; then
 
30715
    kde_toolbardir='\${datadir}/toolbar'
 
30716
  fi
 
30717
  if test -z "$kde_wallpaperdir"; then
 
30718
    kde_wallpaperdir='\${datadir}/wallpapers'
 
30719
  fi
 
30720
  if test -z "$kde_templatesdir"; then
 
30721
    kde_templatesdir='\${datadir}/templates'
 
30722
  fi
 
30723
  if test -z "$kde_bindir"; then
 
30724
    kde_bindir='\${exec_prefix}/bin'
 
30725
  fi
 
30726
  if test -z "$kde_servicesdir"; then
 
30727
    kde_servicesdir='\${datadir}/services'
 
30728
  fi
 
30729
  if test -z "$kde_servicetypesdir"; then
 
30730
    kde_servicetypesdir='\${datadir}/servicetypes'
 
30731
  fi
 
30732
  if test -z "$kde_moduledir"; then
 
30733
    if test "$kde_qtver" = "2"; then
 
30734
      kde_moduledir='\${libdir}/kde2'
 
30735
    else
 
30736
      kde_moduledir='\${libdir}/kde3'
 
30737
    fi
 
30738
  fi
 
30739
  if test -z "$kde_styledir"; then
 
30740
    kde_styledir='\${libdir}/kde3/plugins/styles'
 
30741
  fi
 
30742
  if test -z "$kde_widgetdir"; then
 
30743
    kde_widgetdir='\${libdir}/kde3/plugins/designer'
 
30744
  fi
 
30745
  if test -z "$xdg_appsdir"; then
 
30746
    xdg_appsdir='\${datadir}/applications/kde'
 
30747
  fi
 
30748
  if test -z "$xdg_menudir"; then
 
30749
    xdg_menudir='\${sysconfdir}/xdg/menus'
 
30750
  fi
 
30751
  if test -z "$xdg_directorydir"; then
 
30752
    xdg_directorydir='\${datadir}/desktop-directories'
 
30753
  fi
 
30754
 
 
30755
 
 
30756
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
 
30757
        kde_htmldir=\"$kde_htmldir\" \
 
30758
        kde_appsdir=\"$kde_appsdir\" \
 
30759
        kde_icondir=\"$kde_icondir\" \
 
30760
        kde_sounddir=\"$kde_sounddir\" \
 
30761
        kde_datadir=\"$kde_datadir\" \
 
30762
        kde_locale=\"$kde_locale\" \
 
30763
        kde_cgidir=\"$kde_cgidir\" \
 
30764
        kde_confdir=\"$kde_confdir\" \
 
30765
        kde_kcfgdir=\"$kde_kcfgdir\" \
 
30766
        kde_mimedir=\"$kde_mimedir\" \
 
30767
        kde_toolbardir=\"$kde_toolbardir\" \
 
30768
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
 
30769
        kde_templatesdir=\"$kde_templatesdir\" \
 
30770
        kde_bindir=\"$kde_bindir\" \
 
30771
        kde_servicesdir=\"$kde_servicesdir\" \
 
30772
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
 
30773
        kde_moduledir=\"$kde_moduledir\" \
 
30774
        kde_styledir=\"$kde_styledir\" \
 
30775
        kde_widgetdir=\"$kde_widgetdir\" \
 
30776
        xdg_appsdir=\"$xdg_appsdir\" \
 
30777
        xdg_menudir=\"$xdg_menudir\" \
 
30778
        xdg_directorydir=\"$xdg_directorydir\" \
 
30779
        kde_result=defaults"
 
30780
 
 
30781
 
 
30782
else
 
30783
 
 
30784
  if test $kde_qtver = 1; then
 
30785
     echo "$as_me:$LINENO: result: compiling" >&5
 
30786
echo "${ECHO_T}compiling" >&6
 
30787
 
 
30788
 
 
30789
    echo "$as_me:$LINENO: checking for KDE headers installed" >&5
 
30790
echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6
 
30791
 
 
30792
 
 
30793
     ac_ext=cc
 
30794
ac_cpp='$CXXCPP $CPPFLAGS'
 
30795
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30796
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30797
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
30798
 
 
30799
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
30800
 
 
30801
 
 
30802
cat > conftest.$ac_ext <<EOF
 
30803
#ifdef STDC_HEADERS
 
30804
# include <stdlib.h>
 
30805
#endif
 
30806
#include <stdio.h>
 
30807
#include "confdefs.h"
 
30808
#include <kapp.h>
 
30809
 
 
30810
int main() {
 
30811
    printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
 
30812
    printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
 
30813
    printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
 
30814
    printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
 
30815
    printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
 
30816
    printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
 
30817
    printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
 
30818
    printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
 
30819
    printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
 
30820
    printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
 
30821
    printf("kde_wallpaperdir=\\"%s\\"\n",
 
30822
        KApplication::kde_wallpaperdir().data());
 
30823
    printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
 
30824
    printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
 
30825
    printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
 
30826
    printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
 
30827
    printf("kde_moduledir=\\"/tmp/dummy\\"\n");
 
30828
    printf("kde_styledir=\\"/tmp/dummy\\"\n");
 
30829
    printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
 
30830
    printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
 
30831
    printf("xdg_menudir=\\"/tmp/dummy\\"\n");
 
30832
    printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
 
30833
    printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
 
30834
    return 0;
 
30835
    }
 
30836
EOF
 
30837
 
 
30838
 ac_save_CPPFLAGS=$CPPFLAGS
 
30839
 CPPFLAGS="$all_includes $CPPFLAGS"
 
30840
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30841
  (eval $ac_compile) 2>&5
 
30842
  ac_status=$?
 
30843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30844
  (exit $ac_status); }; then
 
30845
   echo "$as_me:$LINENO: result: yes" >&5
 
30846
echo "${ECHO_T}yes" >&6
 
30847
 else
 
30848
   { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
 
30849
Check, if you installed the KDE header files correctly.
 
30850
For more details about this problem, look at the end of config.log." >&5
 
30851
echo "$as_me: error: your system is not able to compile a small KDE application!
 
30852
Check, if you installed the KDE header files correctly.
 
30853
For more details about this problem, look at the end of config.log." >&2;}
 
30854
   { (exit 1); exit 1; }; }
 
30855
  fi
 
30856
  CPPFLAGS=$ac_save_CPPFLAGS
 
30857
 
 
30858
  ac_ext=c
 
30859
ac_cpp='$CPP $CPPFLAGS'
 
30860
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30861
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30862
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
30863
 
 
30864
 
 
30865
 
 
30866
  KDE_TEST_RPATH=
 
30867
 
 
30868
  if test -n "$USE_RPATH"; then
 
30869
 
 
30870
     if test -n "$kde_libraries"; then
 
30871
       KDE_TEST_RPATH="-R $kde_libraries"
 
30872
     fi
 
30873
 
 
30874
     if test -n "$qt_libraries"; then
 
30875
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
 
30876
     fi
 
30877
 
 
30878
     if test -n "$x_libraries"; then
 
30879
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
 
30880
     fi
 
30881
 
 
30882
     KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
 
30883
  fi
 
30884
 
 
30885
echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
 
30886
echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6
 
30887
ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
 
30888
 
 
30889
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30890
  (eval $ac_link) 2>&5
 
30891
  ac_status=$?
 
30892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30893
  (exit $ac_status); } && test -s conftest; then
 
30894
  echo "$as_me:$LINENO: result: yes" >&5
 
30895
echo "${ECHO_T}yes" >&6
 
30896
else
 
30897
  { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
 
30898
Check, if your compiler is installed correctly and if you have used the
 
30899
same compiler to compile Qt and kdelibs as you did use now.
 
30900
For more details about this problem, look at the end of config.log." >&5
 
30901
echo "$as_me: error: your system fails at linking a small KDE application!
 
30902
Check, if your compiler is installed correctly and if you have used the
 
30903
same compiler to compile Qt and kdelibs as you did use now.
 
30904
For more details about this problem, look at the end of config.log." >&2;}
 
30905
   { (exit 1); exit 1; }; }
 
30906
fi
 
30907
 
 
30908
if eval `KDEDIR= ./conftest 2>&5`; then
 
30909
  kde_result=done
 
30910
else
 
30911
  kde_result=problems
 
30912
fi
 
30913
 
 
30914
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
 
30915
kde_have_all_paths=yes
 
30916
 
 
30917
 
 
30918
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
 
30919
        kde_htmldir=\"$kde_htmldir\" \
 
30920
        kde_appsdir=\"$kde_appsdir\" \
 
30921
        kde_icondir=\"$kde_icondir\" \
 
30922
        kde_sounddir=\"$kde_sounddir\" \
 
30923
        kde_datadir=\"$kde_datadir\" \
 
30924
        kde_locale=\"$kde_locale\" \
 
30925
        kde_cgidir=\"$kde_cgidir\" \
 
30926
        kde_confdir=\"$kde_confdir\" \
 
30927
        kde_kcfgdir=\"$kde_kcfgdir\" \
 
30928
        kde_mimedir=\"$kde_mimedir\" \
 
30929
        kde_toolbardir=\"$kde_toolbardir\" \
 
30930
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
 
30931
        kde_templatesdir=\"$kde_templatesdir\" \
 
30932
        kde_bindir=\"$kde_bindir\" \
 
30933
        kde_servicesdir=\"$kde_servicesdir\" \
 
30934
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
 
30935
        kde_moduledir=\"$kde_moduledir\" \
 
30936
        kde_styledir=\"$kde_styledir\" \
 
30937
        kde_widgetdir=\"$kde_widgetdir\" \
 
30938
        xdg_appsdir=\"$xdg_appsdir\" \
 
30939
        xdg_menudir=\"$xdg_menudir\" \
 
30940
        xdg_directorydir=\"$xdg_directorydir\" \
 
30941
        kde_result=$kde_result"
 
30942
 
 
30943
 
 
30944
 
 
30945
  else
 
30946
     { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
 
30947
echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
 
30948
   { (exit 1); exit 1; }; }
 
30949
  fi
 
30950
 
 
30951
fi
 
30952
 
 
30953
  eval "$kde_cv_all_paths"
 
30954
   if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
 
30955
   test -z "$kde_icondir" || test -z "$kde_sounddir" ||
 
30956
   test -z "$kde_datadir" || test -z "$kde_locale"  ||
 
30957
   test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
 
30958
   test -z "$kde_kcfgdir" ||
 
30959
   test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
 
30960
   test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
 
30961
   test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
 
30962
   test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
 
30963
   test -z "$kde_styledir" || test -z "kde_widgetdir" ||
 
30964
   test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
 
30965
   test "x$kde_have_all_paths" != "xyes"; then
 
30966
     kde_have_all_paths=no
 
30967
  fi
 
30968
 
 
30969
  kde_result="$kde_result (cache overridden)"
 
30970
fi
 
30971
if test "$kde_have_all_paths" = "no"; then
 
30972
  { { echo "$as_me:$LINENO: error: configure could not run a little KDE program to test the environment.
 
30973
Since it had compiled and linked before, it must be a strange problem on your system.
 
30974
Look at config.log for details. If you are not able to fix this, look at
 
30975
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
 
30976
(If you're using an egcs version on Linux, you may update binutils!)
 
30977
" >&5
 
30978
echo "$as_me: error: configure could not run a little KDE program to test the environment.
 
30979
Since it had compiled and linked before, it must be a strange problem on your system.
 
30980
Look at config.log for details. If you are not able to fix this, look at
 
30981
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
 
30982
(If you're using an egcs version on Linux, you may update binutils!)
 
30983
" >&2;}
 
30984
   { (exit 1); exit 1; }; }
 
30985
else
 
30986
  rm -f conftest*
 
30987
  echo "$as_me:$LINENO: result: $kde_result" >&5
 
30988
echo "${ECHO_T}$kde_result" >&6
 
30989
fi
 
30990
 
 
30991
bindir=$kde_bindir
 
30992
 
 
30993
 
 
30994
 
 
30995
# Check whether --with-arts or --without-arts was given.
 
30996
if test "${with_arts+set}" = set; then
 
30997
  withval="$with_arts"
 
30998
  build_arts=$withval
 
30999
else
 
31000
  build_arts=yes
 
31001
 
 
31002
fi;
 
31003
 
 
31004
 
 
31005
if test "$build_arts" '!=' "no"; then
 
31006
  include_ARTS_TRUE=
 
31007
  include_ARTS_FALSE='#'
 
31008
else
 
31009
  include_ARTS_TRUE='#'
 
31010
  include_ARTS_FALSE=
 
31011
fi
 
31012
 
 
31013
    if test "$build_arts" = "no"; then
 
31014
 
 
31015
cat >>confdefs.h <<\_ACEOF
 
31016
#define WITHOUT_ARTS 1
 
31017
_ACEOF
 
31018
 
 
31019
    fi
 
31020
 
 
31021
 
 
31022
    kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
 
31023
    test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
 
31024
    if test -n "$KDEDIRS"; then
 
31025
       kde_save_IFS=$IFS
 
31026
       IFS=:
 
31027
       for dir in $KDEDIRS; do
 
31028
            kde_default_bindirs="$dir/bin $kde_default_bindirs "
 
31029
       done
 
31030
       IFS=$kde_save_IFS
 
31031
    fi
 
31032
 
 
31033
        kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs"
 
31034
 
 
31035
   echo "$as_me:$LINENO: checking for dcopidl" >&5
 
31036
echo $ECHO_N "checking for dcopidl... $ECHO_C" >&6
 
31037
   if test -n "$DCOPIDL"; then
 
31038
        kde_cv_path="$DCOPIDL";
 
31039
   else
 
31040
        kde_cache=`echo dcopidl | sed 'y%./+-%__p_%'`
 
31041
 
 
31042
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31044
else
 
31045
 
 
31046
        kde_cv_path="NONE"
 
31047
        kde_save_IFS=$IFS
 
31048
        IFS=':'
 
31049
        dirs=""
 
31050
        for dir in $PATH; do
 
31051
          dirs="$dirs $dir"
 
31052
        done
 
31053
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31054
        else      dirs="$dirs $kde_default_bindirs"
 
31055
        fi
 
31056
        IFS=$kde_save_IFS
 
31057
 
 
31058
        for dir in $dirs; do
 
31059
          if test -x "$dir/dcopidl"; then
 
31060
            if test -n ""
 
31061
            then
 
31062
              evalstr="$dir/dcopidl  2>&1 "
 
31063
              if eval $evalstr; then
 
31064
                kde_cv_path="$dir/dcopidl"
 
31065
                break
 
31066
              fi
 
31067
            else
 
31068
                kde_cv_path="$dir/dcopidl"
 
31069
                break
 
31070
            fi
 
31071
          fi
 
31072
        done
 
31073
 
 
31074
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31075
 
 
31076
 
 
31077
fi
 
31078
 
 
31079
 
 
31080
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31081
 
 
31082
   fi
 
31083
 
 
31084
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31085
      echo "$as_me:$LINENO: result: not found" >&5
 
31086
echo "${ECHO_T}not found" >&6
 
31087
 
 
31088
    { { echo "$as_me:$LINENO: error: The important program dcopidl was not found!
 
31089
Please check whether you installed KDE correctly.
 
31090
" >&5
 
31091
echo "$as_me: error: The important program dcopidl was not found!
 
31092
Please check whether you installed KDE correctly.
 
31093
" >&2;}
 
31094
   { (exit 1); exit 1; }; }
 
31095
 
 
31096
   else
 
31097
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31098
echo "${ECHO_T}$kde_cv_path" >&6
 
31099
      DCOPIDL=$kde_cv_path
 
31100
 
 
31101
   fi
 
31102
 
 
31103
 
 
31104
   echo "$as_me:$LINENO: checking for dcopidl2cpp" >&5
 
31105
echo $ECHO_N "checking for dcopidl2cpp... $ECHO_C" >&6
 
31106
   if test -n "$DCOPIDL2CPP"; then
 
31107
        kde_cv_path="$DCOPIDL2CPP";
 
31108
   else
 
31109
        kde_cache=`echo dcopidl2cpp | sed 'y%./+-%__p_%'`
 
31110
 
 
31111
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31112
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31113
else
 
31114
 
 
31115
        kde_cv_path="NONE"
 
31116
        kde_save_IFS=$IFS
 
31117
        IFS=':'
 
31118
        dirs=""
 
31119
        for dir in $PATH; do
 
31120
          dirs="$dirs $dir"
 
31121
        done
 
31122
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31123
        else      dirs="$dirs $kde_default_bindirs"
 
31124
        fi
 
31125
        IFS=$kde_save_IFS
 
31126
 
 
31127
        for dir in $dirs; do
 
31128
          if test -x "$dir/dcopidl2cpp"; then
 
31129
            if test -n ""
 
31130
            then
 
31131
              evalstr="$dir/dcopidl2cpp  2>&1 "
 
31132
              if eval $evalstr; then
 
31133
                kde_cv_path="$dir/dcopidl2cpp"
 
31134
                break
 
31135
              fi
 
31136
            else
 
31137
                kde_cv_path="$dir/dcopidl2cpp"
 
31138
                break
 
31139
            fi
 
31140
          fi
 
31141
        done
 
31142
 
 
31143
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31144
 
 
31145
 
 
31146
fi
 
31147
 
 
31148
 
 
31149
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31150
 
 
31151
   fi
 
31152
 
 
31153
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31154
      echo "$as_me:$LINENO: result: not found" >&5
 
31155
echo "${ECHO_T}not found" >&6
 
31156
 
 
31157
    { { echo "$as_me:$LINENO: error: The important program dcopidl2cpp was not found!
 
31158
Please check whether you installed KDE correctly.
 
31159
" >&5
 
31160
echo "$as_me: error: The important program dcopidl2cpp was not found!
 
31161
Please check whether you installed KDE correctly.
 
31162
" >&2;}
 
31163
   { (exit 1); exit 1; }; }
 
31164
 
 
31165
   else
 
31166
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31167
echo "${ECHO_T}$kde_cv_path" >&6
 
31168
      DCOPIDL2CPP=$kde_cv_path
 
31169
 
 
31170
   fi
 
31171
 
 
31172
        if test "$build_arts" '!=' "no"; then
 
31173
 
 
31174
   echo "$as_me:$LINENO: checking for mcopidl" >&5
 
31175
echo $ECHO_N "checking for mcopidl... $ECHO_C" >&6
 
31176
   if test -n "$MCOPIDL"; then
 
31177
        kde_cv_path="$MCOPIDL";
 
31178
   else
 
31179
        kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'`
 
31180
 
 
31181
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31182
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31183
else
 
31184
 
 
31185
        kde_cv_path="NONE"
 
31186
        kde_save_IFS=$IFS
 
31187
        IFS=':'
 
31188
        dirs=""
 
31189
        for dir in $PATH; do
 
31190
          dirs="$dirs $dir"
 
31191
        done
 
31192
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31193
        else      dirs="$dirs $kde_default_bindirs"
 
31194
        fi
 
31195
        IFS=$kde_save_IFS
 
31196
 
 
31197
        for dir in $dirs; do
 
31198
          if test -x "$dir/mcopidl"; then
 
31199
            if test -n ""
 
31200
            then
 
31201
              evalstr="$dir/mcopidl  2>&1 "
 
31202
              if eval $evalstr; then
 
31203
                kde_cv_path="$dir/mcopidl"
 
31204
                break
 
31205
              fi
 
31206
            else
 
31207
                kde_cv_path="$dir/mcopidl"
 
31208
                break
 
31209
            fi
 
31210
          fi
 
31211
        done
 
31212
 
 
31213
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31214
 
 
31215
 
 
31216
fi
 
31217
 
 
31218
 
 
31219
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31220
 
 
31221
   fi
 
31222
 
 
31223
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31224
      echo "$as_me:$LINENO: result: not found" >&5
 
31225
echo "${ECHO_T}not found" >&6
 
31226
 
 
31227
    { { echo "$as_me:$LINENO: error: The important program mcopidl was not found!
 
31228
Please check whether you installed aRts correctly or use
 
31229
--without-arts to compile without aRts support (this will remove functionality).
 
31230
" >&5
 
31231
echo "$as_me: error: The important program mcopidl was not found!
 
31232
Please check whether you installed aRts correctly or use
 
31233
--without-arts to compile without aRts support (this will remove functionality).
 
31234
" >&2;}
 
31235
   { (exit 1); exit 1; }; }
 
31236
 
 
31237
   else
 
31238
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31239
echo "${ECHO_T}$kde_cv_path" >&6
 
31240
      MCOPIDL=$kde_cv_path
 
31241
 
 
31242
   fi
 
31243
 
 
31244
 
 
31245
   echo "$as_me:$LINENO: checking for artsc-config" >&5
 
31246
echo $ECHO_N "checking for artsc-config... $ECHO_C" >&6
 
31247
   if test -n "$ARTSCCONFIG"; then
 
31248
        kde_cv_path="$ARTSCCONFIG";
 
31249
   else
 
31250
        kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'`
 
31251
 
 
31252
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31253
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31254
else
 
31255
 
 
31256
        kde_cv_path="NONE"
 
31257
        kde_save_IFS=$IFS
 
31258
        IFS=':'
 
31259
        dirs=""
 
31260
        for dir in $PATH; do
 
31261
          dirs="$dirs $dir"
 
31262
        done
 
31263
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31264
        else      dirs="$dirs $kde_default_bindirs"
 
31265
        fi
 
31266
        IFS=$kde_save_IFS
 
31267
 
 
31268
        for dir in $dirs; do
 
31269
          if test -x "$dir/artsc-config"; then
 
31270
            if test -n ""
 
31271
            then
 
31272
              evalstr="$dir/artsc-config  2>&1 "
 
31273
              if eval $evalstr; then
 
31274
                kde_cv_path="$dir/artsc-config"
 
31275
                break
 
31276
              fi
 
31277
            else
 
31278
                kde_cv_path="$dir/artsc-config"
 
31279
                break
 
31280
            fi
 
31281
          fi
 
31282
        done
 
31283
 
 
31284
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31285
 
 
31286
 
 
31287
fi
 
31288
 
 
31289
 
 
31290
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31291
 
 
31292
   fi
 
31293
 
 
31294
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31295
      echo "$as_me:$LINENO: result: not found" >&5
 
31296
echo "${ECHO_T}not found" >&6
 
31297
 
 
31298
    { { echo "$as_me:$LINENO: error: The important program artsc-config was not found!
 
31299
Please check whether you installed aRts correctly or use
 
31300
--without-arts to compile without aRts support (this will remove functionality).
 
31301
" >&5
 
31302
echo "$as_me: error: The important program artsc-config was not found!
 
31303
Please check whether you installed aRts correctly or use
 
31304
--without-arts to compile without aRts support (this will remove functionality).
 
31305
" >&2;}
 
31306
   { (exit 1); exit 1; }; }
 
31307
 
 
31308
   else
 
31309
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31310
echo "${ECHO_T}$kde_cv_path" >&6
 
31311
      ARTSCCONFIG=$kde_cv_path
 
31312
 
 
31313
   fi
 
31314
 
 
31315
        fi
 
31316
 
 
31317
   echo "$as_me:$LINENO: checking for meinproc" >&5
 
31318
echo $ECHO_N "checking for meinproc... $ECHO_C" >&6
 
31319
   if test -n "$MEINPROC"; then
 
31320
        kde_cv_path="$MEINPROC";
 
31321
   else
 
31322
        kde_cache=`echo meinproc | sed 'y%./+-%__p_%'`
 
31323
 
 
31324
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31325
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31326
else
 
31327
 
 
31328
        kde_cv_path="NONE"
 
31329
        kde_save_IFS=$IFS
 
31330
        IFS=':'
 
31331
        dirs=""
 
31332
        for dir in $PATH; do
 
31333
          dirs="$dirs $dir"
 
31334
        done
 
31335
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31336
        else      dirs="$dirs $kde_default_bindirs"
 
31337
        fi
 
31338
        IFS=$kde_save_IFS
 
31339
 
 
31340
        for dir in $dirs; do
 
31341
          if test -x "$dir/meinproc"; then
 
31342
            if test -n ""
 
31343
            then
 
31344
              evalstr="$dir/meinproc  2>&1 "
 
31345
              if eval $evalstr; then
 
31346
                kde_cv_path="$dir/meinproc"
 
31347
                break
 
31348
              fi
 
31349
            else
 
31350
                kde_cv_path="$dir/meinproc"
 
31351
                break
 
31352
            fi
 
31353
          fi
 
31354
        done
 
31355
 
 
31356
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31357
 
 
31358
 
 
31359
fi
 
31360
 
 
31361
 
 
31362
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31363
 
 
31364
   fi
 
31365
 
 
31366
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31367
      echo "$as_me:$LINENO: result: not found" >&5
 
31368
echo "${ECHO_T}not found" >&6
 
31369
 
 
31370
   else
 
31371
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31372
echo "${ECHO_T}$kde_cv_path" >&6
 
31373
      MEINPROC=$kde_cv_path
 
31374
 
 
31375
   fi
 
31376
 
 
31377
 
 
31378
        kde32ornewer=1
 
31379
        kde33ornewer=1
 
31380
        if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
 
31381
            kde32ornewer=
 
31382
            kde33ornewer=
 
31383
        else
 
31384
            if test "$kde_qtver" = "3"; then
 
31385
              if test "$kde_qtsubver" -le 1; then
 
31386
                kde32ornewer=
 
31387
              fi
 
31388
              if test "$kde_qtsubver" -le 2; then
 
31389
                kde33ornewer=
 
31390
              fi
 
31391
            fi
 
31392
        fi
 
31393
 
 
31394
        if test -n "$kde32ornewer"; then
 
31395
 
 
31396
   echo "$as_me:$LINENO: checking for kconfig_compiler" >&5
 
31397
echo $ECHO_N "checking for kconfig_compiler... $ECHO_C" >&6
 
31398
   if test -n "$KCONFIG_COMPILER"; then
 
31399
        kde_cv_path="$KCONFIG_COMPILER";
 
31400
   else
 
31401
        kde_cache=`echo kconfig_compiler | sed 'y%./+-%__p_%'`
 
31402
 
 
31403
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31404
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31405
else
 
31406
 
 
31407
        kde_cv_path="NONE"
 
31408
        kde_save_IFS=$IFS
 
31409
        IFS=':'
 
31410
        dirs=""
 
31411
        for dir in $PATH; do
 
31412
          dirs="$dirs $dir"
 
31413
        done
 
31414
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31415
        else      dirs="$dirs $kde_default_bindirs"
 
31416
        fi
 
31417
        IFS=$kde_save_IFS
 
31418
 
 
31419
        for dir in $dirs; do
 
31420
          if test -x "$dir/kconfig_compiler"; then
 
31421
            if test -n ""
 
31422
            then
 
31423
              evalstr="$dir/kconfig_compiler  2>&1 "
 
31424
              if eval $evalstr; then
 
31425
                kde_cv_path="$dir/kconfig_compiler"
 
31426
                break
 
31427
              fi
 
31428
            else
 
31429
                kde_cv_path="$dir/kconfig_compiler"
 
31430
                break
 
31431
            fi
 
31432
          fi
 
31433
        done
 
31434
 
 
31435
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31436
 
 
31437
 
 
31438
fi
 
31439
 
 
31440
 
 
31441
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31442
 
 
31443
   fi
 
31444
 
 
31445
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31446
      echo "$as_me:$LINENO: result: not found" >&5
 
31447
echo "${ECHO_T}not found" >&6
 
31448
 
 
31449
    { { echo "$as_me:$LINENO: error: The important program kconfig_compiler was not found!
 
31450
Please check whether you installed KDE correctly.
 
31451
" >&5
 
31452
echo "$as_me: error: The important program kconfig_compiler was not found!
 
31453
Please check whether you installed KDE correctly.
 
31454
" >&2;}
 
31455
   { (exit 1); exit 1; }; }
 
31456
 
 
31457
   else
 
31458
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31459
echo "${ECHO_T}$kde_cv_path" >&6
 
31460
      KCONFIG_COMPILER=$kde_cv_path
 
31461
 
 
31462
   fi
 
31463
 
 
31464
 
 
31465
   echo "$as_me:$LINENO: checking for dcopidlng" >&5
 
31466
echo $ECHO_N "checking for dcopidlng... $ECHO_C" >&6
 
31467
   if test -n "$DCOPIDLNG"; then
 
31468
        kde_cv_path="$DCOPIDLNG";
 
31469
   else
 
31470
        kde_cache=`echo dcopidlng | sed 'y%./+-%__p_%'`
 
31471
 
 
31472
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31474
else
 
31475
 
 
31476
        kde_cv_path="NONE"
 
31477
        kde_save_IFS=$IFS
 
31478
        IFS=':'
 
31479
        dirs=""
 
31480
        for dir in $PATH; do
 
31481
          dirs="$dirs $dir"
 
31482
        done
 
31483
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31484
        else      dirs="$dirs $kde_default_bindirs"
 
31485
        fi
 
31486
        IFS=$kde_save_IFS
 
31487
 
 
31488
        for dir in $dirs; do
 
31489
          if test -x "$dir/dcopidlng"; then
 
31490
            if test -n ""
 
31491
            then
 
31492
              evalstr="$dir/dcopidlng  2>&1 "
 
31493
              if eval $evalstr; then
 
31494
                kde_cv_path="$dir/dcopidlng"
 
31495
                break
 
31496
              fi
 
31497
            else
 
31498
                kde_cv_path="$dir/dcopidlng"
 
31499
                break
 
31500
            fi
 
31501
          fi
 
31502
        done
 
31503
 
 
31504
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31505
 
 
31506
 
 
31507
fi
 
31508
 
 
31509
 
 
31510
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31511
 
 
31512
   fi
 
31513
 
 
31514
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31515
      echo "$as_me:$LINENO: result: not found" >&5
 
31516
echo "${ECHO_T}not found" >&6
 
31517
 
 
31518
    { { echo "$as_me:$LINENO: error: The important program dcopidlng was not found!
 
31519
Please check whether you installed KDE correctly.
 
31520
" >&5
 
31521
echo "$as_me: error: The important program dcopidlng was not found!
 
31522
Please check whether you installed KDE correctly.
 
31523
" >&2;}
 
31524
   { (exit 1); exit 1; }; }
 
31525
 
 
31526
   else
 
31527
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31528
echo "${ECHO_T}$kde_cv_path" >&6
 
31529
      DCOPIDLNG=$kde_cv_path
 
31530
 
 
31531
   fi
 
31532
 
 
31533
        fi
 
31534
        if test -n "$kde33ornewer"; then
 
31535
 
 
31536
   echo "$as_me:$LINENO: checking for makekdewidgets" >&5
 
31537
echo $ECHO_N "checking for makekdewidgets... $ECHO_C" >&6
 
31538
   if test -n "$MAKEKDEWIDGETS"; then
 
31539
        kde_cv_path="$MAKEKDEWIDGETS";
 
31540
   else
 
31541
        kde_cache=`echo makekdewidgets | sed 'y%./+-%__p_%'`
 
31542
 
 
31543
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31544
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31545
else
 
31546
 
 
31547
        kde_cv_path="NONE"
 
31548
        kde_save_IFS=$IFS
 
31549
        IFS=':'
 
31550
        dirs=""
 
31551
        for dir in $PATH; do
 
31552
          dirs="$dirs $dir"
 
31553
        done
 
31554
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31555
        else      dirs="$dirs $kde_default_bindirs"
 
31556
        fi
 
31557
        IFS=$kde_save_IFS
 
31558
 
 
31559
        for dir in $dirs; do
 
31560
          if test -x "$dir/makekdewidgets"; then
 
31561
            if test -n ""
 
31562
            then
 
31563
              evalstr="$dir/makekdewidgets  2>&1 "
 
31564
              if eval $evalstr; then
 
31565
                kde_cv_path="$dir/makekdewidgets"
 
31566
                break
 
31567
              fi
 
31568
            else
 
31569
                kde_cv_path="$dir/makekdewidgets"
 
31570
                break
 
31571
            fi
 
31572
          fi
 
31573
        done
 
31574
 
 
31575
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31576
 
 
31577
 
 
31578
fi
 
31579
 
 
31580
 
 
31581
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31582
 
 
31583
   fi
 
31584
 
 
31585
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31586
      echo "$as_me:$LINENO: result: not found" >&5
 
31587
echo "${ECHO_T}not found" >&6
 
31588
 
 
31589
    { { echo "$as_me:$LINENO: error: The important program makekdewidgets was not found!
 
31590
Please check whether you installed KDE correctly.
 
31591
" >&5
 
31592
echo "$as_me: error: The important program makekdewidgets was not found!
 
31593
Please check whether you installed KDE correctly.
 
31594
" >&2;}
 
31595
   { (exit 1); exit 1; }; }
 
31596
 
 
31597
   else
 
31598
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31599
echo "${ECHO_T}$kde_cv_path" >&6
 
31600
      MAKEKDEWIDGETS=$kde_cv_path
 
31601
 
 
31602
   fi
 
31603
 
 
31604
 
 
31605
        fi
 
31606
 
 
31607
   echo "$as_me:$LINENO: checking for xmllint" >&5
 
31608
echo $ECHO_N "checking for xmllint... $ECHO_C" >&6
 
31609
   if test -n "$XMLLINT"; then
 
31610
        kde_cv_path="$XMLLINT";
 
31611
   else
 
31612
        kde_cache=`echo xmllint | sed 'y%./+-%__p_%'`
 
31613
 
 
31614
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31615
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31616
else
 
31617
 
 
31618
        kde_cv_path="NONE"
 
31619
        kde_save_IFS=$IFS
 
31620
        IFS=':'
 
31621
        dirs=""
 
31622
        for dir in $PATH; do
 
31623
          dirs="$dirs $dir"
 
31624
        done
 
31625
        if test -z ""; then       dirs="${prefix}/bin ${exec_prefix}/bin $dirs"
 
31626
        else      dirs="$dirs ${prefix}/bin ${exec_prefix}/bin"
 
31627
        fi
 
31628
        IFS=$kde_save_IFS
 
31629
 
 
31630
        for dir in $dirs; do
 
31631
          if test -x "$dir/xmllint"; then
 
31632
            if test -n ""
 
31633
            then
 
31634
              evalstr="$dir/xmllint  2>&1 "
 
31635
              if eval $evalstr; then
 
31636
                kde_cv_path="$dir/xmllint"
 
31637
                break
 
31638
              fi
 
31639
            else
 
31640
                kde_cv_path="$dir/xmllint"
 
31641
                break
 
31642
            fi
 
31643
          fi
 
31644
        done
 
31645
 
 
31646
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31647
 
 
31648
 
 
31649
fi
 
31650
 
 
31651
 
 
31652
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31653
 
 
31654
   fi
 
31655
 
 
31656
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31657
      echo "$as_me:$LINENO: result: not found" >&5
 
31658
echo "${ECHO_T}not found" >&6
 
31659
      XMLLINT=""
 
31660
   else
 
31661
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31662
echo "${ECHO_T}$kde_cv_path" >&6
 
31663
      XMLLINT=$kde_cv_path
 
31664
 
 
31665
   fi
 
31666
 
 
31667
 
 
31668
        if test -n "$MEINPROC" && test ! "$MEINPROC" = "compiled"; then
 
31669
            kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
 
31670
            test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs"
 
31671
 
 
31672
KDE_XSL_STYLESHEET=NO
 
31673
for i in $kde_sharedirs;
 
31674
do
 
31675
  for j in apps/ksgmltools2/customization/kde-chunk.xsl;
 
31676
  do
 
31677
    echo "configure: 31677: $i/$j" >&5
 
31678
    if test -r "$i/$j"; then
 
31679
      echo "taking that" >&5
 
31680
      KDE_XSL_STYLESHEET=$i
 
31681
      break 2
 
31682
    fi
 
31683
  done
 
31684
done
 
31685
 
 
31686
            if test "$KDE_XSL_STYLESHEET" = "NO"; then
 
31687
                KDE_XSL_STYLESHEET=""
 
31688
            else
 
31689
                KDE_XSL_STYLESHEET="$KDE_XSL_STYLESHEET/apps/ksgmltools2/customization/kde-chunk.xsl"
 
31690
            fi
 
31691
        fi
 
31692
 
 
31693
        DCOP_DEPENDENCIES='$(DCOPIDL)'
 
31694
        if test -n "$kde32ornewer"; then
 
31695
            KCFG_DEPENDENCIES='$(KCONFIG_COMPILER)'
 
31696
            DCOP_DEPENDENCIES='$(DCOPIDL) $(DCOPIDLNG)'
 
31697
 
 
31698
 
 
31699
 
 
31700
        fi
 
31701
 
 
31702
 
 
31703
 
 
31704
 
 
31705
 
 
31706
 
 
31707
 
 
31708
 
 
31709
 
 
31710
 
 
31711
 
 
31712
 
 
31713
 
 
31714
 
 
31715
 
 
31716
 
 
31717
 
 
31718
 
 
31719
 
 
31720
 
 
31721
 
 
31722
 
 
31723
 
 
31724
 
 
31725
 
 
31726
 
 
31727
 
 
31728
 
 
31729
 
 
31730
 
 
31731
 
 
31732
kdeinitdir='$(kde_moduledir)'
 
31733
 
 
31734
 
 
31735
 
 
31736
if test "$kde_qtver" = 1; then
 
31737
  kde_minidir="$kde_icondir/mini"
 
31738
else
 
31739
# for KDE 1 - this breaks KDE2 apps using minidir, but
 
31740
# that's the plan ;-/
 
31741
  kde_minidir="/dev/null"
 
31742
fi
 
31743
 
 
31744
 
 
31745
 
 
31746
 
 
31747
 
 
31748
 
 
31749
if test $kde_qtver = 3; then
 
31750
   LIB_KDECORE="-lkdecore"
 
31751
 
 
31752
   LIB_KDEUI="-lkdeui"
 
31753
 
 
31754
   LIB_KIO="-lkio"
 
31755
 
 
31756
   LIB_SMB="-lsmb"
 
31757
 
 
31758
   LIB_KAB="-lkab"
 
31759
 
 
31760
   LIB_KABC="-lkabc"
 
31761
 
 
31762
   LIB_KHTML="-lkhtml"
 
31763
 
 
31764
   LIB_KSPELL="-lkspell"
 
31765
 
 
31766
   LIB_KPARTS="-lkparts"
 
31767
 
 
31768
   LIB_KDEPRINT="-lkdeprint"
 
31769
 
 
31770
   LIB_KUTILS="-lkutils"
 
31771
 
 
31772
   LIB_KDEPIM="-lkdepim"
 
31773
 
 
31774
   LIB_KIMPROXY="-lkimproxy"
 
31775
 
 
31776
   LIB_KNEWSTUFF="-lknewstuff"
 
31777
 
 
31778
# these are for backward compatibility
 
31779
   LIB_KSYCOCA="-lkio"
 
31780
 
 
31781
   LIB_KFILE="-lkio"
 
31782
 
 
31783
elif test $kde_qtver = 2; then
 
31784
   LIB_KDECORE="-lkdecore"
 
31785
 
 
31786
   LIB_KDEUI="-lkdeui"
 
31787
 
 
31788
   LIB_KIO="-lkio"
 
31789
 
 
31790
   LIB_KSYCOCA="-lksycoca"
 
31791
 
 
31792
   LIB_SMB="-lsmb"
 
31793
 
 
31794
   LIB_KFILE="-lkfile"
 
31795
 
 
31796
   LIB_KAB="-lkab"
 
31797
 
 
31798
   LIB_KHTML="-lkhtml"
 
31799
 
 
31800
   LIB_KSPELL="-lkspell"
 
31801
 
 
31802
   LIB_KPARTS="-lkparts"
 
31803
 
 
31804
   LIB_KDEPRINT="-lkdeprint"
 
31805
 
 
31806
else
 
31807
   LIB_KDECORE="-lkdecore -lXext $(LIB_QT)"
 
31808
 
 
31809
   LIB_KDEUI="-lkdeui $(LIB_KDECORE)"
 
31810
 
 
31811
   LIB_KFM="-lkfm $(LIB_KDECORE)"
 
31812
 
 
31813
   LIB_KFILE="-lkfile $(LIB_KFM) $(LIB_KDEUI)"
 
31814
 
 
31815
   LIB_KAB="-lkab $(LIB_KIMGIO) $(LIB_KDECORE)"
 
31816
 
 
31817
fi
 
31818
 
 
31819
 
 
31820
#MIN_CONFIG(3.0.0)
 
31821
 
 
31822
#PKG_CHECK_MODULES(GTK1, gtk+ >= 1.2.0, use_gtk1="yes",use_gtk1="no")
 
31823
 
 
31824
  succeeded=no
 
31825
 
 
31826
  if test -z "$PKG_CONFIG"; then
 
31827
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
31828
set dummy pkg-config; ac_word=$2
 
31829
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
31830
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
31831
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
31832
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31833
else
 
31834
  case $PKG_CONFIG in
 
31835
  [\\/]* | ?:[\\/]*)
 
31836
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
31837
  ;;
 
31838
  *)
 
31839
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
31840
for as_dir in $PATH
 
31841
do
 
31842
  IFS=$as_save_IFS
 
31843
  test -z "$as_dir" && as_dir=.
 
31844
  for ac_exec_ext in '' $ac_executable_extensions; do
 
31845
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
31846
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
31847
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
31848
    break 2
 
31849
  fi
 
31850
done
 
31851
done
 
31852
 
 
31853
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
31854
  ;;
 
31855
esac
 
31856
fi
 
31857
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
31858
 
 
31859
if test -n "$PKG_CONFIG"; then
 
31860
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
31861
echo "${ECHO_T}$PKG_CONFIG" >&6
 
31862
else
 
31863
  echo "$as_me:$LINENO: result: no" >&5
 
31864
echo "${ECHO_T}no" >&6
 
31865
fi
 
31866
 
 
31867
  fi
 
31868
 
 
31869
  if test "$PKG_CONFIG" = "no" ; then
 
31870
     echo "*** The pkg-config script could not be found. Make sure it is"
 
31871
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
31872
     echo "*** to the full path to pkg-config."
 
31873
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
31874
  else
 
31875
     PKG_CONFIG_MIN_VERSION=0.9.0
 
31876
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
31877
        echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.2.0" >&5
 
31878
echo $ECHO_N "checking for gtk+-2.0 >= 2.2.0... $ECHO_C" >&6
 
31879
 
 
31880
        if $PKG_CONFIG --exists "gtk+-2.0 >= 2.2.0" ; then
 
31881
            echo "$as_me:$LINENO: result: yes" >&5
 
31882
echo "${ECHO_T}yes" >&6
 
31883
            succeeded=yes
 
31884
 
 
31885
            echo "$as_me:$LINENO: checking GTK2_CFLAGS" >&5
 
31886
echo $ECHO_N "checking GTK2_CFLAGS... $ECHO_C" >&6
 
31887
            GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.2.0"`
 
31888
            echo "$as_me:$LINENO: result: $GTK2_CFLAGS" >&5
 
31889
echo "${ECHO_T}$GTK2_CFLAGS" >&6
 
31890
 
 
31891
            echo "$as_me:$LINENO: checking GTK2_LIBS" >&5
 
31892
echo $ECHO_N "checking GTK2_LIBS... $ECHO_C" >&6
 
31893
            GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.2.0"`
 
31894
            echo "$as_me:$LINENO: result: $GTK2_LIBS" >&5
 
31895
echo "${ECHO_T}$GTK2_LIBS" >&6
 
31896
        else
 
31897
            GTK2_CFLAGS=""
 
31898
            GTK2_LIBS=""
 
31899
            ## If we have a custom action on failure, don't print errors, but
 
31900
            ## do set a variable so people can do so.
 
31901
            GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.2.0"`
 
31902
 
 
31903
        fi
 
31904
 
 
31905
 
 
31906
 
 
31907
     else
 
31908
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
31909
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
31910
     fi
 
31911
  fi
 
31912
 
 
31913
  if test $succeeded = yes; then
 
31914
     use_gtk2="yes"
 
31915
  else
 
31916
     use_gtk2="no"
 
31917
  fi
 
31918
 
 
31919
 
 
31920
  succeeded=no
 
31921
 
 
31922
  if test -z "$PKG_CONFIG"; then
 
31923
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
31924
set dummy pkg-config; ac_word=$2
 
31925
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
31926
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
31927
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
31928
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31929
else
 
31930
  case $PKG_CONFIG in
 
31931
  [\\/]* | ?:[\\/]*)
 
31932
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
31933
  ;;
 
31934
  *)
 
31935
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
31936
for as_dir in $PATH
 
31937
do
 
31938
  IFS=$as_save_IFS
 
31939
  test -z "$as_dir" && as_dir=.
 
31940
  for ac_exec_ext in '' $ac_executable_extensions; do
 
31941
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
31942
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
31943
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
31944
    break 2
 
31945
  fi
 
31946
done
 
31947
done
 
31948
 
 
31949
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
31950
  ;;
 
31951
esac
 
31952
fi
 
31953
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
31954
 
 
31955
if test -n "$PKG_CONFIG"; then
 
31956
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
31957
echo "${ECHO_T}$PKG_CONFIG" >&6
 
31958
else
 
31959
  echo "$as_me:$LINENO: result: no" >&5
 
31960
echo "${ECHO_T}no" >&6
 
31961
fi
 
31962
 
 
31963
  fi
 
31964
 
 
31965
  if test "$PKG_CONFIG" = "no" ; then
 
31966
     echo "*** The pkg-config script could not be found. Make sure it is"
 
31967
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
31968
     echo "*** to the full path to pkg-config."
 
31969
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
31970
  else
 
31971
     PKG_CONFIG_MIN_VERSION=0.9.0
 
31972
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
31973
        echo "$as_me:$LINENO: checking for libbonoboui-2.0 >= 2.4.0" >&5
 
31974
echo $ECHO_N "checking for libbonoboui-2.0 >= 2.4.0... $ECHO_C" >&6
 
31975
 
 
31976
        if $PKG_CONFIG --exists "libbonoboui-2.0 >= 2.4.0" ; then
 
31977
            echo "$as_me:$LINENO: result: yes" >&5
 
31978
echo "${ECHO_T}yes" >&6
 
31979
            succeeded=yes
 
31980
 
 
31981
            echo "$as_me:$LINENO: checking LIBBONOBOUI_CFLAGS" >&5
 
31982
echo $ECHO_N "checking LIBBONOBOUI_CFLAGS... $ECHO_C" >&6
 
31983
            LIBBONOBOUI_CFLAGS=`$PKG_CONFIG --cflags "libbonoboui-2.0 >= 2.4.0"`
 
31984
            echo "$as_me:$LINENO: result: $LIBBONOBOUI_CFLAGS" >&5
 
31985
echo "${ECHO_T}$LIBBONOBOUI_CFLAGS" >&6
 
31986
 
 
31987
            echo "$as_me:$LINENO: checking LIBBONOBOUI_LIBS" >&5
 
31988
echo $ECHO_N "checking LIBBONOBOUI_LIBS... $ECHO_C" >&6
 
31989
            LIBBONOBOUI_LIBS=`$PKG_CONFIG --libs "libbonoboui-2.0 >= 2.4.0"`
 
31990
            echo "$as_me:$LINENO: result: $LIBBONOBOUI_LIBS" >&5
 
31991
echo "${ECHO_T}$LIBBONOBOUI_LIBS" >&6
 
31992
        else
 
31993
            LIBBONOBOUI_CFLAGS=""
 
31994
            LIBBONOBOUI_LIBS=""
 
31995
            ## If we have a custom action on failure, don't print errors, but
 
31996
            ## do set a variable so people can do so.
 
31997
            LIBBONOBOUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libbonoboui-2.0 >= 2.4.0"`
 
31998
 
 
31999
        fi
 
32000
 
 
32001
 
 
32002
 
 
32003
     else
 
32004
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
32005
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
32006
     fi
 
32007
  fi
 
32008
 
 
32009
  if test $succeeded = yes; then
 
32010
     use_libbonoboui="yes"
 
32011
  else
 
32012
     use_libbonoboui="no"
 
32013
  fi
 
32014
 
 
32015
 
 
32016
GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
 
32017
GTK_LIBPREFIX=`$PKG_CONFIG --variable=libdir gtk+-2.0`
 
32018
GTK_PREFIX=`$PKG_CONFIG --variable=prefix gtk+-2.0`
 
32019
#GTK1_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+`
 
32020
#GTK1_LIBPREFIX=`$PKG_CONFIG --variable=libdir gtk+`
 
32021
#GTK1_PREFIX=`$PKG_CONFIG --variable=prefix gtk+`
 
32022
LIBBONOBOUI_LIBPREFIX=`$PKG_CONFIG --variable=libdir libbonoboui-2.0`
 
32023
LIBBONOBOUI_PREFIX=`$PKG_CONFIG --variable=prefix libbonoboui-2.0`
 
32024
KDE_PREFIX=`$KDECONFIG --prefix`
 
32025
 
 
32026
 
 
32027
 
 
32028
 
 
32029
 
 
32030
#AC_SUBST(GTK1_VERSION)
 
32031
#AC_SUBST(GTK1_LIBPREFIX)
 
32032
#AC_SUBST(GTK1_PREFIX)
 
32033
 
 
32034
#AC_SUBST(GTK1_CFLAGS)
 
32035
 
 
32036
 
 
32037
 
 
32038
 
 
32039
 
 
32040
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
32041
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
32042
if test "${ac_cv_c_bigendian+set}" = set; then
 
32043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32044
else
 
32045
  # See if sys/param.h defines the BYTE_ORDER macro.
 
32046
cat >conftest.$ac_ext <<_ACEOF
 
32047
/* confdefs.h.  */
 
32048
_ACEOF
 
32049
cat confdefs.h >>conftest.$ac_ext
 
32050
cat >>conftest.$ac_ext <<_ACEOF
 
32051
/* end confdefs.h.  */
 
32052
#include <sys/types.h>
 
32053
#include <sys/param.h>
 
32054
 
 
32055
int
 
32056
main ()
 
32057
{
 
32058
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
32059
 bogus endian macros
 
32060
#endif
 
32061
 
 
32062
  ;
 
32063
  return 0;
 
32064
}
 
32065
_ACEOF
 
32066
rm -f conftest.$ac_objext
 
32067
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32068
  (eval $ac_compile) 2>conftest.er1
 
32069
  ac_status=$?
 
32070
  grep -v '^ *+' conftest.er1 >conftest.err
 
32071
  rm -f conftest.er1
 
32072
  cat conftest.err >&5
 
32073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32074
  (exit $ac_status); } &&
 
32075
         { ac_try='test -z "$ac_c_werror_flag"
 
32076
                         || test ! -s conftest.err'
 
32077
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32078
  (eval $ac_try) 2>&5
 
32079
  ac_status=$?
 
32080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32081
  (exit $ac_status); }; } &&
 
32082
         { ac_try='test -s conftest.$ac_objext'
 
32083
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32084
  (eval $ac_try) 2>&5
 
32085
  ac_status=$?
 
32086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32087
  (exit $ac_status); }; }; then
 
32088
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
32089
cat >conftest.$ac_ext <<_ACEOF
 
32090
/* confdefs.h.  */
 
32091
_ACEOF
 
32092
cat confdefs.h >>conftest.$ac_ext
 
32093
cat >>conftest.$ac_ext <<_ACEOF
 
32094
/* end confdefs.h.  */
 
32095
#include <sys/types.h>
 
32096
#include <sys/param.h>
 
32097
 
 
32098
int
 
32099
main ()
 
32100
{
 
32101
#if BYTE_ORDER != BIG_ENDIAN
 
32102
 not big endian
 
32103
#endif
 
32104
 
 
32105
  ;
 
32106
  return 0;
 
32107
}
 
32108
_ACEOF
 
32109
rm -f conftest.$ac_objext
 
32110
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32111
  (eval $ac_compile) 2>conftest.er1
 
32112
  ac_status=$?
 
32113
  grep -v '^ *+' conftest.er1 >conftest.err
 
32114
  rm -f conftest.er1
 
32115
  cat conftest.err >&5
 
32116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32117
  (exit $ac_status); } &&
 
32118
         { ac_try='test -z "$ac_c_werror_flag"
 
32119
                         || test ! -s conftest.err'
 
32120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32121
  (eval $ac_try) 2>&5
 
32122
  ac_status=$?
 
32123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32124
  (exit $ac_status); }; } &&
 
32125
         { ac_try='test -s conftest.$ac_objext'
 
32126
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32127
  (eval $ac_try) 2>&5
 
32128
  ac_status=$?
 
32129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32130
  (exit $ac_status); }; }; then
 
32131
  ac_cv_c_bigendian=yes
 
32132
else
 
32133
  echo "$as_me: failed program was:" >&5
 
32134
sed 's/^/| /' conftest.$ac_ext >&5
 
32135
 
 
32136
ac_cv_c_bigendian=no
 
32137
fi
 
32138
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32139
else
 
32140
  echo "$as_me: failed program was:" >&5
 
32141
sed 's/^/| /' conftest.$ac_ext >&5
 
32142
 
 
32143
# It does not; compile a test program.
 
32144
if test "$cross_compiling" = yes; then
 
32145
  # try to guess the endianness by grepping values into an object file
 
32146
  ac_cv_c_bigendian=unknown
 
32147
  cat >conftest.$ac_ext <<_ACEOF
 
32148
/* confdefs.h.  */
 
32149
_ACEOF
 
32150
cat confdefs.h >>conftest.$ac_ext
 
32151
cat >>conftest.$ac_ext <<_ACEOF
 
32152
/* end confdefs.h.  */
 
32153
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
32154
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
32155
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
32156
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
32157
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
32158
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
32159
int
 
32160
main ()
 
32161
{
 
32162
 _ascii (); _ebcdic ();
 
32163
  ;
 
32164
  return 0;
 
32165
}
 
32166
_ACEOF
 
32167
rm -f conftest.$ac_objext
 
32168
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32169
  (eval $ac_compile) 2>conftest.er1
 
32170
  ac_status=$?
 
32171
  grep -v '^ *+' conftest.er1 >conftest.err
 
32172
  rm -f conftest.er1
 
32173
  cat conftest.err >&5
 
32174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32175
  (exit $ac_status); } &&
 
32176
         { ac_try='test -z "$ac_c_werror_flag"
 
32177
                         || test ! -s conftest.err'
 
32178
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32179
  (eval $ac_try) 2>&5
 
32180
  ac_status=$?
 
32181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32182
  (exit $ac_status); }; } &&
 
32183
         { ac_try='test -s conftest.$ac_objext'
 
32184
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32185
  (eval $ac_try) 2>&5
 
32186
  ac_status=$?
 
32187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32188
  (exit $ac_status); }; }; then
 
32189
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
32190
  ac_cv_c_bigendian=yes
 
32191
fi
 
32192
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
32193
  if test "$ac_cv_c_bigendian" = unknown; then
 
32194
    ac_cv_c_bigendian=no
 
32195
  else
 
32196
    # finding both strings is unlikely to happen, but who knows?
 
32197
    ac_cv_c_bigendian=unknown
 
32198
  fi
 
32199
fi
 
32200
else
 
32201
  echo "$as_me: failed program was:" >&5
 
32202
sed 's/^/| /' conftest.$ac_ext >&5
 
32203
 
 
32204
fi
 
32205
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32206
else
 
32207
  cat >conftest.$ac_ext <<_ACEOF
 
32208
/* confdefs.h.  */
 
32209
_ACEOF
 
32210
cat confdefs.h >>conftest.$ac_ext
 
32211
cat >>conftest.$ac_ext <<_ACEOF
 
32212
/* end confdefs.h.  */
 
32213
int
 
32214
main ()
 
32215
{
 
32216
  /* Are we little or big endian?  From Harbison&Steele.  */
 
32217
  union
 
32218
  {
 
32219
    long l;
 
32220
    char c[sizeof (long)];
 
32221
  } u;
 
32222
  u.l = 1;
 
32223
  exit (u.c[sizeof (long) - 1] == 1);
 
32224
}
 
32225
_ACEOF
 
32226
rm -f conftest$ac_exeext
 
32227
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
32228
  (eval $ac_link) 2>&5
 
32229
  ac_status=$?
 
32230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32231
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
32232
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32233
  (eval $ac_try) 2>&5
 
32234
  ac_status=$?
 
32235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32236
  (exit $ac_status); }; }; then
 
32237
  ac_cv_c_bigendian=no
 
32238
else
 
32239
  echo "$as_me: program exited with status $ac_status" >&5
 
32240
echo "$as_me: failed program was:" >&5
 
32241
sed 's/^/| /' conftest.$ac_ext >&5
 
32242
 
 
32243
( exit $ac_status )
 
32244
ac_cv_c_bigendian=yes
 
32245
fi
 
32246
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32247
fi
 
32248
fi
 
32249
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32250
fi
 
32251
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
32252
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
32253
case $ac_cv_c_bigendian in
 
32254
  yes)
 
32255
 
 
32256
cat >>confdefs.h <<\_ACEOF
 
32257
#define WORDS_BIGENDIAN 1
 
32258
_ACEOF
 
32259
 ;;
 
32260
  no)
 
32261
     ;;
 
32262
  *)
 
32263
    { { echo "$as_me:$LINENO: error: unknown endianness
 
32264
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
32265
echo "$as_me: error: unknown endianness
 
32266
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
32267
   { (exit 1); exit 1; }; } ;;
 
32268
esac
 
32269
 
 
32270
 
 
32271
echo "$as_me:$LINENO: checking for MAXPATHLEN" >&5
 
32272
echo $ECHO_N "checking for MAXPATHLEN... $ECHO_C" >&6
 
32273
if test "${ac_cv_maxpathlen+set}" = set; then
 
32274
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32275
else
 
32276
 
 
32277
cat > conftest.$ac_ext <<EOF
 
32278
#ifdef STDC_HEADERS
 
32279
# include <stdlib.h>
 
32280
#endif
 
32281
#include <stdio.h>
 
32282
#include <sys/param.h>
 
32283
#ifndef MAXPATHLEN
 
32284
#define MAXPATHLEN 1024
 
32285
#endif
 
32286
 
 
32287
KDE_HELLO MAXPATHLEN
 
32288
 
 
32289
EOF
 
32290
 
 
32291
ac_try="$ac_cpp conftest.$ac_ext 2>/dev/null | grep '^KDE_HELLO' >conftest.out"
 
32292
 
 
32293
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32294
  (eval $ac_try) 2>&5
 
32295
  ac_status=$?
 
32296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32297
  (exit $ac_status); } && test -s conftest.out; then
 
32298
    ac_cv_maxpathlen=`sed 's#KDE_HELLO ##' conftest.out`
 
32299
else
 
32300
    ac_cv_maxpathlen=1024
 
32301
fi
 
32302
 
 
32303
rm conftest.*
 
32304
 
 
32305
 
 
32306
fi
 
32307
 
 
32308
echo "$as_me:$LINENO: result: $ac_cv_maxpathlen" >&5
 
32309
echo "${ECHO_T}$ac_cv_maxpathlen" >&6
 
32310
 
 
32311
cat >>confdefs.h <<_ACEOF
 
32312
#define KDEMAXPATHLEN $ac_cv_maxpathlen
 
32313
_ACEOF
 
32314
 
 
32315
 
 
32316
 
 
32317
 
 
32318
 
 
32319
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
 
32320
TOPSUBDIRS=""
 
32321
 
 
32322
if test ! -s $srcdir/subdirs; then
 
32323
    files=`cd $srcdir && ls -1`
 
32324
  dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
 
32325
  for i in $dirs; do
 
32326
    echo $i >> $srcdir/subdirs
 
32327
  done
 
32328
fi
 
32329
 
 
32330
ac_topsubdirs=
 
32331
if test -s $srcdir/inst-apps; then
 
32332
  ac_topsubdirs="`cat $srcdir/inst-apps`"
 
32333
elif test -s $srcdir/subdirs; then
 
32334
  ac_topsubdirs="`cat $srcdir/subdirs`"
 
32335
fi
 
32336
 
 
32337
for i in $ac_topsubdirs; do
 
32338
  echo "$as_me:$LINENO: checking if $i should be compiled" >&5
 
32339
echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6
 
32340
  if test -d $srcdir/$i; then
 
32341
    install_it="yes"
 
32342
    for j in $DO_NOT_COMPILE; do
 
32343
      if test $i = $j; then
 
32344
        install_it="no"
 
32345
      fi
 
32346
    done
 
32347
  else
 
32348
    install_it="no"
 
32349
  fi
 
32350
  echo "$as_me:$LINENO: result: $install_it" >&5
 
32351
echo "${ECHO_T}$install_it" >&6
 
32352
  vari=`echo $i | sed -e 's,[-+.@],_,g'`
 
32353
  if test $install_it = "yes"; then
 
32354
    TOPSUBDIRS="$TOPSUBDIRS $i"
 
32355
    eval "$vari""_SUBDIR_included=yes"
 
32356
  else
 
32357
    eval "$vari""_SUBDIR_included=no"
 
32358
  fi
 
32359
done
 
32360
 
 
32361
 
 
32362
 
 
32363
          ac_config_files="$ac_config_files Makefile"
 
32364
 
 
32365
          ac_config_files="$ac_config_files autopackage/Makefile"
 
32366
 
 
32367
          ac_config_files="$ac_config_files autopackage/default.apspec"
 
32368
 
 
32369
#AC_CONFIG_FILES([ gtk1/Makefile ])
 
32370
          ac_config_files="$ac_config_files src/Makefile"
 
32371
 
 
32372
          ac_config_files="$ac_config_files kcm_gtk/Makefile"
 
32373
 
 
32374
cat >confcache <<\_ACEOF
 
32375
# This file is a shell script that caches the results of configure
 
32376
# tests run on this system so they can be shared between configure
 
32377
# scripts and configure runs, see configure's option --config-cache.
 
32378
# It is not useful on other systems.  If it contains results you don't
 
32379
# want to keep, you may remove or edit it.
 
32380
#
 
32381
# config.status only pays attention to the cache file if you give it
 
32382
# the --recheck option to rerun configure.
 
32383
#
 
32384
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
32385
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
32386
# following values.
 
32387
 
 
32388
_ACEOF
 
32389
 
 
32390
# The following way of writing the cache mishandles newlines in values,
 
32391
# but we know of no workaround that is simple, portable, and efficient.
 
32392
# So, don't put newlines in cache variables' values.
 
32393
# Ultrix sh set writes to stderr and can't be redirected directly,
 
32394
# and sets the high bit in the cache file unless we assign to the vars.
 
32395
{
 
32396
  (set) 2>&1 |
 
32397
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
32398
    *ac_space=\ *)
 
32399
      # `set' does not quote correctly, so add quotes (double-quote
 
32400
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
32401
      sed -n \
 
32402
        "s/'/'\\\\''/g;
 
32403
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
32404
      ;;
 
32405
    *)
 
32406
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
32407
      sed -n \
 
32408
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
32409
      ;;
 
32410
    esac;
 
32411
} |
 
32412
  sed '
 
32413
     t clear
 
32414
     : clear
 
32415
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
32416
     t end
 
32417
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
32418
     : end' >>confcache
 
32419
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
32420
  if test -w $cache_file; then
 
32421
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
32422
    cat confcache >$cache_file
 
32423
  else
 
32424
    echo "not updating unwritable cache $cache_file"
 
32425
  fi
 
32426
fi
 
32427
rm -f confcache
 
32428
 
 
32429
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
32430
# Let make expand exec_prefix.
 
32431
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
32432
 
 
32433
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
32434
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
32435
# trailing colons and then remove the whole line if VPATH becomes empty
 
32436
# (actually we leave an empty line to preserve line numbers).
 
32437
if test "x$srcdir" = x.; then
 
32438
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
32439
s/:*\$(srcdir):*/:/;
 
32440
s/:*\${srcdir}:*/:/;
 
32441
s/:*@srcdir@:*/:/;
 
32442
s/^\([^=]*=[     ]*\):*/\1/;
 
32443
s/:*$//;
 
32444
s/^[^=]*=[       ]*$//;
 
32445
}'
 
32446
fi
 
32447
 
 
32448
DEFS=-DHAVE_CONFIG_H
 
32449
 
 
32450
ac_libobjs=
 
32451
ac_ltlibobjs=
 
32452
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
32453
  # 1. Remove the extension, and $U if already installed.
 
32454
  ac_i=`echo "$ac_i" |
 
32455
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
32456
  # 2. Add them.
 
32457
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
32458
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
32459
done
 
32460
LIBOBJS=$ac_libobjs
 
32461
 
 
32462
LTLIBOBJS=$ac_ltlibobjs
 
32463
 
 
32464
 
 
32465
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
32466
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
32467
Usually this means the macro was only invoked conditionally." >&5
 
32468
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
32469
Usually this means the macro was only invoked conditionally." >&2;}
 
32470
   { (exit 1); exit 1; }; }
 
32471
fi
 
32472
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
32473
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
32474
Usually this means the macro was only invoked conditionally." >&5
 
32475
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
32476
Usually this means the macro was only invoked conditionally." >&2;}
 
32477
   { (exit 1); exit 1; }; }
 
32478
fi
 
32479
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
32480
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
32481
Usually this means the macro was only invoked conditionally." >&5
 
32482
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
32483
Usually this means the macro was only invoked conditionally." >&2;}
 
32484
   { (exit 1); exit 1; }; }
 
32485
fi
 
32486
if test -z "${unsermake_enable_pch_TRUE}" && test -z "${unsermake_enable_pch_FALSE}"; then
 
32487
  { { echo "$as_me:$LINENO: error: conditional \"unsermake_enable_pch\" was never defined.
 
32488
Usually this means the macro was only invoked conditionally." >&5
 
32489
echo "$as_me: error: conditional \"unsermake_enable_pch\" was never defined.
 
32490
Usually this means the macro was only invoked conditionally." >&2;}
 
32491
   { (exit 1); exit 1; }; }
 
32492
fi
 
32493
if test -z "${include_ARTS_TRUE}" && test -z "${include_ARTS_FALSE}"; then
 
32494
  { { echo "$as_me:$LINENO: error: conditional \"include_ARTS\" was never defined.
 
32495
Usually this means the macro was only invoked conditionally." >&5
 
32496
echo "$as_me: error: conditional \"include_ARTS\" was never defined.
 
32497
Usually this means the macro was only invoked conditionally." >&2;}
 
32498
   { (exit 1); exit 1; }; }
 
32499
fi
 
32500
 
 
32501
: ${CONFIG_STATUS=./config.status}
 
32502
ac_clean_files_save=$ac_clean_files
 
32503
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
32504
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
32505
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
32506
cat >$CONFIG_STATUS <<_ACEOF
 
32507
#! $SHELL
 
32508
# Generated by $as_me.
 
32509
# Run this file to recreate the current configuration.
 
32510
# Compiler output produced by configure, useful for debugging
 
32511
# configure, is in config.log if it exists.
 
32512
 
 
32513
debug=false
 
32514
ac_cs_recheck=false
 
32515
ac_cs_silent=false
 
32516
SHELL=\${CONFIG_SHELL-$SHELL}
 
32517
_ACEOF
 
32518
 
 
32519
cat >>$CONFIG_STATUS <<\_ACEOF
 
32520
## --------------------- ##
 
32521
## M4sh Initialization.  ##
 
32522
## --------------------- ##
 
32523
 
 
32524
# Be Bourne compatible
 
32525
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
32526
  emulate sh
 
32527
  NULLCMD=:
 
32528
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
32529
  # is contrary to our usage.  Disable this feature.
 
32530
  alias -g '${1+"$@"}'='"$@"'
 
32531
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
32532
  set -o posix
 
32533
fi
 
32534
DUALCASE=1; export DUALCASE # for MKS sh
 
32535
 
 
32536
# Support unset when possible.
 
32537
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
32538
  as_unset=unset
 
32539
else
 
32540
  as_unset=false
 
32541
fi
 
32542
 
 
32543
 
 
32544
# Work around bugs in pre-3.0 UWIN ksh.
 
32545
$as_unset ENV MAIL MAILPATH
 
32546
PS1='$ '
 
32547
PS2='> '
 
32548
PS4='+ '
 
32549
 
 
32550
# NLS nuisances.
 
32551
for as_var in \
 
32552
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
32553
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
32554
  LC_TELEPHONE LC_TIME
 
32555
do
 
32556
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
32557
    eval $as_var=C; export $as_var
 
32558
  else
 
32559
    $as_unset $as_var
 
32560
  fi
 
32561
done
 
32562
 
 
32563
# Required to use basename.
 
32564
if expr a : '\(a\)' >/dev/null 2>&1; then
 
32565
  as_expr=expr
 
32566
else
 
32567
  as_expr=false
 
32568
fi
 
32569
 
 
32570
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
32571
  as_basename=basename
 
32572
else
 
32573
  as_basename=false
 
32574
fi
 
32575
 
 
32576
 
 
32577
# Name of the executable.
 
32578
as_me=`$as_basename "$0" ||
 
32579
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
32580
         X"$0" : 'X\(//\)$' \| \
 
32581
         X"$0" : 'X\(/\)$' \| \
 
32582
         .     : '\(.\)' 2>/dev/null ||
 
32583
echo X/"$0" |
 
32584
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
32585
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
32586
          /^X\/\(\/\).*/{ s//\1/; q; }
 
32587
          s/.*/./; q'`
 
32588
 
 
32589
 
 
32590
# PATH needs CR, and LINENO needs CR and PATH.
 
32591
# Avoid depending upon Character Ranges.
 
32592
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
32593
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
32594
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
32595
as_cr_digits='0123456789'
 
32596
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
32597
 
 
32598
# The user is always right.
 
32599
if test "${PATH_SEPARATOR+set}" != set; then
 
32600
  echo "#! /bin/sh" >conf$$.sh
 
32601
  echo  "exit 0"   >>conf$$.sh
 
32602
  chmod +x conf$$.sh
 
32603
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
32604
    PATH_SEPARATOR=';'
 
32605
  else
 
32606
    PATH_SEPARATOR=:
 
32607
  fi
 
32608
  rm -f conf$$.sh
 
32609
fi
 
32610
 
 
32611
 
 
32612
  as_lineno_1=$LINENO
 
32613
  as_lineno_2=$LINENO
 
32614
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
32615
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
32616
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
32617
  # Find who we are.  Look in the path if we contain no path at all
 
32618
  # relative or not.
 
32619
  case $0 in
 
32620
    *[\\/]* ) as_myself=$0 ;;
 
32621
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
32622
for as_dir in $PATH
 
32623
do
 
32624
  IFS=$as_save_IFS
 
32625
  test -z "$as_dir" && as_dir=.
 
32626
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
32627
done
 
32628
 
 
32629
       ;;
 
32630
  esac
 
32631
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
32632
  # in which case we are not to be found in the path.
 
32633
  if test "x$as_myself" = x; then
 
32634
    as_myself=$0
 
32635
  fi
 
32636
  if test ! -f "$as_myself"; then
 
32637
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
32638
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
32639
   { (exit 1); exit 1; }; }
 
32640
  fi
 
32641
  case $CONFIG_SHELL in
 
32642
  '')
 
32643
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
32644
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
32645
do
 
32646
  IFS=$as_save_IFS
 
32647
  test -z "$as_dir" && as_dir=.
 
32648
  for as_base in sh bash ksh sh5; do
 
32649
         case $as_dir in
 
32650
         /*)
 
32651
           if ("$as_dir/$as_base" -c '
 
32652
  as_lineno_1=$LINENO
 
32653
  as_lineno_2=$LINENO
 
32654
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
32655
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
32656
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
32657
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
32658
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
32659
             CONFIG_SHELL=$as_dir/$as_base
 
32660
             export CONFIG_SHELL
 
32661
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
32662
           fi;;
 
32663
         esac
 
32664
       done
 
32665
done
 
32666
;;
 
32667
  esac
 
32668
 
 
32669
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
32670
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
32671
  # line-number line before each line; the second 'sed' does the real
 
32672
  # work.  The second script uses 'N' to pair each line-number line
 
32673
  # with the numbered line, and appends trailing '-' during
 
32674
  # substitution so that $LINENO is not a special case at line end.
 
32675
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
32676
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
32677
  sed '=' <$as_myself |
 
32678
    sed '
 
32679
      N
 
32680
      s,$,-,
 
32681
      : loop
 
32682
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
32683
      t loop
 
32684
      s,-$,,
 
32685
      s,^['$as_cr_digits']*\n,,
 
32686
    ' >$as_me.lineno &&
 
32687
  chmod +x $as_me.lineno ||
 
32688
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
32689
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
32690
   { (exit 1); exit 1; }; }
 
32691
 
 
32692
  # Don't try to exec as it changes $[0], causing all sort of problems
 
32693
  # (the dirname of $[0] is not the place where we might find the
 
32694
  # original and so on.  Autoconf is especially sensible to this).
 
32695
  . ./$as_me.lineno
 
32696
  # Exit status is that of the last command.
 
32697
  exit
 
32698
}
 
32699
 
 
32700
 
 
32701
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
32702
  *c*,-n*) ECHO_N= ECHO_C='
 
32703
' ECHO_T='      ' ;;
 
32704
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
32705
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
32706
esac
 
32707
 
 
32708
if expr a : '\(a\)' >/dev/null 2>&1; then
 
32709
  as_expr=expr
 
32710
else
 
32711
  as_expr=false
 
32712
fi
 
32713
 
 
32714
rm -f conf$$ conf$$.exe conf$$.file
 
32715
echo >conf$$.file
 
32716
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
32717
  # We could just check for DJGPP; but this test a) works b) is more generic
 
32718
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
32719
  if test -f conf$$.exe; then
 
32720
    # Don't use ln at all; we don't have any links
 
32721
    as_ln_s='cp -p'
 
32722
  else
 
32723
    as_ln_s='ln -s'
 
32724
  fi
 
32725
elif ln conf$$.file conf$$ 2>/dev/null; then
 
32726
  as_ln_s=ln
 
32727
else
 
32728
  as_ln_s='cp -p'
 
32729
fi
 
32730
rm -f conf$$ conf$$.exe conf$$.file
 
32731
 
 
32732
if mkdir -p . 2>/dev/null; then
 
32733
  as_mkdir_p=:
 
32734
else
 
32735
  test -d ./-p && rmdir ./-p
 
32736
  as_mkdir_p=false
 
32737
fi
 
32738
 
 
32739
as_executable_p="test -f"
 
32740
 
 
32741
# Sed expression to map a string onto a valid CPP name.
 
32742
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
32743
 
 
32744
# Sed expression to map a string onto a valid variable name.
 
32745
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
32746
 
 
32747
 
 
32748
# IFS
 
32749
# We need space, tab and new line, in precisely that order.
 
32750
as_nl='
 
32751
'
 
32752
IFS="   $as_nl"
 
32753
 
 
32754
# CDPATH.
 
32755
$as_unset CDPATH
 
32756
 
 
32757
exec 6>&1
 
32758
 
 
32759
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
32760
# report actual input values of CONFIG_FILES etc. instead of their
 
32761
# values after options handling.  Logging --version etc. is OK.
 
32762
exec 5>>config.log
 
32763
{
 
32764
  echo
 
32765
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
32766
## Running $as_me. ##
 
32767
_ASBOX
 
32768
} >&5
 
32769
cat >&5 <<_CSEOF
 
32770
 
 
32771
This file was extended by $as_me, which was
 
32772
generated by GNU Autoconf 2.59.  Invocation command line was
 
32773
 
 
32774
  CONFIG_FILES    = $CONFIG_FILES
 
32775
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
32776
  CONFIG_LINKS    = $CONFIG_LINKS
 
32777
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
32778
  $ $0 $@
 
32779
 
 
32780
_CSEOF
 
32781
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
32782
echo >&5
 
32783
_ACEOF
 
32784
 
 
32785
# Files that config.status was made for.
 
32786
if test -n "$ac_config_files"; then
 
32787
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
32788
fi
 
32789
 
 
32790
if test -n "$ac_config_headers"; then
 
32791
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
32792
fi
 
32793
 
 
32794
if test -n "$ac_config_links"; then
 
32795
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
32796
fi
 
32797
 
 
32798
if test -n "$ac_config_commands"; then
 
32799
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
32800
fi
 
32801
 
 
32802
cat >>$CONFIG_STATUS <<\_ACEOF
 
32803
 
 
32804
ac_cs_usage="\
 
32805
\`$as_me' instantiates files from templates according to the
 
32806
current configuration.
 
32807
 
 
32808
Usage: $0 [OPTIONS] [FILE]...
 
32809
 
 
32810
  -h, --help       print this help, then exit
 
32811
  -V, --version    print version number, then exit
 
32812
  -q, --quiet      do not print progress messages
 
32813
  -d, --debug      don't remove temporary files
 
32814
      --recheck    update $as_me by reconfiguring in the same conditions
 
32815
  --file=FILE[:TEMPLATE]
 
32816
                   instantiate the configuration file FILE
 
32817
  --header=FILE[:TEMPLATE]
 
32818
                   instantiate the configuration header FILE
 
32819
 
 
32820
Configuration files:
 
32821
$config_files
 
32822
 
 
32823
Configuration headers:
 
32824
$config_headers
 
32825
 
 
32826
Configuration commands:
 
32827
$config_commands
 
32828
 
 
32829
Report bugs to <bug-autoconf@gnu.org>."
 
32830
_ACEOF
 
32831
 
 
32832
cat >>$CONFIG_STATUS <<_ACEOF
 
32833
ac_cs_version="\\
 
32834
config.status
 
32835
configured by $0, generated by GNU Autoconf 2.59,
 
32836
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
32837
 
 
32838
Copyright (C) 2003 Free Software Foundation, Inc.
 
32839
This config.status script is free software; the Free Software Foundation
 
32840
gives unlimited permission to copy, distribute and modify it."
 
32841
srcdir=$srcdir
 
32842
INSTALL="$INSTALL"
 
32843
_ACEOF
 
32844
 
 
32845
cat >>$CONFIG_STATUS <<\_ACEOF
 
32846
# If no file are specified by the user, then we need to provide default
 
32847
# value.  By we need to know if files were specified by the user.
 
32848
ac_need_defaults=:
 
32849
while test $# != 0
 
32850
do
 
32851
  case $1 in
 
32852
  --*=*)
 
32853
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
32854
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
32855
    ac_shift=:
 
32856
    ;;
 
32857
  -*)
 
32858
    ac_option=$1
 
32859
    ac_optarg=$2
 
32860
    ac_shift=shift
 
32861
    ;;
 
32862
  *) # This is not an option, so the user has probably given explicit
 
32863
     # arguments.
 
32864
     ac_option=$1
 
32865
     ac_need_defaults=false;;
 
32866
  esac
 
32867
 
 
32868
  case $ac_option in
 
32869
  # Handling of the options.
 
32870
_ACEOF
 
32871
cat >>$CONFIG_STATUS <<\_ACEOF
 
32872
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
32873
    ac_cs_recheck=: ;;
 
32874
  --version | --vers* | -V )
 
32875
    echo "$ac_cs_version"; exit 0 ;;
 
32876
  --he | --h)
 
32877
    # Conflict between --help and --header
 
32878
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
32879
Try \`$0 --help' for more information." >&5
 
32880
echo "$as_me: error: ambiguous option: $1
 
32881
Try \`$0 --help' for more information." >&2;}
 
32882
   { (exit 1); exit 1; }; };;
 
32883
  --help | --hel | -h )
 
32884
    echo "$ac_cs_usage"; exit 0 ;;
 
32885
  --debug | --d* | -d )
 
32886
    debug=: ;;
 
32887
  --file | --fil | --fi | --f )
 
32888
    $ac_shift
 
32889
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
32890
    ac_need_defaults=false;;
 
32891
  --header | --heade | --head | --hea )
 
32892
    $ac_shift
 
32893
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
32894
    ac_need_defaults=false;;
 
32895
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
32896
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
32897
    ac_cs_silent=: ;;
 
32898
 
 
32899
  # This is an error.
 
32900
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
32901
Try \`$0 --help' for more information." >&5
 
32902
echo "$as_me: error: unrecognized option: $1
 
32903
Try \`$0 --help' for more information." >&2;}
 
32904
   { (exit 1); exit 1; }; } ;;
 
32905
 
 
32906
  *) ac_config_targets="$ac_config_targets $1" ;;
 
32907
 
 
32908
  esac
 
32909
  shift
 
32910
done
 
32911
 
 
32912
ac_configure_extra_args=
 
32913
 
 
32914
if $ac_cs_silent; then
 
32915
  exec 6>/dev/null
 
32916
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
32917
fi
 
32918
 
 
32919
_ACEOF
 
32920
cat >>$CONFIG_STATUS <<_ACEOF
 
32921
if \$ac_cs_recheck; then
 
32922
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
32923
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
32924
fi
 
32925
 
 
32926
_ACEOF
 
32927
 
 
32928
cat >>$CONFIG_STATUS <<_ACEOF
 
32929
#
 
32930
# INIT-COMMANDS section.
 
32931
#
 
32932
 
 
32933
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
32934
 
 
32935
_ACEOF
 
32936
 
 
32937
 
 
32938
 
 
32939
cat >>$CONFIG_STATUS <<\_ACEOF
 
32940
for ac_config_target in $ac_config_targets
 
32941
do
 
32942
  case "$ac_config_target" in
 
32943
  # Handling of arguments.
 
32944
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
32945
  "autopackage/Makefile" ) CONFIG_FILES="$CONFIG_FILES autopackage/Makefile" ;;
 
32946
  "autopackage/default.apspec" ) CONFIG_FILES="$CONFIG_FILES autopackage/default.apspec" ;;
 
32947
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
32948
  "kcm_gtk/Makefile" ) CONFIG_FILES="$CONFIG_FILES kcm_gtk/Makefile" ;;
 
32949
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
32950
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
32951
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
32952
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
32953
   { (exit 1); exit 1; }; };;
 
32954
  esac
 
32955
done
 
32956
 
 
32957
# If the user did not use the arguments to specify the items to instantiate,
 
32958
# then the envvar interface is used.  Set only those that are not.
 
32959
# We use the long form for the default assignment because of an extremely
 
32960
# bizarre bug on SunOS 4.1.3.
 
32961
if $ac_need_defaults; then
 
32962
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
32963
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
32964
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
32965
fi
 
32966
 
 
32967
# Have a temporary directory for convenience.  Make it in the build tree
 
32968
# simply because there is no reason to put it here, and in addition,
 
32969
# creating and moving files from /tmp can sometimes cause problems.
 
32970
# Create a temporary directory, and hook for its removal unless debugging.
 
32971
$debug ||
 
32972
{
 
32973
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
32974
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
32975
}
 
32976
 
 
32977
# Create a (secure) tmp directory for tmp files.
 
32978
 
 
32979
{
 
32980
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
32981
  test -n "$tmp" && test -d "$tmp"
 
32982
}  ||
 
32983
{
 
32984
  tmp=./confstat$$-$RANDOM
 
32985
  (umask 077 && mkdir $tmp)
 
32986
} ||
 
32987
{
 
32988
   echo "$me: cannot create a temporary directory in ." >&2
 
32989
   { (exit 1); exit 1; }
 
32990
}
 
32991
 
 
32992
_ACEOF
 
32993
 
 
32994
cat >>$CONFIG_STATUS <<_ACEOF
 
32995
 
 
32996
#
 
32997
# CONFIG_FILES section.
 
32998
#
 
32999
 
 
33000
# No need to generate the scripts if there are no CONFIG_FILES.
 
33001
# This happens for instance when ./config.status config.h
 
33002
if test -n "\$CONFIG_FILES"; then
 
33003
  # Protect against being on the right side of a sed subst in config.status.
 
33004
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
33005
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
33006
s,@SHELL@,$SHELL,;t t
 
33007
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
33008
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
33009
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
33010
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
33011
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
33012
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
33013
s,@exec_prefix@,$exec_prefix,;t t
 
33014
s,@prefix@,$prefix,;t t
 
33015
s,@program_transform_name@,$program_transform_name,;t t
 
33016
s,@bindir@,$bindir,;t t
 
33017
s,@sbindir@,$sbindir,;t t
 
33018
s,@libexecdir@,$libexecdir,;t t
 
33019
s,@datadir@,$datadir,;t t
 
33020
s,@sysconfdir@,$sysconfdir,;t t
 
33021
s,@sharedstatedir@,$sharedstatedir,;t t
 
33022
s,@localstatedir@,$localstatedir,;t t
 
33023
s,@libdir@,$libdir,;t t
 
33024
s,@includedir@,$includedir,;t t
 
33025
s,@oldincludedir@,$oldincludedir,;t t
 
33026
s,@infodir@,$infodir,;t t
 
33027
s,@mandir@,$mandir,;t t
 
33028
s,@build_alias@,$build_alias,;t t
 
33029
s,@host_alias@,$host_alias,;t t
 
33030
s,@target_alias@,$target_alias,;t t
 
33031
s,@DEFS@,$DEFS,;t t
 
33032
s,@ECHO_C@,$ECHO_C,;t t
 
33033
s,@ECHO_N@,$ECHO_N,;t t
 
33034
s,@ECHO_T@,$ECHO_T,;t t
 
33035
s,@LIBS@,$LIBS,;t t
 
33036
s,@build@,$build,;t t
 
33037
s,@build_cpu@,$build_cpu,;t t
 
33038
s,@build_vendor@,$build_vendor,;t t
 
33039
s,@build_os@,$build_os,;t t
 
33040
s,@host@,$host,;t t
 
33041
s,@host_cpu@,$host_cpu,;t t
 
33042
s,@host_vendor@,$host_vendor,;t t
 
33043
s,@host_os@,$host_os,;t t
 
33044
s,@target@,$target,;t t
 
33045
s,@target_cpu@,$target_cpu,;t t
 
33046
s,@target_vendor@,$target_vendor,;t t
 
33047
s,@target_os@,$target_os,;t t
 
33048
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
33049
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
33050
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
33051
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
33052
s,@PACKAGE@,$PACKAGE,;t t
 
33053
s,@VERSION@,$VERSION,;t t
 
33054
s,@ACLOCAL@,$ACLOCAL,;t t
 
33055
s,@AUTOCONF@,$AUTOCONF,;t t
 
33056
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
33057
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
33058
s,@MAKEINFO@,$MAKEINFO,;t t
 
33059
s,@install_sh@,$install_sh,;t t
 
33060
s,@STRIP@,$STRIP,;t t
 
33061
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
33062
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
33063
s,@mkdir_p@,$mkdir_p,;t t
 
33064
s,@AWK@,$AWK,;t t
 
33065
s,@SET_MAKE@,$SET_MAKE,;t t
 
33066
s,@am__leading_dot@,$am__leading_dot,;t t
 
33067
s,@AMTAR@,$AMTAR,;t t
 
33068
s,@am__tar@,$am__tar,;t t
 
33069
s,@am__untar@,$am__untar,;t t
 
33070
s,@KDECONFIG@,$KDECONFIG,;t t
 
33071
s,@kde_libs_prefix@,$kde_libs_prefix,;t t
 
33072
s,@kde_libs_htmldir@,$kde_libs_htmldir,;t t
 
33073
s,@CONF_FILES@,$CONF_FILES,;t t
 
33074
s,@CC@,$CC,;t t
 
33075
s,@CFLAGS@,$CFLAGS,;t t
 
33076
s,@LDFLAGS@,$LDFLAGS,;t t
 
33077
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
33078
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
33079
s,@EXEEXT@,$EXEEXT,;t t
 
33080
s,@OBJEXT@,$OBJEXT,;t t
 
33081
s,@DEPDIR@,$DEPDIR,;t t
 
33082
s,@am__include@,$am__include,;t t
 
33083
s,@am__quote@,$am__quote,;t t
 
33084
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
33085
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
33086
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
33087
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
33088
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
33089
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
33090
s,@CPP@,$CPP,;t t
 
33091
s,@CXX@,$CXX,;t t
 
33092
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
33093
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
33094
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
33095
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
33096
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
33097
s,@WOVERLOADED_VIRTUAL@,$WOVERLOADED_VIRTUAL,;t t
 
33098
s,@HAVE_GCC_VISIBILITY@,$HAVE_GCC_VISIBILITY,;t t
 
33099
s,@unsermake_enable_pch_TRUE@,$unsermake_enable_pch_TRUE,;t t
 
33100
s,@unsermake_enable_pch_FALSE@,$unsermake_enable_pch_FALSE,;t t
 
33101
s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t
 
33102
s,@USE_RTTI@,$USE_RTTI,;t t
 
33103
s,@CXXCPP@,$CXXCPP,;t t
 
33104
s,@NOOPT_CXXFLAGS@,$NOOPT_CXXFLAGS,;t t
 
33105
s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t
 
33106
s,@ENABLE_PERMISSIVE_FLAG@,$ENABLE_PERMISSIVE_FLAG,;t t
 
33107
s,@LDFLAGS_AS_NEEDED@,$LDFLAGS_AS_NEEDED,;t t
 
33108
s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t
 
33109
s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t
 
33110
s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t
 
33111
s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t
 
33112
s,@KDE_NO_UNDEFINED@,$KDE_NO_UNDEFINED,;t t
 
33113
s,@KDE_USE_NMCHECK_TRUE@,$KDE_USE_NMCHECK_TRUE,;t t
 
33114
s,@KDE_USE_NMCHECK_FALSE@,$KDE_USE_NMCHECK_FALSE,;t t
 
33115
s,@EGREP@,$EGREP,;t t
 
33116
s,@LN_S@,$LN_S,;t t
 
33117
s,@ECHO@,$ECHO,;t t
 
33118
s,@AR@,$AR,;t t
 
33119
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
33120
s,@RANLIB@,$RANLIB,;t t
 
33121
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
33122
s,@F77@,$F77,;t t
 
33123
s,@FFLAGS@,$FFLAGS,;t t
 
33124
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
33125
s,@LIBTOOL@,$LIBTOOL,;t t
 
33126
s,@KDE_PLUGIN@,$KDE_PLUGIN,;t t
 
33127
s,@MSGFMT@,$MSGFMT,;t t
 
33128
s,@GMSGFMT@,$GMSGFMT,;t t
 
33129
s,@XGETTEXT@,$XGETTEXT,;t t
 
33130
s,@LIBUTIL@,$LIBUTIL,;t t
 
33131
s,@LIBCOMPAT@,$LIBCOMPAT,;t t
 
33132
s,@LIBCRYPT@,$LIBCRYPT,;t t
 
33133
s,@LIBRESOLV@,$LIBRESOLV,;t t
 
33134
s,@LIB_POLL@,$LIB_POLL,;t t
 
33135
s,@FRAMEWORK_COREAUDIO@,$FRAMEWORK_COREAUDIO,;t t
 
33136
s,@LIBSOCKET@,$LIBSOCKET,;t t
 
33137
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
 
33138
s,@LIBUCB@,$LIBUCB,;t t
 
33139
s,@LIBDL@,$LIBDL,;t t
 
33140
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
 
33141
s,@LIB_X11@,$LIB_X11,;t t
 
33142
s,@LIB_XRENDER@,$LIB_XRENDER,;t t
 
33143
s,@LIBSM@,$LIBSM,;t t
 
33144
s,@X_INCLUDES@,$X_INCLUDES,;t t
 
33145
s,@X_LDFLAGS@,$X_LDFLAGS,;t t
 
33146
s,@x_includes@,$x_includes,;t t
 
33147
s,@x_libraries@,$x_libraries,;t t
 
33148
s,@QTE_NORTTI@,$QTE_NORTTI,;t t
 
33149
s,@LIB_XEXT@,$LIB_XEXT,;t t
 
33150
s,@LIBPTHREAD@,$LIBPTHREAD,;t t
 
33151
s,@USE_THREADS@,$USE_THREADS,;t t
 
33152
s,@KDE_MT_LDFLAGS@,$KDE_MT_LDFLAGS,;t t
 
33153
s,@KDE_MT_LIBS@,$KDE_MT_LIBS,;t t
 
33154
s,@USER_INCLUDES@,$USER_INCLUDES,;t t
 
33155
s,@USER_LDFLAGS@,$USER_LDFLAGS,;t t
 
33156
s,@LIBZ@,$LIBZ,;t t
 
33157
s,@LIBPNG@,$LIBPNG,;t t
 
33158
s,@LIBJPEG@,$LIBJPEG,;t t
 
33159
s,@qt_libraries@,$qt_libraries,;t t
 
33160
s,@qt_includes@,$qt_includes,;t t
 
33161
s,@QT_INCLUDES@,$QT_INCLUDES,;t t
 
33162
s,@QT_LDFLAGS@,$QT_LDFLAGS,;t t
 
33163
s,@PERL@,$PERL,;t t
 
33164
s,@MOC@,$MOC,;t t
 
33165
s,@UIC@,$UIC,;t t
 
33166
s,@UIC_TR@,$UIC_TR,;t t
 
33167
s,@LIB_QT@,$LIB_QT,;t t
 
33168
s,@LIB_QPE@,$LIB_QPE,;t t
 
33169
s,@kde_qtver@,$kde_qtver,;t t
 
33170
s,@KDE_EXTRA_RPATH@,$KDE_EXTRA_RPATH,;t t
 
33171
s,@KDE_RPATH@,$KDE_RPATH,;t t
 
33172
s,@X_RPATH@,$X_RPATH,;t t
 
33173
s,@kde_libraries@,$kde_libraries,;t t
 
33174
s,@kde_includes@,$kde_includes,;t t
 
33175
s,@KDE_LDFLAGS@,$KDE_LDFLAGS,;t t
 
33176
s,@KDE_INCLUDES@,$KDE_INCLUDES,;t t
 
33177
s,@all_includes@,$all_includes,;t t
 
33178
s,@all_libraries@,$all_libraries,;t t
 
33179
s,@AUTODIRS@,$AUTODIRS,;t t
 
33180
s,@include_ARTS_TRUE@,$include_ARTS_TRUE,;t t
 
33181
s,@include_ARTS_FALSE@,$include_ARTS_FALSE,;t t
 
33182
s,@MAKEKDEWIDGETS@,$MAKEKDEWIDGETS,;t t
 
33183
s,@KCONFIG_COMPILER@,$KCONFIG_COMPILER,;t t
 
33184
s,@KCFG_DEPENDENCIES@,$KCFG_DEPENDENCIES,;t t
 
33185
s,@DCOPIDLNG@,$DCOPIDLNG,;t t
 
33186
s,@DCOPIDL@,$DCOPIDL,;t t
 
33187
s,@DCOPIDL2CPP@,$DCOPIDL2CPP,;t t
 
33188
s,@DCOP_DEPENDENCIES@,$DCOP_DEPENDENCIES,;t t
 
33189
s,@MCOPIDL@,$MCOPIDL,;t t
 
33190
s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
 
33191
s,@MEINPROC@,$MEINPROC,;t t
 
33192
s,@KDE_XSL_STYLESHEET@,$KDE_XSL_STYLESHEET,;t t
 
33193
s,@XMLLINT@,$XMLLINT,;t t
 
33194
s,@kde_htmldir@,$kde_htmldir,;t t
 
33195
s,@kde_appsdir@,$kde_appsdir,;t t
 
33196
s,@kde_icondir@,$kde_icondir,;t t
 
33197
s,@kde_sounddir@,$kde_sounddir,;t t
 
33198
s,@kde_datadir@,$kde_datadir,;t t
 
33199
s,@kde_locale@,$kde_locale,;t t
 
33200
s,@kde_confdir@,$kde_confdir,;t t
 
33201
s,@kde_kcfgdir@,$kde_kcfgdir,;t t
 
33202
s,@kde_mimedir@,$kde_mimedir,;t t
 
33203
s,@kde_wallpaperdir@,$kde_wallpaperdir,;t t
 
33204
s,@kde_bindir@,$kde_bindir,;t t
 
33205
s,@xdg_appsdir@,$xdg_appsdir,;t t
 
33206
s,@xdg_menudir@,$xdg_menudir,;t t
 
33207
s,@xdg_directorydir@,$xdg_directorydir,;t t
 
33208
s,@kde_templatesdir@,$kde_templatesdir,;t t
 
33209
s,@kde_servicesdir@,$kde_servicesdir,;t t
 
33210
s,@kde_servicetypesdir@,$kde_servicetypesdir,;t t
 
33211
s,@kde_moduledir@,$kde_moduledir,;t t
 
33212
s,@kdeinitdir@,$kdeinitdir,;t t
 
33213
s,@kde_styledir@,$kde_styledir,;t t
 
33214
s,@kde_widgetdir@,$kde_widgetdir,;t t
 
33215
s,@LIB_KDECORE@,$LIB_KDECORE,;t t
 
33216
s,@LIB_KDEUI@,$LIB_KDEUI,;t t
 
33217
s,@LIB_KIO@,$LIB_KIO,;t t
 
33218
s,@LIB_SMB@,$LIB_SMB,;t t
 
33219
s,@LIB_KAB@,$LIB_KAB,;t t
 
33220
s,@LIB_KABC@,$LIB_KABC,;t t
 
33221
s,@LIB_KHTML@,$LIB_KHTML,;t t
 
33222
s,@LIB_KSPELL@,$LIB_KSPELL,;t t
 
33223
s,@LIB_KPARTS@,$LIB_KPARTS,;t t
 
33224
s,@LIB_KDEPRINT@,$LIB_KDEPRINT,;t t
 
33225
s,@LIB_KUTILS@,$LIB_KUTILS,;t t
 
33226
s,@LIB_KDEPIM@,$LIB_KDEPIM,;t t
 
33227
s,@LIB_KIMPROXY@,$LIB_KIMPROXY,;t t
 
33228
s,@LIB_KNEWSTUFF@,$LIB_KNEWSTUFF,;t t
 
33229
s,@LIB_KSYCOCA@,$LIB_KSYCOCA,;t t
 
33230
s,@LIB_KFILE@,$LIB_KFILE,;t t
 
33231
s,@LIB_KFM@,$LIB_KFM,;t t
 
33232
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
33233
s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
 
33234
s,@GTK2_LIBS@,$GTK2_LIBS,;t t
 
33235
s,@LIBBONOBOUI_CFLAGS@,$LIBBONOBOUI_CFLAGS,;t t
 
33236
s,@LIBBONOBOUI_LIBS@,$LIBBONOBOUI_LIBS,;t t
 
33237
s,@QTENGINE_CFLAGS@,$QTENGINE_CFLAGS,;t t
 
33238
s,@QTENGINE_LIBS@,$QTENGINE_LIBS,;t t
 
33239
s,@GTK_VERSION@,$GTK_VERSION,;t t
 
33240
s,@GTK_LIBPREFIX@,$GTK_LIBPREFIX,;t t
 
33241
s,@GTK_PREFIX@,$GTK_PREFIX,;t t
 
33242
s,@KDE_PREFIX@,$KDE_PREFIX,;t t
 
33243
s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t
 
33244
s,@LIBOBJS@,$LIBOBJS,;t t
 
33245
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
33246
CEOF
 
33247
 
 
33248
_ACEOF
 
33249
 
 
33250
  cat >>$CONFIG_STATUS <<\_ACEOF
 
33251
  # Split the substitutions into bite-sized pieces for seds with
 
33252
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
33253
  ac_max_sed_lines=48
 
33254
  ac_sed_frag=1 # Number of current file.
 
33255
  ac_beg=1 # First line for current file.
 
33256
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
33257
  ac_more_lines=:
 
33258
  ac_sed_cmds=
 
33259
  while $ac_more_lines; do
 
33260
    if test $ac_beg -gt 1; then
 
33261
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
33262
    else
 
33263
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
33264
    fi
 
33265
    if test ! -s $tmp/subs.frag; then
 
33266
      ac_more_lines=false
 
33267
    else
 
33268
      # The purpose of the label and of the branching condition is to
 
33269
      # speed up the sed processing (if there are no `@' at all, there
 
33270
      # is no need to browse any of the substitutions).
 
33271
      # These are the two extra sed commands mentioned above.
 
33272
      (echo ':t
 
33273
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
33274
      if test -z "$ac_sed_cmds"; then
 
33275
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
33276
      else
 
33277
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
33278
      fi
 
33279
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
33280
      ac_beg=$ac_end
 
33281
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
33282
    fi
 
33283
  done
 
33284
  if test -z "$ac_sed_cmds"; then
 
33285
    ac_sed_cmds=cat
 
33286
  fi
 
33287
fi # test -n "$CONFIG_FILES"
 
33288
 
 
33289
_ACEOF
 
33290
cat >>$CONFIG_STATUS <<\_ACEOF
 
33291
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
33292
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
33293
  case $ac_file in
 
33294
  - | *:- | *:-:* ) # input from stdin
 
33295
        cat >$tmp/stdin
 
33296
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
33297
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
33298
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
33299
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
33300
  * )   ac_file_in=$ac_file.in ;;
 
33301
  esac
 
33302
 
 
33303
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
33304
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
33305
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33306
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
33307
         X"$ac_file" : 'X\(//\)$' \| \
 
33308
         X"$ac_file" : 'X\(/\)' \| \
 
33309
         .     : '\(.\)' 2>/dev/null ||
 
33310
echo X"$ac_file" |
 
33311
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33312
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33313
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33314
          /^X\(\/\).*/{ s//\1/; q; }
 
33315
          s/.*/./; q'`
 
33316
  { if $as_mkdir_p; then
 
33317
    mkdir -p "$ac_dir"
 
33318
  else
 
33319
    as_dir="$ac_dir"
 
33320
    as_dirs=
 
33321
    while test ! -d "$as_dir"; do
 
33322
      as_dirs="$as_dir $as_dirs"
 
33323
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
33324
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33325
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
33326
         X"$as_dir" : 'X\(//\)$' \| \
 
33327
         X"$as_dir" : 'X\(/\)' \| \
 
33328
         .     : '\(.\)' 2>/dev/null ||
 
33329
echo X"$as_dir" |
 
33330
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33331
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33332
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33333
          /^X\(\/\).*/{ s//\1/; q; }
 
33334
          s/.*/./; q'`
 
33335
    done
 
33336
    test ! -n "$as_dirs" || mkdir $as_dirs
 
33337
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
33338
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
33339
   { (exit 1); exit 1; }; }; }
 
33340
 
 
33341
  ac_builddir=.
 
33342
 
 
33343
if test "$ac_dir" != .; then
 
33344
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
33345
  # A "../" for each directory in $ac_dir_suffix.
 
33346
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
33347
else
 
33348
  ac_dir_suffix= ac_top_builddir=
 
33349
fi
 
33350
 
 
33351
case $srcdir in
 
33352
  .)  # No --srcdir option.  We are building in place.
 
33353
    ac_srcdir=.
 
33354
    if test -z "$ac_top_builddir"; then
 
33355
       ac_top_srcdir=.
 
33356
    else
 
33357
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
33358
    fi ;;
 
33359
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
33360
    ac_srcdir=$srcdir$ac_dir_suffix;
 
33361
    ac_top_srcdir=$srcdir ;;
 
33362
  *) # Relative path.
 
33363
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
33364
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
33365
esac
 
33366
 
 
33367
# Do not use `cd foo && pwd` to compute absolute paths, because
 
33368
# the directories may not exist.
 
33369
case `pwd` in
 
33370
.) ac_abs_builddir="$ac_dir";;
 
33371
*)
 
33372
  case "$ac_dir" in
 
33373
  .) ac_abs_builddir=`pwd`;;
 
33374
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
33375
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
33376
  esac;;
 
33377
esac
 
33378
case $ac_abs_builddir in
 
33379
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
33380
*)
 
33381
  case ${ac_top_builddir}. in
 
33382
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
33383
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
33384
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
33385
  esac;;
 
33386
esac
 
33387
case $ac_abs_builddir in
 
33388
.) ac_abs_srcdir=$ac_srcdir;;
 
33389
*)
 
33390
  case $ac_srcdir in
 
33391
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
33392
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
33393
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
33394
  esac;;
 
33395
esac
 
33396
case $ac_abs_builddir in
 
33397
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
33398
*)
 
33399
  case $ac_top_srcdir in
 
33400
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
33401
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
33402
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
33403
  esac;;
 
33404
esac
 
33405
 
 
33406
 
 
33407
  case $INSTALL in
 
33408
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
33409
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
33410
  esac
 
33411
 
 
33412
  if test x"$ac_file" != x-; then
 
33413
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
33414
echo "$as_me: creating $ac_file" >&6;}
 
33415
    rm -f "$ac_file"
 
33416
  fi
 
33417
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
33418
  # use $as_me), people would be surprised to read:
 
33419
  #    /* config.h.  Generated by config.status.  */
 
33420
  if test x"$ac_file" = x-; then
 
33421
    configure_input=
 
33422
  else
 
33423
    configure_input="$ac_file.  "
 
33424
  fi
 
33425
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
33426
                                     sed 's,.*/,,'` by configure."
 
33427
 
 
33428
  # First look for the input files in the build tree, otherwise in the
 
33429
  # src tree.
 
33430
  ac_file_inputs=`IFS=:
 
33431
    for f in $ac_file_in; do
 
33432
      case $f in
 
33433
      -) echo $tmp/stdin ;;
 
33434
      [\\/$]*)
 
33435
         # Absolute (can't be DOS-style, as IFS=:)
 
33436
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
33437
echo "$as_me: error: cannot find input file: $f" >&2;}
 
33438
   { (exit 1); exit 1; }; }
 
33439
         echo "$f";;
 
33440
      *) # Relative
 
33441
         if test -f "$f"; then
 
33442
           # Build tree
 
33443
           echo "$f"
 
33444
         elif test -f "$srcdir/$f"; then
 
33445
           # Source tree
 
33446
           echo "$srcdir/$f"
 
33447
         else
 
33448
           # /dev/null tree
 
33449
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
33450
echo "$as_me: error: cannot find input file: $f" >&2;}
 
33451
   { (exit 1); exit 1; }; }
 
33452
         fi;;
 
33453
      esac
 
33454
    done` || { (exit 1); exit 1; }
 
33455
_ACEOF
 
33456
cat >>$CONFIG_STATUS <<_ACEOF
 
33457
  sed "$ac_vpsub
 
33458
$extrasub
 
33459
_ACEOF
 
33460
cat >>$CONFIG_STATUS <<\_ACEOF
 
33461
:t
 
33462
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
33463
s,@configure_input@,$configure_input,;t t
 
33464
s,@srcdir@,$ac_srcdir,;t t
 
33465
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
33466
s,@top_srcdir@,$ac_top_srcdir,;t t
 
33467
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
33468
s,@builddir@,$ac_builddir,;t t
 
33469
s,@abs_builddir@,$ac_abs_builddir,;t t
 
33470
s,@top_builddir@,$ac_top_builddir,;t t
 
33471
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
33472
s,@INSTALL@,$ac_INSTALL,;t t
 
33473
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
33474
  rm -f $tmp/stdin
 
33475
  if test x"$ac_file" != x-; then
 
33476
    mv $tmp/out $ac_file
 
33477
  else
 
33478
    cat $tmp/out
 
33479
    rm -f $tmp/out
 
33480
  fi
 
33481
 
 
33482
done
 
33483
_ACEOF
 
33484
cat >>$CONFIG_STATUS <<\_ACEOF
 
33485
 
 
33486
#
 
33487
# CONFIG_HEADER section.
 
33488
#
 
33489
 
 
33490
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
33491
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
33492
#
 
33493
# ac_d sets the value in "#define NAME VALUE" lines.
 
33494
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
33495
ac_dB='[         ].*$,\1#\2'
 
33496
ac_dC=' '
 
33497
ac_dD=',;t'
 
33498
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
33499
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
33500
ac_uB='$,\1#\2define\3'
 
33501
ac_uC=' '
 
33502
ac_uD=',;t'
 
33503
 
 
33504
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
33505
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
33506
  case $ac_file in
 
33507
  - | *:- | *:-:* ) # input from stdin
 
33508
        cat >$tmp/stdin
 
33509
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
33510
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
33511
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
33512
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
33513
  * )   ac_file_in=$ac_file.in ;;
 
33514
  esac
 
33515
 
 
33516
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
33517
echo "$as_me: creating $ac_file" >&6;}
 
33518
 
 
33519
  # First look for the input files in the build tree, otherwise in the
 
33520
  # src tree.
 
33521
  ac_file_inputs=`IFS=:
 
33522
    for f in $ac_file_in; do
 
33523
      case $f in
 
33524
      -) echo $tmp/stdin ;;
 
33525
      [\\/$]*)
 
33526
         # Absolute (can't be DOS-style, as IFS=:)
 
33527
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
33528
echo "$as_me: error: cannot find input file: $f" >&2;}
 
33529
   { (exit 1); exit 1; }; }
 
33530
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
33531
         echo "$f";;
 
33532
      *) # Relative
 
33533
         if test -f "$f"; then
 
33534
           # Build tree
 
33535
           echo "$f"
 
33536
         elif test -f "$srcdir/$f"; then
 
33537
           # Source tree
 
33538
           echo "$srcdir/$f"
 
33539
         else
 
33540
           # /dev/null tree
 
33541
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
33542
echo "$as_me: error: cannot find input file: $f" >&2;}
 
33543
   { (exit 1); exit 1; }; }
 
33544
         fi;;
 
33545
      esac
 
33546
    done` || { (exit 1); exit 1; }
 
33547
  # Remove the trailing spaces.
 
33548
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
33549
 
 
33550
_ACEOF
 
33551
 
 
33552
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
33553
# `conftest.undefs', that substitutes the proper values into
 
33554
# config.h.in to produce config.h.  The first handles `#define'
 
33555
# templates, and the second `#undef' templates.
 
33556
# And first: Protect against being on the right side of a sed subst in
 
33557
# config.status.  Protect against being in an unquoted here document
 
33558
# in config.status.
 
33559
rm -f conftest.defines conftest.undefs
 
33560
# Using a here document instead of a string reduces the quoting nightmare.
 
33561
# Putting comments in sed scripts is not portable.
 
33562
#
 
33563
# `end' is used to avoid that the second main sed command (meant for
 
33564
# 0-ary CPP macros) applies to n-ary macro definitions.
 
33565
# See the Autoconf documentation for `clear'.
 
33566
cat >confdef2sed.sed <<\_ACEOF
 
33567
s/[\\&,]/\\&/g
 
33568
s,[\\$`],\\&,g
 
33569
t clear
 
33570
: clear
 
33571
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
33572
t end
 
33573
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
33574
: end
 
33575
_ACEOF
 
33576
# If some macros were called several times there might be several times
 
33577
# the same #defines, which is useless.  Nevertheless, we may not want to
 
33578
# sort them, since we want the *last* AC-DEFINE to be honored.
 
33579
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
33580
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
33581
rm -f confdef2sed.sed
 
33582
 
 
33583
# This sed command replaces #undef with comments.  This is necessary, for
 
33584
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
33585
# on some systems where configure will not decide to define it.
 
33586
cat >>conftest.undefs <<\_ACEOF
 
33587
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
33588
_ACEOF
 
33589
 
 
33590
# Break up conftest.defines because some shells have a limit on the size
 
33591
# of here documents, and old seds have small limits too (100 cmds).
 
33592
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
33593
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
33594
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
33595
echo '  :' >>$CONFIG_STATUS
 
33596
rm -f conftest.tail
 
33597
while grep . conftest.defines >/dev/null
 
33598
do
 
33599
  # Write a limited-size here document to $tmp/defines.sed.
 
33600
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
33601
  # Speed up: don't consider the non `#define' lines.
 
33602
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
33603
  # Work around the forget-to-reset-the-flag bug.
 
33604
  echo 't clr' >>$CONFIG_STATUS
 
33605
  echo ': clr' >>$CONFIG_STATUS
 
33606
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
33607
  echo 'CEOF
 
33608
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
33609
  rm -f $tmp/in
 
33610
  mv $tmp/out $tmp/in
 
33611
' >>$CONFIG_STATUS
 
33612
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
33613
  rm -f conftest.defines
 
33614
  mv conftest.tail conftest.defines
 
33615
done
 
33616
rm -f conftest.defines
 
33617
echo '  fi # grep' >>$CONFIG_STATUS
 
33618
echo >>$CONFIG_STATUS
 
33619
 
 
33620
# Break up conftest.undefs because some shells have a limit on the size
 
33621
# of here documents, and old seds have small limits too (100 cmds).
 
33622
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
33623
rm -f conftest.tail
 
33624
while grep . conftest.undefs >/dev/null
 
33625
do
 
33626
  # Write a limited-size here document to $tmp/undefs.sed.
 
33627
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
33628
  # Speed up: don't consider the non `#undef'
 
33629
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
33630
  # Work around the forget-to-reset-the-flag bug.
 
33631
  echo 't clr' >>$CONFIG_STATUS
 
33632
  echo ': clr' >>$CONFIG_STATUS
 
33633
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
33634
  echo 'CEOF
 
33635
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
33636
  rm -f $tmp/in
 
33637
  mv $tmp/out $tmp/in
 
33638
' >>$CONFIG_STATUS
 
33639
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
33640
  rm -f conftest.undefs
 
33641
  mv conftest.tail conftest.undefs
 
33642
done
 
33643
rm -f conftest.undefs
 
33644
 
 
33645
cat >>$CONFIG_STATUS <<\_ACEOF
 
33646
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
33647
  # use $as_me), people would be surprised to read:
 
33648
  #    /* config.h.  Generated by config.status.  */
 
33649
  if test x"$ac_file" = x-; then
 
33650
    echo "/* Generated by configure.  */" >$tmp/config.h
 
33651
  else
 
33652
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
33653
  fi
 
33654
  cat $tmp/in >>$tmp/config.h
 
33655
  rm -f $tmp/in
 
33656
  if test x"$ac_file" != x-; then
 
33657
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
33658
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
33659
echo "$as_me: $ac_file is unchanged" >&6;}
 
33660
    else
 
33661
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
33662
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33663
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
33664
         X"$ac_file" : 'X\(//\)$' \| \
 
33665
         X"$ac_file" : 'X\(/\)' \| \
 
33666
         .     : '\(.\)' 2>/dev/null ||
 
33667
echo X"$ac_file" |
 
33668
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33669
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33670
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33671
          /^X\(\/\).*/{ s//\1/; q; }
 
33672
          s/.*/./; q'`
 
33673
      { if $as_mkdir_p; then
 
33674
    mkdir -p "$ac_dir"
 
33675
  else
 
33676
    as_dir="$ac_dir"
 
33677
    as_dirs=
 
33678
    while test ! -d "$as_dir"; do
 
33679
      as_dirs="$as_dir $as_dirs"
 
33680
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
33681
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33682
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
33683
         X"$as_dir" : 'X\(//\)$' \| \
 
33684
         X"$as_dir" : 'X\(/\)' \| \
 
33685
         .     : '\(.\)' 2>/dev/null ||
 
33686
echo X"$as_dir" |
 
33687
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33688
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33689
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33690
          /^X\(\/\).*/{ s//\1/; q; }
 
33691
          s/.*/./; q'`
 
33692
    done
 
33693
    test ! -n "$as_dirs" || mkdir $as_dirs
 
33694
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
33695
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
33696
   { (exit 1); exit 1; }; }; }
 
33697
 
 
33698
      rm -f $ac_file
 
33699
      mv $tmp/config.h $ac_file
 
33700
    fi
 
33701
  else
 
33702
    cat $tmp/config.h
 
33703
    rm -f $tmp/config.h
 
33704
  fi
 
33705
# Compute $ac_file's index in $config_headers.
 
33706
_am_stamp_count=1
 
33707
for _am_header in $config_headers :; do
 
33708
  case $_am_header in
 
33709
    $ac_file | $ac_file:* )
 
33710
      break ;;
 
33711
    * )
 
33712
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
33713
  esac
 
33714
done
 
33715
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
33716
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33717
         X$ac_file : 'X\(//\)[^/]' \| \
 
33718
         X$ac_file : 'X\(//\)$' \| \
 
33719
         X$ac_file : 'X\(/\)' \| \
 
33720
         .     : '\(.\)' 2>/dev/null ||
 
33721
echo X$ac_file |
 
33722
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33723
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33724
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33725
          /^X\(\/\).*/{ s//\1/; q; }
 
33726
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
33727
done
 
33728
_ACEOF
 
33729
cat >>$CONFIG_STATUS <<\_ACEOF
 
33730
 
 
33731
#
 
33732
# CONFIG_COMMANDS section.
 
33733
#
 
33734
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
33735
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
33736
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
33737
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
33738
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33739
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
33740
         X"$ac_dest" : 'X\(//\)$' \| \
 
33741
         X"$ac_dest" : 'X\(/\)' \| \
 
33742
         .     : '\(.\)' 2>/dev/null ||
 
33743
echo X"$ac_dest" |
 
33744
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33745
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33746
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33747
          /^X\(\/\).*/{ s//\1/; q; }
 
33748
          s/.*/./; q'`
 
33749
  { if $as_mkdir_p; then
 
33750
    mkdir -p "$ac_dir"
 
33751
  else
 
33752
    as_dir="$ac_dir"
 
33753
    as_dirs=
 
33754
    while test ! -d "$as_dir"; do
 
33755
      as_dirs="$as_dir $as_dirs"
 
33756
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
33757
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33758
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
33759
         X"$as_dir" : 'X\(//\)$' \| \
 
33760
         X"$as_dir" : 'X\(/\)' \| \
 
33761
         .     : '\(.\)' 2>/dev/null ||
 
33762
echo X"$as_dir" |
 
33763
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33764
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33765
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33766
          /^X\(\/\).*/{ s//\1/; q; }
 
33767
          s/.*/./; q'`
 
33768
    done
 
33769
    test ! -n "$as_dirs" || mkdir $as_dirs
 
33770
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
33771
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
33772
   { (exit 1); exit 1; }; }; }
 
33773
 
 
33774
  ac_builddir=.
 
33775
 
 
33776
if test "$ac_dir" != .; then
 
33777
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
33778
  # A "../" for each directory in $ac_dir_suffix.
 
33779
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
33780
else
 
33781
  ac_dir_suffix= ac_top_builddir=
 
33782
fi
 
33783
 
 
33784
case $srcdir in
 
33785
  .)  # No --srcdir option.  We are building in place.
 
33786
    ac_srcdir=.
 
33787
    if test -z "$ac_top_builddir"; then
 
33788
       ac_top_srcdir=.
 
33789
    else
 
33790
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
33791
    fi ;;
 
33792
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
33793
    ac_srcdir=$srcdir$ac_dir_suffix;
 
33794
    ac_top_srcdir=$srcdir ;;
 
33795
  *) # Relative path.
 
33796
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
33797
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
33798
esac
 
33799
 
 
33800
# Do not use `cd foo && pwd` to compute absolute paths, because
 
33801
# the directories may not exist.
 
33802
case `pwd` in
 
33803
.) ac_abs_builddir="$ac_dir";;
 
33804
*)
 
33805
  case "$ac_dir" in
 
33806
  .) ac_abs_builddir=`pwd`;;
 
33807
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
33808
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
33809
  esac;;
 
33810
esac
 
33811
case $ac_abs_builddir in
 
33812
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
33813
*)
 
33814
  case ${ac_top_builddir}. in
 
33815
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
33816
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
33817
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
33818
  esac;;
 
33819
esac
 
33820
case $ac_abs_builddir in
 
33821
.) ac_abs_srcdir=$ac_srcdir;;
 
33822
*)
 
33823
  case $ac_srcdir in
 
33824
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
33825
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
33826
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
33827
  esac;;
 
33828
esac
 
33829
case $ac_abs_builddir in
 
33830
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
33831
*)
 
33832
  case $ac_top_srcdir in
 
33833
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
33834
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
33835
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
33836
  esac;;
 
33837
esac
 
33838
 
 
33839
 
 
33840
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
33841
echo "$as_me: executing $ac_dest commands" >&6;}
 
33842
  case $ac_dest in
 
33843
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
33844
  # Strip MF so we end up with the name of the file.
 
33845
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
33846
  # Check whether this is an Automake generated Makefile or not.
 
33847
  # We used to match only the files named `Makefile.in', but
 
33848
  # some people rename them; so instead we look at the file content.
 
33849
  # Grep'ing the first line is not enough: some people post-process
 
33850
  # each Makefile.in and add a new line on top of each file to say so.
 
33851
  # So let's grep whole file.
 
33852
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
33853
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
33854
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33855
         X"$mf" : 'X\(//\)[^/]' \| \
 
33856
         X"$mf" : 'X\(//\)$' \| \
 
33857
         X"$mf" : 'X\(/\)' \| \
 
33858
         .     : '\(.\)' 2>/dev/null ||
 
33859
echo X"$mf" |
 
33860
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33861
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33862
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33863
          /^X\(\/\).*/{ s//\1/; q; }
 
33864
          s/.*/./; q'`
 
33865
  else
 
33866
    continue
 
33867
  fi
 
33868
  # Extract the definition of DEPDIR, am__include, and am__quote
 
33869
  # from the Makefile without running `make'.
 
33870
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
33871
  test -z "$DEPDIR" && continue
 
33872
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
33873
  test -z "am__include" && continue
 
33874
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
33875
  # When using ansi2knr, U may be empty or an underscore; expand it
 
33876
  U=`sed -n 's/^U = //p' < "$mf"`
 
33877
  # Find all dependency output files, they are included files with
 
33878
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
33879
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
33880
  # expansion.
 
33881
  for file in `sed -n "
 
33882
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
33883
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
33884
    # Make sure the directory exists.
 
33885
    test -f "$dirpart/$file" && continue
 
33886
    fdir=`(dirname "$file") 2>/dev/null ||
 
33887
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33888
         X"$file" : 'X\(//\)[^/]' \| \
 
33889
         X"$file" : 'X\(//\)$' \| \
 
33890
         X"$file" : 'X\(/\)' \| \
 
33891
         .     : '\(.\)' 2>/dev/null ||
 
33892
echo X"$file" |
 
33893
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33894
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33895
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33896
          /^X\(\/\).*/{ s//\1/; q; }
 
33897
          s/.*/./; q'`
 
33898
    { if $as_mkdir_p; then
 
33899
    mkdir -p $dirpart/$fdir
 
33900
  else
 
33901
    as_dir=$dirpart/$fdir
 
33902
    as_dirs=
 
33903
    while test ! -d "$as_dir"; do
 
33904
      as_dirs="$as_dir $as_dirs"
 
33905
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
33906
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33907
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
33908
         X"$as_dir" : 'X\(//\)$' \| \
 
33909
         X"$as_dir" : 'X\(/\)' \| \
 
33910
         .     : '\(.\)' 2>/dev/null ||
 
33911
echo X"$as_dir" |
 
33912
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33913
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33914
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33915
          /^X\(\/\).*/{ s//\1/; q; }
 
33916
          s/.*/./; q'`
 
33917
    done
 
33918
    test ! -n "$as_dirs" || mkdir $as_dirs
 
33919
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
33920
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
33921
   { (exit 1); exit 1; }; }; }
 
33922
 
 
33923
    # echo "creating $dirpart/$file"
 
33924
    echo '# dummy' > "$dirpart/$file"
 
33925
  done
 
33926
done
 
33927
 ;;
 
33928
  esac
 
33929
done
 
33930
_ACEOF
 
33931
 
 
33932
cat >>$CONFIG_STATUS <<\_ACEOF
 
33933
 
 
33934
{ (exit 0); exit 0; }
 
33935
_ACEOF
 
33936
chmod +x $CONFIG_STATUS
 
33937
ac_clean_files=$ac_clean_files_save
 
33938
 
 
33939
 
 
33940
# configure is writing to config.log, and then calls config.status.
 
33941
# config.status does its own redirection, appending to config.log.
 
33942
# Unfortunately, on DOS this fails, as config.log is still kept open
 
33943
# by configure, so config.status won't be able to write to it; its
 
33944
# output is simply discarded.  So we exec the FD to /dev/null,
 
33945
# effectively closing config.log, so it can be properly (re)opened and
 
33946
# appended to by config.status.  When coming back to configure, we
 
33947
# need to make the FD available again.
 
33948
if test "$no_create" != yes; then
 
33949
  ac_cs_success=:
 
33950
  ac_config_status_args=
 
33951
  test "$silent" = yes &&
 
33952
    ac_config_status_args="$ac_config_status_args --quiet"
 
33953
  exec 5>/dev/null
 
33954
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
33955
  exec 5>>config.log
 
33956
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
33957
  # would make configure fail if this is the last instruction.
 
33958
  $ac_cs_success || { (exit 1); exit 1; }
 
33959
fi
 
33960
 
 
33961
 
 
33962
if test "x$use_libbonoboui" = "xno"; then
 
33963
  echo ""
 
33964
  echo "********************************************************************"
 
33965
  echo " WARNING: You do not have the bonobo development packages installed"
 
33966
  echo " These are not required, but strongly recommended, as they improve"
 
33967
  echo " some aspects of the theme engine."
 
33968
  echo "********************************************************************"
 
33969
  echo ""
 
33970
else
 
33971
 
 
33972
cat >>confdefs.h <<\_ACEOF
 
33973
#define HAVE_BONOBO 1
 
33974
_ACEOF
 
33975
 
 
33976
fi
 
33977
 
 
33978
if test "$all_tests" = "bad"; then
 
33979
  if test ! "$cache_file" = "/dev/null"; then
 
33980
    echo ""
 
33981
    echo "Please remove the file $cache_file after changing your setup"
 
33982
    echo "so that configure will find the changes next time."
 
33983
    echo ""
 
33984
  fi
 
33985
else
 
33986
  echo ""
 
33987
  echo "Good - your configure finished. Start make now"
 
33988
  echo ""
 
33989
fi