~ubuntu-branches/ubuntu/maverick/datakiosk/maverick

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-06-27 22:48:06 UTC
  • Revision ID: james.westby@ubuntu.com-20050627224806-8farkci1dc2onhbs
Tags: upstream-0.7
ImportĀ upstreamĀ versionĀ 0.7

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 LDFLAGS_NEW_DTAGS 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 KDE_CHECK_PLUGIN MSGFMT GMSGFMT XGETTEXT LIBUTIL LIBCOMPAT LIBCRYPT LIBRESOLV LIB_POLL FRAMEWORK_COREAUDIO LIBSOCKET X_EXTRA_LIBS LIBUCB LIBDL include_x11_TRUE include_x11_FALSE 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_KDED LIB_KDECORE LIB_KDEUI LIB_KIO LIB_KJS LIB_SMB LIB_KAB LIB_KABC LIB_KHTML LIB_KSPELL LIB_KPARTS LIB_KDEPRINT LIB_KUTILS LIB_KDEPIM LIB_KIMPROXY LIB_KNEWSTUFF LIB_KDNSSD LIB_KUNITTEST LIB_KSYCOCA LIB_KFILE LIB_KFM LIB_ARTS QTDOCDIR KDE_HAVE_DOT DOXYGEN DOXYGEN_PROJECT_NAME DOXYGEN_PROJECT_NUMBER KDE_HAS_DOXYGEN TOPSUBDIRS src_SUBDIR_included_TRUE src_SUBDIR_included_FALSE 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
  --enable-coverage       use gcc coverage testing
 
1040
  --enable-new-ldflags    enable the new linker flags
 
1041
  --enable-final          build size optimized apps (experimental - needs lots
 
1042
                          of memory)
 
1043
  --enable-closure        delay template instantiation
 
1044
  --enable-nmcheck        enable automatic namespace cleanness check
 
1045
  --enable-shared[=PKGS]
 
1046
                          build shared libraries [default=yes]
 
1047
  --enable-static[=PKGS]
 
1048
                          build static libraries [default=no]
 
1049
  --enable-libsuffix      /lib directory suffix (64,32,none=default)
 
1050
  --enable-fast-install[=PKGS]
 
1051
                          optimize for fast installation [default=yes]
 
1052
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1053
  --enable-embedded       link to Qt-embedded, don't use X
 
1054
  --enable-qtopia         link to Qt-embedded, link to the Qtopia Environment
 
1055
  --enable-mac            link to Qt/Mac (don't use X)
 
1056
  --disable-mt            link to non-threaded Qt (deprecated)
 
1057
  --disable-threading     disables threading even if libpthread found
 
1058
  --disable-rpath         do not use the rpath feature of ld
 
1059
  --disable-path-check    don't try to find out, where to install
 
1060
 
 
1061
Optional Packages:
 
1062
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1063
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1064
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1065
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1066
                          both]
 
1067
  --with-tags[=TAGS]
 
1068
                          include additional configurations [automatic]
 
1069
  --with-extra-includes=DIR
 
1070
                          adds non standard include paths
 
1071
  --with-extra-libs=DIR   adds non standard library paths
 
1072
  --with-qt-dir=DIR       where the root of Qt is installed
 
1073
  --with-qt-includes=DIR  where the Qt includes are.
 
1074
  --with-qt-libraries=DIR where the Qt library is installed.
 
1075
  --without-arts          build without aRts default=no
 
1076
 
 
1077
Some influential environment variables:
 
1078
  CC          C compiler command
 
1079
  CFLAGS      C compiler flags
 
1080
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1081
              nonstandard directory <lib dir>
 
1082
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1083
              headers in a nonstandard directory <include dir>
 
1084
  CPP         C preprocessor
 
1085
  CXX         C++ compiler command
 
1086
  CXXFLAGS    C++ compiler flags
 
1087
  CXXCPP      C++ preprocessor
 
1088
  F77         Fortran 77 compiler command
 
1089
  FFLAGS      Fortran 77 compiler flags
 
1090
 
 
1091
Use these variables to override the choices made by `configure' or to help
 
1092
it to find libraries and programs with nonstandard names/locations.
 
1093
 
 
1094
_ACEOF
 
1095
fi
 
1096
 
 
1097
if test "$ac_init_help" = "recursive"; then
 
1098
  # If there are subdirs, report their specific --help.
 
1099
  ac_popdir=`pwd`
 
1100
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1101
    test -d $ac_dir || continue
 
1102
    ac_builddir=.
 
1103
 
 
1104
if test "$ac_dir" != .; then
 
1105
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1106
  # A "../" for each directory in $ac_dir_suffix.
 
1107
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1108
else
 
1109
  ac_dir_suffix= ac_top_builddir=
 
1110
fi
 
1111
 
 
1112
case $srcdir in
 
1113
  .)  # No --srcdir option.  We are building in place.
 
1114
    ac_srcdir=.
 
1115
    if test -z "$ac_top_builddir"; then
 
1116
       ac_top_srcdir=.
 
1117
    else
 
1118
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1119
    fi ;;
 
1120
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1121
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1122
    ac_top_srcdir=$srcdir ;;
 
1123
  *) # Relative path.
 
1124
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1125
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1126
esac
 
1127
 
 
1128
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1129
# the directories may not exist.
 
1130
case `pwd` in
 
1131
.) ac_abs_builddir="$ac_dir";;
 
1132
*)
 
1133
  case "$ac_dir" in
 
1134
  .) ac_abs_builddir=`pwd`;;
 
1135
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1136
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1137
  esac;;
 
1138
esac
 
1139
case $ac_abs_builddir in
 
1140
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1141
*)
 
1142
  case ${ac_top_builddir}. in
 
1143
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1144
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1145
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1146
  esac;;
 
1147
esac
 
1148
case $ac_abs_builddir in
 
1149
.) ac_abs_srcdir=$ac_srcdir;;
 
1150
*)
 
1151
  case $ac_srcdir in
 
1152
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1153
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1154
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1155
  esac;;
 
1156
esac
 
1157
case $ac_abs_builddir in
 
1158
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1159
*)
 
1160
  case $ac_top_srcdir in
 
1161
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1162
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1163
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1164
  esac;;
 
1165
esac
 
1166
 
 
1167
    cd $ac_dir
 
1168
    # Check for guested configure; otherwise get Cygnus style configure.
 
1169
    if test -f $ac_srcdir/configure.gnu; then
 
1170
      echo
 
1171
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1172
    elif test -f $ac_srcdir/configure; then
 
1173
      echo
 
1174
      $SHELL $ac_srcdir/configure  --help=recursive
 
1175
    elif test -f $ac_srcdir/configure.ac ||
 
1176
           test -f $ac_srcdir/configure.in; then
 
1177
      echo
 
1178
      $ac_configure --help
 
1179
    else
 
1180
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1181
    fi
 
1182
    cd $ac_popdir
 
1183
  done
 
1184
fi
 
1185
 
 
1186
test -n "$ac_init_help" && exit 0
 
1187
if $ac_init_version; then
 
1188
  cat <<\_ACEOF
 
1189
 
 
1190
Copyright (C) 2003 Free Software Foundation, Inc.
 
1191
This configure script is free software; the Free Software Foundation
 
1192
gives unlimited permission to copy, distribute and modify it.
 
1193
_ACEOF
 
1194
  exit 0
 
1195
fi
 
1196
exec 5>config.log
 
1197
cat >&5 <<_ACEOF
 
1198
This file contains any messages produced by compilers while
 
1199
running configure, to aid debugging if configure makes a mistake.
 
1200
 
 
1201
It was created by $as_me, which was
 
1202
generated by GNU Autoconf 2.59.  Invocation command line was
 
1203
 
 
1204
  $ $0 $@
 
1205
 
 
1206
_ACEOF
 
1207
{
 
1208
cat <<_ASUNAME
 
1209
## --------- ##
 
1210
## Platform. ##
 
1211
## --------- ##
 
1212
 
 
1213
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1214
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1215
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1216
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1217
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1218
 
 
1219
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1220
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1221
 
 
1222
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1223
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1224
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1225
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1226
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1227
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1228
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1229
 
 
1230
_ASUNAME
 
1231
 
 
1232
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1233
for as_dir in $PATH
 
1234
do
 
1235
  IFS=$as_save_IFS
 
1236
  test -z "$as_dir" && as_dir=.
 
1237
  echo "PATH: $as_dir"
 
1238
done
 
1239
 
 
1240
} >&5
 
1241
 
 
1242
cat >&5 <<_ACEOF
 
1243
 
 
1244
 
 
1245
## ----------- ##
 
1246
## Core tests. ##
 
1247
## ----------- ##
 
1248
 
 
1249
_ACEOF
 
1250
 
 
1251
 
 
1252
# Keep a trace of the command line.
 
1253
# Strip out --no-create and --no-recursion so they do not pile up.
 
1254
# Strip out --silent because we don't want to record it for future runs.
 
1255
# Also quote any args containing shell meta-characters.
 
1256
# Make two passes to allow for proper duplicate-argument suppression.
 
1257
ac_configure_args=
 
1258
ac_configure_args0=
 
1259
ac_configure_args1=
 
1260
ac_sep=
 
1261
ac_must_keep_next=false
 
1262
for ac_pass in 1 2
 
1263
do
 
1264
  for ac_arg
 
1265
  do
 
1266
    case $ac_arg in
 
1267
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1268
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1269
    | -silent | --silent | --silen | --sile | --sil)
 
1270
      continue ;;
 
1271
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1272
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1273
    esac
 
1274
    case $ac_pass in
 
1275
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1276
    2)
 
1277
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1278
      if test $ac_must_keep_next = true; then
 
1279
        ac_must_keep_next=false # Got value, back to normal.
 
1280
      else
 
1281
        case $ac_arg in
 
1282
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1283
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1284
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1285
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1286
            case "$ac_configure_args0 " in
 
1287
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1288
            esac
 
1289
            ;;
 
1290
          -* ) ac_must_keep_next=true ;;
 
1291
        esac
 
1292
      fi
 
1293
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1294
      # Get rid of the leading space.
 
1295
      ac_sep=" "
 
1296
      ;;
 
1297
    esac
 
1298
  done
 
1299
done
 
1300
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1301
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1302
 
 
1303
# When interrupted or exit'd, cleanup temporary files, and complete
 
1304
# config.log.  We remove comments because anyway the quotes in there
 
1305
# would cause problems or look ugly.
 
1306
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1307
# such as our DU 5.0 friend, will then `close' the trap.
 
1308
trap 'exit_status=$?
 
1309
  # Save into config.log some information that might help in debugging.
 
1310
  {
 
1311
    echo
 
1312
 
 
1313
    cat <<\_ASBOX
 
1314
## ---------------- ##
 
1315
## Cache variables. ##
 
1316
## ---------------- ##
 
1317
_ASBOX
 
1318
    echo
 
1319
    # The following way of writing the cache mishandles newlines in values,
 
1320
{
 
1321
  (set) 2>&1 |
 
1322
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1323
    *ac_space=\ *)
 
1324
      sed -n \
 
1325
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1326
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1327
      ;;
 
1328
    *)
 
1329
      sed -n \
 
1330
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1331
      ;;
 
1332
    esac;
 
1333
}
 
1334
    echo
 
1335
 
 
1336
    cat <<\_ASBOX
 
1337
## ----------------- ##
 
1338
## Output variables. ##
 
1339
## ----------------- ##
 
1340
_ASBOX
 
1341
    echo
 
1342
    for ac_var in $ac_subst_vars
 
1343
    do
 
1344
      eval ac_val=$`echo $ac_var`
 
1345
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1346
    done | sort
 
1347
    echo
 
1348
 
 
1349
    if test -n "$ac_subst_files"; then
 
1350
      cat <<\_ASBOX
 
1351
## ------------- ##
 
1352
## Output files. ##
 
1353
## ------------- ##
 
1354
_ASBOX
 
1355
      echo
 
1356
      for ac_var in $ac_subst_files
 
1357
      do
 
1358
        eval ac_val=$`echo $ac_var`
 
1359
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1360
      done | sort
 
1361
      echo
 
1362
    fi
 
1363
 
 
1364
    if test -s confdefs.h; then
 
1365
      cat <<\_ASBOX
 
1366
## ----------- ##
 
1367
## confdefs.h. ##
 
1368
## ----------- ##
 
1369
_ASBOX
 
1370
      echo
 
1371
      sed "/^$/d" confdefs.h | sort
 
1372
      echo
 
1373
    fi
 
1374
    test "$ac_signal" != 0 &&
 
1375
      echo "$as_me: caught signal $ac_signal"
 
1376
    echo "$as_me: exit $exit_status"
 
1377
  } >&5
 
1378
  rm -f core *.core &&
 
1379
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1380
    exit $exit_status
 
1381
     ' 0
 
1382
for ac_signal in 1 2 13 15; do
 
1383
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1384
done
 
1385
ac_signal=0
 
1386
 
 
1387
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1388
rm -rf conftest* confdefs.h
 
1389
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1390
echo >confdefs.h
 
1391
 
 
1392
# Predefined preprocessor variables.
 
1393
 
 
1394
cat >>confdefs.h <<_ACEOF
 
1395
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1396
_ACEOF
 
1397
 
 
1398
 
 
1399
cat >>confdefs.h <<_ACEOF
 
1400
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1401
_ACEOF
 
1402
 
 
1403
 
 
1404
cat >>confdefs.h <<_ACEOF
 
1405
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1406
_ACEOF
 
1407
 
 
1408
 
 
1409
cat >>confdefs.h <<_ACEOF
 
1410
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1411
_ACEOF
 
1412
 
 
1413
 
 
1414
cat >>confdefs.h <<_ACEOF
 
1415
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1416
_ACEOF
 
1417
 
 
1418
 
 
1419
# Let the site file select an alternate cache file if it wants to.
 
1420
# Prefer explicitly selected file to automatically selected ones.
 
1421
if test -z "$CONFIG_SITE"; then
 
1422
  if test "x$prefix" != xNONE; then
 
1423
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1424
  else
 
1425
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1426
  fi
 
1427
fi
 
1428
for ac_site_file in $CONFIG_SITE; do
 
1429
  if test -r "$ac_site_file"; then
 
1430
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1431
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1432
    sed 's/^/| /' "$ac_site_file" >&5
 
1433
    . "$ac_site_file"
 
1434
  fi
 
1435
done
 
1436
 
 
1437
if test -r "$cache_file"; then
 
1438
  # Some versions of bash will fail to source /dev/null (special
 
1439
  # files actually), so we avoid doing that.
 
1440
  if test -f "$cache_file"; then
 
1441
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1442
echo "$as_me: loading cache $cache_file" >&6;}
 
1443
    case $cache_file in
 
1444
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1445
      *)                      . ./$cache_file;;
 
1446
    esac
 
1447
  fi
 
1448
else
 
1449
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1450
echo "$as_me: creating cache $cache_file" >&6;}
 
1451
  >$cache_file
 
1452
fi
 
1453
 
 
1454
# Check that the precious variables saved in the cache have kept the same
 
1455
# value.
 
1456
ac_cache_corrupted=false
 
1457
for ac_var in `(set) 2>&1 |
 
1458
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1459
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1460
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1461
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1462
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1463
  case $ac_old_set,$ac_new_set in
 
1464
    set,)
 
1465
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1466
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1467
      ac_cache_corrupted=: ;;
 
1468
    ,set)
 
1469
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1470
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1471
      ac_cache_corrupted=: ;;
 
1472
    ,);;
 
1473
    *)
 
1474
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1475
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1476
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1477
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1478
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1479
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1480
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1481
        ac_cache_corrupted=:
 
1482
      fi;;
 
1483
  esac
 
1484
  # Pass precious variables to config.status.
 
1485
  if test "$ac_new_set" = set; then
 
1486
    case $ac_new_val in
 
1487
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1488
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1489
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1490
    esac
 
1491
    case " $ac_configure_args " in
 
1492
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1493
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1494
    esac
 
1495
  fi
 
1496
done
 
1497
if $ac_cache_corrupted; then
 
1498
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1499
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1500
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1501
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1502
   { (exit 1); exit 1; }; }
 
1503
fi
 
1504
 
 
1505
ac_ext=c
 
1506
ac_cpp='$CPP $CPPFLAGS'
 
1507
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1508
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1509
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
 
1524
 
 
1525
 
 
1526
 
 
1527
 
 
1528
 
 
1529
ac_aux_dir=
 
1530
for ac_dir in admin $srcdir/admin; do
 
1531
  if test -f $ac_dir/install-sh; then
 
1532
    ac_aux_dir=$ac_dir
 
1533
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1534
    break
 
1535
  elif test -f $ac_dir/install.sh; then
 
1536
    ac_aux_dir=$ac_dir
 
1537
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1538
    break
 
1539
  elif test -f $ac_dir/shtool; then
 
1540
    ac_aux_dir=$ac_dir
 
1541
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1542
    break
 
1543
  fi
 
1544
done
 
1545
if test -z "$ac_aux_dir"; then
 
1546
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
 
1547
echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
 
1548
   { (exit 1); exit 1; }; }
 
1549
fi
 
1550
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1551
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1552
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1553
 
 
1554
 
 
1555
unset CDPATH
 
1556
 
 
1557
# Make sure we can run config.sub.
 
1558
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1559
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1560
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1561
   { (exit 1); exit 1; }; }
 
1562
 
 
1563
echo "$as_me:$LINENO: checking build system type" >&5
 
1564
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1565
if test "${ac_cv_build+set}" = set; then
 
1566
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1567
else
 
1568
  ac_cv_build_alias=$build_alias
 
1569
test -z "$ac_cv_build_alias" &&
 
1570
  ac_cv_build_alias=`$ac_config_guess`
 
1571
test -z "$ac_cv_build_alias" &&
 
1572
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1573
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1574
   { (exit 1); exit 1; }; }
 
1575
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1576
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1577
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1578
   { (exit 1); exit 1; }; }
 
1579
 
 
1580
fi
 
1581
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1582
echo "${ECHO_T}$ac_cv_build" >&6
 
1583
build=$ac_cv_build
 
1584
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1585
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1586
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1587
 
 
1588
 
 
1589
echo "$as_me:$LINENO: checking host system type" >&5
 
1590
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1591
if test "${ac_cv_host+set}" = set; then
 
1592
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1593
else
 
1594
  ac_cv_host_alias=$host_alias
 
1595
test -z "$ac_cv_host_alias" &&
 
1596
  ac_cv_host_alias=$ac_cv_build_alias
 
1597
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1598
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1599
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1600
   { (exit 1); exit 1; }; }
 
1601
 
 
1602
fi
 
1603
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1604
echo "${ECHO_T}$ac_cv_host" >&6
 
1605
host=$ac_cv_host
 
1606
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1607
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1608
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1609
 
 
1610
 
 
1611
echo "$as_me:$LINENO: checking target system type" >&5
 
1612
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1613
if test "${ac_cv_target+set}" = set; then
 
1614
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1615
else
 
1616
  ac_cv_target_alias=$target_alias
 
1617
test "x$ac_cv_target_alias" = "x" &&
 
1618
  ac_cv_target_alias=$ac_cv_host_alias
 
1619
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1620
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1621
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1622
   { (exit 1); exit 1; }; }
 
1623
 
 
1624
fi
 
1625
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1626
echo "${ECHO_T}$ac_cv_target" >&6
 
1627
target=$ac_cv_target
 
1628
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1629
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1630
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1631
 
 
1632
 
 
1633
# The aliases save the names the user supplied, while $host etc.
 
1634
# will get canonicalized.
 
1635
test -n "$target_alias" &&
 
1636
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1637
    NONENONEs,x,x, &&
 
1638
  program_prefix=${target_alias}-
 
1639
test "$program_prefix" != NONE &&
 
1640
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1641
# Use a double $ so make ignores it.
 
1642
test "$program_suffix" != NONE &&
 
1643
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1644
# Double any \ or $.  echo might interpret backslashes.
 
1645
# By default was `s,x,x', remove it if useless.
 
1646
cat <<\_ACEOF >conftest.sed
 
1647
s/[\\$]/&&/g;s/;s,x,x,$//
 
1648
_ACEOF
 
1649
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1650
rm conftest.sed
 
1651
 
 
1652
 
 
1653
am__api_version="1.9"
 
1654
 
 
1655
 
 
1656
          test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
 
1657
  test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
 
1658
  test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
 
1659
  # Find a good install program.  We prefer a C program (faster),
 
1660
# so one script is as good as another.  But avoid the broken or
 
1661
# incompatible versions:
 
1662
# SysV /etc/install, /usr/sbin/install
 
1663
# SunOS /usr/etc/install
 
1664
# IRIX /sbin/install
 
1665
# AIX /bin/install
 
1666
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1667
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1668
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1669
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1670
# OS/2's system install, which has a completely different semantic
 
1671
# ./install, which can be erroneously created by make from ./install.sh.
 
1672
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1673
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1674
if test -z "$INSTALL"; then
 
1675
if test "${ac_cv_path_install+set}" = set; then
 
1676
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1677
else
 
1678
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1679
for as_dir in $PATH
 
1680
do
 
1681
  IFS=$as_save_IFS
 
1682
  test -z "$as_dir" && as_dir=.
 
1683
  # Account for people who put trailing slashes in PATH elements.
 
1684
case $as_dir/ in
 
1685
  ./ | .// | /cC/* | \
 
1686
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1687
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1688
  /usr/ucb/* ) ;;
 
1689
  *)
 
1690
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1691
    # Don't use installbsd from OSF since it installs stuff as root
 
1692
    # by default.
 
1693
    for ac_prog in ginstall scoinst install; do
 
1694
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1695
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1696
          if test $ac_prog = install &&
 
1697
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1698
            # AIX install.  It has an incompatible calling convention.
 
1699
            :
 
1700
          elif test $ac_prog = install &&
 
1701
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1702
            # program-specific install script used by HP pwplus--don't use.
 
1703
            :
 
1704
          else
 
1705
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1706
            break 3
 
1707
          fi
 
1708
        fi
 
1709
      done
 
1710
    done
 
1711
    ;;
 
1712
esac
 
1713
done
 
1714
 
 
1715
 
 
1716
fi
 
1717
  if test "${ac_cv_path_install+set}" = set; then
 
1718
    INSTALL=$ac_cv_path_install
 
1719
  else
 
1720
    # As a last resort, use the slow shell script.  We don't cache a
 
1721
    # path for INSTALL within a source directory, because that will
 
1722
    # break other packages using the cache if that directory is
 
1723
    # removed, or if the path is relative.
 
1724
    INSTALL=$ac_install_sh
 
1725
  fi
 
1726
fi
 
1727
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1728
echo "${ECHO_T}$INSTALL" >&6
 
1729
 
 
1730
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1731
# It thinks the first close brace ends the variable substitution.
 
1732
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1733
 
 
1734
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1735
 
 
1736
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1737
 
 
1738
 
 
1739
  if test -z "$kde_save_INSTALL_given" ; then
 
1740
    # OK, user hasn't given any INSTALL, autoconf found one for us
 
1741
    # now we test, if it supports the -p flag
 
1742
    echo "$as_me:$LINENO: checking for -p flag to install" >&5
 
1743
echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6
 
1744
    rm -f confinst.$$.* > /dev/null 2>&1
 
1745
    echo "Testtest" > confinst.$$.orig
 
1746
    ac_res=no
 
1747
    if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
 
1748
      if test -f confinst.$$.new ; then
 
1749
        # OK, -p seems to do no harm to install
 
1750
        INSTALL="${INSTALL} -p"
 
1751
        ac_res=yes
 
1752
      fi
 
1753
    fi
 
1754
    rm -f confinst.$$.*
 
1755
    echo "$as_me:$LINENO: result: $ac_res" >&5
 
1756
echo "${ECHO_T}$ac_res" >&6
 
1757
  fi
 
1758
 
 
1759
  if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
 
1760
    INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
 
1761
  fi
 
1762
  if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
 
1763
    INSTALL_SCRIPT='${INSTALL}'
 
1764
  fi
 
1765
 
 
1766
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1767
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1768
# Just in case
 
1769
sleep 1
 
1770
echo timestamp > conftest.file
 
1771
# Do `set' in a subshell so we don't clobber the current shell's
 
1772
# arguments.  Must try -L first in case configure is actually a
 
1773
# symlink; some systems play weird games with the mod time of symlinks
 
1774
# (eg FreeBSD returns the mod time of the symlink's containing
 
1775
# directory).
 
1776
if (
 
1777
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1778
   if test "$*" = "X"; then
 
1779
      # -L didn't work.
 
1780
      set X `ls -t $srcdir/configure conftest.file`
 
1781
   fi
 
1782
   rm -f conftest.file
 
1783
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1784
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1785
 
 
1786
      # If neither matched, then we have a broken ls.  This can happen
 
1787
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1788
      # broken ls alias from the environment.  This has actually
 
1789
      # happened.  Such a system could not be considered "sane".
 
1790
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1791
alias in your environment" >&5
 
1792
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1793
alias in your environment" >&2;}
 
1794
   { (exit 1); exit 1; }; }
 
1795
   fi
 
1796
 
 
1797
   test "$2" = conftest.file
 
1798
   )
 
1799
then
 
1800
   # Ok.
 
1801
   :
 
1802
else
 
1803
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1804
Check your system clock" >&5
 
1805
echo "$as_me: error: newly created file is older than distributed files!
 
1806
Check your system clock" >&2;}
 
1807
   { (exit 1); exit 1; }; }
 
1808
fi
 
1809
echo "$as_me:$LINENO: result: yes" >&5
 
1810
echo "${ECHO_T}yes" >&6
 
1811
# expand $ac_aux_dir to an absolute path
 
1812
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1813
 
 
1814
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1815
# Use eval to expand $SHELL
 
1816
if eval "$MISSING --run true"; then
 
1817
  am_missing_run="$MISSING --run "
 
1818
else
 
1819
  am_missing_run=
 
1820
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1821
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1822
fi
 
1823
 
 
1824
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1825
  # We used to keeping the `.' as first argument, in order to
 
1826
  # allow $(mkdir_p) to be used without argument.  As in
 
1827
  #   $(mkdir_p) $(somedir)
 
1828
  # where $(somedir) is conditionally defined.  However this is wrong
 
1829
  # for two reasons:
 
1830
  #  1. if the package is installed by a user who cannot write `.'
 
1831
  #     make install will fail,
 
1832
  #  2. the above comment should most certainly read
 
1833
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1834
  #     so it does not work when $(somedir) is undefined and
 
1835
  #     $(DESTDIR) is not.
 
1836
  #  To support the latter case, we have to write
 
1837
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1838
  #  so the `.' trick is pointless.
 
1839
  mkdir_p='mkdir -p --'
 
1840
else
 
1841
  # On NextStep and OpenStep, the `mkdir' command does not
 
1842
  # recognize any option.  It will interpret all options as
 
1843
  # directories to create, and then abort because `.' already
 
1844
  # exists.
 
1845
  for d in ./-p ./--version;
 
1846
  do
 
1847
    test -d $d && rmdir $d
 
1848
  done
 
1849
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1850
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1851
    mkdir_p='$(mkinstalldirs)'
 
1852
  else
 
1853
    mkdir_p='$(install_sh) -d'
 
1854
  fi
 
1855
fi
 
1856
 
 
1857
for ac_prog in gawk mawk nawk awk
 
1858
do
 
1859
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1860
set dummy $ac_prog; ac_word=$2
 
1861
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1862
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1863
if test "${ac_cv_prog_AWK+set}" = set; then
 
1864
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1865
else
 
1866
  if test -n "$AWK"; then
 
1867
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1868
else
 
1869
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1870
for as_dir in $PATH
 
1871
do
 
1872
  IFS=$as_save_IFS
 
1873
  test -z "$as_dir" && as_dir=.
 
1874
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1875
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1876
    ac_cv_prog_AWK="$ac_prog"
 
1877
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1878
    break 2
 
1879
  fi
 
1880
done
 
1881
done
 
1882
 
 
1883
fi
 
1884
fi
 
1885
AWK=$ac_cv_prog_AWK
 
1886
if test -n "$AWK"; then
 
1887
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1888
echo "${ECHO_T}$AWK" >&6
 
1889
else
 
1890
  echo "$as_me:$LINENO: result: no" >&5
 
1891
echo "${ECHO_T}no" >&6
 
1892
fi
 
1893
 
 
1894
  test -n "$AWK" && break
 
1895
done
 
1896
 
 
1897
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1898
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1899
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1900
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1901
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1902
else
 
1903
  cat >conftest.make <<\_ACEOF
 
1904
all:
 
1905
        @echo 'ac_maketemp="$(MAKE)"'
 
1906
_ACEOF
 
1907
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1908
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1909
if test -n "$ac_maketemp"; then
 
1910
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1911
else
 
1912
  eval ac_cv_prog_make_${ac_make}_set=no
 
1913
fi
 
1914
rm -f conftest.make
 
1915
fi
 
1916
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1917
  echo "$as_me:$LINENO: result: yes" >&5
 
1918
echo "${ECHO_T}yes" >&6
 
1919
  SET_MAKE=
 
1920
else
 
1921
  echo "$as_me:$LINENO: result: no" >&5
 
1922
echo "${ECHO_T}no" >&6
 
1923
  SET_MAKE="MAKE=${MAKE-make}"
 
1924
fi
 
1925
 
 
1926
rm -rf .tst 2>/dev/null
 
1927
mkdir .tst 2>/dev/null
 
1928
if test -d .tst; then
 
1929
  am__leading_dot=.
 
1930
else
 
1931
  am__leading_dot=_
 
1932
fi
 
1933
rmdir .tst 2>/dev/null
 
1934
 
 
1935
# test to see if srcdir already configured
 
1936
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1937
   test -f $srcdir/config.status; then
 
1938
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1939
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1940
   { (exit 1); exit 1; }; }
 
1941
fi
 
1942
 
 
1943
# test whether we have cygpath
 
1944
if test -z "$CYGPATH_W"; then
 
1945
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1946
    CYGPATH_W='cygpath -w'
 
1947
  else
 
1948
    CYGPATH_W=echo
 
1949
  fi
 
1950
fi
 
1951
 
 
1952
 
 
1953
# Define the identity of the package.
 
1954
 PACKAGE=datakiosk-0.7
 
1955
 VERSION="3.4.89"
 
1956
 
 
1957
 
 
1958
cat >>confdefs.h <<_ACEOF
 
1959
#define PACKAGE "$PACKAGE"
 
1960
_ACEOF
 
1961
 
 
1962
 
 
1963
cat >>confdefs.h <<_ACEOF
 
1964
#define VERSION "$VERSION"
 
1965
_ACEOF
 
1966
 
 
1967
# Some tools Automake needs.
 
1968
 
 
1969
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1970
 
 
1971
 
 
1972
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1973
 
 
1974
 
 
1975
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1976
 
 
1977
 
 
1978
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1979
 
 
1980
 
 
1981
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1982
 
 
1983
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1984
 
 
1985
# Installed binaries are usually stripped using `strip' when the user
 
1986
# run `make install-strip'.  However `strip' might not be the right
 
1987
# tool to use in cross-compilation environments, therefore Automake
 
1988
# will honor the `STRIP' environment variable to overrule this program.
 
1989
if test "$cross_compiling" != no; then
 
1990
  if test -n "$ac_tool_prefix"; then
 
1991
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1992
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1993
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1994
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1995
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1996
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1997
else
 
1998
  if test -n "$STRIP"; then
 
1999
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2000
else
 
2001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2002
for as_dir in $PATH
 
2003
do
 
2004
  IFS=$as_save_IFS
 
2005
  test -z "$as_dir" && as_dir=.
 
2006
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2007
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2008
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2009
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2010
    break 2
 
2011
  fi
 
2012
done
 
2013
done
 
2014
 
 
2015
fi
 
2016
fi
 
2017
STRIP=$ac_cv_prog_STRIP
 
2018
if test -n "$STRIP"; then
 
2019
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
2020
echo "${ECHO_T}$STRIP" >&6
 
2021
else
 
2022
  echo "$as_me:$LINENO: result: no" >&5
 
2023
echo "${ECHO_T}no" >&6
 
2024
fi
 
2025
 
 
2026
fi
 
2027
if test -z "$ac_cv_prog_STRIP"; then
 
2028
  ac_ct_STRIP=$STRIP
 
2029
  # Extract the first word of "strip", so it can be a program name with args.
 
2030
set dummy strip; ac_word=$2
 
2031
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2032
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2033
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2034
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2035
else
 
2036
  if test -n "$ac_ct_STRIP"; then
 
2037
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2038
else
 
2039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2040
for as_dir in $PATH
 
2041
do
 
2042
  IFS=$as_save_IFS
 
2043
  test -z "$as_dir" && as_dir=.
 
2044
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2045
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2046
    ac_cv_prog_ac_ct_STRIP="strip"
 
2047
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2048
    break 2
 
2049
  fi
 
2050
done
 
2051
done
 
2052
 
 
2053
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
2054
fi
 
2055
fi
 
2056
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2057
if test -n "$ac_ct_STRIP"; then
 
2058
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2059
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
2060
else
 
2061
  echo "$as_me:$LINENO: result: no" >&5
 
2062
echo "${ECHO_T}no" >&6
 
2063
fi
 
2064
 
 
2065
  STRIP=$ac_ct_STRIP
 
2066
else
 
2067
  STRIP="$ac_cv_prog_STRIP"
 
2068
fi
 
2069
 
 
2070
fi
 
2071
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2072
 
 
2073
# We need awk for the "check" target.  The system "awk" is bad on
 
2074
# some platforms.
 
2075
# Always define AMTAR for backward compatibility.
 
2076
 
 
2077
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2078
 
 
2079
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2080
 
 
2081
 
 
2082
 
 
2083
 
 
2084
 
 
2085
 
 
2086
  unset CDPATH
 
2087
 
 
2088
 
 
2089
 
 
2090
    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"
 
2091
    test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
 
2092
    if test -n "$KDEDIRS"; then
 
2093
       kde_save_IFS=$IFS
 
2094
       IFS=:
 
2095
       for dir in $KDEDIRS; do
 
2096
            kde_default_bindirs="$dir/bin $kde_default_bindirs "
 
2097
       done
 
2098
       IFS=$kde_save_IFS
 
2099
    fi
 
2100
 
 
2101
  if test "x$prefix" = "xNONE"; then
 
2102
 
 
2103
   echo "$as_me:$LINENO: checking for kde-config" >&5
 
2104
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6
 
2105
   if test -n "$KDECONFIG"; then
 
2106
        kde_cv_path="$KDECONFIG";
 
2107
   else
 
2108
        kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
 
2109
 
 
2110
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
2111
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2112
else
 
2113
 
 
2114
        kde_cv_path="NONE"
 
2115
        kde_save_IFS=$IFS
 
2116
        IFS=':'
 
2117
        dirs=""
 
2118
        for dir in $PATH; do
 
2119
          dirs="$dirs $dir"
 
2120
        done
 
2121
        if test -z "prepend"; then        dirs="$kde_default_bindirs $dirs"
 
2122
        else      dirs="$dirs $kde_default_bindirs"
 
2123
        fi
 
2124
        IFS=$kde_save_IFS
 
2125
 
 
2126
        for dir in $dirs; do
 
2127
          if test -x "$dir/kde-config"; then
 
2128
            if test -n ""
 
2129
            then
 
2130
              evalstr="$dir/kde-config  2>&1 "
 
2131
              if eval $evalstr; then
 
2132
                kde_cv_path="$dir/kde-config"
 
2133
                break
 
2134
              fi
 
2135
            else
 
2136
                kde_cv_path="$dir/kde-config"
 
2137
                break
 
2138
            fi
 
2139
          fi
 
2140
        done
 
2141
 
 
2142
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
2143
 
 
2144
 
 
2145
fi
 
2146
 
 
2147
 
 
2148
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
2149
 
 
2150
   fi
 
2151
 
 
2152
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
2153
      echo "$as_me:$LINENO: result: not found" >&5
 
2154
echo "${ECHO_T}not found" >&6
 
2155
 
 
2156
    { { echo "$as_me:$LINENO: error: The important program kde-config was not found!
 
2157
Please check whether you installed KDE correctly.
 
2158
" >&5
 
2159
echo "$as_me: error: The important program kde-config was not found!
 
2160
Please check whether you installed KDE correctly.
 
2161
" >&2;}
 
2162
   { (exit 1); exit 1; }; }
 
2163
 
 
2164
   else
 
2165
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
2166
echo "${ECHO_T}$kde_cv_path" >&6
 
2167
      KDECONFIG=$kde_cv_path
 
2168
 
 
2169
   fi
 
2170
 
 
2171
  else
 
2172
        kde_save_PATH="$PATH"
 
2173
    PATH="$exec_prefix/bin:$prefix/bin:$PATH"
 
2174
 
 
2175
   echo "$as_me:$LINENO: checking for kde-config" >&5
 
2176
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6
 
2177
   if test -n "$KDECONFIG"; then
 
2178
        kde_cv_path="$KDECONFIG";
 
2179
   else
 
2180
        kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
 
2181
 
 
2182
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
2183
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2184
else
 
2185
 
 
2186
        kde_cv_path="NONE"
 
2187
        kde_save_IFS=$IFS
 
2188
        IFS=':'
 
2189
        dirs=""
 
2190
        for dir in $PATH; do
 
2191
          dirs="$dirs $dir"
 
2192
        done
 
2193
        if test -z "prepend"; then        dirs="$kde_default_bindirs $dirs"
 
2194
        else      dirs="$dirs $kde_default_bindirs"
 
2195
        fi
 
2196
        IFS=$kde_save_IFS
 
2197
 
 
2198
        for dir in $dirs; do
 
2199
          if test -x "$dir/kde-config"; then
 
2200
            if test -n ""
 
2201
            then
 
2202
              evalstr="$dir/kde-config  2>&1 "
 
2203
              if eval $evalstr; then
 
2204
                kde_cv_path="$dir/kde-config"
 
2205
                break
 
2206
              fi
 
2207
            else
 
2208
                kde_cv_path="$dir/kde-config"
 
2209
                break
 
2210
            fi
 
2211
          fi
 
2212
        done
 
2213
 
 
2214
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
2215
 
 
2216
 
 
2217
fi
 
2218
 
 
2219
 
 
2220
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
2221
 
 
2222
   fi
 
2223
 
 
2224
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
2225
      echo "$as_me:$LINENO: result: not found" >&5
 
2226
echo "${ECHO_T}not found" >&6
 
2227
 
 
2228
    { { echo "$as_me:$LINENO: error: The important program kde-config was not found!
 
2229
Please check whether you installed KDE correctly.
 
2230
" >&5
 
2231
echo "$as_me: error: The important program kde-config was not found!
 
2232
Please check whether you installed KDE correctly.
 
2233
" >&2;}
 
2234
   { (exit 1); exit 1; }; }
 
2235
 
 
2236
   else
 
2237
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
2238
echo "${ECHO_T}$kde_cv_path" >&6
 
2239
      KDECONFIG=$kde_cv_path
 
2240
 
 
2241
   fi
 
2242
 
 
2243
    PATH="$kde_save_PATH"
 
2244
  fi
 
2245
 
 
2246
  kde_libs_prefix=`$KDECONFIG --prefix`
 
2247
  if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
 
2248
       { { echo "$as_me:$LINENO: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
 
2249
                    This means it has been moved since you installed it.
 
2250
                    This won't work. Please recompile kdelibs for the new prefix.
 
2251
                    " >&5
 
2252
echo "$as_me: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
 
2253
                    This means it has been moved since you installed it.
 
2254
                    This won't work. Please recompile kdelibs for the new prefix.
 
2255
                    " >&2;}
 
2256
   { (exit 1); exit 1; }; }
 
2257
  fi
 
2258
  kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
 
2259
  kde_libs_suffix=`$KDECONFIG --libsuffix`
 
2260
 
 
2261
  echo "$as_me:$LINENO: checking where to install" >&5
 
2262
echo $ECHO_N "checking where to install... $ECHO_C" >&6
 
2263
  if test "x$prefix" = "xNONE"; then
 
2264
    prefix=$kde_libs_prefix
 
2265
    echo "$as_me:$LINENO: result: $prefix (as returned by kde-config)" >&5
 
2266
echo "${ECHO_T}$prefix (as returned by kde-config)" >&6
 
2267
  else
 
2268
        given_prefix=$prefix
 
2269
    echo "$as_me:$LINENO: result: $prefix (as requested)" >&5
 
2270
echo "${ECHO_T}$prefix (as requested)" >&6
 
2271
  fi
 
2272
 
 
2273
  # And delete superfluous '/' to make compares easier
 
2274
  prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
 
2275
  exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
 
2276
  given_prefix=`echo "$given_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
 
2277
 
 
2278
 
 
2279
 
 
2280
 
 
2281
 
 
2282
 
 
2283
    # Check whether --enable-fast-perl or --disable-fast-perl was given.
 
2284
if test "${enable_fast_perl+set}" = set; then
 
2285
  enableval="$enable_fast_perl"
 
2286
  with_fast_perl=$enableval
 
2287
else
 
2288
  with_fast_perl=yes
 
2289
fi;
 
2290
 
 
2291
 
 
2292
  val=
 
2293
  if test -f $srcdir/configure.files ; then
 
2294
    val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
 
2295
  fi
 
2296
  CONF_FILES=
 
2297
  if test -n "$val" ; then
 
2298
    for i in $val ; do
 
2299
      CONF_FILES="$CONF_FILES $i"
 
2300
    done
 
2301
  fi
 
2302
 
 
2303
 
 
2304
 
 
2305
 
 
2306
          ac_config_headers="$ac_config_headers config.h"
 
2307
 
 
2308
DEPDIR="${am__leading_dot}deps"
 
2309
 
 
2310
          ac_config_commands="$ac_config_commands depfiles"
 
2311
 
 
2312
 
 
2313
am_make=${MAKE-make}
 
2314
cat > confinc << 'END'
 
2315
am__doit:
 
2316
        @echo done
 
2317
.PHONY: am__doit
 
2318
END
 
2319
# If we don't find an include directive, just comment out the code.
 
2320
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2321
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2322
am__include="#"
 
2323
am__quote=
 
2324
_am_result=none
 
2325
# First try GNU make style include.
 
2326
echo "include confinc" > confmf
 
2327
# We grep out `Entering directory' and `Leaving directory'
 
2328
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2329
# In particular we don't look at `^make:' because GNU make might
 
2330
# be invoked under some other name (usually "gmake"), in which
 
2331
# case it prints its new name instead of `make'.
 
2332
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2333
   am__include=include
 
2334
   am__quote=
 
2335
   _am_result=GNU
 
2336
fi
 
2337
# Now try BSD make style include.
 
2338
if test "$am__include" = "#"; then
 
2339
   echo '.include "confinc"' > confmf
 
2340
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2341
      am__include=.include
 
2342
      am__quote="\""
 
2343
      _am_result=BSD
 
2344
   fi
 
2345
fi
 
2346
 
 
2347
 
 
2348
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2349
echo "${ECHO_T}$_am_result" >&6
 
2350
rm -f confinc confmf
 
2351
 
 
2352
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2353
if test "${enable_dependency_tracking+set}" = set; then
 
2354
  enableval="$enable_dependency_tracking"
 
2355
 
 
2356
fi;
 
2357
if test "x$enable_dependency_tracking" != xno; then
 
2358
  am_depcomp="$ac_aux_dir/depcomp"
 
2359
  AMDEPBACKSLASH='\'
 
2360
fi
 
2361
 
 
2362
 
 
2363
if test "x$enable_dependency_tracking" != xno; then
 
2364
  AMDEP_TRUE=
 
2365
  AMDEP_FALSE='#'
 
2366
else
 
2367
  AMDEP_TRUE='#'
 
2368
  AMDEP_FALSE=
 
2369
fi
 
2370
 
 
2371
 
 
2372
 
 
2373
 
 
2374
 
 
2375
 
 
2376
  # Check whether --enable-debug or --disable-debug was given.
 
2377
if test "${enable_debug+set}" = set; then
 
2378
  enableval="$enable_debug"
 
2379
 
 
2380
    case $enableval in
 
2381
      yes)
 
2382
        kde_use_debug_code="yes"
 
2383
        kde_use_debug_define=no
 
2384
        ;;
 
2385
      full)
 
2386
        kde_use_debug_code="full"
 
2387
        kde_use_debug_define=no
 
2388
        ;;
 
2389
      *)
 
2390
        kde_use_debug_code="no"
 
2391
        kde_use_debug_define=yes
 
2392
        ;;
 
2393
    esac
 
2394
 
 
2395
else
 
2396
  kde_use_debug_code="no"
 
2397
      kde_use_debug_define=no
 
2398
 
 
2399
fi;
 
2400
 
 
2401
    # Check whether --enable-dummyoption or --disable-dummyoption was given.
 
2402
if test "${enable_dummyoption+set}" = set; then
 
2403
  enableval="$enable_dummyoption"
 
2404
 
 
2405
fi;
 
2406
 
 
2407
  # Check whether --enable-strict or --disable-strict was given.
 
2408
if test "${enable_strict+set}" = set; then
 
2409
  enableval="$enable_strict"
 
2410
 
 
2411
    if test $enableval = "no"; then
 
2412
         kde_use_strict_options="no"
 
2413
       else
 
2414
         kde_use_strict_options="yes"
 
2415
    fi
 
2416
 
 
2417
else
 
2418
  kde_use_strict_options="no"
 
2419
fi;
 
2420
 
 
2421
  # Check whether --enable-warnings or --disable-warnings was given.
 
2422
if test "${enable_warnings+set}" = set; then
 
2423
  enableval="$enable_warnings"
 
2424
 
 
2425
    if test $enableval = "no"; then
 
2426
         kde_use_warnings="no"
 
2427
       else
 
2428
         kde_use_warnings="yes"
 
2429
    fi
 
2430
 
 
2431
else
 
2432
  kde_use_warnings="yes"
 
2433
fi;
 
2434
 
 
2435
    if test "$kde_use_debug_code" != "no"; then
 
2436
    kde_use_warnings=yes
 
2437
  fi
 
2438
 
 
2439
  # Check whether --enable-profile or --disable-profile was given.
 
2440
if test "${enable_profile+set}" = set; then
 
2441
  enableval="$enable_profile"
 
2442
  kde_use_profiling=$enableval
 
2443
else
 
2444
  kde_use_profiling="no"
 
2445
 
 
2446
fi;
 
2447
 
 
2448
    CFLAGS=" $CFLAGS"
 
2449
 
 
2450
  ac_ext=c
 
2451
ac_cpp='$CPP $CPPFLAGS'
 
2452
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2453
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2454
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2455
if test -n "$ac_tool_prefix"; then
 
2456
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2457
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2458
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2459
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2460
if test "${ac_cv_prog_CC+set}" = set; then
 
2461
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2462
else
 
2463
  if test -n "$CC"; then
 
2464
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2465
else
 
2466
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2467
for as_dir in $PATH
 
2468
do
 
2469
  IFS=$as_save_IFS
 
2470
  test -z "$as_dir" && as_dir=.
 
2471
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2472
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2473
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2474
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2475
    break 2
 
2476
  fi
 
2477
done
 
2478
done
 
2479
 
 
2480
fi
 
2481
fi
 
2482
CC=$ac_cv_prog_CC
 
2483
if test -n "$CC"; then
 
2484
  echo "$as_me:$LINENO: result: $CC" >&5
 
2485
echo "${ECHO_T}$CC" >&6
 
2486
else
 
2487
  echo "$as_me:$LINENO: result: no" >&5
 
2488
echo "${ECHO_T}no" >&6
 
2489
fi
 
2490
 
 
2491
fi
 
2492
if test -z "$ac_cv_prog_CC"; then
 
2493
  ac_ct_CC=$CC
 
2494
  # Extract the first word of "gcc", so it can be a program name with args.
 
2495
set dummy gcc; ac_word=$2
 
2496
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2497
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2498
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2499
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2500
else
 
2501
  if test -n "$ac_ct_CC"; then
 
2502
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2503
else
 
2504
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2505
for as_dir in $PATH
 
2506
do
 
2507
  IFS=$as_save_IFS
 
2508
  test -z "$as_dir" && as_dir=.
 
2509
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2510
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2511
    ac_cv_prog_ac_ct_CC="gcc"
 
2512
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2513
    break 2
 
2514
  fi
 
2515
done
 
2516
done
 
2517
 
 
2518
fi
 
2519
fi
 
2520
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2521
if test -n "$ac_ct_CC"; then
 
2522
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2523
echo "${ECHO_T}$ac_ct_CC" >&6
 
2524
else
 
2525
  echo "$as_me:$LINENO: result: no" >&5
 
2526
echo "${ECHO_T}no" >&6
 
2527
fi
 
2528
 
 
2529
  CC=$ac_ct_CC
 
2530
else
 
2531
  CC="$ac_cv_prog_CC"
 
2532
fi
 
2533
 
 
2534
if test -z "$CC"; then
 
2535
  if test -n "$ac_tool_prefix"; then
 
2536
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2537
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2538
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2539
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2540
if test "${ac_cv_prog_CC+set}" = set; then
 
2541
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2542
else
 
2543
  if test -n "$CC"; then
 
2544
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2545
else
 
2546
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2547
for as_dir in $PATH
 
2548
do
 
2549
  IFS=$as_save_IFS
 
2550
  test -z "$as_dir" && as_dir=.
 
2551
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2552
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2553
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2554
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2555
    break 2
 
2556
  fi
 
2557
done
 
2558
done
 
2559
 
 
2560
fi
 
2561
fi
 
2562
CC=$ac_cv_prog_CC
 
2563
if test -n "$CC"; then
 
2564
  echo "$as_me:$LINENO: result: $CC" >&5
 
2565
echo "${ECHO_T}$CC" >&6
 
2566
else
 
2567
  echo "$as_me:$LINENO: result: no" >&5
 
2568
echo "${ECHO_T}no" >&6
 
2569
fi
 
2570
 
 
2571
fi
 
2572
if test -z "$ac_cv_prog_CC"; then
 
2573
  ac_ct_CC=$CC
 
2574
  # Extract the first word of "cc", so it can be a program name with args.
 
2575
set dummy cc; ac_word=$2
 
2576
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2577
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2578
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2579
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2580
else
 
2581
  if test -n "$ac_ct_CC"; then
 
2582
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2583
else
 
2584
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2585
for as_dir in $PATH
 
2586
do
 
2587
  IFS=$as_save_IFS
 
2588
  test -z "$as_dir" && as_dir=.
 
2589
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2590
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2591
    ac_cv_prog_ac_ct_CC="cc"
 
2592
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2593
    break 2
 
2594
  fi
 
2595
done
 
2596
done
 
2597
 
 
2598
fi
 
2599
fi
 
2600
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2601
if test -n "$ac_ct_CC"; then
 
2602
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2603
echo "${ECHO_T}$ac_ct_CC" >&6
 
2604
else
 
2605
  echo "$as_me:$LINENO: result: no" >&5
 
2606
echo "${ECHO_T}no" >&6
 
2607
fi
 
2608
 
 
2609
  CC=$ac_ct_CC
 
2610
else
 
2611
  CC="$ac_cv_prog_CC"
 
2612
fi
 
2613
 
 
2614
fi
 
2615
if test -z "$CC"; then
 
2616
  # Extract the first word of "cc", so it can be a program name with args.
 
2617
set dummy cc; ac_word=$2
 
2618
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2619
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2620
if test "${ac_cv_prog_CC+set}" = set; then
 
2621
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2622
else
 
2623
  if test -n "$CC"; then
 
2624
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2625
else
 
2626
  ac_prog_rejected=no
 
2627
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2628
for as_dir in $PATH
 
2629
do
 
2630
  IFS=$as_save_IFS
 
2631
  test -z "$as_dir" && as_dir=.
 
2632
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2633
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2634
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2635
       ac_prog_rejected=yes
 
2636
       continue
 
2637
     fi
 
2638
    ac_cv_prog_CC="cc"
 
2639
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2640
    break 2
 
2641
  fi
 
2642
done
 
2643
done
 
2644
 
 
2645
if test $ac_prog_rejected = yes; then
 
2646
  # We found a bogon in the path, so make sure we never use it.
 
2647
  set dummy $ac_cv_prog_CC
 
2648
  shift
 
2649
  if test $# != 0; then
 
2650
    # We chose a different compiler from the bogus one.
 
2651
    # However, it has the same basename, so the bogon will be chosen
 
2652
    # first if we set CC to just the basename; use the full file name.
 
2653
    shift
 
2654
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2655
  fi
 
2656
fi
 
2657
fi
 
2658
fi
 
2659
CC=$ac_cv_prog_CC
 
2660
if test -n "$CC"; then
 
2661
  echo "$as_me:$LINENO: result: $CC" >&5
 
2662
echo "${ECHO_T}$CC" >&6
 
2663
else
 
2664
  echo "$as_me:$LINENO: result: no" >&5
 
2665
echo "${ECHO_T}no" >&6
 
2666
fi
 
2667
 
 
2668
fi
 
2669
if test -z "$CC"; then
 
2670
  if test -n "$ac_tool_prefix"; then
 
2671
  for ac_prog in cl
 
2672
  do
 
2673
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2674
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2675
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2676
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2677
if test "${ac_cv_prog_CC+set}" = set; then
 
2678
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2679
else
 
2680
  if test -n "$CC"; then
 
2681
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2682
else
 
2683
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2684
for as_dir in $PATH
 
2685
do
 
2686
  IFS=$as_save_IFS
 
2687
  test -z "$as_dir" && as_dir=.
 
2688
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2689
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2690
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2691
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2692
    break 2
 
2693
  fi
 
2694
done
 
2695
done
 
2696
 
 
2697
fi
 
2698
fi
 
2699
CC=$ac_cv_prog_CC
 
2700
if test -n "$CC"; then
 
2701
  echo "$as_me:$LINENO: result: $CC" >&5
 
2702
echo "${ECHO_T}$CC" >&6
 
2703
else
 
2704
  echo "$as_me:$LINENO: result: no" >&5
 
2705
echo "${ECHO_T}no" >&6
 
2706
fi
 
2707
 
 
2708
    test -n "$CC" && break
 
2709
  done
 
2710
fi
 
2711
if test -z "$CC"; then
 
2712
  ac_ct_CC=$CC
 
2713
  for ac_prog in cl
 
2714
do
 
2715
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2716
set dummy $ac_prog; ac_word=$2
 
2717
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2718
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2719
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2721
else
 
2722
  if test -n "$ac_ct_CC"; then
 
2723
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2724
else
 
2725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2726
for as_dir in $PATH
 
2727
do
 
2728
  IFS=$as_save_IFS
 
2729
  test -z "$as_dir" && as_dir=.
 
2730
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2731
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2732
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2733
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2734
    break 2
 
2735
  fi
 
2736
done
 
2737
done
 
2738
 
 
2739
fi
 
2740
fi
 
2741
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2742
if test -n "$ac_ct_CC"; then
 
2743
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2744
echo "${ECHO_T}$ac_ct_CC" >&6
 
2745
else
 
2746
  echo "$as_me:$LINENO: result: no" >&5
 
2747
echo "${ECHO_T}no" >&6
 
2748
fi
 
2749
 
 
2750
  test -n "$ac_ct_CC" && break
 
2751
done
 
2752
 
 
2753
  CC=$ac_ct_CC
 
2754
fi
 
2755
 
 
2756
fi
 
2757
 
 
2758
 
 
2759
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2760
See \`config.log' for more details." >&5
 
2761
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2762
See \`config.log' for more details." >&2;}
 
2763
   { (exit 1); exit 1; }; }
 
2764
 
 
2765
# Provide some information about the compiler.
 
2766
echo "$as_me:$LINENO:" \
 
2767
     "checking for C compiler version" >&5
 
2768
ac_compiler=`set X $ac_compile; echo $2`
 
2769
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2770
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2771
  ac_status=$?
 
2772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2773
  (exit $ac_status); }
 
2774
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2775
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2776
  ac_status=$?
 
2777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2778
  (exit $ac_status); }
 
2779
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2780
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2781
  ac_status=$?
 
2782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2783
  (exit $ac_status); }
 
2784
 
 
2785
cat >conftest.$ac_ext <<_ACEOF
 
2786
/* confdefs.h.  */
 
2787
_ACEOF
 
2788
cat confdefs.h >>conftest.$ac_ext
 
2789
cat >>conftest.$ac_ext <<_ACEOF
 
2790
/* end confdefs.h.  */
 
2791
 
 
2792
int
 
2793
main ()
 
2794
{
 
2795
 
 
2796
  ;
 
2797
  return 0;
 
2798
}
 
2799
_ACEOF
 
2800
ac_clean_files_save=$ac_clean_files
 
2801
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2802
# Try to create an executable without -o first, disregard a.out.
 
2803
# It will help us diagnose broken compilers, and finding out an intuition
 
2804
# of exeext.
 
2805
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2806
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2807
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2808
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2809
  (eval $ac_link_default) 2>&5
 
2810
  ac_status=$?
 
2811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2812
  (exit $ac_status); }; then
 
2813
  # Find the output, starting from the most likely.  This scheme is
 
2814
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2815
# resort.
 
2816
 
 
2817
# Be careful to initialize this variable, since it used to be cached.
 
2818
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2819
ac_cv_exeext=
 
2820
# b.out is created by i960 compilers.
 
2821
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2822
do
 
2823
  test -f "$ac_file" || continue
 
2824
  case $ac_file in
 
2825
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2826
        ;;
 
2827
    conftest.$ac_ext )
 
2828
        # This is the source file.
 
2829
        ;;
 
2830
    [ab].out )
 
2831
        # We found the default executable, but exeext='' is most
 
2832
        # certainly right.
 
2833
        break;;
 
2834
    *.* )
 
2835
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2836
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2837
        # but it would be cool to find out if it's true.  Does anybody
 
2838
        # maintain Libtool? --akim.
 
2839
        export ac_cv_exeext
 
2840
        break;;
 
2841
    * )
 
2842
        break;;
 
2843
  esac
 
2844
done
 
2845
else
 
2846
  echo "$as_me: failed program was:" >&5
 
2847
sed 's/^/| /' conftest.$ac_ext >&5
 
2848
 
 
2849
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2850
See \`config.log' for more details." >&5
 
2851
echo "$as_me: error: C compiler cannot create executables
 
2852
See \`config.log' for more details." >&2;}
 
2853
   { (exit 77); exit 77; }; }
 
2854
fi
 
2855
 
 
2856
ac_exeext=$ac_cv_exeext
 
2857
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2858
echo "${ECHO_T}$ac_file" >&6
 
2859
 
 
2860
# Check the compiler produces executables we can run.  If not, either
 
2861
# the compiler is broken, or we cross compile.
 
2862
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2863
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2864
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2865
# If not cross compiling, check that we can run a simple program.
 
2866
if test "$cross_compiling" != yes; then
 
2867
  if { ac_try='./$ac_file'
 
2868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2869
  (eval $ac_try) 2>&5
 
2870
  ac_status=$?
 
2871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2872
  (exit $ac_status); }; }; then
 
2873
    cross_compiling=no
 
2874
  else
 
2875
    if test "$cross_compiling" = maybe; then
 
2876
        cross_compiling=yes
 
2877
    else
 
2878
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2879
If you meant to cross compile, use \`--host'.
 
2880
See \`config.log' for more details." >&5
 
2881
echo "$as_me: error: cannot run C compiled programs.
 
2882
If you meant to cross compile, use \`--host'.
 
2883
See \`config.log' for more details." >&2;}
 
2884
   { (exit 1); exit 1; }; }
 
2885
    fi
 
2886
  fi
 
2887
fi
 
2888
echo "$as_me:$LINENO: result: yes" >&5
 
2889
echo "${ECHO_T}yes" >&6
 
2890
 
 
2891
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2892
ac_clean_files=$ac_clean_files_save
 
2893
# Check the compiler produces executables we can run.  If not, either
 
2894
# the compiler is broken, or we cross compile.
 
2895
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2896
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2897
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2898
echo "${ECHO_T}$cross_compiling" >&6
 
2899
 
 
2900
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2901
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2902
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2903
  (eval $ac_link) 2>&5
 
2904
  ac_status=$?
 
2905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2906
  (exit $ac_status); }; then
 
2907
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2908
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2909
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2910
# `rm'.
 
2911
for ac_file in conftest.exe conftest conftest.*; do
 
2912
  test -f "$ac_file" || continue
 
2913
  case $ac_file in
 
2914
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2915
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2916
          export ac_cv_exeext
 
2917
          break;;
 
2918
    * ) break;;
 
2919
  esac
 
2920
done
 
2921
else
 
2922
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2923
See \`config.log' for more details." >&5
 
2924
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2925
See \`config.log' for more details." >&2;}
 
2926
   { (exit 1); exit 1; }; }
 
2927
fi
 
2928
 
 
2929
rm -f conftest$ac_cv_exeext
 
2930
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2931
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2932
 
 
2933
rm -f conftest.$ac_ext
 
2934
EXEEXT=$ac_cv_exeext
 
2935
ac_exeext=$EXEEXT
 
2936
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2937
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2938
if test "${ac_cv_objext+set}" = set; then
 
2939
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2940
else
 
2941
  cat >conftest.$ac_ext <<_ACEOF
 
2942
/* confdefs.h.  */
 
2943
_ACEOF
 
2944
cat confdefs.h >>conftest.$ac_ext
 
2945
cat >>conftest.$ac_ext <<_ACEOF
 
2946
/* end confdefs.h.  */
 
2947
 
 
2948
int
 
2949
main ()
 
2950
{
 
2951
 
 
2952
  ;
 
2953
  return 0;
 
2954
}
 
2955
_ACEOF
 
2956
rm -f conftest.o conftest.obj
 
2957
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2958
  (eval $ac_compile) 2>&5
 
2959
  ac_status=$?
 
2960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2961
  (exit $ac_status); }; then
 
2962
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2963
  case $ac_file in
 
2964
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2965
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2966
       break;;
 
2967
  esac
 
2968
done
 
2969
else
 
2970
  echo "$as_me: failed program was:" >&5
 
2971
sed 's/^/| /' conftest.$ac_ext >&5
 
2972
 
 
2973
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2974
See \`config.log' for more details." >&5
 
2975
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2976
See \`config.log' for more details." >&2;}
 
2977
   { (exit 1); exit 1; }; }
 
2978
fi
 
2979
 
 
2980
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2981
fi
 
2982
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2983
echo "${ECHO_T}$ac_cv_objext" >&6
 
2984
OBJEXT=$ac_cv_objext
 
2985
ac_objext=$OBJEXT
 
2986
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2987
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2988
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2989
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2990
else
 
2991
  cat >conftest.$ac_ext <<_ACEOF
 
2992
/* confdefs.h.  */
 
2993
_ACEOF
 
2994
cat confdefs.h >>conftest.$ac_ext
 
2995
cat >>conftest.$ac_ext <<_ACEOF
 
2996
/* end confdefs.h.  */
 
2997
 
 
2998
int
 
2999
main ()
 
3000
{
 
3001
#ifndef __GNUC__
 
3002
       choke me
 
3003
#endif
 
3004
 
 
3005
  ;
 
3006
  return 0;
 
3007
}
 
3008
_ACEOF
 
3009
rm -f conftest.$ac_objext
 
3010
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3011
  (eval $ac_compile) 2>conftest.er1
 
3012
  ac_status=$?
 
3013
  grep -v '^ *+' conftest.er1 >conftest.err
 
3014
  rm -f conftest.er1
 
3015
  cat conftest.err >&5
 
3016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3017
  (exit $ac_status); } &&
 
3018
         { ac_try='test -z "$ac_c_werror_flag"
 
3019
                         || test ! -s conftest.err'
 
3020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3021
  (eval $ac_try) 2>&5
 
3022
  ac_status=$?
 
3023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3024
  (exit $ac_status); }; } &&
 
3025
         { ac_try='test -s conftest.$ac_objext'
 
3026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3027
  (eval $ac_try) 2>&5
 
3028
  ac_status=$?
 
3029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3030
  (exit $ac_status); }; }; then
 
3031
  ac_compiler_gnu=yes
 
3032
else
 
3033
  echo "$as_me: failed program was:" >&5
 
3034
sed 's/^/| /' conftest.$ac_ext >&5
 
3035
 
 
3036
ac_compiler_gnu=no
 
3037
fi
 
3038
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3039
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3040
 
 
3041
fi
 
3042
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3043
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3044
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3045
ac_test_CFLAGS=${CFLAGS+set}
 
3046
ac_save_CFLAGS=$CFLAGS
 
3047
CFLAGS="-g"
 
3048
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3049
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3050
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3052
else
 
3053
  cat >conftest.$ac_ext <<_ACEOF
 
3054
/* confdefs.h.  */
 
3055
_ACEOF
 
3056
cat confdefs.h >>conftest.$ac_ext
 
3057
cat >>conftest.$ac_ext <<_ACEOF
 
3058
/* end confdefs.h.  */
 
3059
 
 
3060
int
 
3061
main ()
 
3062
{
 
3063
 
 
3064
  ;
 
3065
  return 0;
 
3066
}
 
3067
_ACEOF
 
3068
rm -f conftest.$ac_objext
 
3069
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3070
  (eval $ac_compile) 2>conftest.er1
 
3071
  ac_status=$?
 
3072
  grep -v '^ *+' conftest.er1 >conftest.err
 
3073
  rm -f conftest.er1
 
3074
  cat conftest.err >&5
 
3075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3076
  (exit $ac_status); } &&
 
3077
         { ac_try='test -z "$ac_c_werror_flag"
 
3078
                         || test ! -s conftest.err'
 
3079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3080
  (eval $ac_try) 2>&5
 
3081
  ac_status=$?
 
3082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3083
  (exit $ac_status); }; } &&
 
3084
         { ac_try='test -s conftest.$ac_objext'
 
3085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3086
  (eval $ac_try) 2>&5
 
3087
  ac_status=$?
 
3088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3089
  (exit $ac_status); }; }; then
 
3090
  ac_cv_prog_cc_g=yes
 
3091
else
 
3092
  echo "$as_me: failed program was:" >&5
 
3093
sed 's/^/| /' conftest.$ac_ext >&5
 
3094
 
 
3095
ac_cv_prog_cc_g=no
 
3096
fi
 
3097
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3098
fi
 
3099
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3100
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3101
if test "$ac_test_CFLAGS" = set; then
 
3102
  CFLAGS=$ac_save_CFLAGS
 
3103
elif test $ac_cv_prog_cc_g = yes; then
 
3104
  if test "$GCC" = yes; then
 
3105
    CFLAGS="-g -O2"
 
3106
  else
 
3107
    CFLAGS="-g"
 
3108
  fi
 
3109
else
 
3110
  if test "$GCC" = yes; then
 
3111
    CFLAGS="-O2"
 
3112
  else
 
3113
    CFLAGS=
 
3114
  fi
 
3115
fi
 
3116
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
3117
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
3118
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3119
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3120
else
 
3121
  ac_cv_prog_cc_stdc=no
 
3122
ac_save_CC=$CC
 
3123
cat >conftest.$ac_ext <<_ACEOF
 
3124
/* confdefs.h.  */
 
3125
_ACEOF
 
3126
cat confdefs.h >>conftest.$ac_ext
 
3127
cat >>conftest.$ac_ext <<_ACEOF
 
3128
/* end confdefs.h.  */
 
3129
#include <stdarg.h>
 
3130
#include <stdio.h>
 
3131
#include <sys/types.h>
 
3132
#include <sys/stat.h>
 
3133
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3134
struct buf { int x; };
 
3135
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3136
static char *e (p, i)
 
3137
     char **p;
 
3138
     int i;
 
3139
{
 
3140
  return p[i];
 
3141
}
 
3142
static char *f (char * (*g) (char **, int), char **p, ...)
 
3143
{
 
3144
  char *s;
 
3145
  va_list v;
 
3146
  va_start (v,p);
 
3147
  s = g (p, va_arg (v,int));
 
3148
  va_end (v);
 
3149
  return s;
 
3150
}
 
3151
 
 
3152
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3153
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3154
   These don't provoke an error unfortunately, instead are silently treated
 
3155
   as 'x'.  The following induces an error, until -std1 is added to get
 
3156
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3157
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3158
   that's true only with -std1.  */
 
3159
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3160
 
 
3161
int test (int i, double x);
 
3162
struct s1 {int (*f) (int a);};
 
3163
struct s2 {int (*f) (double a);};
 
3164
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3165
int argc;
 
3166
char **argv;
 
3167
int
 
3168
main ()
 
3169
{
 
3170
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3171
  ;
 
3172
  return 0;
 
3173
}
 
3174
_ACEOF
 
3175
# Don't try gcc -ansi; that turns off useful extensions and
 
3176
# breaks some systems' header files.
 
3177
# AIX                   -qlanglvl=ansi
 
3178
# Ultrix and OSF/1      -std1
 
3179
# HP-UX 10.20 and later -Ae
 
3180
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
3181
# SVR4                  -Xc -D__EXTENSIONS__
 
3182
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3183
do
 
3184
  CC="$ac_save_CC $ac_arg"
 
3185
  rm -f conftest.$ac_objext
 
3186
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3187
  (eval $ac_compile) 2>conftest.er1
 
3188
  ac_status=$?
 
3189
  grep -v '^ *+' conftest.er1 >conftest.err
 
3190
  rm -f conftest.er1
 
3191
  cat conftest.err >&5
 
3192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3193
  (exit $ac_status); } &&
 
3194
         { ac_try='test -z "$ac_c_werror_flag"
 
3195
                         || test ! -s conftest.err'
 
3196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3197
  (eval $ac_try) 2>&5
 
3198
  ac_status=$?
 
3199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3200
  (exit $ac_status); }; } &&
 
3201
         { ac_try='test -s conftest.$ac_objext'
 
3202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3203
  (eval $ac_try) 2>&5
 
3204
  ac_status=$?
 
3205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3206
  (exit $ac_status); }; }; then
 
3207
  ac_cv_prog_cc_stdc=$ac_arg
 
3208
break
 
3209
else
 
3210
  echo "$as_me: failed program was:" >&5
 
3211
sed 's/^/| /' conftest.$ac_ext >&5
 
3212
 
 
3213
fi
 
3214
rm -f conftest.err conftest.$ac_objext
 
3215
done
 
3216
rm -f conftest.$ac_ext conftest.$ac_objext
 
3217
CC=$ac_save_CC
 
3218
 
 
3219
fi
 
3220
 
 
3221
case "x$ac_cv_prog_cc_stdc" in
 
3222
  x|xno)
 
3223
    echo "$as_me:$LINENO: result: none needed" >&5
 
3224
echo "${ECHO_T}none needed" >&6 ;;
 
3225
  *)
 
3226
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
3227
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
3228
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3229
esac
 
3230
 
 
3231
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
3232
# in C++ we need to declare it.  In case someone uses the same compiler
 
3233
# for both compiling C and C++ we need to have the C++ compiler decide
 
3234
# the declaration of exit, since it's the most demanding environment.
 
3235
cat >conftest.$ac_ext <<_ACEOF
 
3236
#ifndef __cplusplus
 
3237
  choke me
 
3238
#endif
 
3239
_ACEOF
 
3240
rm -f conftest.$ac_objext
 
3241
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3242
  (eval $ac_compile) 2>conftest.er1
 
3243
  ac_status=$?
 
3244
  grep -v '^ *+' conftest.er1 >conftest.err
 
3245
  rm -f conftest.er1
 
3246
  cat conftest.err >&5
 
3247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3248
  (exit $ac_status); } &&
 
3249
         { ac_try='test -z "$ac_c_werror_flag"
 
3250
                         || test ! -s conftest.err'
 
3251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3252
  (eval $ac_try) 2>&5
 
3253
  ac_status=$?
 
3254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3255
  (exit $ac_status); }; } &&
 
3256
         { ac_try='test -s conftest.$ac_objext'
 
3257
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3258
  (eval $ac_try) 2>&5
 
3259
  ac_status=$?
 
3260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3261
  (exit $ac_status); }; }; then
 
3262
  for ac_declaration in \
 
3263
   '' \
 
3264
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3265
   'extern "C" void std::exit (int); using std::exit;' \
 
3266
   'extern "C" void exit (int) throw ();' \
 
3267
   'extern "C" void exit (int);' \
 
3268
   'void exit (int);'
 
3269
do
 
3270
  cat >conftest.$ac_ext <<_ACEOF
 
3271
/* confdefs.h.  */
 
3272
_ACEOF
 
3273
cat confdefs.h >>conftest.$ac_ext
 
3274
cat >>conftest.$ac_ext <<_ACEOF
 
3275
/* end confdefs.h.  */
 
3276
$ac_declaration
 
3277
#include <stdlib.h>
 
3278
int
 
3279
main ()
 
3280
{
 
3281
exit (42);
 
3282
  ;
 
3283
  return 0;
 
3284
}
 
3285
_ACEOF
 
3286
rm -f conftest.$ac_objext
 
3287
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3288
  (eval $ac_compile) 2>conftest.er1
 
3289
  ac_status=$?
 
3290
  grep -v '^ *+' conftest.er1 >conftest.err
 
3291
  rm -f conftest.er1
 
3292
  cat conftest.err >&5
 
3293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3294
  (exit $ac_status); } &&
 
3295
         { ac_try='test -z "$ac_c_werror_flag"
 
3296
                         || test ! -s conftest.err'
 
3297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3298
  (eval $ac_try) 2>&5
 
3299
  ac_status=$?
 
3300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3301
  (exit $ac_status); }; } &&
 
3302
         { ac_try='test -s conftest.$ac_objext'
 
3303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3304
  (eval $ac_try) 2>&5
 
3305
  ac_status=$?
 
3306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3307
  (exit $ac_status); }; }; then
 
3308
  :
 
3309
else
 
3310
  echo "$as_me: failed program was:" >&5
 
3311
sed 's/^/| /' conftest.$ac_ext >&5
 
3312
 
 
3313
continue
 
3314
fi
 
3315
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3316
  cat >conftest.$ac_ext <<_ACEOF
 
3317
/* confdefs.h.  */
 
3318
_ACEOF
 
3319
cat confdefs.h >>conftest.$ac_ext
 
3320
cat >>conftest.$ac_ext <<_ACEOF
 
3321
/* end confdefs.h.  */
 
3322
$ac_declaration
 
3323
int
 
3324
main ()
 
3325
{
 
3326
exit (42);
 
3327
  ;
 
3328
  return 0;
 
3329
}
 
3330
_ACEOF
 
3331
rm -f conftest.$ac_objext
 
3332
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3333
  (eval $ac_compile) 2>conftest.er1
 
3334
  ac_status=$?
 
3335
  grep -v '^ *+' conftest.er1 >conftest.err
 
3336
  rm -f conftest.er1
 
3337
  cat conftest.err >&5
 
3338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3339
  (exit $ac_status); } &&
 
3340
         { ac_try='test -z "$ac_c_werror_flag"
 
3341
                         || test ! -s conftest.err'
 
3342
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3343
  (eval $ac_try) 2>&5
 
3344
  ac_status=$?
 
3345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3346
  (exit $ac_status); }; } &&
 
3347
         { ac_try='test -s conftest.$ac_objext'
 
3348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3349
  (eval $ac_try) 2>&5
 
3350
  ac_status=$?
 
3351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3352
  (exit $ac_status); }; }; then
 
3353
  break
 
3354
else
 
3355
  echo "$as_me: failed program was:" >&5
 
3356
sed 's/^/| /' conftest.$ac_ext >&5
 
3357
 
 
3358
fi
 
3359
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3360
done
 
3361
rm -f conftest*
 
3362
if test -n "$ac_declaration"; then
 
3363
  echo '#ifdef __cplusplus' >>confdefs.h
 
3364
  echo $ac_declaration      >>confdefs.h
 
3365
  echo '#endif'             >>confdefs.h
 
3366
fi
 
3367
 
 
3368
else
 
3369
  echo "$as_me: failed program was:" >&5
 
3370
sed 's/^/| /' conftest.$ac_ext >&5
 
3371
 
 
3372
fi
 
3373
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3374
ac_ext=c
 
3375
ac_cpp='$CPP $CPPFLAGS'
 
3376
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3377
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3378
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3379
 
 
3380
depcc="$CC"   am_compiler_list=
 
3381
 
 
3382
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3383
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3384
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3385
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3386
else
 
3387
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3388
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3389
  # making bogus files that we don't know about and never remove.  For
 
3390
  # instance it was reported that on HP-UX the gcc test will end up
 
3391
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3392
  # in D'.
 
3393
  mkdir conftest.dir
 
3394
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3395
  # using a relative directory.
 
3396
  cp "$am_depcomp" conftest.dir
 
3397
  cd conftest.dir
 
3398
  # We will build objects and dependencies in a subdirectory because
 
3399
  # it helps to detect inapplicable dependency modes.  For instance
 
3400
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3401
  # side effect of compilation, but ICC will put the dependencies in
 
3402
  # the current directory while Tru64 will put them in the object
 
3403
  # directory.
 
3404
  mkdir sub
 
3405
 
 
3406
  am_cv_CC_dependencies_compiler_type=none
 
3407
  if test "$am_compiler_list" = ""; then
 
3408
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3409
  fi
 
3410
  for depmode in $am_compiler_list; do
 
3411
    # Setup a source with many dependencies, because some compilers
 
3412
    # like to wrap large dependency lists on column 80 (with \), and
 
3413
    # we should not choose a depcomp mode which is confused by this.
 
3414
    #
 
3415
    # We need to recreate these files for each test, as the compiler may
 
3416
    # overwrite some of them when testing with obscure command lines.
 
3417
    # This happens at least with the AIX C compiler.
 
3418
    : > sub/conftest.c
 
3419
    for i in 1 2 3 4 5 6; do
 
3420
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3421
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3422
      # Solaris 8's {/usr,}/bin/sh.
 
3423
      touch sub/conftst$i.h
 
3424
    done
 
3425
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3426
 
 
3427
    case $depmode in
 
3428
    nosideeffect)
 
3429
      # after this tag, mechanisms are not by side-effect, so they'll
 
3430
      # only be used when explicitly requested
 
3431
      if test "x$enable_dependency_tracking" = xyes; then
 
3432
        continue
 
3433
      else
 
3434
        break
 
3435
      fi
 
3436
      ;;
 
3437
    none) break ;;
 
3438
    esac
 
3439
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3440
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3441
    # handle `-M -o', and we need to detect this.
 
3442
    if depmode=$depmode \
 
3443
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3444
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3445
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3446
         >/dev/null 2>conftest.err &&
 
3447
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3448
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3449
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3450
      # icc doesn't choke on unknown options, it will just issue warnings
 
3451
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3452
      # that says an option was ignored or not supported.
 
3453
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3454
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3455
      # The diagnosis changed in icc 8.0:
 
3456
      #   icc: Command line remark: option '-MP' not supported
 
3457
      if (grep 'ignoring option' conftest.err ||
 
3458
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3459
        am_cv_CC_dependencies_compiler_type=$depmode
 
3460
        break
 
3461
      fi
 
3462
    fi
 
3463
  done
 
3464
 
 
3465
  cd ..
 
3466
  rm -rf conftest.dir
 
3467
else
 
3468
  am_cv_CC_dependencies_compiler_type=none
 
3469
fi
 
3470
 
 
3471
fi
 
3472
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3473
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3474
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3475
 
 
3476
 
 
3477
 
 
3478
if
 
3479
  test "x$enable_dependency_tracking" != xno \
 
3480
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3481
  am__fastdepCC_TRUE=
 
3482
  am__fastdepCC_FALSE='#'
 
3483
else
 
3484
  am__fastdepCC_TRUE='#'
 
3485
  am__fastdepCC_FALSE=
 
3486
fi
 
3487
 
 
3488
 
 
3489
 
 
3490
  ac_ext=c
 
3491
ac_cpp='$CPP $CPPFLAGS'
 
3492
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3493
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3494
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3495
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3496
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3497
# On Suns, sometimes $CPP names a directory.
 
3498
if test -n "$CPP" && test -d "$CPP"; then
 
3499
  CPP=
 
3500
fi
 
3501
if test -z "$CPP"; then
 
3502
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3503
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3504
else
 
3505
      # Double quotes because CPP needs to be expanded
 
3506
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3507
    do
 
3508
      ac_preproc_ok=false
 
3509
for ac_c_preproc_warn_flag in '' yes
 
3510
do
 
3511
  # Use a header file that comes with gcc, so configuring glibc
 
3512
  # with a fresh cross-compiler works.
 
3513
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3514
  # <limits.h> exists even on freestanding compilers.
 
3515
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3516
  # not just through cpp. "Syntax error" is here to catch this case.
 
3517
  cat >conftest.$ac_ext <<_ACEOF
 
3518
/* confdefs.h.  */
 
3519
_ACEOF
 
3520
cat confdefs.h >>conftest.$ac_ext
 
3521
cat >>conftest.$ac_ext <<_ACEOF
 
3522
/* end confdefs.h.  */
 
3523
#ifdef __STDC__
 
3524
# include <limits.h>
 
3525
#else
 
3526
# include <assert.h>
 
3527
#endif
 
3528
                     Syntax error
 
3529
_ACEOF
 
3530
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3531
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3532
  ac_status=$?
 
3533
  grep -v '^ *+' conftest.er1 >conftest.err
 
3534
  rm -f conftest.er1
 
3535
  cat conftest.err >&5
 
3536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3537
  (exit $ac_status); } >/dev/null; then
 
3538
  if test -s conftest.err; then
 
3539
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3540
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3541
  else
 
3542
    ac_cpp_err=
 
3543
  fi
 
3544
else
 
3545
  ac_cpp_err=yes
 
3546
fi
 
3547
if test -z "$ac_cpp_err"; then
 
3548
  :
 
3549
else
 
3550
  echo "$as_me: failed program was:" >&5
 
3551
sed 's/^/| /' conftest.$ac_ext >&5
 
3552
 
 
3553
  # Broken: fails on valid input.
 
3554
continue
 
3555
fi
 
3556
rm -f conftest.err conftest.$ac_ext
 
3557
 
 
3558
  # OK, works on sane cases.  Now check whether non-existent headers
 
3559
  # can be detected and how.
 
3560
  cat >conftest.$ac_ext <<_ACEOF
 
3561
/* confdefs.h.  */
 
3562
_ACEOF
 
3563
cat confdefs.h >>conftest.$ac_ext
 
3564
cat >>conftest.$ac_ext <<_ACEOF
 
3565
/* end confdefs.h.  */
 
3566
#include <ac_nonexistent.h>
 
3567
_ACEOF
 
3568
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3569
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3570
  ac_status=$?
 
3571
  grep -v '^ *+' conftest.er1 >conftest.err
 
3572
  rm -f conftest.er1
 
3573
  cat conftest.err >&5
 
3574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3575
  (exit $ac_status); } >/dev/null; then
 
3576
  if test -s conftest.err; then
 
3577
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3578
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3579
  else
 
3580
    ac_cpp_err=
 
3581
  fi
 
3582
else
 
3583
  ac_cpp_err=yes
 
3584
fi
 
3585
if test -z "$ac_cpp_err"; then
 
3586
  # Broken: success on invalid input.
 
3587
continue
 
3588
else
 
3589
  echo "$as_me: failed program was:" >&5
 
3590
sed 's/^/| /' conftest.$ac_ext >&5
 
3591
 
 
3592
  # Passes both tests.
 
3593
ac_preproc_ok=:
 
3594
break
 
3595
fi
 
3596
rm -f conftest.err conftest.$ac_ext
 
3597
 
 
3598
done
 
3599
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3600
rm -f conftest.err conftest.$ac_ext
 
3601
if $ac_preproc_ok; then
 
3602
  break
 
3603
fi
 
3604
 
 
3605
    done
 
3606
    ac_cv_prog_CPP=$CPP
 
3607
 
 
3608
fi
 
3609
  CPP=$ac_cv_prog_CPP
 
3610
else
 
3611
  ac_cv_prog_CPP=$CPP
 
3612
fi
 
3613
echo "$as_me:$LINENO: result: $CPP" >&5
 
3614
echo "${ECHO_T}$CPP" >&6
 
3615
ac_preproc_ok=false
 
3616
for ac_c_preproc_warn_flag in '' yes
 
3617
do
 
3618
  # Use a header file that comes with gcc, so configuring glibc
 
3619
  # with a fresh cross-compiler works.
 
3620
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3621
  # <limits.h> exists even on freestanding compilers.
 
3622
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3623
  # not just through cpp. "Syntax error" is here to catch this case.
 
3624
  cat >conftest.$ac_ext <<_ACEOF
 
3625
/* confdefs.h.  */
 
3626
_ACEOF
 
3627
cat confdefs.h >>conftest.$ac_ext
 
3628
cat >>conftest.$ac_ext <<_ACEOF
 
3629
/* end confdefs.h.  */
 
3630
#ifdef __STDC__
 
3631
# include <limits.h>
 
3632
#else
 
3633
# include <assert.h>
 
3634
#endif
 
3635
                     Syntax error
 
3636
_ACEOF
 
3637
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3638
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3639
  ac_status=$?
 
3640
  grep -v '^ *+' conftest.er1 >conftest.err
 
3641
  rm -f conftest.er1
 
3642
  cat conftest.err >&5
 
3643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3644
  (exit $ac_status); } >/dev/null; then
 
3645
  if test -s conftest.err; then
 
3646
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3647
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3648
  else
 
3649
    ac_cpp_err=
 
3650
  fi
 
3651
else
 
3652
  ac_cpp_err=yes
 
3653
fi
 
3654
if test -z "$ac_cpp_err"; then
 
3655
  :
 
3656
else
 
3657
  echo "$as_me: failed program was:" >&5
 
3658
sed 's/^/| /' conftest.$ac_ext >&5
 
3659
 
 
3660
  # Broken: fails on valid input.
 
3661
continue
 
3662
fi
 
3663
rm -f conftest.err conftest.$ac_ext
 
3664
 
 
3665
  # OK, works on sane cases.  Now check whether non-existent headers
 
3666
  # can be detected and how.
 
3667
  cat >conftest.$ac_ext <<_ACEOF
 
3668
/* confdefs.h.  */
 
3669
_ACEOF
 
3670
cat confdefs.h >>conftest.$ac_ext
 
3671
cat >>conftest.$ac_ext <<_ACEOF
 
3672
/* end confdefs.h.  */
 
3673
#include <ac_nonexistent.h>
 
3674
_ACEOF
 
3675
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3676
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3677
  ac_status=$?
 
3678
  grep -v '^ *+' conftest.er1 >conftest.err
 
3679
  rm -f conftest.er1
 
3680
  cat conftest.err >&5
 
3681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3682
  (exit $ac_status); } >/dev/null; then
 
3683
  if test -s conftest.err; then
 
3684
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3685
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3686
  else
 
3687
    ac_cpp_err=
 
3688
  fi
 
3689
else
 
3690
  ac_cpp_err=yes
 
3691
fi
 
3692
if test -z "$ac_cpp_err"; then
 
3693
  # Broken: success on invalid input.
 
3694
continue
 
3695
else
 
3696
  echo "$as_me: failed program was:" >&5
 
3697
sed 's/^/| /' conftest.$ac_ext >&5
 
3698
 
 
3699
  # Passes both tests.
 
3700
ac_preproc_ok=:
 
3701
break
 
3702
fi
 
3703
rm -f conftest.err conftest.$ac_ext
 
3704
 
 
3705
done
 
3706
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3707
rm -f conftest.err conftest.$ac_ext
 
3708
if $ac_preproc_ok; then
 
3709
  :
 
3710
else
 
3711
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3712
See \`config.log' for more details." >&5
 
3713
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3714
See \`config.log' for more details." >&2;}
 
3715
   { (exit 1); exit 1; }; }
 
3716
fi
 
3717
 
 
3718
ac_ext=c
 
3719
ac_cpp='$CPP $CPPFLAGS'
 
3720
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3721
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3722
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3723
 
 
3724
 
 
3725
  if test "$GCC" = "yes"; then
 
3726
    if test "$kde_use_debug_code" != "no"; then
 
3727
      if test $kde_use_debug_code = "full"; then
 
3728
        CFLAGS="-g3 -fno-inline $CFLAGS"
 
3729
      else
 
3730
        CFLAGS="-g -O2 $CFLAGS"
 
3731
      fi
 
3732
    else
 
3733
      CFLAGS="-O2 $CFLAGS"
 
3734
    fi
 
3735
  fi
 
3736
 
 
3737
  if test "$kde_use_debug_define" = "yes"; then
 
3738
    CFLAGS="-DNDEBUG $CFLAGS"
 
3739
  fi
 
3740
 
 
3741
 
 
3742
  case "$host" in
 
3743
  *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
 
3744
  *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
 
3745
  esac
 
3746
 
 
3747
  if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
 
3748
     LDFLAGS=""
 
3749
  fi
 
3750
 
 
3751
  CXXFLAGS=" $CXXFLAGS"
 
3752
 
 
3753
  ac_ext=cc
 
3754
ac_cpp='$CXXCPP $CPPFLAGS'
 
3755
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3756
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3757
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3758
if test -n "$ac_tool_prefix"; then
 
3759
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3760
  do
 
3761
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3762
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3763
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3764
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3765
if test "${ac_cv_prog_CXX+set}" = set; then
 
3766
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3767
else
 
3768
  if test -n "$CXX"; then
 
3769
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
3770
else
 
3771
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3772
for as_dir in $PATH
 
3773
do
 
3774
  IFS=$as_save_IFS
 
3775
  test -z "$as_dir" && as_dir=.
 
3776
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3777
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3778
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
3779
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3780
    break 2
 
3781
  fi
 
3782
done
 
3783
done
 
3784
 
 
3785
fi
 
3786
fi
 
3787
CXX=$ac_cv_prog_CXX
 
3788
if test -n "$CXX"; then
 
3789
  echo "$as_me:$LINENO: result: $CXX" >&5
 
3790
echo "${ECHO_T}$CXX" >&6
 
3791
else
 
3792
  echo "$as_me:$LINENO: result: no" >&5
 
3793
echo "${ECHO_T}no" >&6
 
3794
fi
 
3795
 
 
3796
    test -n "$CXX" && break
 
3797
  done
 
3798
fi
 
3799
if test -z "$CXX"; then
 
3800
  ac_ct_CXX=$CXX
 
3801
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3802
do
 
3803
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3804
set dummy $ac_prog; ac_word=$2
 
3805
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3806
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3807
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
3808
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3809
else
 
3810
  if test -n "$ac_ct_CXX"; then
 
3811
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
3812
else
 
3813
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3814
for as_dir in $PATH
 
3815
do
 
3816
  IFS=$as_save_IFS
 
3817
  test -z "$as_dir" && as_dir=.
 
3818
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3819
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3820
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
3821
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3822
    break 2
 
3823
  fi
 
3824
done
 
3825
done
 
3826
 
 
3827
fi
 
3828
fi
 
3829
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
3830
if test -n "$ac_ct_CXX"; then
 
3831
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
3832
echo "${ECHO_T}$ac_ct_CXX" >&6
 
3833
else
 
3834
  echo "$as_me:$LINENO: result: no" >&5
 
3835
echo "${ECHO_T}no" >&6
 
3836
fi
 
3837
 
 
3838
  test -n "$ac_ct_CXX" && break
 
3839
done
 
3840
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
3841
 
 
3842
  CXX=$ac_ct_CXX
 
3843
fi
 
3844
 
 
3845
 
 
3846
# Provide some information about the compiler.
 
3847
echo "$as_me:$LINENO:" \
 
3848
     "checking for C++ compiler version" >&5
 
3849
ac_compiler=`set X $ac_compile; echo $2`
 
3850
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3851
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3852
  ac_status=$?
 
3853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3854
  (exit $ac_status); }
 
3855
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3856
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3857
  ac_status=$?
 
3858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3859
  (exit $ac_status); }
 
3860
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3861
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3862
  ac_status=$?
 
3863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3864
  (exit $ac_status); }
 
3865
 
 
3866
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
3867
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
3868
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
3869
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3870
else
 
3871
  cat >conftest.$ac_ext <<_ACEOF
 
3872
/* confdefs.h.  */
 
3873
_ACEOF
 
3874
cat confdefs.h >>conftest.$ac_ext
 
3875
cat >>conftest.$ac_ext <<_ACEOF
 
3876
/* end confdefs.h.  */
 
3877
 
 
3878
int
 
3879
main ()
 
3880
{
 
3881
#ifndef __GNUC__
 
3882
       choke me
 
3883
#endif
 
3884
 
 
3885
  ;
 
3886
  return 0;
 
3887
}
 
3888
_ACEOF
 
3889
rm -f conftest.$ac_objext
 
3890
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3891
  (eval $ac_compile) 2>conftest.er1
 
3892
  ac_status=$?
 
3893
  grep -v '^ *+' conftest.er1 >conftest.err
 
3894
  rm -f conftest.er1
 
3895
  cat conftest.err >&5
 
3896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3897
  (exit $ac_status); } &&
 
3898
         { ac_try='test -z "$ac_cxx_werror_flag"
 
3899
                         || test ! -s conftest.err'
 
3900
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3901
  (eval $ac_try) 2>&5
 
3902
  ac_status=$?
 
3903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3904
  (exit $ac_status); }; } &&
 
3905
         { ac_try='test -s conftest.$ac_objext'
 
3906
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3907
  (eval $ac_try) 2>&5
 
3908
  ac_status=$?
 
3909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3910
  (exit $ac_status); }; }; then
 
3911
  ac_compiler_gnu=yes
 
3912
else
 
3913
  echo "$as_me: failed program was:" >&5
 
3914
sed 's/^/| /' conftest.$ac_ext >&5
 
3915
 
 
3916
ac_compiler_gnu=no
 
3917
fi
 
3918
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3919
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3920
 
 
3921
fi
 
3922
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
3923
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
3924
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
3925
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3926
ac_save_CXXFLAGS=$CXXFLAGS
 
3927
CXXFLAGS="-g"
 
3928
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
3929
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
3930
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
3931
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3932
else
 
3933
  cat >conftest.$ac_ext <<_ACEOF
 
3934
/* confdefs.h.  */
 
3935
_ACEOF
 
3936
cat confdefs.h >>conftest.$ac_ext
 
3937
cat >>conftest.$ac_ext <<_ACEOF
 
3938
/* end confdefs.h.  */
 
3939
 
 
3940
int
 
3941
main ()
 
3942
{
 
3943
 
 
3944
  ;
 
3945
  return 0;
 
3946
}
 
3947
_ACEOF
 
3948
rm -f conftest.$ac_objext
 
3949
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3950
  (eval $ac_compile) 2>conftest.er1
 
3951
  ac_status=$?
 
3952
  grep -v '^ *+' conftest.er1 >conftest.err
 
3953
  rm -f conftest.er1
 
3954
  cat conftest.err >&5
 
3955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3956
  (exit $ac_status); } &&
 
3957
         { ac_try='test -z "$ac_cxx_werror_flag"
 
3958
                         || test ! -s conftest.err'
 
3959
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3960
  (eval $ac_try) 2>&5
 
3961
  ac_status=$?
 
3962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3963
  (exit $ac_status); }; } &&
 
3964
         { ac_try='test -s conftest.$ac_objext'
 
3965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3966
  (eval $ac_try) 2>&5
 
3967
  ac_status=$?
 
3968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3969
  (exit $ac_status); }; }; then
 
3970
  ac_cv_prog_cxx_g=yes
 
3971
else
 
3972
  echo "$as_me: failed program was:" >&5
 
3973
sed 's/^/| /' conftest.$ac_ext >&5
 
3974
 
 
3975
ac_cv_prog_cxx_g=no
 
3976
fi
 
3977
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3978
fi
 
3979
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
3980
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
3981
if test "$ac_test_CXXFLAGS" = set; then
 
3982
  CXXFLAGS=$ac_save_CXXFLAGS
 
3983
elif test $ac_cv_prog_cxx_g = yes; then
 
3984
  if test "$GXX" = yes; then
 
3985
    CXXFLAGS="-g -O2"
 
3986
  else
 
3987
    CXXFLAGS="-g"
 
3988
  fi
 
3989
else
 
3990
  if test "$GXX" = yes; then
 
3991
    CXXFLAGS="-O2"
 
3992
  else
 
3993
    CXXFLAGS=
 
3994
  fi
 
3995
fi
 
3996
for ac_declaration in \
 
3997
   '' \
 
3998
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3999
   'extern "C" void std::exit (int); using std::exit;' \
 
4000
   'extern "C" void exit (int) throw ();' \
 
4001
   'extern "C" void exit (int);' \
 
4002
   'void exit (int);'
 
4003
do
 
4004
  cat >conftest.$ac_ext <<_ACEOF
 
4005
/* confdefs.h.  */
 
4006
_ACEOF
 
4007
cat confdefs.h >>conftest.$ac_ext
 
4008
cat >>conftest.$ac_ext <<_ACEOF
 
4009
/* end confdefs.h.  */
 
4010
$ac_declaration
 
4011
#include <stdlib.h>
 
4012
int
 
4013
main ()
 
4014
{
 
4015
exit (42);
 
4016
  ;
 
4017
  return 0;
 
4018
}
 
4019
_ACEOF
 
4020
rm -f conftest.$ac_objext
 
4021
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4022
  (eval $ac_compile) 2>conftest.er1
 
4023
  ac_status=$?
 
4024
  grep -v '^ *+' conftest.er1 >conftest.err
 
4025
  rm -f conftest.er1
 
4026
  cat conftest.err >&5
 
4027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4028
  (exit $ac_status); } &&
 
4029
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4030
                         || test ! -s conftest.err'
 
4031
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4032
  (eval $ac_try) 2>&5
 
4033
  ac_status=$?
 
4034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4035
  (exit $ac_status); }; } &&
 
4036
         { ac_try='test -s conftest.$ac_objext'
 
4037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4038
  (eval $ac_try) 2>&5
 
4039
  ac_status=$?
 
4040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4041
  (exit $ac_status); }; }; then
 
4042
  :
 
4043
else
 
4044
  echo "$as_me: failed program was:" >&5
 
4045
sed 's/^/| /' conftest.$ac_ext >&5
 
4046
 
 
4047
continue
 
4048
fi
 
4049
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4050
  cat >conftest.$ac_ext <<_ACEOF
 
4051
/* confdefs.h.  */
 
4052
_ACEOF
 
4053
cat confdefs.h >>conftest.$ac_ext
 
4054
cat >>conftest.$ac_ext <<_ACEOF
 
4055
/* end confdefs.h.  */
 
4056
$ac_declaration
 
4057
int
 
4058
main ()
 
4059
{
 
4060
exit (42);
 
4061
  ;
 
4062
  return 0;
 
4063
}
 
4064
_ACEOF
 
4065
rm -f conftest.$ac_objext
 
4066
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4067
  (eval $ac_compile) 2>conftest.er1
 
4068
  ac_status=$?
 
4069
  grep -v '^ *+' conftest.er1 >conftest.err
 
4070
  rm -f conftest.er1
 
4071
  cat conftest.err >&5
 
4072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4073
  (exit $ac_status); } &&
 
4074
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4075
                         || test ! -s conftest.err'
 
4076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4077
  (eval $ac_try) 2>&5
 
4078
  ac_status=$?
 
4079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4080
  (exit $ac_status); }; } &&
 
4081
         { ac_try='test -s conftest.$ac_objext'
 
4082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4083
  (eval $ac_try) 2>&5
 
4084
  ac_status=$?
 
4085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4086
  (exit $ac_status); }; }; then
 
4087
  break
 
4088
else
 
4089
  echo "$as_me: failed program was:" >&5
 
4090
sed 's/^/| /' conftest.$ac_ext >&5
 
4091
 
 
4092
fi
 
4093
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4094
done
 
4095
rm -f conftest*
 
4096
if test -n "$ac_declaration"; then
 
4097
  echo '#ifdef __cplusplus' >>confdefs.h
 
4098
  echo $ac_declaration      >>confdefs.h
 
4099
  echo '#endif'             >>confdefs.h
 
4100
fi
 
4101
 
 
4102
ac_ext=c
 
4103
ac_cpp='$CPP $CPPFLAGS'
 
4104
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4105
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4106
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4107
 
 
4108
depcc="$CXX"  am_compiler_list=
 
4109
 
 
4110
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4111
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4112
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
4113
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4114
else
 
4115
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4116
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4117
  # making bogus files that we don't know about and never remove.  For
 
4118
  # instance it was reported that on HP-UX the gcc test will end up
 
4119
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4120
  # in D'.
 
4121
  mkdir conftest.dir
 
4122
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4123
  # using a relative directory.
 
4124
  cp "$am_depcomp" conftest.dir
 
4125
  cd conftest.dir
 
4126
  # We will build objects and dependencies in a subdirectory because
 
4127
  # it helps to detect inapplicable dependency modes.  For instance
 
4128
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4129
  # side effect of compilation, but ICC will put the dependencies in
 
4130
  # the current directory while Tru64 will put them in the object
 
4131
  # directory.
 
4132
  mkdir sub
 
4133
 
 
4134
  am_cv_CXX_dependencies_compiler_type=none
 
4135
  if test "$am_compiler_list" = ""; then
 
4136
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4137
  fi
 
4138
  for depmode in $am_compiler_list; do
 
4139
    # Setup a source with many dependencies, because some compilers
 
4140
    # like to wrap large dependency lists on column 80 (with \), and
 
4141
    # we should not choose a depcomp mode which is confused by this.
 
4142
    #
 
4143
    # We need to recreate these files for each test, as the compiler may
 
4144
    # overwrite some of them when testing with obscure command lines.
 
4145
    # This happens at least with the AIX C compiler.
 
4146
    : > sub/conftest.c
 
4147
    for i in 1 2 3 4 5 6; do
 
4148
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4149
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4150
      # Solaris 8's {/usr,}/bin/sh.
 
4151
      touch sub/conftst$i.h
 
4152
    done
 
4153
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4154
 
 
4155
    case $depmode in
 
4156
    nosideeffect)
 
4157
      # after this tag, mechanisms are not by side-effect, so they'll
 
4158
      # only be used when explicitly requested
 
4159
      if test "x$enable_dependency_tracking" = xyes; then
 
4160
        continue
 
4161
      else
 
4162
        break
 
4163
      fi
 
4164
      ;;
 
4165
    none) break ;;
 
4166
    esac
 
4167
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4168
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4169
    # handle `-M -o', and we need to detect this.
 
4170
    if depmode=$depmode \
 
4171
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4172
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4173
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4174
         >/dev/null 2>conftest.err &&
 
4175
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4176
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4177
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4178
      # icc doesn't choke on unknown options, it will just issue warnings
 
4179
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4180
      # that says an option was ignored or not supported.
 
4181
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4182
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4183
      # The diagnosis changed in icc 8.0:
 
4184
      #   icc: Command line remark: option '-MP' not supported
 
4185
      if (grep 'ignoring option' conftest.err ||
 
4186
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4187
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4188
        break
 
4189
      fi
 
4190
    fi
 
4191
  done
 
4192
 
 
4193
  cd ..
 
4194
  rm -rf conftest.dir
 
4195
else
 
4196
  am_cv_CXX_dependencies_compiler_type=none
 
4197
fi
 
4198
 
 
4199
fi
 
4200
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4201
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
4202
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4203
 
 
4204
 
 
4205
 
 
4206
if
 
4207
  test "x$enable_dependency_tracking" != xno \
 
4208
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4209
  am__fastdepCXX_TRUE=
 
4210
  am__fastdepCXX_FALSE='#'
 
4211
else
 
4212
  am__fastdepCXX_TRUE='#'
 
4213
  am__fastdepCXX_FALSE=
 
4214
fi
 
4215
 
 
4216
 
 
4217
 
 
4218
 
 
4219
  echo "$as_me:$LINENO: checking whether $CC is blacklisted" >&5
 
4220
echo $ECHO_N "checking whether $CC is blacklisted... $ECHO_C" >&6
 
4221
 
 
4222
 
 
4223
  cat >conftest.$ac_ext <<_ACEOF
 
4224
/* confdefs.h.  */
 
4225
_ACEOF
 
4226
cat confdefs.h >>conftest.$ac_ext
 
4227
cat >>conftest.$ac_ext <<_ACEOF
 
4228
/* end confdefs.h.  */
 
4229
 
 
4230
#ifdef __GNUC__
 
4231
#if __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 0
 
4232
choke me
 
4233
#endif
 
4234
#endif
 
4235
 
 
4236
int
 
4237
main ()
 
4238
{
 
4239
 
 
4240
  ;
 
4241
  return 0;
 
4242
}
 
4243
_ACEOF
 
4244
rm -f conftest.$ac_objext
 
4245
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4246
  (eval $ac_compile) 2>conftest.er1
 
4247
  ac_status=$?
 
4248
  grep -v '^ *+' conftest.er1 >conftest.err
 
4249
  rm -f conftest.er1
 
4250
  cat conftest.err >&5
 
4251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4252
  (exit $ac_status); } &&
 
4253
         { ac_try='test -z "$ac_c_werror_flag"
 
4254
                         || test ! -s conftest.err'
 
4255
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4256
  (eval $ac_try) 2>&5
 
4257
  ac_status=$?
 
4258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4259
  (exit $ac_status); }; } &&
 
4260
         { ac_try='test -s conftest.$ac_objext'
 
4261
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4262
  (eval $ac_try) 2>&5
 
4263
  ac_status=$?
 
4264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4265
  (exit $ac_status); }; }; then
 
4266
  kde_bad_compiler=no
 
4267
else
 
4268
  echo "$as_me: failed program was:" >&5
 
4269
sed 's/^/| /' conftest.$ac_ext >&5
 
4270
 
 
4271
kde_bad_compiler=yes
 
4272
 
 
4273
fi
 
4274
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4275
 
 
4276
  echo "$as_me:$LINENO: result: $kde_bad_compiler" >&5
 
4277
echo "${ECHO_T}$kde_bad_compiler" >&6
 
4278
 
 
4279
if test "$kde_bad_compiler" = "yes"; then
 
4280
  { { echo "$as_me:$LINENO: error:
 
4281
 
 
4282
This particular compiler version is blacklisted because it
 
4283
is known to miscompile KDE. Please use a newer version, or
 
4284
if that is not yet available, choose an older version.
 
4285
 
 
4286
Please do not report a bug or bother us reporting this
 
4287
configure error. We know about it, and we introduced
 
4288
it by intention to avoid untraceable bugs or crashes in KDE.
 
4289
 
 
4290
" >&5
 
4291
echo "$as_me: error:
 
4292
 
 
4293
This particular compiler version is blacklisted because it
 
4294
is known to miscompile KDE. Please use a newer version, or
 
4295
if that is not yet available, choose an older version.
 
4296
 
 
4297
Please do not report a bug or bother us reporting this
 
4298
configure error. We know about it, and we introduced
 
4299
it by intention to avoid untraceable bugs or crashes in KDE.
 
4300
 
 
4301
" >&2;}
 
4302
   { (exit 1); exit 1; }; }
 
4303
fi
 
4304
 
 
4305
 
 
4306
 
 
4307
  if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
 
4308
    if test "$kde_use_debug_code" != "no"; then
 
4309
      if test "$CXX" = "KCC"; then
 
4310
        CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
 
4311
      else
 
4312
        if test "$kde_use_debug_code" = "full"; then
 
4313
          CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
 
4314
        else
 
4315
          CXXFLAGS="-g -O2 $CXXFLAGS"
 
4316
        fi
 
4317
      fi
 
4318
 
 
4319
echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
 
4320
echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6
 
4321
kde_cache=`echo fno-builtin | 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
 
 
4329
ac_ext=cc
 
4330
ac_cpp='$CXXCPP $CPPFLAGS'
 
4331
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4332
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4333
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4334
 
 
4335
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4336
 
 
4337
 
 
4338
 
 
4339
  save_CXXFLAGS="$CXXFLAGS"
 
4340
  CXXFLAGS="$CXXFLAGS -fno-builtin"
 
4341
  cat >conftest.$ac_ext <<_ACEOF
 
4342
/* confdefs.h.  */
 
4343
_ACEOF
 
4344
cat confdefs.h >>conftest.$ac_ext
 
4345
cat >>conftest.$ac_ext <<_ACEOF
 
4346
/* end confdefs.h.  */
 
4347
 
 
4348
int
 
4349
main ()
 
4350
{
 
4351
 return 0;
 
4352
  ;
 
4353
  return 0;
 
4354
}
 
4355
_ACEOF
 
4356
rm -f conftest.$ac_objext conftest$ac_exeext
 
4357
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4358
  (eval $ac_link) 2>conftest.er1
 
4359
  ac_status=$?
 
4360
  grep -v '^ *+' conftest.er1 >conftest.err
 
4361
  rm -f conftest.er1
 
4362
  cat conftest.err >&5
 
4363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4364
  (exit $ac_status); } &&
 
4365
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4366
                         || test ! -s conftest.err'
 
4367
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4368
  (eval $ac_try) 2>&5
 
4369
  ac_status=$?
 
4370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4371
  (exit $ac_status); }; } &&
 
4372
         { ac_try='test -s conftest$ac_exeext'
 
4373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4374
  (eval $ac_try) 2>&5
 
4375
  ac_status=$?
 
4376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4377
  (exit $ac_status); }; }; then
 
4378
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4379
else
 
4380
  echo "$as_me: failed program was:" >&5
 
4381
sed 's/^/| /' conftest.$ac_ext >&5
 
4382
 
 
4383
fi
 
4384
rm -f conftest.err conftest.$ac_objext \
 
4385
      conftest$ac_exeext conftest.$ac_ext
 
4386
  CXXFLAGS="$save_CXXFLAGS"
 
4387
  ac_ext=c
 
4388
ac_cpp='$CPP $CPPFLAGS'
 
4389
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4390
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4391
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4392
 
 
4393
 
 
4394
fi
 
4395
 
 
4396
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4397
 echo "$as_me:$LINENO: result: yes" >&5
 
4398
echo "${ECHO_T}yes" >&6
 
4399
 :
 
4400
 CXXFLAGS="-fno-builtin $CXXFLAGS"
 
4401
else
 
4402
 echo "$as_me:$LINENO: result: no" >&5
 
4403
echo "${ECHO_T}no" >&6
 
4404
 :
 
4405
 
 
4406
fi
 
4407
 
 
4408
 
 
4409
 
 
4410
echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
 
4411
echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6
 
4412
kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'`
 
4413
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4414
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4415
else
 
4416
 
 
4417
 
 
4418
 
 
4419
   ac_ext=cc
 
4420
ac_cpp='$CXXCPP $CPPFLAGS'
 
4421
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4422
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4423
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4424
 
 
4425
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4426
 
 
4427
 
 
4428
  save_CXXFLAGS="$CXXFLAGS"
 
4429
  CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
 
4430
  cat >conftest.$ac_ext <<_ACEOF
 
4431
/* confdefs.h.  */
 
4432
_ACEOF
 
4433
cat confdefs.h >>conftest.$ac_ext
 
4434
cat >>conftest.$ac_ext <<_ACEOF
 
4435
/* end confdefs.h.  */
 
4436
 
 
4437
int
 
4438
main ()
 
4439
{
 
4440
 return 0;
 
4441
  ;
 
4442
  return 0;
 
4443
}
 
4444
_ACEOF
 
4445
rm -f conftest.$ac_objext conftest$ac_exeext
 
4446
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4447
  (eval $ac_link) 2>conftest.er1
 
4448
  ac_status=$?
 
4449
  grep -v '^ *+' conftest.er1 >conftest.err
 
4450
  rm -f conftest.er1
 
4451
  cat conftest.err >&5
 
4452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4453
  (exit $ac_status); } &&
 
4454
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4455
                         || test ! -s conftest.err'
 
4456
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4457
  (eval $ac_try) 2>&5
 
4458
  ac_status=$?
 
4459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4460
  (exit $ac_status); }; } &&
 
4461
         { ac_try='test -s conftest$ac_exeext'
 
4462
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4463
  (eval $ac_try) 2>&5
 
4464
  ac_status=$?
 
4465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4466
  (exit $ac_status); }; }; then
 
4467
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4468
else
 
4469
  echo "$as_me: failed program was:" >&5
 
4470
sed 's/^/| /' conftest.$ac_ext >&5
 
4471
 
 
4472
fi
 
4473
rm -f conftest.err conftest.$ac_objext \
 
4474
      conftest$ac_exeext conftest.$ac_ext
 
4475
  CXXFLAGS="$save_CXXFLAGS"
 
4476
  ac_ext=c
 
4477
ac_cpp='$CPP $CPPFLAGS'
 
4478
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4479
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4480
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4481
 
 
4482
 
 
4483
fi
 
4484
 
 
4485
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4486
 echo "$as_me:$LINENO: result: yes" >&5
 
4487
echo "${ECHO_T}yes" >&6
 
4488
 :
 
4489
 WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
 
4490
else
 
4491
 echo "$as_me:$LINENO: result: no" >&5
 
4492
echo "${ECHO_T}no" >&6
 
4493
 :
 
4494
 WOVERLOADED_VRITUAL=""
 
4495
fi
 
4496
 
 
4497
 
 
4498
    else
 
4499
      if test "$CXX" = "KCC"; then
 
4500
        CXXFLAGS="+K3 $CXXFLAGS"
 
4501
      else
 
4502
        CXXFLAGS="-O2 $CXXFLAGS"
 
4503
      fi
 
4504
    fi
 
4505
  fi
 
4506
 
 
4507
  if test "$kde_use_debug_define" = "yes"; then
 
4508
    CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
 
4509
  fi
 
4510
 
 
4511
  if test "$kde_use_profiling" = "yes"; then
 
4512
 
 
4513
echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
 
4514
echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6
 
4515
kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'`
 
4516
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4517
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4518
else
 
4519
 
 
4520
 
 
4521
 
 
4522
   ac_ext=cc
 
4523
ac_cpp='$CXXCPP $CPPFLAGS'
 
4524
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4525
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4526
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4527
 
 
4528
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4529
 
 
4530
 
 
4531
  save_CXXFLAGS="$CXXFLAGS"
 
4532
  CXXFLAGS="$CXXFLAGS -pg"
 
4533
  cat >conftest.$ac_ext <<_ACEOF
 
4534
/* confdefs.h.  */
 
4535
_ACEOF
 
4536
cat confdefs.h >>conftest.$ac_ext
 
4537
cat >>conftest.$ac_ext <<_ACEOF
 
4538
/* end confdefs.h.  */
 
4539
 
 
4540
int
 
4541
main ()
 
4542
{
 
4543
 return 0;
 
4544
  ;
 
4545
  return 0;
 
4546
}
 
4547
_ACEOF
 
4548
rm -f conftest.$ac_objext conftest$ac_exeext
 
4549
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4550
  (eval $ac_link) 2>conftest.er1
 
4551
  ac_status=$?
 
4552
  grep -v '^ *+' conftest.er1 >conftest.err
 
4553
  rm -f conftest.er1
 
4554
  cat conftest.err >&5
 
4555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4556
  (exit $ac_status); } &&
 
4557
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4558
                         || test ! -s conftest.err'
 
4559
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4560
  (eval $ac_try) 2>&5
 
4561
  ac_status=$?
 
4562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4563
  (exit $ac_status); }; } &&
 
4564
         { ac_try='test -s conftest$ac_exeext'
 
4565
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4566
  (eval $ac_try) 2>&5
 
4567
  ac_status=$?
 
4568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4569
  (exit $ac_status); }; }; then
 
4570
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4571
else
 
4572
  echo "$as_me: failed program was:" >&5
 
4573
sed 's/^/| /' conftest.$ac_ext >&5
 
4574
 
 
4575
fi
 
4576
rm -f conftest.err conftest.$ac_objext \
 
4577
      conftest$ac_exeext conftest.$ac_ext
 
4578
  CXXFLAGS="$save_CXXFLAGS"
 
4579
  ac_ext=c
 
4580
ac_cpp='$CPP $CPPFLAGS'
 
4581
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4582
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4583
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4584
 
 
4585
 
 
4586
fi
 
4587
 
 
4588
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4589
 echo "$as_me:$LINENO: result: yes" >&5
 
4590
echo "${ECHO_T}yes" >&6
 
4591
 :
 
4592
 
 
4593
      CFLAGS="-pg $CFLAGS"
 
4594
      CXXFLAGS="-pg $CXXFLAGS"
 
4595
 
 
4596
else
 
4597
 echo "$as_me:$LINENO: result: no" >&5
 
4598
echo "${ECHO_T}no" >&6
 
4599
 :
 
4600
 
 
4601
fi
 
4602
 
 
4603
  fi
 
4604
 
 
4605
  if test "$kde_use_warnings" = "yes"; then
 
4606
      if test "$GCC" = "yes"; then
 
4607
                CXXFLAGS="-Wall -W -Wpointer-arith -Wno-non-virtual-dtor $CXXFLAGS"
 
4608
        case $host in
 
4609
          *-*-linux-gnu)
 
4610
            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
 
4611
            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
 
4612
 
 
4613
echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5
 
4614
echo $ECHO_N "checking whether $CXX supports -Wmissing-format-attribute... $ECHO_C" >&6
 
4615
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
 
4616
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4618
else
 
4619
 
 
4620
 
 
4621
 
 
4622
   ac_ext=cc
 
4623
ac_cpp='$CXXCPP $CPPFLAGS'
 
4624
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4625
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4626
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4627
 
 
4628
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4629
 
 
4630
 
 
4631
  save_CXXFLAGS="$CXXFLAGS"
 
4632
  CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
 
4633
  cat >conftest.$ac_ext <<_ACEOF
 
4634
/* confdefs.h.  */
 
4635
_ACEOF
 
4636
cat confdefs.h >>conftest.$ac_ext
 
4637
cat >>conftest.$ac_ext <<_ACEOF
 
4638
/* end confdefs.h.  */
 
4639
 
 
4640
int
 
4641
main ()
 
4642
{
 
4643
 return 0;
 
4644
  ;
 
4645
  return 0;
 
4646
}
 
4647
_ACEOF
 
4648
rm -f conftest.$ac_objext conftest$ac_exeext
 
4649
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4650
  (eval $ac_link) 2>conftest.er1
 
4651
  ac_status=$?
 
4652
  grep -v '^ *+' conftest.er1 >conftest.err
 
4653
  rm -f conftest.er1
 
4654
  cat conftest.err >&5
 
4655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4656
  (exit $ac_status); } &&
 
4657
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4658
                         || test ! -s conftest.err'
 
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); }; } &&
 
4664
         { ac_try='test -s conftest$ac_exeext'
 
4665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4666
  (eval $ac_try) 2>&5
 
4667
  ac_status=$?
 
4668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4669
  (exit $ac_status); }; }; then
 
4670
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4671
else
 
4672
  echo "$as_me: failed program was:" >&5
 
4673
sed 's/^/| /' conftest.$ac_ext >&5
 
4674
 
 
4675
fi
 
4676
rm -f conftest.err conftest.$ac_objext \
 
4677
      conftest$ac_exeext conftest.$ac_ext
 
4678
  CXXFLAGS="$save_CXXFLAGS"
 
4679
  ac_ext=c
 
4680
ac_cpp='$CPP $CPPFLAGS'
 
4681
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4682
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4683
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4684
 
 
4685
 
 
4686
fi
 
4687
 
 
4688
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4689
 echo "$as_me:$LINENO: result: yes" >&5
 
4690
echo "${ECHO_T}yes" >&6
 
4691
 :
 
4692
 CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"
 
4693
else
 
4694
 echo "$as_me:$LINENO: result: no" >&5
 
4695
echo "${ECHO_T}no" >&6
 
4696
 :
 
4697
 
 
4698
fi
 
4699
 
 
4700
 
 
4701
echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
 
4702
echo $ECHO_N "checking whether $CC supports -Wmissing-format-attribute... $ECHO_C" >&6
 
4703
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
 
4704
if eval "test \"\${kde_cv_prog_cc_$kde_cache+set}\" = set"; then
 
4705
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4706
else
 
4707
 
 
4708
 
 
4709
 
 
4710
  ac_ext=c
 
4711
ac_cpp='$CPP $CPPFLAGS'
 
4712
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4713
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4714
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4715
 
 
4716
  save_CFLAGS="$CFLAGS"
 
4717
  CFLAGS="$CFLAGS -Wmissing-format-attribute"
 
4718
  cat >conftest.$ac_ext <<_ACEOF
 
4719
/* confdefs.h.  */
 
4720
_ACEOF
 
4721
cat confdefs.h >>conftest.$ac_ext
 
4722
cat >>conftest.$ac_ext <<_ACEOF
 
4723
/* end confdefs.h.  */
 
4724
 
 
4725
int
 
4726
main ()
 
4727
{
 
4728
 return 0;
 
4729
  ;
 
4730
  return 0;
 
4731
}
 
4732
_ACEOF
 
4733
rm -f conftest.$ac_objext conftest$ac_exeext
 
4734
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4735
  (eval $ac_link) 2>conftest.er1
 
4736
  ac_status=$?
 
4737
  grep -v '^ *+' conftest.er1 >conftest.err
 
4738
  rm -f conftest.er1
 
4739
  cat conftest.err >&5
 
4740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4741
  (exit $ac_status); } &&
 
4742
         { ac_try='test -z "$ac_c_werror_flag"
 
4743
                         || test ! -s conftest.err'
 
4744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4745
  (eval $ac_try) 2>&5
 
4746
  ac_status=$?
 
4747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4748
  (exit $ac_status); }; } &&
 
4749
         { ac_try='test -s conftest$ac_exeext'
 
4750
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4751
  (eval $ac_try) 2>&5
 
4752
  ac_status=$?
 
4753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4754
  (exit $ac_status); }; }; then
 
4755
  eval "kde_cv_prog_cc_$kde_cache=yes"
 
4756
else
 
4757
  echo "$as_me: failed program was:" >&5
 
4758
sed 's/^/| /' conftest.$ac_ext >&5
 
4759
 
 
4760
fi
 
4761
rm -f conftest.err conftest.$ac_objext \
 
4762
      conftest$ac_exeext conftest.$ac_ext
 
4763
  CFLAGS="$save_CFLAGS"
 
4764
  ac_ext=c
 
4765
ac_cpp='$CPP $CPPFLAGS'
 
4766
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4767
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4768
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4769
 
 
4770
 
 
4771
fi
 
4772
 
 
4773
if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then
 
4774
 echo "$as_me:$LINENO: result: yes" >&5
 
4775
echo "${ECHO_T}yes" >&6
 
4776
 :
 
4777
 CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"
 
4778
else
 
4779
 echo "$as_me:$LINENO: result: no" >&5
 
4780
echo "${ECHO_T}no" >&6
 
4781
 :
 
4782
 
 
4783
fi
 
4784
 
 
4785
          ;;
 
4786
        esac
 
4787
 
 
4788
echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
 
4789
echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6
 
4790
kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'`
 
4791
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4792
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4793
else
 
4794
 
 
4795
 
 
4796
 
 
4797
   ac_ext=cc
 
4798
ac_cpp='$CXXCPP $CPPFLAGS'
 
4799
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4800
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4801
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4802
 
 
4803
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4804
 
 
4805
 
 
4806
  save_CXXFLAGS="$CXXFLAGS"
 
4807
  CXXFLAGS="$CXXFLAGS -Wundef"
 
4808
  cat >conftest.$ac_ext <<_ACEOF
 
4809
/* confdefs.h.  */
 
4810
_ACEOF
 
4811
cat confdefs.h >>conftest.$ac_ext
 
4812
cat >>conftest.$ac_ext <<_ACEOF
 
4813
/* end confdefs.h.  */
 
4814
 
 
4815
int
 
4816
main ()
 
4817
{
 
4818
 return 0;
 
4819
  ;
 
4820
  return 0;
 
4821
}
 
4822
_ACEOF
 
4823
rm -f conftest.$ac_objext conftest$ac_exeext
 
4824
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4825
  (eval $ac_link) 2>conftest.er1
 
4826
  ac_status=$?
 
4827
  grep -v '^ *+' conftest.er1 >conftest.err
 
4828
  rm -f conftest.er1
 
4829
  cat conftest.err >&5
 
4830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4831
  (exit $ac_status); } &&
 
4832
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4833
                         || test ! -s conftest.err'
 
4834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4835
  (eval $ac_try) 2>&5
 
4836
  ac_status=$?
 
4837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4838
  (exit $ac_status); }; } &&
 
4839
         { ac_try='test -s conftest$ac_exeext'
 
4840
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4841
  (eval $ac_try) 2>&5
 
4842
  ac_status=$?
 
4843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4844
  (exit $ac_status); }; }; then
 
4845
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4846
else
 
4847
  echo "$as_me: failed program was:" >&5
 
4848
sed 's/^/| /' conftest.$ac_ext >&5
 
4849
 
 
4850
fi
 
4851
rm -f conftest.err conftest.$ac_objext \
 
4852
      conftest$ac_exeext conftest.$ac_ext
 
4853
  CXXFLAGS="$save_CXXFLAGS"
 
4854
  ac_ext=c
 
4855
ac_cpp='$CPP $CPPFLAGS'
 
4856
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4857
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4858
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4859
 
 
4860
 
 
4861
fi
 
4862
 
 
4863
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4864
 echo "$as_me:$LINENO: result: yes" >&5
 
4865
echo "${ECHO_T}yes" >&6
 
4866
 :
 
4867
 CXXFLAGS="-Wundef $CXXFLAGS"
 
4868
else
 
4869
 echo "$as_me:$LINENO: result: no" >&5
 
4870
echo "${ECHO_T}no" >&6
 
4871
 :
 
4872
 
 
4873
fi
 
4874
 
 
4875
 
 
4876
echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
 
4877
echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6
 
4878
kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'`
 
4879
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4880
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4881
else
 
4882
 
 
4883
 
 
4884
 
 
4885
   ac_ext=cc
 
4886
ac_cpp='$CXXCPP $CPPFLAGS'
 
4887
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4888
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4889
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4890
 
 
4891
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4892
 
 
4893
 
 
4894
  save_CXXFLAGS="$CXXFLAGS"
 
4895
  CXXFLAGS="$CXXFLAGS -Wno-long-long"
 
4896
  cat >conftest.$ac_ext <<_ACEOF
 
4897
/* confdefs.h.  */
 
4898
_ACEOF
 
4899
cat confdefs.h >>conftest.$ac_ext
 
4900
cat >>conftest.$ac_ext <<_ACEOF
 
4901
/* end confdefs.h.  */
 
4902
 
 
4903
int
 
4904
main ()
 
4905
{
 
4906
 return 0;
 
4907
  ;
 
4908
  return 0;
 
4909
}
 
4910
_ACEOF
 
4911
rm -f conftest.$ac_objext conftest$ac_exeext
 
4912
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4913
  (eval $ac_link) 2>conftest.er1
 
4914
  ac_status=$?
 
4915
  grep -v '^ *+' conftest.er1 >conftest.err
 
4916
  rm -f conftest.er1
 
4917
  cat conftest.err >&5
 
4918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4919
  (exit $ac_status); } &&
 
4920
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4921
                         || test ! -s conftest.err'
 
4922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4923
  (eval $ac_try) 2>&5
 
4924
  ac_status=$?
 
4925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4926
  (exit $ac_status); }; } &&
 
4927
         { ac_try='test -s conftest$ac_exeext'
 
4928
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4929
  (eval $ac_try) 2>&5
 
4930
  ac_status=$?
 
4931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4932
  (exit $ac_status); }; }; then
 
4933
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4934
else
 
4935
  echo "$as_me: failed program was:" >&5
 
4936
sed 's/^/| /' conftest.$ac_ext >&5
 
4937
 
 
4938
fi
 
4939
rm -f conftest.err conftest.$ac_objext \
 
4940
      conftest$ac_exeext conftest.$ac_ext
 
4941
  CXXFLAGS="$save_CXXFLAGS"
 
4942
  ac_ext=c
 
4943
ac_cpp='$CPP $CPPFLAGS'
 
4944
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4945
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4946
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4947
 
 
4948
 
 
4949
fi
 
4950
 
 
4951
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4952
 echo "$as_me:$LINENO: result: yes" >&5
 
4953
echo "${ECHO_T}yes" >&6
 
4954
 :
 
4955
 CXXFLAGS="-Wno-long-long $CXXFLAGS"
 
4956
else
 
4957
 echo "$as_me:$LINENO: result: no" >&5
 
4958
echo "${ECHO_T}no" >&6
 
4959
 :
 
4960
 
 
4961
fi
 
4962
 
 
4963
 
 
4964
echo "$as_me:$LINENO: checking whether $CXX supports -Wnon-virtual-dtor" >&5
 
4965
echo $ECHO_N "checking whether $CXX supports -Wnon-virtual-dtor... $ECHO_C" >&6
 
4966
kde_cache=`echo Wnon-virtual-dtor | sed 'y% .=/+-,%____p__%'`
 
4967
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4968
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4969
else
 
4970
 
 
4971
 
 
4972
 
 
4973
   ac_ext=cc
 
4974
ac_cpp='$CXXCPP $CPPFLAGS'
 
4975
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4976
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4977
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4978
 
 
4979
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4980
 
 
4981
 
 
4982
  save_CXXFLAGS="$CXXFLAGS"
 
4983
  CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor"
 
4984
  cat >conftest.$ac_ext <<_ACEOF
 
4985
/* confdefs.h.  */
 
4986
_ACEOF
 
4987
cat confdefs.h >>conftest.$ac_ext
 
4988
cat >>conftest.$ac_ext <<_ACEOF
 
4989
/* end confdefs.h.  */
 
4990
 
 
4991
int
 
4992
main ()
 
4993
{
 
4994
 return 0;
 
4995
  ;
 
4996
  return 0;
 
4997
}
 
4998
_ACEOF
 
4999
rm -f conftest.$ac_objext conftest$ac_exeext
 
5000
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5001
  (eval $ac_link) 2>conftest.er1
 
5002
  ac_status=$?
 
5003
  grep -v '^ *+' conftest.er1 >conftest.err
 
5004
  rm -f conftest.er1
 
5005
  cat conftest.err >&5
 
5006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5007
  (exit $ac_status); } &&
 
5008
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5009
                         || test ! -s conftest.err'
 
5010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5011
  (eval $ac_try) 2>&5
 
5012
  ac_status=$?
 
5013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5014
  (exit $ac_status); }; } &&
 
5015
         { ac_try='test -s conftest$ac_exeext'
 
5016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5017
  (eval $ac_try) 2>&5
 
5018
  ac_status=$?
 
5019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5020
  (exit $ac_status); }; }; then
 
5021
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5022
else
 
5023
  echo "$as_me: failed program was:" >&5
 
5024
sed 's/^/| /' conftest.$ac_ext >&5
 
5025
 
 
5026
fi
 
5027
rm -f conftest.err conftest.$ac_objext \
 
5028
      conftest$ac_exeext conftest.$ac_ext
 
5029
  CXXFLAGS="$save_CXXFLAGS"
 
5030
  ac_ext=c
 
5031
ac_cpp='$CPP $CPPFLAGS'
 
5032
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5033
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5034
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5035
 
 
5036
 
 
5037
fi
 
5038
 
 
5039
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5040
 echo "$as_me:$LINENO: result: yes" >&5
 
5041
echo "${ECHO_T}yes" >&6
 
5042
 :
 
5043
 CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"
 
5044
else
 
5045
 echo "$as_me:$LINENO: result: no" >&5
 
5046
echo "${ECHO_T}no" >&6
 
5047
 :
 
5048
 
 
5049
fi
 
5050
 
 
5051
     fi
 
5052
  fi
 
5053
 
 
5054
  if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
 
5055
    CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
 
5056
  fi
 
5057
 
 
5058
  # Check whether --enable-pch or --disable-pch was given.
 
5059
if test "${enable_pch+set}" = set; then
 
5060
  enableval="$enable_pch"
 
5061
   kde_use_pch=$enableval
 
5062
else
 
5063
   kde_use_pch=no
 
5064
fi;
 
5065
 
 
5066
  HAVE_GCC_VISIBILITY=0
 
5067
 
 
5068
 
 
5069
  if test "$GXX" = "yes"; then
 
5070
 
 
5071
echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
 
5072
echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6
 
5073
kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'`
 
5074
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5075
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5076
else
 
5077
 
 
5078
 
 
5079
 
 
5080
   ac_ext=cc
 
5081
ac_cpp='$CXXCPP $CPPFLAGS'
 
5082
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5083
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5084
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5085
 
 
5086
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5087
 
 
5088
 
 
5089
  save_CXXFLAGS="$CXXFLAGS"
 
5090
  CXXFLAGS="$CXXFLAGS -fno-exceptions"
 
5091
  cat >conftest.$ac_ext <<_ACEOF
 
5092
/* confdefs.h.  */
 
5093
_ACEOF
 
5094
cat confdefs.h >>conftest.$ac_ext
 
5095
cat >>conftest.$ac_ext <<_ACEOF
 
5096
/* end confdefs.h.  */
 
5097
 
 
5098
int
 
5099
main ()
 
5100
{
 
5101
 return 0;
 
5102
  ;
 
5103
  return 0;
 
5104
}
 
5105
_ACEOF
 
5106
rm -f conftest.$ac_objext conftest$ac_exeext
 
5107
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5108
  (eval $ac_link) 2>conftest.er1
 
5109
  ac_status=$?
 
5110
  grep -v '^ *+' conftest.er1 >conftest.err
 
5111
  rm -f conftest.er1
 
5112
  cat conftest.err >&5
 
5113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5114
  (exit $ac_status); } &&
 
5115
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5116
                         || test ! -s conftest.err'
 
5117
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5118
  (eval $ac_try) 2>&5
 
5119
  ac_status=$?
 
5120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5121
  (exit $ac_status); }; } &&
 
5122
         { ac_try='test -s conftest$ac_exeext'
 
5123
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5124
  (eval $ac_try) 2>&5
 
5125
  ac_status=$?
 
5126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5127
  (exit $ac_status); }; }; then
 
5128
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5129
else
 
5130
  echo "$as_me: failed program was:" >&5
 
5131
sed 's/^/| /' conftest.$ac_ext >&5
 
5132
 
 
5133
fi
 
5134
rm -f conftest.err conftest.$ac_objext \
 
5135
      conftest$ac_exeext conftest.$ac_ext
 
5136
  CXXFLAGS="$save_CXXFLAGS"
 
5137
  ac_ext=c
 
5138
ac_cpp='$CPP $CPPFLAGS'
 
5139
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5140
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5141
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5142
 
 
5143
 
 
5144
fi
 
5145
 
 
5146
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5147
 echo "$as_me:$LINENO: result: yes" >&5
 
5148
echo "${ECHO_T}yes" >&6
 
5149
 :
 
5150
 CXXFLAGS="$CXXFLAGS -fno-exceptions"
 
5151
else
 
5152
 echo "$as_me:$LINENO: result: no" >&5
 
5153
echo "${ECHO_T}no" >&6
 
5154
 :
 
5155
 
 
5156
fi
 
5157
 
 
5158
 
 
5159
echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
 
5160
echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6
 
5161
kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'`
 
5162
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5163
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5164
else
 
5165
 
 
5166
 
 
5167
 
 
5168
   ac_ext=cc
 
5169
ac_cpp='$CXXCPP $CPPFLAGS'
 
5170
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5171
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5172
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5173
 
 
5174
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5175
 
 
5176
 
 
5177
  save_CXXFLAGS="$CXXFLAGS"
 
5178
  CXXFLAGS="$CXXFLAGS -fno-check-new"
 
5179
  cat >conftest.$ac_ext <<_ACEOF
 
5180
/* confdefs.h.  */
 
5181
_ACEOF
 
5182
cat confdefs.h >>conftest.$ac_ext
 
5183
cat >>conftest.$ac_ext <<_ACEOF
 
5184
/* end confdefs.h.  */
 
5185
 
 
5186
int
 
5187
main ()
 
5188
{
 
5189
 return 0;
 
5190
  ;
 
5191
  return 0;
 
5192
}
 
5193
_ACEOF
 
5194
rm -f conftest.$ac_objext conftest$ac_exeext
 
5195
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5196
  (eval $ac_link) 2>conftest.er1
 
5197
  ac_status=$?
 
5198
  grep -v '^ *+' conftest.er1 >conftest.err
 
5199
  rm -f conftest.er1
 
5200
  cat conftest.err >&5
 
5201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5202
  (exit $ac_status); } &&
 
5203
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5204
                         || test ! -s conftest.err'
 
5205
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5206
  (eval $ac_try) 2>&5
 
5207
  ac_status=$?
 
5208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5209
  (exit $ac_status); }; } &&
 
5210
         { ac_try='test -s conftest$ac_exeext'
 
5211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5212
  (eval $ac_try) 2>&5
 
5213
  ac_status=$?
 
5214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5215
  (exit $ac_status); }; }; then
 
5216
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5217
else
 
5218
  echo "$as_me: failed program was:" >&5
 
5219
sed 's/^/| /' conftest.$ac_ext >&5
 
5220
 
 
5221
fi
 
5222
rm -f conftest.err conftest.$ac_objext \
 
5223
      conftest$ac_exeext conftest.$ac_ext
 
5224
  CXXFLAGS="$save_CXXFLAGS"
 
5225
  ac_ext=c
 
5226
ac_cpp='$CPP $CPPFLAGS'
 
5227
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5228
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5229
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5230
 
 
5231
 
 
5232
fi
 
5233
 
 
5234
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5235
 echo "$as_me:$LINENO: result: yes" >&5
 
5236
echo "${ECHO_T}yes" >&6
 
5237
 :
 
5238
 CXXFLAGS="$CXXFLAGS -fno-check-new"
 
5239
else
 
5240
 echo "$as_me:$LINENO: result: no" >&5
 
5241
echo "${ECHO_T}no" >&6
 
5242
 :
 
5243
 
 
5244
fi
 
5245
 
 
5246
 
 
5247
echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5
 
5248
echo $ECHO_N "checking whether $CXX supports -fno-common... $ECHO_C" >&6
 
5249
kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'`
 
5250
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5251
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5252
else
 
5253
 
 
5254
 
 
5255
 
 
5256
   ac_ext=cc
 
5257
ac_cpp='$CXXCPP $CPPFLAGS'
 
5258
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5259
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5260
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5261
 
 
5262
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5263
 
 
5264
 
 
5265
  save_CXXFLAGS="$CXXFLAGS"
 
5266
  CXXFLAGS="$CXXFLAGS -fno-common"
 
5267
  cat >conftest.$ac_ext <<_ACEOF
 
5268
/* confdefs.h.  */
 
5269
_ACEOF
 
5270
cat confdefs.h >>conftest.$ac_ext
 
5271
cat >>conftest.$ac_ext <<_ACEOF
 
5272
/* end confdefs.h.  */
 
5273
 
 
5274
int
 
5275
main ()
 
5276
{
 
5277
 return 0;
 
5278
  ;
 
5279
  return 0;
 
5280
}
 
5281
_ACEOF
 
5282
rm -f conftest.$ac_objext conftest$ac_exeext
 
5283
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5284
  (eval $ac_link) 2>conftest.er1
 
5285
  ac_status=$?
 
5286
  grep -v '^ *+' conftest.er1 >conftest.err
 
5287
  rm -f conftest.er1
 
5288
  cat conftest.err >&5
 
5289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5290
  (exit $ac_status); } &&
 
5291
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5292
                         || test ! -s conftest.err'
 
5293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5294
  (eval $ac_try) 2>&5
 
5295
  ac_status=$?
 
5296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5297
  (exit $ac_status); }; } &&
 
5298
         { ac_try='test -s conftest$ac_exeext'
 
5299
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5300
  (eval $ac_try) 2>&5
 
5301
  ac_status=$?
 
5302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5303
  (exit $ac_status); }; }; then
 
5304
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5305
else
 
5306
  echo "$as_me: failed program was:" >&5
 
5307
sed 's/^/| /' conftest.$ac_ext >&5
 
5308
 
 
5309
fi
 
5310
rm -f conftest.err conftest.$ac_objext \
 
5311
      conftest$ac_exeext conftest.$ac_ext
 
5312
  CXXFLAGS="$save_CXXFLAGS"
 
5313
  ac_ext=c
 
5314
ac_cpp='$CPP $CPPFLAGS'
 
5315
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5316
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5317
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5318
 
 
5319
 
 
5320
fi
 
5321
 
 
5322
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5323
 echo "$as_me:$LINENO: result: yes" >&5
 
5324
echo "${ECHO_T}yes" >&6
 
5325
 :
 
5326
 CXXFLAGS="$CXXFLAGS -fno-common"
 
5327
else
 
5328
 echo "$as_me:$LINENO: result: no" >&5
 
5329
echo "${ECHO_T}no" >&6
 
5330
 :
 
5331
 
 
5332
fi
 
5333
 
 
5334
 
 
5335
echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
 
5336
echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6
 
5337
kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'`
 
5338
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5339
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5340
else
 
5341
 
 
5342
 
 
5343
 
 
5344
   ac_ext=cc
 
5345
ac_cpp='$CXXCPP $CPPFLAGS'
 
5346
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5347
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5348
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5349
 
 
5350
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5351
 
 
5352
 
 
5353
  save_CXXFLAGS="$CXXFLAGS"
 
5354
  CXXFLAGS="$CXXFLAGS -fexceptions"
 
5355
  cat >conftest.$ac_ext <<_ACEOF
 
5356
/* confdefs.h.  */
 
5357
_ACEOF
 
5358
cat confdefs.h >>conftest.$ac_ext
 
5359
cat >>conftest.$ac_ext <<_ACEOF
 
5360
/* end confdefs.h.  */
 
5361
 
 
5362
int
 
5363
main ()
 
5364
{
 
5365
 return 0;
 
5366
  ;
 
5367
  return 0;
 
5368
}
 
5369
_ACEOF
 
5370
rm -f conftest.$ac_objext conftest$ac_exeext
 
5371
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5372
  (eval $ac_link) 2>conftest.er1
 
5373
  ac_status=$?
 
5374
  grep -v '^ *+' conftest.er1 >conftest.err
 
5375
  rm -f conftest.er1
 
5376
  cat conftest.err >&5
 
5377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5378
  (exit $ac_status); } &&
 
5379
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5380
                         || test ! -s conftest.err'
 
5381
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5382
  (eval $ac_try) 2>&5
 
5383
  ac_status=$?
 
5384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5385
  (exit $ac_status); }; } &&
 
5386
         { ac_try='test -s conftest$ac_exeext'
 
5387
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5388
  (eval $ac_try) 2>&5
 
5389
  ac_status=$?
 
5390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5391
  (exit $ac_status); }; }; then
 
5392
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5393
else
 
5394
  echo "$as_me: failed program was:" >&5
 
5395
sed 's/^/| /' conftest.$ac_ext >&5
 
5396
 
 
5397
fi
 
5398
rm -f conftest.err conftest.$ac_objext \
 
5399
      conftest$ac_exeext conftest.$ac_ext
 
5400
  CXXFLAGS="$save_CXXFLAGS"
 
5401
  ac_ext=c
 
5402
ac_cpp='$CPP $CPPFLAGS'
 
5403
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5404
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5405
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5406
 
 
5407
 
 
5408
fi
 
5409
 
 
5410
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5411
 echo "$as_me:$LINENO: result: yes" >&5
 
5412
echo "${ECHO_T}yes" >&6
 
5413
 :
 
5414
 USE_EXCEPTIONS="-fexceptions"
 
5415
else
 
5416
 echo "$as_me:$LINENO: result: no" >&5
 
5417
echo "${ECHO_T}no" >&6
 
5418
 :
 
5419
 USE_EXCEPTIONS=
 
5420
fi
 
5421
 
 
5422
    ENABLE_PERMISSIVE_FLAG="-fpermissive"
 
5423
 
 
5424
    if test "$kde_use_pch" = "yes"; then
 
5425
        echo "$as_me:$LINENO: checking whether gcc supports precompiling c header files" >&5
 
5426
echo $ECHO_N "checking whether gcc supports precompiling c header files... $ECHO_C" >&6
 
5427
        echo >conftest.h
 
5428
        if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then
 
5429
            kde_gcc_supports_pch=yes
 
5430
            echo "$as_me:$LINENO: result: yes" >&5
 
5431
echo "${ECHO_T}yes" >&6
 
5432
        else
 
5433
            kde_gcc_supports_pch=no
 
5434
            echo "$as_me:$LINENO: result: no" >&5
 
5435
echo "${ECHO_T}no" >&6
 
5436
        fi
 
5437
        if test "$kde_gcc_supports_pch" = "yes"; then
 
5438
            echo "$as_me:$LINENO: checking whether gcc supports precompiling c++ header files" >&5
 
5439
echo $ECHO_N "checking whether gcc supports precompiling c++ header files... $ECHO_C" >&6
 
5440
            if $CXX -x c++-header conftest.h >/dev/null 2>/dev/null; then
 
5441
                kde_gcc_supports_pch=yes
 
5442
                echo "$as_me:$LINENO: result: yes" >&5
 
5443
echo "${ECHO_T}yes" >&6
 
5444
            else
 
5445
                kde_gcc_supports_pch=no
 
5446
                echo "$as_me:$LINENO: result: no" >&5
 
5447
echo "${ECHO_T}no" >&6
 
5448
            fi
 
5449
        fi
 
5450
        rm -f conftest.h conftest.h.gch
 
5451
    fi
 
5452
  fi
 
5453
 
 
5454
 
 
5455
if test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes"; then
 
5456
  unsermake_enable_pch_TRUE=
 
5457
  unsermake_enable_pch_FALSE='#'
 
5458
else
 
5459
  unsermake_enable_pch_TRUE='#'
 
5460
  unsermake_enable_pch_FALSE=
 
5461
fi
 
5462
 
 
5463
  if test "$CXX" = "KCC"; then
 
5464
 
 
5465
    if test "$kde_use_pch" = "yes"; then
 
5466
 
 
5467
echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
 
5468
echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6
 
5469
kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'`
 
5470
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5471
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5472
else
 
5473
 
 
5474
 
 
5475
 
 
5476
   ac_ext=cc
 
5477
ac_cpp='$CXXCPP $CPPFLAGS'
 
5478
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5479
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5480
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5481
 
 
5482
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5483
 
 
5484
 
 
5485
  save_CXXFLAGS="$CXXFLAGS"
 
5486
  CXXFLAGS="$CXXFLAGS --pch"
 
5487
  cat >conftest.$ac_ext <<_ACEOF
 
5488
/* confdefs.h.  */
 
5489
_ACEOF
 
5490
cat confdefs.h >>conftest.$ac_ext
 
5491
cat >>conftest.$ac_ext <<_ACEOF
 
5492
/* end confdefs.h.  */
 
5493
 
 
5494
int
 
5495
main ()
 
5496
{
 
5497
 return 0;
 
5498
  ;
 
5499
  return 0;
 
5500
}
 
5501
_ACEOF
 
5502
rm -f conftest.$ac_objext conftest$ac_exeext
 
5503
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5504
  (eval $ac_link) 2>conftest.er1
 
5505
  ac_status=$?
 
5506
  grep -v '^ *+' conftest.er1 >conftest.err
 
5507
  rm -f conftest.er1
 
5508
  cat conftest.err >&5
 
5509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5510
  (exit $ac_status); } &&
 
5511
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5512
                         || test ! -s conftest.err'
 
5513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5514
  (eval $ac_try) 2>&5
 
5515
  ac_status=$?
 
5516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5517
  (exit $ac_status); }; } &&
 
5518
         { ac_try='test -s conftest$ac_exeext'
 
5519
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5520
  (eval $ac_try) 2>&5
 
5521
  ac_status=$?
 
5522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5523
  (exit $ac_status); }; }; then
 
5524
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5525
else
 
5526
  echo "$as_me: failed program was:" >&5
 
5527
sed 's/^/| /' conftest.$ac_ext >&5
 
5528
 
 
5529
fi
 
5530
rm -f conftest.err conftest.$ac_objext \
 
5531
      conftest$ac_exeext conftest.$ac_ext
 
5532
  CXXFLAGS="$save_CXXFLAGS"
 
5533
  ac_ext=c
 
5534
ac_cpp='$CPP $CPPFLAGS'
 
5535
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5536
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5537
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5538
 
 
5539
 
 
5540
fi
 
5541
 
 
5542
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5543
 echo "$as_me:$LINENO: result: yes" >&5
 
5544
echo "${ECHO_T}yes" >&6
 
5545
 :
 
5546
 CXXFLAGS="$CXXFLAGS --pch"
 
5547
else
 
5548
 echo "$as_me:$LINENO: result: no" >&5
 
5549
echo "${ECHO_T}no" >&6
 
5550
 :
 
5551
 
 
5552
fi
 
5553
 
 
5554
                                              fi
 
5555
 
 
5556
echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
 
5557
echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6
 
5558
kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'`
 
5559
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5560
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5561
else
 
5562
 
 
5563
 
 
5564
 
 
5565
   ac_ext=cc
 
5566
ac_cpp='$CXXCPP $CPPFLAGS'
 
5567
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5568
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5569
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5570
 
 
5571
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5572
 
 
5573
 
 
5574
  save_CXXFLAGS="$CXXFLAGS"
 
5575
  CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
 
5576
  cat >conftest.$ac_ext <<_ACEOF
 
5577
/* confdefs.h.  */
 
5578
_ACEOF
 
5579
cat confdefs.h >>conftest.$ac_ext
 
5580
cat >>conftest.$ac_ext <<_ACEOF
 
5581
/* end confdefs.h.  */
 
5582
 
 
5583
int
 
5584
main ()
 
5585
{
 
5586
 return 0;
 
5587
  ;
 
5588
  return 0;
 
5589
}
 
5590
_ACEOF
 
5591
rm -f conftest.$ac_objext conftest$ac_exeext
 
5592
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5593
  (eval $ac_link) 2>conftest.er1
 
5594
  ac_status=$?
 
5595
  grep -v '^ *+' conftest.er1 >conftest.err
 
5596
  rm -f conftest.er1
 
5597
  cat conftest.err >&5
 
5598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5599
  (exit $ac_status); } &&
 
5600
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5601
                         || test ! -s conftest.err'
 
5602
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5603
  (eval $ac_try) 2>&5
 
5604
  ac_status=$?
 
5605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5606
  (exit $ac_status); }; } &&
 
5607
         { ac_try='test -s conftest$ac_exeext'
 
5608
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5609
  (eval $ac_try) 2>&5
 
5610
  ac_status=$?
 
5611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5612
  (exit $ac_status); }; }; then
 
5613
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5614
else
 
5615
  echo "$as_me: failed program was:" >&5
 
5616
sed 's/^/| /' conftest.$ac_ext >&5
 
5617
 
 
5618
fi
 
5619
rm -f conftest.err conftest.$ac_objext \
 
5620
      conftest$ac_exeext conftest.$ac_ext
 
5621
  CXXFLAGS="$save_CXXFLAGS"
 
5622
  ac_ext=c
 
5623
ac_cpp='$CPP $CPPFLAGS'
 
5624
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5625
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5626
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5627
 
 
5628
 
 
5629
fi
 
5630
 
 
5631
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5632
 echo "$as_me:$LINENO: result: yes" >&5
 
5633
echo "${ECHO_T}yes" >&6
 
5634
 :
 
5635
 CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
 
5636
else
 
5637
 echo "$as_me:$LINENO: result: no" >&5
 
5638
echo "${ECHO_T}no" >&6
 
5639
 :
 
5640
 
 
5641
fi
 
5642
 
 
5643
 
 
5644
echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
 
5645
echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6
 
5646
kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'`
 
5647
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5648
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5649
else
 
5650
 
 
5651
 
 
5652
 
 
5653
   ac_ext=cc
 
5654
ac_cpp='$CXXCPP $CPPFLAGS'
 
5655
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5656
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5657
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5658
 
 
5659
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5660
 
 
5661
 
 
5662
  save_CXXFLAGS="$CXXFLAGS"
 
5663
  CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
 
5664
  cat >conftest.$ac_ext <<_ACEOF
 
5665
/* confdefs.h.  */
 
5666
_ACEOF
 
5667
cat confdefs.h >>conftest.$ac_ext
 
5668
cat >>conftest.$ac_ext <<_ACEOF
 
5669
/* end confdefs.h.  */
 
5670
 
 
5671
int
 
5672
main ()
 
5673
{
 
5674
 return 0;
 
5675
  ;
 
5676
  return 0;
 
5677
}
 
5678
_ACEOF
 
5679
rm -f conftest.$ac_objext conftest$ac_exeext
 
5680
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5681
  (eval $ac_link) 2>conftest.er1
 
5682
  ac_status=$?
 
5683
  grep -v '^ *+' conftest.er1 >conftest.err
 
5684
  rm -f conftest.er1
 
5685
  cat conftest.err >&5
 
5686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5687
  (exit $ac_status); } &&
 
5688
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5689
                         || test ! -s conftest.err'
 
5690
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5691
  (eval $ac_try) 2>&5
 
5692
  ac_status=$?
 
5693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5694
  (exit $ac_status); }; } &&
 
5695
         { ac_try='test -s conftest$ac_exeext'
 
5696
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5697
  (eval $ac_try) 2>&5
 
5698
  ac_status=$?
 
5699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5700
  (exit $ac_status); }; }; then
 
5701
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5702
else
 
5703
  echo "$as_me: failed program was:" >&5
 
5704
sed 's/^/| /' conftest.$ac_ext >&5
 
5705
 
 
5706
fi
 
5707
rm -f conftest.err conftest.$ac_objext \
 
5708
      conftest$ac_exeext conftest.$ac_ext
 
5709
  CXXFLAGS="$save_CXXFLAGS"
 
5710
  ac_ext=c
 
5711
ac_cpp='$CPP $CPPFLAGS'
 
5712
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5713
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5714
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5715
 
 
5716
 
 
5717
fi
 
5718
 
 
5719
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5720
 echo "$as_me:$LINENO: result: yes" >&5
 
5721
echo "${ECHO_T}yes" >&6
 
5722
 :
 
5723
 CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
 
5724
else
 
5725
 echo "$as_me:$LINENO: result: no" >&5
 
5726
echo "${ECHO_T}no" >&6
 
5727
 :
 
5728
 
 
5729
fi
 
5730
 
 
5731
 
 
5732
echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
 
5733
echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6
 
5734
kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
 
5735
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5737
else
 
5738
 
 
5739
 
 
5740
 
 
5741
   ac_ext=cc
 
5742
ac_cpp='$CXXCPP $CPPFLAGS'
 
5743
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5744
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5745
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5746
 
 
5747
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5748
 
 
5749
 
 
5750
  save_CXXFLAGS="$CXXFLAGS"
 
5751
  CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
 
5752
  cat >conftest.$ac_ext <<_ACEOF
 
5753
/* confdefs.h.  */
 
5754
_ACEOF
 
5755
cat confdefs.h >>conftest.$ac_ext
 
5756
cat >>conftest.$ac_ext <<_ACEOF
 
5757
/* end confdefs.h.  */
 
5758
 
 
5759
int
 
5760
main ()
 
5761
{
 
5762
 return 0;
 
5763
  ;
 
5764
  return 0;
 
5765
}
 
5766
_ACEOF
 
5767
rm -f conftest.$ac_objext conftest$ac_exeext
 
5768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5769
  (eval $ac_link) 2>conftest.er1
 
5770
  ac_status=$?
 
5771
  grep -v '^ *+' conftest.er1 >conftest.err
 
5772
  rm -f conftest.er1
 
5773
  cat conftest.err >&5
 
5774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5775
  (exit $ac_status); } &&
 
5776
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5777
                         || test ! -s conftest.err'
 
5778
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5779
  (eval $ac_try) 2>&5
 
5780
  ac_status=$?
 
5781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5782
  (exit $ac_status); }; } &&
 
5783
         { ac_try='test -s conftest$ac_exeext'
 
5784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5785
  (eval $ac_try) 2>&5
 
5786
  ac_status=$?
 
5787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5788
  (exit $ac_status); }; }; then
 
5789
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5790
else
 
5791
  echo "$as_me: failed program was:" >&5
 
5792
sed 's/^/| /' conftest.$ac_ext >&5
 
5793
 
 
5794
fi
 
5795
rm -f conftest.err conftest.$ac_objext \
 
5796
      conftest$ac_exeext conftest.$ac_ext
 
5797
  CXXFLAGS="$save_CXXFLAGS"
 
5798
  ac_ext=c
 
5799
ac_cpp='$CPP $CPPFLAGS'
 
5800
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5801
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5802
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5803
 
 
5804
 
 
5805
fi
 
5806
 
 
5807
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5808
 echo "$as_me:$LINENO: result: yes" >&5
 
5809
echo "${ECHO_T}yes" >&6
 
5810
 :
 
5811
 CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
 
5812
else
 
5813
 echo "$as_me:$LINENO: result: no" >&5
 
5814
echo "${ECHO_T}no" >&6
 
5815
 :
 
5816
 
 
5817
fi
 
5818
 
 
5819
 
 
5820
echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
 
5821
echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6
 
5822
kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
 
5823
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5824
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5825
else
 
5826
 
 
5827
 
 
5828
 
 
5829
   ac_ext=cc
 
5830
ac_cpp='$CXXCPP $CPPFLAGS'
 
5831
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5832
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5833
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5834
 
 
5835
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5836
 
 
5837
 
 
5838
  save_CXXFLAGS="$CXXFLAGS"
 
5839
  CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
 
5840
  cat >conftest.$ac_ext <<_ACEOF
 
5841
/* confdefs.h.  */
 
5842
_ACEOF
 
5843
cat confdefs.h >>conftest.$ac_ext
 
5844
cat >>conftest.$ac_ext <<_ACEOF
 
5845
/* end confdefs.h.  */
 
5846
 
 
5847
int
 
5848
main ()
 
5849
{
 
5850
 return 0;
 
5851
  ;
 
5852
  return 0;
 
5853
}
 
5854
_ACEOF
 
5855
rm -f conftest.$ac_objext conftest$ac_exeext
 
5856
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5857
  (eval $ac_link) 2>conftest.er1
 
5858
  ac_status=$?
 
5859
  grep -v '^ *+' conftest.er1 >conftest.err
 
5860
  rm -f conftest.er1
 
5861
  cat conftest.err >&5
 
5862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5863
  (exit $ac_status); } &&
 
5864
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5865
                         || test ! -s conftest.err'
 
5866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5867
  (eval $ac_try) 2>&5
 
5868
  ac_status=$?
 
5869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5870
  (exit $ac_status); }; } &&
 
5871
         { ac_try='test -s conftest$ac_exeext'
 
5872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5873
  (eval $ac_try) 2>&5
 
5874
  ac_status=$?
 
5875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5876
  (exit $ac_status); }; }; then
 
5877
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5878
else
 
5879
  echo "$as_me: failed program was:" >&5
 
5880
sed 's/^/| /' conftest.$ac_ext >&5
 
5881
 
 
5882
fi
 
5883
rm -f conftest.err conftest.$ac_objext \
 
5884
      conftest$ac_exeext conftest.$ac_ext
 
5885
  CXXFLAGS="$save_CXXFLAGS"
 
5886
  ac_ext=c
 
5887
ac_cpp='$CPP $CPPFLAGS'
 
5888
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5889
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5890
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5891
 
 
5892
 
 
5893
fi
 
5894
 
 
5895
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5896
 echo "$as_me:$LINENO: result: yes" >&5
 
5897
echo "${ECHO_T}yes" >&6
 
5898
 :
 
5899
 CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
 
5900
else
 
5901
 echo "$as_me:$LINENO: result: no" >&5
 
5902
echo "${ECHO_T}no" >&6
 
5903
 :
 
5904
 
 
5905
fi
 
5906
 
 
5907
 
 
5908
echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
 
5909
echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6
 
5910
kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'`
 
5911
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5912
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5913
else
 
5914
 
 
5915
 
 
5916
 
 
5917
   ac_ext=cc
 
5918
ac_cpp='$CXXCPP $CPPFLAGS'
 
5919
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5920
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5921
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5922
 
 
5923
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5924
 
 
5925
 
 
5926
  save_CXXFLAGS="$CXXFLAGS"
 
5927
  CXXFLAGS="$CXXFLAGS --one_per"
 
5928
  cat >conftest.$ac_ext <<_ACEOF
 
5929
/* confdefs.h.  */
 
5930
_ACEOF
 
5931
cat confdefs.h >>conftest.$ac_ext
 
5932
cat >>conftest.$ac_ext <<_ACEOF
 
5933
/* end confdefs.h.  */
 
5934
 
 
5935
int
 
5936
main ()
 
5937
{
 
5938
 return 0;
 
5939
  ;
 
5940
  return 0;
 
5941
}
 
5942
_ACEOF
 
5943
rm -f conftest.$ac_objext conftest$ac_exeext
 
5944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5945
  (eval $ac_link) 2>conftest.er1
 
5946
  ac_status=$?
 
5947
  grep -v '^ *+' conftest.er1 >conftest.err
 
5948
  rm -f conftest.er1
 
5949
  cat conftest.err >&5
 
5950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5951
  (exit $ac_status); } &&
 
5952
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5953
                         || test ! -s conftest.err'
 
5954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5955
  (eval $ac_try) 2>&5
 
5956
  ac_status=$?
 
5957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5958
  (exit $ac_status); }; } &&
 
5959
         { ac_try='test -s conftest$ac_exeext'
 
5960
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5961
  (eval $ac_try) 2>&5
 
5962
  ac_status=$?
 
5963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5964
  (exit $ac_status); }; }; then
 
5965
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5966
else
 
5967
  echo "$as_me: failed program was:" >&5
 
5968
sed 's/^/| /' conftest.$ac_ext >&5
 
5969
 
 
5970
fi
 
5971
rm -f conftest.err conftest.$ac_objext \
 
5972
      conftest$ac_exeext conftest.$ac_ext
 
5973
  CXXFLAGS="$save_CXXFLAGS"
 
5974
  ac_ext=c
 
5975
ac_cpp='$CPP $CPPFLAGS'
 
5976
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5977
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5978
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5979
 
 
5980
 
 
5981
fi
 
5982
 
 
5983
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5984
 echo "$as_me:$LINENO: result: yes" >&5
 
5985
echo "${ECHO_T}yes" >&6
 
5986
 :
 
5987
 CXXFLAGS="$CXXFLAGS --one_per"
 
5988
else
 
5989
 echo "$as_me:$LINENO: result: no" >&5
 
5990
echo "${ECHO_T}no" >&6
 
5991
 :
 
5992
 
 
5993
fi
 
5994
 
 
5995
  fi
 
5996
 
 
5997
    USE_RTTI=
 
5998
 
 
5999
 
 
6000
  case "$host" in
 
6001
      *-*-irix*)  test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
 
6002
      *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
 
6003
      *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
 
6004
      *-*-solaris*)
 
6005
        if test "$GXX" = yes; then
 
6006
          libstdcpp=`$CXX -print-file-name=libstdc++.so`
 
6007
          if test ! -f $libstdcpp; then
 
6008
             { { 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
 
6009
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;}
 
6010
   { (exit 1); exit 1; }; }
 
6011
          fi
 
6012
        fi
 
6013
        ;;
 
6014
  esac
 
6015
 
 
6016
  if test "x$kde_use_qt_emb" != "xyes"; then
 
6017
  __val=$CXX
 
6018
  __forbid=" -fno-rtti -rpath "
 
6019
  if test -n "$__val"; then
 
6020
    __new=""
 
6021
    ac_save_IFS=$IFS
 
6022
    IFS="       "
 
6023
    for i in $__val; do
 
6024
      case "$__forbid" in
 
6025
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
 
6026
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
 
6027
        *) # Careful to not add spaces, where there were none, because otherwise
 
6028
           # libtool gets confused, if we change e.g. CXX
 
6029
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
6030
      esac
 
6031
    done
 
6032
    IFS=$ac_save_IFS
 
6033
    CXX=$__new
 
6034
  fi
 
6035
 
 
6036
  __val=$CXXFLAGS
 
6037
  __forbid=" -fno-rtti -rpath "
 
6038
  if test -n "$__val"; then
 
6039
    __new=""
 
6040
    ac_save_IFS=$IFS
 
6041
    IFS="       "
 
6042
    for i in $__val; do
 
6043
      case "$__forbid" in
 
6044
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
 
6045
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
 
6046
        *) # Careful to not add spaces, where there were none, because otherwise
 
6047
           # libtool gets confused, if we change e.g. CXX
 
6048
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
6049
      esac
 
6050
    done
 
6051
    IFS=$ac_save_IFS
 
6052
    CXXFLAGS=$__new
 
6053
  fi
 
6054
 
 
6055
else
 
6056
  __val=$CXX
 
6057
  __forbid=" -rpath "
 
6058
  if test -n "$__val"; then
 
6059
    __new=""
 
6060
    ac_save_IFS=$IFS
 
6061
    IFS="       "
 
6062
    for i in $__val; do
 
6063
      case "$__forbid" in
 
6064
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
 
6065
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
 
6066
        *) # Careful to not add spaces, where there were none, because otherwise
 
6067
           # libtool gets confused, if we change e.g. CXX
 
6068
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
6069
      esac
 
6070
    done
 
6071
    IFS=$ac_save_IFS
 
6072
    CXX=$__new
 
6073
  fi
 
6074
 
 
6075
  __val=$CXXFLAGS
 
6076
  __forbid=" -rpath "
 
6077
  if test -n "$__val"; then
 
6078
    __new=""
 
6079
    ac_save_IFS=$IFS
 
6080
    IFS="       "
 
6081
    for i in $__val; do
 
6082
      case "$__forbid" in
 
6083
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
 
6084
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
 
6085
        *) # Careful to not add spaces, where there were none, because otherwise
 
6086
           # libtool gets confused, if we change e.g. CXX
 
6087
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
6088
      esac
 
6089
    done
 
6090
    IFS=$ac_save_IFS
 
6091
    CXXFLAGS=$__new
 
6092
  fi
 
6093
 
 
6094
fi
 
6095
 
 
6096
 
 
6097
  ac_ext=cc
 
6098
ac_cpp='$CXXCPP $CPPFLAGS'
 
6099
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6100
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6101
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6102
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6103
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
6104
if test -z "$CXXCPP"; then
 
6105
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6106
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6107
else
 
6108
      # Double quotes because CXXCPP needs to be expanded
 
6109
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6110
    do
 
6111
      ac_preproc_ok=false
 
6112
for ac_cxx_preproc_warn_flag in '' yes
 
6113
do
 
6114
  # Use a header file that comes with gcc, so configuring glibc
 
6115
  # with a fresh cross-compiler works.
 
6116
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6117
  # <limits.h> exists even on freestanding compilers.
 
6118
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6119
  # not just through cpp. "Syntax error" is here to catch this case.
 
6120
  cat >conftest.$ac_ext <<_ACEOF
 
6121
/* confdefs.h.  */
 
6122
_ACEOF
 
6123
cat confdefs.h >>conftest.$ac_ext
 
6124
cat >>conftest.$ac_ext <<_ACEOF
 
6125
/* end confdefs.h.  */
 
6126
#ifdef __STDC__
 
6127
# include <limits.h>
 
6128
#else
 
6129
# include <assert.h>
 
6130
#endif
 
6131
                     Syntax error
 
6132
_ACEOF
 
6133
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6134
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6135
  ac_status=$?
 
6136
  grep -v '^ *+' conftest.er1 >conftest.err
 
6137
  rm -f conftest.er1
 
6138
  cat conftest.err >&5
 
6139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6140
  (exit $ac_status); } >/dev/null; then
 
6141
  if test -s conftest.err; then
 
6142
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6143
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6144
  else
 
6145
    ac_cpp_err=
 
6146
  fi
 
6147
else
 
6148
  ac_cpp_err=yes
 
6149
fi
 
6150
if test -z "$ac_cpp_err"; then
 
6151
  :
 
6152
else
 
6153
  echo "$as_me: failed program was:" >&5
 
6154
sed 's/^/| /' conftest.$ac_ext >&5
 
6155
 
 
6156
  # Broken: fails on valid input.
 
6157
continue
 
6158
fi
 
6159
rm -f conftest.err conftest.$ac_ext
 
6160
 
 
6161
  # OK, works on sane cases.  Now check whether non-existent headers
 
6162
  # can be detected and how.
 
6163
  cat >conftest.$ac_ext <<_ACEOF
 
6164
/* confdefs.h.  */
 
6165
_ACEOF
 
6166
cat confdefs.h >>conftest.$ac_ext
 
6167
cat >>conftest.$ac_ext <<_ACEOF
 
6168
/* end confdefs.h.  */
 
6169
#include <ac_nonexistent.h>
 
6170
_ACEOF
 
6171
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6172
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6173
  ac_status=$?
 
6174
  grep -v '^ *+' conftest.er1 >conftest.err
 
6175
  rm -f conftest.er1
 
6176
  cat conftest.err >&5
 
6177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6178
  (exit $ac_status); } >/dev/null; then
 
6179
  if test -s conftest.err; then
 
6180
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6181
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6182
  else
 
6183
    ac_cpp_err=
 
6184
  fi
 
6185
else
 
6186
  ac_cpp_err=yes
 
6187
fi
 
6188
if test -z "$ac_cpp_err"; then
 
6189
  # Broken: success on invalid input.
 
6190
continue
 
6191
else
 
6192
  echo "$as_me: failed program was:" >&5
 
6193
sed 's/^/| /' conftest.$ac_ext >&5
 
6194
 
 
6195
  # Passes both tests.
 
6196
ac_preproc_ok=:
 
6197
break
 
6198
fi
 
6199
rm -f conftest.err conftest.$ac_ext
 
6200
 
 
6201
done
 
6202
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6203
rm -f conftest.err conftest.$ac_ext
 
6204
if $ac_preproc_ok; then
 
6205
  break
 
6206
fi
 
6207
 
 
6208
    done
 
6209
    ac_cv_prog_CXXCPP=$CXXCPP
 
6210
 
 
6211
fi
 
6212
  CXXCPP=$ac_cv_prog_CXXCPP
 
6213
else
 
6214
  ac_cv_prog_CXXCPP=$CXXCPP
 
6215
fi
 
6216
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6217
echo "${ECHO_T}$CXXCPP" >&6
 
6218
ac_preproc_ok=false
 
6219
for ac_cxx_preproc_warn_flag in '' yes
 
6220
do
 
6221
  # Use a header file that comes with gcc, so configuring glibc
 
6222
  # with a fresh cross-compiler works.
 
6223
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6224
  # <limits.h> exists even on freestanding compilers.
 
6225
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6226
  # not just through cpp. "Syntax error" is here to catch this case.
 
6227
  cat >conftest.$ac_ext <<_ACEOF
 
6228
/* confdefs.h.  */
 
6229
_ACEOF
 
6230
cat confdefs.h >>conftest.$ac_ext
 
6231
cat >>conftest.$ac_ext <<_ACEOF
 
6232
/* end confdefs.h.  */
 
6233
#ifdef __STDC__
 
6234
# include <limits.h>
 
6235
#else
 
6236
# include <assert.h>
 
6237
#endif
 
6238
                     Syntax error
 
6239
_ACEOF
 
6240
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6241
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6242
  ac_status=$?
 
6243
  grep -v '^ *+' conftest.er1 >conftest.err
 
6244
  rm -f conftest.er1
 
6245
  cat conftest.err >&5
 
6246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6247
  (exit $ac_status); } >/dev/null; then
 
6248
  if test -s conftest.err; then
 
6249
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6250
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6251
  else
 
6252
    ac_cpp_err=
 
6253
  fi
 
6254
else
 
6255
  ac_cpp_err=yes
 
6256
fi
 
6257
if test -z "$ac_cpp_err"; then
 
6258
  :
 
6259
else
 
6260
  echo "$as_me: failed program was:" >&5
 
6261
sed 's/^/| /' conftest.$ac_ext >&5
 
6262
 
 
6263
  # Broken: fails on valid input.
 
6264
continue
 
6265
fi
 
6266
rm -f conftest.err conftest.$ac_ext
 
6267
 
 
6268
  # OK, works on sane cases.  Now check whether non-existent headers
 
6269
  # can be detected and how.
 
6270
  cat >conftest.$ac_ext <<_ACEOF
 
6271
/* confdefs.h.  */
 
6272
_ACEOF
 
6273
cat confdefs.h >>conftest.$ac_ext
 
6274
cat >>conftest.$ac_ext <<_ACEOF
 
6275
/* end confdefs.h.  */
 
6276
#include <ac_nonexistent.h>
 
6277
_ACEOF
 
6278
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6279
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6280
  ac_status=$?
 
6281
  grep -v '^ *+' conftest.er1 >conftest.err
 
6282
  rm -f conftest.er1
 
6283
  cat conftest.err >&5
 
6284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6285
  (exit $ac_status); } >/dev/null; then
 
6286
  if test -s conftest.err; then
 
6287
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6288
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6289
  else
 
6290
    ac_cpp_err=
 
6291
  fi
 
6292
else
 
6293
  ac_cpp_err=yes
 
6294
fi
 
6295
if test -z "$ac_cpp_err"; then
 
6296
  # Broken: success on invalid input.
 
6297
continue
 
6298
else
 
6299
  echo "$as_me: failed program was:" >&5
 
6300
sed 's/^/| /' conftest.$ac_ext >&5
 
6301
 
 
6302
  # Passes both tests.
 
6303
ac_preproc_ok=:
 
6304
break
 
6305
fi
 
6306
rm -f conftest.err conftest.$ac_ext
 
6307
 
 
6308
done
 
6309
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6310
rm -f conftest.err conftest.$ac_ext
 
6311
if $ac_preproc_ok; then
 
6312
  :
 
6313
else
 
6314
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6315
See \`config.log' for more details." >&5
 
6316
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6317
See \`config.log' for more details." >&2;}
 
6318
   { (exit 1); exit 1; }; }
 
6319
fi
 
6320
 
 
6321
ac_ext=c
 
6322
ac_cpp='$CPP $CPPFLAGS'
 
6323
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6324
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6325
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6326
 
 
6327
 
 
6328
  if test "$GCC" = yes; then
 
6329
     NOOPT_CFLAGS=-O0
 
6330
  fi
 
6331
 
 
6332
echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5
 
6333
echo $ECHO_N "checking whether $CXX supports -O0... $ECHO_C" >&6
 
6334
kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'`
 
6335
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
6336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6337
else
 
6338
 
 
6339
 
 
6340
 
 
6341
   ac_ext=cc
 
6342
ac_cpp='$CXXCPP $CPPFLAGS'
 
6343
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6344
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6345
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6346
 
 
6347
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6348
 
 
6349
 
 
6350
  save_CXXFLAGS="$CXXFLAGS"
 
6351
  CXXFLAGS="$CXXFLAGS -O0"
 
6352
  cat >conftest.$ac_ext <<_ACEOF
 
6353
/* confdefs.h.  */
 
6354
_ACEOF
 
6355
cat confdefs.h >>conftest.$ac_ext
 
6356
cat >>conftest.$ac_ext <<_ACEOF
 
6357
/* end confdefs.h.  */
 
6358
 
 
6359
int
 
6360
main ()
 
6361
{
 
6362
 return 0;
 
6363
  ;
 
6364
  return 0;
 
6365
}
 
6366
_ACEOF
 
6367
rm -f conftest.$ac_objext conftest$ac_exeext
 
6368
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6369
  (eval $ac_link) 2>conftest.er1
 
6370
  ac_status=$?
 
6371
  grep -v '^ *+' conftest.er1 >conftest.err
 
6372
  rm -f conftest.er1
 
6373
  cat conftest.err >&5
 
6374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6375
  (exit $ac_status); } &&
 
6376
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6377
                         || test ! -s conftest.err'
 
6378
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6379
  (eval $ac_try) 2>&5
 
6380
  ac_status=$?
 
6381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6382
  (exit $ac_status); }; } &&
 
6383
         { ac_try='test -s conftest$ac_exeext'
 
6384
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6385
  (eval $ac_try) 2>&5
 
6386
  ac_status=$?
 
6387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6388
  (exit $ac_status); }; }; then
 
6389
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6390
else
 
6391
  echo "$as_me: failed program was:" >&5
 
6392
sed 's/^/| /' conftest.$ac_ext >&5
 
6393
 
 
6394
fi
 
6395
rm -f conftest.err conftest.$ac_objext \
 
6396
      conftest$ac_exeext conftest.$ac_ext
 
6397
  CXXFLAGS="$save_CXXFLAGS"
 
6398
  ac_ext=c
 
6399
ac_cpp='$CPP $CPPFLAGS'
 
6400
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6401
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6402
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6403
 
 
6404
 
 
6405
fi
 
6406
 
 
6407
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6408
 echo "$as_me:$LINENO: result: yes" >&5
 
6409
echo "${ECHO_T}yes" >&6
 
6410
 :
 
6411
 NOOPT_CXXFLAGS=-O0
 
6412
else
 
6413
 echo "$as_me:$LINENO: result: no" >&5
 
6414
echo "${ECHO_T}no" >&6
 
6415
 :
 
6416
 
 
6417
fi
 
6418
 
 
6419
 
 
6420
  # Check whether --enable-coverage or --disable-coverage was given.
 
6421
if test "${enable_coverage+set}" = set; then
 
6422
  enableval="$enable_coverage"
 
6423
 
 
6424
      if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then
 
6425
        ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
 
6426
        ac_coverage_linker="-lgcc"
 
6427
      elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then
 
6428
        ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
 
6429
        ac_coverage_linker=""
 
6430
      else
 
6431
        { { echo "$as_me:$LINENO: error: coverage with your compiler is not supported" >&5
 
6432
echo "$as_me: error: coverage with your compiler is not supported" >&2;}
 
6433
   { (exit 1); exit 1; }; }
 
6434
      fi
 
6435
      CFLAGS="$CFLAGS $ac_coverage_compiler"
 
6436
      CXXFLAGS="$CXXFLAGS $ac_coverage_compiler"
 
6437
      LDFLAGS="$LDFLAGS $ac_coverage_linker"
 
6438
 
 
6439
fi;
 
6440
 
 
6441
 
 
6442
 
 
6443
 
 
6444
 
 
6445
 
 
6446
  # Check whether --enable-new_ldflags or --disable-new_ldflags was given.
 
6447
if test "${enable_new_ldflags+set}" = set; then
 
6448
  enableval="$enable_new_ldflags"
 
6449
  kde_use_new_ldflags=$enableval
 
6450
else
 
6451
  kde_use_new_ldflags=no
 
6452
fi;
 
6453
 
 
6454
  LDFLAGS_AS_NEEDED=""
 
6455
  LDFLAGS_NEW_DTAGS=""
 
6456
  if test "x$kde_use_new_ldflags" = "xyes"; then
 
6457
       LDFLAGS_NEW_DTAGS=""
 
6458
 
 
6459
echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--enable-new-dtags" >&5
 
6460
echo $ECHO_N "checking whether $CXX supports -Wl,--enable-new-dtags... $ECHO_C" >&6
 
6461
kde_cache=`echo Wl,--enable-new-dtags | sed 'y% .=/+-,%____p__%'`
 
6462
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
6463
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6464
else
 
6465
 
 
6466
 
 
6467
 
 
6468
   ac_ext=cc
 
6469
ac_cpp='$CXXCPP $CPPFLAGS'
 
6470
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6471
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6472
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6473
 
 
6474
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6475
 
 
6476
 
 
6477
  save_CXXFLAGS="$CXXFLAGS"
 
6478
  CXXFLAGS="$CXXFLAGS -Wl,--enable-new-dtags"
 
6479
  cat >conftest.$ac_ext <<_ACEOF
 
6480
/* confdefs.h.  */
 
6481
_ACEOF
 
6482
cat confdefs.h >>conftest.$ac_ext
 
6483
cat >>conftest.$ac_ext <<_ACEOF
 
6484
/* end confdefs.h.  */
 
6485
 
 
6486
int
 
6487
main ()
 
6488
{
 
6489
 return 0;
 
6490
  ;
 
6491
  return 0;
 
6492
}
 
6493
_ACEOF
 
6494
rm -f conftest.$ac_objext conftest$ac_exeext
 
6495
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6496
  (eval $ac_link) 2>conftest.er1
 
6497
  ac_status=$?
 
6498
  grep -v '^ *+' conftest.er1 >conftest.err
 
6499
  rm -f conftest.er1
 
6500
  cat conftest.err >&5
 
6501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6502
  (exit $ac_status); } &&
 
6503
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6504
                         || test ! -s conftest.err'
 
6505
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6506
  (eval $ac_try) 2>&5
 
6507
  ac_status=$?
 
6508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6509
  (exit $ac_status); }; } &&
 
6510
         { ac_try='test -s conftest$ac_exeext'
 
6511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6512
  (eval $ac_try) 2>&5
 
6513
  ac_status=$?
 
6514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6515
  (exit $ac_status); }; }; then
 
6516
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6517
else
 
6518
  echo "$as_me: failed program was:" >&5
 
6519
sed 's/^/| /' conftest.$ac_ext >&5
 
6520
 
 
6521
fi
 
6522
rm -f conftest.err conftest.$ac_objext \
 
6523
      conftest$ac_exeext conftest.$ac_ext
 
6524
  CXXFLAGS="$save_CXXFLAGS"
 
6525
  ac_ext=c
 
6526
ac_cpp='$CPP $CPPFLAGS'
 
6527
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6528
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6529
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6530
 
 
6531
 
 
6532
fi
 
6533
 
 
6534
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6535
 echo "$as_me:$LINENO: result: yes" >&5
 
6536
echo "${ECHO_T}yes" >&6
 
6537
 :
 
6538
 LDFLAGS_NEW_DTAGS="-Wl,--enable-new-dtags"
 
6539
else
 
6540
 echo "$as_me:$LINENO: result: no" >&5
 
6541
echo "${ECHO_T}no" >&6
 
6542
 :
 
6543
 
 
6544
fi
 
6545
 
 
6546
 
 
6547
 
 
6548
echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--as-needed" >&5
 
6549
echo $ECHO_N "checking whether $CXX supports -Wl,--as-needed... $ECHO_C" >&6
 
6550
kde_cache=`echo Wl,--as-needed | sed 'y% .=/+-,%____p__%'`
 
6551
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
6552
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6553
else
 
6554
 
 
6555
 
 
6556
 
 
6557
   ac_ext=cc
 
6558
ac_cpp='$CXXCPP $CPPFLAGS'
 
6559
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6560
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6561
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6562
 
 
6563
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6564
 
 
6565
 
 
6566
  save_CXXFLAGS="$CXXFLAGS"
 
6567
  CXXFLAGS="$CXXFLAGS -Wl,--as-needed"
 
6568
  cat >conftest.$ac_ext <<_ACEOF
 
6569
/* confdefs.h.  */
 
6570
_ACEOF
 
6571
cat confdefs.h >>conftest.$ac_ext
 
6572
cat >>conftest.$ac_ext <<_ACEOF
 
6573
/* end confdefs.h.  */
 
6574
 
 
6575
int
 
6576
main ()
 
6577
{
 
6578
 return 0;
 
6579
  ;
 
6580
  return 0;
 
6581
}
 
6582
_ACEOF
 
6583
rm -f conftest.$ac_objext conftest$ac_exeext
 
6584
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6585
  (eval $ac_link) 2>conftest.er1
 
6586
  ac_status=$?
 
6587
  grep -v '^ *+' conftest.er1 >conftest.err
 
6588
  rm -f conftest.er1
 
6589
  cat conftest.err >&5
 
6590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6591
  (exit $ac_status); } &&
 
6592
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6593
                         || test ! -s conftest.err'
 
6594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6595
  (eval $ac_try) 2>&5
 
6596
  ac_status=$?
 
6597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6598
  (exit $ac_status); }; } &&
 
6599
         { ac_try='test -s conftest$ac_exeext'
 
6600
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6601
  (eval $ac_try) 2>&5
 
6602
  ac_status=$?
 
6603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6604
  (exit $ac_status); }; }; then
 
6605
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6606
else
 
6607
  echo "$as_me: failed program was:" >&5
 
6608
sed 's/^/| /' conftest.$ac_ext >&5
 
6609
 
 
6610
fi
 
6611
rm -f conftest.err conftest.$ac_objext \
 
6612
      conftest$ac_exeext conftest.$ac_ext
 
6613
  CXXFLAGS="$save_CXXFLAGS"
 
6614
  ac_ext=c
 
6615
ac_cpp='$CPP $CPPFLAGS'
 
6616
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6617
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6618
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6619
 
 
6620
 
 
6621
fi
 
6622
 
 
6623
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6624
 echo "$as_me:$LINENO: result: yes" >&5
 
6625
echo "${ECHO_T}yes" >&6
 
6626
 :
 
6627
 LDFLAGS_AS_NEEDED="-Wl,--as-needed"
 
6628
else
 
6629
 echo "$as_me:$LINENO: result: no" >&5
 
6630
echo "${ECHO_T}no" >&6
 
6631
 :
 
6632
 
 
6633
fi
 
6634
 
 
6635
  fi
 
6636
 
 
6637
 
 
6638
 
 
6639
 
 
6640
  # Check whether --enable-final or --disable-final was given.
 
6641
if test "${enable_final+set}" = set; then
 
6642
  enableval="$enable_final"
 
6643
  kde_use_final=$enableval
 
6644
else
 
6645
  kde_use_final=no
 
6646
fi;
 
6647
 
 
6648
  if test "x$kde_use_final" = "xyes"; then
 
6649
      KDE_USE_FINAL_TRUE=""
 
6650
      KDE_USE_FINAL_FALSE="#"
 
6651
   else
 
6652
      KDE_USE_FINAL_TRUE="#"
 
6653
      KDE_USE_FINAL_FALSE=""
 
6654
  fi
 
6655
 
 
6656
 
 
6657
 
 
6658
 
 
6659
  # Check whether --enable-closure or --disable-closure was given.
 
6660
if test "${enable_closure+set}" = set; then
 
6661
  enableval="$enable_closure"
 
6662
  kde_use_closure=$enableval
 
6663
else
 
6664
  kde_use_closure=no
 
6665
fi;
 
6666
 
 
6667
  KDE_NO_UNDEFINED=""
 
6668
  if test "x$kde_use_closure" = "xyes"; then
 
6669
       KDE_USE_CLOSURE_TRUE=""
 
6670
       KDE_USE_CLOSURE_FALSE="#"
 
6671
#       CXXFLAGS="$CXXFLAGS $REPO"
 
6672
  else
 
6673
       KDE_USE_CLOSURE_TRUE="#"
 
6674
       KDE_USE_CLOSURE_FALSE=""
 
6675
       KDE_NO_UNDEFINED=""
 
6676
       case $host in
 
6677
         *-*-linux-gnu)
 
6678
 
 
6679
echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
 
6680
echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6
 
6681
kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
 
6682
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
6683
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6684
else
 
6685
 
 
6686
 
 
6687
 
 
6688
   ac_ext=cc
 
6689
ac_cpp='$CXXCPP $CPPFLAGS'
 
6690
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6691
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6692
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6693
 
 
6694
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6695
 
 
6696
 
 
6697
  save_CXXFLAGS="$CXXFLAGS"
 
6698
  CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
 
6699
  cat >conftest.$ac_ext <<_ACEOF
 
6700
/* confdefs.h.  */
 
6701
_ACEOF
 
6702
cat confdefs.h >>conftest.$ac_ext
 
6703
cat >>conftest.$ac_ext <<_ACEOF
 
6704
/* end confdefs.h.  */
 
6705
 
 
6706
int
 
6707
main ()
 
6708
{
 
6709
 return 0;
 
6710
  ;
 
6711
  return 0;
 
6712
}
 
6713
_ACEOF
 
6714
rm -f conftest.$ac_objext conftest$ac_exeext
 
6715
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6716
  (eval $ac_link) 2>conftest.er1
 
6717
  ac_status=$?
 
6718
  grep -v '^ *+' conftest.er1 >conftest.err
 
6719
  rm -f conftest.er1
 
6720
  cat conftest.err >&5
 
6721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6722
  (exit $ac_status); } &&
 
6723
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6724
                         || test ! -s conftest.err'
 
6725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6726
  (eval $ac_try) 2>&5
 
6727
  ac_status=$?
 
6728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6729
  (exit $ac_status); }; } &&
 
6730
         { ac_try='test -s conftest$ac_exeext'
 
6731
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6732
  (eval $ac_try) 2>&5
 
6733
  ac_status=$?
 
6734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6735
  (exit $ac_status); }; }; then
 
6736
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6737
else
 
6738
  echo "$as_me: failed program was:" >&5
 
6739
sed 's/^/| /' conftest.$ac_ext >&5
 
6740
 
 
6741
fi
 
6742
rm -f conftest.err conftest.$ac_objext \
 
6743
      conftest$ac_exeext conftest.$ac_ext
 
6744
  CXXFLAGS="$save_CXXFLAGS"
 
6745
  ac_ext=c
 
6746
ac_cpp='$CPP $CPPFLAGS'
 
6747
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6748
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6749
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6750
 
 
6751
 
 
6752
fi
 
6753
 
 
6754
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6755
 echo "$as_me:$LINENO: result: yes" >&5
 
6756
echo "${ECHO_T}yes" >&6
 
6757
 :
 
6758
 
 
6759
echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
 
6760
echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6
 
6761
kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
 
6762
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
6763
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6764
else
 
6765
 
 
6766
 
 
6767
 
 
6768
   ac_ext=cc
 
6769
ac_cpp='$CXXCPP $CPPFLAGS'
 
6770
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6771
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6772
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6773
 
 
6774
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6775
 
 
6776
 
 
6777
  save_CXXFLAGS="$CXXFLAGS"
 
6778
  CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
 
6779
  cat >conftest.$ac_ext <<_ACEOF
 
6780
/* confdefs.h.  */
 
6781
_ACEOF
 
6782
cat confdefs.h >>conftest.$ac_ext
 
6783
cat >>conftest.$ac_ext <<_ACEOF
 
6784
/* end confdefs.h.  */
 
6785
 
 
6786
int
 
6787
main ()
 
6788
{
 
6789
 return 0;
 
6790
  ;
 
6791
  return 0;
 
6792
}
 
6793
_ACEOF
 
6794
rm -f conftest.$ac_objext conftest$ac_exeext
 
6795
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6796
  (eval $ac_link) 2>conftest.er1
 
6797
  ac_status=$?
 
6798
  grep -v '^ *+' conftest.er1 >conftest.err
 
6799
  rm -f conftest.er1
 
6800
  cat conftest.err >&5
 
6801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6802
  (exit $ac_status); } &&
 
6803
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6804
                         || test ! -s conftest.err'
 
6805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6806
  (eval $ac_try) 2>&5
 
6807
  ac_status=$?
 
6808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6809
  (exit $ac_status); }; } &&
 
6810
         { ac_try='test -s conftest$ac_exeext'
 
6811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6812
  (eval $ac_try) 2>&5
 
6813
  ac_status=$?
 
6814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6815
  (exit $ac_status); }; }; then
 
6816
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6817
else
 
6818
  echo "$as_me: failed program was:" >&5
 
6819
sed 's/^/| /' conftest.$ac_ext >&5
 
6820
 
 
6821
fi
 
6822
rm -f conftest.err conftest.$ac_objext \
 
6823
      conftest$ac_exeext conftest.$ac_ext
 
6824
  CXXFLAGS="$save_CXXFLAGS"
 
6825
  ac_ext=c
 
6826
ac_cpp='$CPP $CPPFLAGS'
 
6827
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6828
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6829
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6830
 
 
6831
 
 
6832
fi
 
6833
 
 
6834
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6835
 echo "$as_me:$LINENO: result: yes" >&5
 
6836
echo "${ECHO_T}yes" >&6
 
6837
 :
 
6838
 KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
 
6839
else
 
6840
 echo "$as_me:$LINENO: result: no" >&5
 
6841
echo "${ECHO_T}no" >&6
 
6842
 :
 
6843
 KDE_NO_UNDEFINED=""
 
6844
fi
 
6845
 
 
6846
else
 
6847
 echo "$as_me:$LINENO: result: no" >&5
 
6848
echo "${ECHO_T}no" >&6
 
6849
 :
 
6850
 KDE_NO_UNDEFINED=""
 
6851
fi
 
6852
 
 
6853
           ;;
 
6854
       esac
 
6855
  fi
 
6856
 
 
6857
 
 
6858
 
 
6859
 
 
6860
 
 
6861
  # Check whether --enable-nmcheck or --disable-nmcheck was given.
 
6862
if test "${enable_nmcheck+set}" = set; then
 
6863
  enableval="$enable_nmcheck"
 
6864
  kde_use_nmcheck=$enableval
 
6865
else
 
6866
  kde_use_nmcheck=no
 
6867
fi;
 
6868
 
 
6869
  if test "$kde_use_nmcheck" = "yes"; then
 
6870
      KDE_USE_NMCHECK_TRUE=""
 
6871
      KDE_USE_NMCHECK_FALSE="#"
 
6872
   else
 
6873
      KDE_USE_NMCHECK_TRUE="#"
 
6874
      KDE_USE_NMCHECK_FALSE=""
 
6875
  fi
 
6876
 
 
6877
 
 
6878
 
 
6879
 
 
6880
 
 
6881
 
 
6882
# Check whether --enable-shared or --disable-shared was given.
 
6883
if test "${enable_shared+set}" = set; then
 
6884
  enableval="$enable_shared"
 
6885
  p=${PACKAGE-default}
 
6886
    case $enableval in
 
6887
    yes) enable_shared=yes ;;
 
6888
    no) enable_shared=no ;;
 
6889
    *)
 
6890
      enable_shared=no
 
6891
      # Look at the argument we got.  We use all the common list separators.
 
6892
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6893
      for pkg in $enableval; do
 
6894
        IFS="$lt_save_ifs"
 
6895
        if test "X$pkg" = "X$p"; then
 
6896
          enable_shared=yes
 
6897
        fi
 
6898
      done
 
6899
      IFS="$lt_save_ifs"
 
6900
      ;;
 
6901
    esac
 
6902
else
 
6903
  enable_shared=yes
 
6904
fi;
 
6905
 
 
6906
# Check whether --enable-static or --disable-static was given.
 
6907
if test "${enable_static+set}" = set; then
 
6908
  enableval="$enable_static"
 
6909
  p=${PACKAGE-default}
 
6910
    case $enableval in
 
6911
    yes) enable_static=yes ;;
 
6912
    no) enable_static=no ;;
 
6913
    *)
 
6914
     enable_static=no
 
6915
      # Look at the argument we got.  We use all the common list separators.
 
6916
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6917
      for pkg in $enableval; do
 
6918
        IFS="$lt_save_ifs"
 
6919
        if test "X$pkg" = "X$p"; then
 
6920
          enable_static=yes
 
6921
        fi
 
6922
      done
 
6923
      IFS="$lt_save_ifs"
 
6924
      ;;
 
6925
    esac
 
6926
else
 
6927
  enable_static=no
 
6928
fi;
 
6929
 
 
6930
 
 
6931
 
 
6932
 
 
6933
    kdelibsuff="$kde_libs_suffix"
 
6934
    if test -z "$kdelibsuff"; then
 
6935
       kdelibsuff=no
 
6936
    fi
 
6937
    # Check whether --enable-libsuffix or --disable-libsuffix was given.
 
6938
if test "${enable_libsuffix+set}" = set; then
 
6939
  enableval="$enable_libsuffix"
 
6940
  kdelibsuff=$enableval
 
6941
fi;
 
6942
    # TODO: add an auto case that compiles a little C app to check
 
6943
    # where the glibc is
 
6944
    if test "$kdelibsuff" = "no"; then
 
6945
       kdelibsuff=
 
6946
    fi
 
6947
    if test -z "$kdelibsuff"; then
 
6948
        echo "$as_me:$LINENO: result: not using lib directory suffix" >&5
 
6949
echo "${ECHO_T}not using lib directory suffix" >&6
 
6950
 
 
6951
cat >>confdefs.h <<\_ACEOF
 
6952
#define KDELIBSUFF ""
 
6953
_ACEOF
 
6954
 
 
6955
    else
 
6956
        if test "$libdir" = '${exec_prefix}/lib'; then
 
6957
            libdir="$libdir${kdelibsuff}"
 
6958
            libdir="$libdir"
 
6959
          fi
 
6960
 
 
6961
cat >>confdefs.h <<_ACEOF
 
6962
#define KDELIBSUFF "${kdelibsuff}"
 
6963
_ACEOF
 
6964
 
 
6965
        echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
 
6966
echo "${ECHO_T}using lib directory suffix $kdelibsuff" >&6
 
6967
    fi
 
6968
 
 
6969
# Check whether --enable-fast-install or --disable-fast-install was given.
 
6970
if test "${enable_fast_install+set}" = set; then
 
6971
  enableval="$enable_fast_install"
 
6972
  p=${PACKAGE-default}
 
6973
    case $enableval in
 
6974
    yes) enable_fast_install=yes ;;
 
6975
    no) enable_fast_install=no ;;
 
6976
    *)
 
6977
      enable_fast_install=no
 
6978
      # Look at the argument we got.  We use all the common list separators.
 
6979
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6980
      for pkg in $enableval; do
 
6981
        IFS="$lt_save_ifs"
 
6982
        if test "X$pkg" = "X$p"; then
 
6983
          enable_fast_install=yes
 
6984
        fi
 
6985
      done
 
6986
      IFS="$lt_save_ifs"
 
6987
      ;;
 
6988
    esac
 
6989
else
 
6990
  enable_fast_install=yes
 
6991
fi;
 
6992
 
 
6993
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
6994
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
6995
if test "${lt_cv_path_SED+set}" = set; then
 
6996
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6997
else
 
6998
  # Loop through the user's path and test for sed and gsed.
 
6999
# Then use that list of sed's as ones to test for truncation.
 
7000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7001
for as_dir in $PATH
 
7002
do
 
7003
  IFS=$as_save_IFS
 
7004
  test -z "$as_dir" && as_dir=.
 
7005
  for lt_ac_prog in sed gsed; do
 
7006
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7007
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
7008
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
7009
      fi
 
7010
    done
 
7011
  done
 
7012
done
 
7013
lt_ac_max=0
 
7014
lt_ac_count=0
 
7015
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
7016
# along with /bin/sed that truncates output.
 
7017
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
7018
  test ! -f $lt_ac_sed && break
 
7019
  cat /dev/null > conftest.in
 
7020
  lt_ac_count=0
 
7021
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
7022
  # Check for GNU sed and select it if it is found.
 
7023
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
7024
    lt_cv_path_SED=$lt_ac_sed
 
7025
    break
 
7026
  fi
 
7027
  while true; do
 
7028
    cat conftest.in conftest.in >conftest.tmp
 
7029
    mv conftest.tmp conftest.in
 
7030
    cp conftest.in conftest.nl
 
7031
    echo >>conftest.nl
 
7032
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
7033
    cmp -s conftest.out conftest.nl || break
 
7034
    # 10000 chars as input seems more than enough
 
7035
    test $lt_ac_count -gt 10 && break
 
7036
    lt_ac_count=`expr $lt_ac_count + 1`
 
7037
    if test $lt_ac_count -gt $lt_ac_max; then
 
7038
      lt_ac_max=$lt_ac_count
 
7039
      lt_cv_path_SED=$lt_ac_sed
 
7040
    fi
 
7041
  done
 
7042
done
 
7043
 
 
7044
fi
 
7045
 
 
7046
SED=$lt_cv_path_SED
 
7047
echo "$as_me:$LINENO: result: $SED" >&5
 
7048
echo "${ECHO_T}$SED" >&6
 
7049
 
 
7050
echo "$as_me:$LINENO: checking for egrep" >&5
 
7051
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
7052
if test "${ac_cv_prog_egrep+set}" = set; then
 
7053
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7054
else
 
7055
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
7056
    then ac_cv_prog_egrep='grep -E'
 
7057
    else ac_cv_prog_egrep='egrep'
 
7058
    fi
 
7059
fi
 
7060
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
7061
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
7062
 EGREP=$ac_cv_prog_egrep
 
7063
 
 
7064
 
 
7065
 
 
7066
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
7067
if test "${with_gnu_ld+set}" = set; then
 
7068
  withval="$with_gnu_ld"
 
7069
  test "$withval" = no || with_gnu_ld=yes
 
7070
else
 
7071
  with_gnu_ld=no
 
7072
fi;
 
7073
ac_prog=ld
 
7074
if test "$GCC" = yes; then
 
7075
  # Check if gcc -print-prog-name=ld gives a path.
 
7076
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
7077
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
7078
  case $host in
 
7079
  *-*-mingw*)
 
7080
    # gcc leaves a trailing carriage return which upsets mingw
 
7081
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
7082
  *)
 
7083
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
7084
  esac
 
7085
  case $ac_prog in
 
7086
    # Accept absolute paths.
 
7087
    [\\/]* | ?:[\\/]*)
 
7088
      re_direlt='/[^/][^/]*/\.\./'
 
7089
      # Canonicalize the pathname of ld
 
7090
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
7091
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
7092
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
7093
      done
 
7094
      test -z "$LD" && LD="$ac_prog"
 
7095
      ;;
 
7096
  "")
 
7097
    # If it fails, then pretend we aren't using GCC.
 
7098
    ac_prog=ld
 
7099
    ;;
 
7100
  *)
 
7101
    # If it is relative, then search for the first ld in PATH.
 
7102
    with_gnu_ld=unknown
 
7103
    ;;
 
7104
  esac
 
7105
elif test "$with_gnu_ld" = yes; then
 
7106
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
7107
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
7108
else
 
7109
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
7110
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
7111
fi
 
7112
if test "${lt_cv_path_LD+set}" = set; then
 
7113
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7114
else
 
7115
  if test -z "$LD"; then
 
7116
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7117
  for ac_dir in $PATH; do
 
7118
    IFS="$lt_save_ifs"
 
7119
    test -z "$ac_dir" && ac_dir=.
 
7120
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
7121
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
7122
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
7123
      # but apparently some GNU ld's only accept -v.
 
7124
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
7125
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
7126
      *GNU* | *'with BFD'*)
 
7127
        test "$with_gnu_ld" != no && break
 
7128
        ;;
 
7129
      *)
 
7130
        test "$with_gnu_ld" != yes && break
 
7131
        ;;
 
7132
      esac
 
7133
    fi
 
7134
  done
 
7135
  IFS="$lt_save_ifs"
 
7136
else
 
7137
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
7138
fi
 
7139
fi
 
7140
 
 
7141
LD="$lt_cv_path_LD"
 
7142
if test -n "$LD"; then
 
7143
  echo "$as_me:$LINENO: result: $LD" >&5
 
7144
echo "${ECHO_T}$LD" >&6
 
7145
else
 
7146
  echo "$as_me:$LINENO: result: no" >&5
 
7147
echo "${ECHO_T}no" >&6
 
7148
fi
 
7149
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
7150
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
7151
   { (exit 1); exit 1; }; }
 
7152
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
7153
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
7154
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
7155
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7156
else
 
7157
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
7158
case `$LD -v 2>&1 </dev/null` in
 
7159
*GNU* | *'with BFD'*)
 
7160
  lt_cv_prog_gnu_ld=yes
 
7161
  ;;
 
7162
*)
 
7163
  lt_cv_prog_gnu_ld=no
 
7164
  ;;
 
7165
esac
 
7166
fi
 
7167
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
7168
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
7169
with_gnu_ld=$lt_cv_prog_gnu_ld
 
7170
 
 
7171
 
 
7172
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
7173
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
7174
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
7175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7176
else
 
7177
  lt_cv_ld_reload_flag='-r'
 
7178
fi
 
7179
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
7180
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
7181
reload_flag=$lt_cv_ld_reload_flag
 
7182
case $reload_flag in
 
7183
"" | " "*) ;;
 
7184
*) reload_flag=" $reload_flag" ;;
 
7185
esac
 
7186
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
7187
 
 
7188
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
7189
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
7190
if test "${lt_cv_path_NM+set}" = set; then
 
7191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7192
else
 
7193
  if test -n "$NM"; then
 
7194
  # Let the user override the test.
 
7195
  lt_cv_path_NM="$NM"
 
7196
else
 
7197
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7198
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
7199
    IFS="$lt_save_ifs"
 
7200
    test -z "$ac_dir" && ac_dir=.
 
7201
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
7202
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
7203
      # Check to see if the nm accepts a BSD-compat flag.
 
7204
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
7205
      #   nm: unknown option "B" ignored
 
7206
      # Tru64's nm complains that /dev/null is an invalid object file
 
7207
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
7208
      */dev/null* | *'Invalid file or object type'*)
 
7209
        lt_cv_path_NM="$tmp_nm -B"
 
7210
        break
 
7211
        ;;
 
7212
      *)
 
7213
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
7214
        */dev/null*)
 
7215
          lt_cv_path_NM="$tmp_nm -p"
 
7216
          break
 
7217
          ;;
 
7218
        *)
 
7219
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
7220
          continue # so that we can try to find one that supports BSD flags
 
7221
          ;;
 
7222
        esac
 
7223
      esac
 
7224
    fi
 
7225
  done
 
7226
  IFS="$lt_save_ifs"
 
7227
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
7228
fi
 
7229
fi
 
7230
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
7231
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
7232
NM="$lt_cv_path_NM"
 
7233
 
 
7234
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
7235
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
7236
LN_S=$as_ln_s
 
7237
if test "$LN_S" = "ln -s"; then
 
7238
  echo "$as_me:$LINENO: result: yes" >&5
 
7239
echo "${ECHO_T}yes" >&6
 
7240
else
 
7241
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
7242
echo "${ECHO_T}no, using $LN_S" >&6
 
7243
fi
 
7244
 
 
7245
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
7246
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
7247
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
7248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7249
else
 
7250
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
7251
lt_cv_file_magic_test_file=
 
7252
lt_cv_deplibs_check_method='unknown'
 
7253
# Need to set the preceding variable on all platforms that support
 
7254
# interlibrary dependencies.
 
7255
# 'none' -- dependencies not supported.
 
7256
# `unknown' -- same as none, but documents that we really don't know.
 
7257
# 'pass_all' -- all dependencies passed with no checks.
 
7258
# 'test_compile' -- check by making test program.
 
7259
# 'file_magic [[regex]]' -- check by looking for files in library path
 
7260
# which responds to the $file_magic_cmd with a given extended regex.
 
7261
# If you have `file' or equivalent on your system and you're not sure
 
7262
# whether `pass_all' will *always* work, you probably want this one.
 
7263
 
 
7264
case $host_os in
 
7265
aix4* | aix5*)
 
7266
  lt_cv_deplibs_check_method=pass_all
 
7267
  ;;
 
7268
 
 
7269
beos*)
 
7270
  lt_cv_deplibs_check_method=pass_all
 
7271
  ;;
 
7272
 
 
7273
bsdi4*)
 
7274
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
7275
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
7276
  lt_cv_file_magic_test_file=/shlib/libc.so
 
7277
  ;;
 
7278
 
 
7279
cygwin*)
 
7280
  lt_cv_deplibs_check_method=pass_all
 
7281
  ;;
 
7282
 
 
7283
mingw* | pw32*)
 
7284
  # win32_libid is a shell function defined in ltmain.sh
 
7285
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
7286
  lt_cv_file_magic_cmd='win32_libid'
 
7287
  ;;
 
7288
 
 
7289
darwin* | rhapsody*)
 
7290
  # this will be overwritten by pass_all, but leave it in just in case
 
7291
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 
7292
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
7293
  case "$host_os" in
 
7294
  rhapsody* | darwin1.[012])
 
7295
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
 
7296
    ;;
 
7297
  *) # Darwin 1.3 on
 
7298
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 
7299
    ;;
 
7300
  esac
 
7301
  lt_cv_deplibs_check_method=pass_all
 
7302
  ;;
 
7303
 
 
7304
freebsd*)
 
7305
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
7306
    case $host_cpu in
 
7307
    i*86 )
 
7308
      # Not sure whether the presence of OpenBSD here was a mistake.
 
7309
      # Let's accept both of them until this is cleared up.
 
7310
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
7311
      lt_cv_file_magic_cmd=/usr/bin/file
 
7312
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
7313
      ;;
 
7314
    esac
 
7315
  else
 
7316
    lt_cv_deplibs_check_method=pass_all
 
7317
  fi
 
7318
  ;;
 
7319
 
 
7320
gnu*)
 
7321
  lt_cv_deplibs_check_method=pass_all
 
7322
  ;;
 
7323
 
 
7324
hpux10.20* | hpux11*)
 
7325
  lt_cv_file_magic_cmd=/usr/bin/file
 
7326
  case "$host_cpu" in
 
7327
  ia64*)
 
7328
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
7329
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
7330
    ;;
 
7331
  hppa*64*)
 
7332
    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]'
 
7333
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
7334
    ;;
 
7335
  *)
 
7336
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
7337
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
7338
    ;;
 
7339
  esac
 
7340
  ;;
 
7341
 
 
7342
irix5* | irix6* | nonstopux*)
 
7343
  case $host_os in
 
7344
  irix5* | nonstopux*)
 
7345
    # this will be overridden with pass_all, but let us keep it just in case
 
7346
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
7347
    ;;
 
7348
  *)
 
7349
    case $LD in
 
7350
    *-32|*"-32 ") libmagic=32-bit;;
 
7351
    *-n32|*"-n32 ") libmagic=N32;;
 
7352
    *-64|*"-64 ") libmagic=64-bit;;
 
7353
    *) libmagic=never-match;;
 
7354
    esac
 
7355
    # this will be overridden with pass_all, but let us keep it just in case
 
7356
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
7357
    ;;
 
7358
  esac
 
7359
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
7360
  lt_cv_deplibs_check_method=pass_all
 
7361
  ;;
 
7362
 
 
7363
# This must be Linux ELF.
 
7364
linux*)
 
7365
  case $host_cpu in
 
7366
  alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
 
7367
    lt_cv_deplibs_check_method=pass_all ;;
 
7368
  # the debian people say, arm and glibc 2.3.1 works for them with pass_all
 
7369
  arm* )
 
7370
    lt_cv_deplibs_check_method=pass_all ;;
 
7371
  *)
 
7372
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
7373
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
7374
  esac
 
7375
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
7376
  ;;
 
7377
 
 
7378
netbsd*)
 
7379
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
7380
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
7381
  else
 
7382
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
7383
  fi
 
7384
  ;;
 
7385
 
 
7386
newos6*)
 
7387
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
7388
  lt_cv_file_magic_cmd=/usr/bin/file
 
7389
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
7390
  ;;
 
7391
 
 
7392
nto-qnx*)
 
7393
  lt_cv_deplibs_check_method=unknown
 
7394
  ;;
 
7395
 
 
7396
openbsd*)
 
7397
  lt_cv_file_magic_cmd=/usr/bin/file
 
7398
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
7399
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7400
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
7401
  else
 
7402
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
7403
  fi
 
7404
  ;;
 
7405
 
 
7406
osf3* | osf4* | osf5*)
 
7407
  # this will be overridden with pass_all, but let us keep it just in case
 
7408
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 
7409
  lt_cv_file_magic_test_file=/shlib/libc.so
 
7410
  lt_cv_deplibs_check_method=pass_all
 
7411
  ;;
 
7412
 
 
7413
sco3.2v5*)
 
7414
  lt_cv_deplibs_check_method=pass_all
 
7415
  ;;
 
7416
 
 
7417
solaris*)
 
7418
  lt_cv_deplibs_check_method=pass_all
 
7419
  lt_cv_file_magic_test_file=/lib/libc.so
 
7420
  ;;
 
7421
 
 
7422
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7423
  case $host_vendor in
 
7424
  motorola)
 
7425
    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]'
 
7426
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
7427
    ;;
 
7428
  ncr)
 
7429
    lt_cv_deplibs_check_method=pass_all
 
7430
    ;;
 
7431
  sequent)
 
7432
    lt_cv_file_magic_cmd='/bin/file'
 
7433
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
7434
    ;;
 
7435
  sni)
 
7436
    lt_cv_file_magic_cmd='/bin/file'
 
7437
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
7438
    lt_cv_file_magic_test_file=/lib/libc.so
 
7439
    ;;
 
7440
  siemens)
 
7441
    lt_cv_deplibs_check_method=pass_all
 
7442
    ;;
 
7443
  esac
 
7444
  ;;
 
7445
 
 
7446
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
7447
  lt_cv_deplibs_check_method=pass_all
 
7448
  ;;
 
7449
esac
 
7450
 
 
7451
fi
 
7452
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
7453
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
7454
file_magic_cmd=$lt_cv_file_magic_cmd
 
7455
deplibs_check_method=$lt_cv_deplibs_check_method
 
7456
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
7457
 
 
7458
 
 
7459
# If no C compiler was specified, use CC.
 
7460
LTCC=${LTCC-"$CC"}
 
7461
 
 
7462
# Allow CC to be a program name with arguments.
 
7463
compiler=$CC
 
7464
 
 
7465
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
7466
if test "${enable_libtool_lock+set}" = set; then
 
7467
  enableval="$enable_libtool_lock"
 
7468
 
 
7469
fi;
 
7470
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7471
 
 
7472
# Some flags need to be propagated to the compiler or linker for good
 
7473
# libtool support.
 
7474
case $host in
 
7475
ia64-*-hpux*)
 
7476
  # Find out which ABI we are using.
 
7477
  echo 'int i;' > conftest.$ac_ext
 
7478
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7479
  (eval $ac_compile) 2>&5
 
7480
  ac_status=$?
 
7481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7482
  (exit $ac_status); }; then
 
7483
    case `/usr/bin/file conftest.$ac_objext` in
 
7484
    *ELF-32*)
 
7485
      HPUX_IA64_MODE="32"
 
7486
      ;;
 
7487
    *ELF-64*)
 
7488
      HPUX_IA64_MODE="64"
 
7489
      ;;
 
7490
    esac
 
7491
  fi
 
7492
  rm -rf conftest*
 
7493
  ;;
 
7494
*-*-irix6*)
 
7495
  # Find out which ABI we are using.
 
7496
  echo '#line 7496 "configure"' > conftest.$ac_ext
 
7497
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7498
  (eval $ac_compile) 2>&5
 
7499
  ac_status=$?
 
7500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7501
  (exit $ac_status); }; then
 
7502
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
7503
    case `/usr/bin/file conftest.$ac_objext` in
 
7504
    *32-bit*)
 
7505
      LD="${LD-ld} -melf32bsmip"
 
7506
      ;;
 
7507
    *N32*)
 
7508
      LD="${LD-ld} -melf32bmipn32"
 
7509
      ;;
 
7510
    *64-bit*)
 
7511
      LD="${LD-ld} -melf64bmip"
 
7512
      ;;
 
7513
    esac
 
7514
   else
 
7515
    case `/usr/bin/file conftest.$ac_objext` in
 
7516
    *32-bit*)
 
7517
      LD="${LD-ld} -32"
 
7518
      ;;
 
7519
    *N32*)
 
7520
      LD="${LD-ld} -n32"
 
7521
      ;;
 
7522
    *64-bit*)
 
7523
      LD="${LD-ld} -64"
 
7524
      ;;
 
7525
    esac
 
7526
   fi
 
7527
  fi
 
7528
  rm -rf conftest*
 
7529
  ;;
 
7530
 
 
7531
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
7532
  # Find out which ABI we are using.
 
7533
  echo 'int i;' > conftest.$ac_ext
 
7534
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7535
  (eval $ac_compile) 2>&5
 
7536
  ac_status=$?
 
7537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7538
  (exit $ac_status); }; then
 
7539
    case "`/usr/bin/file conftest.o`" in
 
7540
    *32-bit*)
 
7541
      LINUX_64_MODE="32"
 
7542
      case $host in
 
7543
        x86_64-*linux*)
 
7544
          LD="${LD-ld} -m elf_i386"
 
7545
          ;;
 
7546
        ppc64-*linux*)
 
7547
          LD="${LD-ld} -m elf32ppclinux"
 
7548
          ;;
 
7549
        s390x-*linux*)
 
7550
          LD="${LD-ld} -m elf_s390"
 
7551
          ;;
 
7552
        sparc64-*linux*)
 
7553
          LD="${LD-ld} -m elf32_sparc"
 
7554
          ;;
 
7555
      esac
 
7556
      ;;
 
7557
    *64-bit*)
 
7558
      LINUX_64_MODE="64"
 
7559
      case $host in
 
7560
        x86_64-*linux*)
 
7561
          LD="${LD-ld} -m elf_x86_64"
 
7562
          ;;
 
7563
        ppc*-*linux*|powerpc*-*linux*)
 
7564
          LD="${LD-ld} -m elf64ppc"
 
7565
          ;;
 
7566
        s390*-*linux*)
 
7567
          LD="${LD-ld} -m elf64_s390"
 
7568
          ;;
 
7569
        sparc*-*linux*)
 
7570
          LD="${LD-ld} -m elf64_sparc"
 
7571
          ;;
 
7572
      esac
 
7573
      ;;
 
7574
    esac
 
7575
  fi
 
7576
  rm -rf conftest*
 
7577
  ;;
 
7578
 
 
7579
*-*-sco3.2v5*)
 
7580
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7581
  SAVE_CFLAGS="$CFLAGS"
 
7582
  CFLAGS="$CFLAGS -belf"
 
7583
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
7584
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
7585
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
7586
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7587
else
 
7588
  ac_ext=c
 
7589
ac_cpp='$CPP $CPPFLAGS'
 
7590
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7591
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7592
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7593
 
 
7594
     cat >conftest.$ac_ext <<_ACEOF
 
7595
/* confdefs.h.  */
 
7596
_ACEOF
 
7597
cat confdefs.h >>conftest.$ac_ext
 
7598
cat >>conftest.$ac_ext <<_ACEOF
 
7599
/* end confdefs.h.  */
 
7600
 
 
7601
int
 
7602
main ()
 
7603
{
 
7604
 
 
7605
  ;
 
7606
  return 0;
 
7607
}
 
7608
_ACEOF
 
7609
rm -f conftest.$ac_objext conftest$ac_exeext
 
7610
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7611
  (eval $ac_link) 2>conftest.er1
 
7612
  ac_status=$?
 
7613
  grep -v '^ *+' conftest.er1 >conftest.err
 
7614
  rm -f conftest.er1
 
7615
  cat conftest.err >&5
 
7616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7617
  (exit $ac_status); } &&
 
7618
         { ac_try='test -z "$ac_c_werror_flag"
 
7619
                         || test ! -s conftest.err'
 
7620
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7621
  (eval $ac_try) 2>&5
 
7622
  ac_status=$?
 
7623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7624
  (exit $ac_status); }; } &&
 
7625
         { ac_try='test -s conftest$ac_exeext'
 
7626
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7627
  (eval $ac_try) 2>&5
 
7628
  ac_status=$?
 
7629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7630
  (exit $ac_status); }; }; then
 
7631
  lt_cv_cc_needs_belf=yes
 
7632
else
 
7633
  echo "$as_me: failed program was:" >&5
 
7634
sed 's/^/| /' conftest.$ac_ext >&5
 
7635
 
 
7636
lt_cv_cc_needs_belf=no
 
7637
fi
 
7638
rm -f conftest.err conftest.$ac_objext \
 
7639
      conftest$ac_exeext conftest.$ac_ext
 
7640
     ac_ext=c
 
7641
ac_cpp='$CPP $CPPFLAGS'
 
7642
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7643
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7644
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7645
 
 
7646
fi
 
7647
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
7648
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
7649
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7650
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7651
    CFLAGS="$SAVE_CFLAGS"
 
7652
  fi
 
7653
  ;;
 
7654
 
 
7655
esac
 
7656
 
 
7657
need_locks="$enable_libtool_lock"
 
7658
 
 
7659
 
 
7660
 
 
7661
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
7662
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
7663
if test "${ac_cv_header_stdc+set}" = set; then
 
7664
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7665
else
 
7666
  cat >conftest.$ac_ext <<_ACEOF
 
7667
/* confdefs.h.  */
 
7668
_ACEOF
 
7669
cat confdefs.h >>conftest.$ac_ext
 
7670
cat >>conftest.$ac_ext <<_ACEOF
 
7671
/* end confdefs.h.  */
 
7672
#include <stdlib.h>
 
7673
#include <stdarg.h>
 
7674
#include <string.h>
 
7675
#include <float.h>
 
7676
 
 
7677
int
 
7678
main ()
 
7679
{
 
7680
 
 
7681
  ;
 
7682
  return 0;
 
7683
}
 
7684
_ACEOF
 
7685
rm -f conftest.$ac_objext
 
7686
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7687
  (eval $ac_compile) 2>conftest.er1
 
7688
  ac_status=$?
 
7689
  grep -v '^ *+' conftest.er1 >conftest.err
 
7690
  rm -f conftest.er1
 
7691
  cat conftest.err >&5
 
7692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7693
  (exit $ac_status); } &&
 
7694
         { ac_try='test -z "$ac_c_werror_flag"
 
7695
                         || test ! -s conftest.err'
 
7696
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7697
  (eval $ac_try) 2>&5
 
7698
  ac_status=$?
 
7699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7700
  (exit $ac_status); }; } &&
 
7701
         { ac_try='test -s conftest.$ac_objext'
 
7702
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7703
  (eval $ac_try) 2>&5
 
7704
  ac_status=$?
 
7705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7706
  (exit $ac_status); }; }; then
 
7707
  ac_cv_header_stdc=yes
 
7708
else
 
7709
  echo "$as_me: failed program was:" >&5
 
7710
sed 's/^/| /' conftest.$ac_ext >&5
 
7711
 
 
7712
ac_cv_header_stdc=no
 
7713
fi
 
7714
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7715
 
 
7716
if test $ac_cv_header_stdc = yes; then
 
7717
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7718
  cat >conftest.$ac_ext <<_ACEOF
 
7719
/* confdefs.h.  */
 
7720
_ACEOF
 
7721
cat confdefs.h >>conftest.$ac_ext
 
7722
cat >>conftest.$ac_ext <<_ACEOF
 
7723
/* end confdefs.h.  */
 
7724
#include <string.h>
 
7725
 
 
7726
_ACEOF
 
7727
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7728
  $EGREP "memchr" >/dev/null 2>&1; then
 
7729
  :
 
7730
else
 
7731
  ac_cv_header_stdc=no
 
7732
fi
 
7733
rm -f conftest*
 
7734
 
 
7735
fi
 
7736
 
 
7737
if test $ac_cv_header_stdc = yes; then
 
7738
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7739
  cat >conftest.$ac_ext <<_ACEOF
 
7740
/* confdefs.h.  */
 
7741
_ACEOF
 
7742
cat confdefs.h >>conftest.$ac_ext
 
7743
cat >>conftest.$ac_ext <<_ACEOF
 
7744
/* end confdefs.h.  */
 
7745
#include <stdlib.h>
 
7746
 
 
7747
_ACEOF
 
7748
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7749
  $EGREP "free" >/dev/null 2>&1; then
 
7750
  :
 
7751
else
 
7752
  ac_cv_header_stdc=no
 
7753
fi
 
7754
rm -f conftest*
 
7755
 
 
7756
fi
 
7757
 
 
7758
if test $ac_cv_header_stdc = yes; then
 
7759
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7760
  if test "$cross_compiling" = yes; then
 
7761
  :
 
7762
else
 
7763
  cat >conftest.$ac_ext <<_ACEOF
 
7764
/* confdefs.h.  */
 
7765
_ACEOF
 
7766
cat confdefs.h >>conftest.$ac_ext
 
7767
cat >>conftest.$ac_ext <<_ACEOF
 
7768
/* end confdefs.h.  */
 
7769
#include <ctype.h>
 
7770
#if ((' ' & 0x0FF) == 0x020)
 
7771
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7772
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7773
#else
 
7774
# define ISLOWER(c) \
 
7775
                   (('a' <= (c) && (c) <= 'i') \
 
7776
                     || ('j' <= (c) && (c) <= 'r') \
 
7777
                     || ('s' <= (c) && (c) <= 'z'))
 
7778
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7779
#endif
 
7780
 
 
7781
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7782
int
 
7783
main ()
 
7784
{
 
7785
  int i;
 
7786
  for (i = 0; i < 256; i++)
 
7787
    if (XOR (islower (i), ISLOWER (i))
 
7788
        || toupper (i) != TOUPPER (i))
 
7789
      exit(2);
 
7790
  exit (0);
 
7791
}
 
7792
_ACEOF
 
7793
rm -f conftest$ac_exeext
 
7794
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7795
  (eval $ac_link) 2>&5
 
7796
  ac_status=$?
 
7797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7798
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7800
  (eval $ac_try) 2>&5
 
7801
  ac_status=$?
 
7802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7803
  (exit $ac_status); }; }; then
 
7804
  :
 
7805
else
 
7806
  echo "$as_me: program exited with status $ac_status" >&5
 
7807
echo "$as_me: failed program was:" >&5
 
7808
sed 's/^/| /' conftest.$ac_ext >&5
 
7809
 
 
7810
( exit $ac_status )
 
7811
ac_cv_header_stdc=no
 
7812
fi
 
7813
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7814
fi
 
7815
fi
 
7816
fi
 
7817
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
7818
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
7819
if test $ac_cv_header_stdc = yes; then
 
7820
 
 
7821
cat >>confdefs.h <<\_ACEOF
 
7822
#define STDC_HEADERS 1
 
7823
_ACEOF
 
7824
 
 
7825
fi
 
7826
 
 
7827
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7828
 
 
7829
 
 
7830
 
 
7831
 
 
7832
 
 
7833
 
 
7834
 
 
7835
 
 
7836
 
 
7837
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7838
                  inttypes.h stdint.h unistd.h
 
7839
do
 
7840
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7841
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7842
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7843
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7844
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7845
else
 
7846
  cat >conftest.$ac_ext <<_ACEOF
 
7847
/* confdefs.h.  */
 
7848
_ACEOF
 
7849
cat confdefs.h >>conftest.$ac_ext
 
7850
cat >>conftest.$ac_ext <<_ACEOF
 
7851
/* end confdefs.h.  */
 
7852
$ac_includes_default
 
7853
 
 
7854
#include <$ac_header>
 
7855
_ACEOF
 
7856
rm -f conftest.$ac_objext
 
7857
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7858
  (eval $ac_compile) 2>conftest.er1
 
7859
  ac_status=$?
 
7860
  grep -v '^ *+' conftest.er1 >conftest.err
 
7861
  rm -f conftest.er1
 
7862
  cat conftest.err >&5
 
7863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7864
  (exit $ac_status); } &&
 
7865
         { ac_try='test -z "$ac_c_werror_flag"
 
7866
                         || test ! -s conftest.err'
 
7867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7868
  (eval $ac_try) 2>&5
 
7869
  ac_status=$?
 
7870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7871
  (exit $ac_status); }; } &&
 
7872
         { ac_try='test -s conftest.$ac_objext'
 
7873
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7874
  (eval $ac_try) 2>&5
 
7875
  ac_status=$?
 
7876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7877
  (exit $ac_status); }; }; then
 
7878
  eval "$as_ac_Header=yes"
 
7879
else
 
7880
  echo "$as_me: failed program was:" >&5
 
7881
sed 's/^/| /' conftest.$ac_ext >&5
 
7882
 
 
7883
eval "$as_ac_Header=no"
 
7884
fi
 
7885
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7886
fi
 
7887
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7888
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7889
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7890
  cat >>confdefs.h <<_ACEOF
 
7891
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7892
_ACEOF
 
7893
 
 
7894
fi
 
7895
 
 
7896
done
 
7897
 
 
7898
 
 
7899
 
 
7900
for ac_header in dlfcn.h
 
7901
do
 
7902
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7903
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7904
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7905
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7906
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7907
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7908
fi
 
7909
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7910
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7911
else
 
7912
  # Is the header compilable?
 
7913
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7914
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7915
cat >conftest.$ac_ext <<_ACEOF
 
7916
/* confdefs.h.  */
 
7917
_ACEOF
 
7918
cat confdefs.h >>conftest.$ac_ext
 
7919
cat >>conftest.$ac_ext <<_ACEOF
 
7920
/* end confdefs.h.  */
 
7921
$ac_includes_default
 
7922
#include <$ac_header>
 
7923
_ACEOF
 
7924
rm -f conftest.$ac_objext
 
7925
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7926
  (eval $ac_compile) 2>conftest.er1
 
7927
  ac_status=$?
 
7928
  grep -v '^ *+' conftest.er1 >conftest.err
 
7929
  rm -f conftest.er1
 
7930
  cat conftest.err >&5
 
7931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7932
  (exit $ac_status); } &&
 
7933
         { ac_try='test -z "$ac_c_werror_flag"
 
7934
                         || test ! -s conftest.err'
 
7935
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7936
  (eval $ac_try) 2>&5
 
7937
  ac_status=$?
 
7938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7939
  (exit $ac_status); }; } &&
 
7940
         { ac_try='test -s conftest.$ac_objext'
 
7941
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7942
  (eval $ac_try) 2>&5
 
7943
  ac_status=$?
 
7944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7945
  (exit $ac_status); }; }; then
 
7946
  ac_header_compiler=yes
 
7947
else
 
7948
  echo "$as_me: failed program was:" >&5
 
7949
sed 's/^/| /' conftest.$ac_ext >&5
 
7950
 
 
7951
ac_header_compiler=no
 
7952
fi
 
7953
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7954
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7955
echo "${ECHO_T}$ac_header_compiler" >&6
 
7956
 
 
7957
# Is the header present?
 
7958
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7959
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7960
cat >conftest.$ac_ext <<_ACEOF
 
7961
/* confdefs.h.  */
 
7962
_ACEOF
 
7963
cat confdefs.h >>conftest.$ac_ext
 
7964
cat >>conftest.$ac_ext <<_ACEOF
 
7965
/* end confdefs.h.  */
 
7966
#include <$ac_header>
 
7967
_ACEOF
 
7968
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7969
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7970
  ac_status=$?
 
7971
  grep -v '^ *+' conftest.er1 >conftest.err
 
7972
  rm -f conftest.er1
 
7973
  cat conftest.err >&5
 
7974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7975
  (exit $ac_status); } >/dev/null; then
 
7976
  if test -s conftest.err; then
 
7977
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7978
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
7979
  else
 
7980
    ac_cpp_err=
 
7981
  fi
 
7982
else
 
7983
  ac_cpp_err=yes
 
7984
fi
 
7985
if test -z "$ac_cpp_err"; then
 
7986
  ac_header_preproc=yes
 
7987
else
 
7988
  echo "$as_me: failed program was:" >&5
 
7989
sed 's/^/| /' conftest.$ac_ext >&5
 
7990
 
 
7991
  ac_header_preproc=no
 
7992
fi
 
7993
rm -f conftest.err conftest.$ac_ext
 
7994
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7995
echo "${ECHO_T}$ac_header_preproc" >&6
 
7996
 
 
7997
# So?  What about this header?
 
7998
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7999
  yes:no: )
 
8000
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8001
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8002
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8003
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8004
    ac_header_preproc=yes
 
8005
    ;;
 
8006
  no:yes:* )
 
8007
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8008
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8009
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8010
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8011
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8012
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8013
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8014
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8015
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8016
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8017
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8018
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8019
    (
 
8020
      cat <<\_ASBOX
 
8021
## ------------------------------------------ ##
 
8022
## Report this to the AC_PACKAGE_NAME lists.  ##
 
8023
## ------------------------------------------ ##
 
8024
_ASBOX
 
8025
    ) |
 
8026
      sed "s/^/$as_me: WARNING:     /" >&2
 
8027
    ;;
 
8028
esac
 
8029
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8030
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8031
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8032
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8033
else
 
8034
  eval "$as_ac_Header=\$ac_header_preproc"
 
8035
fi
 
8036
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8037
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8038
 
 
8039
fi
 
8040
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8041
  cat >>confdefs.h <<_ACEOF
 
8042
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8043
_ACEOF
 
8044
 
 
8045
fi
 
8046
 
 
8047
done
 
8048
 
 
8049
ac_ext=f
 
8050
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
8051
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8052
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
8053
if test -n "$ac_tool_prefix"; then
 
8054
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
8055
  do
 
8056
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
8057
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
8058
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8059
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8060
if test "${ac_cv_prog_F77+set}" = set; then
 
8061
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8062
else
 
8063
  if test -n "$F77"; then
 
8064
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
8065
else
 
8066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8067
for as_dir in $PATH
 
8068
do
 
8069
  IFS=$as_save_IFS
 
8070
  test -z "$as_dir" && as_dir=.
 
8071
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8072
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8073
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
8074
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8075
    break 2
 
8076
  fi
 
8077
done
 
8078
done
 
8079
 
 
8080
fi
 
8081
fi
 
8082
F77=$ac_cv_prog_F77
 
8083
if test -n "$F77"; then
 
8084
  echo "$as_me:$LINENO: result: $F77" >&5
 
8085
echo "${ECHO_T}$F77" >&6
 
8086
else
 
8087
  echo "$as_me:$LINENO: result: no" >&5
 
8088
echo "${ECHO_T}no" >&6
 
8089
fi
 
8090
 
 
8091
    test -n "$F77" && break
 
8092
  done
 
8093
fi
 
8094
if test -z "$F77"; then
 
8095
  ac_ct_F77=$F77
 
8096
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
8097
do
 
8098
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
8099
set dummy $ac_prog; ac_word=$2
 
8100
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8101
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8102
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
8103
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8104
else
 
8105
  if test -n "$ac_ct_F77"; then
 
8106
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
8107
else
 
8108
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8109
for as_dir in $PATH
 
8110
do
 
8111
  IFS=$as_save_IFS
 
8112
  test -z "$as_dir" && as_dir=.
 
8113
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8114
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8115
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
8116
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8117
    break 2
 
8118
  fi
 
8119
done
 
8120
done
 
8121
 
 
8122
fi
 
8123
fi
 
8124
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
8125
if test -n "$ac_ct_F77"; then
 
8126
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
8127
echo "${ECHO_T}$ac_ct_F77" >&6
 
8128
else
 
8129
  echo "$as_me:$LINENO: result: no" >&5
 
8130
echo "${ECHO_T}no" >&6
 
8131
fi
 
8132
 
 
8133
  test -n "$ac_ct_F77" && break
 
8134
done
 
8135
 
 
8136
  F77=$ac_ct_F77
 
8137
fi
 
8138
 
 
8139
 
 
8140
# Provide some information about the compiler.
 
8141
echo "$as_me:8141:" \
 
8142
     "checking for Fortran 77 compiler version" >&5
 
8143
ac_compiler=`set X $ac_compile; echo $2`
 
8144
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
8145
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
8146
  ac_status=$?
 
8147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8148
  (exit $ac_status); }
 
8149
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
8150
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
8151
  ac_status=$?
 
8152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8153
  (exit $ac_status); }
 
8154
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
8155
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
8156
  ac_status=$?
 
8157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8158
  (exit $ac_status); }
 
8159
rm -f a.out
 
8160
 
 
8161
# If we don't use `.F' as extension, the preprocessor is not run on the
 
8162
# input file.  (Note that this only needs to work for GNU compilers.)
 
8163
ac_save_ext=$ac_ext
 
8164
ac_ext=F
 
8165
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
8166
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
8167
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
8168
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8169
else
 
8170
  cat >conftest.$ac_ext <<_ACEOF
 
8171
      program main
 
8172
#ifndef __GNUC__
 
8173
       choke me
 
8174
#endif
 
8175
 
 
8176
      end
 
8177
_ACEOF
 
8178
rm -f conftest.$ac_objext
 
8179
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8180
  (eval $ac_compile) 2>conftest.er1
 
8181
  ac_status=$?
 
8182
  grep -v '^ *+' conftest.er1 >conftest.err
 
8183
  rm -f conftest.er1
 
8184
  cat conftest.err >&5
 
8185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8186
  (exit $ac_status); } &&
 
8187
         { ac_try='test -z "$ac_f77_werror_flag"
 
8188
                         || test ! -s conftest.err'
 
8189
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8190
  (eval $ac_try) 2>&5
 
8191
  ac_status=$?
 
8192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8193
  (exit $ac_status); }; } &&
 
8194
         { ac_try='test -s conftest.$ac_objext'
 
8195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8196
  (eval $ac_try) 2>&5
 
8197
  ac_status=$?
 
8198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8199
  (exit $ac_status); }; }; then
 
8200
  ac_compiler_gnu=yes
 
8201
else
 
8202
  echo "$as_me: failed program was:" >&5
 
8203
sed 's/^/| /' conftest.$ac_ext >&5
 
8204
 
 
8205
ac_compiler_gnu=no
 
8206
fi
 
8207
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8208
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
8209
 
 
8210
fi
 
8211
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
8212
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
8213
ac_ext=$ac_save_ext
 
8214
ac_test_FFLAGS=${FFLAGS+set}
 
8215
ac_save_FFLAGS=$FFLAGS
 
8216
FFLAGS=
 
8217
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
8218
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
8219
if test "${ac_cv_prog_f77_g+set}" = set; then
 
8220
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8221
else
 
8222
  FFLAGS=-g
 
8223
cat >conftest.$ac_ext <<_ACEOF
 
8224
      program main
 
8225
 
 
8226
      end
 
8227
_ACEOF
 
8228
rm -f conftest.$ac_objext
 
8229
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8230
  (eval $ac_compile) 2>conftest.er1
 
8231
  ac_status=$?
 
8232
  grep -v '^ *+' conftest.er1 >conftest.err
 
8233
  rm -f conftest.er1
 
8234
  cat conftest.err >&5
 
8235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8236
  (exit $ac_status); } &&
 
8237
         { ac_try='test -z "$ac_f77_werror_flag"
 
8238
                         || test ! -s conftest.err'
 
8239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8240
  (eval $ac_try) 2>&5
 
8241
  ac_status=$?
 
8242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8243
  (exit $ac_status); }; } &&
 
8244
         { ac_try='test -s conftest.$ac_objext'
 
8245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8246
  (eval $ac_try) 2>&5
 
8247
  ac_status=$?
 
8248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8249
  (exit $ac_status); }; }; then
 
8250
  ac_cv_prog_f77_g=yes
 
8251
else
 
8252
  echo "$as_me: failed program was:" >&5
 
8253
sed 's/^/| /' conftest.$ac_ext >&5
 
8254
 
 
8255
ac_cv_prog_f77_g=no
 
8256
fi
 
8257
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8258
 
 
8259
fi
 
8260
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
8261
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
8262
if test "$ac_test_FFLAGS" = set; then
 
8263
  FFLAGS=$ac_save_FFLAGS
 
8264
elif test $ac_cv_prog_f77_g = yes; then
 
8265
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
8266
    FFLAGS="-g -O2"
 
8267
  else
 
8268
    FFLAGS="-g"
 
8269
  fi
 
8270
else
 
8271
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
8272
    FFLAGS="-O2"
 
8273
  else
 
8274
    FFLAGS=
 
8275
  fi
 
8276
fi
 
8277
 
 
8278
G77=`test $ac_compiler_gnu = yes && echo yes`
 
8279
ac_ext=c
 
8280
ac_cpp='$CPP $CPPFLAGS'
 
8281
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8282
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8283
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8284
 
 
8285
 
 
8286
 
 
8287
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
8288
 
 
8289
# find the maximum length of command line arguments
 
8290
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
8291
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
8292
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
8293
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8294
else
 
8295
    i=0
 
8296
  testring="ABCD"
 
8297
 
 
8298
  case $build_os in
 
8299
  msdosdjgpp*)
 
8300
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
8301
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
8302
    # during glob expansion).  Even if it were fixed, the result of this
 
8303
    # check would be larger than it should be.
 
8304
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
8305
    ;;
 
8306
 
 
8307
  gnu*)
 
8308
    # Under GNU Hurd, this test is not required because there is
 
8309
    # no limit to the length of command line arguments.
 
8310
    # Libtool will interpret -1 as no limit whatsoever
 
8311
    lt_cv_sys_max_cmd_len=-1;
 
8312
    ;;
 
8313
 
 
8314
  cygwin* | mingw*)
 
8315
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
8316
    # about 5 minutes as the teststring grows exponentially.
 
8317
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
8318
    # you end up with a "frozen" computer, even though with patience
 
8319
    # the test eventually succeeds (with a max line length of 256k).
 
8320
    # Instead, let's just punt: use the minimum linelength reported by
 
8321
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
8322
    lt_cv_sys_max_cmd_len=8192;
 
8323
    ;;
 
8324
 
 
8325
 *)
 
8326
    # If test is not a shell built-in, we'll probably end up computing a
 
8327
    # maximum length that is only half of the actual maximum length, but
 
8328
    # we can't tell.
 
8329
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
 
8330
               = "XX$testring") >/dev/null 2>&1 &&
 
8331
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
8332
            lt_cv_sys_max_cmd_len=$new_result &&
 
8333
            test $i != 17 # 1/2 MB should be enough
 
8334
    do
 
8335
      i=`expr $i + 1`
 
8336
      testring=$testring$testring
 
8337
    done
 
8338
    testring=
 
8339
    # Add a significant safety factor because C++ compilers can tack on massive
 
8340
    # amounts of additional arguments before passing them to the linker.
 
8341
    # It appears as though 1/2 is a usable value.
 
8342
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
8343
    ;;
 
8344
  esac
 
8345
 
 
8346
fi
 
8347
 
 
8348
if test -n $lt_cv_sys_max_cmd_len ; then
 
8349
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
8350
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
8351
else
 
8352
  echo "$as_me:$LINENO: result: none" >&5
 
8353
echo "${ECHO_T}none" >&6
 
8354
fi
 
8355
 
 
8356
 
 
8357
 
 
8358
 
 
8359
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
8360
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
8361
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
8362
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
8363
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8364
else
 
8365
 
 
8366
# These are sane defaults that work on at least a few old systems.
 
8367
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
8368
 
 
8369
# Character class describing NM global symbol codes.
 
8370
symcode='[BCDEGRST]'
 
8371
 
 
8372
# Regexp to match symbols that can be accessed directly from C.
 
8373
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
8374
 
 
8375
# Transform the above into a raw symbol and a C symbol.
 
8376
symxfrm='\1 \2\3 \3'
 
8377
 
 
8378
# Transform an extracted symbol line into a proper C declaration
 
8379
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
8380
 
 
8381
# Transform an extracted symbol line into symbol name and symbol address
 
8382
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'"
 
8383
 
 
8384
# Define system-specific variables.
 
8385
case $host_os in
 
8386
aix*)
 
8387
  symcode='[BCDT]'
 
8388
  ;;
 
8389
cygwin* | mingw* | pw32*)
 
8390
  symcode='[ABCDGISTW]'
 
8391
  ;;
 
8392
hpux*) # Its linker distinguishes data from code symbols
 
8393
  if test "$host_cpu" = ia64; then
 
8394
    symcode='[ABCDEGRST]'
 
8395
  fi
 
8396
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
8397
  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'"
 
8398
  ;;
 
8399
irix* | nonstopux*)
 
8400
  symcode='[BCDEGRST]'
 
8401
  ;;
 
8402
osf*)
 
8403
  symcode='[BCDEGQRST]'
 
8404
  ;;
 
8405
solaris* | sysv5*)
 
8406
  symcode='[BDT]'
 
8407
  ;;
 
8408
sysv4)
 
8409
  symcode='[DFNSTU]'
 
8410
  ;;
 
8411
esac
 
8412
 
 
8413
# Handle CRLF in mingw tool chain
 
8414
opt_cr=
 
8415
case $build_os in
 
8416
mingw*)
 
8417
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
8418
  ;;
 
8419
esac
 
8420
 
 
8421
# If we're using GNU nm, then use its standard symbol codes.
 
8422
case `$NM -V 2>&1` in
 
8423
*GNU* | *'with BFD'*)
 
8424
  symcode='[ABCDGISTW]' ;;
 
8425
esac
 
8426
 
 
8427
# Try without a prefix undercore, then with it.
 
8428
for ac_symprfx in "" "_"; do
 
8429
 
 
8430
  # Write the raw and C identifiers.
 
8431
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
8432
 
 
8433
  # Check to see that the pipe works correctly.
 
8434
  pipe_works=no
 
8435
 
 
8436
  rm -f conftest*
 
8437
  cat > conftest.$ac_ext <<EOF
 
8438
#ifdef __cplusplus
 
8439
extern "C" {
 
8440
#endif
 
8441
char nm_test_var;
 
8442
void nm_test_func(){}
 
8443
#ifdef __cplusplus
 
8444
}
 
8445
#endif
 
8446
int main(){nm_test_var='a';nm_test_func();return(0);}
 
8447
EOF
 
8448
 
 
8449
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8450
  (eval $ac_compile) 2>&5
 
8451
  ac_status=$?
 
8452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8453
  (exit $ac_status); }; then
 
8454
    # Now try to grab the symbols.
 
8455
    nlist=conftest.nm
 
8456
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
8457
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
8458
  ac_status=$?
 
8459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8460
  (exit $ac_status); } && test -s "$nlist"; then
 
8461
      # Try sorting and uniquifying the output.
 
8462
      if sort "$nlist" | uniq > "$nlist"T; then
 
8463
        mv -f "$nlist"T "$nlist"
 
8464
      else
 
8465
        rm -f "$nlist"T
 
8466
      fi
 
8467
 
 
8468
      # Make sure that we snagged all the symbols we need.
 
8469
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
8470
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
8471
          cat <<EOF > conftest.$ac_ext
 
8472
#ifdef __cplusplus
 
8473
extern "C" {
 
8474
#endif
 
8475
 
 
8476
EOF
 
8477
          # Now generate the symbol file.
 
8478
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
8479
 
 
8480
          cat <<EOF >> conftest.$ac_ext
 
8481
#if defined (__STDC__) && __STDC__
 
8482
# define lt_ptr_t void *
 
8483
#else
 
8484
# define lt_ptr_t char *
 
8485
# define const
 
8486
#endif
 
8487
 
 
8488
/* The mapping between symbol names and symbols. */
 
8489
const struct {
 
8490
  const char *name;
 
8491
  lt_ptr_t address;
 
8492
}
 
8493
lt_preloaded_symbols[] =
 
8494
{
 
8495
EOF
 
8496
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
8497
          cat <<\EOF >> conftest.$ac_ext
 
8498
  {0, (lt_ptr_t) 0}
 
8499
};
 
8500
 
 
8501
#ifdef __cplusplus
 
8502
}
 
8503
#endif
 
8504
EOF
 
8505
          # Now try linking the two files.
 
8506
          mv conftest.$ac_objext conftstm.$ac_objext
 
8507
          lt_save_LIBS="$LIBS"
 
8508
          lt_save_CFLAGS="$CFLAGS"
 
8509
          LIBS="conftstm.$ac_objext"
 
8510
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
8511
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8512
  (eval $ac_link) 2>&5
 
8513
  ac_status=$?
 
8514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8515
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
8516
            pipe_works=yes
 
8517
          fi
 
8518
          LIBS="$lt_save_LIBS"
 
8519
          CFLAGS="$lt_save_CFLAGS"
 
8520
        else
 
8521
          echo "cannot find nm_test_func in $nlist" >&5
 
8522
        fi
 
8523
      else
 
8524
        echo "cannot find nm_test_var in $nlist" >&5
 
8525
      fi
 
8526
    else
 
8527
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
8528
    fi
 
8529
  else
 
8530
    echo "$progname: failed program was:" >&5
 
8531
    cat conftest.$ac_ext >&5
 
8532
  fi
 
8533
  rm -f conftest* conftst*
 
8534
 
 
8535
  # Do not use the global_symbol_pipe unless it works.
 
8536
  if test "$pipe_works" = yes; then
 
8537
    break
 
8538
  else
 
8539
    lt_cv_sys_global_symbol_pipe=
 
8540
  fi
 
8541
done
 
8542
 
 
8543
fi
 
8544
 
 
8545
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
8546
  lt_cv_sys_global_symbol_to_cdecl=
 
8547
fi
 
8548
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
8549
  echo "$as_me:$LINENO: result: failed" >&5
 
8550
echo "${ECHO_T}failed" >&6
 
8551
else
 
8552
  echo "$as_me:$LINENO: result: ok" >&5
 
8553
echo "${ECHO_T}ok" >&6
 
8554
fi
 
8555
 
 
8556
echo "$as_me:$LINENO: checking for objdir" >&5
 
8557
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
8558
if test "${lt_cv_objdir+set}" = set; then
 
8559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8560
else
 
8561
  rm -f .libs 2>/dev/null
 
8562
mkdir .libs 2>/dev/null
 
8563
if test -d .libs; then
 
8564
  lt_cv_objdir=.libs
 
8565
else
 
8566
  # MS-DOS does not allow filenames that begin with a dot.
 
8567
  lt_cv_objdir=_libs
 
8568
fi
 
8569
rmdir .libs 2>/dev/null
 
8570
fi
 
8571
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
8572
echo "${ECHO_T}$lt_cv_objdir" >&6
 
8573
objdir=$lt_cv_objdir
 
8574
 
 
8575
 
 
8576
 
 
8577
 
 
8578
 
 
8579
case $host_os in
 
8580
aix3*)
 
8581
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8582
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8583
  # vanish in a puff of smoke.
 
8584
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8585
    COLLECT_NAMES=
 
8586
    export COLLECT_NAMES
 
8587
  fi
 
8588
  ;;
 
8589
esac
 
8590
 
 
8591
# Sed substitution that helps us do robust quoting.  It backslashifies
 
8592
# metacharacters that are still active within double-quoted strings.
 
8593
Xsed='sed -e s/^X//'
 
8594
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
8595
 
 
8596
# Same as above, but do not quote variable references.
 
8597
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
8598
 
 
8599
# Sed substitution to delay expansion of an escaped shell variable in a
 
8600
# double_quote_subst'ed string.
 
8601
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
8602
 
 
8603
# Sed substitution to avoid accidental globbing in evaled expressions
 
8604
no_glob_subst='s/\*/\\\*/g'
 
8605
 
 
8606
# Constants:
 
8607
rm="rm -f"
 
8608
 
 
8609
# Global variables:
 
8610
default_ofile=libtool
 
8611
can_build_shared=yes
 
8612
 
 
8613
# All known linkers require a `.a' archive for static linking (except M$VC,
 
8614
# which needs '.lib').
 
8615
libext=a
 
8616
ltmain="$ac_aux_dir/ltmain.sh"
 
8617
ofile="$default_ofile"
 
8618
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8619
 
 
8620
if test -n "$ac_tool_prefix"; then
 
8621
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
8622
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
8623
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8624
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8625
if test "${ac_cv_prog_AR+set}" = set; then
 
8626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8627
else
 
8628
  if test -n "$AR"; then
 
8629
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
8630
else
 
8631
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8632
for as_dir in $PATH
 
8633
do
 
8634
  IFS=$as_save_IFS
 
8635
  test -z "$as_dir" && as_dir=.
 
8636
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8637
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8638
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
8639
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8640
    break 2
 
8641
  fi
 
8642
done
 
8643
done
 
8644
 
 
8645
fi
 
8646
fi
 
8647
AR=$ac_cv_prog_AR
 
8648
if test -n "$AR"; then
 
8649
  echo "$as_me:$LINENO: result: $AR" >&5
 
8650
echo "${ECHO_T}$AR" >&6
 
8651
else
 
8652
  echo "$as_me:$LINENO: result: no" >&5
 
8653
echo "${ECHO_T}no" >&6
 
8654
fi
 
8655
 
 
8656
fi
 
8657
if test -z "$ac_cv_prog_AR"; then
 
8658
  ac_ct_AR=$AR
 
8659
  # Extract the first word of "ar", so it can be a program name with args.
 
8660
set dummy ar; ac_word=$2
 
8661
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8662
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8663
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
8664
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8665
else
 
8666
  if test -n "$ac_ct_AR"; then
 
8667
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
8668
else
 
8669
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8670
for as_dir in $PATH
 
8671
do
 
8672
  IFS=$as_save_IFS
 
8673
  test -z "$as_dir" && as_dir=.
 
8674
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8675
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8676
    ac_cv_prog_ac_ct_AR="ar"
 
8677
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8678
    break 2
 
8679
  fi
 
8680
done
 
8681
done
 
8682
 
 
8683
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
8684
fi
 
8685
fi
 
8686
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
8687
if test -n "$ac_ct_AR"; then
 
8688
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
8689
echo "${ECHO_T}$ac_ct_AR" >&6
 
8690
else
 
8691
  echo "$as_me:$LINENO: result: no" >&5
 
8692
echo "${ECHO_T}no" >&6
 
8693
fi
 
8694
 
 
8695
  AR=$ac_ct_AR
 
8696
else
 
8697
  AR="$ac_cv_prog_AR"
 
8698
fi
 
8699
 
 
8700
if test -n "$ac_tool_prefix"; then
 
8701
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
8702
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
8703
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8704
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8705
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
8706
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8707
else
 
8708
  if test -n "$RANLIB"; then
 
8709
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
8710
else
 
8711
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8712
for as_dir in $PATH
 
8713
do
 
8714
  IFS=$as_save_IFS
 
8715
  test -z "$as_dir" && as_dir=.
 
8716
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8717
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8718
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
8719
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8720
    break 2
 
8721
  fi
 
8722
done
 
8723
done
 
8724
 
 
8725
fi
 
8726
fi
 
8727
RANLIB=$ac_cv_prog_RANLIB
 
8728
if test -n "$RANLIB"; then
 
8729
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
8730
echo "${ECHO_T}$RANLIB" >&6
 
8731
else
 
8732
  echo "$as_me:$LINENO: result: no" >&5
 
8733
echo "${ECHO_T}no" >&6
 
8734
fi
 
8735
 
 
8736
fi
 
8737
if test -z "$ac_cv_prog_RANLIB"; then
 
8738
  ac_ct_RANLIB=$RANLIB
 
8739
  # Extract the first word of "ranlib", so it can be a program name with args.
 
8740
set dummy ranlib; ac_word=$2
 
8741
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8742
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8743
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
8744
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8745
else
 
8746
  if test -n "$ac_ct_RANLIB"; then
 
8747
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
8748
else
 
8749
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8750
for as_dir in $PATH
 
8751
do
 
8752
  IFS=$as_save_IFS
 
8753
  test -z "$as_dir" && as_dir=.
 
8754
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8755
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8756
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
8757
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8758
    break 2
 
8759
  fi
 
8760
done
 
8761
done
 
8762
 
 
8763
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
8764
fi
 
8765
fi
 
8766
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
8767
if test -n "$ac_ct_RANLIB"; then
 
8768
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
8769
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
8770
else
 
8771
  echo "$as_me:$LINENO: result: no" >&5
 
8772
echo "${ECHO_T}no" >&6
 
8773
fi
 
8774
 
 
8775
  RANLIB=$ac_ct_RANLIB
 
8776
else
 
8777
  RANLIB="$ac_cv_prog_RANLIB"
 
8778
fi
 
8779
 
 
8780
if test -n "$ac_tool_prefix"; then
 
8781
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
8782
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
8783
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8784
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8785
if test "${ac_cv_prog_STRIP+set}" = set; then
 
8786
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8787
else
 
8788
  if test -n "$STRIP"; then
 
8789
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
8790
else
 
8791
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8792
for as_dir in $PATH
 
8793
do
 
8794
  IFS=$as_save_IFS
 
8795
  test -z "$as_dir" && as_dir=.
 
8796
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8797
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8798
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
8799
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8800
    break 2
 
8801
  fi
 
8802
done
 
8803
done
 
8804
 
 
8805
fi
 
8806
fi
 
8807
STRIP=$ac_cv_prog_STRIP
 
8808
if test -n "$STRIP"; then
 
8809
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
8810
echo "${ECHO_T}$STRIP" >&6
 
8811
else
 
8812
  echo "$as_me:$LINENO: result: no" >&5
 
8813
echo "${ECHO_T}no" >&6
 
8814
fi
 
8815
 
 
8816
fi
 
8817
if test -z "$ac_cv_prog_STRIP"; then
 
8818
  ac_ct_STRIP=$STRIP
 
8819
  # Extract the first word of "strip", so it can be a program name with args.
 
8820
set dummy strip; ac_word=$2
 
8821
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8822
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8823
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
8824
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8825
else
 
8826
  if test -n "$ac_ct_STRIP"; then
 
8827
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
8828
else
 
8829
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8830
for as_dir in $PATH
 
8831
do
 
8832
  IFS=$as_save_IFS
 
8833
  test -z "$as_dir" && as_dir=.
 
8834
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8835
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8836
    ac_cv_prog_ac_ct_STRIP="strip"
 
8837
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8838
    break 2
 
8839
  fi
 
8840
done
 
8841
done
 
8842
 
 
8843
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
8844
fi
 
8845
fi
 
8846
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
8847
if test -n "$ac_ct_STRIP"; then
 
8848
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
8849
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
8850
else
 
8851
  echo "$as_me:$LINENO: result: no" >&5
 
8852
echo "${ECHO_T}no" >&6
 
8853
fi
 
8854
 
 
8855
  STRIP=$ac_ct_STRIP
 
8856
else
 
8857
  STRIP="$ac_cv_prog_STRIP"
 
8858
fi
 
8859
 
 
8860
 
 
8861
old_CC="$CC"
 
8862
old_CFLAGS="$CFLAGS"
 
8863
 
 
8864
# Set sane defaults for various variables
 
8865
test -z "$AR" && AR=ar
 
8866
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
8867
test -z "$AS" && AS=as
 
8868
test -z "$CC" && CC=cc
 
8869
test -z "$LTCC" && LTCC=$CC
 
8870
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8871
test -z "$LD" && LD=ld
 
8872
test -z "$LN_S" && LN_S="ln -s"
 
8873
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8874
test -z "$NM" && NM=nm
 
8875
test -z "$SED" && SED=sed
 
8876
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8877
test -z "$RANLIB" && RANLIB=:
 
8878
test -z "$STRIP" && STRIP=:
 
8879
test -z "$ac_objext" && ac_objext=o
 
8880
 
 
8881
# Determine commands to create old-style static archives.
 
8882
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
8883
old_postinstall_cmds='chmod 644 $oldlib'
 
8884
old_postuninstall_cmds=
 
8885
 
 
8886
if test -n "$RANLIB"; then
 
8887
  case $host_os in
 
8888
  openbsd*)
 
8889
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
8890
    ;;
 
8891
  *)
 
8892
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
8893
    ;;
 
8894
  esac
 
8895
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
8896
fi
 
8897
 
 
8898
# Only perform the check for file, if the check method requires it
 
8899
case $deplibs_check_method in
 
8900
file_magic*)
 
8901
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8902
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
8903
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
8904
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8905
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8906
else
 
8907
  case $MAGIC_CMD in
 
8908
[\\/*] |  ?:[\\/]*)
 
8909
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8910
  ;;
 
8911
*)
 
8912
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8913
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8914
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8915
  for ac_dir in $ac_dummy; do
 
8916
    IFS="$lt_save_ifs"
 
8917
    test -z "$ac_dir" && ac_dir=.
 
8918
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8919
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8920
      if test -n "$file_magic_test_file"; then
 
8921
        case $deplibs_check_method in
 
8922
        "file_magic "*)
 
8923
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
8924
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8925
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8926
            $EGREP "$file_magic_regex" > /dev/null; then
 
8927
            :
 
8928
          else
 
8929
            cat <<EOF 1>&2
 
8930
 
 
8931
*** Warning: the command libtool uses to detect shared libraries,
 
8932
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8933
*** The result is that libtool may fail to recognize shared libraries
 
8934
*** as such.  This will affect the creation of libtool libraries that
 
8935
*** depend on shared libraries, but programs linked with such libtool
 
8936
*** libraries will work regardless of this problem.  Nevertheless, you
 
8937
*** may want to report the problem to your system manager and/or to
 
8938
*** bug-libtool@gnu.org
 
8939
 
 
8940
EOF
 
8941
          fi ;;
 
8942
        esac
 
8943
      fi
 
8944
      break
 
8945
    fi
 
8946
  done
 
8947
  IFS="$lt_save_ifs"
 
8948
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8949
  ;;
 
8950
esac
 
8951
fi
 
8952
 
 
8953
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8954
if test -n "$MAGIC_CMD"; then
 
8955
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8956
echo "${ECHO_T}$MAGIC_CMD" >&6
 
8957
else
 
8958
  echo "$as_me:$LINENO: result: no" >&5
 
8959
echo "${ECHO_T}no" >&6
 
8960
fi
 
8961
 
 
8962
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8963
  if test -n "$ac_tool_prefix"; then
 
8964
    echo "$as_me:$LINENO: checking for file" >&5
 
8965
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
8966
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8967
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8968
else
 
8969
  case $MAGIC_CMD in
 
8970
[\\/*] |  ?:[\\/]*)
 
8971
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8972
  ;;
 
8973
*)
 
8974
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8975
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8976
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8977
  for ac_dir in $ac_dummy; do
 
8978
    IFS="$lt_save_ifs"
 
8979
    test -z "$ac_dir" && ac_dir=.
 
8980
    if test -f $ac_dir/file; then
 
8981
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8982
      if test -n "$file_magic_test_file"; then
 
8983
        case $deplibs_check_method in
 
8984
        "file_magic "*)
 
8985
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
8986
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8987
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8988
            $EGREP "$file_magic_regex" > /dev/null; then
 
8989
            :
 
8990
          else
 
8991
            cat <<EOF 1>&2
 
8992
 
 
8993
*** Warning: the command libtool uses to detect shared libraries,
 
8994
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8995
*** The result is that libtool may fail to recognize shared libraries
 
8996
*** as such.  This will affect the creation of libtool libraries that
 
8997
*** depend on shared libraries, but programs linked with such libtool
 
8998
*** libraries will work regardless of this problem.  Nevertheless, you
 
8999
*** may want to report the problem to your system manager and/or to
 
9000
*** bug-libtool@gnu.org
 
9001
 
 
9002
EOF
 
9003
          fi ;;
 
9004
        esac
 
9005
      fi
 
9006
      break
 
9007
    fi
 
9008
  done
 
9009
  IFS="$lt_save_ifs"
 
9010
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
9011
  ;;
 
9012
esac
 
9013
fi
 
9014
 
 
9015
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9016
if test -n "$MAGIC_CMD"; then
 
9017
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
9018
echo "${ECHO_T}$MAGIC_CMD" >&6
 
9019
else
 
9020
  echo "$as_me:$LINENO: result: no" >&5
 
9021
echo "${ECHO_T}no" >&6
 
9022
fi
 
9023
 
 
9024
  else
 
9025
    MAGIC_CMD=:
 
9026
  fi
 
9027
fi
 
9028
 
 
9029
  fi
 
9030
  ;;
 
9031
esac
 
9032
 
 
9033
enable_dlopen=yes
 
9034
enable_win32_dll=no
 
9035
 
 
9036
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
9037
if test "${enable_libtool_lock+set}" = set; then
 
9038
  enableval="$enable_libtool_lock"
 
9039
 
 
9040
fi;
 
9041
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
9042
 
 
9043
 
 
9044
# Check whether --with-pic or --without-pic was given.
 
9045
if test "${with_pic+set}" = set; then
 
9046
  withval="$with_pic"
 
9047
  pic_mode="$withval"
 
9048
else
 
9049
  pic_mode=default
 
9050
fi;
 
9051
test -z "$pic_mode" && pic_mode=default
 
9052
 
 
9053
# Use C for the default configuration in the libtool script
 
9054
tagname=
 
9055
lt_save_CC="$CC"
 
9056
ac_ext=c
 
9057
ac_cpp='$CPP $CPPFLAGS'
 
9058
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9059
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9060
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9061
 
 
9062
 
 
9063
# Source file extension for C test sources.
 
9064
ac_ext=c
 
9065
 
 
9066
# Object file extension for compiled C test sources.
 
9067
objext=o
 
9068
objext=$objext
 
9069
 
 
9070
# Code to be used in simple compile tests
 
9071
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9072
 
 
9073
# Code to be used in simple link tests
 
9074
lt_simple_link_test_code='int main(){return(0);}\n'
 
9075
 
 
9076
 
 
9077
# If no C compiler was specified, use CC.
 
9078
LTCC=${LTCC-"$CC"}
 
9079
 
 
9080
# Allow CC to be a program name with arguments.
 
9081
compiler=$CC
 
9082
 
 
9083
 
 
9084
#
 
9085
# Check for any special shared library compilation flags.
 
9086
#
 
9087
lt_prog_cc_shlib=
 
9088
if test "$GCC" = no; then
 
9089
  case $host_os in
 
9090
  sco3.2v5*)
 
9091
    lt_prog_cc_shlib='-belf'
 
9092
    ;;
 
9093
  esac
 
9094
fi
 
9095
if test -n "$lt_prog_cc_shlib"; then
 
9096
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
9097
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
9098
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
9099
  else
 
9100
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
9101
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
9102
    lt_cv_prog_cc_can_build_shared=no
 
9103
  fi
 
9104
fi
 
9105
 
 
9106
 
 
9107
#
 
9108
# Check to make sure the static flag actually works.
 
9109
#
 
9110
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
9111
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
9112
if test "${lt_prog_compiler_static_works+set}" = set; then
 
9113
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9114
else
 
9115
  lt_prog_compiler_static_works=no
 
9116
   save_LDFLAGS="$LDFLAGS"
 
9117
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
9118
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
9119
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9120
     # The compiler can only warn and ignore the option if not recognized
 
9121
     # So say no if there are warnings
 
9122
     if test -s conftest.err; then
 
9123
       # Append any errors to the config.log.
 
9124
       cat conftest.err 1>&5
 
9125
     else
 
9126
       lt_prog_compiler_static_works=yes
 
9127
     fi
 
9128
   fi
 
9129
   $rm conftest*
 
9130
   LDFLAGS="$save_LDFLAGS"
 
9131
 
 
9132
fi
 
9133
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
9134
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
9135
 
 
9136
if test x"$lt_prog_compiler_static_works" = xyes; then
 
9137
    :
 
9138
else
 
9139
    lt_prog_compiler_static=
 
9140
fi
 
9141
 
 
9142
 
 
9143
 
 
9144
## CAVEAT EMPTOR:
 
9145
## There is no encapsulation within the following macros, do not change
 
9146
## the running order or otherwise move them around unless you know exactly
 
9147
## what you are doing...
 
9148
 
 
9149
lt_prog_compiler_no_builtin_flag=
 
9150
 
 
9151
if test "$GCC" = yes; then
 
9152
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
9153
 
 
9154
 
 
9155
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
9156
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
9157
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
9158
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9159
else
 
9160
  lt_cv_prog_compiler_rtti_exceptions=no
 
9161
  ac_outfile=conftest.$ac_objext
 
9162
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9163
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
9164
   # Insert the option either (1) after the last *FLAGS variable, or
 
9165
   # (2) before a word containing "conftest.", or (3) at the end.
 
9166
   # Note that $ac_compile itself does not contain backslashes and begins
 
9167
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9168
   # The option is referenced via a variable to avoid confusing sed.
 
9169
   lt_compile=`echo "$ac_compile" | $SED \
 
9170
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9171
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9172
   -e 's:$: $lt_compiler_flag:'`
 
9173
   (eval echo "\"\$as_me:9173: $lt_compile\"" >&5)
 
9174
   (eval "$lt_compile" 2>conftest.err)
 
9175
   ac_status=$?
 
9176
   cat conftest.err >&5
 
9177
   echo "$as_me:9177: \$? = $ac_status" >&5
 
9178
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9179
     # The compiler can only warn and ignore the option if not recognized
 
9180
     # So say no if there are warnings
 
9181
     if test ! -s conftest.err; then
 
9182
       lt_cv_prog_compiler_rtti_exceptions=yes
 
9183
     fi
 
9184
   fi
 
9185
   $rm conftest*
 
9186
 
 
9187
fi
 
9188
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
9189
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
9190
 
 
9191
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
9192
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
9193
else
 
9194
    :
 
9195
fi
 
9196
 
 
9197
fi
 
9198
 
 
9199
lt_prog_compiler_wl=
 
9200
lt_prog_compiler_pic=
 
9201
lt_prog_compiler_static=
 
9202
 
 
9203
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
9204
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
9205
 
 
9206
  if test "$GCC" = yes; then
 
9207
    lt_prog_compiler_wl='-Wl,'
 
9208
    lt_prog_compiler_static='-static'
 
9209
 
 
9210
    case $host_os in
 
9211
      aix*)
 
9212
      # All AIX code is PIC.
 
9213
      if test "$host_cpu" = ia64; then
 
9214
        # AIX 5 now supports IA64 processor
 
9215
        lt_prog_compiler_static='-Bstatic'
 
9216
      fi
 
9217
      ;;
 
9218
 
 
9219
    amigaos*)
 
9220
      # FIXME: we need at least 68020 code to build shared libraries, but
 
9221
      # adding the `-m68020' flag to GCC prevents building anything better,
 
9222
      # like `-m68040'.
 
9223
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
9224
      ;;
 
9225
 
 
9226
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
9227
      # PIC is the default for these OSes.
 
9228
      ;;
 
9229
 
 
9230
    mingw* | pw32* | os2*)
 
9231
      # This hack is so that the source file can tell whether it is being
 
9232
      # built for inclusion in a dll (and should export symbols for example).
 
9233
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9234
      ;;
 
9235
 
 
9236
    darwin* | rhapsody*)
 
9237
      # PIC is the default on this platform
 
9238
      # Common symbols not allowed in MH_DYLIB files
 
9239
      lt_prog_compiler_pic='-fno-common'
 
9240
      ;;
 
9241
 
 
9242
    msdosdjgpp*)
 
9243
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
9244
      # on systems that don't support them.
 
9245
      lt_prog_compiler_can_build_shared=no
 
9246
      enable_shared=no
 
9247
      ;;
 
9248
 
 
9249
    sysv4*MP*)
 
9250
      if test -d /usr/nec; then
 
9251
        lt_prog_compiler_pic=-Kconform_pic
 
9252
      fi
 
9253
      ;;
 
9254
 
 
9255
    hpux*)
 
9256
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
9257
      # not for PA HP-UX.
 
9258
      case "$host_cpu" in
 
9259
      hppa*64*|ia64*)
 
9260
        # +Z the default
 
9261
        ;;
 
9262
      *)
 
9263
        lt_prog_compiler_pic='-fPIC'
 
9264
        ;;
 
9265
      esac
 
9266
      ;;
 
9267
 
 
9268
    *)
 
9269
      lt_prog_compiler_pic='-fPIC'
 
9270
      ;;
 
9271
    esac
 
9272
  else
 
9273
    # PORTME Check for flag to pass linker flags through the system compiler.
 
9274
    case $host_os in
 
9275
    aix*)
 
9276
      lt_prog_compiler_wl='-Wl,'
 
9277
      if test "$host_cpu" = ia64; then
 
9278
        # AIX 5 now supports IA64 processor
 
9279
        lt_prog_compiler_static='-Bstatic'
 
9280
      else
 
9281
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
9282
      fi
 
9283
      ;;
 
9284
 
 
9285
    mingw* | pw32* | os2*)
 
9286
      # This hack is so that the source file can tell whether it is being
 
9287
      # built for inclusion in a dll (and should export symbols for example).
 
9288
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9289
      ;;
 
9290
 
 
9291
    hpux9* | hpux10* | hpux11*)
 
9292
      lt_prog_compiler_wl='-Wl,'
 
9293
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
9294
      # not for PA HP-UX.
 
9295
      case "$host_cpu" in
 
9296
      hppa*64*|ia64*)
 
9297
        # +Z the default
 
9298
        ;;
 
9299
      *)
 
9300
        lt_prog_compiler_pic='+Z'
 
9301
        ;;
 
9302
      esac
 
9303
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
9304
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
9305
      ;;
 
9306
 
 
9307
    irix5* | irix6* | nonstopux*)
 
9308
      lt_prog_compiler_wl='-Wl,'
 
9309
      # PIC (with -KPIC) is the default.
 
9310
      lt_prog_compiler_static='-non_shared'
 
9311
      ;;
 
9312
 
 
9313
    newsos6)
 
9314
      lt_prog_compiler_pic='-KPIC'
 
9315
      lt_prog_compiler_static='-Bstatic'
 
9316
      ;;
 
9317
 
 
9318
    linux*)
 
9319
      case $CC in
 
9320
      icc* | ecc*)
 
9321
        lt_prog_compiler_wl='-Wl,'
 
9322
        lt_prog_compiler_pic='-KPIC'
 
9323
        lt_prog_compiler_static='-static'
 
9324
        ;;
 
9325
      ccc*)
 
9326
        lt_prog_compiler_wl='-Wl,'
 
9327
        # All Alpha code is PIC.
 
9328
        lt_prog_compiler_static='-non_shared'
 
9329
        ;;
 
9330
      esac
 
9331
      ;;
 
9332
 
 
9333
    osf3* | osf4* | osf5*)
 
9334
      lt_prog_compiler_wl='-Wl,'
 
9335
      # All OSF/1 code is PIC.
 
9336
      lt_prog_compiler_static='-non_shared'
 
9337
      ;;
 
9338
 
 
9339
    sco3.2v5*)
 
9340
      lt_prog_compiler_pic='-Kpic'
 
9341
      lt_prog_compiler_static='-dn'
 
9342
      ;;
 
9343
 
 
9344
    solaris*)
 
9345
      lt_prog_compiler_wl='-Wl,'
 
9346
      lt_prog_compiler_pic='-KPIC'
 
9347
      lt_prog_compiler_static='-Bstatic'
 
9348
      ;;
 
9349
 
 
9350
    sunos4*)
 
9351
      lt_prog_compiler_wl='-Qoption ld '
 
9352
      lt_prog_compiler_pic='-PIC'
 
9353
      lt_prog_compiler_static='-Bstatic'
 
9354
      ;;
 
9355
 
 
9356
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9357
      lt_prog_compiler_wl='-Wl,'
 
9358
      lt_prog_compiler_pic='-KPIC'
 
9359
      lt_prog_compiler_static='-Bstatic'
 
9360
      ;;
 
9361
 
 
9362
    sysv4*MP*)
 
9363
      if test -d /usr/nec ;then
 
9364
        lt_prog_compiler_pic='-Kconform_pic'
 
9365
        lt_prog_compiler_static='-Bstatic'
 
9366
      fi
 
9367
      ;;
 
9368
 
 
9369
    uts4*)
 
9370
      lt_prog_compiler_pic='-pic'
 
9371
      lt_prog_compiler_static='-Bstatic'
 
9372
      ;;
 
9373
 
 
9374
    *)
 
9375
      lt_prog_compiler_can_build_shared=no
 
9376
      ;;
 
9377
    esac
 
9378
  fi
 
9379
 
 
9380
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
9381
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
9382
 
 
9383
#
 
9384
# Check to make sure the PIC flag actually works.
 
9385
#
 
9386
if test -n "$lt_prog_compiler_pic"; then
 
9387
 
 
9388
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
9389
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
9390
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
9391
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9392
else
 
9393
  lt_prog_compiler_pic_works=no
 
9394
  ac_outfile=conftest.$ac_objext
 
9395
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9396
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
9397
   # Insert the option either (1) after the last *FLAGS variable, or
 
9398
   # (2) before a word containing "conftest.", or (3) at the end.
 
9399
   # Note that $ac_compile itself does not contain backslashes and begins
 
9400
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9401
   # The option is referenced via a variable to avoid confusing sed.
 
9402
   lt_compile=`echo "$ac_compile" | $SED \
 
9403
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9404
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9405
   -e 's:$: $lt_compiler_flag:'`
 
9406
   (eval echo "\"\$as_me:9406: $lt_compile\"" >&5)
 
9407
   (eval "$lt_compile" 2>conftest.err)
 
9408
   ac_status=$?
 
9409
   cat conftest.err >&5
 
9410
   echo "$as_me:9410: \$? = $ac_status" >&5
 
9411
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9412
     # The compiler can only warn and ignore the option if not recognized
 
9413
     # So say no if there are warnings
 
9414
     if test ! -s conftest.err; then
 
9415
       lt_prog_compiler_pic_works=yes
 
9416
     fi
 
9417
   fi
 
9418
   $rm conftest*
 
9419
 
 
9420
fi
 
9421
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
9422
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
9423
 
 
9424
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
9425
    case $lt_prog_compiler_pic in
 
9426
     "" | " "*) ;;
 
9427
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
9428
     esac
 
9429
else
 
9430
    lt_prog_compiler_pic=
 
9431
     lt_prog_compiler_can_build_shared=no
 
9432
fi
 
9433
 
 
9434
fi
 
9435
case "$host_os" in
 
9436
  # For platforms which do not support PIC, -DPIC is meaningless:
 
9437
  *djgpp*)
 
9438
    lt_prog_compiler_pic=
 
9439
    ;;
 
9440
  *)
 
9441
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
9442
    ;;
 
9443
esac
 
9444
 
 
9445
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9446
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
9447
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
9448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9449
else
 
9450
  lt_cv_prog_compiler_c_o=no
 
9451
   $rm -r conftest 2>/dev/null
 
9452
   mkdir conftest
 
9453
   cd conftest
 
9454
   mkdir out
 
9455
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9456
 
 
9457
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
9458
   # that will create temporary files in the current directory regardless of
 
9459
   # the output directory.  Thus, making CWD read-only will cause this test
 
9460
   # to fail, enabling locking or at least warning the user not to do parallel
 
9461
   # builds.
 
9462
   chmod -w .
 
9463
 
 
9464
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9465
   # Insert the option either (1) after the last *FLAGS variable, or
 
9466
   # (2) before a word containing "conftest.", or (3) at the end.
 
9467
   # Note that $ac_compile itself does not contain backslashes and begins
 
9468
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9469
   lt_compile=`echo "$ac_compile" | $SED \
 
9470
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9471
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9472
   -e 's:$: $lt_compiler_flag:'`
 
9473
   (eval echo "\"\$as_me:9473: $lt_compile\"" >&5)
 
9474
   (eval "$lt_compile" 2>out/conftest.err)
 
9475
   ac_status=$?
 
9476
   cat out/conftest.err >&5
 
9477
   echo "$as_me:9477: \$? = $ac_status" >&5
 
9478
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9479
   then
 
9480
     # The compiler can only warn and ignore the option if not recognized
 
9481
     # So say no if there are warnings
 
9482
     if test ! -s out/conftest.err; then
 
9483
       lt_cv_prog_compiler_c_o=yes
 
9484
     fi
 
9485
   fi
 
9486
   chmod u+w .
 
9487
   $rm conftest* out/*
 
9488
   rmdir out
 
9489
   cd ..
 
9490
   rmdir conftest
 
9491
   $rm conftest*
 
9492
 
 
9493
fi
 
9494
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
9495
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
9496
 
 
9497
 
 
9498
hard_links="nottested"
 
9499
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
9500
  # do not overwrite the value of need_locks provided by the user
 
9501
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
9502
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
9503
  hard_links=yes
 
9504
  $rm conftest*
 
9505
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9506
  touch conftest.a
 
9507
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9508
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9509
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
9510
echo "${ECHO_T}$hard_links" >&6
 
9511
  if test "$hard_links" = no; then
 
9512
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9513
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9514
    need_locks=warn
 
9515
  fi
 
9516
else
 
9517
  need_locks=no
 
9518
fi
 
9519
 
 
9520
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9521
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
9522
 
 
9523
  runpath_var=
 
9524
  allow_undefined_flag=
 
9525
  enable_shared_with_static_runtimes=no
 
9526
  archive_cmds=
 
9527
  archive_expsym_cmds=
 
9528
  old_archive_From_new_cmds=
 
9529
  old_archive_from_expsyms_cmds=
 
9530
  export_dynamic_flag_spec=
 
9531
  whole_archive_flag_spec=
 
9532
  thread_safe_flag_spec=
 
9533
  hardcode_libdir_flag_spec=
 
9534
  hardcode_libdir_flag_spec_ld=
 
9535
  hardcode_libdir_separator=
 
9536
  hardcode_direct=no
 
9537
  hardcode_minus_L=no
 
9538
  hardcode_shlibpath_var=unsupported
 
9539
  link_all_deplibs=unknown
 
9540
  hardcode_automatic=no
 
9541
  module_cmds=
 
9542
  module_expsym_cmds=
 
9543
  always_export_symbols=no
 
9544
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9545
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9546
  # included in the symbol list
 
9547
  include_expsyms=
 
9548
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9549
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
9550
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
9551
  # as well as any symbol that contains `d'.
 
9552
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
9553
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
9554
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
9555
  # the symbol is explicitly referenced.  Since portable code cannot
 
9556
  # rely on this symbol name, it's probably fine to never include it in
 
9557
  # preloaded symbol tables.
 
9558
  extract_expsyms_cmds=
 
9559
 
 
9560
  case $host_os in
 
9561
  cygwin* | mingw* | pw32*)
 
9562
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
9563
    # When not using gcc, we currently assume that we are using
 
9564
    # Microsoft Visual C++.
 
9565
    if test "$GCC" != yes; then
 
9566
      with_gnu_ld=no
 
9567
    fi
 
9568
    ;;
 
9569
  openbsd*)
 
9570
    with_gnu_ld=no
 
9571
    ;;
 
9572
  esac
 
9573
 
 
9574
  ld_shlibs=yes
 
9575
  if test "$with_gnu_ld" = yes; then
 
9576
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9577
    wlarc='${wl}'
 
9578
 
 
9579
    # See if GNU ld supports shared libraries.
 
9580
    case $host_os in
 
9581
    aix3* | aix4* | aix5*)
 
9582
      # On AIX/PPC, the GNU linker is very broken
 
9583
      if test "$host_cpu" != ia64; then
 
9584
        ld_shlibs=no
 
9585
        cat <<EOF 1>&2
 
9586
 
 
9587
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
9588
*** to be unable to reliably create shared libraries on AIX.
 
9589
*** Therefore, libtool is disabling shared libraries support.  If you
 
9590
*** really care for shared libraries, you may want to modify your PATH
 
9591
*** so that a non-GNU linker is found, and then restart.
 
9592
 
 
9593
EOF
 
9594
      fi
 
9595
      ;;
 
9596
 
 
9597
    amigaos*)
 
9598
      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)'
 
9599
      hardcode_libdir_flag_spec='-L$libdir'
 
9600
      hardcode_minus_L=yes
 
9601
 
 
9602
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
9603
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
9604
      # to version 4, is to share data among multiple programs linked
 
9605
      # with the same dynamic library.  Since this doesn't match the
 
9606
      # behavior of shared libraries on other platforms, we can't use
 
9607
      # them.
 
9608
      ld_shlibs=no
 
9609
      ;;
 
9610
 
 
9611
    beos*)
 
9612
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9613
        allow_undefined_flag=unsupported
 
9614
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9615
        # support --undefined.  This deserves some investigation.  FIXME
 
9616
        archive_cmds='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
9617
      else
 
9618
        ld_shlibs=no
 
9619
      fi
 
9620
      ;;
 
9621
 
 
9622
    cygwin* | mingw* | pw32*)
 
9623
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9624
      # as there is no search path for DLLs.
 
9625
      hardcode_libdir_flag_spec='-L$libdir'
 
9626
      allow_undefined_flag=no
 
9627
      always_export_symbols=no
 
9628
      enable_shared_with_static_runtimes=yes
 
9629
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
9630
 
 
9631
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
9632
        archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
9633
        # If the export-symbols file already is a .def file (1st line
 
9634
        # is EXPORTS), use it as is; otherwise, prepend...
 
9635
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9636
          cp $export_symbols $output_objdir/$soname.def;
 
9637
        else
 
9638
          echo EXPORTS > $output_objdir/$soname.def;
 
9639
          cat $export_symbols >> $output_objdir/$soname.def;
 
9640
        fi~
 
9641
        $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
9642
      else
 
9643
        ld_shlibs=no
 
9644
      fi
 
9645
      ;;
 
9646
 
 
9647
    netbsd*)
 
9648
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9649
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9650
        wlarc=
 
9651
      else
 
9652
        archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
9653
        archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9654
      fi
 
9655
      ;;
 
9656
 
 
9657
    solaris* | sysv5*)
 
9658
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
9659
        ld_shlibs=no
 
9660
        cat <<EOF 1>&2
 
9661
 
 
9662
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9663
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9664
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9665
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9666
*** your PATH or compiler configuration so that the native linker is
 
9667
*** used, and then restart.
 
9668
 
 
9669
EOF
 
9670
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9671
        archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
9672
        archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9673
      else
 
9674
        ld_shlibs=no
 
9675
      fi
 
9676
      ;;
 
9677
 
 
9678
    sunos4*)
 
9679
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9680
      wlarc=
 
9681
      hardcode_direct=yes
 
9682
      hardcode_shlibpath_var=no
 
9683
      ;;
 
9684
 
 
9685
    *)
 
9686
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9687
        archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
9688
        archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9689
      else
 
9690
        ld_shlibs=no
 
9691
      fi
 
9692
      ;;
 
9693
    esac
 
9694
 
 
9695
    if test "$ld_shlibs" = yes; then
 
9696
      runpath_var=LD_RUN_PATH
 
9697
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
9698
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
9699
      # ancient GNU ld didn't support --whole-archive et. al.
 
9700
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
9701
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9702
      else
 
9703
        whole_archive_flag_spec=
 
9704
      fi
 
9705
    fi
 
9706
  else
 
9707
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9708
    case $host_os in
 
9709
    aix3*)
 
9710
      allow_undefined_flag=unsupported
 
9711
      always_export_symbols=yes
 
9712
      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'
 
9713
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9714
      # are no directories specified by -L.
 
9715
      hardcode_minus_L=yes
 
9716
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
9717
        # Neither direct hardcoding nor static linking is supported with a
 
9718
        # broken collect2.
 
9719
        hardcode_direct=unsupported
 
9720
      fi
 
9721
      ;;
 
9722
 
 
9723
    aix4* | aix5*)
 
9724
      if test "$host_cpu" = ia64; then
 
9725
        # On IA64, the linker does run time linking by default, so we don't
 
9726
        # have to do anything special.
 
9727
        aix_use_runtimelinking=no
 
9728
        exp_sym_flag='-Bexport'
 
9729
        no_entry_flag=""
 
9730
      else
 
9731
        # If we're using GNU nm, then we don't want the "-C" option.
 
9732
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9733
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
9734
          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'
 
9735
        else
 
9736
          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'
 
9737
        fi
 
9738
 
 
9739
        # KDE requires run time linking.  Make it the default.
 
9740
        aix_use_runtimelinking=yes
 
9741
        exp_sym_flag='-bexport'
 
9742
        no_entry_flag='-bnoentry'
 
9743
      fi
 
9744
 
 
9745
      # When large executables or shared objects are built, AIX ld can
 
9746
      # have problems creating the table of contents.  If linking a library
 
9747
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9748
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9749
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9750
 
 
9751
      archive_cmds=''
 
9752
      hardcode_direct=yes
 
9753
      hardcode_libdir_separator=':'
 
9754
      link_all_deplibs=yes
 
9755
 
 
9756
      if test "$GCC" = yes; then
 
9757
        case $host_os in aix4.012|aix4.012.*)
 
9758
        # We only want to do this on AIX 4.2 and lower, the check
 
9759
        # below for broken collect2 doesn't work under 4.3+
 
9760
          collect2name=`${CC} -print-prog-name=collect2`
 
9761
          if test -f "$collect2name" && \
 
9762
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9763
          then
 
9764
          # We have reworked collect2
 
9765
          hardcode_direct=yes
 
9766
          else
 
9767
          # We have old collect2
 
9768
          hardcode_direct=unsupported
 
9769
          # It fails to find uninstalled libraries when the uninstalled
 
9770
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9771
          # to unsupported forces relinking
 
9772
          hardcode_minus_L=yes
 
9773
          hardcode_libdir_flag_spec='-L$libdir'
 
9774
          hardcode_libdir_separator=
 
9775
          fi
 
9776
        esac
 
9777
        shared_flag='-shared'
 
9778
      else
 
9779
        # not using gcc
 
9780
        if test "$host_cpu" = ia64; then
 
9781
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9782
        # chokes on -Wl,-G. The following line is correct:
 
9783
          shared_flag='-G'
 
9784
        else
 
9785
        if test "$aix_use_runtimelinking" = yes; then
 
9786
            shared_flag='-qmkshrobj ${wl}-G'
 
9787
          else
 
9788
            shared_flag='-qmkshrobj'
 
9789
        fi
 
9790
        fi
 
9791
      fi
 
9792
 
 
9793
      # Let the compiler handle the export list.
 
9794
      always_export_symbols=no
 
9795
      if test "$aix_use_runtimelinking" = yes; then
 
9796
        # Warning - without using the other runtime loading flags (-brtl),
 
9797
        # -berok will link without error, but may produce a broken library.
 
9798
        allow_undefined_flag='-berok'
 
9799
       # Determine the default libpath from the value encoded in an empty executable.
 
9800
        cat >conftest.$ac_ext <<_ACEOF
 
9801
/* confdefs.h.  */
 
9802
_ACEOF
 
9803
cat confdefs.h >>conftest.$ac_ext
 
9804
cat >>conftest.$ac_ext <<_ACEOF
 
9805
/* end confdefs.h.  */
 
9806
 
 
9807
int
 
9808
main ()
 
9809
{
 
9810
 
 
9811
  ;
 
9812
  return 0;
 
9813
}
 
9814
_ACEOF
 
9815
rm -f conftest.$ac_objext conftest$ac_exeext
 
9816
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9817
  (eval $ac_link) 2>conftest.er1
 
9818
  ac_status=$?
 
9819
  grep -v '^ *+' conftest.er1 >conftest.err
 
9820
  rm -f conftest.er1
 
9821
  cat conftest.err >&5
 
9822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9823
  (exit $ac_status); } &&
 
9824
         { ac_try='test -z "$ac_c_werror_flag"
 
9825
                         || test ! -s conftest.err'
 
9826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9827
  (eval $ac_try) 2>&5
 
9828
  ac_status=$?
 
9829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9830
  (exit $ac_status); }; } &&
 
9831
         { ac_try='test -s conftest$ac_exeext'
 
9832
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9833
  (eval $ac_try) 2>&5
 
9834
  ac_status=$?
 
9835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9836
  (exit $ac_status); }; }; then
 
9837
 
 
9838
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9839
}'`
 
9840
# Check for a 64-bit object if we didn't find anything.
 
9841
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; }
 
9842
}'`; fi
 
9843
else
 
9844
  echo "$as_me: failed program was:" >&5
 
9845
sed 's/^/| /' conftest.$ac_ext >&5
 
9846
 
 
9847
fi
 
9848
rm -f conftest.err conftest.$ac_objext \
 
9849
      conftest$ac_exeext conftest.$ac_ext
 
9850
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9851
 
 
9852
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9853
        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"
 
9854
        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"
 
9855
       else
 
9856
        if test "$host_cpu" = ia64; then
 
9857
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9858
          allow_undefined_flag="-z nodefs"
 
9859
          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"
 
9860
        else
 
9861
         # Determine the default libpath from the value encoded in an empty executable.
 
9862
         cat >conftest.$ac_ext <<_ACEOF
 
9863
/* confdefs.h.  */
 
9864
_ACEOF
 
9865
cat confdefs.h >>conftest.$ac_ext
 
9866
cat >>conftest.$ac_ext <<_ACEOF
 
9867
/* end confdefs.h.  */
 
9868
 
 
9869
int
 
9870
main ()
 
9871
{
 
9872
 
 
9873
  ;
 
9874
  return 0;
 
9875
}
 
9876
_ACEOF
 
9877
rm -f conftest.$ac_objext conftest$ac_exeext
 
9878
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9879
  (eval $ac_link) 2>conftest.er1
 
9880
  ac_status=$?
 
9881
  grep -v '^ *+' conftest.er1 >conftest.err
 
9882
  rm -f conftest.er1
 
9883
  cat conftest.err >&5
 
9884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9885
  (exit $ac_status); } &&
 
9886
         { ac_try='test -z "$ac_c_werror_flag"
 
9887
                         || test ! -s conftest.err'
 
9888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9889
  (eval $ac_try) 2>&5
 
9890
  ac_status=$?
 
9891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9892
  (exit $ac_status); }; } &&
 
9893
         { ac_try='test -s conftest$ac_exeext'
 
9894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9895
  (eval $ac_try) 2>&5
 
9896
  ac_status=$?
 
9897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9898
  (exit $ac_status); }; }; then
 
9899
 
 
9900
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9901
}'`
 
9902
# Check for a 64-bit object if we didn't find anything.
 
9903
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; }
 
9904
}'`; fi
 
9905
else
 
9906
  echo "$as_me: failed program was:" >&5
 
9907
sed 's/^/| /' conftest.$ac_ext >&5
 
9908
 
 
9909
fi
 
9910
rm -f conftest.err conftest.$ac_objext \
 
9911
      conftest$ac_exeext conftest.$ac_ext
 
9912
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9913
 
 
9914
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9915
          # Warning - without using the other run time loading flags,
 
9916
          # -berok will link without error, but may produce a broken library.
 
9917
          no_undefined_flag=' ${wl}-bernotok'
 
9918
          allow_undefined_flag=' ${wl}-berok'
 
9919
          # -bexpall does not export symbols beginning with underscore (_)
 
9920
          always_export_symbols=yes
 
9921
          # Exported symbols can be pulled into shared objects from archives
 
9922
          whole_archive_flag_spec=' '
 
9923
          archive_cmds_need_lc=yes
 
9924
          # This is similar to how AIX traditionally builds it's shared libraries.
 
9925
          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'
 
9926
        fi
 
9927
      fi
 
9928
      ;;
 
9929
 
 
9930
    amigaos*)
 
9931
      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)'
 
9932
      hardcode_libdir_flag_spec='-L$libdir'
 
9933
      hardcode_minus_L=yes
 
9934
      # see comment about different semantics on the GNU ld section
 
9935
      ld_shlibs=no
 
9936
      ;;
 
9937
 
 
9938
    bsdi4*)
 
9939
      export_dynamic_flag_spec=-rdynamic
 
9940
      ;;
 
9941
 
 
9942
    cygwin* | mingw* | pw32*)
 
9943
      # When not using gcc, we currently assume that we are using
 
9944
      # Microsoft Visual C++.
 
9945
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9946
      # no search path for DLLs.
 
9947
      hardcode_libdir_flag_spec=' '
 
9948
      allow_undefined_flag=no
 
9949
      # Tell ltmain to make .lib files, not .a files.
 
9950
      libext=lib
 
9951
      # Tell ltmain to make .dll files, not .so files.
 
9952
      shrext=".dll"
 
9953
      # FIXME: Setting linknames here is a bad hack.
 
9954
      archive_cmds='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9955
      # The linker will automatically build a .lib file if we build a DLL.
 
9956
      old_archive_From_new_cmds='true'
 
9957
      # FIXME: Should let the user specify the lib program.
 
9958
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
9959
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
9960
      enable_shared_with_static_runtimes=yes
 
9961
      ;;
 
9962
 
 
9963
    darwin* | rhapsody*)
 
9964
    if test "$GXX" = yes ; then
 
9965
      archive_cmds_need_lc=no
 
9966
      case "$host_os" in
 
9967
      rhapsody* | darwin1.[012])
 
9968
        allow_undefined_flag='-Wl,-undefined -Wl,suppress'
 
9969
        ;;
 
9970
      *) # Darwin 1.3 on
 
9971
        if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9972
          allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
9973
        else
 
9974
          case ${MACOSX_DEPLOYMENT_TARGET} in
 
9975
            10.012)
 
9976
              allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
9977
              ;;
 
9978
            10.*)
 
9979
              allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
 
9980
              ;;
 
9981
          esac
 
9982
        fi
 
9983
        ;;
 
9984
      esac
 
9985
        lt_int_apple_cc_single_mod=no
 
9986
        output_verbose_link_cmd='echo'
 
9987
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
9988
          lt_int_apple_cc_single_mod=yes
 
9989
        fi
 
9990
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9991
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
9992
        else
 
9993
        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'
 
9994
      fi
 
9995
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
9996
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9997
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9998
          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}'
 
9999
        else
 
10000
          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}'
 
10001
        fi
 
10002
          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}'
 
10003
      hardcode_direct=no
 
10004
      hardcode_automatic=yes
 
10005
      hardcode_shlibpath_var=unsupported
 
10006
      whole_archive_flag_spec='-all_load $convenience'
 
10007
      link_all_deplibs=yes
 
10008
    else
 
10009
      ld_shlibs=no
 
10010
    fi
 
10011
      ;;
 
10012
 
 
10013
    dgux*)
 
10014
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10015
      hardcode_libdir_flag_spec='-L$libdir'
 
10016
      hardcode_shlibpath_var=no
 
10017
      ;;
 
10018
 
 
10019
    freebsd1*)
 
10020
      ld_shlibs=no
 
10021
      ;;
 
10022
 
 
10023
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
10024
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
10025
    # does not break anything, and helps significantly (at the cost of a little
 
10026
    # extra space).
 
10027
    freebsd2.2*)
 
10028
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
10029
      hardcode_libdir_flag_spec='-R$libdir'
 
10030
      hardcode_direct=yes
 
10031
      hardcode_shlibpath_var=no
 
10032
      ;;
 
10033
 
 
10034
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
10035
    freebsd2*)
 
10036
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10037
      hardcode_direct=yes
 
10038
      hardcode_minus_L=yes
 
10039
      hardcode_shlibpath_var=no
 
10040
      ;;
 
10041
 
 
10042
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
10043
    freebsd*)
 
10044
      archive_cmds='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
 
10045
      hardcode_libdir_flag_spec='-R$libdir'
 
10046
      hardcode_direct=yes
 
10047
      hardcode_shlibpath_var=no
 
10048
      ;;
 
10049
 
 
10050
    hpux9*)
 
10051
      if test "$GCC" = yes; then
 
10052
        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'
 
10053
      else
 
10054
        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'
 
10055
      fi
 
10056
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10057
      hardcode_libdir_separator=:
 
10058
      hardcode_direct=yes
 
10059
 
 
10060
      # hardcode_minus_L: Not really in the search PATH,
 
10061
      # but as the default location of the library.
 
10062
      hardcode_minus_L=yes
 
10063
      export_dynamic_flag_spec='${wl}-E'
 
10064
      ;;
 
10065
 
 
10066
    hpux10* | hpux11*)
 
10067
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
10068
        case "$host_cpu" in
 
10069
        hppa*64*|ia64*)
 
10070
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
10071
          ;;
 
10072
        *)
 
10073
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
 
10074
          ;;
 
10075
        esac
 
10076
      else
 
10077
        case "$host_cpu" in
 
10078
        hppa*64*|ia64*)
 
10079
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10080
          ;;
 
10081
        *)
 
10082
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10083
          ;;
 
10084
        esac
 
10085
      fi
 
10086
      if test "$with_gnu_ld" = no; then
 
10087
        case "$host_cpu" in
 
10088
        hppa*64*)
 
10089
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10090
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
10091
          hardcode_libdir_separator=:
 
10092
          hardcode_direct=no
 
10093
          hardcode_shlibpath_var=no
 
10094
          ;;
 
10095
        ia64*)
 
10096
          hardcode_libdir_flag_spec='-L$libdir'
 
10097
          hardcode_direct=no
 
10098
          hardcode_shlibpath_var=no
 
10099
 
 
10100
          # hardcode_minus_L: Not really in the search PATH,
 
10101
          # but as the default location of the library.
 
10102
          hardcode_minus_L=yes
 
10103
          ;;
 
10104
        *)
 
10105
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10106
          hardcode_libdir_separator=:
 
10107
          hardcode_direct=yes
 
10108
          export_dynamic_flag_spec='${wl}-E'
 
10109
 
 
10110
          # hardcode_minus_L: Not really in the search PATH,
 
10111
          # but as the default location of the library.
 
10112
          hardcode_minus_L=yes
 
10113
          ;;
 
10114
        esac
 
10115
      fi
 
10116
      ;;
 
10117
 
 
10118
    irix5* | irix6* | nonstopux*)
 
10119
      if test "$GCC" = yes; then
 
10120
        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'
 
10121
      else
 
10122
        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'
 
10123
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
10124
      fi
 
10125
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10126
      hardcode_libdir_separator=:
 
10127
      link_all_deplibs=yes
 
10128
      ;;
 
10129
 
 
10130
    netbsd*)
 
10131
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10132
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
10133
      else
 
10134
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
10135
      fi
 
10136
      hardcode_libdir_flag_spec='-R$libdir'
 
10137
      hardcode_direct=yes
 
10138
      hardcode_shlibpath_var=no
 
10139
      ;;
 
10140
 
 
10141
    newsos6)
 
10142
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10143
      hardcode_direct=yes
 
10144
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10145
      hardcode_libdir_separator=:
 
10146
      hardcode_shlibpath_var=no
 
10147
      ;;
 
10148
 
 
10149
    openbsd*)
 
10150
      hardcode_direct=yes
 
10151
      hardcode_shlibpath_var=no
 
10152
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10153
        archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
10154
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10155
        export_dynamic_flag_spec='${wl}-E'
 
10156
      else
 
10157
       case $host_os in
 
10158
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
10159
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10160
           hardcode_libdir_flag_spec='-R$libdir'
 
10161
           ;;
 
10162
         *)
 
10163
           archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
10164
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10165
           ;;
 
10166
       esac
 
10167
      fi
 
10168
      ;;
 
10169
 
 
10170
    os2*)
 
10171
      hardcode_libdir_flag_spec='-L$libdir'
 
10172
      hardcode_minus_L=yes
 
10173
      allow_undefined_flag=unsupported
 
10174
      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'
 
10175
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
10176
      ;;
 
10177
 
 
10178
    osf3*)
 
10179
      if test "$GCC" = yes; then
 
10180
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10181
        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'
 
10182
      else
 
10183
        allow_undefined_flag=' -expect_unresolved \*'
 
10184
        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'
 
10185
      fi
 
10186
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10187
      hardcode_libdir_separator=:
 
10188
      ;;
 
10189
 
 
10190
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
10191
      if test "$GCC" = yes; then
 
10192
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10193
        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'
 
10194
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10195
      else
 
10196
        allow_undefined_flag=' -expect_unresolved \*'
 
10197
        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'
 
10198
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
10199
        $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'
 
10200
 
 
10201
        # Both c and cxx compiler support -rpath directly
 
10202
        hardcode_libdir_flag_spec='-rpath $libdir'
 
10203
      fi
 
10204
      hardcode_libdir_separator=:
 
10205
      ;;
 
10206
 
 
10207
    sco3.2v5*)
 
10208
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10209
      hardcode_shlibpath_var=no
 
10210
      export_dynamic_flag_spec='${wl}-Bexport'
 
10211
      runpath_var=LD_RUN_PATH
 
10212
      hardcode_runpath_var=yes
 
10213
      ;;
 
10214
 
 
10215
    solaris*)
 
10216
      no_undefined_flag=' -z text'
 
10217
      if test "$GCC" = yes; then
 
10218
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
10219
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10220
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
 
10221
      else
 
10222
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10223
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10224
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
10225
      fi
 
10226
      hardcode_libdir_flag_spec='-R$libdir'
 
10227
      hardcode_shlibpath_var=no
 
10228
      case $host_os in
 
10229
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10230
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10231
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
10232
      esac
 
10233
      link_all_deplibs=yes
 
10234
      ;;
 
10235
 
 
10236
    sunos4*)
 
10237
      if test "x$host_vendor" = xsequent; then
 
10238
        # Use $CC to link under sequent, because it throws in some extra .o
 
10239
        # files that make .init and .fini sections work.
 
10240
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
 
10241
      else
 
10242
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
10243
      fi
 
10244
      hardcode_libdir_flag_spec='-L$libdir'
 
10245
      hardcode_direct=yes
 
10246
      hardcode_minus_L=yes
 
10247
      hardcode_shlibpath_var=no
 
10248
      ;;
 
10249
 
 
10250
    sysv4)
 
10251
      case $host_vendor in
 
10252
        sni)
 
10253
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10254
          hardcode_direct=yes # is this really true???
 
10255
        ;;
 
10256
        siemens)
 
10257
          ## LD is ld it makes a PLAMLIB
 
10258
          ## CC just makes a GrossModule.
 
10259
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10260
          reload_cmds='$CC -r -o $output$reload_objs'
 
10261
          hardcode_direct=no
 
10262
        ;;
 
10263
        motorola)
 
10264
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10265
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
10266
        ;;
 
10267
      esac
 
10268
      runpath_var='LD_RUN_PATH'
 
10269
      hardcode_shlibpath_var=no
 
10270
      ;;
 
10271
 
 
10272
    sysv4.3*)
 
10273
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10274
      hardcode_shlibpath_var=no
 
10275
      export_dynamic_flag_spec='-Bexport'
 
10276
      ;;
 
10277
 
 
10278
    sysv4*MP*)
 
10279
      if test -d /usr/nec; then
 
10280
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10281
        hardcode_shlibpath_var=no
 
10282
        runpath_var=LD_RUN_PATH
 
10283
        hardcode_runpath_var=yes
 
10284
        ld_shlibs=yes
 
10285
      fi
 
10286
      ;;
 
10287
 
 
10288
    sysv4.2uw2*)
 
10289
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10290
      hardcode_direct=yes
 
10291
      hardcode_minus_L=no
 
10292
      hardcode_shlibpath_var=no
 
10293
      hardcode_runpath_var=yes
 
10294
      runpath_var=LD_RUN_PATH
 
10295
      ;;
 
10296
 
 
10297
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
10298
      no_undefined_flag='${wl}-z ${wl}text'
 
10299
      if test "$GCC" = yes; then
 
10300
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
10301
      else
 
10302
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
10303
      fi
 
10304
      runpath_var='LD_RUN_PATH'
 
10305
      hardcode_shlibpath_var=no
 
10306
      ;;
 
10307
 
 
10308
    sysv5*)
 
10309
      no_undefined_flag=' -z text'
 
10310
      # $CC -shared without GNU ld will not create a library from C++
 
10311
      # object files and a static libstdc++, better avoid it by now
 
10312
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10313
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10314
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
10315
      hardcode_libdir_flag_spec=
 
10316
      hardcode_shlibpath_var=no
 
10317
      runpath_var='LD_RUN_PATH'
 
10318
      ;;
 
10319
 
 
10320
    uts4*)
 
10321
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10322
      hardcode_libdir_flag_spec='-L$libdir'
 
10323
      hardcode_shlibpath_var=no
 
10324
      ;;
 
10325
 
 
10326
    *)
 
10327
      ld_shlibs=no
 
10328
      ;;
 
10329
    esac
 
10330
  fi
 
10331
 
 
10332
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
10333
echo "${ECHO_T}$ld_shlibs" >&6
 
10334
test "$ld_shlibs" = no && can_build_shared=no
 
10335
 
 
10336
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10337
if test "$GCC" = yes; then
 
10338
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10339
fi
 
10340
 
 
10341
#
 
10342
# Do we need to explicitly link libc?
 
10343
#
 
10344
case "x$archive_cmds_need_lc" in
 
10345
x|xyes)
 
10346
  # Assume -lc should be added
 
10347
  archive_cmds_need_lc=yes
 
10348
 
 
10349
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10350
    case $archive_cmds in
 
10351
    *'~'*)
 
10352
      # FIXME: we may have to deal with multi-command sequences.
 
10353
      ;;
 
10354
    '$CC '*)
 
10355
      # Test whether the compiler implicitly links with -lc since on some
 
10356
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10357
      # to ld, don't add -lc before -lgcc.
 
10358
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
10359
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
10360
      $rm conftest*
 
10361
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10362
 
 
10363
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10364
  (eval $ac_compile) 2>&5
 
10365
  ac_status=$?
 
10366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10367
  (exit $ac_status); } 2>conftest.err; then
 
10368
        soname=conftest
 
10369
        lib=conftest
 
10370
        libobjs=conftest.$ac_objext
 
10371
        deplibs=
 
10372
        wl=$lt_prog_compiler_wl
 
10373
        compiler_flags=-v
 
10374
        linker_flags=-v
 
10375
        verstring=
 
10376
        output_objdir=.
 
10377
        libname=conftest
 
10378
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
10379
        allow_undefined_flag=
 
10380
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
10381
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10382
  ac_status=$?
 
10383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10384
  (exit $ac_status); }
 
10385
        then
 
10386
          archive_cmds_need_lc=no
 
10387
        else
 
10388
          archive_cmds_need_lc=yes
 
10389
        fi
 
10390
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
10391
      else
 
10392
        cat conftest.err 1>&5
 
10393
      fi
 
10394
      $rm conftest*
 
10395
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
10396
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
10397
      ;;
 
10398
    esac
 
10399
  fi
 
10400
  ;;
 
10401
esac
 
10402
 
 
10403
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
10404
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
10405
library_names_spec=
 
10406
libname_spec='lib$name'
 
10407
soname_spec=
 
10408
shrext=".so"
 
10409
postinstall_cmds=
 
10410
postuninstall_cmds=
 
10411
finish_cmds=
 
10412
finish_eval=
 
10413
shlibpath_var=
 
10414
shlibpath_overrides_runpath=unknown
 
10415
version_type=none
 
10416
dynamic_linker="$host_os ld.so"
 
10417
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10418
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10419
need_lib_prefix=unknown
 
10420
hardcode_into_libs=no
 
10421
 
 
10422
# when you set need_version to no, make sure it does not cause -set_version
 
10423
# flags to be left without arguments
 
10424
need_version=unknown
 
10425
 
 
10426
case $host_os in
 
10427
aix3*)
 
10428
  version_type=linux
 
10429
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10430
  shlibpath_var=LIBPATH
 
10431
 
 
10432
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10433
  soname_spec='${libname}${release}${shared_ext}$major'
 
10434
  ;;
 
10435
 
 
10436
aix4* | aix5*)
 
10437
  version_type=linux
 
10438
  need_lib_prefix=no
 
10439
  need_version=no
 
10440
  hardcode_into_libs=yes
 
10441
  if test "$host_cpu" = ia64; then
 
10442
    # AIX 5 supports IA64
 
10443
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10444
    shlibpath_var=LD_LIBRARY_PATH
 
10445
  else
 
10446
    # With GCC up to 2.95.x, collect2 would create an import file
 
10447
    # for dependence libraries.  The import file would start with
 
10448
    # the line `#! .'.  This would cause the generated library to
 
10449
    # depend on `.', always an invalid library.  This was fixed in
 
10450
    # development snapshots of GCC prior to 3.0.
 
10451
    case $host_os in
 
10452
      aix4 | aix4.[01] | aix4.[01].*)
 
10453
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10454
           echo ' yes '
 
10455
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
10456
        :
 
10457
      else
 
10458
        can_build_shared=no
 
10459
      fi
 
10460
      ;;
 
10461
    esac
 
10462
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10463
    # soname into executable. Probably we can add versioning support to
 
10464
    # collect2, so additional links can be useful in future.
 
10465
    if test "$aix_use_runtimelinking" = yes; then
 
10466
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10467
      # instead of lib<name>.a to let people know that these are not
 
10468
      # typical AIX shared libraries.
 
10469
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10470
    else
 
10471
      # We preserve .a as extension for shared libraries through AIX4.2
 
10472
      # and later when we are not doing run time linking.
 
10473
      library_names_spec='${libname}${release}.a $libname.a'
 
10474
      soname_spec='${libname}${release}${shared_ext}$major'
 
10475
    fi
 
10476
    shlibpath_var=LIBPATH
 
10477
  fi
 
10478
  ;;
 
10479
 
 
10480
amigaos*)
 
10481
  library_names_spec='$libname.ixlibrary $libname.a'
 
10482
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10483
  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'
 
10484
  ;;
 
10485
 
 
10486
beos*)
 
10487
  library_names_spec='${libname}${shared_ext}'
 
10488
  dynamic_linker="$host_os ld.so"
 
10489
  shlibpath_var=LIBRARY_PATH
 
10490
  ;;
 
10491
 
 
10492
bsdi4*)
 
10493
  version_type=linux
 
10494
  need_version=no
 
10495
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10496
  soname_spec='${libname}${release}${shared_ext}$major'
 
10497
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10498
  shlibpath_var=LD_LIBRARY_PATH
 
10499
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10500
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10501
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10502
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10503
  # libtool to hard-code these into programs
 
10504
  ;;
 
10505
 
 
10506
cygwin* | mingw* | pw32*)
 
10507
  version_type=windows
 
10508
  shrext=".dll"
 
10509
  need_version=no
 
10510
  need_lib_prefix=no
 
10511
 
 
10512
  case $GCC,$host_os in
 
10513
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
10514
    library_names_spec='$libname.dll.a'
 
10515
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10516
    postinstall_cmds='base_file=`basename \${file}`~
 
10517
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
10518
      dldir=$destdir/`dirname \$dlpath`~
 
10519
      test -d \$dldir || mkdir -p \$dldir~
 
10520
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10521
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10522
      dlpath=$dir/\$dldll~
 
10523
       $rm \$dlpath'
 
10524
    shlibpath_overrides_runpath=yes
 
10525
 
 
10526
    case $host_os in
 
10527
    cygwin*)
 
10528
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10529
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10530
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
10531
      ;;
 
10532
    mingw*)
 
10533
      # MinGW DLLs use traditional 'lib' prefix
 
10534
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10535
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10536
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
10537
        # It is most probably a Windows format PATH printed by
 
10538
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
10539
        # path with ; separators, and with drive letters. We can handle the
 
10540
        # drive letters (cygwin fileutils understands them), so leave them,
 
10541
        # especially as we might pass files found there to a mingw objdump,
 
10542
        # which wouldn't understand a cygwinified path. Ahh.
 
10543
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10544
      else
 
10545
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10546
      fi
 
10547
      ;;
 
10548
    pw32*)
 
10549
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10550
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
10551
      ;;
 
10552
    esac
 
10553
    ;;
 
10554
 
 
10555
  *)
 
10556
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10557
    ;;
 
10558
  esac
 
10559
  dynamic_linker='Win32 ld.exe'
 
10560
  # FIXME: first we should search . and the directory the executable is in
 
10561
  shlibpath_var=PATH
 
10562
  ;;
 
10563
 
 
10564
darwin* | rhapsody*)
 
10565
  dynamic_linker="$host_os dyld"
 
10566
  version_type=darwin
 
10567
  need_lib_prefix=no
 
10568
  need_version=no
 
10569
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10570
  soname_spec='${libname}${release}${major}$shared_ext'
 
10571
  shlibpath_overrides_runpath=yes
 
10572
  shlibpath_var=DYLD_LIBRARY_PATH
 
10573
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
10574
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
10575
  if test "$GCC" = yes; then
 
10576
    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"`
 
10577
  else
 
10578
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
10579
  fi
 
10580
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10581
  ;;
 
10582
 
 
10583
dgux*)
 
10584
  version_type=linux
 
10585
  need_lib_prefix=no
 
10586
  need_version=no
 
10587
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10588
  soname_spec='${libname}${release}${shared_ext}$major'
 
10589
  shlibpath_var=LD_LIBRARY_PATH
 
10590
  ;;
 
10591
 
 
10592
freebsd1*)
 
10593
  dynamic_linker=no
 
10594
  ;;
 
10595
 
 
10596
freebsd*-gnu*)
 
10597
  version_type=linux
 
10598
  need_lib_prefix=no
 
10599
  need_version=no
 
10600
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10601
  soname_spec='${libname}${release}${shared_ext}$major'
 
10602
  shlibpath_var=LD_LIBRARY_PATH
 
10603
  shlibpath_overrides_runpath=no
 
10604
  hardcode_into_libs=yes
 
10605
  dynamic_linker='GNU ld.so'
 
10606
  ;;
 
10607
 
 
10608
freebsd*)
 
10609
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
10610
  version_type=freebsd-$objformat
 
10611
  case $version_type in
 
10612
    freebsd-elf*)
 
10613
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10614
      need_version=no
 
10615
      need_lib_prefix=no
 
10616
      ;;
 
10617
    freebsd-*)
 
10618
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10619
      need_version=yes
 
10620
      ;;
 
10621
  esac
 
10622
  shlibpath_var=LD_LIBRARY_PATH
 
10623
  case $host_os in
 
10624
  freebsd2*)
 
10625
    shlibpath_overrides_runpath=yes
 
10626
    ;;
 
10627
  freebsd3.01* | freebsdelf3.01*)
 
10628
    shlibpath_overrides_runpath=yes
 
10629
    hardcode_into_libs=yes
 
10630
    ;;
 
10631
  *) # from 3.2 on
 
10632
    shlibpath_overrides_runpath=no
 
10633
    hardcode_into_libs=yes
 
10634
    ;;
 
10635
  esac
 
10636
  ;;
 
10637
 
 
10638
gnu*)
 
10639
  version_type=linux
 
10640
  need_lib_prefix=no
 
10641
  need_version=no
 
10642
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10643
  soname_spec='${libname}${release}${shared_ext}$major'
 
10644
  shlibpath_var=LD_LIBRARY_PATH
 
10645
  hardcode_into_libs=yes
 
10646
  ;;
 
10647
 
 
10648
hpux9* | hpux10* | hpux11*)
 
10649
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10650
  # link against other versions.
 
10651
  version_type=sunos
 
10652
  need_lib_prefix=no
 
10653
  need_version=no
 
10654
  case "$host_cpu" in
 
10655
  ia64*)
 
10656
    shrext='.so'
 
10657
    hardcode_into_libs=yes
 
10658
    dynamic_linker="$host_os dld.so"
 
10659
    shlibpath_var=LD_LIBRARY_PATH
 
10660
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10661
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10662
    soname_spec='${libname}${release}${shared_ext}$major'
 
10663
    if test "X$HPUX_IA64_MODE" = X32; then
 
10664
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10665
    else
 
10666
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10667
    fi
 
10668
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10669
    ;;
 
10670
   hppa*64*)
 
10671
     shrext='.sl'
 
10672
     hardcode_into_libs=yes
 
10673
     dynamic_linker="$host_os dld.sl"
 
10674
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10675
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10676
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10677
     soname_spec='${libname}${release}${shared_ext}$major'
 
10678
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10679
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10680
     ;;
 
10681
   *)
 
10682
    shrext='.sl'
 
10683
    dynamic_linker="$host_os dld.sl"
 
10684
    shlibpath_var=SHLIB_PATH
 
10685
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10686
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10687
    soname_spec='${libname}${release}${shared_ext}$major'
 
10688
    ;;
 
10689
  esac
 
10690
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
10691
  postinstall_cmds='chmod 555 $lib'
 
10692
  ;;
 
10693
 
 
10694
irix5* | irix6* | nonstopux*)
 
10695
  case $host_os in
 
10696
    nonstopux*) version_type=nonstopux ;;
 
10697
    *)
 
10698
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10699
                version_type=linux
 
10700
        else
 
10701
                version_type=irix
 
10702
        fi ;;
 
10703
  esac
 
10704
  need_lib_prefix=no
 
10705
  need_version=no
 
10706
  soname_spec='${libname}${release}${shared_ext}$major'
 
10707
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10708
  case $host_os in
 
10709
  irix5* | nonstopux*)
 
10710
    libsuff= shlibsuff=
 
10711
    ;;
 
10712
  *)
 
10713
    case $LD in # libtool.m4 will add one of these switches to LD
 
10714
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10715
      libsuff= shlibsuff= libmagic=32-bit;;
 
10716
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10717
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10718
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10719
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10720
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10721
    esac
 
10722
    ;;
 
10723
  esac
 
10724
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10725
  shlibpath_overrides_runpath=no
 
10726
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10727
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10728
  hardcode_into_libs=yes
 
10729
  ;;
 
10730
 
 
10731
# No shared lib support for Linux oldld, aout, or coff.
 
10732
linux*oldld* | linux*aout* | linux*coff*)
 
10733
  dynamic_linker=no
 
10734
  ;;
 
10735
 
 
10736
# This must be Linux ELF.
 
10737
linux*)
 
10738
  version_type=linux
 
10739
  need_lib_prefix=no
 
10740
  need_version=no
 
10741
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10742
  soname_spec='${libname}${release}${shared_ext}$major'
 
10743
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10744
  libsuff=
 
10745
  if test "x$LINUX_64_MODE" = x64; then
 
10746
    # Some platforms are per default 64-bit, so there's no /lib64
 
10747
    if test -d /lib64; then
 
10748
      libsuff=64
 
10749
    fi
 
10750
  fi
 
10751
  shlibpath_var=LD_LIBRARY_PATH
 
10752
  shlibpath_overrides_runpath=no
 
10753
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
10754
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
10755
  # This implies no fast_install, which is unacceptable.
 
10756
  # Some rework will be needed to allow for fast_install
 
10757
  # before this can be enabled.
 
10758
  hardcode_into_libs=yes
 
10759
 
 
10760
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10761
  # powerpc, because MkLinux only supported shared libraries with the
 
10762
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10763
  # most powerpc-linux boxes support dynamic linking these days and
 
10764
  # people can always --disable-shared, the test was removed, and we
 
10765
  # assume the GNU/Linux dynamic linker is in use.
 
10766
  dynamic_linker='GNU/Linux ld.so'
 
10767
  ;;
 
10768
 
 
10769
netbsd*)
 
10770
  version_type=sunos
 
10771
  need_lib_prefix=no
 
10772
  need_version=no
 
10773
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10774
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10775
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10776
    dynamic_linker='NetBSD (a.out) ld.so'
 
10777
  else
 
10778
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
10779
    soname_spec='${libname}${release}${shared_ext}$major'
 
10780
    dynamic_linker='NetBSD ld.elf_so'
 
10781
  fi
 
10782
  shlibpath_var=LD_LIBRARY_PATH
 
10783
  shlibpath_overrides_runpath=yes
 
10784
  hardcode_into_libs=yes
 
10785
  ;;
 
10786
 
 
10787
newsos6)
 
10788
  version_type=linux
 
10789
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10790
  shlibpath_var=LD_LIBRARY_PATH
 
10791
  shlibpath_overrides_runpath=yes
 
10792
  ;;
 
10793
 
 
10794
nto-qnx*)
 
10795
  version_type=linux
 
10796
  need_lib_prefix=no
 
10797
  need_version=no
 
10798
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10799
  soname_spec='${libname}${release}${shared_ext}$major'
 
10800
  shlibpath_var=LD_LIBRARY_PATH
 
10801
  shlibpath_overrides_runpath=yes
 
10802
  ;;
 
10803
 
 
10804
openbsd*)
 
10805
  version_type=sunos
 
10806
  need_lib_prefix=no
 
10807
  need_version=no
 
10808
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10809
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10810
  shlibpath_var=LD_LIBRARY_PATH
 
10811
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10812
    case $host_os in
 
10813
      openbsd2.[89] | openbsd2.[89].*)
 
10814
        shlibpath_overrides_runpath=no
 
10815
        ;;
 
10816
      *)
 
10817
        shlibpath_overrides_runpath=yes
 
10818
        ;;
 
10819
      esac
 
10820
  else
 
10821
    shlibpath_overrides_runpath=yes
 
10822
  fi
 
10823
  ;;
 
10824
 
 
10825
os2*)
 
10826
  libname_spec='$name'
 
10827
  shrext=".dll"
 
10828
  need_lib_prefix=no
 
10829
  library_names_spec='$libname${shared_ext} $libname.a'
 
10830
  dynamic_linker='OS/2 ld.exe'
 
10831
  shlibpath_var=LIBPATH
 
10832
  ;;
 
10833
 
 
10834
osf3* | osf4* | osf5*)
 
10835
  version_type=osf
 
10836
  need_lib_prefix=no
 
10837
  need_version=no
 
10838
  soname_spec='${libname}${release}${shared_ext}$major'
 
10839
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10840
  shlibpath_var=LD_LIBRARY_PATH
 
10841
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10842
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10843
  ;;
 
10844
 
 
10845
sco3.2v5*)
 
10846
  version_type=osf
 
10847
  soname_spec='${libname}${release}${shared_ext}$major'
 
10848
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10849
  shlibpath_var=LD_LIBRARY_PATH
 
10850
  ;;
 
10851
 
 
10852
solaris*)
 
10853
  version_type=linux
 
10854
  need_lib_prefix=no
 
10855
  need_version=no
 
10856
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10857
  soname_spec='${libname}${release}${shared_ext}$major'
 
10858
  shlibpath_var=LD_LIBRARY_PATH
 
10859
  shlibpath_overrides_runpath=yes
 
10860
  hardcode_into_libs=yes
 
10861
  # ldd complains unless libraries are executable
 
10862
  postinstall_cmds='chmod +x $lib'
 
10863
  ;;
 
10864
 
 
10865
sunos4*)
 
10866
  version_type=sunos
 
10867
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10868
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10869
  shlibpath_var=LD_LIBRARY_PATH
 
10870
  shlibpath_overrides_runpath=yes
 
10871
  if test "$with_gnu_ld" = yes; then
 
10872
    need_lib_prefix=no
 
10873
  fi
 
10874
  need_version=yes
 
10875
  ;;
 
10876
 
 
10877
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10878
  version_type=linux
 
10879
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10880
  soname_spec='${libname}${release}${shared_ext}$major'
 
10881
  shlibpath_var=LD_LIBRARY_PATH
 
10882
  case $host_vendor in
 
10883
    sni)
 
10884
      shlibpath_overrides_runpath=no
 
10885
      need_lib_prefix=no
 
10886
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10887
      runpath_var=LD_RUN_PATH
 
10888
      ;;
 
10889
    siemens)
 
10890
      need_lib_prefix=no
 
10891
      ;;
 
10892
    motorola)
 
10893
      need_lib_prefix=no
 
10894
      need_version=no
 
10895
      shlibpath_overrides_runpath=no
 
10896
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10897
      ;;
 
10898
  esac
 
10899
  ;;
 
10900
 
 
10901
sysv4*MP*)
 
10902
  if test -d /usr/nec ;then
 
10903
    version_type=linux
 
10904
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10905
    soname_spec='$libname${shared_ext}.$major'
 
10906
    shlibpath_var=LD_LIBRARY_PATH
 
10907
  fi
 
10908
  ;;
 
10909
 
 
10910
uts4*)
 
10911
  version_type=linux
 
10912
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10913
  soname_spec='${libname}${release}${shared_ext}$major'
 
10914
  shlibpath_var=LD_LIBRARY_PATH
 
10915
  ;;
 
10916
 
 
10917
*)
 
10918
  dynamic_linker=no
 
10919
  ;;
 
10920
esac
 
10921
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10922
echo "${ECHO_T}$dynamic_linker" >&6
 
10923
test "$dynamic_linker" = no && can_build_shared=no
 
10924
 
 
10925
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10926
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
10927
hardcode_action=
 
10928
if test -n "$hardcode_libdir_flag_spec" || \
 
10929
   test -n "$runpath_var " || \
 
10930
   test "X$hardcode_automatic"="Xyes" ; then
 
10931
 
 
10932
  # We can hardcode non-existant directories.
 
10933
  if test "$hardcode_direct" != no &&
 
10934
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10935
     # have to relink, otherwise we might link with an installed library
 
10936
     # when we should be linking with a yet-to-be-installed one
 
10937
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10938
     test "$hardcode_minus_L" != no; then
 
10939
    # Linking always hardcodes the temporary library directory.
 
10940
    hardcode_action=relink
 
10941
  else
 
10942
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10943
    hardcode_action=immediate
 
10944
  fi
 
10945
else
 
10946
  # We cannot hardcode anything, or else we can only hardcode existing
 
10947
  # directories.
 
10948
  hardcode_action=unsupported
 
10949
fi
 
10950
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
10951
echo "${ECHO_T}$hardcode_action" >&6
 
10952
 
 
10953
if test "$hardcode_action" = relink; then
 
10954
  # Fast installation is not supported
 
10955
  enable_fast_install=no
 
10956
elif test "$shlibpath_overrides_runpath" = yes ||
 
10957
     test "$enable_shared" = no; then
 
10958
  # Fast installation is not necessary
 
10959
  enable_fast_install=needless
 
10960
fi
 
10961
 
 
10962
striplib=
 
10963
old_striplib=
 
10964
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
10965
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
10966
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
10967
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10968
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10969
  echo "$as_me:$LINENO: result: yes" >&5
 
10970
echo "${ECHO_T}yes" >&6
 
10971
else
 
10972
# FIXME - insert some real tests, host_os isn't really good enough
 
10973
  case $host_os in
 
10974
   darwin*)
 
10975
       if test -n "$STRIP" ; then
 
10976
         striplib="$STRIP -x"
 
10977
         echo "$as_me:$LINENO: result: yes" >&5
 
10978
echo "${ECHO_T}yes" >&6
 
10979
       else
 
10980
  echo "$as_me:$LINENO: result: no" >&5
 
10981
echo "${ECHO_T}no" >&6
 
10982
fi
 
10983
       ;;
 
10984
   *)
 
10985
  echo "$as_me:$LINENO: result: no" >&5
 
10986
echo "${ECHO_T}no" >&6
 
10987
    ;;
 
10988
  esac
 
10989
fi
 
10990
 
 
10991
if test "x$enable_dlopen" != xyes; then
 
10992
  enable_dlopen=unknown
 
10993
  enable_dlopen_self=unknown
 
10994
  enable_dlopen_self_static=unknown
 
10995
else
 
10996
  lt_cv_dlopen=no
 
10997
  lt_cv_dlopen_libs=
 
10998
 
 
10999
  case $host_os in
 
11000
  beos*)
 
11001
    lt_cv_dlopen="load_add_on"
 
11002
    lt_cv_dlopen_libs=
 
11003
    lt_cv_dlopen_self=yes
 
11004
    ;;
 
11005
 
 
11006
  mingw* | pw32*)
 
11007
    lt_cv_dlopen="LoadLibrary"
 
11008
    lt_cv_dlopen_libs=
 
11009
   ;;
 
11010
 
 
11011
  cygwin*)
 
11012
    lt_cv_dlopen="dlopen"
 
11013
    lt_cv_dlopen_libs=
 
11014
   ;;
 
11015
 
 
11016
  darwin*)
 
11017
  # if libdl is installed we need to link against it
 
11018
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11019
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11020
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11021
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11022
else
 
11023
  ac_check_lib_save_LIBS=$LIBS
 
11024
LIBS="-ldl  $LIBS"
 
11025
cat >conftest.$ac_ext <<_ACEOF
 
11026
/* confdefs.h.  */
 
11027
_ACEOF
 
11028
cat confdefs.h >>conftest.$ac_ext
 
11029
cat >>conftest.$ac_ext <<_ACEOF
 
11030
/* end confdefs.h.  */
 
11031
 
 
11032
/* Override any gcc2 internal prototype to avoid an error.  */
 
11033
#ifdef __cplusplus
 
11034
extern "C"
 
11035
#endif
 
11036
/* We use char because int might match the return type of a gcc2
 
11037
   builtin and then its argument prototype would still apply.  */
 
11038
char dlopen ();
 
11039
int
 
11040
main ()
 
11041
{
 
11042
dlopen ();
 
11043
  ;
 
11044
  return 0;
 
11045
}
 
11046
_ACEOF
 
11047
rm -f conftest.$ac_objext conftest$ac_exeext
 
11048
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11049
  (eval $ac_link) 2>conftest.er1
 
11050
  ac_status=$?
 
11051
  grep -v '^ *+' conftest.er1 >conftest.err
 
11052
  rm -f conftest.er1
 
11053
  cat conftest.err >&5
 
11054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11055
  (exit $ac_status); } &&
 
11056
         { ac_try='test -z "$ac_c_werror_flag"
 
11057
                         || test ! -s conftest.err'
 
11058
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11059
  (eval $ac_try) 2>&5
 
11060
  ac_status=$?
 
11061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11062
  (exit $ac_status); }; } &&
 
11063
         { ac_try='test -s conftest$ac_exeext'
 
11064
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11065
  (eval $ac_try) 2>&5
 
11066
  ac_status=$?
 
11067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11068
  (exit $ac_status); }; }; then
 
11069
  ac_cv_lib_dl_dlopen=yes
 
11070
else
 
11071
  echo "$as_me: failed program was:" >&5
 
11072
sed 's/^/| /' conftest.$ac_ext >&5
 
11073
 
 
11074
ac_cv_lib_dl_dlopen=no
 
11075
fi
 
11076
rm -f conftest.err conftest.$ac_objext \
 
11077
      conftest$ac_exeext conftest.$ac_ext
 
11078
LIBS=$ac_check_lib_save_LIBS
 
11079
fi
 
11080
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11081
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11082
if test $ac_cv_lib_dl_dlopen = yes; then
 
11083
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11084
else
 
11085
 
 
11086
    lt_cv_dlopen="dyld"
 
11087
    lt_cv_dlopen_libs=
 
11088
    lt_cv_dlopen_self=yes
 
11089
 
 
11090
fi
 
11091
 
 
11092
   ;;
 
11093
 
 
11094
  *)
 
11095
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
11096
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
11097
if test "${ac_cv_func_shl_load+set}" = set; then
 
11098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11099
else
 
11100
  cat >conftest.$ac_ext <<_ACEOF
 
11101
/* confdefs.h.  */
 
11102
_ACEOF
 
11103
cat confdefs.h >>conftest.$ac_ext
 
11104
cat >>conftest.$ac_ext <<_ACEOF
 
11105
/* end confdefs.h.  */
 
11106
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
11107
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11108
#define shl_load innocuous_shl_load
 
11109
 
 
11110
/* System header to define __stub macros and hopefully few prototypes,
 
11111
    which can conflict with char shl_load (); below.
 
11112
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11113
    <limits.h> exists even on freestanding compilers.  */
 
11114
 
 
11115
#ifdef __STDC__
 
11116
# include <limits.h>
 
11117
#else
 
11118
# include <assert.h>
 
11119
#endif
 
11120
 
 
11121
#undef shl_load
 
11122
 
 
11123
/* Override any gcc2 internal prototype to avoid an error.  */
 
11124
#ifdef __cplusplus
 
11125
extern "C"
 
11126
{
 
11127
#endif
 
11128
/* We use char because int might match the return type of a gcc2
 
11129
   builtin and then its argument prototype would still apply.  */
 
11130
char shl_load ();
 
11131
/* The GNU C library defines this for functions which it implements
 
11132
    to always fail with ENOSYS.  Some functions are actually named
 
11133
    something starting with __ and the normal name is an alias.  */
 
11134
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
11135
choke me
 
11136
#else
 
11137
char (*f) () = shl_load;
 
11138
#endif
 
11139
#ifdef __cplusplus
 
11140
}
 
11141
#endif
 
11142
 
 
11143
int
 
11144
main ()
 
11145
{
 
11146
return f != shl_load;
 
11147
  ;
 
11148
  return 0;
 
11149
}
 
11150
_ACEOF
 
11151
rm -f conftest.$ac_objext conftest$ac_exeext
 
11152
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11153
  (eval $ac_link) 2>conftest.er1
 
11154
  ac_status=$?
 
11155
  grep -v '^ *+' conftest.er1 >conftest.err
 
11156
  rm -f conftest.er1
 
11157
  cat conftest.err >&5
 
11158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11159
  (exit $ac_status); } &&
 
11160
         { ac_try='test -z "$ac_c_werror_flag"
 
11161
                         || test ! -s conftest.err'
 
11162
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11163
  (eval $ac_try) 2>&5
 
11164
  ac_status=$?
 
11165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11166
  (exit $ac_status); }; } &&
 
11167
         { ac_try='test -s conftest$ac_exeext'
 
11168
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11169
  (eval $ac_try) 2>&5
 
11170
  ac_status=$?
 
11171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11172
  (exit $ac_status); }; }; then
 
11173
  ac_cv_func_shl_load=yes
 
11174
else
 
11175
  echo "$as_me: failed program was:" >&5
 
11176
sed 's/^/| /' conftest.$ac_ext >&5
 
11177
 
 
11178
ac_cv_func_shl_load=no
 
11179
fi
 
11180
rm -f conftest.err conftest.$ac_objext \
 
11181
      conftest$ac_exeext conftest.$ac_ext
 
11182
fi
 
11183
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
11184
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
11185
if test $ac_cv_func_shl_load = yes; then
 
11186
  lt_cv_dlopen="shl_load"
 
11187
else
 
11188
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
11189
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
11190
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
11191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11192
else
 
11193
  ac_check_lib_save_LIBS=$LIBS
 
11194
LIBS="-ldld  $LIBS"
 
11195
cat >conftest.$ac_ext <<_ACEOF
 
11196
/* confdefs.h.  */
 
11197
_ACEOF
 
11198
cat confdefs.h >>conftest.$ac_ext
 
11199
cat >>conftest.$ac_ext <<_ACEOF
 
11200
/* end confdefs.h.  */
 
11201
 
 
11202
/* Override any gcc2 internal prototype to avoid an error.  */
 
11203
#ifdef __cplusplus
 
11204
extern "C"
 
11205
#endif
 
11206
/* We use char because int might match the return type of a gcc2
 
11207
   builtin and then its argument prototype would still apply.  */
 
11208
char shl_load ();
 
11209
int
 
11210
main ()
 
11211
{
 
11212
shl_load ();
 
11213
  ;
 
11214
  return 0;
 
11215
}
 
11216
_ACEOF
 
11217
rm -f conftest.$ac_objext conftest$ac_exeext
 
11218
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11219
  (eval $ac_link) 2>conftest.er1
 
11220
  ac_status=$?
 
11221
  grep -v '^ *+' conftest.er1 >conftest.err
 
11222
  rm -f conftest.er1
 
11223
  cat conftest.err >&5
 
11224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11225
  (exit $ac_status); } &&
 
11226
         { ac_try='test -z "$ac_c_werror_flag"
 
11227
                         || test ! -s conftest.err'
 
11228
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11229
  (eval $ac_try) 2>&5
 
11230
  ac_status=$?
 
11231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11232
  (exit $ac_status); }; } &&
 
11233
         { ac_try='test -s conftest$ac_exeext'
 
11234
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11235
  (eval $ac_try) 2>&5
 
11236
  ac_status=$?
 
11237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11238
  (exit $ac_status); }; }; then
 
11239
  ac_cv_lib_dld_shl_load=yes
 
11240
else
 
11241
  echo "$as_me: failed program was:" >&5
 
11242
sed 's/^/| /' conftest.$ac_ext >&5
 
11243
 
 
11244
ac_cv_lib_dld_shl_load=no
 
11245
fi
 
11246
rm -f conftest.err conftest.$ac_objext \
 
11247
      conftest$ac_exeext conftest.$ac_ext
 
11248
LIBS=$ac_check_lib_save_LIBS
 
11249
fi
 
11250
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
11251
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
11252
if test $ac_cv_lib_dld_shl_load = yes; then
 
11253
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
11254
else
 
11255
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
11256
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
11257
if test "${ac_cv_func_dlopen+set}" = set; then
 
11258
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11259
else
 
11260
  cat >conftest.$ac_ext <<_ACEOF
 
11261
/* confdefs.h.  */
 
11262
_ACEOF
 
11263
cat confdefs.h >>conftest.$ac_ext
 
11264
cat >>conftest.$ac_ext <<_ACEOF
 
11265
/* end confdefs.h.  */
 
11266
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
11267
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11268
#define dlopen innocuous_dlopen
 
11269
 
 
11270
/* System header to define __stub macros and hopefully few prototypes,
 
11271
    which can conflict with char dlopen (); below.
 
11272
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11273
    <limits.h> exists even on freestanding compilers.  */
 
11274
 
 
11275
#ifdef __STDC__
 
11276
# include <limits.h>
 
11277
#else
 
11278
# include <assert.h>
 
11279
#endif
 
11280
 
 
11281
#undef dlopen
 
11282
 
 
11283
/* Override any gcc2 internal prototype to avoid an error.  */
 
11284
#ifdef __cplusplus
 
11285
extern "C"
 
11286
{
 
11287
#endif
 
11288
/* We use char because int might match the return type of a gcc2
 
11289
   builtin and then its argument prototype would still apply.  */
 
11290
char dlopen ();
 
11291
/* The GNU C library defines this for functions which it implements
 
11292
    to always fail with ENOSYS.  Some functions are actually named
 
11293
    something starting with __ and the normal name is an alias.  */
 
11294
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
11295
choke me
 
11296
#else
 
11297
char (*f) () = dlopen;
 
11298
#endif
 
11299
#ifdef __cplusplus
 
11300
}
 
11301
#endif
 
11302
 
 
11303
int
 
11304
main ()
 
11305
{
 
11306
return f != dlopen;
 
11307
  ;
 
11308
  return 0;
 
11309
}
 
11310
_ACEOF
 
11311
rm -f conftest.$ac_objext conftest$ac_exeext
 
11312
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11313
  (eval $ac_link) 2>conftest.er1
 
11314
  ac_status=$?
 
11315
  grep -v '^ *+' conftest.er1 >conftest.err
 
11316
  rm -f conftest.er1
 
11317
  cat conftest.err >&5
 
11318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11319
  (exit $ac_status); } &&
 
11320
         { ac_try='test -z "$ac_c_werror_flag"
 
11321
                         || test ! -s conftest.err'
 
11322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11323
  (eval $ac_try) 2>&5
 
11324
  ac_status=$?
 
11325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11326
  (exit $ac_status); }; } &&
 
11327
         { ac_try='test -s conftest$ac_exeext'
 
11328
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11329
  (eval $ac_try) 2>&5
 
11330
  ac_status=$?
 
11331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11332
  (exit $ac_status); }; }; then
 
11333
  ac_cv_func_dlopen=yes
 
11334
else
 
11335
  echo "$as_me: failed program was:" >&5
 
11336
sed 's/^/| /' conftest.$ac_ext >&5
 
11337
 
 
11338
ac_cv_func_dlopen=no
 
11339
fi
 
11340
rm -f conftest.err conftest.$ac_objext \
 
11341
      conftest$ac_exeext conftest.$ac_ext
 
11342
fi
 
11343
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
11344
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
11345
if test $ac_cv_func_dlopen = yes; then
 
11346
  lt_cv_dlopen="dlopen"
 
11347
else
 
11348
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11349
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11350
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11351
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11352
else
 
11353
  ac_check_lib_save_LIBS=$LIBS
 
11354
LIBS="-ldl  $LIBS"
 
11355
cat >conftest.$ac_ext <<_ACEOF
 
11356
/* confdefs.h.  */
 
11357
_ACEOF
 
11358
cat confdefs.h >>conftest.$ac_ext
 
11359
cat >>conftest.$ac_ext <<_ACEOF
 
11360
/* end confdefs.h.  */
 
11361
 
 
11362
/* Override any gcc2 internal prototype to avoid an error.  */
 
11363
#ifdef __cplusplus
 
11364
extern "C"
 
11365
#endif
 
11366
/* We use char because int might match the return type of a gcc2
 
11367
   builtin and then its argument prototype would still apply.  */
 
11368
char dlopen ();
 
11369
int
 
11370
main ()
 
11371
{
 
11372
dlopen ();
 
11373
  ;
 
11374
  return 0;
 
11375
}
 
11376
_ACEOF
 
11377
rm -f conftest.$ac_objext conftest$ac_exeext
 
11378
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11379
  (eval $ac_link) 2>conftest.er1
 
11380
  ac_status=$?
 
11381
  grep -v '^ *+' conftest.er1 >conftest.err
 
11382
  rm -f conftest.er1
 
11383
  cat conftest.err >&5
 
11384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11385
  (exit $ac_status); } &&
 
11386
         { ac_try='test -z "$ac_c_werror_flag"
 
11387
                         || test ! -s conftest.err'
 
11388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11389
  (eval $ac_try) 2>&5
 
11390
  ac_status=$?
 
11391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11392
  (exit $ac_status); }; } &&
 
11393
         { ac_try='test -s conftest$ac_exeext'
 
11394
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11395
  (eval $ac_try) 2>&5
 
11396
  ac_status=$?
 
11397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11398
  (exit $ac_status); }; }; then
 
11399
  ac_cv_lib_dl_dlopen=yes
 
11400
else
 
11401
  echo "$as_me: failed program was:" >&5
 
11402
sed 's/^/| /' conftest.$ac_ext >&5
 
11403
 
 
11404
ac_cv_lib_dl_dlopen=no
 
11405
fi
 
11406
rm -f conftest.err conftest.$ac_objext \
 
11407
      conftest$ac_exeext conftest.$ac_ext
 
11408
LIBS=$ac_check_lib_save_LIBS
 
11409
fi
 
11410
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11411
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11412
if test $ac_cv_lib_dl_dlopen = yes; then
 
11413
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11414
else
 
11415
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
11416
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
11417
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
11418
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11419
else
 
11420
  ac_check_lib_save_LIBS=$LIBS
 
11421
LIBS="-lsvld  $LIBS"
 
11422
cat >conftest.$ac_ext <<_ACEOF
 
11423
/* confdefs.h.  */
 
11424
_ACEOF
 
11425
cat confdefs.h >>conftest.$ac_ext
 
11426
cat >>conftest.$ac_ext <<_ACEOF
 
11427
/* end confdefs.h.  */
 
11428
 
 
11429
/* Override any gcc2 internal prototype to avoid an error.  */
 
11430
#ifdef __cplusplus
 
11431
extern "C"
 
11432
#endif
 
11433
/* We use char because int might match the return type of a gcc2
 
11434
   builtin and then its argument prototype would still apply.  */
 
11435
char dlopen ();
 
11436
int
 
11437
main ()
 
11438
{
 
11439
dlopen ();
 
11440
  ;
 
11441
  return 0;
 
11442
}
 
11443
_ACEOF
 
11444
rm -f conftest.$ac_objext conftest$ac_exeext
 
11445
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11446
  (eval $ac_link) 2>conftest.er1
 
11447
  ac_status=$?
 
11448
  grep -v '^ *+' conftest.er1 >conftest.err
 
11449
  rm -f conftest.er1
 
11450
  cat conftest.err >&5
 
11451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11452
  (exit $ac_status); } &&
 
11453
         { ac_try='test -z "$ac_c_werror_flag"
 
11454
                         || test ! -s conftest.err'
 
11455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11456
  (eval $ac_try) 2>&5
 
11457
  ac_status=$?
 
11458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11459
  (exit $ac_status); }; } &&
 
11460
         { ac_try='test -s conftest$ac_exeext'
 
11461
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11462
  (eval $ac_try) 2>&5
 
11463
  ac_status=$?
 
11464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11465
  (exit $ac_status); }; }; then
 
11466
  ac_cv_lib_svld_dlopen=yes
 
11467
else
 
11468
  echo "$as_me: failed program was:" >&5
 
11469
sed 's/^/| /' conftest.$ac_ext >&5
 
11470
 
 
11471
ac_cv_lib_svld_dlopen=no
 
11472
fi
 
11473
rm -f conftest.err conftest.$ac_objext \
 
11474
      conftest$ac_exeext conftest.$ac_ext
 
11475
LIBS=$ac_check_lib_save_LIBS
 
11476
fi
 
11477
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
11478
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
11479
if test $ac_cv_lib_svld_dlopen = yes; then
 
11480
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11481
else
 
11482
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
11483
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
11484
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
11485
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11486
else
 
11487
  ac_check_lib_save_LIBS=$LIBS
 
11488
LIBS="-ldld  $LIBS"
 
11489
cat >conftest.$ac_ext <<_ACEOF
 
11490
/* confdefs.h.  */
 
11491
_ACEOF
 
11492
cat confdefs.h >>conftest.$ac_ext
 
11493
cat >>conftest.$ac_ext <<_ACEOF
 
11494
/* end confdefs.h.  */
 
11495
 
 
11496
/* Override any gcc2 internal prototype to avoid an error.  */
 
11497
#ifdef __cplusplus
 
11498
extern "C"
 
11499
#endif
 
11500
/* We use char because int might match the return type of a gcc2
 
11501
   builtin and then its argument prototype would still apply.  */
 
11502
char dld_link ();
 
11503
int
 
11504
main ()
 
11505
{
 
11506
dld_link ();
 
11507
  ;
 
11508
  return 0;
 
11509
}
 
11510
_ACEOF
 
11511
rm -f conftest.$ac_objext conftest$ac_exeext
 
11512
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11513
  (eval $ac_link) 2>conftest.er1
 
11514
  ac_status=$?
 
11515
  grep -v '^ *+' conftest.er1 >conftest.err
 
11516
  rm -f conftest.er1
 
11517
  cat conftest.err >&5
 
11518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11519
  (exit $ac_status); } &&
 
11520
         { ac_try='test -z "$ac_c_werror_flag"
 
11521
                         || test ! -s conftest.err'
 
11522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11523
  (eval $ac_try) 2>&5
 
11524
  ac_status=$?
 
11525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11526
  (exit $ac_status); }; } &&
 
11527
         { ac_try='test -s conftest$ac_exeext'
 
11528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11529
  (eval $ac_try) 2>&5
 
11530
  ac_status=$?
 
11531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11532
  (exit $ac_status); }; }; then
 
11533
  ac_cv_lib_dld_dld_link=yes
 
11534
else
 
11535
  echo "$as_me: failed program was:" >&5
 
11536
sed 's/^/| /' conftest.$ac_ext >&5
 
11537
 
 
11538
ac_cv_lib_dld_dld_link=no
 
11539
fi
 
11540
rm -f conftest.err conftest.$ac_objext \
 
11541
      conftest$ac_exeext conftest.$ac_ext
 
11542
LIBS=$ac_check_lib_save_LIBS
 
11543
fi
 
11544
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
11545
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
11546
if test $ac_cv_lib_dld_dld_link = yes; then
 
11547
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
11548
fi
 
11549
 
 
11550
 
 
11551
fi
 
11552
 
 
11553
 
 
11554
fi
 
11555
 
 
11556
 
 
11557
fi
 
11558
 
 
11559
 
 
11560
fi
 
11561
 
 
11562
 
 
11563
fi
 
11564
 
 
11565
    ;;
 
11566
  esac
 
11567
 
 
11568
  if test "x$lt_cv_dlopen" != xno; then
 
11569
    enable_dlopen=yes
 
11570
  else
 
11571
    enable_dlopen=no
 
11572
  fi
 
11573
 
 
11574
  case $lt_cv_dlopen in
 
11575
  dlopen)
 
11576
    save_CPPFLAGS="$CPPFLAGS"
 
11577
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11578
 
 
11579
    save_LDFLAGS="$LDFLAGS"
 
11580
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11581
 
 
11582
    save_LIBS="$LIBS"
 
11583
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11584
 
 
11585
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
11586
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
11587
if test "${lt_cv_dlopen_self+set}" = set; then
 
11588
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11589
else
 
11590
          if test "$cross_compiling" = yes; then :
 
11591
  lt_cv_dlopen_self=cross
 
11592
else
 
11593
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11594
  lt_status=$lt_dlunknown
 
11595
  cat > conftest.$ac_ext <<EOF
 
11596
#line 11596 "configure"
 
11597
#include "confdefs.h"
 
11598
 
 
11599
#if HAVE_DLFCN_H
 
11600
#include <dlfcn.h>
 
11601
#endif
 
11602
 
 
11603
#include <stdio.h>
 
11604
 
 
11605
#ifdef RTLD_GLOBAL
 
11606
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11607
#else
 
11608
#  ifdef DL_GLOBAL
 
11609
#    define LT_DLGLOBAL         DL_GLOBAL
 
11610
#  else
 
11611
#    define LT_DLGLOBAL         0
 
11612
#  endif
 
11613
#endif
 
11614
 
 
11615
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11616
   find out it does not work in some platform. */
 
11617
#ifndef LT_DLLAZY_OR_NOW
 
11618
#  ifdef RTLD_LAZY
 
11619
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11620
#  else
 
11621
#    ifdef DL_LAZY
 
11622
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11623
#    else
 
11624
#      ifdef RTLD_NOW
 
11625
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11626
#      else
 
11627
#        ifdef DL_NOW
 
11628
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11629
#        else
 
11630
#          define LT_DLLAZY_OR_NOW      0
 
11631
#        endif
 
11632
#      endif
 
11633
#    endif
 
11634
#  endif
 
11635
#endif
 
11636
 
 
11637
#ifdef __cplusplus
 
11638
extern "C" void exit (int);
 
11639
#endif
 
11640
 
 
11641
void fnord() { int i=42;}
 
11642
int main ()
 
11643
{
 
11644
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11645
  int status = $lt_dlunknown;
 
11646
 
 
11647
  if (self)
 
11648
    {
 
11649
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11650
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11651
      /* dlclose (self); */
 
11652
    }
 
11653
 
 
11654
    exit (status);
 
11655
}
 
11656
EOF
 
11657
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11658
  (eval $ac_link) 2>&5
 
11659
  ac_status=$?
 
11660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11661
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11662
    (./conftest; exit; ) 2>/dev/null
 
11663
    lt_status=$?
 
11664
    case x$lt_status in
 
11665
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11666
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11667
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
11668
    esac
 
11669
  else :
 
11670
    # compilation failed
 
11671
    lt_cv_dlopen_self=no
 
11672
  fi
 
11673
fi
 
11674
rm -fr conftest*
 
11675
 
 
11676
 
 
11677
fi
 
11678
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
11679
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
11680
 
 
11681
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11682
      LDFLAGS="$LDFLAGS $link_static_flag"
 
11683
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
11684
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
11685
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
11686
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11687
else
 
11688
          if test "$cross_compiling" = yes; then :
 
11689
  lt_cv_dlopen_self_static=cross
 
11690
else
 
11691
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11692
  lt_status=$lt_dlunknown
 
11693
  cat > conftest.$ac_ext <<EOF
 
11694
#line 11694 "configure"
 
11695
#include "confdefs.h"
 
11696
 
 
11697
#if HAVE_DLFCN_H
 
11698
#include <dlfcn.h>
 
11699
#endif
 
11700
 
 
11701
#include <stdio.h>
 
11702
 
 
11703
#ifdef RTLD_GLOBAL
 
11704
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11705
#else
 
11706
#  ifdef DL_GLOBAL
 
11707
#    define LT_DLGLOBAL         DL_GLOBAL
 
11708
#  else
 
11709
#    define LT_DLGLOBAL         0
 
11710
#  endif
 
11711
#endif
 
11712
 
 
11713
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11714
   find out it does not work in some platform. */
 
11715
#ifndef LT_DLLAZY_OR_NOW
 
11716
#  ifdef RTLD_LAZY
 
11717
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11718
#  else
 
11719
#    ifdef DL_LAZY
 
11720
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11721
#    else
 
11722
#      ifdef RTLD_NOW
 
11723
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11724
#      else
 
11725
#        ifdef DL_NOW
 
11726
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11727
#        else
 
11728
#          define LT_DLLAZY_OR_NOW      0
 
11729
#        endif
 
11730
#      endif
 
11731
#    endif
 
11732
#  endif
 
11733
#endif
 
11734
 
 
11735
#ifdef __cplusplus
 
11736
extern "C" void exit (int);
 
11737
#endif
 
11738
 
 
11739
void fnord() { int i=42;}
 
11740
int main ()
 
11741
{
 
11742
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11743
  int status = $lt_dlunknown;
 
11744
 
 
11745
  if (self)
 
11746
    {
 
11747
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11748
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11749
      /* dlclose (self); */
 
11750
    }
 
11751
 
 
11752
    exit (status);
 
11753
}
 
11754
EOF
 
11755
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11756
  (eval $ac_link) 2>&5
 
11757
  ac_status=$?
 
11758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11759
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11760
    (./conftest; exit; ) 2>/dev/null
 
11761
    lt_status=$?
 
11762
    case x$lt_status in
 
11763
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11764
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11765
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
11766
    esac
 
11767
  else :
 
11768
    # compilation failed
 
11769
    lt_cv_dlopen_self_static=no
 
11770
  fi
 
11771
fi
 
11772
rm -fr conftest*
 
11773
 
 
11774
 
 
11775
fi
 
11776
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
11777
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
11778
    fi
 
11779
 
 
11780
    CPPFLAGS="$save_CPPFLAGS"
 
11781
    LDFLAGS="$save_LDFLAGS"
 
11782
    LIBS="$save_LIBS"
 
11783
    ;;
 
11784
  esac
 
11785
 
 
11786
  case $lt_cv_dlopen_self in
 
11787
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11788
  *) enable_dlopen_self=unknown ;;
 
11789
  esac
 
11790
 
 
11791
  case $lt_cv_dlopen_self_static in
 
11792
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11793
  *) enable_dlopen_self_static=unknown ;;
 
11794
  esac
 
11795
fi
 
11796
 
 
11797
 
 
11798
# Report which librarie types wil actually be built
 
11799
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
11800
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
11801
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
11802
echo "${ECHO_T}$can_build_shared" >&6
 
11803
 
 
11804
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
11805
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
11806
test "$can_build_shared" = "no" && enable_shared=no
 
11807
 
 
11808
# On AIX, shared libraries and static libraries use the same namespace, and
 
11809
# are all built from PIC.
 
11810
case "$host_os" in
 
11811
aix3*)
 
11812
  test "$enable_shared" = yes && enable_static=no
 
11813
  if test -n "$RANLIB"; then
 
11814
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11815
    postinstall_cmds='$RANLIB $lib'
 
11816
  fi
 
11817
  ;;
 
11818
 
 
11819
aix4*)
 
11820
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11821
    test "$enable_shared" = yes && enable_static=no
 
11822
  fi
 
11823
  ;;
 
11824
  darwin* | rhapsody*)
 
11825
  if test "$GCC" = yes; then
 
11826
    archive_cmds_need_lc=no
 
11827
    case "$host_os" in
 
11828
    rhapsody* | darwin1.[012])
 
11829
      allow_undefined_flag='-Wl,-undefined -Wl,suppress'
 
11830
      ;;
 
11831
    *) # Darwin 1.3 on
 
11832
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11833
        allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
11834
      else
 
11835
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
11836
          10.012)
 
11837
            allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
11838
            ;;
 
11839
          10.*)
 
11840
            allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
 
11841
            ;;
 
11842
        esac
 
11843
      fi
 
11844
      ;;
 
11845
    esac
 
11846
    output_verbose_link_cmd='echo'
 
11847
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
11848
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
11849
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
11850
    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}'
 
11851
    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}'
 
11852
    hardcode_direct=no
 
11853
    hardcode_automatic=yes
 
11854
    hardcode_shlibpath_var=unsupported
 
11855
    whole_archive_flag_spec='-all_load $convenience'
 
11856
    link_all_deplibs=yes
 
11857
  else
 
11858
    ld_shlibs=no
 
11859
  fi
 
11860
    ;;
 
11861
esac
 
11862
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
11863
echo "${ECHO_T}$enable_shared" >&6
 
11864
 
 
11865
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
11866
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
11867
# Make sure either enable_shared or enable_static is yes.
 
11868
test "$enable_shared" = yes || enable_static=yes
 
11869
echo "$as_me:$LINENO: result: $enable_static" >&5
 
11870
echo "${ECHO_T}$enable_static" >&6
 
11871
 
 
11872
# The else clause should only fire when bootstrapping the
 
11873
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
11874
# with your package, and you will get complaints that there are
 
11875
# no rules to generate ltmain.sh.
 
11876
if test -f "$ltmain"; then
 
11877
  # See if we are running on zsh, and set the options which allow our commands through
 
11878
  # without removal of \ escapes.
 
11879
  if test -n "${ZSH_VERSION+set}" ; then
 
11880
    setopt NO_GLOB_SUBST
 
11881
  fi
 
11882
  # Now quote all the things that may contain metacharacters while being
 
11883
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
11884
  # variables and quote the copies for generation of the libtool script.
 
11885
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
11886
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
11887
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
11888
    deplibs_check_method reload_flag reload_cmds need_locks \
 
11889
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
11890
    lt_cv_sys_global_symbol_to_c_name_address \
 
11891
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
11892
    old_postinstall_cmds old_postuninstall_cmds \
 
11893
    compiler \
 
11894
    CC \
 
11895
    LD \
 
11896
    lt_prog_compiler_wl \
 
11897
    lt_prog_compiler_pic \
 
11898
    lt_prog_compiler_static \
 
11899
    lt_prog_compiler_no_builtin_flag \
 
11900
    export_dynamic_flag_spec \
 
11901
    thread_safe_flag_spec \
 
11902
    whole_archive_flag_spec \
 
11903
    enable_shared_with_static_runtimes \
 
11904
    old_archive_cmds \
 
11905
    old_archive_from_new_cmds \
 
11906
    predep_objects \
 
11907
    postdep_objects \
 
11908
    predeps \
 
11909
    postdeps \
 
11910
    compiler_lib_search_path \
 
11911
    archive_cmds \
 
11912
    archive_expsym_cmds \
 
11913
    postinstall_cmds \
 
11914
    postuninstall_cmds \
 
11915
    old_archive_from_expsyms_cmds \
 
11916
    allow_undefined_flag \
 
11917
    no_undefined_flag \
 
11918
    export_symbols_cmds \
 
11919
    hardcode_libdir_flag_spec \
 
11920
    hardcode_libdir_flag_spec_ld \
 
11921
    hardcode_libdir_separator \
 
11922
    hardcode_automatic \
 
11923
    module_cmds \
 
11924
    module_expsym_cmds \
 
11925
    lt_cv_prog_compiler_c_o \
 
11926
    exclude_expsyms \
 
11927
    include_expsyms; do
 
11928
 
 
11929
    case $var in
 
11930
    old_archive_cmds | \
 
11931
    old_archive_from_new_cmds | \
 
11932
    archive_cmds | \
 
11933
    archive_expsym_cmds | \
 
11934
    module_cmds | \
 
11935
    module_expsym_cmds | \
 
11936
    old_archive_from_expsyms_cmds | \
 
11937
    export_symbols_cmds | \
 
11938
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
11939
    postinstall_cmds | postuninstall_cmds | \
 
11940
    old_postinstall_cmds | old_postuninstall_cmds | \
 
11941
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
11942
      # Double-quote double-evaled strings.
 
11943
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
11944
      ;;
 
11945
    *)
 
11946
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
11947
      ;;
 
11948
    esac
 
11949
  done
 
11950
 
 
11951
  case $lt_echo in
 
11952
  *'\$0 --fallback-echo"')
 
11953
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
11954
    ;;
 
11955
  esac
 
11956
 
 
11957
cfgfile="${ofile}T"
 
11958
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
11959
  $rm -f "$cfgfile"
 
11960
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
11961
echo "$as_me: creating $ofile" >&6;}
 
11962
 
 
11963
  cat <<__EOF__ >> "$cfgfile"
 
11964
#! $SHELL
 
11965
 
 
11966
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
11967
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
11968
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
11969
#
 
11970
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
11971
# Free Software Foundation, Inc.
 
11972
#
 
11973
# This file is part of GNU Libtool:
 
11974
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
11975
#
 
11976
# This program is free software; you can redistribute it and/or modify
 
11977
# it under the terms of the GNU General Public License as published by
 
11978
# the Free Software Foundation; either version 2 of the License, or
 
11979
# (at your option) any later version.
 
11980
#
 
11981
# This program is distributed in the hope that it will be useful, but
 
11982
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
11983
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11984
# General Public License for more details.
 
11985
#
 
11986
# You should have received a copy of the GNU General Public License
 
11987
# along with this program; if not, write to the Free Software
 
11988
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
11989
#
 
11990
# As a special exception to the GNU General Public License, if you
 
11991
# distribute this file as part of a program that contains a
 
11992
# configuration script generated by Autoconf, you may include it under
 
11993
# the same distribution terms that you use for the rest of that program.
 
11994
 
 
11995
# A sed program that does not truncate output.
 
11996
SED=$lt_SED
 
11997
 
 
11998
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
11999
Xsed="$SED -e s/^X//"
 
12000
 
 
12001
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
12002
# if CDPATH is set.
 
12003
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
12004
 
 
12005
# The names of the tagged configurations supported by this script.
 
12006
available_tags=
 
12007
 
 
12008
# ### BEGIN LIBTOOL CONFIG
 
12009
 
 
12010
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12011
 
 
12012
# Shell to use when invoking shell scripts.
 
12013
SHELL=$lt_SHELL
 
12014
 
 
12015
# Whether or not to build shared libraries.
 
12016
build_libtool_libs=$enable_shared
 
12017
 
 
12018
# Whether or not to build static libraries.
 
12019
build_old_libs=$enable_static
 
12020
 
 
12021
# Whether or not to add -lc for building shared libraries.
 
12022
build_libtool_need_lc=$archive_cmds_need_lc
 
12023
 
 
12024
# Whether or not to disallow shared libs when runtime libs are static
 
12025
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
12026
 
 
12027
# Whether or not to optimize for fast installation.
 
12028
fast_install=$enable_fast_install
 
12029
 
 
12030
# The host system.
 
12031
host_alias=$host_alias
 
12032
host=$host
 
12033
 
 
12034
# An echo program that does not interpret backslashes.
 
12035
echo=$lt_echo
 
12036
 
 
12037
# The archiver.
 
12038
AR=$lt_AR
 
12039
AR_FLAGS=$lt_AR_FLAGS
 
12040
 
 
12041
# A C compiler.
 
12042
LTCC=$lt_LTCC
 
12043
 
 
12044
# A language-specific compiler.
 
12045
CC=$lt_compiler
 
12046
 
 
12047
# Is the compiler the GNU C compiler?
 
12048
with_gcc=$GCC
 
12049
 
 
12050
# An ERE matcher.
 
12051
EGREP=$lt_EGREP
 
12052
 
 
12053
# The linker used to build libraries.
 
12054
LD=$lt_LD
 
12055
 
 
12056
# Whether we need hard or soft links.
 
12057
LN_S=$lt_LN_S
 
12058
 
 
12059
# A BSD-compatible nm program.
 
12060
NM=$lt_NM
 
12061
 
 
12062
# A symbol stripping program
 
12063
STRIP=$STRIP
 
12064
 
 
12065
# Used to examine libraries when file_magic_cmd begins "file"
 
12066
MAGIC_CMD=$MAGIC_CMD
 
12067
 
 
12068
# Used on cygwin: DLL creation program.
 
12069
DLLTOOL="$DLLTOOL"
 
12070
 
 
12071
# Used on cygwin: object dumper.
 
12072
OBJDUMP="$OBJDUMP"
 
12073
 
 
12074
# Used on cygwin: assembler.
 
12075
AS="$AS"
 
12076
 
 
12077
# The name of the directory that contains temporary libtool files.
 
12078
objdir=$objdir
 
12079
 
 
12080
# How to create reloadable object files.
 
12081
reload_flag=$lt_reload_flag
 
12082
reload_cmds=$lt_reload_cmds
 
12083
 
 
12084
# How to pass a linker flag through the compiler.
 
12085
wl=$lt_lt_prog_compiler_wl
 
12086
 
 
12087
# Object file suffix (normally "o").
 
12088
objext="$ac_objext"
 
12089
 
 
12090
# Old archive suffix (normally "a").
 
12091
libext="$libext"
 
12092
 
 
12093
# Shared library suffix (normally ".so").
 
12094
shrext='$shrext'
 
12095
 
 
12096
# Executable file suffix (normally "").
 
12097
exeext="$exeext"
 
12098
 
 
12099
# Additional compiler flags for building library objects.
 
12100
pic_flag=$lt_lt_prog_compiler_pic
 
12101
pic_mode=$pic_mode
 
12102
 
 
12103
# What is the maximum length of a command?
 
12104
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12105
 
 
12106
# Does compiler simultaneously support -c and -o options?
 
12107
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
12108
 
 
12109
# Must we lock files when doing compilation ?
 
12110
need_locks=$lt_need_locks
 
12111
 
 
12112
# Do we need the lib prefix for modules?
 
12113
need_lib_prefix=$need_lib_prefix
 
12114
 
 
12115
# Do we need a version for libraries?
 
12116
need_version=$need_version
 
12117
 
 
12118
# Whether dlopen is supported.
 
12119
dlopen_support=$enable_dlopen
 
12120
 
 
12121
# Whether dlopen of programs is supported.
 
12122
dlopen_self=$enable_dlopen_self
 
12123
 
 
12124
# Whether dlopen of statically linked programs is supported.
 
12125
dlopen_self_static=$enable_dlopen_self_static
 
12126
 
 
12127
# Compiler flag to prevent dynamic linking.
 
12128
link_static_flag=$lt_lt_prog_compiler_static
 
12129
 
 
12130
# Compiler flag to turn off builtin functions.
 
12131
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
12132
 
 
12133
# Compiler flag to allow reflexive dlopens.
 
12134
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
12135
 
 
12136
# Compiler flag to generate shared objects directly from archives.
 
12137
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
12138
 
 
12139
# Compiler flag to generate thread-safe objects.
 
12140
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
12141
 
 
12142
# Library versioning type.
 
12143
version_type=$version_type
 
12144
 
 
12145
# Format of library name prefix.
 
12146
libname_spec=$lt_libname_spec
 
12147
 
 
12148
# List of archive names.  First name is the real one, the rest are links.
 
12149
# The last name is the one that the linker finds with -lNAME.
 
12150
library_names_spec=$lt_library_names_spec
 
12151
 
 
12152
# The coded name of the library, if different from the real name.
 
12153
soname_spec=$lt_soname_spec
 
12154
 
 
12155
# Commands used to build and install an old-style archive.
 
12156
RANLIB=$lt_RANLIB
 
12157
old_archive_cmds=$lt_old_archive_cmds
 
12158
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12159
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12160
 
 
12161
# Create an old-style archive from a shared archive.
 
12162
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
12163
 
 
12164
# Create a temporary old-style archive to link instead of a shared archive.
 
12165
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
12166
 
 
12167
# Commands used to build and install a shared archive.
 
12168
archive_cmds=$lt_archive_cmds
 
12169
archive_expsym_cmds=$lt_archive_expsym_cmds
 
12170
postinstall_cmds=$lt_postinstall_cmds
 
12171
postuninstall_cmds=$lt_postuninstall_cmds
 
12172
 
 
12173
# Commands used to build a loadable module (assumed same as above if empty)
 
12174
module_cmds=$lt_module_cmds
 
12175
module_expsym_cmds=$lt_module_expsym_cmds
 
12176
 
 
12177
# Commands to strip libraries.
 
12178
old_striplib=$lt_old_striplib
 
12179
striplib=$lt_striplib
 
12180
 
 
12181
# Dependencies to place before the objects being linked to create a
 
12182
# shared library.
 
12183
predep_objects=$lt_predep_objects
 
12184
 
 
12185
# Dependencies to place after the objects being linked to create a
 
12186
# shared library.
 
12187
postdep_objects=$lt_postdep_objects
 
12188
 
 
12189
# Dependencies to place before the objects being linked to create a
 
12190
# shared library.
 
12191
predeps=$lt_predeps
 
12192
 
 
12193
# Dependencies to place after the objects being linked to create a
 
12194
# shared library.
 
12195
postdeps=$lt_postdeps
 
12196
 
 
12197
# The library search path used internally by the compiler when linking
 
12198
# a shared library.
 
12199
compiler_lib_search_path=$lt_compiler_lib_search_path
 
12200
 
 
12201
# Method to check whether dependent libraries are shared objects.
 
12202
deplibs_check_method=$lt_deplibs_check_method
 
12203
 
 
12204
# Command to use when deplibs_check_method == file_magic.
 
12205
file_magic_cmd=$lt_file_magic_cmd
 
12206
 
 
12207
# Flag that allows shared libraries with undefined symbols to be built.
 
12208
allow_undefined_flag=$lt_allow_undefined_flag
 
12209
 
 
12210
# Flag that forces no undefined symbols.
 
12211
no_undefined_flag=$lt_no_undefined_flag
 
12212
 
 
12213
# Commands used to finish a libtool library installation in a directory.
 
12214
finish_cmds=$lt_finish_cmds
 
12215
 
 
12216
# Same as above, but a single script fragment to be evaled but not shown.
 
12217
finish_eval=$lt_finish_eval
 
12218
 
 
12219
# Take the output of nm and produce a listing of raw symbols and C names.
 
12220
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12221
 
 
12222
# Transform the output of nm in a proper C declaration
 
12223
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12224
 
 
12225
# Transform the output of nm in a C name address pair
 
12226
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12227
 
 
12228
# This is the shared library runtime path variable.
 
12229
runpath_var=$runpath_var
 
12230
 
 
12231
# This is the shared library path variable.
 
12232
shlibpath_var=$shlibpath_var
 
12233
 
 
12234
# Is shlibpath searched before the hard-coded library search path?
 
12235
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12236
 
 
12237
# How to hardcode a shared library path into an executable.
 
12238
hardcode_action=$hardcode_action
 
12239
 
 
12240
# Whether we should hardcode library paths into libraries.
 
12241
hardcode_into_libs=$hardcode_into_libs
 
12242
 
 
12243
# Flag to hardcode \$libdir into a binary during linking.
 
12244
# This must work even if \$libdir does not exist.
 
12245
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
12246
 
 
12247
# If ld is used when linking, flag to hardcode \$libdir into
 
12248
# a binary during linking. This must work even if \$libdir does
 
12249
# not exist.
 
12250
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
12251
 
 
12252
# Whether we need a single -rpath flag with a separated argument.
 
12253
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
12254
 
 
12255
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
12256
# resulting binary.
 
12257
hardcode_direct=$hardcode_direct
 
12258
 
 
12259
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
12260
# resulting binary.
 
12261
hardcode_minus_L=$hardcode_minus_L
 
12262
 
 
12263
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
12264
# the resulting binary.
 
12265
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
12266
 
 
12267
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
12268
# and all subsequent libraries and executables linked against it.
 
12269
hardcode_automatic=$hardcode_automatic
 
12270
 
 
12271
# Variables whose values should be saved in libtool wrapper scripts and
 
12272
# restored at relink time.
 
12273
variables_saved_for_relink="$variables_saved_for_relink"
 
12274
 
 
12275
# Whether libtool must link a program against all its dependency libraries.
 
12276
link_all_deplibs=$link_all_deplibs
 
12277
 
 
12278
# Compile-time system search path for libraries
 
12279
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
12280
 
 
12281
# Run-time system search path for libraries
 
12282
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
12283
 
 
12284
# Fix the shell variable \$srcfile for the compiler.
 
12285
fix_srcfile_path="$fix_srcfile_path"
 
12286
 
 
12287
# Set to yes if exported symbols are required.
 
12288
always_export_symbols=$always_export_symbols
 
12289
 
 
12290
# The commands to list exported symbols.
 
12291
export_symbols_cmds=$lt_export_symbols_cmds
 
12292
 
 
12293
# The commands to extract the exported symbol list from a shared archive.
 
12294
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
12295
 
 
12296
# Symbols that should not be listed in the preloaded symbols.
 
12297
exclude_expsyms=$lt_exclude_expsyms
 
12298
 
 
12299
# Symbols that must always be exported.
 
12300
include_expsyms=$lt_include_expsyms
 
12301
 
 
12302
# ### END LIBTOOL CONFIG
 
12303
 
 
12304
__EOF__
 
12305
 
 
12306
 
 
12307
  case $host_os in
 
12308
  aix3*)
 
12309
    cat <<\EOF >> "$cfgfile"
 
12310
 
 
12311
# AIX sometimes has problems with the GCC collect2 program.  For some
 
12312
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
12313
# vanish in a puff of smoke.
 
12314
if test "X${COLLECT_NAMES+set}" != Xset; then
 
12315
  COLLECT_NAMES=
 
12316
  export COLLECT_NAMES
 
12317
fi
 
12318
EOF
 
12319
    ;;
 
12320
  esac
 
12321
 
 
12322
  # We use sed instead of cat because bash on DJGPP gets confused if
 
12323
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
12324
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
12325
  # is reportedly fixed, but why not run on old versions too?
 
12326
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
12327
 
 
12328
  mv -f "$cfgfile" "$ofile" || \
 
12329
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
12330
  chmod +x "$ofile"
 
12331
 
 
12332
else
 
12333
  # If there is no Makefile yet, we rely on a make rule to execute
 
12334
  # `config.status --recheck' to rerun these tests and create the
 
12335
  # libtool script then.
 
12336
  test -f Makefile && make "$ltmain"
 
12337
fi
 
12338
 
 
12339
 
 
12340
ac_ext=c
 
12341
ac_cpp='$CPP $CPPFLAGS'
 
12342
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12343
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12344
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12345
 
 
12346
CC="$lt_save_CC"
 
12347
 
 
12348
 
 
12349
# Check whether --with-tags or --without-tags was given.
 
12350
if test "${with_tags+set}" = set; then
 
12351
  withval="$with_tags"
 
12352
  tagnames="$withval"
 
12353
fi;
 
12354
 
 
12355
if test -f "$ltmain" && test -n "$tagnames"; then
 
12356
  if test ! -f "${ofile}"; then
 
12357
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
12358
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
12359
  fi
 
12360
 
 
12361
  if test -z "$LTCC"; then
 
12362
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
12363
    if test -z "$LTCC"; then
 
12364
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
12365
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
12366
    else
 
12367
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
12368
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
12369
    fi
 
12370
  fi
 
12371
 
 
12372
  # Extract list of available tagged configurations in $ofile.
 
12373
  # Note that this assumes the entire list is on one line.
 
12374
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
12375
 
 
12376
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
12377
  for tagname in $tagnames; do
 
12378
    IFS="$lt_save_ifs"
 
12379
    # Check whether tagname contains only valid characters
 
12380
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
12381
    "") ;;
 
12382
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
12383
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
12384
   { (exit 1); exit 1; }; }
 
12385
        ;;
 
12386
    esac
 
12387
 
 
12388
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
12389
    then
 
12390
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
12391
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
12392
   { (exit 1); exit 1; }; }
 
12393
    fi
 
12394
 
 
12395
    # Update the list of available tags.
 
12396
    if test -n "$tagname"; then
 
12397
      echo appending configuration tag \"$tagname\" to $ofile
 
12398
 
 
12399
      case $tagname in
 
12400
      CXX)
 
12401
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
12402
          ac_ext=cc
 
12403
ac_cpp='$CXXCPP $CPPFLAGS'
 
12404
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12405
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12406
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12407
 
 
12408
 
 
12409
 
 
12410
 
 
12411
archive_cmds_need_lc_CXX=no
 
12412
allow_undefined_flag_CXX=
 
12413
always_export_symbols_CXX=no
 
12414
archive_expsym_cmds_CXX=
 
12415
export_dynamic_flag_spec_CXX=
 
12416
hardcode_direct_CXX=no
 
12417
hardcode_libdir_flag_spec_CXX=
 
12418
hardcode_libdir_flag_spec_ld_CXX=
 
12419
hardcode_libdir_separator_CXX=
 
12420
hardcode_minus_L_CXX=no
 
12421
hardcode_automatic_CXX=no
 
12422
module_cmds_CXX=
 
12423
module_expsym_cmds_CXX=
 
12424
link_all_deplibs_CXX=unknown
 
12425
old_archive_cmds_CXX=$old_archive_cmds
 
12426
no_undefined_flag_CXX=
 
12427
whole_archive_flag_spec_CXX=
 
12428
enable_shared_with_static_runtimes_CXX=no
 
12429
 
 
12430
# Dependencies to place before and after the object being linked:
 
12431
predep_objects_CXX=
 
12432
postdep_objects_CXX=
 
12433
predeps_CXX=
 
12434
postdeps_CXX=
 
12435
compiler_lib_search_path_CXX=
 
12436
 
 
12437
# Source file extension for C++ test sources.
 
12438
ac_ext=cc
 
12439
 
 
12440
# Object file extension for compiled C++ test sources.
 
12441
objext=o
 
12442
objext_CXX=$objext
 
12443
 
 
12444
# Code to be used in simple compile tests
 
12445
lt_simple_compile_test_code="int some_variable = 0;\n"
 
12446
 
 
12447
# Code to be used in simple link tests
 
12448
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
12449
 
 
12450
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12451
 
 
12452
# If no C compiler was specified, use CC.
 
12453
LTCC=${LTCC-"$CC"}
 
12454
 
 
12455
# Allow CC to be a program name with arguments.
 
12456
compiler=$CC
 
12457
 
 
12458
 
 
12459
# Allow CC to be a program name with arguments.
 
12460
lt_save_CC=$CC
 
12461
lt_save_LD=$LD
 
12462
lt_save_GCC=$GCC
 
12463
GCC=$GXX
 
12464
lt_save_with_gnu_ld=$with_gnu_ld
 
12465
lt_save_path_LD=$lt_cv_path_LD
 
12466
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
12467
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
12468
else
 
12469
  unset lt_cv_prog_gnu_ld
 
12470
fi
 
12471
if test -n "${lt_cv_path_LDCXX+set}"; then
 
12472
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
12473
else
 
12474
  unset lt_cv_path_LD
 
12475
fi
 
12476
test -z "${LDCXX+set}" || LD=$LDCXX
 
12477
CC=${CXX-"c++"}
 
12478
compiler=$CC
 
12479
compiler_CXX=$CC
 
12480
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
12481
 
 
12482
# We don't want -fno-exception wen compiling C++ code, so set the
 
12483
# no_builtin_flag separately
 
12484
if test "$GXX" = yes; then
 
12485
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
12486
else
 
12487
  lt_prog_compiler_no_builtin_flag_CXX=
 
12488
fi
 
12489
 
 
12490
if test "$GXX" = yes; then
 
12491
  # Set up default GNU C++ configuration
 
12492
 
 
12493
 
 
12494
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
12495
if test "${with_gnu_ld+set}" = set; then
 
12496
  withval="$with_gnu_ld"
 
12497
  test "$withval" = no || with_gnu_ld=yes
 
12498
else
 
12499
  with_gnu_ld=no
 
12500
fi;
 
12501
ac_prog=ld
 
12502
if test "$GCC" = yes; then
 
12503
  # Check if gcc -print-prog-name=ld gives a path.
 
12504
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
12505
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
12506
  case $host in
 
12507
  *-*-mingw*)
 
12508
    # gcc leaves a trailing carriage return which upsets mingw
 
12509
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12510
  *)
 
12511
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12512
  esac
 
12513
  case $ac_prog in
 
12514
    # Accept absolute paths.
 
12515
    [\\/]* | ?:[\\/]*)
 
12516
      re_direlt='/[^/][^/]*/\.\./'
 
12517
      # Canonicalize the pathname of ld
 
12518
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
12519
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
12520
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
12521
      done
 
12522
      test -z "$LD" && LD="$ac_prog"
 
12523
      ;;
 
12524
  "")
 
12525
    # If it fails, then pretend we aren't using GCC.
 
12526
    ac_prog=ld
 
12527
    ;;
 
12528
  *)
 
12529
    # If it is relative, then search for the first ld in PATH.
 
12530
    with_gnu_ld=unknown
 
12531
    ;;
 
12532
  esac
 
12533
elif test "$with_gnu_ld" = yes; then
 
12534
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
12535
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
12536
else
 
12537
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
12538
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
12539
fi
 
12540
if test "${lt_cv_path_LD+set}" = set; then
 
12541
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12542
else
 
12543
  if test -z "$LD"; then
 
12544
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
12545
  for ac_dir in $PATH; do
 
12546
    IFS="$lt_save_ifs"
 
12547
    test -z "$ac_dir" && ac_dir=.
 
12548
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12549
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
12550
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12551
      # but apparently some GNU ld's only accept -v.
 
12552
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12553
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
12554
      *GNU* | *'with BFD'*)
 
12555
        test "$with_gnu_ld" != no && break
 
12556
        ;;
 
12557
      *)
 
12558
        test "$with_gnu_ld" != yes && break
 
12559
        ;;
 
12560
      esac
 
12561
    fi
 
12562
  done
 
12563
  IFS="$lt_save_ifs"
 
12564
else
 
12565
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
12566
fi
 
12567
fi
 
12568
 
 
12569
LD="$lt_cv_path_LD"
 
12570
if test -n "$LD"; then
 
12571
  echo "$as_me:$LINENO: result: $LD" >&5
 
12572
echo "${ECHO_T}$LD" >&6
 
12573
else
 
12574
  echo "$as_me:$LINENO: result: no" >&5
 
12575
echo "${ECHO_T}no" >&6
 
12576
fi
 
12577
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
12578
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
12579
   { (exit 1); exit 1; }; }
 
12580
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
12581
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
12582
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
12583
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12584
else
 
12585
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
12586
case `$LD -v 2>&1 </dev/null` in
 
12587
*GNU* | *'with BFD'*)
 
12588
  lt_cv_prog_gnu_ld=yes
 
12589
  ;;
 
12590
*)
 
12591
  lt_cv_prog_gnu_ld=no
 
12592
  ;;
 
12593
esac
 
12594
fi
 
12595
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
12596
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
12597
with_gnu_ld=$lt_cv_prog_gnu_ld
 
12598
 
 
12599
 
 
12600
 
 
12601
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
12602
  # archiving commands below assume that GNU ld is being used.
 
12603
  if test "$with_gnu_ld" = yes; then
 
12604
    archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
 
12605
    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'
 
12606
 
 
12607
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12608
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12609
 
 
12610
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
12611
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
12612
    #     investigate it a little bit more. (MM)
 
12613
    wlarc='${wl}'
 
12614
 
 
12615
    # ancient GNU ld didn't support --whole-archive et. al.
 
12616
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
12617
        grep 'no-whole-archive' > /dev/null; then
 
12618
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12619
    else
 
12620
      whole_archive_flag_spec_CXX=
 
12621
    fi
 
12622
  else
 
12623
    with_gnu_ld=no
 
12624
    wlarc=
 
12625
 
 
12626
    # A generic and very simple default shared library creation
 
12627
    # command for GNU C++ for the case where it uses the native
 
12628
    # linker, instead of GNU ld.  If possible, this setting should
 
12629
    # overridden to take advantage of the native linker features on
 
12630
    # the platform it is being used on.
 
12631
    archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib'
 
12632
  fi
 
12633
 
 
12634
  # Commands to make compiler produce verbose output that lists
 
12635
  # what "hidden" libraries, object files and flags are used when
 
12636
  # linking a shared library.
 
12637
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12638
 
 
12639
else
 
12640
  GXX=no
 
12641
  with_gnu_ld=no
 
12642
  wlarc=
 
12643
fi
 
12644
 
 
12645
# PORTME: fill in a description of your system's C++ link characteristics
 
12646
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12647
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
12648
ld_shlibs_CXX=yes
 
12649
case $host_os in
 
12650
  aix3*)
 
12651
    # FIXME: insert proper C++ library support
 
12652
    ld_shlibs_CXX=no
 
12653
    ;;
 
12654
  aix4* | aix5*)
 
12655
    if test "$host_cpu" = ia64; then
 
12656
      # On IA64, the linker does run time linking by default, so we don't
 
12657
      # have to do anything special.
 
12658
      aix_use_runtimelinking=no
 
12659
      exp_sym_flag='-Bexport'
 
12660
      no_entry_flag=""
 
12661
    else
 
12662
      # KDE requires run time linking.  Make it the default.
 
12663
      aix_use_runtimelinking=yes
 
12664
      exp_sym_flag='-bexport'
 
12665
      no_entry_flag='-bnoentry'
 
12666
    fi
 
12667
 
 
12668
    # When large executables or shared objects are built, AIX ld can
 
12669
    # have problems creating the table of contents.  If linking a library
 
12670
    # or program results in "error TOC overflow" add -mminimal-toc to
 
12671
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
12672
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
12673
 
 
12674
    archive_cmds_CXX=''
 
12675
    hardcode_direct_CXX=yes
 
12676
    hardcode_libdir_separator_CXX=':'
 
12677
    link_all_deplibs_CXX=yes
 
12678
 
 
12679
    if test "$GXX" = yes; then
 
12680
      case $host_os in aix4.012|aix4.012.*)
 
12681
      # We only want to do this on AIX 4.2 and lower, the check
 
12682
      # below for broken collect2 doesn't work under 4.3+
 
12683
        collect2name=`${CC} -print-prog-name=collect2`
 
12684
        if test -f "$collect2name" && \
 
12685
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
12686
        then
 
12687
          # We have reworked collect2
 
12688
          hardcode_direct_CXX=yes
 
12689
        else
 
12690
          # We have old collect2
 
12691
          hardcode_direct_CXX=unsupported
 
12692
          # It fails to find uninstalled libraries when the uninstalled
 
12693
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
12694
          # to unsupported forces relinking
 
12695
          hardcode_minus_L_CXX=yes
 
12696
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12697
          hardcode_libdir_separator_CXX=
 
12698
        fi
 
12699
      esac
 
12700
      shared_flag='-shared'
 
12701
    else
 
12702
      # not using gcc
 
12703
      if test "$host_cpu" = ia64; then
 
12704
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
12705
        # chokes on -Wl,-G. The following line is correct:
 
12706
        shared_flag='-G'
 
12707
      else
 
12708
        if test "$aix_use_runtimelinking" = yes; then
 
12709
          shared_flag='-qmkshrobj ${wl}-G'
 
12710
        else
 
12711
          shared_flag='-qmkshrobj'
 
12712
        fi
 
12713
      fi
 
12714
    fi
 
12715
 
 
12716
    # Let the compiler handle the export list.
 
12717
    always_export_symbols_CXX=no
 
12718
    if test "$aix_use_runtimelinking" = yes; then
 
12719
      # Warning - without using the other runtime loading flags (-brtl),
 
12720
      # -berok will link without error, but may produce a broken library.
 
12721
      allow_undefined_flag_CXX='-berok'
 
12722
      # Determine the default libpath from the value encoded in an empty executable.
 
12723
      cat >conftest.$ac_ext <<_ACEOF
 
12724
/* confdefs.h.  */
 
12725
_ACEOF
 
12726
cat confdefs.h >>conftest.$ac_ext
 
12727
cat >>conftest.$ac_ext <<_ACEOF
 
12728
/* end confdefs.h.  */
 
12729
 
 
12730
int
 
12731
main ()
 
12732
{
 
12733
 
 
12734
  ;
 
12735
  return 0;
 
12736
}
 
12737
_ACEOF
 
12738
rm -f conftest.$ac_objext conftest$ac_exeext
 
12739
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12740
  (eval $ac_link) 2>conftest.er1
 
12741
  ac_status=$?
 
12742
  grep -v '^ *+' conftest.er1 >conftest.err
 
12743
  rm -f conftest.er1
 
12744
  cat conftest.err >&5
 
12745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12746
  (exit $ac_status); } &&
 
12747
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12748
                         || test ! -s conftest.err'
 
12749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12750
  (eval $ac_try) 2>&5
 
12751
  ac_status=$?
 
12752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12753
  (exit $ac_status); }; } &&
 
12754
         { ac_try='test -s conftest$ac_exeext'
 
12755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12756
  (eval $ac_try) 2>&5
 
12757
  ac_status=$?
 
12758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12759
  (exit $ac_status); }; }; then
 
12760
 
 
12761
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
12762
}'`
 
12763
# Check for a 64-bit object if we didn't find anything.
 
12764
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; }
 
12765
}'`; fi
 
12766
else
 
12767
  echo "$as_me: failed program was:" >&5
 
12768
sed 's/^/| /' conftest.$ac_ext >&5
 
12769
 
 
12770
fi
 
12771
rm -f conftest.err conftest.$ac_objext \
 
12772
      conftest$ac_exeext conftest.$ac_ext
 
12773
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12774
 
 
12775
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12776
 
 
12777
      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"
 
12778
      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"
 
12779
     else
 
12780
      if test "$host_cpu" = ia64; then
 
12781
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
12782
        allow_undefined_flag_CXX="-z nodefs"
 
12783
        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"
 
12784
      else
 
12785
        # Determine the default libpath from the value encoded in an empty executable.
 
12786
        cat >conftest.$ac_ext <<_ACEOF
 
12787
/* confdefs.h.  */
 
12788
_ACEOF
 
12789
cat confdefs.h >>conftest.$ac_ext
 
12790
cat >>conftest.$ac_ext <<_ACEOF
 
12791
/* end confdefs.h.  */
 
12792
 
 
12793
int
 
12794
main ()
 
12795
{
 
12796
 
 
12797
  ;
 
12798
  return 0;
 
12799
}
 
12800
_ACEOF
 
12801
rm -f conftest.$ac_objext conftest$ac_exeext
 
12802
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12803
  (eval $ac_link) 2>conftest.er1
 
12804
  ac_status=$?
 
12805
  grep -v '^ *+' conftest.er1 >conftest.err
 
12806
  rm -f conftest.er1
 
12807
  cat conftest.err >&5
 
12808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12809
  (exit $ac_status); } &&
 
12810
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12811
                         || test ! -s conftest.err'
 
12812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12813
  (eval $ac_try) 2>&5
 
12814
  ac_status=$?
 
12815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12816
  (exit $ac_status); }; } &&
 
12817
         { ac_try='test -s conftest$ac_exeext'
 
12818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12819
  (eval $ac_try) 2>&5
 
12820
  ac_status=$?
 
12821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12822
  (exit $ac_status); }; }; then
 
12823
 
 
12824
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
12825
}'`
 
12826
# Check for a 64-bit object if we didn't find anything.
 
12827
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; }
 
12828
}'`; fi
 
12829
else
 
12830
  echo "$as_me: failed program was:" >&5
 
12831
sed 's/^/| /' conftest.$ac_ext >&5
 
12832
 
 
12833
fi
 
12834
rm -f conftest.err conftest.$ac_objext \
 
12835
      conftest$ac_exeext conftest.$ac_ext
 
12836
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12837
 
 
12838
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12839
        # Warning - without using the other run time loading flags,
 
12840
        # -berok will link without error, but may produce a broken library.
 
12841
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
12842
        allow_undefined_flag_CXX=' ${wl}-berok'
 
12843
        # -bexpall does not export symbols beginning with underscore (_)
 
12844
        always_export_symbols_CXX=yes
 
12845
        # Exported symbols can be pulled into shared objects from archives
 
12846
        whole_archive_flag_spec_CXX=' '
 
12847
        archive_cmds_need_lc_CXX=yes
 
12848
        # This is similar to how AIX traditionally builds it's shared libraries.
 
12849
        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'
 
12850
      fi
 
12851
    fi
 
12852
    ;;
 
12853
  chorus*)
 
12854
    case $cc_basename in
 
12855
      *)
 
12856
        # FIXME: insert proper C++ library support
 
12857
        ld_shlibs_CXX=no
 
12858
        ;;
 
12859
    esac
 
12860
    ;;
 
12861
 
 
12862
  cygwin* | mingw* | pw32*)
 
12863
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12864
    # as there is no search path for DLLs.
 
12865
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12866
    allow_undefined_flag_CXX=no
 
12867
    always_export_symbols_CXX=no
 
12868
    enable_shared_with_static_runtimes_CXX=yes
 
12869
 
 
12870
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
12871
      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'
 
12872
      # If the export-symbols file already is a .def file (1st line
 
12873
      # is EXPORTS), use it as is; otherwise, prepend...
 
12874
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12875
        cp $export_symbols $output_objdir/$soname.def;
 
12876
      else
 
12877
        echo EXPORTS > $output_objdir/$soname.def;
 
12878
        cat $export_symbols >> $output_objdir/$soname.def;
 
12879
      fi~
 
12880
      $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'
 
12881
    else
 
12882
      ld_shlibs_CXX=no
 
12883
    fi
 
12884
  ;;
 
12885
 
 
12886
  darwin* | rhapsody*)
 
12887
  if test "$GXX" = yes; then
 
12888
    archive_cmds_need_lc_CXX=no
 
12889
    case "$host_os" in
 
12890
    rhapsody* | darwin1.[012])
 
12891
      allow_undefined_flag_CXX='-Wl,-undefined -Wl,suppress'
 
12892
      ;;
 
12893
    *) # Darwin 1.3 on
 
12894
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
12895
        allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
12896
      else
 
12897
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
12898
          10.012)
 
12899
            allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
12900
            ;;
 
12901
          10.*)
 
12902
            allow_undefined_flag_CXX='-Wl,-undefined -Wl,dynamic_lookup'
 
12903
            ;;
 
12904
        esac
 
12905
      fi
 
12906
      ;;
 
12907
    esac
 
12908
    lt_int_apple_cc_single_mod=no
 
12909
    output_verbose_link_cmd='echo'
 
12910
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
12911
      lt_int_apple_cc_single_mod=yes
 
12912
    fi
 
12913
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12914
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
12915
    else
 
12916
      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'
 
12917
    fi
 
12918
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
12919
 
 
12920
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
12921
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12922
      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}'
 
12923
    else
 
12924
      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}'
 
12925
    fi
 
12926
    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}'
 
12927
    hardcode_direct_CXX=no
 
12928
    hardcode_automatic_CXX=yes
 
12929
    hardcode_shlibpath_var_CXX=unsupported
 
12930
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
12931
    link_all_deplibs_CXX=yes
 
12932
  else
 
12933
    ld_shlibs_CXX=no
 
12934
  fi
 
12935
    ;;
 
12936
 
 
12937
  dgux*)
 
12938
    case $cc_basename in
 
12939
      ec++)
 
12940
        # FIXME: insert proper C++ library support
 
12941
        ld_shlibs_CXX=no
 
12942
        ;;
 
12943
      ghcx)
 
12944
        # Green Hills C++ Compiler
 
12945
        # FIXME: insert proper C++ library support
 
12946
        ld_shlibs_CXX=no
 
12947
        ;;
 
12948
      *)
 
12949
        # FIXME: insert proper C++ library support
 
12950
        ld_shlibs_CXX=no
 
12951
        ;;
 
12952
    esac
 
12953
    ;;
 
12954
  freebsd12*)
 
12955
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
12956
    ld_shlibs_CXX=no
 
12957
    ;;
 
12958
  freebsd-elf*)
 
12959
    archive_cmds_need_lc_CXX=no
 
12960
    ;;
 
12961
  freebsd*)
 
12962
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12963
    # conventions
 
12964
    ld_shlibs_CXX=yes
 
12965
    ;;
 
12966
  gnu*)
 
12967
    ;;
 
12968
  hpux9*)
 
12969
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12970
    hardcode_libdir_separator_CXX=:
 
12971
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12972
    hardcode_direct_CXX=yes
 
12973
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12974
                                # but as the default
 
12975
                                # location of the library.
 
12976
 
 
12977
    case $cc_basename in
 
12978
    CC)
 
12979
      # FIXME: insert proper C++ library support
 
12980
      ld_shlibs_CXX=no
 
12981
      ;;
 
12982
    aCC)
 
12983
      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'
 
12984
      # Commands to make compiler produce verbose output that lists
 
12985
      # what "hidden" libraries, object files and flags are used when
 
12986
      # linking a shared library.
 
12987
      #
 
12988
      # There doesn't appear to be a way to prevent this compiler from
 
12989
      # explicitly linking system object files so we need to strip them
 
12990
      # from the output so that they don't get included in the library
 
12991
      # dependencies.
 
12992
      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'
 
12993
      ;;
 
12994
    *)
 
12995
      if test "$GXX" = yes; then
 
12996
        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'
 
12997
      else
 
12998
        # FIXME: insert proper C++ library support
 
12999
        ld_shlibs_CXX=no
 
13000
      fi
 
13001
      ;;
 
13002
    esac
 
13003
    ;;
 
13004
  hpux10*|hpux11*)
 
13005
    if test $with_gnu_ld = no; then
 
13006
      case "$host_cpu" in
 
13007
      hppa*64*)
 
13008
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13009
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
13010
        hardcode_libdir_separator_CXX=:
 
13011
        ;;
 
13012
      ia64*)
 
13013
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
13014
        ;;
 
13015
      *)
 
13016
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13017
        hardcode_libdir_separator_CXX=:
 
13018
        export_dynamic_flag_spec_CXX='${wl}-E'
 
13019
        ;;
 
13020
      esac
 
13021
    fi
 
13022
    case "$host_cpu" in
 
13023
    hppa*64*)
 
13024
      hardcode_direct_CXX=no
 
13025
      hardcode_shlibpath_var_CXX=no
 
13026
      ;;
 
13027
    ia64*)
 
13028
      hardcode_direct_CXX=no
 
13029
      hardcode_shlibpath_var_CXX=no
 
13030
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13031
                                              # but as the default
 
13032
                                              # location of the library.
 
13033
      ;;
 
13034
    *)
 
13035
      hardcode_direct_CXX=yes
 
13036
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13037
                                              # but as the default
 
13038
                                              # location of the library.
 
13039
      ;;
 
13040
    esac
 
13041
 
 
13042
    case $cc_basename in
 
13043
      CC)
 
13044
        # FIXME: insert proper C++ library support
 
13045
        ld_shlibs_CXX=no
 
13046
        ;;
 
13047
      aCC)
 
13048
        case "$host_cpu" in
 
13049
        hppa*64*|ia64*)
 
13050
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
13051
          ;;
 
13052
        *)
 
13053
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
 
13054
          ;;
 
13055
        esac
 
13056
        # Commands to make compiler produce verbose output that lists
 
13057
        # what "hidden" libraries, object files and flags are used when
 
13058
        # linking a shared library.
 
13059
        #
 
13060
        # There doesn't appear to be a way to prevent this compiler from
 
13061
        # explicitly linking system object files so we need to strip them
 
13062
        # from the output so that they don't get included in the library
 
13063
        # dependencies.
 
13064
        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'
 
13065
        ;;
 
13066
      *)
 
13067
        if test "$GXX" = yes; then
 
13068
          if test $with_gnu_ld = no; then
 
13069
            case "$host_cpu" in
 
13070
            ia64*|hppa*64*)
 
13071
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
13072
              ;;
 
13073
            *)
 
13074
              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'
 
13075
              ;;
 
13076
            esac
 
13077
          fi
 
13078
        else
 
13079
          # FIXME: insert proper C++ library support
 
13080
          ld_shlibs_CXX=no
 
13081
        fi
 
13082
        ;;
 
13083
    esac
 
13084
    ;;
 
13085
  irix5* | irix6*)
 
13086
    case $cc_basename in
 
13087
      CC)
 
13088
        # SGI C++
 
13089
        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'
 
13090
 
 
13091
        # Archives containing C++ object files must be created using
 
13092
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
13093
        # necessary to make sure instantiated templates are included
 
13094
        # in the archive.
 
13095
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
13096
        ;;
 
13097
      *)
 
13098
        if test "$GXX" = yes; then
 
13099
          if test "$with_gnu_ld" = no; then
 
13100
            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'
 
13101
          else
 
13102
            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'
 
13103
          fi
 
13104
        fi
 
13105
        link_all_deplibs_CXX=yes
 
13106
        ;;
 
13107
    esac
 
13108
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13109
    hardcode_libdir_separator_CXX=:
 
13110
    ;;
 
13111
  linux*)
 
13112
    case $cc_basename in
 
13113
      KCC)
 
13114
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13115
 
 
13116
        # KCC will only create a shared library if the output file
 
13117
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13118
        # to its proper name (with version) after linking.
 
13119
        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'
 
13120
        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'
 
13121
        # Commands to make compiler produce verbose output that lists
 
13122
        # what "hidden" libraries, object files and flags are used when
 
13123
        # linking a shared library.
 
13124
        #
 
13125
        # There doesn't appear to be a way to prevent this compiler from
 
13126
        # explicitly linking system object files so we need to strip them
 
13127
        # from the output so that they don't get included in the library
 
13128
        # dependencies.
 
13129
        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'
 
13130
 
 
13131
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
13132
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13133
 
 
13134
        # Archives containing C++ object files must be created using
 
13135
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13136
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13137
        ;;
 
13138
      icpc)
 
13139
        # Intel C++
 
13140
        with_gnu_ld=yes
 
13141
        archive_cmds_need_lc_CXX=no
 
13142
        archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
 
13143
        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'
 
13144
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13145
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13146
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13147
        ;;
 
13148
      cxx)
 
13149
        # Compaq C++
 
13150
        archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
 
13151
        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'
 
13152
 
 
13153
        runpath_var=LD_RUN_PATH
 
13154
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13155
        hardcode_libdir_separator_CXX=:
 
13156
 
 
13157
        # Commands to make compiler produce verbose output that lists
 
13158
        # what "hidden" libraries, object files and flags are used when
 
13159
        # linking a shared library.
 
13160
        #
 
13161
        # There doesn't appear to be a way to prevent this compiler from
 
13162
        # explicitly linking system object files so we need to strip them
 
13163
        # from the output so that they don't get included in the library
 
13164
        # dependencies.
 
13165
        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'
 
13166
        ;;
 
13167
    esac
 
13168
    ;;
 
13169
  lynxos*)
 
13170
    # FIXME: insert proper C++ library support
 
13171
    ld_shlibs_CXX=no
 
13172
    ;;
 
13173
  m88k*)
 
13174
    # FIXME: insert proper C++ library support
 
13175
    ld_shlibs_CXX=no
 
13176
    ;;
 
13177
  mvs*)
 
13178
    case $cc_basename in
 
13179
      cxx)
 
13180
        # FIXME: insert proper C++ library support
 
13181
        ld_shlibs_CXX=no
 
13182
        ;;
 
13183
      *)
 
13184
        # FIXME: insert proper C++ library support
 
13185
        ld_shlibs_CXX=no
 
13186
        ;;
 
13187
    esac
 
13188
    ;;
 
13189
  netbsd*)
 
13190
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13191
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
13192
      wlarc=
 
13193
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13194
      hardcode_direct_CXX=yes
 
13195
      hardcode_shlibpath_var_CXX=no
 
13196
    fi
 
13197
    # Workaround some broken pre-1.5 toolchains
 
13198
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
13199
    ;;
 
13200
  osf3*)
 
13201
    case $cc_basename in
 
13202
      KCC)
 
13203
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13204
 
 
13205
        # KCC will only create a shared library if the output file
 
13206
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13207
        # to its proper name (with version) after linking.
 
13208
        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'
 
13209
 
 
13210
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13211
        hardcode_libdir_separator_CXX=:
 
13212
 
 
13213
        # Archives containing C++ object files must be created using
 
13214
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13215
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13216
 
 
13217
        ;;
 
13218
      RCC)
 
13219
        # Rational C++ 2.4.1
 
13220
        # FIXME: insert proper C++ library support
 
13221
        ld_shlibs_CXX=no
 
13222
        ;;
 
13223
      cxx)
 
13224
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13225
        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'
 
13226
 
 
13227
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13228
        hardcode_libdir_separator_CXX=:
 
13229
 
 
13230
        # Commands to make compiler produce verbose output that lists
 
13231
        # what "hidden" libraries, object files and flags are used when
 
13232
        # linking a shared library.
 
13233
        #
 
13234
        # There doesn't appear to be a way to prevent this compiler from
 
13235
        # explicitly linking system object files so we need to strip them
 
13236
        # from the output so that they don't get included in the library
 
13237
        # dependencies.
 
13238
        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'
 
13239
        ;;
 
13240
      *)
 
13241
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13242
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13243
          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'
 
13244
 
 
13245
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13246
          hardcode_libdir_separator_CXX=:
 
13247
 
 
13248
          # Commands to make compiler produce verbose output that lists
 
13249
          # what "hidden" libraries, object files and flags are used when
 
13250
          # linking a shared library.
 
13251
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
13252
 
 
13253
        else
 
13254
          # FIXME: insert proper C++ library support
 
13255
          ld_shlibs_CXX=no
 
13256
        fi
 
13257
        ;;
 
13258
    esac
 
13259
    ;;
 
13260
  osf4* | osf5*)
 
13261
    case $cc_basename in
 
13262
      KCC)
 
13263
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13264
 
 
13265
        # KCC will only create a shared library if the output file
 
13266
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13267
        # to its proper name (with version) after linking.
 
13268
        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'
 
13269
 
 
13270
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13271
        hardcode_libdir_separator_CXX=:
 
13272
 
 
13273
        # Archives containing C++ object files must be created using
 
13274
        # the KAI C++ compiler.
 
13275
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
13276
        ;;
 
13277
      RCC)
 
13278
        # Rational C++ 2.4.1
 
13279
        # FIXME: insert proper C++ library support
 
13280
        ld_shlibs_CXX=no
 
13281
        ;;
 
13282
      cxx)
 
13283
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
13284
        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'
 
13285
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
13286
          echo "-hidden">> $lib.exp~
 
13287
          $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~
 
13288
          $rm $lib.exp'
 
13289
 
 
13290
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13291
        hardcode_libdir_separator_CXX=:
 
13292
 
 
13293
        # Commands to make compiler produce verbose output that lists
 
13294
        # what "hidden" libraries, object files and flags are used when
 
13295
        # linking a shared library.
 
13296
        #
 
13297
        # There doesn't appear to be a way to prevent this compiler from
 
13298
        # explicitly linking system object files so we need to strip them
 
13299
        # from the output so that they don't get included in the library
 
13300
        # dependencies.
 
13301
        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'
 
13302
        ;;
 
13303
      *)
 
13304
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13305
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13306
         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'
 
13307
 
 
13308
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13309
          hardcode_libdir_separator_CXX=:
 
13310
 
 
13311
          # Commands to make compiler produce verbose output that lists
 
13312
          # what "hidden" libraries, object files and flags are used when
 
13313
          # linking a shared library.
 
13314
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
13315
 
 
13316
        else
 
13317
          # FIXME: insert proper C++ library support
 
13318
          ld_shlibs_CXX=no
 
13319
        fi
 
13320
        ;;
 
13321
    esac
 
13322
    ;;
 
13323
  psos*)
 
13324
    # FIXME: insert proper C++ library support
 
13325
    ld_shlibs_CXX=no
 
13326
    ;;
 
13327
  sco*)
 
13328
    archive_cmds_need_lc_CXX=no
 
13329
    case $cc_basename in
 
13330
      CC)
 
13331
        # FIXME: insert proper C++ library support
 
13332
        ld_shlibs_CXX=no
 
13333
        ;;
 
13334
      *)
 
13335
        # FIXME: insert proper C++ library support
 
13336
        ld_shlibs_CXX=no
 
13337
        ;;
 
13338
    esac
 
13339
    ;;
 
13340
  sunos4*)
 
13341
    case $cc_basename in
 
13342
      CC)
 
13343
        # Sun C++ 4.x
 
13344
        # FIXME: insert proper C++ library support
 
13345
        ld_shlibs_CXX=no
 
13346
        ;;
 
13347
      lcc)
 
13348
        # Lucid
 
13349
        # FIXME: insert proper C++ library support
 
13350
        ld_shlibs_CXX=no
 
13351
        ;;
 
13352
      *)
 
13353
        # FIXME: insert proper C++ library support
 
13354
        ld_shlibs_CXX=no
 
13355
        ;;
 
13356
    esac
 
13357
    ;;
 
13358
  solaris*)
 
13359
    case $cc_basename in
 
13360
      CC)
 
13361
        # Sun C++ 4.2, 5.x and Centerline C++
 
13362
        no_undefined_flag_CXX=' -zdefs'
 
13363
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
 
13364
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13365
        $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'
 
13366
 
 
13367
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13368
        hardcode_shlibpath_var_CXX=no
 
13369
        case $host_os in
 
13370
          solaris2.0-5 | solaris2.0-5.*) ;;
 
13371
          *)
 
13372
            # The C++ compiler is used as linker so we must use $wl
 
13373
            # flag to pass the commands to the underlying system
 
13374
            # linker.
 
13375
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13376
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
13377
            ;;
 
13378
        esac
 
13379
        link_all_deplibs_CXX=yes
 
13380
 
 
13381
        # Commands to make compiler produce verbose output that lists
 
13382
        # what "hidden" libraries, object files and flags are used when
 
13383
        # linking a shared library.
 
13384
        #
 
13385
        # There doesn't appear to be a way to prevent this compiler from
 
13386
        # explicitly linking system object files so we need to strip them
 
13387
        # from the output so that they don't get included in the library
 
13388
        # dependencies.
 
13389
        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'
 
13390
 
 
13391
        # Archives containing C++ object files must be created using
 
13392
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13393
        # necessary to make sure instantiated templates are included
 
13394
        # in the archive.
 
13395
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13396
        ;;
 
13397
      gcx)
 
13398
        # Green Hills C++ Compiler
 
13399
        archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
 
13400
 
 
13401
        # The C++ compiler must be used to create the archive.
 
13402
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
13403
        ;;
 
13404
      *)
 
13405
        # GNU C++ compiler with Solaris linker
 
13406
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13407
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
13408
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
13409
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
 
13410
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13411
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
 
13412
 
 
13413
            # Commands to make compiler produce verbose output that lists
 
13414
            # what "hidden" libraries, object files and flags are used when
 
13415
            # linking a shared library.
 
13416
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
13417
          else
 
13418
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
13419
            # platform.
 
13420
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
 
13421
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13422
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
 
13423
 
 
13424
            # Commands to make compiler produce verbose output that lists
 
13425
            # what "hidden" libraries, object files and flags are used when
 
13426
            # linking a shared library.
 
13427
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
13428
          fi
 
13429
 
 
13430
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
13431
        fi
 
13432
        ;;
 
13433
    esac
 
13434
    ;;
 
13435
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
13436
    archive_cmds_need_lc_CXX=no
 
13437
    ;;
 
13438
  tandem*)
 
13439
    case $cc_basename in
 
13440
      NCC)
 
13441
        # NonStop-UX NCC 3.20
 
13442
        # FIXME: insert proper C++ library support
 
13443
        ld_shlibs_CXX=no
 
13444
        ;;
 
13445
      *)
 
13446
        # FIXME: insert proper C++ library support
 
13447
        ld_shlibs_CXX=no
 
13448
        ;;
 
13449
    esac
 
13450
    ;;
 
13451
  vxworks*)
 
13452
    # FIXME: insert proper C++ library support
 
13453
    ld_shlibs_CXX=no
 
13454
    ;;
 
13455
  *)
 
13456
    # FIXME: insert proper C++ library support
 
13457
    ld_shlibs_CXX=no
 
13458
    ;;
 
13459
esac
 
13460
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13461
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
13462
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13463
 
 
13464
GCC_CXX="$GXX"
 
13465
LD_CXX="$LD"
 
13466
 
 
13467
## CAVEAT EMPTOR:
 
13468
## There is no encapsulation within the following macros, do not change
 
13469
## the running order or otherwise move them around unless you know exactly
 
13470
## what you are doing...
 
13471
 
 
13472
cat > conftest.$ac_ext <<EOF
 
13473
class Foo
 
13474
{
 
13475
public:
 
13476
  Foo (void) { a = 0; }
 
13477
private:
 
13478
  int a;
 
13479
};
 
13480
EOF
 
13481
 
 
13482
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13483
  (eval $ac_compile) 2>&5
 
13484
  ac_status=$?
 
13485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13486
  (exit $ac_status); }; then
 
13487
  # Parse the compiler output and extract the necessary
 
13488
  # objects, libraries and library flags.
 
13489
 
 
13490
  # Sentinel used to keep track of whether or not we are before
 
13491
  # the conftest object file.
 
13492
  pre_test_object_deps_done=no
 
13493
 
 
13494
  # The `*' in the case matches for architectures that use `case' in
 
13495
  # $output_verbose_cmd can trigger glob expansion during the loop
 
13496
  # eval without this substitution.
 
13497
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
13498
 
 
13499
  for p in `eval $output_verbose_link_cmd`; do
 
13500
    case $p in
 
13501
 
 
13502
    -L* | -R* | -l*)
 
13503
       # Some compilers place space between "-{L,R}" and the path.
 
13504
       # Remove the space.
 
13505
       if test $p = "-L" \
 
13506
          || test $p = "-R"; then
 
13507
         prev=$p
 
13508
         continue
 
13509
       else
 
13510
         prev=
 
13511
       fi
 
13512
 
 
13513
       if test "$pre_test_object_deps_done" = no; then
 
13514
         case $p in
 
13515
         -L* | -R*)
 
13516
           # Internal compiler library paths should come after those
 
13517
           # provided the user.  The postdeps already come after the
 
13518
           # user supplied libs so there is no need to process them.
 
13519
           if test -z "$compiler_lib_search_path_CXX"; then
 
13520
             compiler_lib_search_path_CXX="${prev}${p}"
 
13521
           else
 
13522
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
13523
           fi
 
13524
           ;;
 
13525
         # The "-l" case would never come before the object being
 
13526
         # linked, so don't bother handling this case.
 
13527
         esac
 
13528
       else
 
13529
         if test -z "$postdeps_CXX"; then
 
13530
           postdeps_CXX="${prev}${p}"
 
13531
         else
 
13532
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
13533
         fi
 
13534
       fi
 
13535
       ;;
 
13536
 
 
13537
    *.$objext|*.$libext)
 
13538
       # This assumes that the test object file only shows up
 
13539
       # once in the compiler output.
 
13540
       if test "$p" = "conftest.$objext"; then
 
13541
         pre_test_object_deps_done=yes
 
13542
         continue
 
13543
       fi
 
13544
 
 
13545
       if test "$pre_test_object_deps_done" = no; then
 
13546
         if test -z "$predep_objects_CXX"; then
 
13547
           predep_objects_CXX="$p"
 
13548
         else
 
13549
           predep_objects_CXX="$predep_objects_CXX $p"
 
13550
         fi
 
13551
       else
 
13552
         if test -z "$postdep_objects_CXX"; then
 
13553
           postdep_objects_CXX="$p"
 
13554
         else
 
13555
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
13556
         fi
 
13557
       fi
 
13558
       ;;
 
13559
 
 
13560
    *) ;; # Ignore the rest.
 
13561
 
 
13562
    esac
 
13563
  done
 
13564
 
 
13565
  # Clean up.
 
13566
  rm -f a.out a.exe
 
13567
else
 
13568
  echo "libtool.m4: error: problem compiling CXX test program"
 
13569
fi
 
13570
 
 
13571
$rm -f confest.$objext
 
13572
 
 
13573
case " $postdeps_CXX " in
 
13574
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
13575
esac
 
13576
 
 
13577
lt_prog_compiler_wl_CXX=
 
13578
lt_prog_compiler_pic_CXX=
 
13579
lt_prog_compiler_static_CXX=
 
13580
 
 
13581
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13582
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13583
 
 
13584
  # C++ specific cases for pic, static, wl, etc.
 
13585
  if test "$GXX" = yes; then
 
13586
    lt_prog_compiler_wl_CXX='-Wl,'
 
13587
    lt_prog_compiler_static_CXX='-static'
 
13588
 
 
13589
    case $host_os in
 
13590
    aix*)
 
13591
      # All AIX code is PIC.
 
13592
      if test "$host_cpu" = ia64; then
 
13593
        # AIX 5 now supports IA64 processor
 
13594
        lt_prog_compiler_static_CXX='-Bstatic'
 
13595
      fi
 
13596
      ;;
 
13597
    amigaos*)
 
13598
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13599
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13600
      # like `-m68040'.
 
13601
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
13602
      ;;
 
13603
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13604
      # PIC is the default for these OSes.
 
13605
      ;;
 
13606
    mingw* | os2* | pw32*)
 
13607
      # This hack is so that the source file can tell whether it is being
 
13608
      # built for inclusion in a dll (and should export symbols for example).
 
13609
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
13610
      ;;
 
13611
    darwin* | rhapsody*)
 
13612
      # PIC is the default on this platform
 
13613
      # Common symbols not allowed in MH_DYLIB files
 
13614
      lt_prog_compiler_pic_CXX='-fno-common'
 
13615
      ;;
 
13616
    *djgpp*)
 
13617
      # DJGPP does not support shared libraries at all
 
13618
      lt_prog_compiler_pic_CXX=
 
13619
      ;;
 
13620
    sysv4*MP*)
 
13621
      if test -d /usr/nec; then
 
13622
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
13623
      fi
 
13624
      ;;
 
13625
    hpux*)
 
13626
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13627
      # not for PA HP-UX.
 
13628
      case "$host_cpu" in
 
13629
      hppa*64*|ia64*)
 
13630
        ;;
 
13631
      *)
 
13632
        lt_prog_compiler_pic_CXX='-fPIC'
 
13633
        ;;
 
13634
      esac
 
13635
      ;;
 
13636
    *)
 
13637
      lt_prog_compiler_pic_CXX='-fPIC'
 
13638
      ;;
 
13639
    esac
 
13640
  else
 
13641
    case $host_os in
 
13642
      aix4* | aix5*)
 
13643
        # All AIX code is PIC.
 
13644
        if test "$host_cpu" = ia64; then
 
13645
          # AIX 5 now supports IA64 processor
 
13646
          lt_prog_compiler_static_CXX='-Bstatic'
 
13647
        else
 
13648
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
13649
        fi
 
13650
        ;;
 
13651
      chorus*)
 
13652
        case $cc_basename in
 
13653
        cxch68)
 
13654
          # Green Hills C++ Compiler
 
13655
          # _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"
 
13656
          ;;
 
13657
        esac
 
13658
        ;;
 
13659
      dgux*)
 
13660
        case $cc_basename in
 
13661
          ec++)
 
13662
            lt_prog_compiler_pic_CXX='-KPIC'
 
13663
            ;;
 
13664
          ghcx)
 
13665
            # Green Hills C++ Compiler
 
13666
            lt_prog_compiler_pic_CXX='-pic'
 
13667
            ;;
 
13668
          *)
 
13669
            ;;
 
13670
        esac
 
13671
        ;;
 
13672
      freebsd*)
 
13673
        # FreeBSD uses GNU C++
 
13674
        ;;
 
13675
      hpux9* | hpux10* | hpux11*)
 
13676
        case $cc_basename in
 
13677
          CC)
 
13678
            lt_prog_compiler_wl_CXX='-Wl,'
 
13679
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
13680
            if test "$host_cpu" != ia64; then
 
13681
              lt_prog_compiler_pic_CXX='+Z'
 
13682
            fi
 
13683
            ;;
 
13684
          aCC)
 
13685
            lt_prog_compiler_wl_CXX='-Wl,'
 
13686
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
13687
            case "$host_cpu" in
 
13688
            hppa*64*|ia64*)
 
13689
              # +Z the default
 
13690
              ;;
 
13691
            *)
 
13692
              lt_prog_compiler_pic_CXX='+Z'
 
13693
              ;;
 
13694
            esac
 
13695
            ;;
 
13696
          *)
 
13697
            ;;
 
13698
        esac
 
13699
        ;;
 
13700
      irix5* | irix6* | nonstopux*)
 
13701
        case $cc_basename in
 
13702
          CC)
 
13703
            lt_prog_compiler_wl_CXX='-Wl,'
 
13704
            lt_prog_compiler_static_CXX='-non_shared'
 
13705
            # CC pic flag -KPIC is the default.
 
13706
            ;;
 
13707
          *)
 
13708
            ;;
 
13709
        esac
 
13710
        ;;
 
13711
      linux*)
 
13712
        case $cc_basename in
 
13713
          KCC)
 
13714
            # KAI C++ Compiler
 
13715
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13716
            lt_prog_compiler_pic_CXX='-fPIC'
 
13717
            ;;
 
13718
          icpc)
 
13719
            # Intel C++
 
13720
            lt_prog_compiler_wl_CXX='-Wl,'
 
13721
            lt_prog_compiler_pic_CXX='-KPIC'
 
13722
            lt_prog_compiler_static_CXX='-static'
 
13723
            ;;
 
13724
          cxx)
 
13725
            # Compaq C++
 
13726
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13727
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13728
            lt_prog_compiler_pic_CXX=
 
13729
            lt_prog_compiler_static_CXX='-non_shared'
 
13730
            ;;
 
13731
          *)
 
13732
            ;;
 
13733
        esac
 
13734
        ;;
 
13735
      lynxos*)
 
13736
        ;;
 
13737
      m88k*)
 
13738
        ;;
 
13739
      mvs*)
 
13740
        case $cc_basename in
 
13741
          cxx)
 
13742
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13743
            ;;
 
13744
          *)
 
13745
            ;;
 
13746
        esac
 
13747
        ;;
 
13748
      netbsd*)
 
13749
        ;;
 
13750
      osf3* | osf4* | osf5*)
 
13751
        case $cc_basename in
 
13752
          KCC)
 
13753
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13754
            ;;
 
13755
          RCC)
 
13756
            # Rational C++ 2.4.1
 
13757
            lt_prog_compiler_pic_CXX='-pic'
 
13758
            ;;
 
13759
          cxx)
 
13760
            # Digital/Compaq C++
 
13761
            lt_prog_compiler_wl_CXX='-Wl,'
 
13762
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13763
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13764
            lt_prog_compiler_pic_CXX=
 
13765
            lt_prog_compiler_static_CXX='-non_shared'
 
13766
            ;;
 
13767
          *)
 
13768
            ;;
 
13769
        esac
 
13770
        ;;
 
13771
      psos*)
 
13772
        ;;
 
13773
      sco*)
 
13774
        case $cc_basename in
 
13775
          CC)
 
13776
            lt_prog_compiler_pic_CXX='-fPIC'
 
13777
            ;;
 
13778
          *)
 
13779
            ;;
 
13780
        esac
 
13781
        ;;
 
13782
      solaris*)
 
13783
        case $cc_basename in
 
13784
          CC)
 
13785
            # Sun C++ 4.2, 5.x and Centerline C++
 
13786
            lt_prog_compiler_pic_CXX='-KPIC'
 
13787
            lt_prog_compiler_static_CXX='-Bstatic'
 
13788
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13789
            ;;
 
13790
          gcx)
 
13791
            # Green Hills C++ Compiler
 
13792
            lt_prog_compiler_pic_CXX='-PIC'
 
13793
            ;;
 
13794
          *)
 
13795
            ;;
 
13796
        esac
 
13797
        ;;
 
13798
      sunos4*)
 
13799
        case $cc_basename in
 
13800
          CC)
 
13801
            # Sun C++ 4.x
 
13802
            lt_prog_compiler_pic_CXX='-pic'
 
13803
            lt_prog_compiler_static_CXX='-Bstatic'
 
13804
            ;;
 
13805
          lcc)
 
13806
            # Lucid
 
13807
            lt_prog_compiler_pic_CXX='-pic'
 
13808
            ;;
 
13809
          *)
 
13810
            ;;
 
13811
        esac
 
13812
        ;;
 
13813
      tandem*)
 
13814
        case $cc_basename in
 
13815
          NCC)
 
13816
            # NonStop-UX NCC 3.20
 
13817
            lt_prog_compiler_pic_CXX='-KPIC'
 
13818
            ;;
 
13819
          *)
 
13820
            ;;
 
13821
        esac
 
13822
        ;;
 
13823
      unixware*)
 
13824
        ;;
 
13825
      vxworks*)
 
13826
        ;;
 
13827
      *)
 
13828
        lt_prog_compiler_can_build_shared_CXX=no
 
13829
        ;;
 
13830
    esac
 
13831
  fi
 
13832
 
 
13833
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
13834
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
13835
 
 
13836
#
 
13837
# Check to make sure the PIC flag actually works.
 
13838
#
 
13839
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13840
 
 
13841
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13842
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
13843
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
13844
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13845
else
 
13846
  lt_prog_compiler_pic_works_CXX=no
 
13847
  ac_outfile=conftest.$ac_objext
 
13848
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13849
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13850
   # Insert the option either (1) after the last *FLAGS variable, or
 
13851
   # (2) before a word containing "conftest.", or (3) at the end.
 
13852
   # Note that $ac_compile itself does not contain backslashes and begins
 
13853
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13854
   # The option is referenced via a variable to avoid confusing sed.
 
13855
   lt_compile=`echo "$ac_compile" | $SED \
 
13856
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13857
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13858
   -e 's:$: $lt_compiler_flag:'`
 
13859
   (eval echo "\"\$as_me:13859: $lt_compile\"" >&5)
 
13860
   (eval "$lt_compile" 2>conftest.err)
 
13861
   ac_status=$?
 
13862
   cat conftest.err >&5
 
13863
   echo "$as_me:13863: \$? = $ac_status" >&5
 
13864
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13865
     # The compiler can only warn and ignore the option if not recognized
 
13866
     # So say no if there are warnings
 
13867
     if test ! -s conftest.err; then
 
13868
       lt_prog_compiler_pic_works_CXX=yes
 
13869
     fi
 
13870
   fi
 
13871
   $rm conftest*
 
13872
 
 
13873
fi
 
13874
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
13875
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
13876
 
 
13877
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
13878
    case $lt_prog_compiler_pic_CXX in
 
13879
     "" | " "*) ;;
 
13880
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13881
     esac
 
13882
else
 
13883
    lt_prog_compiler_pic_CXX=
 
13884
     lt_prog_compiler_can_build_shared_CXX=no
 
13885
fi
 
13886
 
 
13887
fi
 
13888
case "$host_os" in
 
13889
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13890
  *djgpp*)
 
13891
    lt_prog_compiler_pic_CXX=
 
13892
    ;;
 
13893
  *)
 
13894
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13895
    ;;
 
13896
esac
 
13897
 
 
13898
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13899
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13900
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13901
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13902
else
 
13903
  lt_cv_prog_compiler_c_o_CXX=no
 
13904
   $rm -r conftest 2>/dev/null
 
13905
   mkdir conftest
 
13906
   cd conftest
 
13907
   mkdir out
 
13908
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13909
 
 
13910
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
13911
   # that will create temporary files in the current directory regardless of
 
13912
   # the output directory.  Thus, making CWD read-only will cause this test
 
13913
   # to fail, enabling locking or at least warning the user not to do parallel
 
13914
   # builds.
 
13915
   chmod -w .
 
13916
 
 
13917
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13918
   # Insert the option either (1) after the last *FLAGS variable, or
 
13919
   # (2) before a word containing "conftest.", or (3) at the end.
 
13920
   # Note that $ac_compile itself does not contain backslashes and begins
 
13921
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13922
   lt_compile=`echo "$ac_compile" | $SED \
 
13923
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13924
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13925
   -e 's:$: $lt_compiler_flag:'`
 
13926
   (eval echo "\"\$as_me:13926: $lt_compile\"" >&5)
 
13927
   (eval "$lt_compile" 2>out/conftest.err)
 
13928
   ac_status=$?
 
13929
   cat out/conftest.err >&5
 
13930
   echo "$as_me:13930: \$? = $ac_status" >&5
 
13931
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13932
   then
 
13933
     # The compiler can only warn and ignore the option if not recognized
 
13934
     # So say no if there are warnings
 
13935
     if test ! -s out/conftest.err; then
 
13936
       lt_cv_prog_compiler_c_o_CXX=yes
 
13937
     fi
 
13938
   fi
 
13939
   chmod u+w .
 
13940
   $rm conftest* out/*
 
13941
   rmdir out
 
13942
   cd ..
 
13943
   rmdir conftest
 
13944
   $rm conftest*
 
13945
 
 
13946
fi
 
13947
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13948
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
13949
 
 
13950
 
 
13951
hard_links="nottested"
 
13952
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13953
  # do not overwrite the value of need_locks provided by the user
 
13954
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13955
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13956
  hard_links=yes
 
13957
  $rm conftest*
 
13958
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13959
  touch conftest.a
 
13960
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13961
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13962
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13963
echo "${ECHO_T}$hard_links" >&6
 
13964
  if test "$hard_links" = no; then
 
13965
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13966
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13967
    need_locks=warn
 
13968
  fi
 
13969
else
 
13970
  need_locks=no
 
13971
fi
 
13972
 
 
13973
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13974
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13975
 
 
13976
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13977
  case $host_os in
 
13978
  aix4* | aix5*)
 
13979
    # If we're using GNU nm, then we don't want the "-C" option.
 
13980
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13981
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13982
      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'
 
13983
    else
 
13984
      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'
 
13985
    fi
 
13986
    ;;
 
13987
  pw32*)
 
13988
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13989
  ;;
 
13990
  cygwin* | mingw*)
 
13991
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13992
  ;;
 
13993
  *)
 
13994
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13995
  ;;
 
13996
  esac
 
13997
 
 
13998
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13999
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
14000
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
14001
 
 
14002
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14003
if test "$GCC" = yes; then
 
14004
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14005
fi
 
14006
 
 
14007
#
 
14008
# Do we need to explicitly link libc?
 
14009
#
 
14010
case "x$archive_cmds_need_lc_CXX" in
 
14011
x|xyes)
 
14012
  # Assume -lc should be added
 
14013
  archive_cmds_need_lc_CXX=yes
 
14014
 
 
14015
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14016
    case $archive_cmds_CXX in
 
14017
    *'~'*)
 
14018
      # FIXME: we may have to deal with multi-command sequences.
 
14019
      ;;
 
14020
    '$CC '*)
 
14021
      # Test whether the compiler implicitly links with -lc since on some
 
14022
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14023
      # to ld, don't add -lc before -lgcc.
 
14024
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14025
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14026
      $rm conftest*
 
14027
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14028
 
 
14029
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14030
  (eval $ac_compile) 2>&5
 
14031
  ac_status=$?
 
14032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14033
  (exit $ac_status); } 2>conftest.err; then
 
14034
        soname=conftest
 
14035
        lib=conftest
 
14036
        libobjs=conftest.$ac_objext
 
14037
        deplibs=
 
14038
        wl=$lt_prog_compiler_wl_CXX
 
14039
        compiler_flags=-v
 
14040
        linker_flags=-v
 
14041
        verstring=
 
14042
        output_objdir=.
 
14043
        libname=conftest
 
14044
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
14045
        allow_undefined_flag_CXX=
 
14046
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14047
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14048
  ac_status=$?
 
14049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14050
  (exit $ac_status); }
 
14051
        then
 
14052
          archive_cmds_need_lc_CXX=no
 
14053
        else
 
14054
          archive_cmds_need_lc_CXX=yes
 
14055
        fi
 
14056
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
14057
      else
 
14058
        cat conftest.err 1>&5
 
14059
      fi
 
14060
      $rm conftest*
 
14061
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
14062
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
14063
      ;;
 
14064
    esac
 
14065
  fi
 
14066
  ;;
 
14067
esac
 
14068
 
 
14069
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14070
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14071
library_names_spec=
 
14072
libname_spec='lib$name'
 
14073
soname_spec=
 
14074
shrext=".so"
 
14075
postinstall_cmds=
 
14076
postuninstall_cmds=
 
14077
finish_cmds=
 
14078
finish_eval=
 
14079
shlibpath_var=
 
14080
shlibpath_overrides_runpath=unknown
 
14081
version_type=none
 
14082
dynamic_linker="$host_os ld.so"
 
14083
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14084
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14085
need_lib_prefix=unknown
 
14086
hardcode_into_libs=no
 
14087
 
 
14088
# when you set need_version to no, make sure it does not cause -set_version
 
14089
# flags to be left without arguments
 
14090
need_version=unknown
 
14091
 
 
14092
case $host_os in
 
14093
aix3*)
 
14094
  version_type=linux
 
14095
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14096
  shlibpath_var=LIBPATH
 
14097
 
 
14098
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14099
  soname_spec='${libname}${release}${shared_ext}$major'
 
14100
  ;;
 
14101
 
 
14102
aix4* | aix5*)
 
14103
  version_type=linux
 
14104
  need_lib_prefix=no
 
14105
  need_version=no
 
14106
  hardcode_into_libs=yes
 
14107
  if test "$host_cpu" = ia64; then
 
14108
    # AIX 5 supports IA64
 
14109
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14110
    shlibpath_var=LD_LIBRARY_PATH
 
14111
  else
 
14112
    # With GCC up to 2.95.x, collect2 would create an import file
 
14113
    # for dependence libraries.  The import file would start with
 
14114
    # the line `#! .'.  This would cause the generated library to
 
14115
    # depend on `.', always an invalid library.  This was fixed in
 
14116
    # development snapshots of GCC prior to 3.0.
 
14117
    case $host_os in
 
14118
      aix4 | aix4.[01] | aix4.[01].*)
 
14119
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14120
           echo ' yes '
 
14121
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14122
        :
 
14123
      else
 
14124
        can_build_shared=no
 
14125
      fi
 
14126
      ;;
 
14127
    esac
 
14128
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14129
    # soname into executable. Probably we can add versioning support to
 
14130
    # collect2, so additional links can be useful in future.
 
14131
    if test "$aix_use_runtimelinking" = yes; then
 
14132
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14133
      # instead of lib<name>.a to let people know that these are not
 
14134
      # typical AIX shared libraries.
 
14135
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14136
    else
 
14137
      # We preserve .a as extension for shared libraries through AIX4.2
 
14138
      # and later when we are not doing run time linking.
 
14139
      library_names_spec='${libname}${release}.a $libname.a'
 
14140
      soname_spec='${libname}${release}${shared_ext}$major'
 
14141
    fi
 
14142
    shlibpath_var=LIBPATH
 
14143
  fi
 
14144
  ;;
 
14145
 
 
14146
amigaos*)
 
14147
  library_names_spec='$libname.ixlibrary $libname.a'
 
14148
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14149
  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'
 
14150
  ;;
 
14151
 
 
14152
beos*)
 
14153
  library_names_spec='${libname}${shared_ext}'
 
14154
  dynamic_linker="$host_os ld.so"
 
14155
  shlibpath_var=LIBRARY_PATH
 
14156
  ;;
 
14157
 
 
14158
bsdi4*)
 
14159
  version_type=linux
 
14160
  need_version=no
 
14161
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14162
  soname_spec='${libname}${release}${shared_ext}$major'
 
14163
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14164
  shlibpath_var=LD_LIBRARY_PATH
 
14165
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14166
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14167
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14168
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14169
  # libtool to hard-code these into programs
 
14170
  ;;
 
14171
 
 
14172
cygwin* | mingw* | pw32*)
 
14173
  version_type=windows
 
14174
  shrext=".dll"
 
14175
  need_version=no
 
14176
  need_lib_prefix=no
 
14177
 
 
14178
  case $GCC,$host_os in
 
14179
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14180
    library_names_spec='$libname.dll.a'
 
14181
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14182
    postinstall_cmds='base_file=`basename \${file}`~
 
14183
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14184
      dldir=$destdir/`dirname \$dlpath`~
 
14185
      test -d \$dldir || mkdir -p \$dldir~
 
14186
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14187
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14188
      dlpath=$dir/\$dldll~
 
14189
       $rm \$dlpath'
 
14190
    shlibpath_overrides_runpath=yes
 
14191
 
 
14192
    case $host_os in
 
14193
    cygwin*)
 
14194
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14195
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14196
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14197
      ;;
 
14198
    mingw*)
 
14199
      # MinGW DLLs use traditional 'lib' prefix
 
14200
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14201
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14202
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14203
        # It is most probably a Windows format PATH printed by
 
14204
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14205
        # path with ; separators, and with drive letters. We can handle the
 
14206
        # drive letters (cygwin fileutils understands them), so leave them,
 
14207
        # especially as we might pass files found there to a mingw objdump,
 
14208
        # which wouldn't understand a cygwinified path. Ahh.
 
14209
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14210
      else
 
14211
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14212
      fi
 
14213
      ;;
 
14214
    pw32*)
 
14215
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14216
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14217
      ;;
 
14218
    esac
 
14219
    ;;
 
14220
 
 
14221
  *)
 
14222
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14223
    ;;
 
14224
  esac
 
14225
  dynamic_linker='Win32 ld.exe'
 
14226
  # FIXME: first we should search . and the directory the executable is in
 
14227
  shlibpath_var=PATH
 
14228
  ;;
 
14229
 
 
14230
darwin* | rhapsody*)
 
14231
  dynamic_linker="$host_os dyld"
 
14232
  version_type=darwin
 
14233
  need_lib_prefix=no
 
14234
  need_version=no
 
14235
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14236
  soname_spec='${libname}${release}${major}$shared_ext'
 
14237
  shlibpath_overrides_runpath=yes
 
14238
  shlibpath_var=DYLD_LIBRARY_PATH
 
14239
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
14240
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14241
  if test "$GCC" = yes; then
 
14242
    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"`
 
14243
  else
 
14244
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14245
  fi
 
14246
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14247
  ;;
 
14248
 
 
14249
dgux*)
 
14250
  version_type=linux
 
14251
  need_lib_prefix=no
 
14252
  need_version=no
 
14253
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14254
  soname_spec='${libname}${release}${shared_ext}$major'
 
14255
  shlibpath_var=LD_LIBRARY_PATH
 
14256
  ;;
 
14257
 
 
14258
freebsd1*)
 
14259
  dynamic_linker=no
 
14260
  ;;
 
14261
 
 
14262
freebsd*-gnu*)
 
14263
  version_type=linux
 
14264
  need_lib_prefix=no
 
14265
  need_version=no
 
14266
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14267
  soname_spec='${libname}${release}${shared_ext}$major'
 
14268
  shlibpath_var=LD_LIBRARY_PATH
 
14269
  shlibpath_overrides_runpath=no
 
14270
  hardcode_into_libs=yes
 
14271
  dynamic_linker='GNU ld.so'
 
14272
  ;;
 
14273
 
 
14274
freebsd*)
 
14275
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14276
  version_type=freebsd-$objformat
 
14277
  case $version_type in
 
14278
    freebsd-elf*)
 
14279
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14280
      need_version=no
 
14281
      need_lib_prefix=no
 
14282
      ;;
 
14283
    freebsd-*)
 
14284
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14285
      need_version=yes
 
14286
      ;;
 
14287
  esac
 
14288
  shlibpath_var=LD_LIBRARY_PATH
 
14289
  case $host_os in
 
14290
  freebsd2*)
 
14291
    shlibpath_overrides_runpath=yes
 
14292
    ;;
 
14293
  freebsd3.01* | freebsdelf3.01*)
 
14294
    shlibpath_overrides_runpath=yes
 
14295
    hardcode_into_libs=yes
 
14296
    ;;
 
14297
  *) # from 3.2 on
 
14298
    shlibpath_overrides_runpath=no
 
14299
    hardcode_into_libs=yes
 
14300
    ;;
 
14301
  esac
 
14302
  ;;
 
14303
 
 
14304
gnu*)
 
14305
  version_type=linux
 
14306
  need_lib_prefix=no
 
14307
  need_version=no
 
14308
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14309
  soname_spec='${libname}${release}${shared_ext}$major'
 
14310
  shlibpath_var=LD_LIBRARY_PATH
 
14311
  hardcode_into_libs=yes
 
14312
  ;;
 
14313
 
 
14314
hpux9* | hpux10* | hpux11*)
 
14315
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14316
  # link against other versions.
 
14317
  version_type=sunos
 
14318
  need_lib_prefix=no
 
14319
  need_version=no
 
14320
  case "$host_cpu" in
 
14321
  ia64*)
 
14322
    shrext='.so'
 
14323
    hardcode_into_libs=yes
 
14324
    dynamic_linker="$host_os dld.so"
 
14325
    shlibpath_var=LD_LIBRARY_PATH
 
14326
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14327
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14328
    soname_spec='${libname}${release}${shared_ext}$major'
 
14329
    if test "X$HPUX_IA64_MODE" = X32; then
 
14330
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14331
    else
 
14332
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14333
    fi
 
14334
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14335
    ;;
 
14336
   hppa*64*)
 
14337
     shrext='.sl'
 
14338
     hardcode_into_libs=yes
 
14339
     dynamic_linker="$host_os dld.sl"
 
14340
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14341
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14342
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14343
     soname_spec='${libname}${release}${shared_ext}$major'
 
14344
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14345
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14346
     ;;
 
14347
   *)
 
14348
    shrext='.sl'
 
14349
    dynamic_linker="$host_os dld.sl"
 
14350
    shlibpath_var=SHLIB_PATH
 
14351
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14352
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14353
    soname_spec='${libname}${release}${shared_ext}$major'
 
14354
    ;;
 
14355
  esac
 
14356
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14357
  postinstall_cmds='chmod 555 $lib'
 
14358
  ;;
 
14359
 
 
14360
irix5* | irix6* | nonstopux*)
 
14361
  case $host_os in
 
14362
    nonstopux*) version_type=nonstopux ;;
 
14363
    *)
 
14364
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14365
                version_type=linux
 
14366
        else
 
14367
                version_type=irix
 
14368
        fi ;;
 
14369
  esac
 
14370
  need_lib_prefix=no
 
14371
  need_version=no
 
14372
  soname_spec='${libname}${release}${shared_ext}$major'
 
14373
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14374
  case $host_os in
 
14375
  irix5* | nonstopux*)
 
14376
    libsuff= shlibsuff=
 
14377
    ;;
 
14378
  *)
 
14379
    case $LD in # libtool.m4 will add one of these switches to LD
 
14380
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14381
      libsuff= shlibsuff= libmagic=32-bit;;
 
14382
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14383
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14384
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14385
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14386
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14387
    esac
 
14388
    ;;
 
14389
  esac
 
14390
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14391
  shlibpath_overrides_runpath=no
 
14392
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14393
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14394
  hardcode_into_libs=yes
 
14395
  ;;
 
14396
 
 
14397
# No shared lib support for Linux oldld, aout, or coff.
 
14398
linux*oldld* | linux*aout* | linux*coff*)
 
14399
  dynamic_linker=no
 
14400
  ;;
 
14401
 
 
14402
# This must be Linux ELF.
 
14403
linux*)
 
14404
  version_type=linux
 
14405
  need_lib_prefix=no
 
14406
  need_version=no
 
14407
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14408
  soname_spec='${libname}${release}${shared_ext}$major'
 
14409
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14410
  libsuff=
 
14411
  if test "x$LINUX_64_MODE" = x64; then
 
14412
    # Some platforms are per default 64-bit, so there's no /lib64
 
14413
    if test -d /lib64; then
 
14414
      libsuff=64
 
14415
    fi
 
14416
  fi
 
14417
  shlibpath_var=LD_LIBRARY_PATH
 
14418
  shlibpath_overrides_runpath=no
 
14419
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
14420
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
14421
  # This implies no fast_install, which is unacceptable.
 
14422
  # Some rework will be needed to allow for fast_install
 
14423
  # before this can be enabled.
 
14424
  hardcode_into_libs=yes
 
14425
 
 
14426
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14427
  # powerpc, because MkLinux only supported shared libraries with the
 
14428
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14429
  # most powerpc-linux boxes support dynamic linking these days and
 
14430
  # people can always --disable-shared, the test was removed, and we
 
14431
  # assume the GNU/Linux dynamic linker is in use.
 
14432
  dynamic_linker='GNU/Linux ld.so'
 
14433
  ;;
 
14434
 
 
14435
netbsd*)
 
14436
  version_type=sunos
 
14437
  need_lib_prefix=no
 
14438
  need_version=no
 
14439
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14440
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14441
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14442
    dynamic_linker='NetBSD (a.out) ld.so'
 
14443
  else
 
14444
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
14445
    soname_spec='${libname}${release}${shared_ext}$major'
 
14446
    dynamic_linker='NetBSD ld.elf_so'
 
14447
  fi
 
14448
  shlibpath_var=LD_LIBRARY_PATH
 
14449
  shlibpath_overrides_runpath=yes
 
14450
  hardcode_into_libs=yes
 
14451
  ;;
 
14452
 
 
14453
newsos6)
 
14454
  version_type=linux
 
14455
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14456
  shlibpath_var=LD_LIBRARY_PATH
 
14457
  shlibpath_overrides_runpath=yes
 
14458
  ;;
 
14459
 
 
14460
nto-qnx*)
 
14461
  version_type=linux
 
14462
  need_lib_prefix=no
 
14463
  need_version=no
 
14464
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14465
  soname_spec='${libname}${release}${shared_ext}$major'
 
14466
  shlibpath_var=LD_LIBRARY_PATH
 
14467
  shlibpath_overrides_runpath=yes
 
14468
  ;;
 
14469
 
 
14470
openbsd*)
 
14471
  version_type=sunos
 
14472
  need_lib_prefix=no
 
14473
  need_version=no
 
14474
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14475
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14476
  shlibpath_var=LD_LIBRARY_PATH
 
14477
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14478
    case $host_os in
 
14479
      openbsd2.[89] | openbsd2.[89].*)
 
14480
        shlibpath_overrides_runpath=no
 
14481
        ;;
 
14482
      *)
 
14483
        shlibpath_overrides_runpath=yes
 
14484
        ;;
 
14485
      esac
 
14486
  else
 
14487
    shlibpath_overrides_runpath=yes
 
14488
  fi
 
14489
  ;;
 
14490
 
 
14491
os2*)
 
14492
  libname_spec='$name'
 
14493
  shrext=".dll"
 
14494
  need_lib_prefix=no
 
14495
  library_names_spec='$libname${shared_ext} $libname.a'
 
14496
  dynamic_linker='OS/2 ld.exe'
 
14497
  shlibpath_var=LIBPATH
 
14498
  ;;
 
14499
 
 
14500
osf3* | osf4* | osf5*)
 
14501
  version_type=osf
 
14502
  need_lib_prefix=no
 
14503
  need_version=no
 
14504
  soname_spec='${libname}${release}${shared_ext}$major'
 
14505
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14506
  shlibpath_var=LD_LIBRARY_PATH
 
14507
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14508
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14509
  ;;
 
14510
 
 
14511
sco3.2v5*)
 
14512
  version_type=osf
 
14513
  soname_spec='${libname}${release}${shared_ext}$major'
 
14514
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14515
  shlibpath_var=LD_LIBRARY_PATH
 
14516
  ;;
 
14517
 
 
14518
solaris*)
 
14519
  version_type=linux
 
14520
  need_lib_prefix=no
 
14521
  need_version=no
 
14522
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14523
  soname_spec='${libname}${release}${shared_ext}$major'
 
14524
  shlibpath_var=LD_LIBRARY_PATH
 
14525
  shlibpath_overrides_runpath=yes
 
14526
  hardcode_into_libs=yes
 
14527
  # ldd complains unless libraries are executable
 
14528
  postinstall_cmds='chmod +x $lib'
 
14529
  ;;
 
14530
 
 
14531
sunos4*)
 
14532
  version_type=sunos
 
14533
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14534
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14535
  shlibpath_var=LD_LIBRARY_PATH
 
14536
  shlibpath_overrides_runpath=yes
 
14537
  if test "$with_gnu_ld" = yes; then
 
14538
    need_lib_prefix=no
 
14539
  fi
 
14540
  need_version=yes
 
14541
  ;;
 
14542
 
 
14543
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14544
  version_type=linux
 
14545
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14546
  soname_spec='${libname}${release}${shared_ext}$major'
 
14547
  shlibpath_var=LD_LIBRARY_PATH
 
14548
  case $host_vendor in
 
14549
    sni)
 
14550
      shlibpath_overrides_runpath=no
 
14551
      need_lib_prefix=no
 
14552
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14553
      runpath_var=LD_RUN_PATH
 
14554
      ;;
 
14555
    siemens)
 
14556
      need_lib_prefix=no
 
14557
      ;;
 
14558
    motorola)
 
14559
      need_lib_prefix=no
 
14560
      need_version=no
 
14561
      shlibpath_overrides_runpath=no
 
14562
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14563
      ;;
 
14564
  esac
 
14565
  ;;
 
14566
 
 
14567
sysv4*MP*)
 
14568
  if test -d /usr/nec ;then
 
14569
    version_type=linux
 
14570
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14571
    soname_spec='$libname${shared_ext}.$major'
 
14572
    shlibpath_var=LD_LIBRARY_PATH
 
14573
  fi
 
14574
  ;;
 
14575
 
 
14576
uts4*)
 
14577
  version_type=linux
 
14578
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14579
  soname_spec='${libname}${release}${shared_ext}$major'
 
14580
  shlibpath_var=LD_LIBRARY_PATH
 
14581
  ;;
 
14582
 
 
14583
*)
 
14584
  dynamic_linker=no
 
14585
  ;;
 
14586
esac
 
14587
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14588
echo "${ECHO_T}$dynamic_linker" >&6
 
14589
test "$dynamic_linker" = no && can_build_shared=no
 
14590
 
 
14591
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14592
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
14593
hardcode_action_CXX=
 
14594
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
14595
   test -n "$runpath_var CXX" || \
 
14596
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
14597
 
 
14598
  # We can hardcode non-existant directories.
 
14599
  if test "$hardcode_direct_CXX" != no &&
 
14600
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14601
     # have to relink, otherwise we might link with an installed library
 
14602
     # when we should be linking with a yet-to-be-installed one
 
14603
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
14604
     test "$hardcode_minus_L_CXX" != no; then
 
14605
    # Linking always hardcodes the temporary library directory.
 
14606
    hardcode_action_CXX=relink
 
14607
  else
 
14608
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14609
    hardcode_action_CXX=immediate
 
14610
  fi
 
14611
else
 
14612
  # We cannot hardcode anything, or else we can only hardcode existing
 
14613
  # directories.
 
14614
  hardcode_action_CXX=unsupported
 
14615
fi
 
14616
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
14617
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
14618
 
 
14619
if test "$hardcode_action_CXX" = relink; then
 
14620
  # Fast installation is not supported
 
14621
  enable_fast_install=no
 
14622
elif test "$shlibpath_overrides_runpath" = yes ||
 
14623
     test "$enable_shared" = no; then
 
14624
  # Fast installation is not necessary
 
14625
  enable_fast_install=needless
 
14626
fi
 
14627
 
 
14628
striplib=
 
14629
old_striplib=
 
14630
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
14631
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
14632
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
14633
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
14634
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
14635
  echo "$as_me:$LINENO: result: yes" >&5
 
14636
echo "${ECHO_T}yes" >&6
 
14637
else
 
14638
# FIXME - insert some real tests, host_os isn't really good enough
 
14639
  case $host_os in
 
14640
   darwin*)
 
14641
       if test -n "$STRIP" ; then
 
14642
         striplib="$STRIP -x"
 
14643
         echo "$as_me:$LINENO: result: yes" >&5
 
14644
echo "${ECHO_T}yes" >&6
 
14645
       else
 
14646
  echo "$as_me:$LINENO: result: no" >&5
 
14647
echo "${ECHO_T}no" >&6
 
14648
fi
 
14649
       ;;
 
14650
   *)
 
14651
  echo "$as_me:$LINENO: result: no" >&5
 
14652
echo "${ECHO_T}no" >&6
 
14653
    ;;
 
14654
  esac
 
14655
fi
 
14656
 
 
14657
if test "x$enable_dlopen" != xyes; then
 
14658
  enable_dlopen=unknown
 
14659
  enable_dlopen_self=unknown
 
14660
  enable_dlopen_self_static=unknown
 
14661
else
 
14662
  lt_cv_dlopen=no
 
14663
  lt_cv_dlopen_libs=
 
14664
 
 
14665
  case $host_os in
 
14666
  beos*)
 
14667
    lt_cv_dlopen="load_add_on"
 
14668
    lt_cv_dlopen_libs=
 
14669
    lt_cv_dlopen_self=yes
 
14670
    ;;
 
14671
 
 
14672
  mingw* | pw32*)
 
14673
    lt_cv_dlopen="LoadLibrary"
 
14674
    lt_cv_dlopen_libs=
 
14675
   ;;
 
14676
 
 
14677
  cygwin*)
 
14678
    lt_cv_dlopen="dlopen"
 
14679
    lt_cv_dlopen_libs=
 
14680
   ;;
 
14681
 
 
14682
  darwin*)
 
14683
  # if libdl is installed we need to link against it
 
14684
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
14685
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
14686
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
14687
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14688
else
 
14689
  ac_check_lib_save_LIBS=$LIBS
 
14690
LIBS="-ldl  $LIBS"
 
14691
cat >conftest.$ac_ext <<_ACEOF
 
14692
/* confdefs.h.  */
 
14693
_ACEOF
 
14694
cat confdefs.h >>conftest.$ac_ext
 
14695
cat >>conftest.$ac_ext <<_ACEOF
 
14696
/* end confdefs.h.  */
 
14697
 
 
14698
/* Override any gcc2 internal prototype to avoid an error.  */
 
14699
#ifdef __cplusplus
 
14700
extern "C"
 
14701
#endif
 
14702
/* We use char because int might match the return type of a gcc2
 
14703
   builtin and then its argument prototype would still apply.  */
 
14704
char dlopen ();
 
14705
int
 
14706
main ()
 
14707
{
 
14708
dlopen ();
 
14709
  ;
 
14710
  return 0;
 
14711
}
 
14712
_ACEOF
 
14713
rm -f conftest.$ac_objext conftest$ac_exeext
 
14714
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14715
  (eval $ac_link) 2>conftest.er1
 
14716
  ac_status=$?
 
14717
  grep -v '^ *+' conftest.er1 >conftest.err
 
14718
  rm -f conftest.er1
 
14719
  cat conftest.err >&5
 
14720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14721
  (exit $ac_status); } &&
 
14722
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14723
                         || test ! -s conftest.err'
 
14724
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14725
  (eval $ac_try) 2>&5
 
14726
  ac_status=$?
 
14727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14728
  (exit $ac_status); }; } &&
 
14729
         { ac_try='test -s conftest$ac_exeext'
 
14730
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14731
  (eval $ac_try) 2>&5
 
14732
  ac_status=$?
 
14733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14734
  (exit $ac_status); }; }; then
 
14735
  ac_cv_lib_dl_dlopen=yes
 
14736
else
 
14737
  echo "$as_me: failed program was:" >&5
 
14738
sed 's/^/| /' conftest.$ac_ext >&5
 
14739
 
 
14740
ac_cv_lib_dl_dlopen=no
 
14741
fi
 
14742
rm -f conftest.err conftest.$ac_objext \
 
14743
      conftest$ac_exeext conftest.$ac_ext
 
14744
LIBS=$ac_check_lib_save_LIBS
 
14745
fi
 
14746
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
14747
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
14748
if test $ac_cv_lib_dl_dlopen = yes; then
 
14749
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
14750
else
 
14751
 
 
14752
    lt_cv_dlopen="dyld"
 
14753
    lt_cv_dlopen_libs=
 
14754
    lt_cv_dlopen_self=yes
 
14755
 
 
14756
fi
 
14757
 
 
14758
   ;;
 
14759
 
 
14760
  *)
 
14761
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
14762
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
14763
if test "${ac_cv_func_shl_load+set}" = set; then
 
14764
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14765
else
 
14766
  cat >conftest.$ac_ext <<_ACEOF
 
14767
/* confdefs.h.  */
 
14768
_ACEOF
 
14769
cat confdefs.h >>conftest.$ac_ext
 
14770
cat >>conftest.$ac_ext <<_ACEOF
 
14771
/* end confdefs.h.  */
 
14772
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
14773
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14774
#define shl_load innocuous_shl_load
 
14775
 
 
14776
/* System header to define __stub macros and hopefully few prototypes,
 
14777
    which can conflict with char shl_load (); below.
 
14778
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14779
    <limits.h> exists even on freestanding compilers.  */
 
14780
 
 
14781
#ifdef __STDC__
 
14782
# include <limits.h>
 
14783
#else
 
14784
# include <assert.h>
 
14785
#endif
 
14786
 
 
14787
#undef shl_load
 
14788
 
 
14789
/* Override any gcc2 internal prototype to avoid an error.  */
 
14790
#ifdef __cplusplus
 
14791
extern "C"
 
14792
{
 
14793
#endif
 
14794
/* We use char because int might match the return type of a gcc2
 
14795
   builtin and then its argument prototype would still apply.  */
 
14796
char shl_load ();
 
14797
/* The GNU C library defines this for functions which it implements
 
14798
    to always fail with ENOSYS.  Some functions are actually named
 
14799
    something starting with __ and the normal name is an alias.  */
 
14800
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
14801
choke me
 
14802
#else
 
14803
char (*f) () = shl_load;
 
14804
#endif
 
14805
#ifdef __cplusplus
 
14806
}
 
14807
#endif
 
14808
 
 
14809
int
 
14810
main ()
 
14811
{
 
14812
return f != shl_load;
 
14813
  ;
 
14814
  return 0;
 
14815
}
 
14816
_ACEOF
 
14817
rm -f conftest.$ac_objext conftest$ac_exeext
 
14818
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14819
  (eval $ac_link) 2>conftest.er1
 
14820
  ac_status=$?
 
14821
  grep -v '^ *+' conftest.er1 >conftest.err
 
14822
  rm -f conftest.er1
 
14823
  cat conftest.err >&5
 
14824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14825
  (exit $ac_status); } &&
 
14826
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14827
                         || test ! -s conftest.err'
 
14828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14829
  (eval $ac_try) 2>&5
 
14830
  ac_status=$?
 
14831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14832
  (exit $ac_status); }; } &&
 
14833
         { ac_try='test -s conftest$ac_exeext'
 
14834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14835
  (eval $ac_try) 2>&5
 
14836
  ac_status=$?
 
14837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14838
  (exit $ac_status); }; }; then
 
14839
  ac_cv_func_shl_load=yes
 
14840
else
 
14841
  echo "$as_me: failed program was:" >&5
 
14842
sed 's/^/| /' conftest.$ac_ext >&5
 
14843
 
 
14844
ac_cv_func_shl_load=no
 
14845
fi
 
14846
rm -f conftest.err conftest.$ac_objext \
 
14847
      conftest$ac_exeext conftest.$ac_ext
 
14848
fi
 
14849
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
14850
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
14851
if test $ac_cv_func_shl_load = yes; then
 
14852
  lt_cv_dlopen="shl_load"
 
14853
else
 
14854
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
14855
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
14856
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
14857
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14858
else
 
14859
  ac_check_lib_save_LIBS=$LIBS
 
14860
LIBS="-ldld  $LIBS"
 
14861
cat >conftest.$ac_ext <<_ACEOF
 
14862
/* confdefs.h.  */
 
14863
_ACEOF
 
14864
cat confdefs.h >>conftest.$ac_ext
 
14865
cat >>conftest.$ac_ext <<_ACEOF
 
14866
/* end confdefs.h.  */
 
14867
 
 
14868
/* Override any gcc2 internal prototype to avoid an error.  */
 
14869
#ifdef __cplusplus
 
14870
extern "C"
 
14871
#endif
 
14872
/* We use char because int might match the return type of a gcc2
 
14873
   builtin and then its argument prototype would still apply.  */
 
14874
char shl_load ();
 
14875
int
 
14876
main ()
 
14877
{
 
14878
shl_load ();
 
14879
  ;
 
14880
  return 0;
 
14881
}
 
14882
_ACEOF
 
14883
rm -f conftest.$ac_objext conftest$ac_exeext
 
14884
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14885
  (eval $ac_link) 2>conftest.er1
 
14886
  ac_status=$?
 
14887
  grep -v '^ *+' conftest.er1 >conftest.err
 
14888
  rm -f conftest.er1
 
14889
  cat conftest.err >&5
 
14890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14891
  (exit $ac_status); } &&
 
14892
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14893
                         || test ! -s conftest.err'
 
14894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14895
  (eval $ac_try) 2>&5
 
14896
  ac_status=$?
 
14897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14898
  (exit $ac_status); }; } &&
 
14899
         { ac_try='test -s conftest$ac_exeext'
 
14900
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14901
  (eval $ac_try) 2>&5
 
14902
  ac_status=$?
 
14903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14904
  (exit $ac_status); }; }; then
 
14905
  ac_cv_lib_dld_shl_load=yes
 
14906
else
 
14907
  echo "$as_me: failed program was:" >&5
 
14908
sed 's/^/| /' conftest.$ac_ext >&5
 
14909
 
 
14910
ac_cv_lib_dld_shl_load=no
 
14911
fi
 
14912
rm -f conftest.err conftest.$ac_objext \
 
14913
      conftest$ac_exeext conftest.$ac_ext
 
14914
LIBS=$ac_check_lib_save_LIBS
 
14915
fi
 
14916
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
14917
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
14918
if test $ac_cv_lib_dld_shl_load = yes; then
 
14919
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
14920
else
 
14921
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
14922
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
14923
if test "${ac_cv_func_dlopen+set}" = set; then
 
14924
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14925
else
 
14926
  cat >conftest.$ac_ext <<_ACEOF
 
14927
/* confdefs.h.  */
 
14928
_ACEOF
 
14929
cat confdefs.h >>conftest.$ac_ext
 
14930
cat >>conftest.$ac_ext <<_ACEOF
 
14931
/* end confdefs.h.  */
 
14932
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
14933
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14934
#define dlopen innocuous_dlopen
 
14935
 
 
14936
/* System header to define __stub macros and hopefully few prototypes,
 
14937
    which can conflict with char dlopen (); below.
 
14938
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14939
    <limits.h> exists even on freestanding compilers.  */
 
14940
 
 
14941
#ifdef __STDC__
 
14942
# include <limits.h>
 
14943
#else
 
14944
# include <assert.h>
 
14945
#endif
 
14946
 
 
14947
#undef dlopen
 
14948
 
 
14949
/* Override any gcc2 internal prototype to avoid an error.  */
 
14950
#ifdef __cplusplus
 
14951
extern "C"
 
14952
{
 
14953
#endif
 
14954
/* We use char because int might match the return type of a gcc2
 
14955
   builtin and then its argument prototype would still apply.  */
 
14956
char dlopen ();
 
14957
/* The GNU C library defines this for functions which it implements
 
14958
    to always fail with ENOSYS.  Some functions are actually named
 
14959
    something starting with __ and the normal name is an alias.  */
 
14960
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
14961
choke me
 
14962
#else
 
14963
char (*f) () = dlopen;
 
14964
#endif
 
14965
#ifdef __cplusplus
 
14966
}
 
14967
#endif
 
14968
 
 
14969
int
 
14970
main ()
 
14971
{
 
14972
return f != dlopen;
 
14973
  ;
 
14974
  return 0;
 
14975
}
 
14976
_ACEOF
 
14977
rm -f conftest.$ac_objext conftest$ac_exeext
 
14978
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14979
  (eval $ac_link) 2>conftest.er1
 
14980
  ac_status=$?
 
14981
  grep -v '^ *+' conftest.er1 >conftest.err
 
14982
  rm -f conftest.er1
 
14983
  cat conftest.err >&5
 
14984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14985
  (exit $ac_status); } &&
 
14986
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14987
                         || test ! -s conftest.err'
 
14988
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14989
  (eval $ac_try) 2>&5
 
14990
  ac_status=$?
 
14991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14992
  (exit $ac_status); }; } &&
 
14993
         { ac_try='test -s conftest$ac_exeext'
 
14994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14995
  (eval $ac_try) 2>&5
 
14996
  ac_status=$?
 
14997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14998
  (exit $ac_status); }; }; then
 
14999
  ac_cv_func_dlopen=yes
 
15000
else
 
15001
  echo "$as_me: failed program was:" >&5
 
15002
sed 's/^/| /' conftest.$ac_ext >&5
 
15003
 
 
15004
ac_cv_func_dlopen=no
 
15005
fi
 
15006
rm -f conftest.err conftest.$ac_objext \
 
15007
      conftest$ac_exeext conftest.$ac_ext
 
15008
fi
 
15009
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
15010
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
15011
if test $ac_cv_func_dlopen = yes; then
 
15012
  lt_cv_dlopen="dlopen"
 
15013
else
 
15014
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
15015
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
15016
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
15017
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15018
else
 
15019
  ac_check_lib_save_LIBS=$LIBS
 
15020
LIBS="-ldl  $LIBS"
 
15021
cat >conftest.$ac_ext <<_ACEOF
 
15022
/* confdefs.h.  */
 
15023
_ACEOF
 
15024
cat confdefs.h >>conftest.$ac_ext
 
15025
cat >>conftest.$ac_ext <<_ACEOF
 
15026
/* end confdefs.h.  */
 
15027
 
 
15028
/* Override any gcc2 internal prototype to avoid an error.  */
 
15029
#ifdef __cplusplus
 
15030
extern "C"
 
15031
#endif
 
15032
/* We use char because int might match the return type of a gcc2
 
15033
   builtin and then its argument prototype would still apply.  */
 
15034
char dlopen ();
 
15035
int
 
15036
main ()
 
15037
{
 
15038
dlopen ();
 
15039
  ;
 
15040
  return 0;
 
15041
}
 
15042
_ACEOF
 
15043
rm -f conftest.$ac_objext conftest$ac_exeext
 
15044
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15045
  (eval $ac_link) 2>conftest.er1
 
15046
  ac_status=$?
 
15047
  grep -v '^ *+' conftest.er1 >conftest.err
 
15048
  rm -f conftest.er1
 
15049
  cat conftest.err >&5
 
15050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15051
  (exit $ac_status); } &&
 
15052
         { ac_try='test -z "$ac_cxx_werror_flag"
 
15053
                         || test ! -s conftest.err'
 
15054
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15055
  (eval $ac_try) 2>&5
 
15056
  ac_status=$?
 
15057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15058
  (exit $ac_status); }; } &&
 
15059
         { ac_try='test -s conftest$ac_exeext'
 
15060
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15061
  (eval $ac_try) 2>&5
 
15062
  ac_status=$?
 
15063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15064
  (exit $ac_status); }; }; then
 
15065
  ac_cv_lib_dl_dlopen=yes
 
15066
else
 
15067
  echo "$as_me: failed program was:" >&5
 
15068
sed 's/^/| /' conftest.$ac_ext >&5
 
15069
 
 
15070
ac_cv_lib_dl_dlopen=no
 
15071
fi
 
15072
rm -f conftest.err conftest.$ac_objext \
 
15073
      conftest$ac_exeext conftest.$ac_ext
 
15074
LIBS=$ac_check_lib_save_LIBS
 
15075
fi
 
15076
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
15077
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
15078
if test $ac_cv_lib_dl_dlopen = yes; then
 
15079
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
15080
else
 
15081
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
15082
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
15083
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
15084
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15085
else
 
15086
  ac_check_lib_save_LIBS=$LIBS
 
15087
LIBS="-lsvld  $LIBS"
 
15088
cat >conftest.$ac_ext <<_ACEOF
 
15089
/* confdefs.h.  */
 
15090
_ACEOF
 
15091
cat confdefs.h >>conftest.$ac_ext
 
15092
cat >>conftest.$ac_ext <<_ACEOF
 
15093
/* end confdefs.h.  */
 
15094
 
 
15095
/* Override any gcc2 internal prototype to avoid an error.  */
 
15096
#ifdef __cplusplus
 
15097
extern "C"
 
15098
#endif
 
15099
/* We use char because int might match the return type of a gcc2
 
15100
   builtin and then its argument prototype would still apply.  */
 
15101
char dlopen ();
 
15102
int
 
15103
main ()
 
15104
{
 
15105
dlopen ();
 
15106
  ;
 
15107
  return 0;
 
15108
}
 
15109
_ACEOF
 
15110
rm -f conftest.$ac_objext conftest$ac_exeext
 
15111
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15112
  (eval $ac_link) 2>conftest.er1
 
15113
  ac_status=$?
 
15114
  grep -v '^ *+' conftest.er1 >conftest.err
 
15115
  rm -f conftest.er1
 
15116
  cat conftest.err >&5
 
15117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15118
  (exit $ac_status); } &&
 
15119
         { ac_try='test -z "$ac_cxx_werror_flag"
 
15120
                         || test ! -s conftest.err'
 
15121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15122
  (eval $ac_try) 2>&5
 
15123
  ac_status=$?
 
15124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15125
  (exit $ac_status); }; } &&
 
15126
         { ac_try='test -s conftest$ac_exeext'
 
15127
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15128
  (eval $ac_try) 2>&5
 
15129
  ac_status=$?
 
15130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15131
  (exit $ac_status); }; }; then
 
15132
  ac_cv_lib_svld_dlopen=yes
 
15133
else
 
15134
  echo "$as_me: failed program was:" >&5
 
15135
sed 's/^/| /' conftest.$ac_ext >&5
 
15136
 
 
15137
ac_cv_lib_svld_dlopen=no
 
15138
fi
 
15139
rm -f conftest.err conftest.$ac_objext \
 
15140
      conftest$ac_exeext conftest.$ac_ext
 
15141
LIBS=$ac_check_lib_save_LIBS
 
15142
fi
 
15143
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
15144
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
15145
if test $ac_cv_lib_svld_dlopen = yes; then
 
15146
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
15147
else
 
15148
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
15149
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
15150
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
15151
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15152
else
 
15153
  ac_check_lib_save_LIBS=$LIBS
 
15154
LIBS="-ldld  $LIBS"
 
15155
cat >conftest.$ac_ext <<_ACEOF
 
15156
/* confdefs.h.  */
 
15157
_ACEOF
 
15158
cat confdefs.h >>conftest.$ac_ext
 
15159
cat >>conftest.$ac_ext <<_ACEOF
 
15160
/* end confdefs.h.  */
 
15161
 
 
15162
/* Override any gcc2 internal prototype to avoid an error.  */
 
15163
#ifdef __cplusplus
 
15164
extern "C"
 
15165
#endif
 
15166
/* We use char because int might match the return type of a gcc2
 
15167
   builtin and then its argument prototype would still apply.  */
 
15168
char dld_link ();
 
15169
int
 
15170
main ()
 
15171
{
 
15172
dld_link ();
 
15173
  ;
 
15174
  return 0;
 
15175
}
 
15176
_ACEOF
 
15177
rm -f conftest.$ac_objext conftest$ac_exeext
 
15178
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15179
  (eval $ac_link) 2>conftest.er1
 
15180
  ac_status=$?
 
15181
  grep -v '^ *+' conftest.er1 >conftest.err
 
15182
  rm -f conftest.er1
 
15183
  cat conftest.err >&5
 
15184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15185
  (exit $ac_status); } &&
 
15186
         { ac_try='test -z "$ac_cxx_werror_flag"
 
15187
                         || test ! -s conftest.err'
 
15188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15189
  (eval $ac_try) 2>&5
 
15190
  ac_status=$?
 
15191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15192
  (exit $ac_status); }; } &&
 
15193
         { ac_try='test -s conftest$ac_exeext'
 
15194
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15195
  (eval $ac_try) 2>&5
 
15196
  ac_status=$?
 
15197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15198
  (exit $ac_status); }; }; then
 
15199
  ac_cv_lib_dld_dld_link=yes
 
15200
else
 
15201
  echo "$as_me: failed program was:" >&5
 
15202
sed 's/^/| /' conftest.$ac_ext >&5
 
15203
 
 
15204
ac_cv_lib_dld_dld_link=no
 
15205
fi
 
15206
rm -f conftest.err conftest.$ac_objext \
 
15207
      conftest$ac_exeext conftest.$ac_ext
 
15208
LIBS=$ac_check_lib_save_LIBS
 
15209
fi
 
15210
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
15211
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
15212
if test $ac_cv_lib_dld_dld_link = yes; then
 
15213
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
15214
fi
 
15215
 
 
15216
 
 
15217
fi
 
15218
 
 
15219
 
 
15220
fi
 
15221
 
 
15222
 
 
15223
fi
 
15224
 
 
15225
 
 
15226
fi
 
15227
 
 
15228
 
 
15229
fi
 
15230
 
 
15231
    ;;
 
15232
  esac
 
15233
 
 
15234
  if test "x$lt_cv_dlopen" != xno; then
 
15235
    enable_dlopen=yes
 
15236
  else
 
15237
    enable_dlopen=no
 
15238
  fi
 
15239
 
 
15240
  case $lt_cv_dlopen in
 
15241
  dlopen)
 
15242
    save_CPPFLAGS="$CPPFLAGS"
 
15243
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
15244
 
 
15245
    save_LDFLAGS="$LDFLAGS"
 
15246
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
15247
 
 
15248
    save_LIBS="$LIBS"
 
15249
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
15250
 
 
15251
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
15252
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
15253
if test "${lt_cv_dlopen_self+set}" = set; then
 
15254
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15255
else
 
15256
          if test "$cross_compiling" = yes; then :
 
15257
  lt_cv_dlopen_self=cross
 
15258
else
 
15259
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
15260
  lt_status=$lt_dlunknown
 
15261
  cat > conftest.$ac_ext <<EOF
 
15262
#line 15262 "configure"
 
15263
#include "confdefs.h"
 
15264
 
 
15265
#if HAVE_DLFCN_H
 
15266
#include <dlfcn.h>
 
15267
#endif
 
15268
 
 
15269
#include <stdio.h>
 
15270
 
 
15271
#ifdef RTLD_GLOBAL
 
15272
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
15273
#else
 
15274
#  ifdef DL_GLOBAL
 
15275
#    define LT_DLGLOBAL         DL_GLOBAL
 
15276
#  else
 
15277
#    define LT_DLGLOBAL         0
 
15278
#  endif
 
15279
#endif
 
15280
 
 
15281
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
15282
   find out it does not work in some platform. */
 
15283
#ifndef LT_DLLAZY_OR_NOW
 
15284
#  ifdef RTLD_LAZY
 
15285
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
15286
#  else
 
15287
#    ifdef DL_LAZY
 
15288
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
15289
#    else
 
15290
#      ifdef RTLD_NOW
 
15291
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
15292
#      else
 
15293
#        ifdef DL_NOW
 
15294
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
15295
#        else
 
15296
#          define LT_DLLAZY_OR_NOW      0
 
15297
#        endif
 
15298
#      endif
 
15299
#    endif
 
15300
#  endif
 
15301
#endif
 
15302
 
 
15303
#ifdef __cplusplus
 
15304
extern "C" void exit (int);
 
15305
#endif
 
15306
 
 
15307
void fnord() { int i=42;}
 
15308
int main ()
 
15309
{
 
15310
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
15311
  int status = $lt_dlunknown;
 
15312
 
 
15313
  if (self)
 
15314
    {
 
15315
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
15316
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
15317
      /* dlclose (self); */
 
15318
    }
 
15319
 
 
15320
    exit (status);
 
15321
}
 
15322
EOF
 
15323
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15324
  (eval $ac_link) 2>&5
 
15325
  ac_status=$?
 
15326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15327
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
15328
    (./conftest; exit; ) 2>/dev/null
 
15329
    lt_status=$?
 
15330
    case x$lt_status in
 
15331
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
15332
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
15333
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
15334
    esac
 
15335
  else :
 
15336
    # compilation failed
 
15337
    lt_cv_dlopen_self=no
 
15338
  fi
 
15339
fi
 
15340
rm -fr conftest*
 
15341
 
 
15342
 
 
15343
fi
 
15344
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
15345
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
15346
 
 
15347
    if test "x$lt_cv_dlopen_self" = xyes; then
 
15348
      LDFLAGS="$LDFLAGS $link_static_flag"
 
15349
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
15350
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
15351
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
15352
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15353
else
 
15354
          if test "$cross_compiling" = yes; then :
 
15355
  lt_cv_dlopen_self_static=cross
 
15356
else
 
15357
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
15358
  lt_status=$lt_dlunknown
 
15359
  cat > conftest.$ac_ext <<EOF
 
15360
#line 15360 "configure"
 
15361
#include "confdefs.h"
 
15362
 
 
15363
#if HAVE_DLFCN_H
 
15364
#include <dlfcn.h>
 
15365
#endif
 
15366
 
 
15367
#include <stdio.h>
 
15368
 
 
15369
#ifdef RTLD_GLOBAL
 
15370
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
15371
#else
 
15372
#  ifdef DL_GLOBAL
 
15373
#    define LT_DLGLOBAL         DL_GLOBAL
 
15374
#  else
 
15375
#    define LT_DLGLOBAL         0
 
15376
#  endif
 
15377
#endif
 
15378
 
 
15379
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
15380
   find out it does not work in some platform. */
 
15381
#ifndef LT_DLLAZY_OR_NOW
 
15382
#  ifdef RTLD_LAZY
 
15383
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
15384
#  else
 
15385
#    ifdef DL_LAZY
 
15386
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
15387
#    else
 
15388
#      ifdef RTLD_NOW
 
15389
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
15390
#      else
 
15391
#        ifdef DL_NOW
 
15392
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
15393
#        else
 
15394
#          define LT_DLLAZY_OR_NOW      0
 
15395
#        endif
 
15396
#      endif
 
15397
#    endif
 
15398
#  endif
 
15399
#endif
 
15400
 
 
15401
#ifdef __cplusplus
 
15402
extern "C" void exit (int);
 
15403
#endif
 
15404
 
 
15405
void fnord() { int i=42;}
 
15406
int main ()
 
15407
{
 
15408
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
15409
  int status = $lt_dlunknown;
 
15410
 
 
15411
  if (self)
 
15412
    {
 
15413
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
15414
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
15415
      /* dlclose (self); */
 
15416
    }
 
15417
 
 
15418
    exit (status);
 
15419
}
 
15420
EOF
 
15421
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15422
  (eval $ac_link) 2>&5
 
15423
  ac_status=$?
 
15424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15425
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
15426
    (./conftest; exit; ) 2>/dev/null
 
15427
    lt_status=$?
 
15428
    case x$lt_status in
 
15429
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
15430
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
15431
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
15432
    esac
 
15433
  else :
 
15434
    # compilation failed
 
15435
    lt_cv_dlopen_self_static=no
 
15436
  fi
 
15437
fi
 
15438
rm -fr conftest*
 
15439
 
 
15440
 
 
15441
fi
 
15442
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
15443
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
15444
    fi
 
15445
 
 
15446
    CPPFLAGS="$save_CPPFLAGS"
 
15447
    LDFLAGS="$save_LDFLAGS"
 
15448
    LIBS="$save_LIBS"
 
15449
    ;;
 
15450
  esac
 
15451
 
 
15452
  case $lt_cv_dlopen_self in
 
15453
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
15454
  *) enable_dlopen_self=unknown ;;
 
15455
  esac
 
15456
 
 
15457
  case $lt_cv_dlopen_self_static in
 
15458
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
15459
  *) enable_dlopen_self_static=unknown ;;
 
15460
  esac
 
15461
fi
 
15462
 
 
15463
 
 
15464
# The else clause should only fire when bootstrapping the
 
15465
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15466
# with your package, and you will get complaints that there are
 
15467
# no rules to generate ltmain.sh.
 
15468
if test -f "$ltmain"; then
 
15469
  # See if we are running on zsh, and set the options which allow our commands through
 
15470
  # without removal of \ escapes.
 
15471
  if test -n "${ZSH_VERSION+set}" ; then
 
15472
    setopt NO_GLOB_SUBST
 
15473
  fi
 
15474
  # Now quote all the things that may contain metacharacters while being
 
15475
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15476
  # variables and quote the copies for generation of the libtool script.
 
15477
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
15478
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15479
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15480
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15481
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15482
    lt_cv_sys_global_symbol_to_c_name_address \
 
15483
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15484
    old_postinstall_cmds old_postuninstall_cmds \
 
15485
    compiler_CXX \
 
15486
    CC_CXX \
 
15487
    LD_CXX \
 
15488
    lt_prog_compiler_wl_CXX \
 
15489
    lt_prog_compiler_pic_CXX \
 
15490
    lt_prog_compiler_static_CXX \
 
15491
    lt_prog_compiler_no_builtin_flag_CXX \
 
15492
    export_dynamic_flag_spec_CXX \
 
15493
    thread_safe_flag_spec_CXX \
 
15494
    whole_archive_flag_spec_CXX \
 
15495
    enable_shared_with_static_runtimes_CXX \
 
15496
    old_archive_cmds_CXX \
 
15497
    old_archive_from_new_cmds_CXX \
 
15498
    predep_objects_CXX \
 
15499
    postdep_objects_CXX \
 
15500
    predeps_CXX \
 
15501
    postdeps_CXX \
 
15502
    compiler_lib_search_path_CXX \
 
15503
    archive_cmds_CXX \
 
15504
    archive_expsym_cmds_CXX \
 
15505
    postinstall_cmds_CXX \
 
15506
    postuninstall_cmds_CXX \
 
15507
    old_archive_from_expsyms_cmds_CXX \
 
15508
    allow_undefined_flag_CXX \
 
15509
    no_undefined_flag_CXX \
 
15510
    export_symbols_cmds_CXX \
 
15511
    hardcode_libdir_flag_spec_CXX \
 
15512
    hardcode_libdir_flag_spec_ld_CXX \
 
15513
    hardcode_libdir_separator_CXX \
 
15514
    hardcode_automatic_CXX \
 
15515
    module_cmds_CXX \
 
15516
    module_expsym_cmds_CXX \
 
15517
    lt_cv_prog_compiler_c_o_CXX \
 
15518
    exclude_expsyms_CXX \
 
15519
    include_expsyms_CXX; do
 
15520
 
 
15521
    case $var in
 
15522
    old_archive_cmds_CXX | \
 
15523
    old_archive_from_new_cmds_CXX | \
 
15524
    archive_cmds_CXX | \
 
15525
    archive_expsym_cmds_CXX | \
 
15526
    module_cmds_CXX | \
 
15527
    module_expsym_cmds_CXX | \
 
15528
    old_archive_from_expsyms_cmds_CXX | \
 
15529
    export_symbols_cmds_CXX | \
 
15530
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15531
    postinstall_cmds | postuninstall_cmds | \
 
15532
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15533
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15534
      # Double-quote double-evaled strings.
 
15535
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15536
      ;;
 
15537
    *)
 
15538
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15539
      ;;
 
15540
    esac
 
15541
  done
 
15542
 
 
15543
  case $lt_echo in
 
15544
  *'\$0 --fallback-echo"')
 
15545
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15546
    ;;
 
15547
  esac
 
15548
 
 
15549
cfgfile="$ofile"
 
15550
 
 
15551
  cat <<__EOF__ >> "$cfgfile"
 
15552
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15553
 
 
15554
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15555
 
 
15556
# Shell to use when invoking shell scripts.
 
15557
SHELL=$lt_SHELL
 
15558
 
 
15559
# Whether or not to build shared libraries.
 
15560
build_libtool_libs=$enable_shared
 
15561
 
 
15562
# Whether or not to build static libraries.
 
15563
build_old_libs=$enable_static
 
15564
 
 
15565
# Whether or not to add -lc for building shared libraries.
 
15566
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
15567
 
 
15568
# Whether or not to disallow shared libs when runtime libs are static
 
15569
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
15570
 
 
15571
# Whether or not to optimize for fast installation.
 
15572
fast_install=$enable_fast_install
 
15573
 
 
15574
# The host system.
 
15575
host_alias=$host_alias
 
15576
host=$host
 
15577
 
 
15578
# An echo program that does not interpret backslashes.
 
15579
echo=$lt_echo
 
15580
 
 
15581
# The archiver.
 
15582
AR=$lt_AR
 
15583
AR_FLAGS=$lt_AR_FLAGS
 
15584
 
 
15585
# A C compiler.
 
15586
LTCC=$lt_LTCC
 
15587
 
 
15588
# A language-specific compiler.
 
15589
CC=$lt_compiler_CXX
 
15590
 
 
15591
# Is the compiler the GNU C compiler?
 
15592
with_gcc=$GCC_CXX
 
15593
 
 
15594
# An ERE matcher.
 
15595
EGREP=$lt_EGREP
 
15596
 
 
15597
# The linker used to build libraries.
 
15598
LD=$lt_LD_CXX
 
15599
 
 
15600
# Whether we need hard or soft links.
 
15601
LN_S=$lt_LN_S
 
15602
 
 
15603
# A BSD-compatible nm program.
 
15604
NM=$lt_NM
 
15605
 
 
15606
# A symbol stripping program
 
15607
STRIP=$STRIP
 
15608
 
 
15609
# Used to examine libraries when file_magic_cmd begins "file"
 
15610
MAGIC_CMD=$MAGIC_CMD
 
15611
 
 
15612
# Used on cygwin: DLL creation program.
 
15613
DLLTOOL="$DLLTOOL"
 
15614
 
 
15615
# Used on cygwin: object dumper.
 
15616
OBJDUMP="$OBJDUMP"
 
15617
 
 
15618
# Used on cygwin: assembler.
 
15619
AS="$AS"
 
15620
 
 
15621
# The name of the directory that contains temporary libtool files.
 
15622
objdir=$objdir
 
15623
 
 
15624
# How to create reloadable object files.
 
15625
reload_flag=$lt_reload_flag
 
15626
reload_cmds=$lt_reload_cmds
 
15627
 
 
15628
# How to pass a linker flag through the compiler.
 
15629
wl=$lt_lt_prog_compiler_wl_CXX
 
15630
 
 
15631
# Object file suffix (normally "o").
 
15632
objext="$ac_objext"
 
15633
 
 
15634
# Old archive suffix (normally "a").
 
15635
libext="$libext"
 
15636
 
 
15637
# Shared library suffix (normally ".so").
 
15638
shrext='$shrext'
 
15639
 
 
15640
# Executable file suffix (normally "").
 
15641
exeext="$exeext"
 
15642
 
 
15643
# Additional compiler flags for building library objects.
 
15644
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
15645
pic_mode=$pic_mode
 
15646
 
 
15647
# What is the maximum length of a command?
 
15648
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15649
 
 
15650
# Does compiler simultaneously support -c and -o options?
 
15651
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
15652
 
 
15653
# Must we lock files when doing compilation ?
 
15654
need_locks=$lt_need_locks
 
15655
 
 
15656
# Do we need the lib prefix for modules?
 
15657
need_lib_prefix=$need_lib_prefix
 
15658
 
 
15659
# Do we need a version for libraries?
 
15660
need_version=$need_version
 
15661
 
 
15662
# Whether dlopen is supported.
 
15663
dlopen_support=$enable_dlopen
 
15664
 
 
15665
# Whether dlopen of programs is supported.
 
15666
dlopen_self=$enable_dlopen_self
 
15667
 
 
15668
# Whether dlopen of statically linked programs is supported.
 
15669
dlopen_self_static=$enable_dlopen_self_static
 
15670
 
 
15671
# Compiler flag to prevent dynamic linking.
 
15672
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
15673
 
 
15674
# Compiler flag to turn off builtin functions.
 
15675
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
15676
 
 
15677
# Compiler flag to allow reflexive dlopens.
 
15678
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
15679
 
 
15680
# Compiler flag to generate shared objects directly from archives.
 
15681
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
15682
 
 
15683
# Compiler flag to generate thread-safe objects.
 
15684
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
15685
 
 
15686
# Library versioning type.
 
15687
version_type=$version_type
 
15688
 
 
15689
# Format of library name prefix.
 
15690
libname_spec=$lt_libname_spec
 
15691
 
 
15692
# List of archive names.  First name is the real one, the rest are links.
 
15693
# The last name is the one that the linker finds with -lNAME.
 
15694
library_names_spec=$lt_library_names_spec
 
15695
 
 
15696
# The coded name of the library, if different from the real name.
 
15697
soname_spec=$lt_soname_spec
 
15698
 
 
15699
# Commands used to build and install an old-style archive.
 
15700
RANLIB=$lt_RANLIB
 
15701
old_archive_cmds=$lt_old_archive_cmds_CXX
 
15702
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15703
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15704
 
 
15705
# Create an old-style archive from a shared archive.
 
15706
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
15707
 
 
15708
# Create a temporary old-style archive to link instead of a shared archive.
 
15709
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
15710
 
 
15711
# Commands used to build and install a shared archive.
 
15712
archive_cmds=$lt_archive_cmds_CXX
 
15713
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
15714
postinstall_cmds=$lt_postinstall_cmds
 
15715
postuninstall_cmds=$lt_postuninstall_cmds
 
15716
 
 
15717
# Commands used to build a loadable module (assumed same as above if empty)
 
15718
module_cmds=$lt_module_cmds_CXX
 
15719
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
15720
 
 
15721
# Commands to strip libraries.
 
15722
old_striplib=$lt_old_striplib
 
15723
striplib=$lt_striplib
 
15724
 
 
15725
# Dependencies to place before the objects being linked to create a
 
15726
# shared library.
 
15727
predep_objects=$lt_predep_objects_CXX
 
15728
 
 
15729
# Dependencies to place after the objects being linked to create a
 
15730
# shared library.
 
15731
postdep_objects=$lt_postdep_objects_CXX
 
15732
 
 
15733
# Dependencies to place before the objects being linked to create a
 
15734
# shared library.
 
15735
predeps=$lt_predeps_CXX
 
15736
 
 
15737
# Dependencies to place after the objects being linked to create a
 
15738
# shared library.
 
15739
postdeps=$lt_postdeps_CXX
 
15740
 
 
15741
# The library search path used internally by the compiler when linking
 
15742
# a shared library.
 
15743
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
15744
 
 
15745
# Method to check whether dependent libraries are shared objects.
 
15746
deplibs_check_method=$lt_deplibs_check_method
 
15747
 
 
15748
# Command to use when deplibs_check_method == file_magic.
 
15749
file_magic_cmd=$lt_file_magic_cmd
 
15750
 
 
15751
# Flag that allows shared libraries with undefined symbols to be built.
 
15752
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
15753
 
 
15754
# Flag that forces no undefined symbols.
 
15755
no_undefined_flag=$lt_no_undefined_flag_CXX
 
15756
 
 
15757
# Commands used to finish a libtool library installation in a directory.
 
15758
finish_cmds=$lt_finish_cmds
 
15759
 
 
15760
# Same as above, but a single script fragment to be evaled but not shown.
 
15761
finish_eval=$lt_finish_eval
 
15762
 
 
15763
# Take the output of nm and produce a listing of raw symbols and C names.
 
15764
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15765
 
 
15766
# Transform the output of nm in a proper C declaration
 
15767
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15768
 
 
15769
# Transform the output of nm in a C name address pair
 
15770
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15771
 
 
15772
# This is the shared library runtime path variable.
 
15773
runpath_var=$runpath_var
 
15774
 
 
15775
# This is the shared library path variable.
 
15776
shlibpath_var=$shlibpath_var
 
15777
 
 
15778
# Is shlibpath searched before the hard-coded library search path?
 
15779
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15780
 
 
15781
# How to hardcode a shared library path into an executable.
 
15782
hardcode_action=$hardcode_action_CXX
 
15783
 
 
15784
# Whether we should hardcode library paths into libraries.
 
15785
hardcode_into_libs=$hardcode_into_libs
 
15786
 
 
15787
# Flag to hardcode \$libdir into a binary during linking.
 
15788
# This must work even if \$libdir does not exist.
 
15789
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
15790
 
 
15791
# If ld is used when linking, flag to hardcode \$libdir into
 
15792
# a binary during linking. This must work even if \$libdir does
 
15793
# not exist.
 
15794
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
15795
 
 
15796
# Whether we need a single -rpath flag with a separated argument.
 
15797
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
15798
 
 
15799
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15800
# resulting binary.
 
15801
hardcode_direct=$hardcode_direct_CXX
 
15802
 
 
15803
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15804
# resulting binary.
 
15805
hardcode_minus_L=$hardcode_minus_L_CXX
 
15806
 
 
15807
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15808
# the resulting binary.
 
15809
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
15810
 
 
15811
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15812
# and all subsequent libraries and executables linked against it.
 
15813
hardcode_automatic=$hardcode_automatic_CXX
 
15814
 
 
15815
# Variables whose values should be saved in libtool wrapper scripts and
 
15816
# restored at relink time.
 
15817
variables_saved_for_relink="$variables_saved_for_relink"
 
15818
 
 
15819
# Whether libtool must link a program against all its dependency libraries.
 
15820
link_all_deplibs=$link_all_deplibs_CXX
 
15821
 
 
15822
# Compile-time system search path for libraries
 
15823
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15824
 
 
15825
# Run-time system search path for libraries
 
15826
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15827
 
 
15828
# Fix the shell variable \$srcfile for the compiler.
 
15829
fix_srcfile_path="$fix_srcfile_path_CXX"
 
15830
 
 
15831
# Set to yes if exported symbols are required.
 
15832
always_export_symbols=$always_export_symbols_CXX
 
15833
 
 
15834
# The commands to list exported symbols.
 
15835
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
15836
 
 
15837
# The commands to extract the exported symbol list from a shared archive.
 
15838
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15839
 
 
15840
# Symbols that should not be listed in the preloaded symbols.
 
15841
exclude_expsyms=$lt_exclude_expsyms_CXX
 
15842
 
 
15843
# Symbols that must always be exported.
 
15844
include_expsyms=$lt_include_expsyms_CXX
 
15845
 
 
15846
# ### END LIBTOOL TAG CONFIG: $tagname
 
15847
 
 
15848
__EOF__
 
15849
 
 
15850
 
 
15851
else
 
15852
  # If there is no Makefile yet, we rely on a make rule to execute
 
15853
  # `config.status --recheck' to rerun these tests and create the
 
15854
  # libtool script then.
 
15855
  test -f Makefile && make "$ltmain"
 
15856
fi
 
15857
 
 
15858
 
 
15859
ac_ext=c
 
15860
ac_cpp='$CPP $CPPFLAGS'
 
15861
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15862
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15863
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15864
 
 
15865
CC=$lt_save_CC
 
15866
LDCXX=$LD
 
15867
LD=$lt_save_LD
 
15868
GCC=$lt_save_GCC
 
15869
with_gnu_ldcxx=$with_gnu_ld
 
15870
with_gnu_ld=$lt_save_with_gnu_ld
 
15871
lt_cv_path_LDCXX=$lt_cv_path_LD
 
15872
lt_cv_path_LD=$lt_save_path_LD
 
15873
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15874
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15875
 
 
15876
        else
 
15877
          tagname=""
 
15878
        fi
 
15879
        ;;
 
15880
 
 
15881
      F77)
 
15882
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
15883
 
 
15884
ac_ext=f
 
15885
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
15886
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15887
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
15888
 
 
15889
 
 
15890
archive_cmds_need_lc_F77=no
 
15891
allow_undefined_flag_F77=
 
15892
always_export_symbols_F77=no
 
15893
archive_expsym_cmds_F77=
 
15894
export_dynamic_flag_spec_F77=
 
15895
hardcode_direct_F77=no
 
15896
hardcode_libdir_flag_spec_F77=
 
15897
hardcode_libdir_flag_spec_ld_F77=
 
15898
hardcode_libdir_separator_F77=
 
15899
hardcode_minus_L_F77=no
 
15900
hardcode_automatic_F77=no
 
15901
module_cmds_F77=
 
15902
module_expsym_cmds_F77=
 
15903
link_all_deplibs_F77=unknown
 
15904
old_archive_cmds_F77=$old_archive_cmds
 
15905
no_undefined_flag_F77=
 
15906
whole_archive_flag_spec_F77=
 
15907
enable_shared_with_static_runtimes_F77=no
 
15908
 
 
15909
# Source file extension for f77 test sources.
 
15910
ac_ext=f
 
15911
 
 
15912
# Object file extension for compiled f77 test sources.
 
15913
objext=o
 
15914
objext_F77=$objext
 
15915
 
 
15916
# Code to be used in simple compile tests
 
15917
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
15918
 
 
15919
# Code to be used in simple link tests
 
15920
lt_simple_link_test_code="      program t\n      end\n"
 
15921
 
 
15922
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15923
 
 
15924
# If no C compiler was specified, use CC.
 
15925
LTCC=${LTCC-"$CC"}
 
15926
 
 
15927
# Allow CC to be a program name with arguments.
 
15928
compiler=$CC
 
15929
 
 
15930
 
 
15931
# Allow CC to be a program name with arguments.
 
15932
lt_save_CC="$CC"
 
15933
CC=${F77-"f77"}
 
15934
compiler=$CC
 
15935
compiler_F77=$CC
 
15936
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
15937
 
 
15938
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
15939
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
15940
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
15941
echo "${ECHO_T}$can_build_shared" >&6
 
15942
 
 
15943
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
15944
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
15945
test "$can_build_shared" = "no" && enable_shared=no
 
15946
 
 
15947
# On AIX, shared libraries and static libraries use the same namespace, and
 
15948
# are all built from PIC.
 
15949
case "$host_os" in
 
15950
aix3*)
 
15951
  test "$enable_shared" = yes && enable_static=no
 
15952
  if test -n "$RANLIB"; then
 
15953
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
15954
    postinstall_cmds='$RANLIB $lib'
 
15955
  fi
 
15956
  ;;
 
15957
aix4*)
 
15958
  test "$enable_shared" = yes && enable_static=no
 
15959
  ;;
 
15960
esac
 
15961
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
15962
echo "${ECHO_T}$enable_shared" >&6
 
15963
 
 
15964
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
15965
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
15966
# Make sure either enable_shared or enable_static is yes.
 
15967
test "$enable_shared" = yes || enable_static=yes
 
15968
echo "$as_me:$LINENO: result: $enable_static" >&5
 
15969
echo "${ECHO_T}$enable_static" >&6
 
15970
 
 
15971
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15972
 
 
15973
GCC_F77="$G77"
 
15974
LD_F77="$LD"
 
15975
 
 
15976
lt_prog_compiler_wl_F77=
 
15977
lt_prog_compiler_pic_F77=
 
15978
lt_prog_compiler_static_F77=
 
15979
 
 
15980
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15981
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15982
 
 
15983
  if test "$GCC" = yes; then
 
15984
    lt_prog_compiler_wl_F77='-Wl,'
 
15985
    lt_prog_compiler_static_F77='-static'
 
15986
 
 
15987
    case $host_os in
 
15988
      aix*)
 
15989
      # All AIX code is PIC.
 
15990
      if test "$host_cpu" = ia64; then
 
15991
        # AIX 5 now supports IA64 processor
 
15992
        lt_prog_compiler_static_F77='-Bstatic'
 
15993
      fi
 
15994
      ;;
 
15995
 
 
15996
    amigaos*)
 
15997
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15998
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15999
      # like `-m68040'.
 
16000
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
16001
      ;;
 
16002
 
 
16003
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16004
      # PIC is the default for these OSes.
 
16005
      ;;
 
16006
 
 
16007
    mingw* | pw32* | os2*)
 
16008
      # This hack is so that the source file can tell whether it is being
 
16009
      # built for inclusion in a dll (and should export symbols for example).
 
16010
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
16011
      ;;
 
16012
 
 
16013
    darwin* | rhapsody*)
 
16014
      # PIC is the default on this platform
 
16015
      # Common symbols not allowed in MH_DYLIB files
 
16016
      lt_prog_compiler_pic_F77='-fno-common'
 
16017
      ;;
 
16018
 
 
16019
    msdosdjgpp*)
 
16020
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16021
      # on systems that don't support them.
 
16022
      lt_prog_compiler_can_build_shared_F77=no
 
16023
      enable_shared=no
 
16024
      ;;
 
16025
 
 
16026
    sysv4*MP*)
 
16027
      if test -d /usr/nec; then
 
16028
        lt_prog_compiler_pic_F77=-Kconform_pic
 
16029
      fi
 
16030
      ;;
 
16031
 
 
16032
    hpux*)
 
16033
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16034
      # not for PA HP-UX.
 
16035
      case "$host_cpu" in
 
16036
      hppa*64*|ia64*)
 
16037
        # +Z the default
 
16038
        ;;
 
16039
      *)
 
16040
        lt_prog_compiler_pic_F77='-fPIC'
 
16041
        ;;
 
16042
      esac
 
16043
      ;;
 
16044
 
 
16045
    *)
 
16046
      lt_prog_compiler_pic_F77='-fPIC'
 
16047
      ;;
 
16048
    esac
 
16049
  else
 
16050
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16051
    case $host_os in
 
16052
    aix*)
 
16053
      lt_prog_compiler_wl_F77='-Wl,'
 
16054
      if test "$host_cpu" = ia64; then
 
16055
        # AIX 5 now supports IA64 processor
 
16056
        lt_prog_compiler_static_F77='-Bstatic'
 
16057
      else
 
16058
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
16059
      fi
 
16060
      ;;
 
16061
 
 
16062
    mingw* | pw32* | os2*)
 
16063
      # This hack is so that the source file can tell whether it is being
 
16064
      # built for inclusion in a dll (and should export symbols for example).
 
16065
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
16066
      ;;
 
16067
 
 
16068
    hpux9* | hpux10* | hpux11*)
 
16069
      lt_prog_compiler_wl_F77='-Wl,'
 
16070
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16071
      # not for PA HP-UX.
 
16072
      case "$host_cpu" in
 
16073
      hppa*64*|ia64*)
 
16074
        # +Z the default
 
16075
        ;;
 
16076
      *)
 
16077
        lt_prog_compiler_pic_F77='+Z'
 
16078
        ;;
 
16079
      esac
 
16080
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16081
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
16082
      ;;
 
16083
 
 
16084
    irix5* | irix6* | nonstopux*)
 
16085
      lt_prog_compiler_wl_F77='-Wl,'
 
16086
      # PIC (with -KPIC) is the default.
 
16087
      lt_prog_compiler_static_F77='-non_shared'
 
16088
      ;;
 
16089
 
 
16090
    newsos6)
 
16091
      lt_prog_compiler_pic_F77='-KPIC'
 
16092
      lt_prog_compiler_static_F77='-Bstatic'
 
16093
      ;;
 
16094
 
 
16095
    linux*)
 
16096
      case $CC in
 
16097
      icc* | ecc*)
 
16098
        lt_prog_compiler_wl_F77='-Wl,'
 
16099
        lt_prog_compiler_pic_F77='-KPIC'
 
16100
        lt_prog_compiler_static_F77='-static'
 
16101
        ;;
 
16102
      ccc*)
 
16103
        lt_prog_compiler_wl_F77='-Wl,'
 
16104
        # All Alpha code is PIC.
 
16105
        lt_prog_compiler_static_F77='-non_shared'
 
16106
        ;;
 
16107
      esac
 
16108
      ;;
 
16109
 
 
16110
    osf3* | osf4* | osf5*)
 
16111
      lt_prog_compiler_wl_F77='-Wl,'
 
16112
      # All OSF/1 code is PIC.
 
16113
      lt_prog_compiler_static_F77='-non_shared'
 
16114
      ;;
 
16115
 
 
16116
    sco3.2v5*)
 
16117
      lt_prog_compiler_pic_F77='-Kpic'
 
16118
      lt_prog_compiler_static_F77='-dn'
 
16119
      ;;
 
16120
 
 
16121
    solaris*)
 
16122
      lt_prog_compiler_wl_F77='-Wl,'
 
16123
      lt_prog_compiler_pic_F77='-KPIC'
 
16124
      lt_prog_compiler_static_F77='-Bstatic'
 
16125
      ;;
 
16126
 
 
16127
    sunos4*)
 
16128
      lt_prog_compiler_wl_F77='-Qoption ld '
 
16129
      lt_prog_compiler_pic_F77='-PIC'
 
16130
      lt_prog_compiler_static_F77='-Bstatic'
 
16131
      ;;
 
16132
 
 
16133
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16134
      lt_prog_compiler_wl_F77='-Wl,'
 
16135
      lt_prog_compiler_pic_F77='-KPIC'
 
16136
      lt_prog_compiler_static_F77='-Bstatic'
 
16137
      ;;
 
16138
 
 
16139
    sysv4*MP*)
 
16140
      if test -d /usr/nec ;then
 
16141
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
16142
        lt_prog_compiler_static_F77='-Bstatic'
 
16143
      fi
 
16144
      ;;
 
16145
 
 
16146
    uts4*)
 
16147
      lt_prog_compiler_pic_F77='-pic'
 
16148
      lt_prog_compiler_static_F77='-Bstatic'
 
16149
      ;;
 
16150
 
 
16151
    *)
 
16152
      lt_prog_compiler_can_build_shared_F77=no
 
16153
      ;;
 
16154
    esac
 
16155
  fi
 
16156
 
 
16157
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
16158
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
16159
 
 
16160
#
 
16161
# Check to make sure the PIC flag actually works.
 
16162
#
 
16163
if test -n "$lt_prog_compiler_pic_F77"; then
 
16164
 
 
16165
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
16166
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
16167
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
16168
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16169
else
 
16170
  lt_prog_compiler_pic_works_F77=no
 
16171
  ac_outfile=conftest.$ac_objext
 
16172
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16173
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
16174
   # Insert the option either (1) after the last *FLAGS variable, or
 
16175
   # (2) before a word containing "conftest.", or (3) at the end.
 
16176
   # Note that $ac_compile itself does not contain backslashes and begins
 
16177
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16178
   # The option is referenced via a variable to avoid confusing sed.
 
16179
   lt_compile=`echo "$ac_compile" | $SED \
 
16180
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16181
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16182
   -e 's:$: $lt_compiler_flag:'`
 
16183
   (eval echo "\"\$as_me:16183: $lt_compile\"" >&5)
 
16184
   (eval "$lt_compile" 2>conftest.err)
 
16185
   ac_status=$?
 
16186
   cat conftest.err >&5
 
16187
   echo "$as_me:16187: \$? = $ac_status" >&5
 
16188
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16189
     # The compiler can only warn and ignore the option if not recognized
 
16190
     # So say no if there are warnings
 
16191
     if test ! -s conftest.err; then
 
16192
       lt_prog_compiler_pic_works_F77=yes
 
16193
     fi
 
16194
   fi
 
16195
   $rm conftest*
 
16196
 
 
16197
fi
 
16198
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
16199
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
16200
 
 
16201
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
16202
    case $lt_prog_compiler_pic_F77 in
 
16203
     "" | " "*) ;;
 
16204
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
16205
     esac
 
16206
else
 
16207
    lt_prog_compiler_pic_F77=
 
16208
     lt_prog_compiler_can_build_shared_F77=no
 
16209
fi
 
16210
 
 
16211
fi
 
16212
case "$host_os" in
 
16213
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16214
  *djgpp*)
 
16215
    lt_prog_compiler_pic_F77=
 
16216
    ;;
 
16217
  *)
 
16218
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
16219
    ;;
 
16220
esac
 
16221
 
 
16222
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16223
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
16224
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
16225
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16226
else
 
16227
  lt_cv_prog_compiler_c_o_F77=no
 
16228
   $rm -r conftest 2>/dev/null
 
16229
   mkdir conftest
 
16230
   cd conftest
 
16231
   mkdir out
 
16232
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16233
 
 
16234
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
16235
   # that will create temporary files in the current directory regardless of
 
16236
   # the output directory.  Thus, making CWD read-only will cause this test
 
16237
   # to fail, enabling locking or at least warning the user not to do parallel
 
16238
   # builds.
 
16239
   chmod -w .
 
16240
 
 
16241
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16242
   # Insert the option either (1) after the last *FLAGS variable, or
 
16243
   # (2) before a word containing "conftest.", or (3) at the end.
 
16244
   # Note that $ac_compile itself does not contain backslashes and begins
 
16245
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16246
   lt_compile=`echo "$ac_compile" | $SED \
 
16247
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16248
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16249
   -e 's:$: $lt_compiler_flag:'`
 
16250
   (eval echo "\"\$as_me:16250: $lt_compile\"" >&5)
 
16251
   (eval "$lt_compile" 2>out/conftest.err)
 
16252
   ac_status=$?
 
16253
   cat out/conftest.err >&5
 
16254
   echo "$as_me:16254: \$? = $ac_status" >&5
 
16255
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16256
   then
 
16257
     # The compiler can only warn and ignore the option if not recognized
 
16258
     # So say no if there are warnings
 
16259
     if test ! -s out/conftest.err; then
 
16260
       lt_cv_prog_compiler_c_o_F77=yes
 
16261
     fi
 
16262
   fi
 
16263
   chmod u+w .
 
16264
   $rm conftest* out/*
 
16265
   rmdir out
 
16266
   cd ..
 
16267
   rmdir conftest
 
16268
   $rm conftest*
 
16269
 
 
16270
fi
 
16271
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
16272
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
16273
 
 
16274
 
 
16275
hard_links="nottested"
 
16276
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
16277
  # do not overwrite the value of need_locks provided by the user
 
16278
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16279
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
16280
  hard_links=yes
 
16281
  $rm conftest*
 
16282
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16283
  touch conftest.a
 
16284
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16285
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16286
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
16287
echo "${ECHO_T}$hard_links" >&6
 
16288
  if test "$hard_links" = no; then
 
16289
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16290
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16291
    need_locks=warn
 
16292
  fi
 
16293
else
 
16294
  need_locks=no
 
16295
fi
 
16296
 
 
16297
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16298
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
16299
 
 
16300
  runpath_var=
 
16301
  allow_undefined_flag_F77=
 
16302
  enable_shared_with_static_runtimes_F77=no
 
16303
  archive_cmds_F77=
 
16304
  archive_expsym_cmds_F77=
 
16305
  old_archive_From_new_cmds_F77=
 
16306
  old_archive_from_expsyms_cmds_F77=
 
16307
  export_dynamic_flag_spec_F77=
 
16308
  whole_archive_flag_spec_F77=
 
16309
  thread_safe_flag_spec_F77=
 
16310
  hardcode_libdir_flag_spec_F77=
 
16311
  hardcode_libdir_flag_spec_ld_F77=
 
16312
  hardcode_libdir_separator_F77=
 
16313
  hardcode_direct_F77=no
 
16314
  hardcode_minus_L_F77=no
 
16315
  hardcode_shlibpath_var_F77=unsupported
 
16316
  link_all_deplibs_F77=unknown
 
16317
  hardcode_automatic_F77=no
 
16318
  module_cmds_F77=
 
16319
  module_expsym_cmds_F77=
 
16320
  always_export_symbols_F77=no
 
16321
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16322
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16323
  # included in the symbol list
 
16324
  include_expsyms_F77=
 
16325
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16326
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16327
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16328
  # as well as any symbol that contains `d'.
 
16329
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
16330
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16331
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16332
  # the symbol is explicitly referenced.  Since portable code cannot
 
16333
  # rely on this symbol name, it's probably fine to never include it in
 
16334
  # preloaded symbol tables.
 
16335
  extract_expsyms_cmds=
 
16336
 
 
16337
  case $host_os in
 
16338
  cygwin* | mingw* | pw32*)
 
16339
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16340
    # When not using gcc, we currently assume that we are using
 
16341
    # Microsoft Visual C++.
 
16342
    if test "$GCC" != yes; then
 
16343
      with_gnu_ld=no
 
16344
    fi
 
16345
    ;;
 
16346
  openbsd*)
 
16347
    with_gnu_ld=no
 
16348
    ;;
 
16349
  esac
 
16350
 
 
16351
  ld_shlibs_F77=yes
 
16352
  if test "$with_gnu_ld" = yes; then
 
16353
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16354
    wlarc='${wl}'
 
16355
 
 
16356
    # See if GNU ld supports shared libraries.
 
16357
    case $host_os in
 
16358
    aix3* | aix4* | aix5*)
 
16359
      # On AIX/PPC, the GNU linker is very broken
 
16360
      if test "$host_cpu" != ia64; then
 
16361
        ld_shlibs_F77=no
 
16362
        cat <<EOF 1>&2
 
16363
 
 
16364
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16365
*** to be unable to reliably create shared libraries on AIX.
 
16366
*** Therefore, libtool is disabling shared libraries support.  If you
 
16367
*** really care for shared libraries, you may want to modify your PATH
 
16368
*** so that a non-GNU linker is found, and then restart.
 
16369
 
 
16370
EOF
 
16371
      fi
 
16372
      ;;
 
16373
 
 
16374
    amigaos*)
 
16375
      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)'
 
16376
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16377
      hardcode_minus_L_F77=yes
 
16378
 
 
16379
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16380
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16381
      # to version 4, is to share data among multiple programs linked
 
16382
      # with the same dynamic library.  Since this doesn't match the
 
16383
      # behavior of shared libraries on other platforms, we can't use
 
16384
      # them.
 
16385
      ld_shlibs_F77=no
 
16386
      ;;
 
16387
 
 
16388
    beos*)
 
16389
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16390
        allow_undefined_flag_F77=unsupported
 
16391
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16392
        # support --undefined.  This deserves some investigation.  FIXME
 
16393
        archive_cmds_F77='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
16394
      else
 
16395
        ld_shlibs_F77=no
 
16396
      fi
 
16397
      ;;
 
16398
 
 
16399
    cygwin* | mingw* | pw32*)
 
16400
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
16401
      # as there is no search path for DLLs.
 
16402
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16403
      allow_undefined_flag_F77=no
 
16404
      always_export_symbols_F77=no
 
16405
      enable_shared_with_static_runtimes_F77=yes
 
16406
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16407
 
 
16408
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16409
        archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16410
        # If the export-symbols file already is a .def file (1st line
 
16411
        # is EXPORTS), use it as is; otherwise, prepend...
 
16412
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16413
          cp $export_symbols $output_objdir/$soname.def;
 
16414
        else
 
16415
          echo EXPORTS > $output_objdir/$soname.def;
 
16416
          cat $export_symbols >> $output_objdir/$soname.def;
 
16417
        fi~
 
16418
        $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
16419
      else
 
16420
        ld_shlibs=no
 
16421
      fi
 
16422
      ;;
 
16423
 
 
16424
    netbsd*)
 
16425
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16426
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16427
        wlarc=
 
16428
      else
 
16429
        archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
16430
        archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16431
      fi
 
16432
      ;;
 
16433
 
 
16434
    solaris* | sysv5*)
 
16435
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16436
        ld_shlibs_F77=no
 
16437
        cat <<EOF 1>&2
 
16438
 
 
16439
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16440
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16441
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16442
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16443
*** your PATH or compiler configuration so that the native linker is
 
16444
*** used, and then restart.
 
16445
 
 
16446
EOF
 
16447
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16448
        archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
16449
        archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16450
      else
 
16451
        ld_shlibs_F77=no
 
16452
      fi
 
16453
      ;;
 
16454
 
 
16455
    sunos4*)
 
16456
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16457
      wlarc=
 
16458
      hardcode_direct_F77=yes
 
16459
      hardcode_shlibpath_var_F77=no
 
16460
      ;;
 
16461
 
 
16462
    *)
 
16463
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16464
        archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
16465
        archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16466
      else
 
16467
        ld_shlibs_F77=no
 
16468
      fi
 
16469
      ;;
 
16470
    esac
 
16471
 
 
16472
    if test "$ld_shlibs_F77" = yes; then
 
16473
      runpath_var=LD_RUN_PATH
 
16474
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
16475
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
16476
      # ancient GNU ld didn't support --whole-archive et. al.
 
16477
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16478
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16479
      else
 
16480
        whole_archive_flag_spec_F77=
 
16481
      fi
 
16482
    fi
 
16483
  else
 
16484
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16485
    case $host_os in
 
16486
    aix3*)
 
16487
      allow_undefined_flag_F77=unsupported
 
16488
      always_export_symbols_F77=yes
 
16489
      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'
 
16490
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16491
      # are no directories specified by -L.
 
16492
      hardcode_minus_L_F77=yes
 
16493
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16494
        # Neither direct hardcoding nor static linking is supported with a
 
16495
        # broken collect2.
 
16496
        hardcode_direct_F77=unsupported
 
16497
      fi
 
16498
      ;;
 
16499
 
 
16500
    aix4* | aix5*)
 
16501
      if test "$host_cpu" = ia64; then
 
16502
        # On IA64, the linker does run time linking by default, so we don't
 
16503
        # have to do anything special.
 
16504
        aix_use_runtimelinking=no
 
16505
        exp_sym_flag='-Bexport'
 
16506
        no_entry_flag=""
 
16507
      else
 
16508
        # If we're using GNU nm, then we don't want the "-C" option.
 
16509
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16510
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16511
          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'
 
16512
        else
 
16513
          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'
 
16514
        fi
 
16515
 
 
16516
        # KDE requires run time linking.  Make it the default.
 
16517
        aix_use_runtimelinking=yes
 
16518
        exp_sym_flag='-bexport'
 
16519
        no_entry_flag='-bnoentry'
 
16520
      fi
 
16521
 
 
16522
      # When large executables or shared objects are built, AIX ld can
 
16523
      # have problems creating the table of contents.  If linking a library
 
16524
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16525
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16526
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16527
 
 
16528
      archive_cmds_F77=''
 
16529
      hardcode_direct_F77=yes
 
16530
      hardcode_libdir_separator_F77=':'
 
16531
      link_all_deplibs_F77=yes
 
16532
 
 
16533
      if test "$GCC" = yes; then
 
16534
        case $host_os in aix4.012|aix4.012.*)
 
16535
        # We only want to do this on AIX 4.2 and lower, the check
 
16536
        # below for broken collect2 doesn't work under 4.3+
 
16537
          collect2name=`${CC} -print-prog-name=collect2`
 
16538
          if test -f "$collect2name" && \
 
16539
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16540
          then
 
16541
          # We have reworked collect2
 
16542
          hardcode_direct_F77=yes
 
16543
          else
 
16544
          # We have old collect2
 
16545
          hardcode_direct_F77=unsupported
 
16546
          # It fails to find uninstalled libraries when the uninstalled
 
16547
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16548
          # to unsupported forces relinking
 
16549
          hardcode_minus_L_F77=yes
 
16550
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
16551
          hardcode_libdir_separator_F77=
 
16552
          fi
 
16553
        esac
 
16554
        shared_flag='-shared'
 
16555
      else
 
16556
        # not using gcc
 
16557
        if test "$host_cpu" = ia64; then
 
16558
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16559
        # chokes on -Wl,-G. The following line is correct:
 
16560
          shared_flag='-G'
 
16561
        else
 
16562
        if test "$aix_use_runtimelinking" = yes; then
 
16563
            shared_flag='-qmkshrobj ${wl}-G'
 
16564
          else
 
16565
            shared_flag='-qmkshrobj'
 
16566
        fi
 
16567
        fi
 
16568
      fi
 
16569
 
 
16570
      # Let the compiler handle the export list.
 
16571
      always_export_symbols_F77=no
 
16572
      if test "$aix_use_runtimelinking" = yes; then
 
16573
        # Warning - without using the other runtime loading flags (-brtl),
 
16574
        # -berok will link without error, but may produce a broken library.
 
16575
        allow_undefined_flag_F77='-berok'
 
16576
       # Determine the default libpath from the value encoded in an empty executable.
 
16577
        cat >conftest.$ac_ext <<_ACEOF
 
16578
      program main
 
16579
 
 
16580
      end
 
16581
_ACEOF
 
16582
rm -f conftest.$ac_objext conftest$ac_exeext
 
16583
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16584
  (eval $ac_link) 2>conftest.er1
 
16585
  ac_status=$?
 
16586
  grep -v '^ *+' conftest.er1 >conftest.err
 
16587
  rm -f conftest.er1
 
16588
  cat conftest.err >&5
 
16589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16590
  (exit $ac_status); } &&
 
16591
         { ac_try='test -z "$ac_f77_werror_flag"
 
16592
                         || test ! -s conftest.err'
 
16593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16594
  (eval $ac_try) 2>&5
 
16595
  ac_status=$?
 
16596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16597
  (exit $ac_status); }; } &&
 
16598
         { ac_try='test -s conftest$ac_exeext'
 
16599
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16600
  (eval $ac_try) 2>&5
 
16601
  ac_status=$?
 
16602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16603
  (exit $ac_status); }; }; then
 
16604
 
 
16605
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16606
}'`
 
16607
# Check for a 64-bit object if we didn't find anything.
 
16608
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; }
 
16609
}'`; fi
 
16610
else
 
16611
  echo "$as_me: failed program was:" >&5
 
16612
sed 's/^/| /' conftest.$ac_ext >&5
 
16613
 
 
16614
fi
 
16615
rm -f conftest.err conftest.$ac_objext \
 
16616
      conftest$ac_exeext conftest.$ac_ext
 
16617
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16618
 
 
16619
        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16620
        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"
 
16621
        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"
 
16622
       else
 
16623
        if test "$host_cpu" = ia64; then
 
16624
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
16625
          allow_undefined_flag_F77="-z nodefs"
 
16626
          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"
 
16627
        else
 
16628
         # Determine the default libpath from the value encoded in an empty executable.
 
16629
         cat >conftest.$ac_ext <<_ACEOF
 
16630
      program main
 
16631
 
 
16632
      end
 
16633
_ACEOF
 
16634
rm -f conftest.$ac_objext conftest$ac_exeext
 
16635
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16636
  (eval $ac_link) 2>conftest.er1
 
16637
  ac_status=$?
 
16638
  grep -v '^ *+' conftest.er1 >conftest.err
 
16639
  rm -f conftest.er1
 
16640
  cat conftest.err >&5
 
16641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16642
  (exit $ac_status); } &&
 
16643
         { ac_try='test -z "$ac_f77_werror_flag"
 
16644
                         || test ! -s conftest.err'
 
16645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16646
  (eval $ac_try) 2>&5
 
16647
  ac_status=$?
 
16648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16649
  (exit $ac_status); }; } &&
 
16650
         { ac_try='test -s conftest$ac_exeext'
 
16651
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16652
  (eval $ac_try) 2>&5
 
16653
  ac_status=$?
 
16654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16655
  (exit $ac_status); }; }; then
 
16656
 
 
16657
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16658
}'`
 
16659
# Check for a 64-bit object if we didn't find anything.
 
16660
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; }
 
16661
}'`; fi
 
16662
else
 
16663
  echo "$as_me: failed program was:" >&5
 
16664
sed 's/^/| /' conftest.$ac_ext >&5
 
16665
 
 
16666
fi
 
16667
rm -f conftest.err conftest.$ac_objext \
 
16668
      conftest$ac_exeext conftest.$ac_ext
 
16669
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16670
 
 
16671
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16672
          # Warning - without using the other run time loading flags,
 
16673
          # -berok will link without error, but may produce a broken library.
 
16674
          no_undefined_flag_F77=' ${wl}-bernotok'
 
16675
          allow_undefined_flag_F77=' ${wl}-berok'
 
16676
          # -bexpall does not export symbols beginning with underscore (_)
 
16677
          always_export_symbols_F77=yes
 
16678
          # Exported symbols can be pulled into shared objects from archives
 
16679
          whole_archive_flag_spec_F77=' '
 
16680
          archive_cmds_need_lc_F77=yes
 
16681
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16682
          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'
 
16683
        fi
 
16684
      fi
 
16685
      ;;
 
16686
 
 
16687
    amigaos*)
 
16688
      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)'
 
16689
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16690
      hardcode_minus_L_F77=yes
 
16691
      # see comment about different semantics on the GNU ld section
 
16692
      ld_shlibs_F77=no
 
16693
      ;;
 
16694
 
 
16695
    bsdi4*)
 
16696
      export_dynamic_flag_spec_F77=-rdynamic
 
16697
      ;;
 
16698
 
 
16699
    cygwin* | mingw* | pw32*)
 
16700
      # When not using gcc, we currently assume that we are using
 
16701
      # Microsoft Visual C++.
 
16702
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16703
      # no search path for DLLs.
 
16704
      hardcode_libdir_flag_spec_F77=' '
 
16705
      allow_undefined_flag_F77=no
 
16706
      # Tell ltmain to make .lib files, not .a files.
 
16707
      libext=lib
 
16708
      # Tell ltmain to make .dll files, not .so files.
 
16709
      shrext=".dll"
 
16710
      # FIXME: Setting linknames here is a bad hack.
 
16711
      archive_cmds_F77='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16712
      # The linker will automatically build a .lib file if we build a DLL.
 
16713
      old_archive_From_new_cmds_F77='true'
 
16714
      # FIXME: Should let the user specify the lib program.
 
16715
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16716
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16717
      enable_shared_with_static_runtimes_F77=yes
 
16718
      ;;
 
16719
 
 
16720
    darwin* | rhapsody*)
 
16721
    if test "$GXX" = yes ; then
 
16722
      archive_cmds_need_lc_F77=no
 
16723
      case "$host_os" in
 
16724
      rhapsody* | darwin1.[012])
 
16725
        allow_undefined_flag_F77='-Wl,-undefined -Wl,suppress'
 
16726
        ;;
 
16727
      *) # Darwin 1.3 on
 
16728
        if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16729
          allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
16730
        else
 
16731
          case ${MACOSX_DEPLOYMENT_TARGET} in
 
16732
            10.012)
 
16733
              allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
16734
              ;;
 
16735
            10.*)
 
16736
              allow_undefined_flag_F77='-Wl,-undefined -Wl,dynamic_lookup'
 
16737
              ;;
 
16738
          esac
 
16739
        fi
 
16740
        ;;
 
16741
      esac
 
16742
        lt_int_apple_cc_single_mod=no
 
16743
        output_verbose_link_cmd='echo'
 
16744
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
16745
          lt_int_apple_cc_single_mod=yes
 
16746
        fi
 
16747
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16748
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
16749
        else
 
16750
        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'
 
16751
      fi
 
16752
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
16753
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16754
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16755
          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}'
 
16756
        else
 
16757
          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}'
 
16758
        fi
 
16759
          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}'
 
16760
      hardcode_direct_F77=no
 
16761
      hardcode_automatic_F77=yes
 
16762
      hardcode_shlibpath_var_F77=unsupported
 
16763
      whole_archive_flag_spec_F77='-all_load $convenience'
 
16764
      link_all_deplibs_F77=yes
 
16765
    else
 
16766
      ld_shlibs_F77=no
 
16767
    fi
 
16768
      ;;
 
16769
 
 
16770
    dgux*)
 
16771
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16772
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16773
      hardcode_shlibpath_var_F77=no
 
16774
      ;;
 
16775
 
 
16776
    freebsd1*)
 
16777
      ld_shlibs_F77=no
 
16778
      ;;
 
16779
 
 
16780
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16781
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16782
    # does not break anything, and helps significantly (at the cost of a little
 
16783
    # extra space).
 
16784
    freebsd2.2*)
 
16785
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16786
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16787
      hardcode_direct_F77=yes
 
16788
      hardcode_shlibpath_var_F77=no
 
16789
      ;;
 
16790
 
 
16791
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16792
    freebsd2*)
 
16793
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16794
      hardcode_direct_F77=yes
 
16795
      hardcode_minus_L_F77=yes
 
16796
      hardcode_shlibpath_var_F77=no
 
16797
      ;;
 
16798
 
 
16799
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16800
    freebsd*)
 
16801
      archive_cmds_F77='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
 
16802
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16803
      hardcode_direct_F77=yes
 
16804
      hardcode_shlibpath_var_F77=no
 
16805
      ;;
 
16806
 
 
16807
    hpux9*)
 
16808
      if test "$GCC" = yes; then
 
16809
        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'
 
16810
      else
 
16811
        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'
 
16812
      fi
 
16813
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16814
      hardcode_libdir_separator_F77=:
 
16815
      hardcode_direct_F77=yes
 
16816
 
 
16817
      # hardcode_minus_L: Not really in the search PATH,
 
16818
      # but as the default location of the library.
 
16819
      hardcode_minus_L_F77=yes
 
16820
      export_dynamic_flag_spec_F77='${wl}-E'
 
16821
      ;;
 
16822
 
 
16823
    hpux10* | hpux11*)
 
16824
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16825
        case "$host_cpu" in
 
16826
        hppa*64*|ia64*)
 
16827
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
16828
          ;;
 
16829
        *)
 
16830
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
 
16831
          ;;
 
16832
        esac
 
16833
      else
 
16834
        case "$host_cpu" in
 
16835
        hppa*64*|ia64*)
 
16836
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16837
          ;;
 
16838
        *)
 
16839
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16840
          ;;
 
16841
        esac
 
16842
      fi
 
16843
      if test "$with_gnu_ld" = no; then
 
16844
        case "$host_cpu" in
 
16845
        hppa*64*)
 
16846
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16847
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
16848
          hardcode_libdir_separator_F77=:
 
16849
          hardcode_direct_F77=no
 
16850
          hardcode_shlibpath_var_F77=no
 
16851
          ;;
 
16852
        ia64*)
 
16853
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
16854
          hardcode_direct_F77=no
 
16855
          hardcode_shlibpath_var_F77=no
 
16856
 
 
16857
          # hardcode_minus_L: Not really in the search PATH,
 
16858
          # but as the default location of the library.
 
16859
          hardcode_minus_L_F77=yes
 
16860
          ;;
 
16861
        *)
 
16862
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16863
          hardcode_libdir_separator_F77=:
 
16864
          hardcode_direct_F77=yes
 
16865
          export_dynamic_flag_spec_F77='${wl}-E'
 
16866
 
 
16867
          # hardcode_minus_L: Not really in the search PATH,
 
16868
          # but as the default location of the library.
 
16869
          hardcode_minus_L_F77=yes
 
16870
          ;;
 
16871
        esac
 
16872
      fi
 
16873
      ;;
 
16874
 
 
16875
    irix5* | irix6* | nonstopux*)
 
16876
      if test "$GCC" = yes; then
 
16877
        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'
 
16878
      else
 
16879
        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'
 
16880
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
16881
      fi
 
16882
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16883
      hardcode_libdir_separator_F77=:
 
16884
      link_all_deplibs_F77=yes
 
16885
      ;;
 
16886
 
 
16887
    netbsd*)
 
16888
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16889
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16890
      else
 
16891
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16892
      fi
 
16893
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16894
      hardcode_direct_F77=yes
 
16895
      hardcode_shlibpath_var_F77=no
 
16896
      ;;
 
16897
 
 
16898
    newsos6)
 
16899
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16900
      hardcode_direct_F77=yes
 
16901
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16902
      hardcode_libdir_separator_F77=:
 
16903
      hardcode_shlibpath_var_F77=no
 
16904
      ;;
 
16905
 
 
16906
    openbsd*)
 
16907
      hardcode_direct_F77=yes
 
16908
      hardcode_shlibpath_var_F77=no
 
16909
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16910
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
16911
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16912
        export_dynamic_flag_spec_F77='${wl}-E'
 
16913
      else
 
16914
       case $host_os in
 
16915
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16916
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16917
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
16918
           ;;
 
16919
         *)
 
16920
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
16921
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16922
           ;;
 
16923
       esac
 
16924
      fi
 
16925
      ;;
 
16926
 
 
16927
    os2*)
 
16928
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16929
      hardcode_minus_L_F77=yes
 
16930
      allow_undefined_flag_F77=unsupported
 
16931
      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'
 
16932
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16933
      ;;
 
16934
 
 
16935
    osf3*)
 
16936
      if test "$GCC" = yes; then
 
16937
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16938
        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'
 
16939
      else
 
16940
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16941
        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'
 
16942
      fi
 
16943
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16944
      hardcode_libdir_separator_F77=:
 
16945
      ;;
 
16946
 
 
16947
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16948
      if test "$GCC" = yes; then
 
16949
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16950
        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'
 
16951
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16952
      else
 
16953
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16954
        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'
 
16955
        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~
 
16956
        $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'
 
16957
 
 
16958
        # Both c and cxx compiler support -rpath directly
 
16959
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
16960
      fi
 
16961
      hardcode_libdir_separator_F77=:
 
16962
      ;;
 
16963
 
 
16964
    sco3.2v5*)
 
16965
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16966
      hardcode_shlibpath_var_F77=no
 
16967
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
16968
      runpath_var=LD_RUN_PATH
 
16969
      hardcode_runpath_var=yes
 
16970
      ;;
 
16971
 
 
16972
    solaris*)
 
16973
      no_undefined_flag_F77=' -z text'
 
16974
      if test "$GCC" = yes; then
 
16975
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
16976
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16977
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
 
16978
      else
 
16979
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16980
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16981
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16982
      fi
 
16983
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16984
      hardcode_shlibpath_var_F77=no
 
16985
      case $host_os in
 
16986
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16987
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16988
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
16989
      esac
 
16990
      link_all_deplibs_F77=yes
 
16991
      ;;
 
16992
 
 
16993
    sunos4*)
 
16994
      if test "x$host_vendor" = xsequent; then
 
16995
        # Use $CC to link under sequent, because it throws in some extra .o
 
16996
        # files that make .init and .fini sections work.
 
16997
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
 
16998
      else
 
16999
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17000
      fi
 
17001
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
17002
      hardcode_direct_F77=yes
 
17003
      hardcode_minus_L_F77=yes
 
17004
      hardcode_shlibpath_var_F77=no
 
17005
      ;;
 
17006
 
 
17007
    sysv4)
 
17008
      case $host_vendor in
 
17009
        sni)
 
17010
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17011
          hardcode_direct_F77=yes # is this really true???
 
17012
        ;;
 
17013
        siemens)
 
17014
          ## LD is ld it makes a PLAMLIB
 
17015
          ## CC just makes a GrossModule.
 
17016
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17017
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
17018
          hardcode_direct_F77=no
 
17019
        ;;
 
17020
        motorola)
 
17021
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17022
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
17023
        ;;
 
17024
      esac
 
17025
      runpath_var='LD_RUN_PATH'
 
17026
      hardcode_shlibpath_var_F77=no
 
17027
      ;;
 
17028
 
 
17029
    sysv4.3*)
 
17030
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17031
      hardcode_shlibpath_var_F77=no
 
17032
      export_dynamic_flag_spec_F77='-Bexport'
 
17033
      ;;
 
17034
 
 
17035
    sysv4*MP*)
 
17036
      if test -d /usr/nec; then
 
17037
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17038
        hardcode_shlibpath_var_F77=no
 
17039
        runpath_var=LD_RUN_PATH
 
17040
        hardcode_runpath_var=yes
 
17041
        ld_shlibs_F77=yes
 
17042
      fi
 
17043
      ;;
 
17044
 
 
17045
    sysv4.2uw2*)
 
17046
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17047
      hardcode_direct_F77=yes
 
17048
      hardcode_minus_L_F77=no
 
17049
      hardcode_shlibpath_var_F77=no
 
17050
      hardcode_runpath_var=yes
 
17051
      runpath_var=LD_RUN_PATH
 
17052
      ;;
 
17053
 
 
17054
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
17055
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
17056
      if test "$GCC" = yes; then
 
17057
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
17058
      else
 
17059
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
17060
      fi
 
17061
      runpath_var='LD_RUN_PATH'
 
17062
      hardcode_shlibpath_var_F77=no
 
17063
      ;;
 
17064
 
 
17065
    sysv5*)
 
17066
      no_undefined_flag_F77=' -z text'
 
17067
      # $CC -shared without GNU ld will not create a library from C++
 
17068
      # object files and a static libstdc++, better avoid it by now
 
17069
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17070
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17071
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17072
      hardcode_libdir_flag_spec_F77=
 
17073
      hardcode_shlibpath_var_F77=no
 
17074
      runpath_var='LD_RUN_PATH'
 
17075
      ;;
 
17076
 
 
17077
    uts4*)
 
17078
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17079
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
17080
      hardcode_shlibpath_var_F77=no
 
17081
      ;;
 
17082
 
 
17083
    *)
 
17084
      ld_shlibs_F77=no
 
17085
      ;;
 
17086
    esac
 
17087
  fi
 
17088
 
 
17089
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
17090
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
17091
test "$ld_shlibs_F77" = no && can_build_shared=no
 
17092
 
 
17093
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17094
if test "$GCC" = yes; then
 
17095
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17096
fi
 
17097
 
 
17098
#
 
17099
# Do we need to explicitly link libc?
 
17100
#
 
17101
case "x$archive_cmds_need_lc_F77" in
 
17102
x|xyes)
 
17103
  # Assume -lc should be added
 
17104
  archive_cmds_need_lc_F77=yes
 
17105
 
 
17106
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17107
    case $archive_cmds_F77 in
 
17108
    *'~'*)
 
17109
      # FIXME: we may have to deal with multi-command sequences.
 
17110
      ;;
 
17111
    '$CC '*)
 
17112
      # Test whether the compiler implicitly links with -lc since on some
 
17113
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17114
      # to ld, don't add -lc before -lgcc.
 
17115
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17116
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17117
      $rm conftest*
 
17118
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17119
 
 
17120
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17121
  (eval $ac_compile) 2>&5
 
17122
  ac_status=$?
 
17123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17124
  (exit $ac_status); } 2>conftest.err; then
 
17125
        soname=conftest
 
17126
        lib=conftest
 
17127
        libobjs=conftest.$ac_objext
 
17128
        deplibs=
 
17129
        wl=$lt_prog_compiler_wl_F77
 
17130
        compiler_flags=-v
 
17131
        linker_flags=-v
 
17132
        verstring=
 
17133
        output_objdir=.
 
17134
        libname=conftest
 
17135
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
17136
        allow_undefined_flag_F77=
 
17137
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17138
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17139
  ac_status=$?
 
17140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17141
  (exit $ac_status); }
 
17142
        then
 
17143
          archive_cmds_need_lc_F77=no
 
17144
        else
 
17145
          archive_cmds_need_lc_F77=yes
 
17146
        fi
 
17147
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
17148
      else
 
17149
        cat conftest.err 1>&5
 
17150
      fi
 
17151
      $rm conftest*
 
17152
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
17153
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
17154
      ;;
 
17155
    esac
 
17156
  fi
 
17157
  ;;
 
17158
esac
 
17159
 
 
17160
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17161
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17162
library_names_spec=
 
17163
libname_spec='lib$name'
 
17164
soname_spec=
 
17165
shrext=".so"
 
17166
postinstall_cmds=
 
17167
postuninstall_cmds=
 
17168
finish_cmds=
 
17169
finish_eval=
 
17170
shlibpath_var=
 
17171
shlibpath_overrides_runpath=unknown
 
17172
version_type=none
 
17173
dynamic_linker="$host_os ld.so"
 
17174
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17175
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17176
need_lib_prefix=unknown
 
17177
hardcode_into_libs=no
 
17178
 
 
17179
# when you set need_version to no, make sure it does not cause -set_version
 
17180
# flags to be left without arguments
 
17181
need_version=unknown
 
17182
 
 
17183
case $host_os in
 
17184
aix3*)
 
17185
  version_type=linux
 
17186
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17187
  shlibpath_var=LIBPATH
 
17188
 
 
17189
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17190
  soname_spec='${libname}${release}${shared_ext}$major'
 
17191
  ;;
 
17192
 
 
17193
aix4* | aix5*)
 
17194
  version_type=linux
 
17195
  need_lib_prefix=no
 
17196
  need_version=no
 
17197
  hardcode_into_libs=yes
 
17198
  if test "$host_cpu" = ia64; then
 
17199
    # AIX 5 supports IA64
 
17200
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17201
    shlibpath_var=LD_LIBRARY_PATH
 
17202
  else
 
17203
    # With GCC up to 2.95.x, collect2 would create an import file
 
17204
    # for dependence libraries.  The import file would start with
 
17205
    # the line `#! .'.  This would cause the generated library to
 
17206
    # depend on `.', always an invalid library.  This was fixed in
 
17207
    # development snapshots of GCC prior to 3.0.
 
17208
    case $host_os in
 
17209
      aix4 | aix4.[01] | aix4.[01].*)
 
17210
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17211
           echo ' yes '
 
17212
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17213
        :
 
17214
      else
 
17215
        can_build_shared=no
 
17216
      fi
 
17217
      ;;
 
17218
    esac
 
17219
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17220
    # soname into executable. Probably we can add versioning support to
 
17221
    # collect2, so additional links can be useful in future.
 
17222
    if test "$aix_use_runtimelinking" = yes; then
 
17223
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17224
      # instead of lib<name>.a to let people know that these are not
 
17225
      # typical AIX shared libraries.
 
17226
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17227
    else
 
17228
      # We preserve .a as extension for shared libraries through AIX4.2
 
17229
      # and later when we are not doing run time linking.
 
17230
      library_names_spec='${libname}${release}.a $libname.a'
 
17231
      soname_spec='${libname}${release}${shared_ext}$major'
 
17232
    fi
 
17233
    shlibpath_var=LIBPATH
 
17234
  fi
 
17235
  ;;
 
17236
 
 
17237
amigaos*)
 
17238
  library_names_spec='$libname.ixlibrary $libname.a'
 
17239
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17240
  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'
 
17241
  ;;
 
17242
 
 
17243
beos*)
 
17244
  library_names_spec='${libname}${shared_ext}'
 
17245
  dynamic_linker="$host_os ld.so"
 
17246
  shlibpath_var=LIBRARY_PATH
 
17247
  ;;
 
17248
 
 
17249
bsdi4*)
 
17250
  version_type=linux
 
17251
  need_version=no
 
17252
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17253
  soname_spec='${libname}${release}${shared_ext}$major'
 
17254
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17255
  shlibpath_var=LD_LIBRARY_PATH
 
17256
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17257
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17258
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17259
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17260
  # libtool to hard-code these into programs
 
17261
  ;;
 
17262
 
 
17263
cygwin* | mingw* | pw32*)
 
17264
  version_type=windows
 
17265
  shrext=".dll"
 
17266
  need_version=no
 
17267
  need_lib_prefix=no
 
17268
 
 
17269
  case $GCC,$host_os in
 
17270
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17271
    library_names_spec='$libname.dll.a'
 
17272
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17273
    postinstall_cmds='base_file=`basename \${file}`~
 
17274
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17275
      dldir=$destdir/`dirname \$dlpath`~
 
17276
      test -d \$dldir || mkdir -p \$dldir~
 
17277
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17278
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17279
      dlpath=$dir/\$dldll~
 
17280
       $rm \$dlpath'
 
17281
    shlibpath_overrides_runpath=yes
 
17282
 
 
17283
    case $host_os in
 
17284
    cygwin*)
 
17285
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17286
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17287
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17288
      ;;
 
17289
    mingw*)
 
17290
      # MinGW DLLs use traditional 'lib' prefix
 
17291
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17292
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17293
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17294
        # It is most probably a Windows format PATH printed by
 
17295
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17296
        # path with ; separators, and with drive letters. We can handle the
 
17297
        # drive letters (cygwin fileutils understands them), so leave them,
 
17298
        # especially as we might pass files found there to a mingw objdump,
 
17299
        # which wouldn't understand a cygwinified path. Ahh.
 
17300
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17301
      else
 
17302
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17303
      fi
 
17304
      ;;
 
17305
    pw32*)
 
17306
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17307
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17308
      ;;
 
17309
    esac
 
17310
    ;;
 
17311
 
 
17312
  *)
 
17313
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17314
    ;;
 
17315
  esac
 
17316
  dynamic_linker='Win32 ld.exe'
 
17317
  # FIXME: first we should search . and the directory the executable is in
 
17318
  shlibpath_var=PATH
 
17319
  ;;
 
17320
 
 
17321
darwin* | rhapsody*)
 
17322
  dynamic_linker="$host_os dyld"
 
17323
  version_type=darwin
 
17324
  need_lib_prefix=no
 
17325
  need_version=no
 
17326
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17327
  soname_spec='${libname}${release}${major}$shared_ext'
 
17328
  shlibpath_overrides_runpath=yes
 
17329
  shlibpath_var=DYLD_LIBRARY_PATH
 
17330
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
17331
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17332
  if test "$GCC" = yes; then
 
17333
    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"`
 
17334
  else
 
17335
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17336
  fi
 
17337
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17338
  ;;
 
17339
 
 
17340
dgux*)
 
17341
  version_type=linux
 
17342
  need_lib_prefix=no
 
17343
  need_version=no
 
17344
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17345
  soname_spec='${libname}${release}${shared_ext}$major'
 
17346
  shlibpath_var=LD_LIBRARY_PATH
 
17347
  ;;
 
17348
 
 
17349
freebsd1*)
 
17350
  dynamic_linker=no
 
17351
  ;;
 
17352
 
 
17353
freebsd*-gnu*)
 
17354
  version_type=linux
 
17355
  need_lib_prefix=no
 
17356
  need_version=no
 
17357
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17358
  soname_spec='${libname}${release}${shared_ext}$major'
 
17359
  shlibpath_var=LD_LIBRARY_PATH
 
17360
  shlibpath_overrides_runpath=no
 
17361
  hardcode_into_libs=yes
 
17362
  dynamic_linker='GNU ld.so'
 
17363
  ;;
 
17364
 
 
17365
freebsd*)
 
17366
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17367
  version_type=freebsd-$objformat
 
17368
  case $version_type in
 
17369
    freebsd-elf*)
 
17370
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17371
      need_version=no
 
17372
      need_lib_prefix=no
 
17373
      ;;
 
17374
    freebsd-*)
 
17375
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17376
      need_version=yes
 
17377
      ;;
 
17378
  esac
 
17379
  shlibpath_var=LD_LIBRARY_PATH
 
17380
  case $host_os in
 
17381
  freebsd2*)
 
17382
    shlibpath_overrides_runpath=yes
 
17383
    ;;
 
17384
  freebsd3.01* | freebsdelf3.01*)
 
17385
    shlibpath_overrides_runpath=yes
 
17386
    hardcode_into_libs=yes
 
17387
    ;;
 
17388
  *) # from 3.2 on
 
17389
    shlibpath_overrides_runpath=no
 
17390
    hardcode_into_libs=yes
 
17391
    ;;
 
17392
  esac
 
17393
  ;;
 
17394
 
 
17395
gnu*)
 
17396
  version_type=linux
 
17397
  need_lib_prefix=no
 
17398
  need_version=no
 
17399
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17400
  soname_spec='${libname}${release}${shared_ext}$major'
 
17401
  shlibpath_var=LD_LIBRARY_PATH
 
17402
  hardcode_into_libs=yes
 
17403
  ;;
 
17404
 
 
17405
hpux9* | hpux10* | hpux11*)
 
17406
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17407
  # link against other versions.
 
17408
  version_type=sunos
 
17409
  need_lib_prefix=no
 
17410
  need_version=no
 
17411
  case "$host_cpu" in
 
17412
  ia64*)
 
17413
    shrext='.so'
 
17414
    hardcode_into_libs=yes
 
17415
    dynamic_linker="$host_os dld.so"
 
17416
    shlibpath_var=LD_LIBRARY_PATH
 
17417
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17418
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17419
    soname_spec='${libname}${release}${shared_ext}$major'
 
17420
    if test "X$HPUX_IA64_MODE" = X32; then
 
17421
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17422
    else
 
17423
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17424
    fi
 
17425
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17426
    ;;
 
17427
   hppa*64*)
 
17428
     shrext='.sl'
 
17429
     hardcode_into_libs=yes
 
17430
     dynamic_linker="$host_os dld.sl"
 
17431
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17432
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17433
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17434
     soname_spec='${libname}${release}${shared_ext}$major'
 
17435
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17436
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17437
     ;;
 
17438
   *)
 
17439
    shrext='.sl'
 
17440
    dynamic_linker="$host_os dld.sl"
 
17441
    shlibpath_var=SHLIB_PATH
 
17442
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17443
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17444
    soname_spec='${libname}${release}${shared_ext}$major'
 
17445
    ;;
 
17446
  esac
 
17447
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17448
  postinstall_cmds='chmod 555 $lib'
 
17449
  ;;
 
17450
 
 
17451
irix5* | irix6* | nonstopux*)
 
17452
  case $host_os in
 
17453
    nonstopux*) version_type=nonstopux ;;
 
17454
    *)
 
17455
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17456
                version_type=linux
 
17457
        else
 
17458
                version_type=irix
 
17459
        fi ;;
 
17460
  esac
 
17461
  need_lib_prefix=no
 
17462
  need_version=no
 
17463
  soname_spec='${libname}${release}${shared_ext}$major'
 
17464
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17465
  case $host_os in
 
17466
  irix5* | nonstopux*)
 
17467
    libsuff= shlibsuff=
 
17468
    ;;
 
17469
  *)
 
17470
    case $LD in # libtool.m4 will add one of these switches to LD
 
17471
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17472
      libsuff= shlibsuff= libmagic=32-bit;;
 
17473
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17474
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17475
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17476
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17477
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17478
    esac
 
17479
    ;;
 
17480
  esac
 
17481
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17482
  shlibpath_overrides_runpath=no
 
17483
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17484
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17485
  hardcode_into_libs=yes
 
17486
  ;;
 
17487
 
 
17488
# No shared lib support for Linux oldld, aout, or coff.
 
17489
linux*oldld* | linux*aout* | linux*coff*)
 
17490
  dynamic_linker=no
 
17491
  ;;
 
17492
 
 
17493
# This must be Linux ELF.
 
17494
linux*)
 
17495
  version_type=linux
 
17496
  need_lib_prefix=no
 
17497
  need_version=no
 
17498
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17499
  soname_spec='${libname}${release}${shared_ext}$major'
 
17500
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17501
  libsuff=
 
17502
  if test "x$LINUX_64_MODE" = x64; then
 
17503
    # Some platforms are per default 64-bit, so there's no /lib64
 
17504
    if test -d /lib64; then
 
17505
      libsuff=64
 
17506
    fi
 
17507
  fi
 
17508
  shlibpath_var=LD_LIBRARY_PATH
 
17509
  shlibpath_overrides_runpath=no
 
17510
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
17511
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
17512
  # This implies no fast_install, which is unacceptable.
 
17513
  # Some rework will be needed to allow for fast_install
 
17514
  # before this can be enabled.
 
17515
  hardcode_into_libs=yes
 
17516
 
 
17517
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17518
  # powerpc, because MkLinux only supported shared libraries with the
 
17519
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17520
  # most powerpc-linux boxes support dynamic linking these days and
 
17521
  # people can always --disable-shared, the test was removed, and we
 
17522
  # assume the GNU/Linux dynamic linker is in use.
 
17523
  dynamic_linker='GNU/Linux ld.so'
 
17524
  ;;
 
17525
 
 
17526
netbsd*)
 
17527
  version_type=sunos
 
17528
  need_lib_prefix=no
 
17529
  need_version=no
 
17530
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17531
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17532
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17533
    dynamic_linker='NetBSD (a.out) ld.so'
 
17534
  else
 
17535
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
17536
    soname_spec='${libname}${release}${shared_ext}$major'
 
17537
    dynamic_linker='NetBSD ld.elf_so'
 
17538
  fi
 
17539
  shlibpath_var=LD_LIBRARY_PATH
 
17540
  shlibpath_overrides_runpath=yes
 
17541
  hardcode_into_libs=yes
 
17542
  ;;
 
17543
 
 
17544
newsos6)
 
17545
  version_type=linux
 
17546
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17547
  shlibpath_var=LD_LIBRARY_PATH
 
17548
  shlibpath_overrides_runpath=yes
 
17549
  ;;
 
17550
 
 
17551
nto-qnx*)
 
17552
  version_type=linux
 
17553
  need_lib_prefix=no
 
17554
  need_version=no
 
17555
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17556
  soname_spec='${libname}${release}${shared_ext}$major'
 
17557
  shlibpath_var=LD_LIBRARY_PATH
 
17558
  shlibpath_overrides_runpath=yes
 
17559
  ;;
 
17560
 
 
17561
openbsd*)
 
17562
  version_type=sunos
 
17563
  need_lib_prefix=no
 
17564
  need_version=no
 
17565
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17566
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17567
  shlibpath_var=LD_LIBRARY_PATH
 
17568
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17569
    case $host_os in
 
17570
      openbsd2.[89] | openbsd2.[89].*)
 
17571
        shlibpath_overrides_runpath=no
 
17572
        ;;
 
17573
      *)
 
17574
        shlibpath_overrides_runpath=yes
 
17575
        ;;
 
17576
      esac
 
17577
  else
 
17578
    shlibpath_overrides_runpath=yes
 
17579
  fi
 
17580
  ;;
 
17581
 
 
17582
os2*)
 
17583
  libname_spec='$name'
 
17584
  shrext=".dll"
 
17585
  need_lib_prefix=no
 
17586
  library_names_spec='$libname${shared_ext} $libname.a'
 
17587
  dynamic_linker='OS/2 ld.exe'
 
17588
  shlibpath_var=LIBPATH
 
17589
  ;;
 
17590
 
 
17591
osf3* | osf4* | osf5*)
 
17592
  version_type=osf
 
17593
  need_lib_prefix=no
 
17594
  need_version=no
 
17595
  soname_spec='${libname}${release}${shared_ext}$major'
 
17596
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17597
  shlibpath_var=LD_LIBRARY_PATH
 
17598
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17599
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17600
  ;;
 
17601
 
 
17602
sco3.2v5*)
 
17603
  version_type=osf
 
17604
  soname_spec='${libname}${release}${shared_ext}$major'
 
17605
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17606
  shlibpath_var=LD_LIBRARY_PATH
 
17607
  ;;
 
17608
 
 
17609
solaris*)
 
17610
  version_type=linux
 
17611
  need_lib_prefix=no
 
17612
  need_version=no
 
17613
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17614
  soname_spec='${libname}${release}${shared_ext}$major'
 
17615
  shlibpath_var=LD_LIBRARY_PATH
 
17616
  shlibpath_overrides_runpath=yes
 
17617
  hardcode_into_libs=yes
 
17618
  # ldd complains unless libraries are executable
 
17619
  postinstall_cmds='chmod +x $lib'
 
17620
  ;;
 
17621
 
 
17622
sunos4*)
 
17623
  version_type=sunos
 
17624
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17625
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17626
  shlibpath_var=LD_LIBRARY_PATH
 
17627
  shlibpath_overrides_runpath=yes
 
17628
  if test "$with_gnu_ld" = yes; then
 
17629
    need_lib_prefix=no
 
17630
  fi
 
17631
  need_version=yes
 
17632
  ;;
 
17633
 
 
17634
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17635
  version_type=linux
 
17636
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17637
  soname_spec='${libname}${release}${shared_ext}$major'
 
17638
  shlibpath_var=LD_LIBRARY_PATH
 
17639
  case $host_vendor in
 
17640
    sni)
 
17641
      shlibpath_overrides_runpath=no
 
17642
      need_lib_prefix=no
 
17643
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17644
      runpath_var=LD_RUN_PATH
 
17645
      ;;
 
17646
    siemens)
 
17647
      need_lib_prefix=no
 
17648
      ;;
 
17649
    motorola)
 
17650
      need_lib_prefix=no
 
17651
      need_version=no
 
17652
      shlibpath_overrides_runpath=no
 
17653
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17654
      ;;
 
17655
  esac
 
17656
  ;;
 
17657
 
 
17658
sysv4*MP*)
 
17659
  if test -d /usr/nec ;then
 
17660
    version_type=linux
 
17661
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17662
    soname_spec='$libname${shared_ext}.$major'
 
17663
    shlibpath_var=LD_LIBRARY_PATH
 
17664
  fi
 
17665
  ;;
 
17666
 
 
17667
uts4*)
 
17668
  version_type=linux
 
17669
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17670
  soname_spec='${libname}${release}${shared_ext}$major'
 
17671
  shlibpath_var=LD_LIBRARY_PATH
 
17672
  ;;
 
17673
 
 
17674
*)
 
17675
  dynamic_linker=no
 
17676
  ;;
 
17677
esac
 
17678
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17679
echo "${ECHO_T}$dynamic_linker" >&6
 
17680
test "$dynamic_linker" = no && can_build_shared=no
 
17681
 
 
17682
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17683
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17684
hardcode_action_F77=
 
17685
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
17686
   test -n "$runpath_var F77" || \
 
17687
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
17688
 
 
17689
  # We can hardcode non-existant directories.
 
17690
  if test "$hardcode_direct_F77" != no &&
 
17691
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17692
     # have to relink, otherwise we might link with an installed library
 
17693
     # when we should be linking with a yet-to-be-installed one
 
17694
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
17695
     test "$hardcode_minus_L_F77" != no; then
 
17696
    # Linking always hardcodes the temporary library directory.
 
17697
    hardcode_action_F77=relink
 
17698
  else
 
17699
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17700
    hardcode_action_F77=immediate
 
17701
  fi
 
17702
else
 
17703
  # We cannot hardcode anything, or else we can only hardcode existing
 
17704
  # directories.
 
17705
  hardcode_action_F77=unsupported
 
17706
fi
 
17707
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
17708
echo "${ECHO_T}$hardcode_action_F77" >&6
 
17709
 
 
17710
if test "$hardcode_action_F77" = relink; then
 
17711
  # Fast installation is not supported
 
17712
  enable_fast_install=no
 
17713
elif test "$shlibpath_overrides_runpath" = yes ||
 
17714
     test "$enable_shared" = no; then
 
17715
  # Fast installation is not necessary
 
17716
  enable_fast_install=needless
 
17717
fi
 
17718
 
 
17719
striplib=
 
17720
old_striplib=
 
17721
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17722
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17723
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17724
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17725
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17726
  echo "$as_me:$LINENO: result: yes" >&5
 
17727
echo "${ECHO_T}yes" >&6
 
17728
else
 
17729
# FIXME - insert some real tests, host_os isn't really good enough
 
17730
  case $host_os in
 
17731
   darwin*)
 
17732
       if test -n "$STRIP" ; then
 
17733
         striplib="$STRIP -x"
 
17734
         echo "$as_me:$LINENO: result: yes" >&5
 
17735
echo "${ECHO_T}yes" >&6
 
17736
       else
 
17737
  echo "$as_me:$LINENO: result: no" >&5
 
17738
echo "${ECHO_T}no" >&6
 
17739
fi
 
17740
       ;;
 
17741
   *)
 
17742
  echo "$as_me:$LINENO: result: no" >&5
 
17743
echo "${ECHO_T}no" >&6
 
17744
    ;;
 
17745
  esac
 
17746
fi
 
17747
 
 
17748
 
 
17749
 
 
17750
# The else clause should only fire when bootstrapping the
 
17751
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17752
# with your package, and you will get complaints that there are
 
17753
# no rules to generate ltmain.sh.
 
17754
if test -f "$ltmain"; then
 
17755
  # See if we are running on zsh, and set the options which allow our commands through
 
17756
  # without removal of \ escapes.
 
17757
  if test -n "${ZSH_VERSION+set}" ; then
 
17758
    setopt NO_GLOB_SUBST
 
17759
  fi
 
17760
  # Now quote all the things that may contain metacharacters while being
 
17761
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17762
  # variables and quote the copies for generation of the libtool script.
 
17763
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
17764
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17765
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17766
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17767
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17768
    lt_cv_sys_global_symbol_to_c_name_address \
 
17769
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17770
    old_postinstall_cmds old_postuninstall_cmds \
 
17771
    compiler_F77 \
 
17772
    CC_F77 \
 
17773
    LD_F77 \
 
17774
    lt_prog_compiler_wl_F77 \
 
17775
    lt_prog_compiler_pic_F77 \
 
17776
    lt_prog_compiler_static_F77 \
 
17777
    lt_prog_compiler_no_builtin_flag_F77 \
 
17778
    export_dynamic_flag_spec_F77 \
 
17779
    thread_safe_flag_spec_F77 \
 
17780
    whole_archive_flag_spec_F77 \
 
17781
    enable_shared_with_static_runtimes_F77 \
 
17782
    old_archive_cmds_F77 \
 
17783
    old_archive_from_new_cmds_F77 \
 
17784
    predep_objects_F77 \
 
17785
    postdep_objects_F77 \
 
17786
    predeps_F77 \
 
17787
    postdeps_F77 \
 
17788
    compiler_lib_search_path_F77 \
 
17789
    archive_cmds_F77 \
 
17790
    archive_expsym_cmds_F77 \
 
17791
    postinstall_cmds_F77 \
 
17792
    postuninstall_cmds_F77 \
 
17793
    old_archive_from_expsyms_cmds_F77 \
 
17794
    allow_undefined_flag_F77 \
 
17795
    no_undefined_flag_F77 \
 
17796
    export_symbols_cmds_F77 \
 
17797
    hardcode_libdir_flag_spec_F77 \
 
17798
    hardcode_libdir_flag_spec_ld_F77 \
 
17799
    hardcode_libdir_separator_F77 \
 
17800
    hardcode_automatic_F77 \
 
17801
    module_cmds_F77 \
 
17802
    module_expsym_cmds_F77 \
 
17803
    lt_cv_prog_compiler_c_o_F77 \
 
17804
    exclude_expsyms_F77 \
 
17805
    include_expsyms_F77; do
 
17806
 
 
17807
    case $var in
 
17808
    old_archive_cmds_F77 | \
 
17809
    old_archive_from_new_cmds_F77 | \
 
17810
    archive_cmds_F77 | \
 
17811
    archive_expsym_cmds_F77 | \
 
17812
    module_cmds_F77 | \
 
17813
    module_expsym_cmds_F77 | \
 
17814
    old_archive_from_expsyms_cmds_F77 | \
 
17815
    export_symbols_cmds_F77 | \
 
17816
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17817
    postinstall_cmds | postuninstall_cmds | \
 
17818
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17819
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17820
      # Double-quote double-evaled strings.
 
17821
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17822
      ;;
 
17823
    *)
 
17824
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17825
      ;;
 
17826
    esac
 
17827
  done
 
17828
 
 
17829
  case $lt_echo in
 
17830
  *'\$0 --fallback-echo"')
 
17831
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17832
    ;;
 
17833
  esac
 
17834
 
 
17835
cfgfile="$ofile"
 
17836
 
 
17837
  cat <<__EOF__ >> "$cfgfile"
 
17838
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17839
 
 
17840
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17841
 
 
17842
# Shell to use when invoking shell scripts.
 
17843
SHELL=$lt_SHELL
 
17844
 
 
17845
# Whether or not to build shared libraries.
 
17846
build_libtool_libs=$enable_shared
 
17847
 
 
17848
# Whether or not to build static libraries.
 
17849
build_old_libs=$enable_static
 
17850
 
 
17851
# Whether or not to add -lc for building shared libraries.
 
17852
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
17853
 
 
17854
# Whether or not to disallow shared libs when runtime libs are static
 
17855
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
17856
 
 
17857
# Whether or not to optimize for fast installation.
 
17858
fast_install=$enable_fast_install
 
17859
 
 
17860
# The host system.
 
17861
host_alias=$host_alias
 
17862
host=$host
 
17863
 
 
17864
# An echo program that does not interpret backslashes.
 
17865
echo=$lt_echo
 
17866
 
 
17867
# The archiver.
 
17868
AR=$lt_AR
 
17869
AR_FLAGS=$lt_AR_FLAGS
 
17870
 
 
17871
# A C compiler.
 
17872
LTCC=$lt_LTCC
 
17873
 
 
17874
# A language-specific compiler.
 
17875
CC=$lt_compiler_F77
 
17876
 
 
17877
# Is the compiler the GNU C compiler?
 
17878
with_gcc=$GCC_F77
 
17879
 
 
17880
# An ERE matcher.
 
17881
EGREP=$lt_EGREP
 
17882
 
 
17883
# The linker used to build libraries.
 
17884
LD=$lt_LD_F77
 
17885
 
 
17886
# Whether we need hard or soft links.
 
17887
LN_S=$lt_LN_S
 
17888
 
 
17889
# A BSD-compatible nm program.
 
17890
NM=$lt_NM
 
17891
 
 
17892
# A symbol stripping program
 
17893
STRIP=$STRIP
 
17894
 
 
17895
# Used to examine libraries when file_magic_cmd begins "file"
 
17896
MAGIC_CMD=$MAGIC_CMD
 
17897
 
 
17898
# Used on cygwin: DLL creation program.
 
17899
DLLTOOL="$DLLTOOL"
 
17900
 
 
17901
# Used on cygwin: object dumper.
 
17902
OBJDUMP="$OBJDUMP"
 
17903
 
 
17904
# Used on cygwin: assembler.
 
17905
AS="$AS"
 
17906
 
 
17907
# The name of the directory that contains temporary libtool files.
 
17908
objdir=$objdir
 
17909
 
 
17910
# How to create reloadable object files.
 
17911
reload_flag=$lt_reload_flag
 
17912
reload_cmds=$lt_reload_cmds
 
17913
 
 
17914
# How to pass a linker flag through the compiler.
 
17915
wl=$lt_lt_prog_compiler_wl_F77
 
17916
 
 
17917
# Object file suffix (normally "o").
 
17918
objext="$ac_objext"
 
17919
 
 
17920
# Old archive suffix (normally "a").
 
17921
libext="$libext"
 
17922
 
 
17923
# Shared library suffix (normally ".so").
 
17924
shrext='$shrext'
 
17925
 
 
17926
# Executable file suffix (normally "").
 
17927
exeext="$exeext"
 
17928
 
 
17929
# Additional compiler flags for building library objects.
 
17930
pic_flag=$lt_lt_prog_compiler_pic_F77
 
17931
pic_mode=$pic_mode
 
17932
 
 
17933
# What is the maximum length of a command?
 
17934
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17935
 
 
17936
# Does compiler simultaneously support -c and -o options?
 
17937
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
17938
 
 
17939
# Must we lock files when doing compilation ?
 
17940
need_locks=$lt_need_locks
 
17941
 
 
17942
# Do we need the lib prefix for modules?
 
17943
need_lib_prefix=$need_lib_prefix
 
17944
 
 
17945
# Do we need a version for libraries?
 
17946
need_version=$need_version
 
17947
 
 
17948
# Whether dlopen is supported.
 
17949
dlopen_support=$enable_dlopen
 
17950
 
 
17951
# Whether dlopen of programs is supported.
 
17952
dlopen_self=$enable_dlopen_self
 
17953
 
 
17954
# Whether dlopen of statically linked programs is supported.
 
17955
dlopen_self_static=$enable_dlopen_self_static
 
17956
 
 
17957
# Compiler flag to prevent dynamic linking.
 
17958
link_static_flag=$lt_lt_prog_compiler_static_F77
 
17959
 
 
17960
# Compiler flag to turn off builtin functions.
 
17961
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
17962
 
 
17963
# Compiler flag to allow reflexive dlopens.
 
17964
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
17965
 
 
17966
# Compiler flag to generate shared objects directly from archives.
 
17967
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
17968
 
 
17969
# Compiler flag to generate thread-safe objects.
 
17970
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
17971
 
 
17972
# Library versioning type.
 
17973
version_type=$version_type
 
17974
 
 
17975
# Format of library name prefix.
 
17976
libname_spec=$lt_libname_spec
 
17977
 
 
17978
# List of archive names.  First name is the real one, the rest are links.
 
17979
# The last name is the one that the linker finds with -lNAME.
 
17980
library_names_spec=$lt_library_names_spec
 
17981
 
 
17982
# The coded name of the library, if different from the real name.
 
17983
soname_spec=$lt_soname_spec
 
17984
 
 
17985
# Commands used to build and install an old-style archive.
 
17986
RANLIB=$lt_RANLIB
 
17987
old_archive_cmds=$lt_old_archive_cmds_F77
 
17988
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17989
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17990
 
 
17991
# Create an old-style archive from a shared archive.
 
17992
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
17993
 
 
17994
# Create a temporary old-style archive to link instead of a shared archive.
 
17995
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
17996
 
 
17997
# Commands used to build and install a shared archive.
 
17998
archive_cmds=$lt_archive_cmds_F77
 
17999
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
18000
postinstall_cmds=$lt_postinstall_cmds
 
18001
postuninstall_cmds=$lt_postuninstall_cmds
 
18002
 
 
18003
# Commands used to build a loadable module (assumed same as above if empty)
 
18004
module_cmds=$lt_module_cmds_F77
 
18005
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
18006
 
 
18007
# Commands to strip libraries.
 
18008
old_striplib=$lt_old_striplib
 
18009
striplib=$lt_striplib
 
18010
 
 
18011
# Dependencies to place before the objects being linked to create a
 
18012
# shared library.
 
18013
predep_objects=$lt_predep_objects_F77
 
18014
 
 
18015
# Dependencies to place after the objects being linked to create a
 
18016
# shared library.
 
18017
postdep_objects=$lt_postdep_objects_F77
 
18018
 
 
18019
# Dependencies to place before the objects being linked to create a
 
18020
# shared library.
 
18021
predeps=$lt_predeps_F77
 
18022
 
 
18023
# Dependencies to place after the objects being linked to create a
 
18024
# shared library.
 
18025
postdeps=$lt_postdeps_F77
 
18026
 
 
18027
# The library search path used internally by the compiler when linking
 
18028
# a shared library.
 
18029
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
18030
 
 
18031
# Method to check whether dependent libraries are shared objects.
 
18032
deplibs_check_method=$lt_deplibs_check_method
 
18033
 
 
18034
# Command to use when deplibs_check_method == file_magic.
 
18035
file_magic_cmd=$lt_file_magic_cmd
 
18036
 
 
18037
# Flag that allows shared libraries with undefined symbols to be built.
 
18038
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
18039
 
 
18040
# Flag that forces no undefined symbols.
 
18041
no_undefined_flag=$lt_no_undefined_flag_F77
 
18042
 
 
18043
# Commands used to finish a libtool library installation in a directory.
 
18044
finish_cmds=$lt_finish_cmds
 
18045
 
 
18046
# Same as above, but a single script fragment to be evaled but not shown.
 
18047
finish_eval=$lt_finish_eval
 
18048
 
 
18049
# Take the output of nm and produce a listing of raw symbols and C names.
 
18050
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18051
 
 
18052
# Transform the output of nm in a proper C declaration
 
18053
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18054
 
 
18055
# Transform the output of nm in a C name address pair
 
18056
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18057
 
 
18058
# This is the shared library runtime path variable.
 
18059
runpath_var=$runpath_var
 
18060
 
 
18061
# This is the shared library path variable.
 
18062
shlibpath_var=$shlibpath_var
 
18063
 
 
18064
# Is shlibpath searched before the hard-coded library search path?
 
18065
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18066
 
 
18067
# How to hardcode a shared library path into an executable.
 
18068
hardcode_action=$hardcode_action_F77
 
18069
 
 
18070
# Whether we should hardcode library paths into libraries.
 
18071
hardcode_into_libs=$hardcode_into_libs
 
18072
 
 
18073
# Flag to hardcode \$libdir into a binary during linking.
 
18074
# This must work even if \$libdir does not exist.
 
18075
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
18076
 
 
18077
# If ld is used when linking, flag to hardcode \$libdir into
 
18078
# a binary during linking. This must work even if \$libdir does
 
18079
# not exist.
 
18080
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
18081
 
 
18082
# Whether we need a single -rpath flag with a separated argument.
 
18083
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
18084
 
 
18085
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18086
# resulting binary.
 
18087
hardcode_direct=$hardcode_direct_F77
 
18088
 
 
18089
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18090
# resulting binary.
 
18091
hardcode_minus_L=$hardcode_minus_L_F77
 
18092
 
 
18093
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18094
# the resulting binary.
 
18095
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
18096
 
 
18097
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18098
# and all subsequent libraries and executables linked against it.
 
18099
hardcode_automatic=$hardcode_automatic_F77
 
18100
 
 
18101
# Variables whose values should be saved in libtool wrapper scripts and
 
18102
# restored at relink time.
 
18103
variables_saved_for_relink="$variables_saved_for_relink"
 
18104
 
 
18105
# Whether libtool must link a program against all its dependency libraries.
 
18106
link_all_deplibs=$link_all_deplibs_F77
 
18107
 
 
18108
# Compile-time system search path for libraries
 
18109
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18110
 
 
18111
# Run-time system search path for libraries
 
18112
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18113
 
 
18114
# Fix the shell variable \$srcfile for the compiler.
 
18115
fix_srcfile_path="$fix_srcfile_path_F77"
 
18116
 
 
18117
# Set to yes if exported symbols are required.
 
18118
always_export_symbols=$always_export_symbols_F77
 
18119
 
 
18120
# The commands to list exported symbols.
 
18121
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
18122
 
 
18123
# The commands to extract the exported symbol list from a shared archive.
 
18124
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18125
 
 
18126
# Symbols that should not be listed in the preloaded symbols.
 
18127
exclude_expsyms=$lt_exclude_expsyms_F77
 
18128
 
 
18129
# Symbols that must always be exported.
 
18130
include_expsyms=$lt_include_expsyms_F77
 
18131
 
 
18132
# ### END LIBTOOL TAG CONFIG: $tagname
 
18133
 
 
18134
__EOF__
 
18135
 
 
18136
 
 
18137
else
 
18138
  # If there is no Makefile yet, we rely on a make rule to execute
 
18139
  # `config.status --recheck' to rerun these tests and create the
 
18140
  # libtool script then.
 
18141
  test -f Makefile && make "$ltmain"
 
18142
fi
 
18143
 
 
18144
 
 
18145
ac_ext=c
 
18146
ac_cpp='$CPP $CPPFLAGS'
 
18147
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18148
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18149
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18150
 
 
18151
CC="$lt_save_CC"
 
18152
 
 
18153
        else
 
18154
          tagname=""
 
18155
        fi
 
18156
        ;;
 
18157
 
 
18158
      GCJ)
 
18159
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
18160
 
 
18161
 
 
18162
 
 
18163
# Source file extension for Java test sources.
 
18164
ac_ext=java
 
18165
 
 
18166
# Object file extension for compiled Java test sources.
 
18167
objext=o
 
18168
objext_GCJ=$objext
 
18169
 
 
18170
# Code to be used in simple compile tests
 
18171
lt_simple_compile_test_code="class foo {}\n"
 
18172
 
 
18173
# Code to be used in simple link tests
 
18174
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
18175
 
 
18176
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18177
 
 
18178
# If no C compiler was specified, use CC.
 
18179
LTCC=${LTCC-"$CC"}
 
18180
 
 
18181
# Allow CC to be a program name with arguments.
 
18182
compiler=$CC
 
18183
 
 
18184
 
 
18185
# Allow CC to be a program name with arguments.
 
18186
lt_save_CC="$CC"
 
18187
CC=${GCJ-"gcj"}
 
18188
compiler=$CC
 
18189
compiler_GCJ=$CC
 
18190
 
 
18191
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
18192
archive_cmds_need_lc_GCJ=no
 
18193
 
 
18194
## CAVEAT EMPTOR:
 
18195
## There is no encapsulation within the following macros, do not change
 
18196
## the running order or otherwise move them around unless you know exactly
 
18197
## what you are doing...
 
18198
 
 
18199
lt_prog_compiler_no_builtin_flag_GCJ=
 
18200
 
 
18201
if test "$GCC" = yes; then
 
18202
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
18203
 
 
18204
 
 
18205
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
18206
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
18207
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
18208
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18209
else
 
18210
  lt_cv_prog_compiler_rtti_exceptions=no
 
18211
  ac_outfile=conftest.$ac_objext
 
18212
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18213
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
18214
   # Insert the option either (1) after the last *FLAGS variable, or
 
18215
   # (2) before a word containing "conftest.", or (3) at the end.
 
18216
   # Note that $ac_compile itself does not contain backslashes and begins
 
18217
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18218
   # The option is referenced via a variable to avoid confusing sed.
 
18219
   lt_compile=`echo "$ac_compile" | $SED \
 
18220
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
18221
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18222
   -e 's:$: $lt_compiler_flag:'`
 
18223
   (eval echo "\"\$as_me:18223: $lt_compile\"" >&5)
 
18224
   (eval "$lt_compile" 2>conftest.err)
 
18225
   ac_status=$?
 
18226
   cat conftest.err >&5
 
18227
   echo "$as_me:18227: \$? = $ac_status" >&5
 
18228
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
18229
     # The compiler can only warn and ignore the option if not recognized
 
18230
     # So say no if there are warnings
 
18231
     if test ! -s conftest.err; then
 
18232
       lt_cv_prog_compiler_rtti_exceptions=yes
 
18233
     fi
 
18234
   fi
 
18235
   $rm conftest*
 
18236
 
 
18237
fi
 
18238
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
18239
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
18240
 
 
18241
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
18242
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
18243
else
 
18244
    :
 
18245
fi
 
18246
 
 
18247
fi
 
18248
 
 
18249
lt_prog_compiler_wl_GCJ=
 
18250
lt_prog_compiler_pic_GCJ=
 
18251
lt_prog_compiler_static_GCJ=
 
18252
 
 
18253
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
18254
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
18255
 
 
18256
  if test "$GCC" = yes; then
 
18257
    lt_prog_compiler_wl_GCJ='-Wl,'
 
18258
    lt_prog_compiler_static_GCJ='-static'
 
18259
 
 
18260
    case $host_os in
 
18261
      aix*)
 
18262
      # All AIX code is PIC.
 
18263
      if test "$host_cpu" = ia64; then
 
18264
        # AIX 5 now supports IA64 processor
 
18265
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18266
      fi
 
18267
      ;;
 
18268
 
 
18269
    amigaos*)
 
18270
      # FIXME: we need at least 68020 code to build shared libraries, but
 
18271
      # adding the `-m68020' flag to GCC prevents building anything better,
 
18272
      # like `-m68040'.
 
18273
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
18274
      ;;
 
18275
 
 
18276
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
18277
      # PIC is the default for these OSes.
 
18278
      ;;
 
18279
 
 
18280
    mingw* | pw32* | os2*)
 
18281
      # This hack is so that the source file can tell whether it is being
 
18282
      # built for inclusion in a dll (and should export symbols for example).
 
18283
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
18284
      ;;
 
18285
 
 
18286
    darwin* | rhapsody*)
 
18287
      # PIC is the default on this platform
 
18288
      # Common symbols not allowed in MH_DYLIB files
 
18289
      lt_prog_compiler_pic_GCJ='-fno-common'
 
18290
      ;;
 
18291
 
 
18292
    msdosdjgpp*)
 
18293
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
18294
      # on systems that don't support them.
 
18295
      lt_prog_compiler_can_build_shared_GCJ=no
 
18296
      enable_shared=no
 
18297
      ;;
 
18298
 
 
18299
    sysv4*MP*)
 
18300
      if test -d /usr/nec; then
 
18301
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
18302
      fi
 
18303
      ;;
 
18304
 
 
18305
    hpux*)
 
18306
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
18307
      # not for PA HP-UX.
 
18308
      case "$host_cpu" in
 
18309
      hppa*64*|ia64*)
 
18310
        # +Z the default
 
18311
        ;;
 
18312
      *)
 
18313
        lt_prog_compiler_pic_GCJ='-fPIC'
 
18314
        ;;
 
18315
      esac
 
18316
      ;;
 
18317
 
 
18318
    *)
 
18319
      lt_prog_compiler_pic_GCJ='-fPIC'
 
18320
      ;;
 
18321
    esac
 
18322
  else
 
18323
    # PORTME Check for flag to pass linker flags through the system compiler.
 
18324
    case $host_os in
 
18325
    aix*)
 
18326
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18327
      if test "$host_cpu" = ia64; then
 
18328
        # AIX 5 now supports IA64 processor
 
18329
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18330
      else
 
18331
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
18332
      fi
 
18333
      ;;
 
18334
 
 
18335
    mingw* | pw32* | os2*)
 
18336
      # This hack is so that the source file can tell whether it is being
 
18337
      # built for inclusion in a dll (and should export symbols for example).
 
18338
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
18339
      ;;
 
18340
 
 
18341
    hpux9* | hpux10* | hpux11*)
 
18342
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18343
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
18344
      # not for PA HP-UX.
 
18345
      case "$host_cpu" in
 
18346
      hppa*64*|ia64*)
 
18347
        # +Z the default
 
18348
        ;;
 
18349
      *)
 
18350
        lt_prog_compiler_pic_GCJ='+Z'
 
18351
        ;;
 
18352
      esac
 
18353
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
18354
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
18355
      ;;
 
18356
 
 
18357
    irix5* | irix6* | nonstopux*)
 
18358
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18359
      # PIC (with -KPIC) is the default.
 
18360
      lt_prog_compiler_static_GCJ='-non_shared'
 
18361
      ;;
 
18362
 
 
18363
    newsos6)
 
18364
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18365
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18366
      ;;
 
18367
 
 
18368
    linux*)
 
18369
      case $CC in
 
18370
      icc* | ecc*)
 
18371
        lt_prog_compiler_wl_GCJ='-Wl,'
 
18372
        lt_prog_compiler_pic_GCJ='-KPIC'
 
18373
        lt_prog_compiler_static_GCJ='-static'
 
18374
        ;;
 
18375
      ccc*)
 
18376
        lt_prog_compiler_wl_GCJ='-Wl,'
 
18377
        # All Alpha code is PIC.
 
18378
        lt_prog_compiler_static_GCJ='-non_shared'
 
18379
        ;;
 
18380
      esac
 
18381
      ;;
 
18382
 
 
18383
    osf3* | osf4* | osf5*)
 
18384
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18385
      # All OSF/1 code is PIC.
 
18386
      lt_prog_compiler_static_GCJ='-non_shared'
 
18387
      ;;
 
18388
 
 
18389
    sco3.2v5*)
 
18390
      lt_prog_compiler_pic_GCJ='-Kpic'
 
18391
      lt_prog_compiler_static_GCJ='-dn'
 
18392
      ;;
 
18393
 
 
18394
    solaris*)
 
18395
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18396
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18397
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18398
      ;;
 
18399
 
 
18400
    sunos4*)
 
18401
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
18402
      lt_prog_compiler_pic_GCJ='-PIC'
 
18403
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18404
      ;;
 
18405
 
 
18406
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18407
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18408
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18409
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18410
      ;;
 
18411
 
 
18412
    sysv4*MP*)
 
18413
      if test -d /usr/nec ;then
 
18414
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
18415
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18416
      fi
 
18417
      ;;
 
18418
 
 
18419
    uts4*)
 
18420
      lt_prog_compiler_pic_GCJ='-pic'
 
18421
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18422
      ;;
 
18423
 
 
18424
    *)
 
18425
      lt_prog_compiler_can_build_shared_GCJ=no
 
18426
      ;;
 
18427
    esac
 
18428
  fi
 
18429
 
 
18430
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
18431
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
18432
 
 
18433
#
 
18434
# Check to make sure the PIC flag actually works.
 
18435
#
 
18436
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
18437
 
 
18438
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
18439
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
18440
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
18441
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18442
else
 
18443
  lt_prog_compiler_pic_works_GCJ=no
 
18444
  ac_outfile=conftest.$ac_objext
 
18445
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18446
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
18447
   # Insert the option either (1) after the last *FLAGS variable, or
 
18448
   # (2) before a word containing "conftest.", or (3) at the end.
 
18449
   # Note that $ac_compile itself does not contain backslashes and begins
 
18450
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18451
   # The option is referenced via a variable to avoid confusing sed.
 
18452
   lt_compile=`echo "$ac_compile" | $SED \
 
18453
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
18454
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18455
   -e 's:$: $lt_compiler_flag:'`
 
18456
   (eval echo "\"\$as_me:18456: $lt_compile\"" >&5)
 
18457
   (eval "$lt_compile" 2>conftest.err)
 
18458
   ac_status=$?
 
18459
   cat conftest.err >&5
 
18460
   echo "$as_me:18460: \$? = $ac_status" >&5
 
18461
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
18462
     # The compiler can only warn and ignore the option if not recognized
 
18463
     # So say no if there are warnings
 
18464
     if test ! -s conftest.err; then
 
18465
       lt_prog_compiler_pic_works_GCJ=yes
 
18466
     fi
 
18467
   fi
 
18468
   $rm conftest*
 
18469
 
 
18470
fi
 
18471
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
18472
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
18473
 
 
18474
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
18475
    case $lt_prog_compiler_pic_GCJ in
 
18476
     "" | " "*) ;;
 
18477
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
18478
     esac
 
18479
else
 
18480
    lt_prog_compiler_pic_GCJ=
 
18481
     lt_prog_compiler_can_build_shared_GCJ=no
 
18482
fi
 
18483
 
 
18484
fi
 
18485
case "$host_os" in
 
18486
  # For platforms which do not support PIC, -DPIC is meaningless:
 
18487
  *djgpp*)
 
18488
    lt_prog_compiler_pic_GCJ=
 
18489
    ;;
 
18490
  *)
 
18491
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
18492
    ;;
 
18493
esac
 
18494
 
 
18495
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
18496
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
18497
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
18498
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18499
else
 
18500
  lt_cv_prog_compiler_c_o_GCJ=no
 
18501
   $rm -r conftest 2>/dev/null
 
18502
   mkdir conftest
 
18503
   cd conftest
 
18504
   mkdir out
 
18505
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18506
 
 
18507
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
18508
   # that will create temporary files in the current directory regardless of
 
18509
   # the output directory.  Thus, making CWD read-only will cause this test
 
18510
   # to fail, enabling locking or at least warning the user not to do parallel
 
18511
   # builds.
 
18512
   chmod -w .
 
18513
 
 
18514
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
18515
   # Insert the option either (1) after the last *FLAGS variable, or
 
18516
   # (2) before a word containing "conftest.", or (3) at the end.
 
18517
   # Note that $ac_compile itself does not contain backslashes and begins
 
18518
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18519
   lt_compile=`echo "$ac_compile" | $SED \
 
18520
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
18521
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18522
   -e 's:$: $lt_compiler_flag:'`
 
18523
   (eval echo "\"\$as_me:18523: $lt_compile\"" >&5)
 
18524
   (eval "$lt_compile" 2>out/conftest.err)
 
18525
   ac_status=$?
 
18526
   cat out/conftest.err >&5
 
18527
   echo "$as_me:18527: \$? = $ac_status" >&5
 
18528
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
18529
   then
 
18530
     # The compiler can only warn and ignore the option if not recognized
 
18531
     # So say no if there are warnings
 
18532
     if test ! -s out/conftest.err; then
 
18533
       lt_cv_prog_compiler_c_o_GCJ=yes
 
18534
     fi
 
18535
   fi
 
18536
   chmod u+w .
 
18537
   $rm conftest* out/*
 
18538
   rmdir out
 
18539
   cd ..
 
18540
   rmdir conftest
 
18541
   $rm conftest*
 
18542
 
 
18543
fi
 
18544
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
18545
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
18546
 
 
18547
 
 
18548
hard_links="nottested"
 
18549
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
18550
  # do not overwrite the value of need_locks provided by the user
 
18551
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
18552
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
18553
  hard_links=yes
 
18554
  $rm conftest*
 
18555
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
18556
  touch conftest.a
 
18557
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
18558
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
18559
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
18560
echo "${ECHO_T}$hard_links" >&6
 
18561
  if test "$hard_links" = no; then
 
18562
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
18563
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
18564
    need_locks=warn
 
18565
  fi
 
18566
else
 
18567
  need_locks=no
 
18568
fi
 
18569
 
 
18570
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
18571
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
18572
 
 
18573
  runpath_var=
 
18574
  allow_undefined_flag_GCJ=
 
18575
  enable_shared_with_static_runtimes_GCJ=no
 
18576
  archive_cmds_GCJ=
 
18577
  archive_expsym_cmds_GCJ=
 
18578
  old_archive_From_new_cmds_GCJ=
 
18579
  old_archive_from_expsyms_cmds_GCJ=
 
18580
  export_dynamic_flag_spec_GCJ=
 
18581
  whole_archive_flag_spec_GCJ=
 
18582
  thread_safe_flag_spec_GCJ=
 
18583
  hardcode_libdir_flag_spec_GCJ=
 
18584
  hardcode_libdir_flag_spec_ld_GCJ=
 
18585
  hardcode_libdir_separator_GCJ=
 
18586
  hardcode_direct_GCJ=no
 
18587
  hardcode_minus_L_GCJ=no
 
18588
  hardcode_shlibpath_var_GCJ=unsupported
 
18589
  link_all_deplibs_GCJ=unknown
 
18590
  hardcode_automatic_GCJ=no
 
18591
  module_cmds_GCJ=
 
18592
  module_expsym_cmds_GCJ=
 
18593
  always_export_symbols_GCJ=no
 
18594
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
18595
  # include_expsyms should be a list of space-separated symbols to be *always*
 
18596
  # included in the symbol list
 
18597
  include_expsyms_GCJ=
 
18598
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
18599
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
18600
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
18601
  # as well as any symbol that contains `d'.
 
18602
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
18603
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
18604
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
18605
  # the symbol is explicitly referenced.  Since portable code cannot
 
18606
  # rely on this symbol name, it's probably fine to never include it in
 
18607
  # preloaded symbol tables.
 
18608
  extract_expsyms_cmds=
 
18609
 
 
18610
  case $host_os in
 
18611
  cygwin* | mingw* | pw32*)
 
18612
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
18613
    # When not using gcc, we currently assume that we are using
 
18614
    # Microsoft Visual C++.
 
18615
    if test "$GCC" != yes; then
 
18616
      with_gnu_ld=no
 
18617
    fi
 
18618
    ;;
 
18619
  openbsd*)
 
18620
    with_gnu_ld=no
 
18621
    ;;
 
18622
  esac
 
18623
 
 
18624
  ld_shlibs_GCJ=yes
 
18625
  if test "$with_gnu_ld" = yes; then
 
18626
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
18627
    wlarc='${wl}'
 
18628
 
 
18629
    # See if GNU ld supports shared libraries.
 
18630
    case $host_os in
 
18631
    aix3* | aix4* | aix5*)
 
18632
      # On AIX/PPC, the GNU linker is very broken
 
18633
      if test "$host_cpu" != ia64; then
 
18634
        ld_shlibs_GCJ=no
 
18635
        cat <<EOF 1>&2
 
18636
 
 
18637
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
18638
*** to be unable to reliably create shared libraries on AIX.
 
18639
*** Therefore, libtool is disabling shared libraries support.  If you
 
18640
*** really care for shared libraries, you may want to modify your PATH
 
18641
*** so that a non-GNU linker is found, and then restart.
 
18642
 
 
18643
EOF
 
18644
      fi
 
18645
      ;;
 
18646
 
 
18647
    amigaos*)
 
18648
      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)'
 
18649
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18650
      hardcode_minus_L_GCJ=yes
 
18651
 
 
18652
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
18653
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
18654
      # to version 4, is to share data among multiple programs linked
 
18655
      # with the same dynamic library.  Since this doesn't match the
 
18656
      # behavior of shared libraries on other platforms, we can't use
 
18657
      # them.
 
18658
      ld_shlibs_GCJ=no
 
18659
      ;;
 
18660
 
 
18661
    beos*)
 
18662
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18663
        allow_undefined_flag_GCJ=unsupported
 
18664
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
18665
        # support --undefined.  This deserves some investigation.  FIXME
 
18666
        archive_cmds_GCJ='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
18667
      else
 
18668
        ld_shlibs_GCJ=no
 
18669
      fi
 
18670
      ;;
 
18671
 
 
18672
    cygwin* | mingw* | pw32*)
 
18673
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
18674
      # as there is no search path for DLLs.
 
18675
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18676
      allow_undefined_flag_GCJ=no
 
18677
      always_export_symbols_GCJ=no
 
18678
      enable_shared_with_static_runtimes_GCJ=yes
 
18679
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
18680
 
 
18681
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
18682
        archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
18683
        # If the export-symbols file already is a .def file (1st line
 
18684
        # is EXPORTS), use it as is; otherwise, prepend...
 
18685
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
18686
          cp $export_symbols $output_objdir/$soname.def;
 
18687
        else
 
18688
          echo EXPORTS > $output_objdir/$soname.def;
 
18689
          cat $export_symbols >> $output_objdir/$soname.def;
 
18690
        fi~
 
18691
        $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
18692
      else
 
18693
        ld_shlibs=no
 
18694
      fi
 
18695
      ;;
 
18696
 
 
18697
    netbsd*)
 
18698
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18699
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
18700
        wlarc=
 
18701
      else
 
18702
        archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
18703
        archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18704
      fi
 
18705
      ;;
 
18706
 
 
18707
    solaris* | sysv5*)
 
18708
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
18709
        ld_shlibs_GCJ=no
 
18710
        cat <<EOF 1>&2
 
18711
 
 
18712
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
18713
*** create shared libraries on Solaris systems.  Therefore, libtool
 
18714
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
18715
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
18716
*** your PATH or compiler configuration so that the native linker is
 
18717
*** used, and then restart.
 
18718
 
 
18719
EOF
 
18720
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18721
        archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
18722
        archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18723
      else
 
18724
        ld_shlibs_GCJ=no
 
18725
      fi
 
18726
      ;;
 
18727
 
 
18728
    sunos4*)
 
18729
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18730
      wlarc=
 
18731
      hardcode_direct_GCJ=yes
 
18732
      hardcode_shlibpath_var_GCJ=no
 
18733
      ;;
 
18734
 
 
18735
    *)
 
18736
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18737
        archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
18738
        archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18739
      else
 
18740
        ld_shlibs_GCJ=no
 
18741
      fi
 
18742
      ;;
 
18743
    esac
 
18744
 
 
18745
    if test "$ld_shlibs_GCJ" = yes; then
 
18746
      runpath_var=LD_RUN_PATH
 
18747
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
18748
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
18749
      # ancient GNU ld didn't support --whole-archive et. al.
 
18750
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
18751
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
18752
      else
 
18753
        whole_archive_flag_spec_GCJ=
 
18754
      fi
 
18755
    fi
 
18756
  else
 
18757
    # PORTME fill in a description of your system's linker (not GNU ld)
 
18758
    case $host_os in
 
18759
    aix3*)
 
18760
      allow_undefined_flag_GCJ=unsupported
 
18761
      always_export_symbols_GCJ=yes
 
18762
      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'
 
18763
      # Note: this linker hardcodes the directories in LIBPATH if there
 
18764
      # are no directories specified by -L.
 
18765
      hardcode_minus_L_GCJ=yes
 
18766
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
18767
        # Neither direct hardcoding nor static linking is supported with a
 
18768
        # broken collect2.
 
18769
        hardcode_direct_GCJ=unsupported
 
18770
      fi
 
18771
      ;;
 
18772
 
 
18773
    aix4* | aix5*)
 
18774
      if test "$host_cpu" = ia64; then
 
18775
        # On IA64, the linker does run time linking by default, so we don't
 
18776
        # have to do anything special.
 
18777
        aix_use_runtimelinking=no
 
18778
        exp_sym_flag='-Bexport'
 
18779
        no_entry_flag=""
 
18780
      else
 
18781
        # If we're using GNU nm, then we don't want the "-C" option.
 
18782
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
18783
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
18784
          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'
 
18785
        else
 
18786
          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'
 
18787
        fi
 
18788
 
 
18789
        # KDE requires run time linking.  Make it the default.
 
18790
        aix_use_runtimelinking=yes
 
18791
        exp_sym_flag='-bexport'
 
18792
        no_entry_flag='-bnoentry'
 
18793
      fi
 
18794
 
 
18795
      # When large executables or shared objects are built, AIX ld can
 
18796
      # have problems creating the table of contents.  If linking a library
 
18797
      # or program results in "error TOC overflow" add -mminimal-toc to
 
18798
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
18799
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
18800
 
 
18801
      archive_cmds_GCJ=''
 
18802
      hardcode_direct_GCJ=yes
 
18803
      hardcode_libdir_separator_GCJ=':'
 
18804
      link_all_deplibs_GCJ=yes
 
18805
 
 
18806
      if test "$GCC" = yes; then
 
18807
        case $host_os in aix4.012|aix4.012.*)
 
18808
        # We only want to do this on AIX 4.2 and lower, the check
 
18809
        # below for broken collect2 doesn't work under 4.3+
 
18810
          collect2name=`${CC} -print-prog-name=collect2`
 
18811
          if test -f "$collect2name" && \
 
18812
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
18813
          then
 
18814
          # We have reworked collect2
 
18815
          hardcode_direct_GCJ=yes
 
18816
          else
 
18817
          # We have old collect2
 
18818
          hardcode_direct_GCJ=unsupported
 
18819
          # It fails to find uninstalled libraries when the uninstalled
 
18820
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
18821
          # to unsupported forces relinking
 
18822
          hardcode_minus_L_GCJ=yes
 
18823
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18824
          hardcode_libdir_separator_GCJ=
 
18825
          fi
 
18826
        esac
 
18827
        shared_flag='-shared'
 
18828
      else
 
18829
        # not using gcc
 
18830
        if test "$host_cpu" = ia64; then
 
18831
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
18832
        # chokes on -Wl,-G. The following line is correct:
 
18833
          shared_flag='-G'
 
18834
        else
 
18835
        if test "$aix_use_runtimelinking" = yes; then
 
18836
            shared_flag='-qmkshrobj ${wl}-G'
 
18837
          else
 
18838
            shared_flag='-qmkshrobj'
 
18839
        fi
 
18840
        fi
 
18841
      fi
 
18842
 
 
18843
      # Let the compiler handle the export list.
 
18844
      always_export_symbols_GCJ=no
 
18845
      if test "$aix_use_runtimelinking" = yes; then
 
18846
        # Warning - without using the other runtime loading flags (-brtl),
 
18847
        # -berok will link without error, but may produce a broken library.
 
18848
        allow_undefined_flag_GCJ='-berok'
 
18849
       # Determine the default libpath from the value encoded in an empty executable.
 
18850
        cat >conftest.$ac_ext <<_ACEOF
 
18851
/* confdefs.h.  */
 
18852
_ACEOF
 
18853
cat confdefs.h >>conftest.$ac_ext
 
18854
cat >>conftest.$ac_ext <<_ACEOF
 
18855
/* end confdefs.h.  */
 
18856
 
 
18857
int
 
18858
main ()
 
18859
{
 
18860
 
 
18861
  ;
 
18862
  return 0;
 
18863
}
 
18864
_ACEOF
 
18865
rm -f conftest.$ac_objext conftest$ac_exeext
 
18866
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18867
  (eval $ac_link) 2>conftest.er1
 
18868
  ac_status=$?
 
18869
  grep -v '^ *+' conftest.er1 >conftest.err
 
18870
  rm -f conftest.er1
 
18871
  cat conftest.err >&5
 
18872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18873
  (exit $ac_status); } &&
 
18874
         { ac_try='test -z "$ac_c_werror_flag"
 
18875
                         || test ! -s conftest.err'
 
18876
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18877
  (eval $ac_try) 2>&5
 
18878
  ac_status=$?
 
18879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18880
  (exit $ac_status); }; } &&
 
18881
         { ac_try='test -s conftest$ac_exeext'
 
18882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18883
  (eval $ac_try) 2>&5
 
18884
  ac_status=$?
 
18885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18886
  (exit $ac_status); }; }; then
 
18887
 
 
18888
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18889
}'`
 
18890
# Check for a 64-bit object if we didn't find anything.
 
18891
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; }
 
18892
}'`; fi
 
18893
else
 
18894
  echo "$as_me: failed program was:" >&5
 
18895
sed 's/^/| /' conftest.$ac_ext >&5
 
18896
 
 
18897
fi
 
18898
rm -f conftest.err conftest.$ac_objext \
 
18899
      conftest$ac_exeext conftest.$ac_ext
 
18900
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18901
 
 
18902
        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18903
        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"
 
18904
        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"
 
18905
       else
 
18906
        if test "$host_cpu" = ia64; then
 
18907
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
18908
          allow_undefined_flag_GCJ="-z nodefs"
 
18909
          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"
 
18910
        else
 
18911
         # Determine the default libpath from the value encoded in an empty executable.
 
18912
         cat >conftest.$ac_ext <<_ACEOF
 
18913
/* confdefs.h.  */
 
18914
_ACEOF
 
18915
cat confdefs.h >>conftest.$ac_ext
 
18916
cat >>conftest.$ac_ext <<_ACEOF
 
18917
/* end confdefs.h.  */
 
18918
 
 
18919
int
 
18920
main ()
 
18921
{
 
18922
 
 
18923
  ;
 
18924
  return 0;
 
18925
}
 
18926
_ACEOF
 
18927
rm -f conftest.$ac_objext conftest$ac_exeext
 
18928
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18929
  (eval $ac_link) 2>conftest.er1
 
18930
  ac_status=$?
 
18931
  grep -v '^ *+' conftest.er1 >conftest.err
 
18932
  rm -f conftest.er1
 
18933
  cat conftest.err >&5
 
18934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18935
  (exit $ac_status); } &&
 
18936
         { ac_try='test -z "$ac_c_werror_flag"
 
18937
                         || test ! -s conftest.err'
 
18938
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18939
  (eval $ac_try) 2>&5
 
18940
  ac_status=$?
 
18941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18942
  (exit $ac_status); }; } &&
 
18943
         { ac_try='test -s conftest$ac_exeext'
 
18944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18945
  (eval $ac_try) 2>&5
 
18946
  ac_status=$?
 
18947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18948
  (exit $ac_status); }; }; then
 
18949
 
 
18950
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18951
}'`
 
18952
# Check for a 64-bit object if we didn't find anything.
 
18953
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; }
 
18954
}'`; fi
 
18955
else
 
18956
  echo "$as_me: failed program was:" >&5
 
18957
sed 's/^/| /' conftest.$ac_ext >&5
 
18958
 
 
18959
fi
 
18960
rm -f conftest.err conftest.$ac_objext \
 
18961
      conftest$ac_exeext conftest.$ac_ext
 
18962
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18963
 
 
18964
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18965
          # Warning - without using the other run time loading flags,
 
18966
          # -berok will link without error, but may produce a broken library.
 
18967
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
18968
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
18969
          # -bexpall does not export symbols beginning with underscore (_)
 
18970
          always_export_symbols_GCJ=yes
 
18971
          # Exported symbols can be pulled into shared objects from archives
 
18972
          whole_archive_flag_spec_GCJ=' '
 
18973
          archive_cmds_need_lc_GCJ=yes
 
18974
          # This is similar to how AIX traditionally builds it's shared libraries.
 
18975
          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'
 
18976
        fi
 
18977
      fi
 
18978
      ;;
 
18979
 
 
18980
    amigaos*)
 
18981
      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)'
 
18982
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18983
      hardcode_minus_L_GCJ=yes
 
18984
      # see comment about different semantics on the GNU ld section
 
18985
      ld_shlibs_GCJ=no
 
18986
      ;;
 
18987
 
 
18988
    bsdi4*)
 
18989
      export_dynamic_flag_spec_GCJ=-rdynamic
 
18990
      ;;
 
18991
 
 
18992
    cygwin* | mingw* | pw32*)
 
18993
      # When not using gcc, we currently assume that we are using
 
18994
      # Microsoft Visual C++.
 
18995
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
18996
      # no search path for DLLs.
 
18997
      hardcode_libdir_flag_spec_GCJ=' '
 
18998
      allow_undefined_flag_GCJ=no
 
18999
      # Tell ltmain to make .lib files, not .a files.
 
19000
      libext=lib
 
19001
      # Tell ltmain to make .dll files, not .so files.
 
19002
      shrext=".dll"
 
19003
      # FIXME: Setting linknames here is a bad hack.
 
19004
      archive_cmds_GCJ='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
19005
      # The linker will automatically build a .lib file if we build a DLL.
 
19006
      old_archive_From_new_cmds_GCJ='true'
 
19007
      # FIXME: Should let the user specify the lib program.
 
19008
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
19009
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
19010
      enable_shared_with_static_runtimes_GCJ=yes
 
19011
      ;;
 
19012
 
 
19013
    darwin* | rhapsody*)
 
19014
    if test "$GXX" = yes ; then
 
19015
      archive_cmds_need_lc_GCJ=no
 
19016
      case "$host_os" in
 
19017
      rhapsody* | darwin1.[012])
 
19018
        allow_undefined_flag_GCJ='-Wl,-undefined -Wl,suppress'
 
19019
        ;;
 
19020
      *) # Darwin 1.3 on
 
19021
        if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
19022
          allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
19023
        else
 
19024
          case ${MACOSX_DEPLOYMENT_TARGET} in
 
19025
            10.012)
 
19026
              allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
19027
              ;;
 
19028
            10.*)
 
19029
              allow_undefined_flag_GCJ='-Wl,-undefined -Wl,dynamic_lookup'
 
19030
              ;;
 
19031
          esac
 
19032
        fi
 
19033
        ;;
 
19034
      esac
 
19035
        lt_int_apple_cc_single_mod=no
 
19036
        output_verbose_link_cmd='echo'
 
19037
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
19038
          lt_int_apple_cc_single_mod=yes
 
19039
        fi
 
19040
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
19041
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
19042
        else
 
19043
        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'
 
19044
      fi
 
19045
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
19046
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
19047
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
19048
          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}'
 
19049
        else
 
19050
          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}'
 
19051
        fi
 
19052
          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}'
 
19053
      hardcode_direct_GCJ=no
 
19054
      hardcode_automatic_GCJ=yes
 
19055
      hardcode_shlibpath_var_GCJ=unsupported
 
19056
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
19057
      link_all_deplibs_GCJ=yes
 
19058
    else
 
19059
      ld_shlibs_GCJ=no
 
19060
    fi
 
19061
      ;;
 
19062
 
 
19063
    dgux*)
 
19064
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19065
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19066
      hardcode_shlibpath_var_GCJ=no
 
19067
      ;;
 
19068
 
 
19069
    freebsd1*)
 
19070
      ld_shlibs_GCJ=no
 
19071
      ;;
 
19072
 
 
19073
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
19074
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
19075
    # does not break anything, and helps significantly (at the cost of a little
 
19076
    # extra space).
 
19077
    freebsd2.2*)
 
19078
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
19079
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19080
      hardcode_direct_GCJ=yes
 
19081
      hardcode_shlibpath_var_GCJ=no
 
19082
      ;;
 
19083
 
 
19084
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
19085
    freebsd2*)
 
19086
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
19087
      hardcode_direct_GCJ=yes
 
19088
      hardcode_minus_L_GCJ=yes
 
19089
      hardcode_shlibpath_var_GCJ=no
 
19090
      ;;
 
19091
 
 
19092
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
19093
    freebsd*)
 
19094
      archive_cmds_GCJ='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
 
19095
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19096
      hardcode_direct_GCJ=yes
 
19097
      hardcode_shlibpath_var_GCJ=no
 
19098
      ;;
 
19099
 
 
19100
    hpux9*)
 
19101
      if test "$GCC" = yes; then
 
19102
        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'
 
19103
      else
 
19104
        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'
 
19105
      fi
 
19106
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19107
      hardcode_libdir_separator_GCJ=:
 
19108
      hardcode_direct_GCJ=yes
 
19109
 
 
19110
      # hardcode_minus_L: Not really in the search PATH,
 
19111
      # but as the default location of the library.
 
19112
      hardcode_minus_L_GCJ=yes
 
19113
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
19114
      ;;
 
19115
 
 
19116
    hpux10* | hpux11*)
 
19117
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
19118
        case "$host_cpu" in
 
19119
        hppa*64*|ia64*)
 
19120
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
19121
          ;;
 
19122
        *)
 
19123
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
 
19124
          ;;
 
19125
        esac
 
19126
      else
 
19127
        case "$host_cpu" in
 
19128
        hppa*64*|ia64*)
 
19129
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19130
          ;;
 
19131
        *)
 
19132
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
19133
          ;;
 
19134
        esac
 
19135
      fi
 
19136
      if test "$with_gnu_ld" = no; then
 
19137
        case "$host_cpu" in
 
19138
        hppa*64*)
 
19139
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19140
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
19141
          hardcode_libdir_separator_GCJ=:
 
19142
          hardcode_direct_GCJ=no
 
19143
          hardcode_shlibpath_var_GCJ=no
 
19144
          ;;
 
19145
        ia64*)
 
19146
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19147
          hardcode_direct_GCJ=no
 
19148
          hardcode_shlibpath_var_GCJ=no
 
19149
 
 
19150
          # hardcode_minus_L: Not really in the search PATH,
 
19151
          # but as the default location of the library.
 
19152
          hardcode_minus_L_GCJ=yes
 
19153
          ;;
 
19154
        *)
 
19155
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19156
          hardcode_libdir_separator_GCJ=:
 
19157
          hardcode_direct_GCJ=yes
 
19158
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
19159
 
 
19160
          # hardcode_minus_L: Not really in the search PATH,
 
19161
          # but as the default location of the library.
 
19162
          hardcode_minus_L_GCJ=yes
 
19163
          ;;
 
19164
        esac
 
19165
      fi
 
19166
      ;;
 
19167
 
 
19168
    irix5* | irix6* | nonstopux*)
 
19169
      if test "$GCC" = yes; then
 
19170
        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'
 
19171
      else
 
19172
        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'
 
19173
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
19174
      fi
 
19175
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19176
      hardcode_libdir_separator_GCJ=:
 
19177
      link_all_deplibs_GCJ=yes
 
19178
      ;;
 
19179
 
 
19180
    netbsd*)
 
19181
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19182
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
19183
      else
 
19184
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
19185
      fi
 
19186
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19187
      hardcode_direct_GCJ=yes
 
19188
      hardcode_shlibpath_var_GCJ=no
 
19189
      ;;
 
19190
 
 
19191
    newsos6)
 
19192
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19193
      hardcode_direct_GCJ=yes
 
19194
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19195
      hardcode_libdir_separator_GCJ=:
 
19196
      hardcode_shlibpath_var_GCJ=no
 
19197
      ;;
 
19198
 
 
19199
    openbsd*)
 
19200
      hardcode_direct_GCJ=yes
 
19201
      hardcode_shlibpath_var_GCJ=no
 
19202
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19203
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
19204
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
19205
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
19206
      else
 
19207
       case $host_os in
 
19208
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
19209
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
19210
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19211
           ;;
 
19212
         *)
 
19213
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
19214
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
19215
           ;;
 
19216
       esac
 
19217
      fi
 
19218
      ;;
 
19219
 
 
19220
    os2*)
 
19221
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19222
      hardcode_minus_L_GCJ=yes
 
19223
      allow_undefined_flag_GCJ=unsupported
 
19224
      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'
 
19225
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
19226
      ;;
 
19227
 
 
19228
    osf3*)
 
19229
      if test "$GCC" = yes; then
 
19230
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
19231
        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'
 
19232
      else
 
19233
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
19234
        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'
 
19235
      fi
 
19236
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19237
      hardcode_libdir_separator_GCJ=:
 
19238
      ;;
 
19239
 
 
19240
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
19241
      if test "$GCC" = yes; then
 
19242
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
19243
        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'
 
19244
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19245
      else
 
19246
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
19247
        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'
 
19248
        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~
 
19249
        $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'
 
19250
 
 
19251
        # Both c and cxx compiler support -rpath directly
 
19252
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
19253
      fi
 
19254
      hardcode_libdir_separator_GCJ=:
 
19255
      ;;
 
19256
 
 
19257
    sco3.2v5*)
 
19258
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19259
      hardcode_shlibpath_var_GCJ=no
 
19260
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
19261
      runpath_var=LD_RUN_PATH
 
19262
      hardcode_runpath_var=yes
 
19263
      ;;
 
19264
 
 
19265
    solaris*)
 
19266
      no_undefined_flag_GCJ=' -z text'
 
19267
      if test "$GCC" = yes; then
 
19268
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
19269
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
19270
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
 
19271
      else
 
19272
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19273
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
19274
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
19275
      fi
 
19276
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19277
      hardcode_shlibpath_var_GCJ=no
 
19278
      case $host_os in
 
19279
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
19280
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
19281
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
19282
      esac
 
19283
      link_all_deplibs_GCJ=yes
 
19284
      ;;
 
19285
 
 
19286
    sunos4*)
 
19287
      if test "x$host_vendor" = xsequent; then
 
19288
        # Use $CC to link under sequent, because it throws in some extra .o
 
19289
        # files that make .init and .fini sections work.
 
19290
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
 
19291
      else
 
19292
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
19293
      fi
 
19294
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19295
      hardcode_direct_GCJ=yes
 
19296
      hardcode_minus_L_GCJ=yes
 
19297
      hardcode_shlibpath_var_GCJ=no
 
19298
      ;;
 
19299
 
 
19300
    sysv4)
 
19301
      case $host_vendor in
 
19302
        sni)
 
19303
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19304
          hardcode_direct_GCJ=yes # is this really true???
 
19305
        ;;
 
19306
        siemens)
 
19307
          ## LD is ld it makes a PLAMLIB
 
19308
          ## CC just makes a GrossModule.
 
19309
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
19310
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
19311
          hardcode_direct_GCJ=no
 
19312
        ;;
 
19313
        motorola)
 
19314
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19315
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
19316
        ;;
 
19317
      esac
 
19318
      runpath_var='LD_RUN_PATH'
 
19319
      hardcode_shlibpath_var_GCJ=no
 
19320
      ;;
 
19321
 
 
19322
    sysv4.3*)
 
19323
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19324
      hardcode_shlibpath_var_GCJ=no
 
19325
      export_dynamic_flag_spec_GCJ='-Bexport'
 
19326
      ;;
 
19327
 
 
19328
    sysv4*MP*)
 
19329
      if test -d /usr/nec; then
 
19330
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19331
        hardcode_shlibpath_var_GCJ=no
 
19332
        runpath_var=LD_RUN_PATH
 
19333
        hardcode_runpath_var=yes
 
19334
        ld_shlibs_GCJ=yes
 
19335
      fi
 
19336
      ;;
 
19337
 
 
19338
    sysv4.2uw2*)
 
19339
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
19340
      hardcode_direct_GCJ=yes
 
19341
      hardcode_minus_L_GCJ=no
 
19342
      hardcode_shlibpath_var_GCJ=no
 
19343
      hardcode_runpath_var=yes
 
19344
      runpath_var=LD_RUN_PATH
 
19345
      ;;
 
19346
 
 
19347
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
19348
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
19349
      if test "$GCC" = yes; then
 
19350
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
19351
      else
 
19352
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
19353
      fi
 
19354
      runpath_var='LD_RUN_PATH'
 
19355
      hardcode_shlibpath_var_GCJ=no
 
19356
      ;;
 
19357
 
 
19358
    sysv5*)
 
19359
      no_undefined_flag_GCJ=' -z text'
 
19360
      # $CC -shared without GNU ld will not create a library from C++
 
19361
      # object files and a static libstdc++, better avoid it by now
 
19362
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19363
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
19364
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
19365
      hardcode_libdir_flag_spec_GCJ=
 
19366
      hardcode_shlibpath_var_GCJ=no
 
19367
      runpath_var='LD_RUN_PATH'
 
19368
      ;;
 
19369
 
 
19370
    uts4*)
 
19371
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19372
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19373
      hardcode_shlibpath_var_GCJ=no
 
19374
      ;;
 
19375
 
 
19376
    *)
 
19377
      ld_shlibs_GCJ=no
 
19378
      ;;
 
19379
    esac
 
19380
  fi
 
19381
 
 
19382
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
19383
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
19384
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
19385
 
 
19386
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
19387
if test "$GCC" = yes; then
 
19388
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
19389
fi
 
19390
 
 
19391
#
 
19392
# Do we need to explicitly link libc?
 
19393
#
 
19394
case "x$archive_cmds_need_lc_GCJ" in
 
19395
x|xyes)
 
19396
  # Assume -lc should be added
 
19397
  archive_cmds_need_lc_GCJ=yes
 
19398
 
 
19399
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
19400
    case $archive_cmds_GCJ in
 
19401
    *'~'*)
 
19402
      # FIXME: we may have to deal with multi-command sequences.
 
19403
      ;;
 
19404
    '$CC '*)
 
19405
      # Test whether the compiler implicitly links with -lc since on some
 
19406
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
19407
      # to ld, don't add -lc before -lgcc.
 
19408
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
19409
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
19410
      $rm conftest*
 
19411
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
19412
 
 
19413
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19414
  (eval $ac_compile) 2>&5
 
19415
  ac_status=$?
 
19416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19417
  (exit $ac_status); } 2>conftest.err; then
 
19418
        soname=conftest
 
19419
        lib=conftest
 
19420
        libobjs=conftest.$ac_objext
 
19421
        deplibs=
 
19422
        wl=$lt_prog_compiler_wl_GCJ
 
19423
        compiler_flags=-v
 
19424
        linker_flags=-v
 
19425
        verstring=
 
19426
        output_objdir=.
 
19427
        libname=conftest
 
19428
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
19429
        allow_undefined_flag_GCJ=
 
19430
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
19431
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
19432
  ac_status=$?
 
19433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19434
  (exit $ac_status); }
 
19435
        then
 
19436
          archive_cmds_need_lc_GCJ=no
 
19437
        else
 
19438
          archive_cmds_need_lc_GCJ=yes
 
19439
        fi
 
19440
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
19441
      else
 
19442
        cat conftest.err 1>&5
 
19443
      fi
 
19444
      $rm conftest*
 
19445
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
19446
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
19447
      ;;
 
19448
    esac
 
19449
  fi
 
19450
  ;;
 
19451
esac
 
19452
 
 
19453
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
19454
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
19455
library_names_spec=
 
19456
libname_spec='lib$name'
 
19457
soname_spec=
 
19458
shrext=".so"
 
19459
postinstall_cmds=
 
19460
postuninstall_cmds=
 
19461
finish_cmds=
 
19462
finish_eval=
 
19463
shlibpath_var=
 
19464
shlibpath_overrides_runpath=unknown
 
19465
version_type=none
 
19466
dynamic_linker="$host_os ld.so"
 
19467
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
19468
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
19469
need_lib_prefix=unknown
 
19470
hardcode_into_libs=no
 
19471
 
 
19472
# when you set need_version to no, make sure it does not cause -set_version
 
19473
# flags to be left without arguments
 
19474
need_version=unknown
 
19475
 
 
19476
case $host_os in
 
19477
aix3*)
 
19478
  version_type=linux
 
19479
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
19480
  shlibpath_var=LIBPATH
 
19481
 
 
19482
  # AIX 3 has no versioning support, so we append a major version to the name.
 
19483
  soname_spec='${libname}${release}${shared_ext}$major'
 
19484
  ;;
 
19485
 
 
19486
aix4* | aix5*)
 
19487
  version_type=linux
 
19488
  need_lib_prefix=no
 
19489
  need_version=no
 
19490
  hardcode_into_libs=yes
 
19491
  if test "$host_cpu" = ia64; then
 
19492
    # AIX 5 supports IA64
 
19493
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
19494
    shlibpath_var=LD_LIBRARY_PATH
 
19495
  else
 
19496
    # With GCC up to 2.95.x, collect2 would create an import file
 
19497
    # for dependence libraries.  The import file would start with
 
19498
    # the line `#! .'.  This would cause the generated library to
 
19499
    # depend on `.', always an invalid library.  This was fixed in
 
19500
    # development snapshots of GCC prior to 3.0.
 
19501
    case $host_os in
 
19502
      aix4 | aix4.[01] | aix4.[01].*)
 
19503
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
19504
           echo ' yes '
 
19505
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
19506
        :
 
19507
      else
 
19508
        can_build_shared=no
 
19509
      fi
 
19510
      ;;
 
19511
    esac
 
19512
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
19513
    # soname into executable. Probably we can add versioning support to
 
19514
    # collect2, so additional links can be useful in future.
 
19515
    if test "$aix_use_runtimelinking" = yes; then
 
19516
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
19517
      # instead of lib<name>.a to let people know that these are not
 
19518
      # typical AIX shared libraries.
 
19519
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19520
    else
 
19521
      # We preserve .a as extension for shared libraries through AIX4.2
 
19522
      # and later when we are not doing run time linking.
 
19523
      library_names_spec='${libname}${release}.a $libname.a'
 
19524
      soname_spec='${libname}${release}${shared_ext}$major'
 
19525
    fi
 
19526
    shlibpath_var=LIBPATH
 
19527
  fi
 
19528
  ;;
 
19529
 
 
19530
amigaos*)
 
19531
  library_names_spec='$libname.ixlibrary $libname.a'
 
19532
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
19533
  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'
 
19534
  ;;
 
19535
 
 
19536
beos*)
 
19537
  library_names_spec='${libname}${shared_ext}'
 
19538
  dynamic_linker="$host_os ld.so"
 
19539
  shlibpath_var=LIBRARY_PATH
 
19540
  ;;
 
19541
 
 
19542
bsdi4*)
 
19543
  version_type=linux
 
19544
  need_version=no
 
19545
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19546
  soname_spec='${libname}${release}${shared_ext}$major'
 
19547
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
19548
  shlibpath_var=LD_LIBRARY_PATH
 
19549
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
19550
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
19551
  # the default ld.so.conf also contains /usr/contrib/lib and
 
19552
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
19553
  # libtool to hard-code these into programs
 
19554
  ;;
 
19555
 
 
19556
cygwin* | mingw* | pw32*)
 
19557
  version_type=windows
 
19558
  shrext=".dll"
 
19559
  need_version=no
 
19560
  need_lib_prefix=no
 
19561
 
 
19562
  case $GCC,$host_os in
 
19563
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
19564
    library_names_spec='$libname.dll.a'
 
19565
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
19566
    postinstall_cmds='base_file=`basename \${file}`~
 
19567
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
19568
      dldir=$destdir/`dirname \$dlpath`~
 
19569
      test -d \$dldir || mkdir -p \$dldir~
 
19570
      $install_prog $dir/$dlname \$dldir/$dlname'
 
19571
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
19572
      dlpath=$dir/\$dldll~
 
19573
       $rm \$dlpath'
 
19574
    shlibpath_overrides_runpath=yes
 
19575
 
 
19576
    case $host_os in
 
19577
    cygwin*)
 
19578
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
19579
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19580
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
19581
      ;;
 
19582
    mingw*)
 
19583
      # MinGW DLLs use traditional 'lib' prefix
 
19584
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19585
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
19586
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
19587
        # It is most probably a Windows format PATH printed by
 
19588
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
19589
        # path with ; separators, and with drive letters. We can handle the
 
19590
        # drive letters (cygwin fileutils understands them), so leave them,
 
19591
        # especially as we might pass files found there to a mingw objdump,
 
19592
        # which wouldn't understand a cygwinified path. Ahh.
 
19593
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
19594
      else
 
19595
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
19596
      fi
 
19597
      ;;
 
19598
    pw32*)
 
19599
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
19600
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
19601
      ;;
 
19602
    esac
 
19603
    ;;
 
19604
 
 
19605
  *)
 
19606
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
19607
    ;;
 
19608
  esac
 
19609
  dynamic_linker='Win32 ld.exe'
 
19610
  # FIXME: first we should search . and the directory the executable is in
 
19611
  shlibpath_var=PATH
 
19612
  ;;
 
19613
 
 
19614
darwin* | rhapsody*)
 
19615
  dynamic_linker="$host_os dyld"
 
19616
  version_type=darwin
 
19617
  need_lib_prefix=no
 
19618
  need_version=no
 
19619
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
19620
  soname_spec='${libname}${release}${major}$shared_ext'
 
19621
  shlibpath_overrides_runpath=yes
 
19622
  shlibpath_var=DYLD_LIBRARY_PATH
 
19623
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
19624
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
19625
  if test "$GCC" = yes; then
 
19626
    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"`
 
19627
  else
 
19628
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
19629
  fi
 
19630
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
19631
  ;;
 
19632
 
 
19633
dgux*)
 
19634
  version_type=linux
 
19635
  need_lib_prefix=no
 
19636
  need_version=no
 
19637
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
19638
  soname_spec='${libname}${release}${shared_ext}$major'
 
19639
  shlibpath_var=LD_LIBRARY_PATH
 
19640
  ;;
 
19641
 
 
19642
freebsd1*)
 
19643
  dynamic_linker=no
 
19644
  ;;
 
19645
 
 
19646
freebsd*-gnu*)
 
19647
  version_type=linux
 
19648
  need_lib_prefix=no
 
19649
  need_version=no
 
19650
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19651
  soname_spec='${libname}${release}${shared_ext}$major'
 
19652
  shlibpath_var=LD_LIBRARY_PATH
 
19653
  shlibpath_overrides_runpath=no
 
19654
  hardcode_into_libs=yes
 
19655
  dynamic_linker='GNU ld.so'
 
19656
  ;;
 
19657
 
 
19658
freebsd*)
 
19659
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
19660
  version_type=freebsd-$objformat
 
19661
  case $version_type in
 
19662
    freebsd-elf*)
 
19663
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19664
      need_version=no
 
19665
      need_lib_prefix=no
 
19666
      ;;
 
19667
    freebsd-*)
 
19668
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
19669
      need_version=yes
 
19670
      ;;
 
19671
  esac
 
19672
  shlibpath_var=LD_LIBRARY_PATH
 
19673
  case $host_os in
 
19674
  freebsd2*)
 
19675
    shlibpath_overrides_runpath=yes
 
19676
    ;;
 
19677
  freebsd3.01* | freebsdelf3.01*)
 
19678
    shlibpath_overrides_runpath=yes
 
19679
    hardcode_into_libs=yes
 
19680
    ;;
 
19681
  *) # from 3.2 on
 
19682
    shlibpath_overrides_runpath=no
 
19683
    hardcode_into_libs=yes
 
19684
    ;;
 
19685
  esac
 
19686
  ;;
 
19687
 
 
19688
gnu*)
 
19689
  version_type=linux
 
19690
  need_lib_prefix=no
 
19691
  need_version=no
 
19692
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
19693
  soname_spec='${libname}${release}${shared_ext}$major'
 
19694
  shlibpath_var=LD_LIBRARY_PATH
 
19695
  hardcode_into_libs=yes
 
19696
  ;;
 
19697
 
 
19698
hpux9* | hpux10* | hpux11*)
 
19699
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
19700
  # link against other versions.
 
19701
  version_type=sunos
 
19702
  need_lib_prefix=no
 
19703
  need_version=no
 
19704
  case "$host_cpu" in
 
19705
  ia64*)
 
19706
    shrext='.so'
 
19707
    hardcode_into_libs=yes
 
19708
    dynamic_linker="$host_os dld.so"
 
19709
    shlibpath_var=LD_LIBRARY_PATH
 
19710
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19711
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19712
    soname_spec='${libname}${release}${shared_ext}$major'
 
19713
    if test "X$HPUX_IA64_MODE" = X32; then
 
19714
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
19715
    else
 
19716
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
19717
    fi
 
19718
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19719
    ;;
 
19720
   hppa*64*)
 
19721
     shrext='.sl'
 
19722
     hardcode_into_libs=yes
 
19723
     dynamic_linker="$host_os dld.sl"
 
19724
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
19725
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19726
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19727
     soname_spec='${libname}${release}${shared_ext}$major'
 
19728
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
19729
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19730
     ;;
 
19731
   *)
 
19732
    shrext='.sl'
 
19733
    dynamic_linker="$host_os dld.sl"
 
19734
    shlibpath_var=SHLIB_PATH
 
19735
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
19736
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19737
    soname_spec='${libname}${release}${shared_ext}$major'
 
19738
    ;;
 
19739
  esac
 
19740
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
19741
  postinstall_cmds='chmod 555 $lib'
 
19742
  ;;
 
19743
 
 
19744
irix5* | irix6* | nonstopux*)
 
19745
  case $host_os in
 
19746
    nonstopux*) version_type=nonstopux ;;
 
19747
    *)
 
19748
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
19749
                version_type=linux
 
19750
        else
 
19751
                version_type=irix
 
19752
        fi ;;
 
19753
  esac
 
19754
  need_lib_prefix=no
 
19755
  need_version=no
 
19756
  soname_spec='${libname}${release}${shared_ext}$major'
 
19757
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19758
  case $host_os in
 
19759
  irix5* | nonstopux*)
 
19760
    libsuff= shlibsuff=
 
19761
    ;;
 
19762
  *)
 
19763
    case $LD in # libtool.m4 will add one of these switches to LD
 
19764
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
19765
      libsuff= shlibsuff= libmagic=32-bit;;
 
19766
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
19767
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
19768
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
19769
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
19770
    *) libsuff= shlibsuff= libmagic=never-match;;
 
19771
    esac
 
19772
    ;;
 
19773
  esac
 
19774
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
19775
  shlibpath_overrides_runpath=no
 
19776
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19777
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19778
  hardcode_into_libs=yes
 
19779
  ;;
 
19780
 
 
19781
# No shared lib support for Linux oldld, aout, or coff.
 
19782
linux*oldld* | linux*aout* | linux*coff*)
 
19783
  dynamic_linker=no
 
19784
  ;;
 
19785
 
 
19786
# This must be Linux ELF.
 
19787
linux*)
 
19788
  version_type=linux
 
19789
  need_lib_prefix=no
 
19790
  need_version=no
 
19791
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19792
  soname_spec='${libname}${release}${shared_ext}$major'
 
19793
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
19794
  libsuff=
 
19795
  if test "x$LINUX_64_MODE" = x64; then
 
19796
    # Some platforms are per default 64-bit, so there's no /lib64
 
19797
    if test -d /lib64; then
 
19798
      libsuff=64
 
19799
    fi
 
19800
  fi
 
19801
  shlibpath_var=LD_LIBRARY_PATH
 
19802
  shlibpath_overrides_runpath=no
 
19803
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
19804
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
19805
  # This implies no fast_install, which is unacceptable.
 
19806
  # Some rework will be needed to allow for fast_install
 
19807
  # before this can be enabled.
 
19808
  hardcode_into_libs=yes
 
19809
 
 
19810
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
19811
  # powerpc, because MkLinux only supported shared libraries with the
 
19812
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
19813
  # most powerpc-linux boxes support dynamic linking these days and
 
19814
  # people can always --disable-shared, the test was removed, and we
 
19815
  # assume the GNU/Linux dynamic linker is in use.
 
19816
  dynamic_linker='GNU/Linux ld.so'
 
19817
  ;;
 
19818
 
 
19819
netbsd*)
 
19820
  version_type=sunos
 
19821
  need_lib_prefix=no
 
19822
  need_version=no
 
19823
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19824
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19825
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19826
    dynamic_linker='NetBSD (a.out) ld.so'
 
19827
  else
 
19828
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
19829
    soname_spec='${libname}${release}${shared_ext}$major'
 
19830
    dynamic_linker='NetBSD ld.elf_so'
 
19831
  fi
 
19832
  shlibpath_var=LD_LIBRARY_PATH
 
19833
  shlibpath_overrides_runpath=yes
 
19834
  hardcode_into_libs=yes
 
19835
  ;;
 
19836
 
 
19837
newsos6)
 
19838
  version_type=linux
 
19839
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19840
  shlibpath_var=LD_LIBRARY_PATH
 
19841
  shlibpath_overrides_runpath=yes
 
19842
  ;;
 
19843
 
 
19844
nto-qnx*)
 
19845
  version_type=linux
 
19846
  need_lib_prefix=no
 
19847
  need_version=no
 
19848
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19849
  soname_spec='${libname}${release}${shared_ext}$major'
 
19850
  shlibpath_var=LD_LIBRARY_PATH
 
19851
  shlibpath_overrides_runpath=yes
 
19852
  ;;
 
19853
 
 
19854
openbsd*)
 
19855
  version_type=sunos
 
19856
  need_lib_prefix=no
 
19857
  need_version=no
 
19858
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19859
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19860
  shlibpath_var=LD_LIBRARY_PATH
 
19861
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19862
    case $host_os in
 
19863
      openbsd2.[89] | openbsd2.[89].*)
 
19864
        shlibpath_overrides_runpath=no
 
19865
        ;;
 
19866
      *)
 
19867
        shlibpath_overrides_runpath=yes
 
19868
        ;;
 
19869
      esac
 
19870
  else
 
19871
    shlibpath_overrides_runpath=yes
 
19872
  fi
 
19873
  ;;
 
19874
 
 
19875
os2*)
 
19876
  libname_spec='$name'
 
19877
  shrext=".dll"
 
19878
  need_lib_prefix=no
 
19879
  library_names_spec='$libname${shared_ext} $libname.a'
 
19880
  dynamic_linker='OS/2 ld.exe'
 
19881
  shlibpath_var=LIBPATH
 
19882
  ;;
 
19883
 
 
19884
osf3* | osf4* | osf5*)
 
19885
  version_type=osf
 
19886
  need_lib_prefix=no
 
19887
  need_version=no
 
19888
  soname_spec='${libname}${release}${shared_ext}$major'
 
19889
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19890
  shlibpath_var=LD_LIBRARY_PATH
 
19891
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19892
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19893
  ;;
 
19894
 
 
19895
sco3.2v5*)
 
19896
  version_type=osf
 
19897
  soname_spec='${libname}${release}${shared_ext}$major'
 
19898
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19899
  shlibpath_var=LD_LIBRARY_PATH
 
19900
  ;;
 
19901
 
 
19902
solaris*)
 
19903
  version_type=linux
 
19904
  need_lib_prefix=no
 
19905
  need_version=no
 
19906
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19907
  soname_spec='${libname}${release}${shared_ext}$major'
 
19908
  shlibpath_var=LD_LIBRARY_PATH
 
19909
  shlibpath_overrides_runpath=yes
 
19910
  hardcode_into_libs=yes
 
19911
  # ldd complains unless libraries are executable
 
19912
  postinstall_cmds='chmod +x $lib'
 
19913
  ;;
 
19914
 
 
19915
sunos4*)
 
19916
  version_type=sunos
 
19917
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19918
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
19919
  shlibpath_var=LD_LIBRARY_PATH
 
19920
  shlibpath_overrides_runpath=yes
 
19921
  if test "$with_gnu_ld" = yes; then
 
19922
    need_lib_prefix=no
 
19923
  fi
 
19924
  need_version=yes
 
19925
  ;;
 
19926
 
 
19927
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
19928
  version_type=linux
 
19929
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19930
  soname_spec='${libname}${release}${shared_ext}$major'
 
19931
  shlibpath_var=LD_LIBRARY_PATH
 
19932
  case $host_vendor in
 
19933
    sni)
 
19934
      shlibpath_overrides_runpath=no
 
19935
      need_lib_prefix=no
 
19936
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19937
      runpath_var=LD_RUN_PATH
 
19938
      ;;
 
19939
    siemens)
 
19940
      need_lib_prefix=no
 
19941
      ;;
 
19942
    motorola)
 
19943
      need_lib_prefix=no
 
19944
      need_version=no
 
19945
      shlibpath_overrides_runpath=no
 
19946
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19947
      ;;
 
19948
  esac
 
19949
  ;;
 
19950
 
 
19951
sysv4*MP*)
 
19952
  if test -d /usr/nec ;then
 
19953
    version_type=linux
 
19954
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19955
    soname_spec='$libname${shared_ext}.$major'
 
19956
    shlibpath_var=LD_LIBRARY_PATH
 
19957
  fi
 
19958
  ;;
 
19959
 
 
19960
uts4*)
 
19961
  version_type=linux
 
19962
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19963
  soname_spec='${libname}${release}${shared_ext}$major'
 
19964
  shlibpath_var=LD_LIBRARY_PATH
 
19965
  ;;
 
19966
 
 
19967
*)
 
19968
  dynamic_linker=no
 
19969
  ;;
 
19970
esac
 
19971
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19972
echo "${ECHO_T}$dynamic_linker" >&6
 
19973
test "$dynamic_linker" = no && can_build_shared=no
 
19974
 
 
19975
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
19976
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
19977
hardcode_action_GCJ=
 
19978
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
19979
   test -n "$runpath_var GCJ" || \
 
19980
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
19981
 
 
19982
  # We can hardcode non-existant directories.
 
19983
  if test "$hardcode_direct_GCJ" != no &&
 
19984
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
19985
     # have to relink, otherwise we might link with an installed library
 
19986
     # when we should be linking with a yet-to-be-installed one
 
19987
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
19988
     test "$hardcode_minus_L_GCJ" != no; then
 
19989
    # Linking always hardcodes the temporary library directory.
 
19990
    hardcode_action_GCJ=relink
 
19991
  else
 
19992
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
19993
    hardcode_action_GCJ=immediate
 
19994
  fi
 
19995
else
 
19996
  # We cannot hardcode anything, or else we can only hardcode existing
 
19997
  # directories.
 
19998
  hardcode_action_GCJ=unsupported
 
19999
fi
 
20000
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
20001
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
20002
 
 
20003
if test "$hardcode_action_GCJ" = relink; then
 
20004
  # Fast installation is not supported
 
20005
  enable_fast_install=no
 
20006
elif test "$shlibpath_overrides_runpath" = yes ||
 
20007
     test "$enable_shared" = no; then
 
20008
  # Fast installation is not necessary
 
20009
  enable_fast_install=needless
 
20010
fi
 
20011
 
 
20012
striplib=
 
20013
old_striplib=
 
20014
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
20015
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
20016
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
20017
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
20018
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
20019
  echo "$as_me:$LINENO: result: yes" >&5
 
20020
echo "${ECHO_T}yes" >&6
 
20021
else
 
20022
# FIXME - insert some real tests, host_os isn't really good enough
 
20023
  case $host_os in
 
20024
   darwin*)
 
20025
       if test -n "$STRIP" ; then
 
20026
         striplib="$STRIP -x"
 
20027
         echo "$as_me:$LINENO: result: yes" >&5
 
20028
echo "${ECHO_T}yes" >&6
 
20029
       else
 
20030
  echo "$as_me:$LINENO: result: no" >&5
 
20031
echo "${ECHO_T}no" >&6
 
20032
fi
 
20033
       ;;
 
20034
   *)
 
20035
  echo "$as_me:$LINENO: result: no" >&5
 
20036
echo "${ECHO_T}no" >&6
 
20037
    ;;
 
20038
  esac
 
20039
fi
 
20040
 
 
20041
if test "x$enable_dlopen" != xyes; then
 
20042
  enable_dlopen=unknown
 
20043
  enable_dlopen_self=unknown
 
20044
  enable_dlopen_self_static=unknown
 
20045
else
 
20046
  lt_cv_dlopen=no
 
20047
  lt_cv_dlopen_libs=
 
20048
 
 
20049
  case $host_os in
 
20050
  beos*)
 
20051
    lt_cv_dlopen="load_add_on"
 
20052
    lt_cv_dlopen_libs=
 
20053
    lt_cv_dlopen_self=yes
 
20054
    ;;
 
20055
 
 
20056
  mingw* | pw32*)
 
20057
    lt_cv_dlopen="LoadLibrary"
 
20058
    lt_cv_dlopen_libs=
 
20059
   ;;
 
20060
 
 
20061
  cygwin*)
 
20062
    lt_cv_dlopen="dlopen"
 
20063
    lt_cv_dlopen_libs=
 
20064
   ;;
 
20065
 
 
20066
  darwin*)
 
20067
  # if libdl is installed we need to link against it
 
20068
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
20069
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
20070
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
20071
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20072
else
 
20073
  ac_check_lib_save_LIBS=$LIBS
 
20074
LIBS="-ldl  $LIBS"
 
20075
cat >conftest.$ac_ext <<_ACEOF
 
20076
/* confdefs.h.  */
 
20077
_ACEOF
 
20078
cat confdefs.h >>conftest.$ac_ext
 
20079
cat >>conftest.$ac_ext <<_ACEOF
 
20080
/* end confdefs.h.  */
 
20081
 
 
20082
/* Override any gcc2 internal prototype to avoid an error.  */
 
20083
#ifdef __cplusplus
 
20084
extern "C"
 
20085
#endif
 
20086
/* We use char because int might match the return type of a gcc2
 
20087
   builtin and then its argument prototype would still apply.  */
 
20088
char dlopen ();
 
20089
int
 
20090
main ()
 
20091
{
 
20092
dlopen ();
 
20093
  ;
 
20094
  return 0;
 
20095
}
 
20096
_ACEOF
 
20097
rm -f conftest.$ac_objext conftest$ac_exeext
 
20098
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20099
  (eval $ac_link) 2>conftest.er1
 
20100
  ac_status=$?
 
20101
  grep -v '^ *+' conftest.er1 >conftest.err
 
20102
  rm -f conftest.er1
 
20103
  cat conftest.err >&5
 
20104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20105
  (exit $ac_status); } &&
 
20106
         { ac_try='test -z "$ac_c_werror_flag"
 
20107
                         || test ! -s conftest.err'
 
20108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20109
  (eval $ac_try) 2>&5
 
20110
  ac_status=$?
 
20111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20112
  (exit $ac_status); }; } &&
 
20113
         { ac_try='test -s conftest$ac_exeext'
 
20114
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20115
  (eval $ac_try) 2>&5
 
20116
  ac_status=$?
 
20117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20118
  (exit $ac_status); }; }; then
 
20119
  ac_cv_lib_dl_dlopen=yes
 
20120
else
 
20121
  echo "$as_me: failed program was:" >&5
 
20122
sed 's/^/| /' conftest.$ac_ext >&5
 
20123
 
 
20124
ac_cv_lib_dl_dlopen=no
 
20125
fi
 
20126
rm -f conftest.err conftest.$ac_objext \
 
20127
      conftest$ac_exeext conftest.$ac_ext
 
20128
LIBS=$ac_check_lib_save_LIBS
 
20129
fi
 
20130
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
20131
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
20132
if test $ac_cv_lib_dl_dlopen = yes; then
 
20133
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
20134
else
 
20135
 
 
20136
    lt_cv_dlopen="dyld"
 
20137
    lt_cv_dlopen_libs=
 
20138
    lt_cv_dlopen_self=yes
 
20139
 
 
20140
fi
 
20141
 
 
20142
   ;;
 
20143
 
 
20144
  *)
 
20145
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
20146
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
20147
if test "${ac_cv_func_shl_load+set}" = set; then
 
20148
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20149
else
 
20150
  cat >conftest.$ac_ext <<_ACEOF
 
20151
/* confdefs.h.  */
 
20152
_ACEOF
 
20153
cat confdefs.h >>conftest.$ac_ext
 
20154
cat >>conftest.$ac_ext <<_ACEOF
 
20155
/* end confdefs.h.  */
 
20156
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
20157
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20158
#define shl_load innocuous_shl_load
 
20159
 
 
20160
/* System header to define __stub macros and hopefully few prototypes,
 
20161
    which can conflict with char shl_load (); below.
 
20162
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20163
    <limits.h> exists even on freestanding compilers.  */
 
20164
 
 
20165
#ifdef __STDC__
 
20166
# include <limits.h>
 
20167
#else
 
20168
# include <assert.h>
 
20169
#endif
 
20170
 
 
20171
#undef shl_load
 
20172
 
 
20173
/* Override any gcc2 internal prototype to avoid an error.  */
 
20174
#ifdef __cplusplus
 
20175
extern "C"
 
20176
{
 
20177
#endif
 
20178
/* We use char because int might match the return type of a gcc2
 
20179
   builtin and then its argument prototype would still apply.  */
 
20180
char shl_load ();
 
20181
/* The GNU C library defines this for functions which it implements
 
20182
    to always fail with ENOSYS.  Some functions are actually named
 
20183
    something starting with __ and the normal name is an alias.  */
 
20184
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
20185
choke me
 
20186
#else
 
20187
char (*f) () = shl_load;
 
20188
#endif
 
20189
#ifdef __cplusplus
 
20190
}
 
20191
#endif
 
20192
 
 
20193
int
 
20194
main ()
 
20195
{
 
20196
return f != shl_load;
 
20197
  ;
 
20198
  return 0;
 
20199
}
 
20200
_ACEOF
 
20201
rm -f conftest.$ac_objext conftest$ac_exeext
 
20202
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20203
  (eval $ac_link) 2>conftest.er1
 
20204
  ac_status=$?
 
20205
  grep -v '^ *+' conftest.er1 >conftest.err
 
20206
  rm -f conftest.er1
 
20207
  cat conftest.err >&5
 
20208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20209
  (exit $ac_status); } &&
 
20210
         { ac_try='test -z "$ac_c_werror_flag"
 
20211
                         || test ! -s conftest.err'
 
20212
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20213
  (eval $ac_try) 2>&5
 
20214
  ac_status=$?
 
20215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20216
  (exit $ac_status); }; } &&
 
20217
         { ac_try='test -s conftest$ac_exeext'
 
20218
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20219
  (eval $ac_try) 2>&5
 
20220
  ac_status=$?
 
20221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20222
  (exit $ac_status); }; }; then
 
20223
  ac_cv_func_shl_load=yes
 
20224
else
 
20225
  echo "$as_me: failed program was:" >&5
 
20226
sed 's/^/| /' conftest.$ac_ext >&5
 
20227
 
 
20228
ac_cv_func_shl_load=no
 
20229
fi
 
20230
rm -f conftest.err conftest.$ac_objext \
 
20231
      conftest$ac_exeext conftest.$ac_ext
 
20232
fi
 
20233
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
20234
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
20235
if test $ac_cv_func_shl_load = yes; then
 
20236
  lt_cv_dlopen="shl_load"
 
20237
else
 
20238
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
20239
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
20240
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
20241
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20242
else
 
20243
  ac_check_lib_save_LIBS=$LIBS
 
20244
LIBS="-ldld  $LIBS"
 
20245
cat >conftest.$ac_ext <<_ACEOF
 
20246
/* confdefs.h.  */
 
20247
_ACEOF
 
20248
cat confdefs.h >>conftest.$ac_ext
 
20249
cat >>conftest.$ac_ext <<_ACEOF
 
20250
/* end confdefs.h.  */
 
20251
 
 
20252
/* Override any gcc2 internal prototype to avoid an error.  */
 
20253
#ifdef __cplusplus
 
20254
extern "C"
 
20255
#endif
 
20256
/* We use char because int might match the return type of a gcc2
 
20257
   builtin and then its argument prototype would still apply.  */
 
20258
char shl_load ();
 
20259
int
 
20260
main ()
 
20261
{
 
20262
shl_load ();
 
20263
  ;
 
20264
  return 0;
 
20265
}
 
20266
_ACEOF
 
20267
rm -f conftest.$ac_objext conftest$ac_exeext
 
20268
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20269
  (eval $ac_link) 2>conftest.er1
 
20270
  ac_status=$?
 
20271
  grep -v '^ *+' conftest.er1 >conftest.err
 
20272
  rm -f conftest.er1
 
20273
  cat conftest.err >&5
 
20274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20275
  (exit $ac_status); } &&
 
20276
         { ac_try='test -z "$ac_c_werror_flag"
 
20277
                         || test ! -s conftest.err'
 
20278
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20279
  (eval $ac_try) 2>&5
 
20280
  ac_status=$?
 
20281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20282
  (exit $ac_status); }; } &&
 
20283
         { ac_try='test -s conftest$ac_exeext'
 
20284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20285
  (eval $ac_try) 2>&5
 
20286
  ac_status=$?
 
20287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20288
  (exit $ac_status); }; }; then
 
20289
  ac_cv_lib_dld_shl_load=yes
 
20290
else
 
20291
  echo "$as_me: failed program was:" >&5
 
20292
sed 's/^/| /' conftest.$ac_ext >&5
 
20293
 
 
20294
ac_cv_lib_dld_shl_load=no
 
20295
fi
 
20296
rm -f conftest.err conftest.$ac_objext \
 
20297
      conftest$ac_exeext conftest.$ac_ext
 
20298
LIBS=$ac_check_lib_save_LIBS
 
20299
fi
 
20300
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
20301
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
20302
if test $ac_cv_lib_dld_shl_load = yes; then
 
20303
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
20304
else
 
20305
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
20306
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
20307
if test "${ac_cv_func_dlopen+set}" = set; then
 
20308
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20309
else
 
20310
  cat >conftest.$ac_ext <<_ACEOF
 
20311
/* confdefs.h.  */
 
20312
_ACEOF
 
20313
cat confdefs.h >>conftest.$ac_ext
 
20314
cat >>conftest.$ac_ext <<_ACEOF
 
20315
/* end confdefs.h.  */
 
20316
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
20317
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20318
#define dlopen innocuous_dlopen
 
20319
 
 
20320
/* System header to define __stub macros and hopefully few prototypes,
 
20321
    which can conflict with char dlopen (); below.
 
20322
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20323
    <limits.h> exists even on freestanding compilers.  */
 
20324
 
 
20325
#ifdef __STDC__
 
20326
# include <limits.h>
 
20327
#else
 
20328
# include <assert.h>
 
20329
#endif
 
20330
 
 
20331
#undef dlopen
 
20332
 
 
20333
/* Override any gcc2 internal prototype to avoid an error.  */
 
20334
#ifdef __cplusplus
 
20335
extern "C"
 
20336
{
 
20337
#endif
 
20338
/* We use char because int might match the return type of a gcc2
 
20339
   builtin and then its argument prototype would still apply.  */
 
20340
char dlopen ();
 
20341
/* The GNU C library defines this for functions which it implements
 
20342
    to always fail with ENOSYS.  Some functions are actually named
 
20343
    something starting with __ and the normal name is an alias.  */
 
20344
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
20345
choke me
 
20346
#else
 
20347
char (*f) () = dlopen;
 
20348
#endif
 
20349
#ifdef __cplusplus
 
20350
}
 
20351
#endif
 
20352
 
 
20353
int
 
20354
main ()
 
20355
{
 
20356
return f != dlopen;
 
20357
  ;
 
20358
  return 0;
 
20359
}
 
20360
_ACEOF
 
20361
rm -f conftest.$ac_objext conftest$ac_exeext
 
20362
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20363
  (eval $ac_link) 2>conftest.er1
 
20364
  ac_status=$?
 
20365
  grep -v '^ *+' conftest.er1 >conftest.err
 
20366
  rm -f conftest.er1
 
20367
  cat conftest.err >&5
 
20368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20369
  (exit $ac_status); } &&
 
20370
         { ac_try='test -z "$ac_c_werror_flag"
 
20371
                         || test ! -s conftest.err'
 
20372
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20373
  (eval $ac_try) 2>&5
 
20374
  ac_status=$?
 
20375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20376
  (exit $ac_status); }; } &&
 
20377
         { ac_try='test -s conftest$ac_exeext'
 
20378
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20379
  (eval $ac_try) 2>&5
 
20380
  ac_status=$?
 
20381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20382
  (exit $ac_status); }; }; then
 
20383
  ac_cv_func_dlopen=yes
 
20384
else
 
20385
  echo "$as_me: failed program was:" >&5
 
20386
sed 's/^/| /' conftest.$ac_ext >&5
 
20387
 
 
20388
ac_cv_func_dlopen=no
 
20389
fi
 
20390
rm -f conftest.err conftest.$ac_objext \
 
20391
      conftest$ac_exeext conftest.$ac_ext
 
20392
fi
 
20393
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
20394
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
20395
if test $ac_cv_func_dlopen = yes; then
 
20396
  lt_cv_dlopen="dlopen"
 
20397
else
 
20398
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
20399
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
20400
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
20401
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20402
else
 
20403
  ac_check_lib_save_LIBS=$LIBS
 
20404
LIBS="-ldl  $LIBS"
 
20405
cat >conftest.$ac_ext <<_ACEOF
 
20406
/* confdefs.h.  */
 
20407
_ACEOF
 
20408
cat confdefs.h >>conftest.$ac_ext
 
20409
cat >>conftest.$ac_ext <<_ACEOF
 
20410
/* end confdefs.h.  */
 
20411
 
 
20412
/* Override any gcc2 internal prototype to avoid an error.  */
 
20413
#ifdef __cplusplus
 
20414
extern "C"
 
20415
#endif
 
20416
/* We use char because int might match the return type of a gcc2
 
20417
   builtin and then its argument prototype would still apply.  */
 
20418
char dlopen ();
 
20419
int
 
20420
main ()
 
20421
{
 
20422
dlopen ();
 
20423
  ;
 
20424
  return 0;
 
20425
}
 
20426
_ACEOF
 
20427
rm -f conftest.$ac_objext conftest$ac_exeext
 
20428
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20429
  (eval $ac_link) 2>conftest.er1
 
20430
  ac_status=$?
 
20431
  grep -v '^ *+' conftest.er1 >conftest.err
 
20432
  rm -f conftest.er1
 
20433
  cat conftest.err >&5
 
20434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20435
  (exit $ac_status); } &&
 
20436
         { ac_try='test -z "$ac_c_werror_flag"
 
20437
                         || test ! -s conftest.err'
 
20438
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20439
  (eval $ac_try) 2>&5
 
20440
  ac_status=$?
 
20441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20442
  (exit $ac_status); }; } &&
 
20443
         { ac_try='test -s conftest$ac_exeext'
 
20444
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20445
  (eval $ac_try) 2>&5
 
20446
  ac_status=$?
 
20447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20448
  (exit $ac_status); }; }; then
 
20449
  ac_cv_lib_dl_dlopen=yes
 
20450
else
 
20451
  echo "$as_me: failed program was:" >&5
 
20452
sed 's/^/| /' conftest.$ac_ext >&5
 
20453
 
 
20454
ac_cv_lib_dl_dlopen=no
 
20455
fi
 
20456
rm -f conftest.err conftest.$ac_objext \
 
20457
      conftest$ac_exeext conftest.$ac_ext
 
20458
LIBS=$ac_check_lib_save_LIBS
 
20459
fi
 
20460
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
20461
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
20462
if test $ac_cv_lib_dl_dlopen = yes; then
 
20463
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
20464
else
 
20465
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
20466
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
20467
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
20468
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20469
else
 
20470
  ac_check_lib_save_LIBS=$LIBS
 
20471
LIBS="-lsvld  $LIBS"
 
20472
cat >conftest.$ac_ext <<_ACEOF
 
20473
/* confdefs.h.  */
 
20474
_ACEOF
 
20475
cat confdefs.h >>conftest.$ac_ext
 
20476
cat >>conftest.$ac_ext <<_ACEOF
 
20477
/* end confdefs.h.  */
 
20478
 
 
20479
/* Override any gcc2 internal prototype to avoid an error.  */
 
20480
#ifdef __cplusplus
 
20481
extern "C"
 
20482
#endif
 
20483
/* We use char because int might match the return type of a gcc2
 
20484
   builtin and then its argument prototype would still apply.  */
 
20485
char dlopen ();
 
20486
int
 
20487
main ()
 
20488
{
 
20489
dlopen ();
 
20490
  ;
 
20491
  return 0;
 
20492
}
 
20493
_ACEOF
 
20494
rm -f conftest.$ac_objext conftest$ac_exeext
 
20495
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20496
  (eval $ac_link) 2>conftest.er1
 
20497
  ac_status=$?
 
20498
  grep -v '^ *+' conftest.er1 >conftest.err
 
20499
  rm -f conftest.er1
 
20500
  cat conftest.err >&5
 
20501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20502
  (exit $ac_status); } &&
 
20503
         { ac_try='test -z "$ac_c_werror_flag"
 
20504
                         || test ! -s conftest.err'
 
20505
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20506
  (eval $ac_try) 2>&5
 
20507
  ac_status=$?
 
20508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20509
  (exit $ac_status); }; } &&
 
20510
         { ac_try='test -s conftest$ac_exeext'
 
20511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20512
  (eval $ac_try) 2>&5
 
20513
  ac_status=$?
 
20514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20515
  (exit $ac_status); }; }; then
 
20516
  ac_cv_lib_svld_dlopen=yes
 
20517
else
 
20518
  echo "$as_me: failed program was:" >&5
 
20519
sed 's/^/| /' conftest.$ac_ext >&5
 
20520
 
 
20521
ac_cv_lib_svld_dlopen=no
 
20522
fi
 
20523
rm -f conftest.err conftest.$ac_objext \
 
20524
      conftest$ac_exeext conftest.$ac_ext
 
20525
LIBS=$ac_check_lib_save_LIBS
 
20526
fi
 
20527
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
20528
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
20529
if test $ac_cv_lib_svld_dlopen = yes; then
 
20530
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
20531
else
 
20532
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
20533
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
20534
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
20535
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20536
else
 
20537
  ac_check_lib_save_LIBS=$LIBS
 
20538
LIBS="-ldld  $LIBS"
 
20539
cat >conftest.$ac_ext <<_ACEOF
 
20540
/* confdefs.h.  */
 
20541
_ACEOF
 
20542
cat confdefs.h >>conftest.$ac_ext
 
20543
cat >>conftest.$ac_ext <<_ACEOF
 
20544
/* end confdefs.h.  */
 
20545
 
 
20546
/* Override any gcc2 internal prototype to avoid an error.  */
 
20547
#ifdef __cplusplus
 
20548
extern "C"
 
20549
#endif
 
20550
/* We use char because int might match the return type of a gcc2
 
20551
   builtin and then its argument prototype would still apply.  */
 
20552
char dld_link ();
 
20553
int
 
20554
main ()
 
20555
{
 
20556
dld_link ();
 
20557
  ;
 
20558
  return 0;
 
20559
}
 
20560
_ACEOF
 
20561
rm -f conftest.$ac_objext conftest$ac_exeext
 
20562
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20563
  (eval $ac_link) 2>conftest.er1
 
20564
  ac_status=$?
 
20565
  grep -v '^ *+' conftest.er1 >conftest.err
 
20566
  rm -f conftest.er1
 
20567
  cat conftest.err >&5
 
20568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20569
  (exit $ac_status); } &&
 
20570
         { ac_try='test -z "$ac_c_werror_flag"
 
20571
                         || test ! -s conftest.err'
 
20572
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20573
  (eval $ac_try) 2>&5
 
20574
  ac_status=$?
 
20575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20576
  (exit $ac_status); }; } &&
 
20577
         { ac_try='test -s conftest$ac_exeext'
 
20578
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20579
  (eval $ac_try) 2>&5
 
20580
  ac_status=$?
 
20581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20582
  (exit $ac_status); }; }; then
 
20583
  ac_cv_lib_dld_dld_link=yes
 
20584
else
 
20585
  echo "$as_me: failed program was:" >&5
 
20586
sed 's/^/| /' conftest.$ac_ext >&5
 
20587
 
 
20588
ac_cv_lib_dld_dld_link=no
 
20589
fi
 
20590
rm -f conftest.err conftest.$ac_objext \
 
20591
      conftest$ac_exeext conftest.$ac_ext
 
20592
LIBS=$ac_check_lib_save_LIBS
 
20593
fi
 
20594
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
20595
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
20596
if test $ac_cv_lib_dld_dld_link = yes; then
 
20597
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
20598
fi
 
20599
 
 
20600
 
 
20601
fi
 
20602
 
 
20603
 
 
20604
fi
 
20605
 
 
20606
 
 
20607
fi
 
20608
 
 
20609
 
 
20610
fi
 
20611
 
 
20612
 
 
20613
fi
 
20614
 
 
20615
    ;;
 
20616
  esac
 
20617
 
 
20618
  if test "x$lt_cv_dlopen" != xno; then
 
20619
    enable_dlopen=yes
 
20620
  else
 
20621
    enable_dlopen=no
 
20622
  fi
 
20623
 
 
20624
  case $lt_cv_dlopen in
 
20625
  dlopen)
 
20626
    save_CPPFLAGS="$CPPFLAGS"
 
20627
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
20628
 
 
20629
    save_LDFLAGS="$LDFLAGS"
 
20630
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
20631
 
 
20632
    save_LIBS="$LIBS"
 
20633
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
20634
 
 
20635
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
20636
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
20637
if test "${lt_cv_dlopen_self+set}" = set; then
 
20638
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20639
else
 
20640
          if test "$cross_compiling" = yes; then :
 
20641
  lt_cv_dlopen_self=cross
 
20642
else
 
20643
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
20644
  lt_status=$lt_dlunknown
 
20645
  cat > conftest.$ac_ext <<EOF
 
20646
#line 20646 "configure"
 
20647
#include "confdefs.h"
 
20648
 
 
20649
#if HAVE_DLFCN_H
 
20650
#include <dlfcn.h>
 
20651
#endif
 
20652
 
 
20653
#include <stdio.h>
 
20654
 
 
20655
#ifdef RTLD_GLOBAL
 
20656
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
20657
#else
 
20658
#  ifdef DL_GLOBAL
 
20659
#    define LT_DLGLOBAL         DL_GLOBAL
 
20660
#  else
 
20661
#    define LT_DLGLOBAL         0
 
20662
#  endif
 
20663
#endif
 
20664
 
 
20665
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
20666
   find out it does not work in some platform. */
 
20667
#ifndef LT_DLLAZY_OR_NOW
 
20668
#  ifdef RTLD_LAZY
 
20669
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
20670
#  else
 
20671
#    ifdef DL_LAZY
 
20672
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
20673
#    else
 
20674
#      ifdef RTLD_NOW
 
20675
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
20676
#      else
 
20677
#        ifdef DL_NOW
 
20678
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
20679
#        else
 
20680
#          define LT_DLLAZY_OR_NOW      0
 
20681
#        endif
 
20682
#      endif
 
20683
#    endif
 
20684
#  endif
 
20685
#endif
 
20686
 
 
20687
#ifdef __cplusplus
 
20688
extern "C" void exit (int);
 
20689
#endif
 
20690
 
 
20691
void fnord() { int i=42;}
 
20692
int main ()
 
20693
{
 
20694
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
20695
  int status = $lt_dlunknown;
 
20696
 
 
20697
  if (self)
 
20698
    {
 
20699
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
20700
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
20701
      /* dlclose (self); */
 
20702
    }
 
20703
 
 
20704
    exit (status);
 
20705
}
 
20706
EOF
 
20707
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20708
  (eval $ac_link) 2>&5
 
20709
  ac_status=$?
 
20710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20711
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
20712
    (./conftest; exit; ) 2>/dev/null
 
20713
    lt_status=$?
 
20714
    case x$lt_status in
 
20715
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
20716
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
20717
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
20718
    esac
 
20719
  else :
 
20720
    # compilation failed
 
20721
    lt_cv_dlopen_self=no
 
20722
  fi
 
20723
fi
 
20724
rm -fr conftest*
 
20725
 
 
20726
 
 
20727
fi
 
20728
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
20729
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
20730
 
 
20731
    if test "x$lt_cv_dlopen_self" = xyes; then
 
20732
      LDFLAGS="$LDFLAGS $link_static_flag"
 
20733
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
20734
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
20735
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
20736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20737
else
 
20738
          if test "$cross_compiling" = yes; then :
 
20739
  lt_cv_dlopen_self_static=cross
 
20740
else
 
20741
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
20742
  lt_status=$lt_dlunknown
 
20743
  cat > conftest.$ac_ext <<EOF
 
20744
#line 20744 "configure"
 
20745
#include "confdefs.h"
 
20746
 
 
20747
#if HAVE_DLFCN_H
 
20748
#include <dlfcn.h>
 
20749
#endif
 
20750
 
 
20751
#include <stdio.h>
 
20752
 
 
20753
#ifdef RTLD_GLOBAL
 
20754
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
20755
#else
 
20756
#  ifdef DL_GLOBAL
 
20757
#    define LT_DLGLOBAL         DL_GLOBAL
 
20758
#  else
 
20759
#    define LT_DLGLOBAL         0
 
20760
#  endif
 
20761
#endif
 
20762
 
 
20763
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
20764
   find out it does not work in some platform. */
 
20765
#ifndef LT_DLLAZY_OR_NOW
 
20766
#  ifdef RTLD_LAZY
 
20767
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
20768
#  else
 
20769
#    ifdef DL_LAZY
 
20770
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
20771
#    else
 
20772
#      ifdef RTLD_NOW
 
20773
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
20774
#      else
 
20775
#        ifdef DL_NOW
 
20776
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
20777
#        else
 
20778
#          define LT_DLLAZY_OR_NOW      0
 
20779
#        endif
 
20780
#      endif
 
20781
#    endif
 
20782
#  endif
 
20783
#endif
 
20784
 
 
20785
#ifdef __cplusplus
 
20786
extern "C" void exit (int);
 
20787
#endif
 
20788
 
 
20789
void fnord() { int i=42;}
 
20790
int main ()
 
20791
{
 
20792
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
20793
  int status = $lt_dlunknown;
 
20794
 
 
20795
  if (self)
 
20796
    {
 
20797
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
20798
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
20799
      /* dlclose (self); */
 
20800
    }
 
20801
 
 
20802
    exit (status);
 
20803
}
 
20804
EOF
 
20805
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20806
  (eval $ac_link) 2>&5
 
20807
  ac_status=$?
 
20808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20809
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
20810
    (./conftest; exit; ) 2>/dev/null
 
20811
    lt_status=$?
 
20812
    case x$lt_status in
 
20813
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
20814
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
20815
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
20816
    esac
 
20817
  else :
 
20818
    # compilation failed
 
20819
    lt_cv_dlopen_self_static=no
 
20820
  fi
 
20821
fi
 
20822
rm -fr conftest*
 
20823
 
 
20824
 
 
20825
fi
 
20826
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
20827
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
20828
    fi
 
20829
 
 
20830
    CPPFLAGS="$save_CPPFLAGS"
 
20831
    LDFLAGS="$save_LDFLAGS"
 
20832
    LIBS="$save_LIBS"
 
20833
    ;;
 
20834
  esac
 
20835
 
 
20836
  case $lt_cv_dlopen_self in
 
20837
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
20838
  *) enable_dlopen_self=unknown ;;
 
20839
  esac
 
20840
 
 
20841
  case $lt_cv_dlopen_self_static in
 
20842
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
20843
  *) enable_dlopen_self_static=unknown ;;
 
20844
  esac
 
20845
fi
 
20846
 
 
20847
 
 
20848
# The else clause should only fire when bootstrapping the
 
20849
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
20850
# with your package, and you will get complaints that there are
 
20851
# no rules to generate ltmain.sh.
 
20852
if test -f "$ltmain"; then
 
20853
  # See if we are running on zsh, and set the options which allow our commands through
 
20854
  # without removal of \ escapes.
 
20855
  if test -n "${ZSH_VERSION+set}" ; then
 
20856
    setopt NO_GLOB_SUBST
 
20857
  fi
 
20858
  # Now quote all the things that may contain metacharacters while being
 
20859
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
20860
  # variables and quote the copies for generation of the libtool script.
 
20861
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
20862
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
20863
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
20864
    deplibs_check_method reload_flag reload_cmds need_locks \
 
20865
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
20866
    lt_cv_sys_global_symbol_to_c_name_address \
 
20867
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
20868
    old_postinstall_cmds old_postuninstall_cmds \
 
20869
    compiler_GCJ \
 
20870
    CC_GCJ \
 
20871
    LD_GCJ \
 
20872
    lt_prog_compiler_wl_GCJ \
 
20873
    lt_prog_compiler_pic_GCJ \
 
20874
    lt_prog_compiler_static_GCJ \
 
20875
    lt_prog_compiler_no_builtin_flag_GCJ \
 
20876
    export_dynamic_flag_spec_GCJ \
 
20877
    thread_safe_flag_spec_GCJ \
 
20878
    whole_archive_flag_spec_GCJ \
 
20879
    enable_shared_with_static_runtimes_GCJ \
 
20880
    old_archive_cmds_GCJ \
 
20881
    old_archive_from_new_cmds_GCJ \
 
20882
    predep_objects_GCJ \
 
20883
    postdep_objects_GCJ \
 
20884
    predeps_GCJ \
 
20885
    postdeps_GCJ \
 
20886
    compiler_lib_search_path_GCJ \
 
20887
    archive_cmds_GCJ \
 
20888
    archive_expsym_cmds_GCJ \
 
20889
    postinstall_cmds_GCJ \
 
20890
    postuninstall_cmds_GCJ \
 
20891
    old_archive_from_expsyms_cmds_GCJ \
 
20892
    allow_undefined_flag_GCJ \
 
20893
    no_undefined_flag_GCJ \
 
20894
    export_symbols_cmds_GCJ \
 
20895
    hardcode_libdir_flag_spec_GCJ \
 
20896
    hardcode_libdir_flag_spec_ld_GCJ \
 
20897
    hardcode_libdir_separator_GCJ \
 
20898
    hardcode_automatic_GCJ \
 
20899
    module_cmds_GCJ \
 
20900
    module_expsym_cmds_GCJ \
 
20901
    lt_cv_prog_compiler_c_o_GCJ \
 
20902
    exclude_expsyms_GCJ \
 
20903
    include_expsyms_GCJ; do
 
20904
 
 
20905
    case $var in
 
20906
    old_archive_cmds_GCJ | \
 
20907
    old_archive_from_new_cmds_GCJ | \
 
20908
    archive_cmds_GCJ | \
 
20909
    archive_expsym_cmds_GCJ | \
 
20910
    module_cmds_GCJ | \
 
20911
    module_expsym_cmds_GCJ | \
 
20912
    old_archive_from_expsyms_cmds_GCJ | \
 
20913
    export_symbols_cmds_GCJ | \
 
20914
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
20915
    postinstall_cmds | postuninstall_cmds | \
 
20916
    old_postinstall_cmds | old_postuninstall_cmds | \
 
20917
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
20918
      # Double-quote double-evaled strings.
 
20919
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
20920
      ;;
 
20921
    *)
 
20922
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
20923
      ;;
 
20924
    esac
 
20925
  done
 
20926
 
 
20927
  case $lt_echo in
 
20928
  *'\$0 --fallback-echo"')
 
20929
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
20930
    ;;
 
20931
  esac
 
20932
 
 
20933
cfgfile="$ofile"
 
20934
 
 
20935
  cat <<__EOF__ >> "$cfgfile"
 
20936
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
20937
 
 
20938
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
20939
 
 
20940
# Shell to use when invoking shell scripts.
 
20941
SHELL=$lt_SHELL
 
20942
 
 
20943
# Whether or not to build shared libraries.
 
20944
build_libtool_libs=$enable_shared
 
20945
 
 
20946
# Whether or not to build static libraries.
 
20947
build_old_libs=$enable_static
 
20948
 
 
20949
# Whether or not to add -lc for building shared libraries.
 
20950
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
20951
 
 
20952
# Whether or not to disallow shared libs when runtime libs are static
 
20953
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
20954
 
 
20955
# Whether or not to optimize for fast installation.
 
20956
fast_install=$enable_fast_install
 
20957
 
 
20958
# The host system.
 
20959
host_alias=$host_alias
 
20960
host=$host
 
20961
 
 
20962
# An echo program that does not interpret backslashes.
 
20963
echo=$lt_echo
 
20964
 
 
20965
# The archiver.
 
20966
AR=$lt_AR
 
20967
AR_FLAGS=$lt_AR_FLAGS
 
20968
 
 
20969
# A C compiler.
 
20970
LTCC=$lt_LTCC
 
20971
 
 
20972
# A language-specific compiler.
 
20973
CC=$lt_compiler_GCJ
 
20974
 
 
20975
# Is the compiler the GNU C compiler?
 
20976
with_gcc=$GCC_GCJ
 
20977
 
 
20978
# An ERE matcher.
 
20979
EGREP=$lt_EGREP
 
20980
 
 
20981
# The linker used to build libraries.
 
20982
LD=$lt_LD_GCJ
 
20983
 
 
20984
# Whether we need hard or soft links.
 
20985
LN_S=$lt_LN_S
 
20986
 
 
20987
# A BSD-compatible nm program.
 
20988
NM=$lt_NM
 
20989
 
 
20990
# A symbol stripping program
 
20991
STRIP=$STRIP
 
20992
 
 
20993
# Used to examine libraries when file_magic_cmd begins "file"
 
20994
MAGIC_CMD=$MAGIC_CMD
 
20995
 
 
20996
# Used on cygwin: DLL creation program.
 
20997
DLLTOOL="$DLLTOOL"
 
20998
 
 
20999
# Used on cygwin: object dumper.
 
21000
OBJDUMP="$OBJDUMP"
 
21001
 
 
21002
# Used on cygwin: assembler.
 
21003
AS="$AS"
 
21004
 
 
21005
# The name of the directory that contains temporary libtool files.
 
21006
objdir=$objdir
 
21007
 
 
21008
# How to create reloadable object files.
 
21009
reload_flag=$lt_reload_flag
 
21010
reload_cmds=$lt_reload_cmds
 
21011
 
 
21012
# How to pass a linker flag through the compiler.
 
21013
wl=$lt_lt_prog_compiler_wl_GCJ
 
21014
 
 
21015
# Object file suffix (normally "o").
 
21016
objext="$ac_objext"
 
21017
 
 
21018
# Old archive suffix (normally "a").
 
21019
libext="$libext"
 
21020
 
 
21021
# Shared library suffix (normally ".so").
 
21022
shrext='$shrext'
 
21023
 
 
21024
# Executable file suffix (normally "").
 
21025
exeext="$exeext"
 
21026
 
 
21027
# Additional compiler flags for building library objects.
 
21028
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
21029
pic_mode=$pic_mode
 
21030
 
 
21031
# What is the maximum length of a command?
 
21032
max_cmd_len=$lt_cv_sys_max_cmd_len
 
21033
 
 
21034
# Does compiler simultaneously support -c and -o options?
 
21035
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
21036
 
 
21037
# Must we lock files when doing compilation ?
 
21038
need_locks=$lt_need_locks
 
21039
 
 
21040
# Do we need the lib prefix for modules?
 
21041
need_lib_prefix=$need_lib_prefix
 
21042
 
 
21043
# Do we need a version for libraries?
 
21044
need_version=$need_version
 
21045
 
 
21046
# Whether dlopen is supported.
 
21047
dlopen_support=$enable_dlopen
 
21048
 
 
21049
# Whether dlopen of programs is supported.
 
21050
dlopen_self=$enable_dlopen_self
 
21051
 
 
21052
# Whether dlopen of statically linked programs is supported.
 
21053
dlopen_self_static=$enable_dlopen_self_static
 
21054
 
 
21055
# Compiler flag to prevent dynamic linking.
 
21056
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
21057
 
 
21058
# Compiler flag to turn off builtin functions.
 
21059
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
21060
 
 
21061
# Compiler flag to allow reflexive dlopens.
 
21062
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
21063
 
 
21064
# Compiler flag to generate shared objects directly from archives.
 
21065
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
21066
 
 
21067
# Compiler flag to generate thread-safe objects.
 
21068
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
21069
 
 
21070
# Library versioning type.
 
21071
version_type=$version_type
 
21072
 
 
21073
# Format of library name prefix.
 
21074
libname_spec=$lt_libname_spec
 
21075
 
 
21076
# List of archive names.  First name is the real one, the rest are links.
 
21077
# The last name is the one that the linker finds with -lNAME.
 
21078
library_names_spec=$lt_library_names_spec
 
21079
 
 
21080
# The coded name of the library, if different from the real name.
 
21081
soname_spec=$lt_soname_spec
 
21082
 
 
21083
# Commands used to build and install an old-style archive.
 
21084
RANLIB=$lt_RANLIB
 
21085
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
21086
old_postinstall_cmds=$lt_old_postinstall_cmds
 
21087
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
21088
 
 
21089
# Create an old-style archive from a shared archive.
 
21090
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
21091
 
 
21092
# Create a temporary old-style archive to link instead of a shared archive.
 
21093
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
21094
 
 
21095
# Commands used to build and install a shared archive.
 
21096
archive_cmds=$lt_archive_cmds_GCJ
 
21097
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
21098
postinstall_cmds=$lt_postinstall_cmds
 
21099
postuninstall_cmds=$lt_postuninstall_cmds
 
21100
 
 
21101
# Commands used to build a loadable module (assumed same as above if empty)
 
21102
module_cmds=$lt_module_cmds_GCJ
 
21103
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
21104
 
 
21105
# Commands to strip libraries.
 
21106
old_striplib=$lt_old_striplib
 
21107
striplib=$lt_striplib
 
21108
 
 
21109
# Dependencies to place before the objects being linked to create a
 
21110
# shared library.
 
21111
predep_objects=$lt_predep_objects_GCJ
 
21112
 
 
21113
# Dependencies to place after the objects being linked to create a
 
21114
# shared library.
 
21115
postdep_objects=$lt_postdep_objects_GCJ
 
21116
 
 
21117
# Dependencies to place before the objects being linked to create a
 
21118
# shared library.
 
21119
predeps=$lt_predeps_GCJ
 
21120
 
 
21121
# Dependencies to place after the objects being linked to create a
 
21122
# shared library.
 
21123
postdeps=$lt_postdeps_GCJ
 
21124
 
 
21125
# The library search path used internally by the compiler when linking
 
21126
# a shared library.
 
21127
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
21128
 
 
21129
# Method to check whether dependent libraries are shared objects.
 
21130
deplibs_check_method=$lt_deplibs_check_method
 
21131
 
 
21132
# Command to use when deplibs_check_method == file_magic.
 
21133
file_magic_cmd=$lt_file_magic_cmd
 
21134
 
 
21135
# Flag that allows shared libraries with undefined symbols to be built.
 
21136
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
21137
 
 
21138
# Flag that forces no undefined symbols.
 
21139
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
21140
 
 
21141
# Commands used to finish a libtool library installation in a directory.
 
21142
finish_cmds=$lt_finish_cmds
 
21143
 
 
21144
# Same as above, but a single script fragment to be evaled but not shown.
 
21145
finish_eval=$lt_finish_eval
 
21146
 
 
21147
# Take the output of nm and produce a listing of raw symbols and C names.
 
21148
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
21149
 
 
21150
# Transform the output of nm in a proper C declaration
 
21151
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
21152
 
 
21153
# Transform the output of nm in a C name address pair
 
21154
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
21155
 
 
21156
# This is the shared library runtime path variable.
 
21157
runpath_var=$runpath_var
 
21158
 
 
21159
# This is the shared library path variable.
 
21160
shlibpath_var=$shlibpath_var
 
21161
 
 
21162
# Is shlibpath searched before the hard-coded library search path?
 
21163
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
21164
 
 
21165
# How to hardcode a shared library path into an executable.
 
21166
hardcode_action=$hardcode_action_GCJ
 
21167
 
 
21168
# Whether we should hardcode library paths into libraries.
 
21169
hardcode_into_libs=$hardcode_into_libs
 
21170
 
 
21171
# Flag to hardcode \$libdir into a binary during linking.
 
21172
# This must work even if \$libdir does not exist.
 
21173
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
21174
 
 
21175
# If ld is used when linking, flag to hardcode \$libdir into
 
21176
# a binary during linking. This must work even if \$libdir does
 
21177
# not exist.
 
21178
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
21179
 
 
21180
# Whether we need a single -rpath flag with a separated argument.
 
21181
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
21182
 
 
21183
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
21184
# resulting binary.
 
21185
hardcode_direct=$hardcode_direct_GCJ
 
21186
 
 
21187
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
21188
# resulting binary.
 
21189
hardcode_minus_L=$hardcode_minus_L_GCJ
 
21190
 
 
21191
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
21192
# the resulting binary.
 
21193
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
21194
 
 
21195
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
21196
# and all subsequent libraries and executables linked against it.
 
21197
hardcode_automatic=$hardcode_automatic_GCJ
 
21198
 
 
21199
# Variables whose values should be saved in libtool wrapper scripts and
 
21200
# restored at relink time.
 
21201
variables_saved_for_relink="$variables_saved_for_relink"
 
21202
 
 
21203
# Whether libtool must link a program against all its dependency libraries.
 
21204
link_all_deplibs=$link_all_deplibs_GCJ
 
21205
 
 
21206
# Compile-time system search path for libraries
 
21207
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
21208
 
 
21209
# Run-time system search path for libraries
 
21210
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
21211
 
 
21212
# Fix the shell variable \$srcfile for the compiler.
 
21213
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
21214
 
 
21215
# Set to yes if exported symbols are required.
 
21216
always_export_symbols=$always_export_symbols_GCJ
 
21217
 
 
21218
# The commands to list exported symbols.
 
21219
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
21220
 
 
21221
# The commands to extract the exported symbol list from a shared archive.
 
21222
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
21223
 
 
21224
# Symbols that should not be listed in the preloaded symbols.
 
21225
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
21226
 
 
21227
# Symbols that must always be exported.
 
21228
include_expsyms=$lt_include_expsyms_GCJ
 
21229
 
 
21230
# ### END LIBTOOL TAG CONFIG: $tagname
 
21231
 
 
21232
__EOF__
 
21233
 
 
21234
 
 
21235
else
 
21236
  # If there is no Makefile yet, we rely on a make rule to execute
 
21237
  # `config.status --recheck' to rerun these tests and create the
 
21238
  # libtool script then.
 
21239
  test -f Makefile && make "$ltmain"
 
21240
fi
 
21241
 
 
21242
 
 
21243
ac_ext=c
 
21244
ac_cpp='$CPP $CPPFLAGS'
 
21245
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21246
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21247
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21248
 
 
21249
CC="$lt_save_CC"
 
21250
 
 
21251
        else
 
21252
          tagname=""
 
21253
        fi
 
21254
        ;;
 
21255
 
 
21256
      RC)
 
21257
 
 
21258
 
 
21259
 
 
21260
# Source file extension for RC test sources.
 
21261
ac_ext=rc
 
21262
 
 
21263
# Object file extension for compiled RC test sources.
 
21264
objext=o
 
21265
objext_RC=$objext
 
21266
 
 
21267
# Code to be used in simple compile tests
 
21268
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
21269
 
 
21270
# Code to be used in simple link tests
 
21271
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
21272
 
 
21273
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
21274
 
 
21275
# If no C compiler was specified, use CC.
 
21276
LTCC=${LTCC-"$CC"}
 
21277
 
 
21278
# Allow CC to be a program name with arguments.
 
21279
compiler=$CC
 
21280
 
 
21281
 
 
21282
# Allow CC to be a program name with arguments.
 
21283
lt_save_CC="$CC"
 
21284
CC=${RC-"windres"}
 
21285
compiler=$CC
 
21286
compiler_RC=$CC
 
21287
lt_cv_prog_compiler_c_o_RC=yes
 
21288
 
 
21289
# The else clause should only fire when bootstrapping the
 
21290
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
21291
# with your package, and you will get complaints that there are
 
21292
# no rules to generate ltmain.sh.
 
21293
if test -f "$ltmain"; then
 
21294
  # See if we are running on zsh, and set the options which allow our commands through
 
21295
  # without removal of \ escapes.
 
21296
  if test -n "${ZSH_VERSION+set}" ; then
 
21297
    setopt NO_GLOB_SUBST
 
21298
  fi
 
21299
  # Now quote all the things that may contain metacharacters while being
 
21300
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
21301
  # variables and quote the copies for generation of the libtool script.
 
21302
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
21303
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
21304
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
21305
    deplibs_check_method reload_flag reload_cmds need_locks \
 
21306
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
21307
    lt_cv_sys_global_symbol_to_c_name_address \
 
21308
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
21309
    old_postinstall_cmds old_postuninstall_cmds \
 
21310
    compiler_RC \
 
21311
    CC_RC \
 
21312
    LD_RC \
 
21313
    lt_prog_compiler_wl_RC \
 
21314
    lt_prog_compiler_pic_RC \
 
21315
    lt_prog_compiler_static_RC \
 
21316
    lt_prog_compiler_no_builtin_flag_RC \
 
21317
    export_dynamic_flag_spec_RC \
 
21318
    thread_safe_flag_spec_RC \
 
21319
    whole_archive_flag_spec_RC \
 
21320
    enable_shared_with_static_runtimes_RC \
 
21321
    old_archive_cmds_RC \
 
21322
    old_archive_from_new_cmds_RC \
 
21323
    predep_objects_RC \
 
21324
    postdep_objects_RC \
 
21325
    predeps_RC \
 
21326
    postdeps_RC \
 
21327
    compiler_lib_search_path_RC \
 
21328
    archive_cmds_RC \
 
21329
    archive_expsym_cmds_RC \
 
21330
    postinstall_cmds_RC \
 
21331
    postuninstall_cmds_RC \
 
21332
    old_archive_from_expsyms_cmds_RC \
 
21333
    allow_undefined_flag_RC \
 
21334
    no_undefined_flag_RC \
 
21335
    export_symbols_cmds_RC \
 
21336
    hardcode_libdir_flag_spec_RC \
 
21337
    hardcode_libdir_flag_spec_ld_RC \
 
21338
    hardcode_libdir_separator_RC \
 
21339
    hardcode_automatic_RC \
 
21340
    module_cmds_RC \
 
21341
    module_expsym_cmds_RC \
 
21342
    lt_cv_prog_compiler_c_o_RC \
 
21343
    exclude_expsyms_RC \
 
21344
    include_expsyms_RC; do
 
21345
 
 
21346
    case $var in
 
21347
    old_archive_cmds_RC | \
 
21348
    old_archive_from_new_cmds_RC | \
 
21349
    archive_cmds_RC | \
 
21350
    archive_expsym_cmds_RC | \
 
21351
    module_cmds_RC | \
 
21352
    module_expsym_cmds_RC | \
 
21353
    old_archive_from_expsyms_cmds_RC | \
 
21354
    export_symbols_cmds_RC | \
 
21355
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
21356
    postinstall_cmds | postuninstall_cmds | \
 
21357
    old_postinstall_cmds | old_postuninstall_cmds | \
 
21358
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
21359
      # Double-quote double-evaled strings.
 
21360
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
21361
      ;;
 
21362
    *)
 
21363
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
21364
      ;;
 
21365
    esac
 
21366
  done
 
21367
 
 
21368
  case $lt_echo in
 
21369
  *'\$0 --fallback-echo"')
 
21370
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
21371
    ;;
 
21372
  esac
 
21373
 
 
21374
cfgfile="$ofile"
 
21375
 
 
21376
  cat <<__EOF__ >> "$cfgfile"
 
21377
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
21378
 
 
21379
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
21380
 
 
21381
# Shell to use when invoking shell scripts.
 
21382
SHELL=$lt_SHELL
 
21383
 
 
21384
# Whether or not to build shared libraries.
 
21385
build_libtool_libs=$enable_shared
 
21386
 
 
21387
# Whether or not to build static libraries.
 
21388
build_old_libs=$enable_static
 
21389
 
 
21390
# Whether or not to add -lc for building shared libraries.
 
21391
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
21392
 
 
21393
# Whether or not to disallow shared libs when runtime libs are static
 
21394
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
21395
 
 
21396
# Whether or not to optimize for fast installation.
 
21397
fast_install=$enable_fast_install
 
21398
 
 
21399
# The host system.
 
21400
host_alias=$host_alias
 
21401
host=$host
 
21402
 
 
21403
# An echo program that does not interpret backslashes.
 
21404
echo=$lt_echo
 
21405
 
 
21406
# The archiver.
 
21407
AR=$lt_AR
 
21408
AR_FLAGS=$lt_AR_FLAGS
 
21409
 
 
21410
# A C compiler.
 
21411
LTCC=$lt_LTCC
 
21412
 
 
21413
# A language-specific compiler.
 
21414
CC=$lt_compiler_RC
 
21415
 
 
21416
# Is the compiler the GNU C compiler?
 
21417
with_gcc=$GCC_RC
 
21418
 
 
21419
# An ERE matcher.
 
21420
EGREP=$lt_EGREP
 
21421
 
 
21422
# The linker used to build libraries.
 
21423
LD=$lt_LD_RC
 
21424
 
 
21425
# Whether we need hard or soft links.
 
21426
LN_S=$lt_LN_S
 
21427
 
 
21428
# A BSD-compatible nm program.
 
21429
NM=$lt_NM
 
21430
 
 
21431
# A symbol stripping program
 
21432
STRIP=$STRIP
 
21433
 
 
21434
# Used to examine libraries when file_magic_cmd begins "file"
 
21435
MAGIC_CMD=$MAGIC_CMD
 
21436
 
 
21437
# Used on cygwin: DLL creation program.
 
21438
DLLTOOL="$DLLTOOL"
 
21439
 
 
21440
# Used on cygwin: object dumper.
 
21441
OBJDUMP="$OBJDUMP"
 
21442
 
 
21443
# Used on cygwin: assembler.
 
21444
AS="$AS"
 
21445
 
 
21446
# The name of the directory that contains temporary libtool files.
 
21447
objdir=$objdir
 
21448
 
 
21449
# How to create reloadable object files.
 
21450
reload_flag=$lt_reload_flag
 
21451
reload_cmds=$lt_reload_cmds
 
21452
 
 
21453
# How to pass a linker flag through the compiler.
 
21454
wl=$lt_lt_prog_compiler_wl_RC
 
21455
 
 
21456
# Object file suffix (normally "o").
 
21457
objext="$ac_objext"
 
21458
 
 
21459
# Old archive suffix (normally "a").
 
21460
libext="$libext"
 
21461
 
 
21462
# Shared library suffix (normally ".so").
 
21463
shrext='$shrext'
 
21464
 
 
21465
# Executable file suffix (normally "").
 
21466
exeext="$exeext"
 
21467
 
 
21468
# Additional compiler flags for building library objects.
 
21469
pic_flag=$lt_lt_prog_compiler_pic_RC
 
21470
pic_mode=$pic_mode
 
21471
 
 
21472
# What is the maximum length of a command?
 
21473
max_cmd_len=$lt_cv_sys_max_cmd_len
 
21474
 
 
21475
# Does compiler simultaneously support -c and -o options?
 
21476
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
21477
 
 
21478
# Must we lock files when doing compilation ?
 
21479
need_locks=$lt_need_locks
 
21480
 
 
21481
# Do we need the lib prefix for modules?
 
21482
need_lib_prefix=$need_lib_prefix
 
21483
 
 
21484
# Do we need a version for libraries?
 
21485
need_version=$need_version
 
21486
 
 
21487
# Whether dlopen is supported.
 
21488
dlopen_support=$enable_dlopen
 
21489
 
 
21490
# Whether dlopen of programs is supported.
 
21491
dlopen_self=$enable_dlopen_self
 
21492
 
 
21493
# Whether dlopen of statically linked programs is supported.
 
21494
dlopen_self_static=$enable_dlopen_self_static
 
21495
 
 
21496
# Compiler flag to prevent dynamic linking.
 
21497
link_static_flag=$lt_lt_prog_compiler_static_RC
 
21498
 
 
21499
# Compiler flag to turn off builtin functions.
 
21500
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
21501
 
 
21502
# Compiler flag to allow reflexive dlopens.
 
21503
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
21504
 
 
21505
# Compiler flag to generate shared objects directly from archives.
 
21506
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
21507
 
 
21508
# Compiler flag to generate thread-safe objects.
 
21509
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
21510
 
 
21511
# Library versioning type.
 
21512
version_type=$version_type
 
21513
 
 
21514
# Format of library name prefix.
 
21515
libname_spec=$lt_libname_spec
 
21516
 
 
21517
# List of archive names.  First name is the real one, the rest are links.
 
21518
# The last name is the one that the linker finds with -lNAME.
 
21519
library_names_spec=$lt_library_names_spec
 
21520
 
 
21521
# The coded name of the library, if different from the real name.
 
21522
soname_spec=$lt_soname_spec
 
21523
 
 
21524
# Commands used to build and install an old-style archive.
 
21525
RANLIB=$lt_RANLIB
 
21526
old_archive_cmds=$lt_old_archive_cmds_RC
 
21527
old_postinstall_cmds=$lt_old_postinstall_cmds
 
21528
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
21529
 
 
21530
# Create an old-style archive from a shared archive.
 
21531
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
21532
 
 
21533
# Create a temporary old-style archive to link instead of a shared archive.
 
21534
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
21535
 
 
21536
# Commands used to build and install a shared archive.
 
21537
archive_cmds=$lt_archive_cmds_RC
 
21538
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
21539
postinstall_cmds=$lt_postinstall_cmds
 
21540
postuninstall_cmds=$lt_postuninstall_cmds
 
21541
 
 
21542
# Commands used to build a loadable module (assumed same as above if empty)
 
21543
module_cmds=$lt_module_cmds_RC
 
21544
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
21545
 
 
21546
# Commands to strip libraries.
 
21547
old_striplib=$lt_old_striplib
 
21548
striplib=$lt_striplib
 
21549
 
 
21550
# Dependencies to place before the objects being linked to create a
 
21551
# shared library.
 
21552
predep_objects=$lt_predep_objects_RC
 
21553
 
 
21554
# Dependencies to place after the objects being linked to create a
 
21555
# shared library.
 
21556
postdep_objects=$lt_postdep_objects_RC
 
21557
 
 
21558
# Dependencies to place before the objects being linked to create a
 
21559
# shared library.
 
21560
predeps=$lt_predeps_RC
 
21561
 
 
21562
# Dependencies to place after the objects being linked to create a
 
21563
# shared library.
 
21564
postdeps=$lt_postdeps_RC
 
21565
 
 
21566
# The library search path used internally by the compiler when linking
 
21567
# a shared library.
 
21568
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
21569
 
 
21570
# Method to check whether dependent libraries are shared objects.
 
21571
deplibs_check_method=$lt_deplibs_check_method
 
21572
 
 
21573
# Command to use when deplibs_check_method == file_magic.
 
21574
file_magic_cmd=$lt_file_magic_cmd
 
21575
 
 
21576
# Flag that allows shared libraries with undefined symbols to be built.
 
21577
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
21578
 
 
21579
# Flag that forces no undefined symbols.
 
21580
no_undefined_flag=$lt_no_undefined_flag_RC
 
21581
 
 
21582
# Commands used to finish a libtool library installation in a directory.
 
21583
finish_cmds=$lt_finish_cmds
 
21584
 
 
21585
# Same as above, but a single script fragment to be evaled but not shown.
 
21586
finish_eval=$lt_finish_eval
 
21587
 
 
21588
# Take the output of nm and produce a listing of raw symbols and C names.
 
21589
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
21590
 
 
21591
# Transform the output of nm in a proper C declaration
 
21592
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
21593
 
 
21594
# Transform the output of nm in a C name address pair
 
21595
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
21596
 
 
21597
# This is the shared library runtime path variable.
 
21598
runpath_var=$runpath_var
 
21599
 
 
21600
# This is the shared library path variable.
 
21601
shlibpath_var=$shlibpath_var
 
21602
 
 
21603
# Is shlibpath searched before the hard-coded library search path?
 
21604
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
21605
 
 
21606
# How to hardcode a shared library path into an executable.
 
21607
hardcode_action=$hardcode_action_RC
 
21608
 
 
21609
# Whether we should hardcode library paths into libraries.
 
21610
hardcode_into_libs=$hardcode_into_libs
 
21611
 
 
21612
# Flag to hardcode \$libdir into a binary during linking.
 
21613
# This must work even if \$libdir does not exist.
 
21614
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
21615
 
 
21616
# If ld is used when linking, flag to hardcode \$libdir into
 
21617
# a binary during linking. This must work even if \$libdir does
 
21618
# not exist.
 
21619
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
21620
 
 
21621
# Whether we need a single -rpath flag with a separated argument.
 
21622
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
21623
 
 
21624
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
21625
# resulting binary.
 
21626
hardcode_direct=$hardcode_direct_RC
 
21627
 
 
21628
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
21629
# resulting binary.
 
21630
hardcode_minus_L=$hardcode_minus_L_RC
 
21631
 
 
21632
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
21633
# the resulting binary.
 
21634
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
21635
 
 
21636
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
21637
# and all subsequent libraries and executables linked against it.
 
21638
hardcode_automatic=$hardcode_automatic_RC
 
21639
 
 
21640
# Variables whose values should be saved in libtool wrapper scripts and
 
21641
# restored at relink time.
 
21642
variables_saved_for_relink="$variables_saved_for_relink"
 
21643
 
 
21644
# Whether libtool must link a program against all its dependency libraries.
 
21645
link_all_deplibs=$link_all_deplibs_RC
 
21646
 
 
21647
# Compile-time system search path for libraries
 
21648
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
21649
 
 
21650
# Run-time system search path for libraries
 
21651
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
21652
 
 
21653
# Fix the shell variable \$srcfile for the compiler.
 
21654
fix_srcfile_path="$fix_srcfile_path_RC"
 
21655
 
 
21656
# Set to yes if exported symbols are required.
 
21657
always_export_symbols=$always_export_symbols_RC
 
21658
 
 
21659
# The commands to list exported symbols.
 
21660
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
21661
 
 
21662
# The commands to extract the exported symbol list from a shared archive.
 
21663
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
21664
 
 
21665
# Symbols that should not be listed in the preloaded symbols.
 
21666
exclude_expsyms=$lt_exclude_expsyms_RC
 
21667
 
 
21668
# Symbols that must always be exported.
 
21669
include_expsyms=$lt_include_expsyms_RC
 
21670
 
 
21671
# ### END LIBTOOL TAG CONFIG: $tagname
 
21672
 
 
21673
__EOF__
 
21674
 
 
21675
 
 
21676
else
 
21677
  # If there is no Makefile yet, we rely on a make rule to execute
 
21678
  # `config.status --recheck' to rerun these tests and create the
 
21679
  # libtool script then.
 
21680
  test -f Makefile && make "$ltmain"
 
21681
fi
 
21682
 
 
21683
 
 
21684
ac_ext=c
 
21685
ac_cpp='$CPP $CPPFLAGS'
 
21686
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21687
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21688
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21689
 
 
21690
CC="$lt_save_CC"
 
21691
 
 
21692
        ;;
 
21693
 
 
21694
      *)
 
21695
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
21696
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
21697
   { (exit 1); exit 1; }; }
 
21698
        ;;
 
21699
      esac
 
21700
 
 
21701
      # Append the new tag name to the list of available tags.
 
21702
      if test -n "$tagname" ; then
 
21703
      available_tags="$available_tags $tagname"
 
21704
    fi
 
21705
    fi
 
21706
  done
 
21707
  IFS="$lt_save_ifs"
 
21708
 
 
21709
  # Now substitute the updated list of available tags.
 
21710
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
21711
    mv "${ofile}T" "$ofile"
 
21712
    chmod +x "$ofile"
 
21713
  else
 
21714
    rm -f "${ofile}T"
 
21715
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
21716
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
21717
   { (exit 1); exit 1; }; }
 
21718
  fi
 
21719
fi
 
21720
 
 
21721
 
 
21722
 
 
21723
# This can be used to rebuild libtool when needed
 
21724
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
21725
 
 
21726
# Always use our own libtool.
 
21727
LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
 
21728
 
 
21729
# Prevent multiple expansion
 
21730
 
 
21731
 
 
21732
 
 
21733
 
 
21734
 
 
21735
 
 
21736
 
 
21737
 
 
21738
 
 
21739
 
 
21740
 
 
21741
 
 
21742
 
 
21743
 
 
21744
 
 
21745
 
 
21746
 
 
21747
 
 
21748
 
 
21749
 
 
21750
 
 
21751
 
 
21752
 
 
21753
 
 
21754
 
 
21755
 
 
21756
 
 
21757
 
 
21758
 
 
21759
 
 
21760
 
 
21761
 
 
21762
 
 
21763
 
 
21764
LIBTOOL_SHELL="/bin/sh ./libtool"
 
21765
#  LIBTOOL="$LIBTOOL --silent"
 
21766
KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
 
21767
 
 
21768
 
 
21769
# This hack ensures that libtool creates shared libs for kunittest plugins. By default check_LTLIBRARIES makes static libs.
 
21770
KDE_CHECK_PLUGIN="\$(KDE_PLUGIN) -rpath \$(libdir)"
 
21771
 
 
21772
 
 
21773
# we patch configure quite some so we better keep that consistent for incremental runs
 
21774
AUTOCONF='$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure'
 
21775
 
 
21776
 
 
21777
 
 
21778
 
 
21779
 
 
21780
    # Extract the first word of "msgfmt", so it can be a program name with args.
 
21781
set dummy msgfmt; ac_word=$2
 
21782
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21783
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21784
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
21785
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21786
else
 
21787
  case "$MSGFMT" in
 
21788
  /*)
 
21789
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
21790
  ;;
 
21791
  *)
 
21792
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
21793
  for ac_dir in $PATH; do
 
21794
    test -z "$ac_dir" && ac_dir=.
 
21795
    if test -f $ac_dir/$ac_word; then
 
21796
      if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
 
21797
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
21798
        break
 
21799
      fi
 
21800
    fi
 
21801
  done
 
21802
  IFS="$ac_save_ifs"
 
21803
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
 
21804
  ;;
 
21805
esac
 
21806
fi
 
21807
MSGFMT="$ac_cv_path_MSGFMT"
 
21808
if test -n "$MSGFMT"; then
 
21809
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
21810
echo "${ECHO_T}$MSGFMT" >&6
 
21811
else
 
21812
  echo "$as_me:$LINENO: result: no" >&5
 
21813
echo "${ECHO_T}no" >&6
 
21814
fi
 
21815
 
 
21816
    # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
21817
set dummy gmsgfmt; ac_word=$2
 
21818
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21819
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21820
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
21821
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21822
else
 
21823
  case $GMSGFMT in
 
21824
  [\\/]* | ?:[\\/]*)
 
21825
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
21826
  ;;
 
21827
  *)
 
21828
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21829
for as_dir in $PATH
 
21830
do
 
21831
  IFS=$as_save_IFS
 
21832
  test -z "$as_dir" && as_dir=.
 
21833
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21834
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21835
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
21836
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21837
    break 2
 
21838
  fi
 
21839
done
 
21840
done
 
21841
 
 
21842
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
21843
  ;;
 
21844
esac
 
21845
fi
 
21846
GMSGFMT=$ac_cv_path_GMSGFMT
 
21847
 
 
21848
if test -n "$GMSGFMT"; then
 
21849
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
21850
echo "${ECHO_T}$GMSGFMT" >&6
 
21851
else
 
21852
  echo "$as_me:$LINENO: result: no" >&5
 
21853
echo "${ECHO_T}no" >&6
 
21854
fi
 
21855
 
 
21856
 
 
21857
     if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
 
21858
        echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
 
21859
echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
 
21860
        GMSGFMT=":"
 
21861
      fi
 
21862
      MSGFMT=$GMSGFMT
 
21863
 
 
21864
 
 
21865
 
 
21866
      # Extract the first word of "xgettext", so it can be a program name with args.
 
21867
set dummy xgettext; ac_word=$2
 
21868
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21869
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21870
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
21871
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21872
else
 
21873
  case "$XGETTEXT" in
 
21874
  /*)
 
21875
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
21876
  ;;
 
21877
  *)
 
21878
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
21879
  for ac_dir in $PATH; do
 
21880
    test -z "$ac_dir" && ac_dir=.
 
21881
    if test -f $ac_dir/$ac_word; then
 
21882
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
21883
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
21884
        break
 
21885
      fi
 
21886
    fi
 
21887
  done
 
21888
  IFS="$ac_save_ifs"
 
21889
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
21890
  ;;
 
21891
esac
 
21892
fi
 
21893
XGETTEXT="$ac_cv_path_XGETTEXT"
 
21894
if test -n "$XGETTEXT"; then
 
21895
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
21896
echo "${ECHO_T}$XGETTEXT" >&6
 
21897
else
 
21898
  echo "$as_me:$LINENO: result: no" >&5
 
21899
echo "${ECHO_T}no" >&6
 
21900
fi
 
21901
 
 
21902
 
 
21903
            if test "$XGETTEXT" != ":"; then
 
21904
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
21905
          : ;
 
21906
        else
 
21907
          echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
 
21908
echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
 
21909
          XGETTEXT=":"
 
21910
        fi
 
21911
      fi
 
21912
 
 
21913
 
 
21914
 
 
21915
 
 
21916
 
 
21917
if test -z "3.2"; then
 
21918
  # Current default Qt version: 3.3
 
21919
  kde_qtver=3
 
21920
  kde_qtsubver=3
 
21921
else
 
21922
  kde_qtsubver=`echo "3.2" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
 
21923
  # following is the check if subversion isnt found in passed argument
 
21924
  if test "$kde_qtsubver" = "3.2"; then
 
21925
    kde_qtsubver=1
 
21926
  fi
 
21927
  kde_qtver=`echo "3.2" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
 
21928
  if test "$kde_qtver" = "1"; then
 
21929
    kde_qtsubver=42
 
21930
  fi
 
21931
fi
 
21932
 
 
21933
if test -z ""; then
 
21934
  if test "$kde_qtver" = "2"; then
 
21935
    if test $kde_qtsubver -gt 0; then
 
21936
      kde_qt_minversion=">= Qt 2.2.2"
 
21937
    else
 
21938
      kde_qt_minversion=">= Qt 2.0.2"
 
21939
    fi
 
21940
  fi
 
21941
  if test "$kde_qtver" = "3"; then
 
21942
    if test $kde_qtsubver -gt 0; then
 
21943
         if test $kde_qtsubver -gt 1; then
 
21944
            if test $kde_qtsubver -gt 2; then
 
21945
                kde_qt_minversion=">= Qt 3.3"
 
21946
            else
 
21947
                kde_qt_minversion=">= Qt 3.2"
 
21948
            fi
 
21949
         else
 
21950
            kde_qt_minversion=">= Qt 3.1 (20021021)"
 
21951
         fi
 
21952
    else
 
21953
      kde_qt_minversion=">= Qt 3.0"
 
21954
    fi
 
21955
  fi
 
21956
  if test "$kde_qtver" = "1"; then
 
21957
    kde_qt_minversion=">= 1.42 and < 2.0"
 
21958
  fi
 
21959
else
 
21960
   kde_qt_minversion=""
 
21961
fi
 
21962
 
 
21963
if test -z ""; then
 
21964
   if test $kde_qtver = 3; then
 
21965
     if test $kde_qtsubver -gt 0; then
 
21966
       kde_qt_verstring="QT_VERSION >= 0x03@VER@00 && QT_VERSION < 0x040000"
 
21967
       qtsubver=`echo "00$kde_qtsubver" | sed -e 's,.*\(..\)$,\1,'`
 
21968
       kde_qt_verstring=`echo $kde_qt_verstring | sed -e "s,@VER@,$qtsubver,"`
 
21969
     else
 
21970
       kde_qt_verstring="QT_VERSION >= 300 && QT_VERSION < 0x040000"
 
21971
     fi
 
21972
   fi
 
21973
   if test $kde_qtver = 2; then
 
21974
     if test $kde_qtsubver -gt 0; then
 
21975
       kde_qt_verstring="QT_VERSION >= 222"
 
21976
     else
 
21977
       kde_qt_verstring="QT_VERSION >= 200"
 
21978
     fi
 
21979
   fi
 
21980
   if test $kde_qtver = 1; then
 
21981
    kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
 
21982
   fi
 
21983
else
 
21984
   kde_qt_verstring=""
 
21985
fi
 
21986
 
 
21987
if test $kde_qtver = 3; then
 
21988
  kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3"
 
21989
fi
 
21990
if test $kde_qtver = 2; then
 
21991
   kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
 
21992
fi
 
21993
if test $kde_qtver = 1; then
 
21994
   kde_qt_dirs="$QTDIR /usr/lib/qt"
 
21995
fi
 
21996
 
 
21997
 
 
21998
 
 
21999
 
 
22000
     ac_ext=cc
 
22001
ac_cpp='$CXXCPP $CPPFLAGS'
 
22002
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22003
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22004
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22005
 
 
22006
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
22007
 
 
22008
 
 
22009
    ac_save_CXXFLAGS="$CXXFLAGS"
 
22010
    CXXFLAGS="`echo $CXXFLAGS | sed s/-fno-exceptions//`"
 
22011
 
 
22012
    echo "$as_me:$LINENO: checking if C++ programs can be compiled" >&5
 
22013
echo $ECHO_N "checking if C++ programs can be compiled... $ECHO_C" >&6
 
22014
    if test "${kde_cv_stl_works+set}" = set; then
 
22015
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22016
else
 
22017
 
 
22018
      cat >conftest.$ac_ext <<_ACEOF
 
22019
/* confdefs.h.  */
 
22020
_ACEOF
 
22021
cat confdefs.h >>conftest.$ac_ext
 
22022
cat >>conftest.$ac_ext <<_ACEOF
 
22023
/* end confdefs.h.  */
 
22024
 
 
22025
#include <string>
 
22026
using namespace std;
 
22027
 
 
22028
int
 
22029
main ()
 
22030
{
 
22031
 
 
22032
  string astring="Hallo Welt.";
 
22033
  astring.erase(0, 6); // now astring is "Welt"
 
22034
  return 0;
 
22035
 
 
22036
  ;
 
22037
  return 0;
 
22038
}
 
22039
_ACEOF
 
22040
rm -f conftest.$ac_objext
 
22041
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22042
  (eval $ac_compile) 2>conftest.er1
 
22043
  ac_status=$?
 
22044
  grep -v '^ *+' conftest.er1 >conftest.err
 
22045
  rm -f conftest.er1
 
22046
  cat conftest.err >&5
 
22047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22048
  (exit $ac_status); } &&
 
22049
         { ac_try='test -z "$ac_cxx_werror_flag"
 
22050
                         || test ! -s conftest.err'
 
22051
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22052
  (eval $ac_try) 2>&5
 
22053
  ac_status=$?
 
22054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22055
  (exit $ac_status); }; } &&
 
22056
         { ac_try='test -s conftest.$ac_objext'
 
22057
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22058
  (eval $ac_try) 2>&5
 
22059
  ac_status=$?
 
22060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22061
  (exit $ac_status); }; }; then
 
22062
  kde_cv_stl_works=yes
 
22063
else
 
22064
  echo "$as_me: failed program was:" >&5
 
22065
sed 's/^/| /' conftest.$ac_ext >&5
 
22066
 
 
22067
kde_cv_stl_works=no
 
22068
fi
 
22069
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22070
 
 
22071
fi
 
22072
 
 
22073
 
 
22074
   echo "$as_me:$LINENO: result: $kde_cv_stl_works" >&5
 
22075
echo "${ECHO_T}$kde_cv_stl_works" >&6
 
22076
 
 
22077
   if test "$kde_cv_stl_works" = "yes"; then
 
22078
     # back compatible
 
22079
 
 
22080
cat >>confdefs.h <<_ACEOF
 
22081
#define HAVE_SGI_STL 1
 
22082
_ACEOF
 
22083
 
 
22084
   else
 
22085
         { { echo "$as_me:$LINENO: error: Your Installation isn't able to compile simple C++ programs.
 
22086
Check config.log for details - if you're using a Linux distribution you might miss
 
22087
a package named similar to libstdc++-dev." >&5
 
22088
echo "$as_me: error: Your Installation isn't able to compile simple C++ programs.
 
22089
Check config.log for details - if you're using a Linux distribution you might miss
 
22090
a package named similar to libstdc++-dev." >&2;}
 
22091
   { (exit 1); exit 1; }; }
 
22092
   fi
 
22093
 
 
22094
   CXXFLAGS="$ac_save_CXXFLAGS"
 
22095
   ac_ext=c
 
22096
ac_cpp='$CPP $CPPFLAGS'
 
22097
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22098
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22099
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22100
 
 
22101
 
 
22102
 
 
22103
 
 
22104
echo "$as_me:$LINENO: checking for strlcat" >&5
 
22105
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
 
22106
if test "${kde_cv_func_strlcat+set}" = set; then
 
22107
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22108
else
 
22109
 
 
22110
 
 
22111
 
 
22112
 ac_ext=cc
 
22113
ac_cpp='$CXXCPP $CPPFLAGS'
 
22114
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22115
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22116
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22117
 
 
22118
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
22119
 
 
22120
 
 
22121
save_CXXFLAGS="$CXXFLAGS"
 
22122
kde_safe_LIBS="$LIBS"
 
22123
LIBS="$LIBS $X_EXTRA_LIBS"
 
22124
if test "$GXX" = "yes"; then
 
22125
CXXFLAGS="$CXXFLAGS -pedantic-errors"
 
22126
fi
 
22127
cat >conftest.$ac_ext <<_ACEOF
 
22128
/* confdefs.h.  */
 
22129
_ACEOF
 
22130
cat confdefs.h >>conftest.$ac_ext
 
22131
cat >>conftest.$ac_ext <<_ACEOF
 
22132
/* end confdefs.h.  */
 
22133
 
 
22134
 
 
22135
#include <string.h>
 
22136
 
 
22137
 
 
22138
int
 
22139
main ()
 
22140
{
 
22141
 
 
22142
 char buf[20];
 
22143
  buf[0]='\0';
 
22144
  strlcat(buf, "KDE function test", sizeof(buf));
 
22145
 
 
22146
 
 
22147
  ;
 
22148
  return 0;
 
22149
}
 
22150
_ACEOF
 
22151
rm -f conftest.$ac_objext
 
22152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22153
  (eval $ac_compile) 2>conftest.er1
 
22154
  ac_status=$?
 
22155
  grep -v '^ *+' conftest.er1 >conftest.err
 
22156
  rm -f conftest.er1
 
22157
  cat conftest.err >&5
 
22158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22159
  (exit $ac_status); } &&
 
22160
         { ac_try='test -z "$ac_cxx_werror_flag"
 
22161
                         || test ! -s conftest.err'
 
22162
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22163
  (eval $ac_try) 2>&5
 
22164
  ac_status=$?
 
22165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22166
  (exit $ac_status); }; } &&
 
22167
         { ac_try='test -s conftest.$ac_objext'
 
22168
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22169
  (eval $ac_try) 2>&5
 
22170
  ac_status=$?
 
22171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22172
  (exit $ac_status); }; }; then
 
22173
  kde_cv_func_strlcat=yes
 
22174
else
 
22175
  echo "$as_me: failed program was:" >&5
 
22176
sed 's/^/| /' conftest.$ac_ext >&5
 
22177
 
 
22178
kde_cv_func_strlcat=no
 
22179
fi
 
22180
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22181
CXXFLAGS="$save_CXXFLAGS"
 
22182
LIBS="$kde_safe_LIBS"
 
22183
ac_ext=c
 
22184
ac_cpp='$CPP $CPPFLAGS'
 
22185
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22186
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22187
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22188
 
 
22189
 
 
22190
fi
 
22191
 
 
22192
 
 
22193
echo "$as_me:$LINENO: result: $kde_cv_func_strlcat" >&5
 
22194
echo "${ECHO_T}$kde_cv_func_strlcat" >&6
 
22195
 
 
22196
echo "$as_me:$LINENO: checking if strlcat needs custom prototype" >&5
 
22197
echo $ECHO_N "checking if strlcat needs custom prototype... $ECHO_C" >&6
 
22198
if test "${kde_cv_proto_strlcat+set}" = set; then
 
22199
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22200
else
 
22201
 
 
22202
if test "x$kde_cv_func_strlcat" = xyes; then
 
22203
  kde_cv_proto_strlcat=no
 
22204
else
 
22205
  case "strlcat" in
 
22206
        setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
 
22207
                kde_cv_proto_strlcat="yes - in libkdefakes"
 
22208
                ;;
 
22209
        *)
 
22210
                kde_cv_proto_strlcat=unknown
 
22211
                ;;
 
22212
  esac
 
22213
fi
 
22214
 
 
22215
if test "x$kde_cv_proto_strlcat" = xunknown; then
 
22216
 
 
22217
 
 
22218
 
 
22219
 ac_ext=cc
 
22220
ac_cpp='$CXXCPP $CPPFLAGS'
 
22221
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22222
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22223
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22224
 
 
22225
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
22226
 
 
22227
 
 
22228
  kde_safe_libs=$LIBS
 
22229
  LIBS="$LIBS $X_EXTRA_LIBS"
 
22230
  cat >conftest.$ac_ext <<_ACEOF
 
22231
/* confdefs.h.  */
 
22232
_ACEOF
 
22233
cat confdefs.h >>conftest.$ac_ext
 
22234
cat >>conftest.$ac_ext <<_ACEOF
 
22235
/* end confdefs.h.  */
 
22236
 
 
22237
 
 
22238
#include <string.h>
 
22239
 
 
22240
 
 
22241
extern "C" unsigned long strlcat(char*, const char*, unsigned long);
 
22242
 
 
22243
int
 
22244
main ()
 
22245
{
 
22246
 
 
22247
 char buf[20];
 
22248
  buf[0]='\0';
 
22249
  strlcat(buf, "KDE function test", sizeof(buf));
 
22250
 
 
22251
 
 
22252
  ;
 
22253
  return 0;
 
22254
}
 
22255
_ACEOF
 
22256
rm -f conftest.$ac_objext conftest$ac_exeext
 
22257
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22258
  (eval $ac_link) 2>conftest.er1
 
22259
  ac_status=$?
 
22260
  grep -v '^ *+' conftest.er1 >conftest.err
 
22261
  rm -f conftest.er1
 
22262
  cat conftest.err >&5
 
22263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22264
  (exit $ac_status); } &&
 
22265
         { ac_try='test -z "$ac_cxx_werror_flag"
 
22266
                         || test ! -s conftest.err'
 
22267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22268
  (eval $ac_try) 2>&5
 
22269
  ac_status=$?
 
22270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22271
  (exit $ac_status); }; } &&
 
22272
         { ac_try='test -s conftest$ac_exeext'
 
22273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22274
  (eval $ac_try) 2>&5
 
22275
  ac_status=$?
 
22276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22277
  (exit $ac_status); }; }; then
 
22278
   kde_cv_func_strlcat=yes
 
22279
  kde_cv_proto_strlcat=yes
 
22280
else
 
22281
  echo "$as_me: failed program was:" >&5
 
22282
sed 's/^/| /' conftest.$ac_ext >&5
 
22283
 
 
22284
kde_cv_proto_strlcat="strlcat unavailable"
 
22285
 
 
22286
fi
 
22287
rm -f conftest.err conftest.$ac_objext \
 
22288
      conftest$ac_exeext conftest.$ac_ext
 
22289
LIBS=$kde_safe_libs
 
22290
ac_ext=c
 
22291
ac_cpp='$CPP $CPPFLAGS'
 
22292
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22293
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22294
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22295
 
 
22296
fi
 
22297
 
 
22298
fi
 
22299
 
 
22300
echo "$as_me:$LINENO: result: $kde_cv_proto_strlcat" >&5
 
22301
echo "${ECHO_T}$kde_cv_proto_strlcat" >&6
 
22302
 
 
22303
if test "x$kde_cv_func_strlcat" = xyes; then
 
22304
 
 
22305
cat >>confdefs.h <<\_ACEOF
 
22306
#define HAVE_STRLCAT 1
 
22307
_ACEOF
 
22308
 
 
22309
 
 
22310
fi
 
22311
if test "x$kde_cv_proto_strlcat" = xno; then
 
22312
 
 
22313
cat >>confdefs.h <<\_ACEOF
 
22314
#define HAVE_STRLCAT_PROTO 1
 
22315
_ACEOF
 
22316
 
 
22317
fi
 
22318
 
 
22319
 
 
22320
 
 
22321
 
 
22322
 
 
22323
 
 
22324
 
 
22325
echo "$as_me:$LINENO: checking for strlcpy" >&5
 
22326
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
 
22327
if test "${kde_cv_func_strlcpy+set}" = set; then
 
22328
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22329
else
 
22330
 
 
22331
 
 
22332
 
 
22333
 ac_ext=cc
 
22334
ac_cpp='$CXXCPP $CPPFLAGS'
 
22335
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22336
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22337
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22338
 
 
22339
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
22340
 
 
22341
 
 
22342
save_CXXFLAGS="$CXXFLAGS"
 
22343
kde_safe_LIBS="$LIBS"
 
22344
LIBS="$LIBS $X_EXTRA_LIBS"
 
22345
if test "$GXX" = "yes"; then
 
22346
CXXFLAGS="$CXXFLAGS -pedantic-errors"
 
22347
fi
 
22348
cat >conftest.$ac_ext <<_ACEOF
 
22349
/* confdefs.h.  */
 
22350
_ACEOF
 
22351
cat confdefs.h >>conftest.$ac_ext
 
22352
cat >>conftest.$ac_ext <<_ACEOF
 
22353
/* end confdefs.h.  */
 
22354
 
 
22355
 
 
22356
#include <string.h>
 
22357
 
 
22358
 
 
22359
int
 
22360
main ()
 
22361
{
 
22362
 
 
22363
 char buf[20];
 
22364
  strlcpy(buf, "KDE function test", sizeof(buf));
 
22365
 
 
22366
 
 
22367
  ;
 
22368
  return 0;
 
22369
}
 
22370
_ACEOF
 
22371
rm -f conftest.$ac_objext
 
22372
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22373
  (eval $ac_compile) 2>conftest.er1
 
22374
  ac_status=$?
 
22375
  grep -v '^ *+' conftest.er1 >conftest.err
 
22376
  rm -f conftest.er1
 
22377
  cat conftest.err >&5
 
22378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22379
  (exit $ac_status); } &&
 
22380
         { ac_try='test -z "$ac_cxx_werror_flag"
 
22381
                         || test ! -s conftest.err'
 
22382
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22383
  (eval $ac_try) 2>&5
 
22384
  ac_status=$?
 
22385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22386
  (exit $ac_status); }; } &&
 
22387
         { ac_try='test -s conftest.$ac_objext'
 
22388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22389
  (eval $ac_try) 2>&5
 
22390
  ac_status=$?
 
22391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22392
  (exit $ac_status); }; }; then
 
22393
  kde_cv_func_strlcpy=yes
 
22394
else
 
22395
  echo "$as_me: failed program was:" >&5
 
22396
sed 's/^/| /' conftest.$ac_ext >&5
 
22397
 
 
22398
kde_cv_func_strlcpy=no
 
22399
fi
 
22400
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22401
CXXFLAGS="$save_CXXFLAGS"
 
22402
LIBS="$kde_safe_LIBS"
 
22403
ac_ext=c
 
22404
ac_cpp='$CPP $CPPFLAGS'
 
22405
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22406
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22407
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22408
 
 
22409
 
 
22410
fi
 
22411
 
 
22412
 
 
22413
echo "$as_me:$LINENO: result: $kde_cv_func_strlcpy" >&5
 
22414
echo "${ECHO_T}$kde_cv_func_strlcpy" >&6
 
22415
 
 
22416
echo "$as_me:$LINENO: checking if strlcpy needs custom prototype" >&5
 
22417
echo $ECHO_N "checking if strlcpy needs custom prototype... $ECHO_C" >&6
 
22418
if test "${kde_cv_proto_strlcpy+set}" = set; then
 
22419
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22420
else
 
22421
 
 
22422
if test "x$kde_cv_func_strlcpy" = xyes; then
 
22423
  kde_cv_proto_strlcpy=no
 
22424
else
 
22425
  case "strlcpy" in
 
22426
        setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
 
22427
                kde_cv_proto_strlcpy="yes - in libkdefakes"
 
22428
                ;;
 
22429
        *)
 
22430
                kde_cv_proto_strlcpy=unknown
 
22431
                ;;
 
22432
  esac
 
22433
fi
 
22434
 
 
22435
if test "x$kde_cv_proto_strlcpy" = xunknown; then
 
22436
 
 
22437
 
 
22438
 
 
22439
 ac_ext=cc
 
22440
ac_cpp='$CXXCPP $CPPFLAGS'
 
22441
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22442
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22443
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22444
 
 
22445
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
22446
 
 
22447
 
 
22448
  kde_safe_libs=$LIBS
 
22449
  LIBS="$LIBS $X_EXTRA_LIBS"
 
22450
  cat >conftest.$ac_ext <<_ACEOF
 
22451
/* confdefs.h.  */
 
22452
_ACEOF
 
22453
cat confdefs.h >>conftest.$ac_ext
 
22454
cat >>conftest.$ac_ext <<_ACEOF
 
22455
/* end confdefs.h.  */
 
22456
 
 
22457
 
 
22458
#include <string.h>
 
22459
 
 
22460
 
 
22461
extern "C" unsigned long strlcpy(char*, const char*, unsigned long);
 
22462
 
 
22463
int
 
22464
main ()
 
22465
{
 
22466
 
 
22467
 char buf[20];
 
22468
  strlcpy(buf, "KDE function test", sizeof(buf));
 
22469
 
 
22470
 
 
22471
  ;
 
22472
  return 0;
 
22473
}
 
22474
_ACEOF
 
22475
rm -f conftest.$ac_objext conftest$ac_exeext
 
22476
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22477
  (eval $ac_link) 2>conftest.er1
 
22478
  ac_status=$?
 
22479
  grep -v '^ *+' conftest.er1 >conftest.err
 
22480
  rm -f conftest.er1
 
22481
  cat conftest.err >&5
 
22482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22483
  (exit $ac_status); } &&
 
22484
         { ac_try='test -z "$ac_cxx_werror_flag"
 
22485
                         || test ! -s conftest.err'
 
22486
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22487
  (eval $ac_try) 2>&5
 
22488
  ac_status=$?
 
22489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22490
  (exit $ac_status); }; } &&
 
22491
         { ac_try='test -s conftest$ac_exeext'
 
22492
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22493
  (eval $ac_try) 2>&5
 
22494
  ac_status=$?
 
22495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22496
  (exit $ac_status); }; }; then
 
22497
   kde_cv_func_strlcpy=yes
 
22498
  kde_cv_proto_strlcpy=yes
 
22499
else
 
22500
  echo "$as_me: failed program was:" >&5
 
22501
sed 's/^/| /' conftest.$ac_ext >&5
 
22502
 
 
22503
kde_cv_proto_strlcpy="strlcpy unavailable"
 
22504
 
 
22505
fi
 
22506
rm -f conftest.err conftest.$ac_objext \
 
22507
      conftest$ac_exeext conftest.$ac_ext
 
22508
LIBS=$kde_safe_libs
 
22509
ac_ext=c
 
22510
ac_cpp='$CPP $CPPFLAGS'
 
22511
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22512
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22513
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22514
 
 
22515
fi
 
22516
 
 
22517
fi
 
22518
 
 
22519
echo "$as_me:$LINENO: result: $kde_cv_proto_strlcpy" >&5
 
22520
echo "${ECHO_T}$kde_cv_proto_strlcpy" >&6
 
22521
 
 
22522
if test "x$kde_cv_func_strlcpy" = xyes; then
 
22523
 
 
22524
cat >>confdefs.h <<\_ACEOF
 
22525
#define HAVE_STRLCPY 1
 
22526
_ACEOF
 
22527
 
 
22528
 
 
22529
fi
 
22530
if test "x$kde_cv_proto_strlcpy" = xno; then
 
22531
 
 
22532
cat >>confdefs.h <<\_ACEOF
 
22533
#define HAVE_STRLCPY_PROTO 1
 
22534
_ACEOF
 
22535
 
 
22536
fi
 
22537
 
 
22538
 
 
22539
 
 
22540
 
 
22541
 
 
22542
 
 
22543
      echo "$as_me:$LINENO: checking for main in -lutil" >&5
 
22544
echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6
 
22545
if test "${ac_cv_lib_util_main+set}" = set; then
 
22546
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22547
else
 
22548
  ac_check_lib_save_LIBS=$LIBS
 
22549
LIBS="-lutil  $LIBS"
 
22550
cat >conftest.$ac_ext <<_ACEOF
 
22551
/* confdefs.h.  */
 
22552
_ACEOF
 
22553
cat confdefs.h >>conftest.$ac_ext
 
22554
cat >>conftest.$ac_ext <<_ACEOF
 
22555
/* end confdefs.h.  */
 
22556
 
 
22557
 
 
22558
int
 
22559
main ()
 
22560
{
 
22561
main ();
 
22562
  ;
 
22563
  return 0;
 
22564
}
 
22565
_ACEOF
 
22566
rm -f conftest.$ac_objext conftest$ac_exeext
 
22567
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22568
  (eval $ac_link) 2>conftest.er1
 
22569
  ac_status=$?
 
22570
  grep -v '^ *+' conftest.er1 >conftest.err
 
22571
  rm -f conftest.er1
 
22572
  cat conftest.err >&5
 
22573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22574
  (exit $ac_status); } &&
 
22575
         { ac_try='test -z "$ac_c_werror_flag"
 
22576
                         || test ! -s conftest.err'
 
22577
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22578
  (eval $ac_try) 2>&5
 
22579
  ac_status=$?
 
22580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22581
  (exit $ac_status); }; } &&
 
22582
         { ac_try='test -s conftest$ac_exeext'
 
22583
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22584
  (eval $ac_try) 2>&5
 
22585
  ac_status=$?
 
22586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22587
  (exit $ac_status); }; }; then
 
22588
  ac_cv_lib_util_main=yes
 
22589
else
 
22590
  echo "$as_me: failed program was:" >&5
 
22591
sed 's/^/| /' conftest.$ac_ext >&5
 
22592
 
 
22593
ac_cv_lib_util_main=no
 
22594
fi
 
22595
rm -f conftest.err conftest.$ac_objext \
 
22596
      conftest$ac_exeext conftest.$ac_ext
 
22597
LIBS=$ac_check_lib_save_LIBS
 
22598
fi
 
22599
echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
 
22600
echo "${ECHO_T}$ac_cv_lib_util_main" >&6
 
22601
if test $ac_cv_lib_util_main = yes; then
 
22602
  LIBUTIL="-lutil"
 
22603
fi
 
22604
 
 
22605
   echo "$as_me:$LINENO: checking for main in -lcompat" >&5
 
22606
echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
 
22607
if test "${ac_cv_lib_compat_main+set}" = set; then
 
22608
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22609
else
 
22610
  ac_check_lib_save_LIBS=$LIBS
 
22611
LIBS="-lcompat  $LIBS"
 
22612
cat >conftest.$ac_ext <<_ACEOF
 
22613
/* confdefs.h.  */
 
22614
_ACEOF
 
22615
cat confdefs.h >>conftest.$ac_ext
 
22616
cat >>conftest.$ac_ext <<_ACEOF
 
22617
/* end confdefs.h.  */
 
22618
 
 
22619
 
 
22620
int
 
22621
main ()
 
22622
{
 
22623
main ();
 
22624
  ;
 
22625
  return 0;
 
22626
}
 
22627
_ACEOF
 
22628
rm -f conftest.$ac_objext conftest$ac_exeext
 
22629
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22630
  (eval $ac_link) 2>conftest.er1
 
22631
  ac_status=$?
 
22632
  grep -v '^ *+' conftest.er1 >conftest.err
 
22633
  rm -f conftest.er1
 
22634
  cat conftest.err >&5
 
22635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22636
  (exit $ac_status); } &&
 
22637
         { ac_try='test -z "$ac_c_werror_flag"
 
22638
                         || test ! -s conftest.err'
 
22639
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22640
  (eval $ac_try) 2>&5
 
22641
  ac_status=$?
 
22642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22643
  (exit $ac_status); }; } &&
 
22644
         { ac_try='test -s conftest$ac_exeext'
 
22645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22646
  (eval $ac_try) 2>&5
 
22647
  ac_status=$?
 
22648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22649
  (exit $ac_status); }; }; then
 
22650
  ac_cv_lib_compat_main=yes
 
22651
else
 
22652
  echo "$as_me: failed program was:" >&5
 
22653
sed 's/^/| /' conftest.$ac_ext >&5
 
22654
 
 
22655
ac_cv_lib_compat_main=no
 
22656
fi
 
22657
rm -f conftest.err conftest.$ac_objext \
 
22658
      conftest$ac_exeext conftest.$ac_ext
 
22659
LIBS=$ac_check_lib_save_LIBS
 
22660
fi
 
22661
echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
 
22662
echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
 
22663
if test $ac_cv_lib_compat_main = yes; then
 
22664
  LIBCOMPAT="-lcompat"
 
22665
fi
 
22666
 
 
22667
   kde_have_crypt=
 
22668
   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
 
22669
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
 
22670
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
 
22671
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22672
else
 
22673
  ac_check_lib_save_LIBS=$LIBS
 
22674
LIBS="-lcrypt  $LIBS"
 
22675
cat >conftest.$ac_ext <<_ACEOF
 
22676
/* confdefs.h.  */
 
22677
_ACEOF
 
22678
cat confdefs.h >>conftest.$ac_ext
 
22679
cat >>conftest.$ac_ext <<_ACEOF
 
22680
/* end confdefs.h.  */
 
22681
 
 
22682
/* Override any gcc2 internal prototype to avoid an error.  */
 
22683
#ifdef __cplusplus
 
22684
extern "C"
 
22685
#endif
 
22686
/* We use char because int might match the return type of a gcc2
 
22687
   builtin and then its argument prototype would still apply.  */
 
22688
char crypt ();
 
22689
int
 
22690
main ()
 
22691
{
 
22692
crypt ();
 
22693
  ;
 
22694
  return 0;
 
22695
}
 
22696
_ACEOF
 
22697
rm -f conftest.$ac_objext conftest$ac_exeext
 
22698
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22699
  (eval $ac_link) 2>conftest.er1
 
22700
  ac_status=$?
 
22701
  grep -v '^ *+' conftest.er1 >conftest.err
 
22702
  rm -f conftest.er1
 
22703
  cat conftest.err >&5
 
22704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22705
  (exit $ac_status); } &&
 
22706
         { ac_try='test -z "$ac_c_werror_flag"
 
22707
                         || test ! -s conftest.err'
 
22708
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22709
  (eval $ac_try) 2>&5
 
22710
  ac_status=$?
 
22711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22712
  (exit $ac_status); }; } &&
 
22713
         { ac_try='test -s conftest$ac_exeext'
 
22714
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22715
  (eval $ac_try) 2>&5
 
22716
  ac_status=$?
 
22717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22718
  (exit $ac_status); }; }; then
 
22719
  ac_cv_lib_crypt_crypt=yes
 
22720
else
 
22721
  echo "$as_me: failed program was:" >&5
 
22722
sed 's/^/| /' conftest.$ac_ext >&5
 
22723
 
 
22724
ac_cv_lib_crypt_crypt=no
 
22725
fi
 
22726
rm -f conftest.err conftest.$ac_objext \
 
22727
      conftest$ac_exeext conftest.$ac_ext
 
22728
LIBS=$ac_check_lib_save_LIBS
 
22729
fi
 
22730
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
 
22731
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
 
22732
if test $ac_cv_lib_crypt_crypt = yes; then
 
22733
  LIBCRYPT="-lcrypt"; kde_have_crypt=yes
 
22734
else
 
22735
  echo "$as_me:$LINENO: checking for crypt in -lc" >&5
 
22736
echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
 
22737
if test "${ac_cv_lib_c_crypt+set}" = set; then
 
22738
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22739
else
 
22740
  ac_check_lib_save_LIBS=$LIBS
 
22741
LIBS="-lc  $LIBS"
 
22742
cat >conftest.$ac_ext <<_ACEOF
 
22743
/* confdefs.h.  */
 
22744
_ACEOF
 
22745
cat confdefs.h >>conftest.$ac_ext
 
22746
cat >>conftest.$ac_ext <<_ACEOF
 
22747
/* end confdefs.h.  */
 
22748
 
 
22749
/* Override any gcc2 internal prototype to avoid an error.  */
 
22750
#ifdef __cplusplus
 
22751
extern "C"
 
22752
#endif
 
22753
/* We use char because int might match the return type of a gcc2
 
22754
   builtin and then its argument prototype would still apply.  */
 
22755
char crypt ();
 
22756
int
 
22757
main ()
 
22758
{
 
22759
crypt ();
 
22760
  ;
 
22761
  return 0;
 
22762
}
 
22763
_ACEOF
 
22764
rm -f conftest.$ac_objext conftest$ac_exeext
 
22765
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22766
  (eval $ac_link) 2>conftest.er1
 
22767
  ac_status=$?
 
22768
  grep -v '^ *+' conftest.er1 >conftest.err
 
22769
  rm -f conftest.er1
 
22770
  cat conftest.err >&5
 
22771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22772
  (exit $ac_status); } &&
 
22773
         { ac_try='test -z "$ac_c_werror_flag"
 
22774
                         || test ! -s conftest.err'
 
22775
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22776
  (eval $ac_try) 2>&5
 
22777
  ac_status=$?
 
22778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22779
  (exit $ac_status); }; } &&
 
22780
         { ac_try='test -s conftest$ac_exeext'
 
22781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22782
  (eval $ac_try) 2>&5
 
22783
  ac_status=$?
 
22784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22785
  (exit $ac_status); }; }; then
 
22786
  ac_cv_lib_c_crypt=yes
 
22787
else
 
22788
  echo "$as_me: failed program was:" >&5
 
22789
sed 's/^/| /' conftest.$ac_ext >&5
 
22790
 
 
22791
ac_cv_lib_c_crypt=no
 
22792
fi
 
22793
rm -f conftest.err conftest.$ac_objext \
 
22794
      conftest$ac_exeext conftest.$ac_ext
 
22795
LIBS=$ac_check_lib_save_LIBS
 
22796
fi
 
22797
echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
 
22798
echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
 
22799
if test $ac_cv_lib_c_crypt = yes; then
 
22800
  kde_have_crypt=yes
 
22801
else
 
22802
 
 
22803
        { echo "$as_me:$LINENO: WARNING: you have no crypt in either libcrypt or libc.
 
22804
You should install libcrypt from another source or configure with PAM
 
22805
support" >&5
 
22806
echo "$as_me: WARNING: you have no crypt in either libcrypt or libc.
 
22807
You should install libcrypt from another source or configure with PAM
 
22808
support" >&2;}
 
22809
        kde_have_crypt=no
 
22810
 
 
22811
fi
 
22812
 
 
22813
fi
 
22814
 
 
22815
 
 
22816
   if test $kde_have_crypt = yes; then
 
22817
 
 
22818
cat >>confdefs.h <<_ACEOF
 
22819
#define HAVE_CRYPT 1
 
22820
_ACEOF
 
22821
 
 
22822
   fi
 
22823
 
 
22824
   echo "$as_me:$LINENO: checking for socklen_t" >&5
 
22825
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
 
22826
   if test "${kde_cv_socklen_t+set}" = set; then
 
22827
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22828
else
 
22829
 
 
22830
      ac_ext=cc
 
22831
ac_cpp='$CXXCPP $CPPFLAGS'
 
22832
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22833
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22834
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22835
 
 
22836
      kde_cv_socklen_t=no
 
22837
      cat >conftest.$ac_ext <<_ACEOF
 
22838
/* confdefs.h.  */
 
22839
_ACEOF
 
22840
cat confdefs.h >>conftest.$ac_ext
 
22841
cat >>conftest.$ac_ext <<_ACEOF
 
22842
/* end confdefs.h.  */
 
22843
 
 
22844
         #include <sys/types.h>
 
22845
         #include <sys/socket.h>
 
22846
 
 
22847
int
 
22848
main ()
 
22849
{
 
22850
 
 
22851
         socklen_t len;
 
22852
         getpeername(0,0,&len);
 
22853
 
 
22854
  ;
 
22855
  return 0;
 
22856
}
 
22857
_ACEOF
 
22858
rm -f conftest.$ac_objext
 
22859
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22860
  (eval $ac_compile) 2>conftest.er1
 
22861
  ac_status=$?
 
22862
  grep -v '^ *+' conftest.er1 >conftest.err
 
22863
  rm -f conftest.er1
 
22864
  cat conftest.err >&5
 
22865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22866
  (exit $ac_status); } &&
 
22867
         { ac_try='test -z "$ac_cxx_werror_flag"
 
22868
                         || test ! -s conftest.err'
 
22869
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22870
  (eval $ac_try) 2>&5
 
22871
  ac_status=$?
 
22872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22873
  (exit $ac_status); }; } &&
 
22874
         { ac_try='test -s conftest.$ac_objext'
 
22875
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22876
  (eval $ac_try) 2>&5
 
22877
  ac_status=$?
 
22878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22879
  (exit $ac_status); }; }; then
 
22880
 
 
22881
         kde_cv_socklen_t=yes
 
22882
         kde_cv_socklen_t_equiv=socklen_t
 
22883
 
 
22884
else
 
22885
  echo "$as_me: failed program was:" >&5
 
22886
sed 's/^/| /' conftest.$ac_ext >&5
 
22887
 
 
22888
fi
 
22889
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22890
      ac_ext=c
 
22891
ac_cpp='$CPP $CPPFLAGS'
 
22892
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22893
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22894
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22895
 
 
22896
 
 
22897
fi
 
22898
 
 
22899
   echo "$as_me:$LINENO: result: $kde_cv_socklen_t" >&5
 
22900
echo "${ECHO_T}$kde_cv_socklen_t" >&6
 
22901
   if test $kde_cv_socklen_t = no; then
 
22902
      echo "$as_me:$LINENO: checking for socklen_t equivalent for socket functions" >&5
 
22903
echo $ECHO_N "checking for socklen_t equivalent for socket functions... $ECHO_C" >&6
 
22904
      if test "${kde_cv_socklen_t_equiv+set}" = set; then
 
22905
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22906
else
 
22907
 
 
22908
         kde_cv_socklen_t_equiv=int
 
22909
         ac_ext=cc
 
22910
ac_cpp='$CXXCPP $CPPFLAGS'
 
22911
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22912
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22913
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22914
 
 
22915
         for t in int size_t unsigned long "unsigned long"; do
 
22916
            cat >conftest.$ac_ext <<_ACEOF
 
22917
/* confdefs.h.  */
 
22918
_ACEOF
 
22919
cat confdefs.h >>conftest.$ac_ext
 
22920
cat >>conftest.$ac_ext <<_ACEOF
 
22921
/* end confdefs.h.  */
 
22922
 
 
22923
               #include <sys/types.h>
 
22924
               #include <sys/socket.h>
 
22925
 
 
22926
int
 
22927
main ()
 
22928
{
 
22929
 
 
22930
               $t len;
 
22931
               getpeername(0,0,&len);
 
22932
 
 
22933
  ;
 
22934
  return 0;
 
22935
}
 
22936
_ACEOF
 
22937
rm -f conftest.$ac_objext
 
22938
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22939
  (eval $ac_compile) 2>conftest.er1
 
22940
  ac_status=$?
 
22941
  grep -v '^ *+' conftest.er1 >conftest.err
 
22942
  rm -f conftest.er1
 
22943
  cat conftest.err >&5
 
22944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22945
  (exit $ac_status); } &&
 
22946
         { ac_try='test -z "$ac_cxx_werror_flag"
 
22947
                         || test ! -s conftest.err'
 
22948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22949
  (eval $ac_try) 2>&5
 
22950
  ac_status=$?
 
22951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22952
  (exit $ac_status); }; } &&
 
22953
         { ac_try='test -s conftest.$ac_objext'
 
22954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22955
  (eval $ac_try) 2>&5
 
22956
  ac_status=$?
 
22957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22958
  (exit $ac_status); }; }; then
 
22959
 
 
22960
               kde_cv_socklen_t_equiv="$t"
 
22961
               break
 
22962
 
 
22963
else
 
22964
  echo "$as_me: failed program was:" >&5
 
22965
sed 's/^/| /' conftest.$ac_ext >&5
 
22966
 
 
22967
fi
 
22968
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22969
         done
 
22970
         ac_ext=c
 
22971
ac_cpp='$CPP $CPPFLAGS'
 
22972
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22973
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22974
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22975
 
 
22976
 
 
22977
fi
 
22978
 
 
22979
      echo "$as_me:$LINENO: result: $kde_cv_socklen_t_equiv" >&5
 
22980
echo "${ECHO_T}$kde_cv_socklen_t_equiv" >&6
 
22981
   fi
 
22982
 
 
22983
cat >>confdefs.h <<_ACEOF
 
22984
#define kde_socklen_t $kde_cv_socklen_t_equiv
 
22985
_ACEOF
 
22986
 
 
22987
 
 
22988
cat >>confdefs.h <<_ACEOF
 
22989
#define ksize_t $kde_cv_socklen_t_equiv
 
22990
_ACEOF
 
22991
 
 
22992
 
 
22993
   echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
 
22994
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
 
22995
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
 
22996
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22997
else
 
22998
  ac_check_lib_save_LIBS=$LIBS
 
22999
LIBS="-ldnet  $LIBS"
 
23000
cat >conftest.$ac_ext <<_ACEOF
 
23001
/* confdefs.h.  */
 
23002
_ACEOF
 
23003
cat confdefs.h >>conftest.$ac_ext
 
23004
cat >>conftest.$ac_ext <<_ACEOF
 
23005
/* end confdefs.h.  */
 
23006
 
 
23007
/* Override any gcc2 internal prototype to avoid an error.  */
 
23008
#ifdef __cplusplus
 
23009
extern "C"
 
23010
#endif
 
23011
/* We use char because int might match the return type of a gcc2
 
23012
   builtin and then its argument prototype would still apply.  */
 
23013
char dnet_ntoa ();
 
23014
int
 
23015
main ()
 
23016
{
 
23017
dnet_ntoa ();
 
23018
  ;
 
23019
  return 0;
 
23020
}
 
23021
_ACEOF
 
23022
rm -f conftest.$ac_objext conftest$ac_exeext
 
23023
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23024
  (eval $ac_link) 2>conftest.er1
 
23025
  ac_status=$?
 
23026
  grep -v '^ *+' conftest.er1 >conftest.err
 
23027
  rm -f conftest.er1
 
23028
  cat conftest.err >&5
 
23029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23030
  (exit $ac_status); } &&
 
23031
         { ac_try='test -z "$ac_c_werror_flag"
 
23032
                         || test ! -s conftest.err'
 
23033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23034
  (eval $ac_try) 2>&5
 
23035
  ac_status=$?
 
23036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23037
  (exit $ac_status); }; } &&
 
23038
         { ac_try='test -s conftest$ac_exeext'
 
23039
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23040
  (eval $ac_try) 2>&5
 
23041
  ac_status=$?
 
23042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23043
  (exit $ac_status); }; }; then
 
23044
  ac_cv_lib_dnet_dnet_ntoa=yes
 
23045
else
 
23046
  echo "$as_me: failed program was:" >&5
 
23047
sed 's/^/| /' conftest.$ac_ext >&5
 
23048
 
 
23049
ac_cv_lib_dnet_dnet_ntoa=no
 
23050
fi
 
23051
rm -f conftest.err conftest.$ac_objext \
 
23052
      conftest$ac_exeext conftest.$ac_ext
 
23053
LIBS=$ac_check_lib_save_LIBS
 
23054
fi
 
23055
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
23056
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
 
23057
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
 
23058
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 
23059
fi
 
23060
 
 
23061
   if test $ac_cv_lib_dnet_dnet_ntoa = no; then
 
23062
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
 
23063
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
 
23064
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
 
23065
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23066
else
 
23067
  ac_check_lib_save_LIBS=$LIBS
 
23068
LIBS="-ldnet_stub  $LIBS"
 
23069
cat >conftest.$ac_ext <<_ACEOF
 
23070
/* confdefs.h.  */
 
23071
_ACEOF
 
23072
cat confdefs.h >>conftest.$ac_ext
 
23073
cat >>conftest.$ac_ext <<_ACEOF
 
23074
/* end confdefs.h.  */
 
23075
 
 
23076
/* Override any gcc2 internal prototype to avoid an error.  */
 
23077
#ifdef __cplusplus
 
23078
extern "C"
 
23079
#endif
 
23080
/* We use char because int might match the return type of a gcc2
 
23081
   builtin and then its argument prototype would still apply.  */
 
23082
char dnet_ntoa ();
 
23083
int
 
23084
main ()
 
23085
{
 
23086
dnet_ntoa ();
 
23087
  ;
 
23088
  return 0;
 
23089
}
 
23090
_ACEOF
 
23091
rm -f conftest.$ac_objext conftest$ac_exeext
 
23092
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23093
  (eval $ac_link) 2>conftest.er1
 
23094
  ac_status=$?
 
23095
  grep -v '^ *+' conftest.er1 >conftest.err
 
23096
  rm -f conftest.er1
 
23097
  cat conftest.err >&5
 
23098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23099
  (exit $ac_status); } &&
 
23100
         { ac_try='test -z "$ac_c_werror_flag"
 
23101
                         || test ! -s conftest.err'
 
23102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23103
  (eval $ac_try) 2>&5
 
23104
  ac_status=$?
 
23105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23106
  (exit $ac_status); }; } &&
 
23107
         { ac_try='test -s conftest$ac_exeext'
 
23108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23109
  (eval $ac_try) 2>&5
 
23110
  ac_status=$?
 
23111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23112
  (exit $ac_status); }; }; then
 
23113
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 
23114
else
 
23115
  echo "$as_me: failed program was:" >&5
 
23116
sed 's/^/| /' conftest.$ac_ext >&5
 
23117
 
 
23118
ac_cv_lib_dnet_stub_dnet_ntoa=no
 
23119
fi
 
23120
rm -f conftest.err conftest.$ac_objext \
 
23121
      conftest$ac_exeext conftest.$ac_ext
 
23122
LIBS=$ac_check_lib_save_LIBS
 
23123
fi
 
23124
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
23125
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
 
23126
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
 
23127
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 
23128
fi
 
23129
 
 
23130
   fi
 
23131
   echo "$as_me:$LINENO: checking for inet_ntoa" >&5
 
23132
echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6
 
23133
if test "${ac_cv_func_inet_ntoa+set}" = set; then
 
23134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23135
else
 
23136
  cat >conftest.$ac_ext <<_ACEOF
 
23137
/* confdefs.h.  */
 
23138
_ACEOF
 
23139
cat confdefs.h >>conftest.$ac_ext
 
23140
cat >>conftest.$ac_ext <<_ACEOF
 
23141
/* end confdefs.h.  */
 
23142
/* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa.
 
23143
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23144
#define inet_ntoa innocuous_inet_ntoa
 
23145
 
 
23146
/* System header to define __stub macros and hopefully few prototypes,
 
23147
    which can conflict with char inet_ntoa (); below.
 
23148
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23149
    <limits.h> exists even on freestanding compilers.  */
 
23150
 
 
23151
#ifdef __STDC__
 
23152
# include <limits.h>
 
23153
#else
 
23154
# include <assert.h>
 
23155
#endif
 
23156
 
 
23157
#undef inet_ntoa
 
23158
 
 
23159
/* Override any gcc2 internal prototype to avoid an error.  */
 
23160
#ifdef __cplusplus
 
23161
extern "C"
 
23162
{
 
23163
#endif
 
23164
/* We use char because int might match the return type of a gcc2
 
23165
   builtin and then its argument prototype would still apply.  */
 
23166
char inet_ntoa ();
 
23167
/* The GNU C library defines this for functions which it implements
 
23168
    to always fail with ENOSYS.  Some functions are actually named
 
23169
    something starting with __ and the normal name is an alias.  */
 
23170
#if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
 
23171
choke me
 
23172
#else
 
23173
char (*f) () = inet_ntoa;
 
23174
#endif
 
23175
#ifdef __cplusplus
 
23176
}
 
23177
#endif
 
23178
 
 
23179
int
 
23180
main ()
 
23181
{
 
23182
return f != inet_ntoa;
 
23183
  ;
 
23184
  return 0;
 
23185
}
 
23186
_ACEOF
 
23187
rm -f conftest.$ac_objext conftest$ac_exeext
 
23188
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23189
  (eval $ac_link) 2>conftest.er1
 
23190
  ac_status=$?
 
23191
  grep -v '^ *+' conftest.er1 >conftest.err
 
23192
  rm -f conftest.er1
 
23193
  cat conftest.err >&5
 
23194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23195
  (exit $ac_status); } &&
 
23196
         { ac_try='test -z "$ac_c_werror_flag"
 
23197
                         || test ! -s conftest.err'
 
23198
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23199
  (eval $ac_try) 2>&5
 
23200
  ac_status=$?
 
23201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23202
  (exit $ac_status); }; } &&
 
23203
         { ac_try='test -s conftest$ac_exeext'
 
23204
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23205
  (eval $ac_try) 2>&5
 
23206
  ac_status=$?
 
23207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23208
  (exit $ac_status); }; }; then
 
23209
  ac_cv_func_inet_ntoa=yes
 
23210
else
 
23211
  echo "$as_me: failed program was:" >&5
 
23212
sed 's/^/| /' conftest.$ac_ext >&5
 
23213
 
 
23214
ac_cv_func_inet_ntoa=no
 
23215
fi
 
23216
rm -f conftest.err conftest.$ac_objext \
 
23217
      conftest$ac_exeext conftest.$ac_ext
 
23218
fi
 
23219
echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
 
23220
echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6
 
23221
 
 
23222
   if test $ac_cv_func_inet_ntoa = no; then
 
23223
     echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
 
23224
echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
 
23225
if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
 
23226
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23227
else
 
23228
  ac_check_lib_save_LIBS=$LIBS
 
23229
LIBS="-lnsl  $LIBS"
 
23230
cat >conftest.$ac_ext <<_ACEOF
 
23231
/* confdefs.h.  */
 
23232
_ACEOF
 
23233
cat confdefs.h >>conftest.$ac_ext
 
23234
cat >>conftest.$ac_ext <<_ACEOF
 
23235
/* end confdefs.h.  */
 
23236
 
 
23237
/* Override any gcc2 internal prototype to avoid an error.  */
 
23238
#ifdef __cplusplus
 
23239
extern "C"
 
23240
#endif
 
23241
/* We use char because int might match the return type of a gcc2
 
23242
   builtin and then its argument prototype would still apply.  */
 
23243
char inet_ntoa ();
 
23244
int
 
23245
main ()
 
23246
{
 
23247
inet_ntoa ();
 
23248
  ;
 
23249
  return 0;
 
23250
}
 
23251
_ACEOF
 
23252
rm -f conftest.$ac_objext conftest$ac_exeext
 
23253
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23254
  (eval $ac_link) 2>conftest.er1
 
23255
  ac_status=$?
 
23256
  grep -v '^ *+' conftest.er1 >conftest.err
 
23257
  rm -f conftest.er1
 
23258
  cat conftest.err >&5
 
23259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23260
  (exit $ac_status); } &&
 
23261
         { ac_try='test -z "$ac_c_werror_flag"
 
23262
                         || test ! -s conftest.err'
 
23263
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23264
  (eval $ac_try) 2>&5
 
23265
  ac_status=$?
 
23266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23267
  (exit $ac_status); }; } &&
 
23268
         { ac_try='test -s conftest$ac_exeext'
 
23269
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23270
  (eval $ac_try) 2>&5
 
23271
  ac_status=$?
 
23272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23273
  (exit $ac_status); }; }; then
 
23274
  ac_cv_lib_nsl_inet_ntoa=yes
 
23275
else
 
23276
  echo "$as_me: failed program was:" >&5
 
23277
sed 's/^/| /' conftest.$ac_ext >&5
 
23278
 
 
23279
ac_cv_lib_nsl_inet_ntoa=no
 
23280
fi
 
23281
rm -f conftest.err conftest.$ac_objext \
 
23282
      conftest$ac_exeext conftest.$ac_ext
 
23283
LIBS=$ac_check_lib_save_LIBS
 
23284
fi
 
23285
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
 
23286
echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
 
23287
if test $ac_cv_lib_nsl_inet_ntoa = yes; then
 
23288
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 
23289
fi
 
23290
 
 
23291
   fi
 
23292
   echo "$as_me:$LINENO: checking for connect" >&5
 
23293
echo $ECHO_N "checking for connect... $ECHO_C" >&6
 
23294
if test "${ac_cv_func_connect+set}" = set; then
 
23295
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23296
else
 
23297
  cat >conftest.$ac_ext <<_ACEOF
 
23298
/* confdefs.h.  */
 
23299
_ACEOF
 
23300
cat confdefs.h >>conftest.$ac_ext
 
23301
cat >>conftest.$ac_ext <<_ACEOF
 
23302
/* end confdefs.h.  */
 
23303
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
 
23304
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23305
#define connect innocuous_connect
 
23306
 
 
23307
/* System header to define __stub macros and hopefully few prototypes,
 
23308
    which can conflict with char connect (); below.
 
23309
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23310
    <limits.h> exists even on freestanding compilers.  */
 
23311
 
 
23312
#ifdef __STDC__
 
23313
# include <limits.h>
 
23314
#else
 
23315
# include <assert.h>
 
23316
#endif
 
23317
 
 
23318
#undef connect
 
23319
 
 
23320
/* Override any gcc2 internal prototype to avoid an error.  */
 
23321
#ifdef __cplusplus
 
23322
extern "C"
 
23323
{
 
23324
#endif
 
23325
/* We use char because int might match the return type of a gcc2
 
23326
   builtin and then its argument prototype would still apply.  */
 
23327
char connect ();
 
23328
/* The GNU C library defines this for functions which it implements
 
23329
    to always fail with ENOSYS.  Some functions are actually named
 
23330
    something starting with __ and the normal name is an alias.  */
 
23331
#if defined (__stub_connect) || defined (__stub___connect)
 
23332
choke me
 
23333
#else
 
23334
char (*f) () = connect;
 
23335
#endif
 
23336
#ifdef __cplusplus
 
23337
}
 
23338
#endif
 
23339
 
 
23340
int
 
23341
main ()
 
23342
{
 
23343
return f != connect;
 
23344
  ;
 
23345
  return 0;
 
23346
}
 
23347
_ACEOF
 
23348
rm -f conftest.$ac_objext conftest$ac_exeext
 
23349
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23350
  (eval $ac_link) 2>conftest.er1
 
23351
  ac_status=$?
 
23352
  grep -v '^ *+' conftest.er1 >conftest.err
 
23353
  rm -f conftest.er1
 
23354
  cat conftest.err >&5
 
23355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23356
  (exit $ac_status); } &&
 
23357
         { ac_try='test -z "$ac_c_werror_flag"
 
23358
                         || test ! -s conftest.err'
 
23359
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23360
  (eval $ac_try) 2>&5
 
23361
  ac_status=$?
 
23362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23363
  (exit $ac_status); }; } &&
 
23364
         { ac_try='test -s conftest$ac_exeext'
 
23365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23366
  (eval $ac_try) 2>&5
 
23367
  ac_status=$?
 
23368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23369
  (exit $ac_status); }; }; then
 
23370
  ac_cv_func_connect=yes
 
23371
else
 
23372
  echo "$as_me: failed program was:" >&5
 
23373
sed 's/^/| /' conftest.$ac_ext >&5
 
23374
 
 
23375
ac_cv_func_connect=no
 
23376
fi
 
23377
rm -f conftest.err conftest.$ac_objext \
 
23378
      conftest$ac_exeext conftest.$ac_ext
 
23379
fi
 
23380
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
23381
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
23382
 
 
23383
   if test $ac_cv_func_connect = no; then
 
23384
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
23385
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
 
23386
if test "${ac_cv_lib_socket_connect+set}" = set; then
 
23387
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23388
else
 
23389
  ac_check_lib_save_LIBS=$LIBS
 
23390
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 
23391
cat >conftest.$ac_ext <<_ACEOF
 
23392
/* confdefs.h.  */
 
23393
_ACEOF
 
23394
cat confdefs.h >>conftest.$ac_ext
 
23395
cat >>conftest.$ac_ext <<_ACEOF
 
23396
/* end confdefs.h.  */
 
23397
 
 
23398
/* Override any gcc2 internal prototype to avoid an error.  */
 
23399
#ifdef __cplusplus
 
23400
extern "C"
 
23401
#endif
 
23402
/* We use char because int might match the return type of a gcc2
 
23403
   builtin and then its argument prototype would still apply.  */
 
23404
char connect ();
 
23405
int
 
23406
main ()
 
23407
{
 
23408
connect ();
 
23409
  ;
 
23410
  return 0;
 
23411
}
 
23412
_ACEOF
 
23413
rm -f conftest.$ac_objext conftest$ac_exeext
 
23414
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23415
  (eval $ac_link) 2>conftest.er1
 
23416
  ac_status=$?
 
23417
  grep -v '^ *+' conftest.er1 >conftest.err
 
23418
  rm -f conftest.er1
 
23419
  cat conftest.err >&5
 
23420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23421
  (exit $ac_status); } &&
 
23422
         { ac_try='test -z "$ac_c_werror_flag"
 
23423
                         || test ! -s conftest.err'
 
23424
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23425
  (eval $ac_try) 2>&5
 
23426
  ac_status=$?
 
23427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23428
  (exit $ac_status); }; } &&
 
23429
         { ac_try='test -s conftest$ac_exeext'
 
23430
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23431
  (eval $ac_try) 2>&5
 
23432
  ac_status=$?
 
23433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23434
  (exit $ac_status); }; }; then
 
23435
  ac_cv_lib_socket_connect=yes
 
23436
else
 
23437
  echo "$as_me: failed program was:" >&5
 
23438
sed 's/^/| /' conftest.$ac_ext >&5
 
23439
 
 
23440
ac_cv_lib_socket_connect=no
 
23441
fi
 
23442
rm -f conftest.err conftest.$ac_objext \
 
23443
      conftest$ac_exeext conftest.$ac_ext
 
23444
LIBS=$ac_check_lib_save_LIBS
 
23445
fi
 
23446
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
23447
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
 
23448
if test $ac_cv_lib_socket_connect = yes; then
 
23449
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 
23450
fi
 
23451
 
 
23452
   fi
 
23453
 
 
23454
   echo "$as_me:$LINENO: checking for remove" >&5
 
23455
echo $ECHO_N "checking for remove... $ECHO_C" >&6
 
23456
if test "${ac_cv_func_remove+set}" = set; then
 
23457
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23458
else
 
23459
  cat >conftest.$ac_ext <<_ACEOF
 
23460
/* confdefs.h.  */
 
23461
_ACEOF
 
23462
cat confdefs.h >>conftest.$ac_ext
 
23463
cat >>conftest.$ac_ext <<_ACEOF
 
23464
/* end confdefs.h.  */
 
23465
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
 
23466
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23467
#define remove innocuous_remove
 
23468
 
 
23469
/* System header to define __stub macros and hopefully few prototypes,
 
23470
    which can conflict with char remove (); below.
 
23471
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23472
    <limits.h> exists even on freestanding compilers.  */
 
23473
 
 
23474
#ifdef __STDC__
 
23475
# include <limits.h>
 
23476
#else
 
23477
# include <assert.h>
 
23478
#endif
 
23479
 
 
23480
#undef remove
 
23481
 
 
23482
/* Override any gcc2 internal prototype to avoid an error.  */
 
23483
#ifdef __cplusplus
 
23484
extern "C"
 
23485
{
 
23486
#endif
 
23487
/* We use char because int might match the return type of a gcc2
 
23488
   builtin and then its argument prototype would still apply.  */
 
23489
char remove ();
 
23490
/* The GNU C library defines this for functions which it implements
 
23491
    to always fail with ENOSYS.  Some functions are actually named
 
23492
    something starting with __ and the normal name is an alias.  */
 
23493
#if defined (__stub_remove) || defined (__stub___remove)
 
23494
choke me
 
23495
#else
 
23496
char (*f) () = remove;
 
23497
#endif
 
23498
#ifdef __cplusplus
 
23499
}
 
23500
#endif
 
23501
 
 
23502
int
 
23503
main ()
 
23504
{
 
23505
return f != remove;
 
23506
  ;
 
23507
  return 0;
 
23508
}
 
23509
_ACEOF
 
23510
rm -f conftest.$ac_objext conftest$ac_exeext
 
23511
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23512
  (eval $ac_link) 2>conftest.er1
 
23513
  ac_status=$?
 
23514
  grep -v '^ *+' conftest.er1 >conftest.err
 
23515
  rm -f conftest.er1
 
23516
  cat conftest.err >&5
 
23517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23518
  (exit $ac_status); } &&
 
23519
         { ac_try='test -z "$ac_c_werror_flag"
 
23520
                         || test ! -s conftest.err'
 
23521
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23522
  (eval $ac_try) 2>&5
 
23523
  ac_status=$?
 
23524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23525
  (exit $ac_status); }; } &&
 
23526
         { ac_try='test -s conftest$ac_exeext'
 
23527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23528
  (eval $ac_try) 2>&5
 
23529
  ac_status=$?
 
23530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23531
  (exit $ac_status); }; }; then
 
23532
  ac_cv_func_remove=yes
 
23533
else
 
23534
  echo "$as_me: failed program was:" >&5
 
23535
sed 's/^/| /' conftest.$ac_ext >&5
 
23536
 
 
23537
ac_cv_func_remove=no
 
23538
fi
 
23539
rm -f conftest.err conftest.$ac_objext \
 
23540
      conftest$ac_exeext conftest.$ac_ext
 
23541
fi
 
23542
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
23543
echo "${ECHO_T}$ac_cv_func_remove" >&6
 
23544
 
 
23545
   if test $ac_cv_func_remove = no; then
 
23546
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
 
23547
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
 
23548
if test "${ac_cv_lib_posix_remove+set}" = set; then
 
23549
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23550
else
 
23551
  ac_check_lib_save_LIBS=$LIBS
 
23552
LIBS="-lposix  $LIBS"
 
23553
cat >conftest.$ac_ext <<_ACEOF
 
23554
/* confdefs.h.  */
 
23555
_ACEOF
 
23556
cat confdefs.h >>conftest.$ac_ext
 
23557
cat >>conftest.$ac_ext <<_ACEOF
 
23558
/* end confdefs.h.  */
 
23559
 
 
23560
/* Override any gcc2 internal prototype to avoid an error.  */
 
23561
#ifdef __cplusplus
 
23562
extern "C"
 
23563
#endif
 
23564
/* We use char because int might match the return type of a gcc2
 
23565
   builtin and then its argument prototype would still apply.  */
 
23566
char remove ();
 
23567
int
 
23568
main ()
 
23569
{
 
23570
remove ();
 
23571
  ;
 
23572
  return 0;
 
23573
}
 
23574
_ACEOF
 
23575
rm -f conftest.$ac_objext conftest$ac_exeext
 
23576
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23577
  (eval $ac_link) 2>conftest.er1
 
23578
  ac_status=$?
 
23579
  grep -v '^ *+' conftest.er1 >conftest.err
 
23580
  rm -f conftest.er1
 
23581
  cat conftest.err >&5
 
23582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23583
  (exit $ac_status); } &&
 
23584
         { ac_try='test -z "$ac_c_werror_flag"
 
23585
                         || test ! -s conftest.err'
 
23586
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23587
  (eval $ac_try) 2>&5
 
23588
  ac_status=$?
 
23589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23590
  (exit $ac_status); }; } &&
 
23591
         { ac_try='test -s conftest$ac_exeext'
 
23592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23593
  (eval $ac_try) 2>&5
 
23594
  ac_status=$?
 
23595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23596
  (exit $ac_status); }; }; then
 
23597
  ac_cv_lib_posix_remove=yes
 
23598
else
 
23599
  echo "$as_me: failed program was:" >&5
 
23600
sed 's/^/| /' conftest.$ac_ext >&5
 
23601
 
 
23602
ac_cv_lib_posix_remove=no
 
23603
fi
 
23604
rm -f conftest.err conftest.$ac_objext \
 
23605
      conftest$ac_exeext conftest.$ac_ext
 
23606
LIBS=$ac_check_lib_save_LIBS
 
23607
fi
 
23608
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
 
23609
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
 
23610
if test $ac_cv_lib_posix_remove = yes; then
 
23611
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 
23612
fi
 
23613
 
 
23614
   fi
 
23615
 
 
23616
   # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
 
23617
   echo "$as_me:$LINENO: checking for shmat" >&5
 
23618
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
 
23619
if test "${ac_cv_func_shmat+set}" = set; then
 
23620
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23621
else
 
23622
  cat >conftest.$ac_ext <<_ACEOF
 
23623
/* confdefs.h.  */
 
23624
_ACEOF
 
23625
cat confdefs.h >>conftest.$ac_ext
 
23626
cat >>conftest.$ac_ext <<_ACEOF
 
23627
/* end confdefs.h.  */
 
23628
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
 
23629
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23630
#define shmat innocuous_shmat
 
23631
 
 
23632
/* System header to define __stub macros and hopefully few prototypes,
 
23633
    which can conflict with char shmat (); below.
 
23634
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23635
    <limits.h> exists even on freestanding compilers.  */
 
23636
 
 
23637
#ifdef __STDC__
 
23638
# include <limits.h>
 
23639
#else
 
23640
# include <assert.h>
 
23641
#endif
 
23642
 
 
23643
#undef shmat
 
23644
 
 
23645
/* Override any gcc2 internal prototype to avoid an error.  */
 
23646
#ifdef __cplusplus
 
23647
extern "C"
 
23648
{
 
23649
#endif
 
23650
/* We use char because int might match the return type of a gcc2
 
23651
   builtin and then its argument prototype would still apply.  */
 
23652
char shmat ();
 
23653
/* The GNU C library defines this for functions which it implements
 
23654
    to always fail with ENOSYS.  Some functions are actually named
 
23655
    something starting with __ and the normal name is an alias.  */
 
23656
#if defined (__stub_shmat) || defined (__stub___shmat)
 
23657
choke me
 
23658
#else
 
23659
char (*f) () = shmat;
 
23660
#endif
 
23661
#ifdef __cplusplus
 
23662
}
 
23663
#endif
 
23664
 
 
23665
int
 
23666
main ()
 
23667
{
 
23668
return f != shmat;
 
23669
  ;
 
23670
  return 0;
 
23671
}
 
23672
_ACEOF
 
23673
rm -f conftest.$ac_objext conftest$ac_exeext
 
23674
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23675
  (eval $ac_link) 2>conftest.er1
 
23676
  ac_status=$?
 
23677
  grep -v '^ *+' conftest.er1 >conftest.err
 
23678
  rm -f conftest.er1
 
23679
  cat conftest.err >&5
 
23680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23681
  (exit $ac_status); } &&
 
23682
         { ac_try='test -z "$ac_c_werror_flag"
 
23683
                         || test ! -s conftest.err'
 
23684
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23685
  (eval $ac_try) 2>&5
 
23686
  ac_status=$?
 
23687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23688
  (exit $ac_status); }; } &&
 
23689
         { ac_try='test -s conftest$ac_exeext'
 
23690
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23691
  (eval $ac_try) 2>&5
 
23692
  ac_status=$?
 
23693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23694
  (exit $ac_status); }; }; then
 
23695
  ac_cv_func_shmat=yes
 
23696
else
 
23697
  echo "$as_me: failed program was:" >&5
 
23698
sed 's/^/| /' conftest.$ac_ext >&5
 
23699
 
 
23700
ac_cv_func_shmat=no
 
23701
fi
 
23702
rm -f conftest.err conftest.$ac_objext \
 
23703
      conftest$ac_exeext conftest.$ac_ext
 
23704
fi
 
23705
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
23706
echo "${ECHO_T}$ac_cv_func_shmat" >&6
 
23707
if test $ac_cv_func_shmat = yes; then
 
23708
  :
 
23709
else
 
23710
  echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
 
23711
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
 
23712
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
 
23713
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23714
else
 
23715
  ac_check_lib_save_LIBS=$LIBS
 
23716
LIBS="-lipc  $LIBS"
 
23717
cat >conftest.$ac_ext <<_ACEOF
 
23718
/* confdefs.h.  */
 
23719
_ACEOF
 
23720
cat confdefs.h >>conftest.$ac_ext
 
23721
cat >>conftest.$ac_ext <<_ACEOF
 
23722
/* end confdefs.h.  */
 
23723
 
 
23724
/* Override any gcc2 internal prototype to avoid an error.  */
 
23725
#ifdef __cplusplus
 
23726
extern "C"
 
23727
#endif
 
23728
/* We use char because int might match the return type of a gcc2
 
23729
   builtin and then its argument prototype would still apply.  */
 
23730
char shmat ();
 
23731
int
 
23732
main ()
 
23733
{
 
23734
shmat ();
 
23735
  ;
 
23736
  return 0;
 
23737
}
 
23738
_ACEOF
 
23739
rm -f conftest.$ac_objext conftest$ac_exeext
 
23740
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23741
  (eval $ac_link) 2>conftest.er1
 
23742
  ac_status=$?
 
23743
  grep -v '^ *+' conftest.er1 >conftest.err
 
23744
  rm -f conftest.er1
 
23745
  cat conftest.err >&5
 
23746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23747
  (exit $ac_status); } &&
 
23748
         { ac_try='test -z "$ac_c_werror_flag"
 
23749
                         || test ! -s conftest.err'
 
23750
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23751
  (eval $ac_try) 2>&5
 
23752
  ac_status=$?
 
23753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23754
  (exit $ac_status); }; } &&
 
23755
         { ac_try='test -s conftest$ac_exeext'
 
23756
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23757
  (eval $ac_try) 2>&5
 
23758
  ac_status=$?
 
23759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23760
  (exit $ac_status); }; }; then
 
23761
  ac_cv_lib_ipc_shmat=yes
 
23762
else
 
23763
  echo "$as_me: failed program was:" >&5
 
23764
sed 's/^/| /' conftest.$ac_ext >&5
 
23765
 
 
23766
ac_cv_lib_ipc_shmat=no
 
23767
fi
 
23768
rm -f conftest.err conftest.$ac_objext \
 
23769
      conftest$ac_exeext conftest.$ac_ext
 
23770
LIBS=$ac_check_lib_save_LIBS
 
23771
fi
 
23772
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
 
23773
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
 
23774
if test $ac_cv_lib_ipc_shmat = yes; then
 
23775
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 
23776
fi
 
23777
 
 
23778
fi
 
23779
 
 
23780
 
 
23781
   # more headers that need to be explicitly included on darwin
 
23782
 
 
23783
 
 
23784
for ac_header in sys/types.h stdint.h
 
23785
do
 
23786
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
23787
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23788
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23789
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23790
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23792
fi
 
23793
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23794
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23795
else
 
23796
  # Is the header compilable?
 
23797
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
23798
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
23799
cat >conftest.$ac_ext <<_ACEOF
 
23800
/* confdefs.h.  */
 
23801
_ACEOF
 
23802
cat confdefs.h >>conftest.$ac_ext
 
23803
cat >>conftest.$ac_ext <<_ACEOF
 
23804
/* end confdefs.h.  */
 
23805
$ac_includes_default
 
23806
#include <$ac_header>
 
23807
_ACEOF
 
23808
rm -f conftest.$ac_objext
 
23809
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23810
  (eval $ac_compile) 2>conftest.er1
 
23811
  ac_status=$?
 
23812
  grep -v '^ *+' conftest.er1 >conftest.err
 
23813
  rm -f conftest.er1
 
23814
  cat conftest.err >&5
 
23815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23816
  (exit $ac_status); } &&
 
23817
         { ac_try='test -z "$ac_c_werror_flag"
 
23818
                         || test ! -s conftest.err'
 
23819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23820
  (eval $ac_try) 2>&5
 
23821
  ac_status=$?
 
23822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23823
  (exit $ac_status); }; } &&
 
23824
         { ac_try='test -s conftest.$ac_objext'
 
23825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23826
  (eval $ac_try) 2>&5
 
23827
  ac_status=$?
 
23828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23829
  (exit $ac_status); }; }; then
 
23830
  ac_header_compiler=yes
 
23831
else
 
23832
  echo "$as_me: failed program was:" >&5
 
23833
sed 's/^/| /' conftest.$ac_ext >&5
 
23834
 
 
23835
ac_header_compiler=no
 
23836
fi
 
23837
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23838
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23839
echo "${ECHO_T}$ac_header_compiler" >&6
 
23840
 
 
23841
# Is the header present?
 
23842
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23843
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
23844
cat >conftest.$ac_ext <<_ACEOF
 
23845
/* confdefs.h.  */
 
23846
_ACEOF
 
23847
cat confdefs.h >>conftest.$ac_ext
 
23848
cat >>conftest.$ac_ext <<_ACEOF
 
23849
/* end confdefs.h.  */
 
23850
#include <$ac_header>
 
23851
_ACEOF
 
23852
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
23853
  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
 
23860
  if test -s conftest.err; then
 
23861
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23862
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
23863
  else
 
23864
    ac_cpp_err=
 
23865
  fi
 
23866
else
 
23867
  ac_cpp_err=yes
 
23868
fi
 
23869
if test -z "$ac_cpp_err"; then
 
23870
  ac_header_preproc=yes
 
23871
else
 
23872
  echo "$as_me: failed program was:" >&5
 
23873
sed 's/^/| /' conftest.$ac_ext >&5
 
23874
 
 
23875
  ac_header_preproc=no
 
23876
fi
 
23877
rm -f conftest.err conftest.$ac_ext
 
23878
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23879
echo "${ECHO_T}$ac_header_preproc" >&6
 
23880
 
 
23881
# So?  What about this header?
 
23882
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23883
  yes:no: )
 
23884
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
23885
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23886
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23887
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23888
    ac_header_preproc=yes
 
23889
    ;;
 
23890
  no:yes:* )
 
23891
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
23892
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
23893
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23894
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23895
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23896
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23897
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23898
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23899
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
23900
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23901
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23902
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
23903
    (
 
23904
      cat <<\_ASBOX
 
23905
## ------------------------------------------ ##
 
23906
## Report this to the AC_PACKAGE_NAME lists.  ##
 
23907
## ------------------------------------------ ##
 
23908
_ASBOX
 
23909
    ) |
 
23910
      sed "s/^/$as_me: WARNING:     /" >&2
 
23911
    ;;
 
23912
esac
 
23913
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23914
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23915
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23916
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23917
else
 
23918
  eval "$as_ac_Header=\$ac_header_preproc"
 
23919
fi
 
23920
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23921
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23922
 
 
23923
fi
 
23924
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
23925
  cat >>confdefs.h <<_ACEOF
 
23926
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
23927
_ACEOF
 
23928
 
 
23929
fi
 
23930
 
 
23931
done
 
23932
 
 
23933
 
 
23934
   # sys/bitypes.h is needed for uint32_t and friends on Tru64
 
23935
 
 
23936
for ac_header in sys/bitypes.h
 
23937
do
 
23938
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
23939
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23940
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23941
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23942
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23943
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23944
fi
 
23945
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23946
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23947
else
 
23948
  # Is the header compilable?
 
23949
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
23950
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
23951
cat >conftest.$ac_ext <<_ACEOF
 
23952
/* confdefs.h.  */
 
23953
_ACEOF
 
23954
cat confdefs.h >>conftest.$ac_ext
 
23955
cat >>conftest.$ac_ext <<_ACEOF
 
23956
/* end confdefs.h.  */
 
23957
$ac_includes_default
 
23958
#include <$ac_header>
 
23959
_ACEOF
 
23960
rm -f conftest.$ac_objext
 
23961
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23962
  (eval $ac_compile) 2>conftest.er1
 
23963
  ac_status=$?
 
23964
  grep -v '^ *+' conftest.er1 >conftest.err
 
23965
  rm -f conftest.er1
 
23966
  cat conftest.err >&5
 
23967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23968
  (exit $ac_status); } &&
 
23969
         { ac_try='test -z "$ac_c_werror_flag"
 
23970
                         || test ! -s conftest.err'
 
23971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23972
  (eval $ac_try) 2>&5
 
23973
  ac_status=$?
 
23974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23975
  (exit $ac_status); }; } &&
 
23976
         { ac_try='test -s conftest.$ac_objext'
 
23977
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23978
  (eval $ac_try) 2>&5
 
23979
  ac_status=$?
 
23980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23981
  (exit $ac_status); }; }; then
 
23982
  ac_header_compiler=yes
 
23983
else
 
23984
  echo "$as_me: failed program was:" >&5
 
23985
sed 's/^/| /' conftest.$ac_ext >&5
 
23986
 
 
23987
ac_header_compiler=no
 
23988
fi
 
23989
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23990
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23991
echo "${ECHO_T}$ac_header_compiler" >&6
 
23992
 
 
23993
# Is the header present?
 
23994
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23995
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
23996
cat >conftest.$ac_ext <<_ACEOF
 
23997
/* confdefs.h.  */
 
23998
_ACEOF
 
23999
cat confdefs.h >>conftest.$ac_ext
 
24000
cat >>conftest.$ac_ext <<_ACEOF
 
24001
/* end confdefs.h.  */
 
24002
#include <$ac_header>
 
24003
_ACEOF
 
24004
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
24005
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
24006
  ac_status=$?
 
24007
  grep -v '^ *+' conftest.er1 >conftest.err
 
24008
  rm -f conftest.er1
 
24009
  cat conftest.err >&5
 
24010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24011
  (exit $ac_status); } >/dev/null; then
 
24012
  if test -s conftest.err; then
 
24013
    ac_cpp_err=$ac_c_preproc_warn_flag
 
24014
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
24015
  else
 
24016
    ac_cpp_err=
 
24017
  fi
 
24018
else
 
24019
  ac_cpp_err=yes
 
24020
fi
 
24021
if test -z "$ac_cpp_err"; then
 
24022
  ac_header_preproc=yes
 
24023
else
 
24024
  echo "$as_me: failed program was:" >&5
 
24025
sed 's/^/| /' conftest.$ac_ext >&5
 
24026
 
 
24027
  ac_header_preproc=no
 
24028
fi
 
24029
rm -f conftest.err conftest.$ac_ext
 
24030
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24031
echo "${ECHO_T}$ac_header_preproc" >&6
 
24032
 
 
24033
# So?  What about this header?
 
24034
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24035
  yes:no: )
 
24036
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
24037
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24038
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
24039
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
24040
    ac_header_preproc=yes
 
24041
    ;;
 
24042
  no:yes:* )
 
24043
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
24044
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
24045
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
24046
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
24047
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
24048
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
24049
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
24050
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24051
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
24052
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
24053
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
24054
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
24055
    (
 
24056
      cat <<\_ASBOX
 
24057
## ------------------------------------------ ##
 
24058
## Report this to the AC_PACKAGE_NAME lists.  ##
 
24059
## ------------------------------------------ ##
 
24060
_ASBOX
 
24061
    ) |
 
24062
      sed "s/^/$as_me: WARNING:     /" >&2
 
24063
    ;;
 
24064
esac
 
24065
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24066
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
24067
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
24068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24069
else
 
24070
  eval "$as_ac_Header=\$ac_header_preproc"
 
24071
fi
 
24072
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
24073
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
24074
 
 
24075
fi
 
24076
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
24077
  cat >>confdefs.h <<_ACEOF
 
24078
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
24079
_ACEOF
 
24080
 
 
24081
fi
 
24082
 
 
24083
done
 
24084
 
 
24085
 
 
24086
   # darwin requires a poll emulation library
 
24087
   echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
 
24088
echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
 
24089
if test "${ac_cv_lib_poll_poll+set}" = set; then
 
24090
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24091
else
 
24092
  ac_check_lib_save_LIBS=$LIBS
 
24093
LIBS="-lpoll  $LIBS"
 
24094
cat >conftest.$ac_ext <<_ACEOF
 
24095
/* confdefs.h.  */
 
24096
_ACEOF
 
24097
cat confdefs.h >>conftest.$ac_ext
 
24098
cat >>conftest.$ac_ext <<_ACEOF
 
24099
/* end confdefs.h.  */
 
24100
 
 
24101
/* Override any gcc2 internal prototype to avoid an error.  */
 
24102
#ifdef __cplusplus
 
24103
extern "C"
 
24104
#endif
 
24105
/* We use char because int might match the return type of a gcc2
 
24106
   builtin and then its argument prototype would still apply.  */
 
24107
char poll ();
 
24108
int
 
24109
main ()
 
24110
{
 
24111
poll ();
 
24112
  ;
 
24113
  return 0;
 
24114
}
 
24115
_ACEOF
 
24116
rm -f conftest.$ac_objext conftest$ac_exeext
 
24117
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24118
  (eval $ac_link) 2>conftest.er1
 
24119
  ac_status=$?
 
24120
  grep -v '^ *+' conftest.er1 >conftest.err
 
24121
  rm -f conftest.er1
 
24122
  cat conftest.err >&5
 
24123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24124
  (exit $ac_status); } &&
 
24125
         { ac_try='test -z "$ac_c_werror_flag"
 
24126
                         || test ! -s conftest.err'
 
24127
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24128
  (eval $ac_try) 2>&5
 
24129
  ac_status=$?
 
24130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24131
  (exit $ac_status); }; } &&
 
24132
         { ac_try='test -s conftest$ac_exeext'
 
24133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24134
  (eval $ac_try) 2>&5
 
24135
  ac_status=$?
 
24136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24137
  (exit $ac_status); }; }; then
 
24138
  ac_cv_lib_poll_poll=yes
 
24139
else
 
24140
  echo "$as_me: failed program was:" >&5
 
24141
sed 's/^/| /' conftest.$ac_ext >&5
 
24142
 
 
24143
ac_cv_lib_poll_poll=no
 
24144
fi
 
24145
rm -f conftest.err conftest.$ac_objext \
 
24146
      conftest$ac_exeext conftest.$ac_ext
 
24147
LIBS=$ac_check_lib_save_LIBS
 
24148
fi
 
24149
echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
 
24150
echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
 
24151
if test $ac_cv_lib_poll_poll = yes; then
 
24152
  LIB_POLL="-lpoll"
 
24153
fi
 
24154
 
 
24155
 
 
24156
   # for some image handling on Mac OS X
 
24157
 
 
24158
for ac_header in Carbon/Carbon.h
 
24159
do
 
24160
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
24161
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
24162
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24163
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
24164
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
24165
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24166
fi
 
24167
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
24168
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
24169
else
 
24170
  # Is the header compilable?
 
24171
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
24172
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
24173
cat >conftest.$ac_ext <<_ACEOF
 
24174
/* confdefs.h.  */
 
24175
_ACEOF
 
24176
cat confdefs.h >>conftest.$ac_ext
 
24177
cat >>conftest.$ac_ext <<_ACEOF
 
24178
/* end confdefs.h.  */
 
24179
$ac_includes_default
 
24180
#include <$ac_header>
 
24181
_ACEOF
 
24182
rm -f conftest.$ac_objext
 
24183
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24184
  (eval $ac_compile) 2>conftest.er1
 
24185
  ac_status=$?
 
24186
  grep -v '^ *+' conftest.er1 >conftest.err
 
24187
  rm -f conftest.er1
 
24188
  cat conftest.err >&5
 
24189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24190
  (exit $ac_status); } &&
 
24191
         { ac_try='test -z "$ac_c_werror_flag"
 
24192
                         || test ! -s conftest.err'
 
24193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24194
  (eval $ac_try) 2>&5
 
24195
  ac_status=$?
 
24196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24197
  (exit $ac_status); }; } &&
 
24198
         { ac_try='test -s conftest.$ac_objext'
 
24199
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24200
  (eval $ac_try) 2>&5
 
24201
  ac_status=$?
 
24202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24203
  (exit $ac_status); }; }; then
 
24204
  ac_header_compiler=yes
 
24205
else
 
24206
  echo "$as_me: failed program was:" >&5
 
24207
sed 's/^/| /' conftest.$ac_ext >&5
 
24208
 
 
24209
ac_header_compiler=no
 
24210
fi
 
24211
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24212
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24213
echo "${ECHO_T}$ac_header_compiler" >&6
 
24214
 
 
24215
# Is the header present?
 
24216
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
24217
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
24218
cat >conftest.$ac_ext <<_ACEOF
 
24219
/* confdefs.h.  */
 
24220
_ACEOF
 
24221
cat confdefs.h >>conftest.$ac_ext
 
24222
cat >>conftest.$ac_ext <<_ACEOF
 
24223
/* end confdefs.h.  */
 
24224
#include <$ac_header>
 
24225
_ACEOF
 
24226
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
24227
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
24228
  ac_status=$?
 
24229
  grep -v '^ *+' conftest.er1 >conftest.err
 
24230
  rm -f conftest.er1
 
24231
  cat conftest.err >&5
 
24232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24233
  (exit $ac_status); } >/dev/null; then
 
24234
  if test -s conftest.err; then
 
24235
    ac_cpp_err=$ac_c_preproc_warn_flag
 
24236
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
24237
  else
 
24238
    ac_cpp_err=
 
24239
  fi
 
24240
else
 
24241
  ac_cpp_err=yes
 
24242
fi
 
24243
if test -z "$ac_cpp_err"; then
 
24244
  ac_header_preproc=yes
 
24245
else
 
24246
  echo "$as_me: failed program was:" >&5
 
24247
sed 's/^/| /' conftest.$ac_ext >&5
 
24248
 
 
24249
  ac_header_preproc=no
 
24250
fi
 
24251
rm -f conftest.err conftest.$ac_ext
 
24252
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24253
echo "${ECHO_T}$ac_header_preproc" >&6
 
24254
 
 
24255
# So?  What about this header?
 
24256
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24257
  yes:no: )
 
24258
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
24259
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24260
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
24261
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
24262
    ac_header_preproc=yes
 
24263
    ;;
 
24264
  no:yes:* )
 
24265
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
24266
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
24267
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
24268
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
24269
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
24270
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
24271
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
24272
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24273
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
24274
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
24275
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
24276
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
24277
    (
 
24278
      cat <<\_ASBOX
 
24279
## ------------------------------------------ ##
 
24280
## Report this to the AC_PACKAGE_NAME lists.  ##
 
24281
## ------------------------------------------ ##
 
24282
_ASBOX
 
24283
    ) |
 
24284
      sed "s/^/$as_me: WARNING:     /" >&2
 
24285
    ;;
 
24286
esac
 
24287
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24288
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
24289
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
24290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24291
else
 
24292
  eval "$as_ac_Header=\$ac_header_preproc"
 
24293
fi
 
24294
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
24295
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
24296
 
 
24297
fi
 
24298
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
24299
  cat >>confdefs.h <<_ACEOF
 
24300
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
24301
_ACEOF
 
24302
 
 
24303
fi
 
24304
 
 
24305
done
 
24306
 
 
24307
 
 
24308
   # CoreAudio framework
 
24309
   if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 
24310
  echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 
24311
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
 
24312
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 
24313
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24314
fi
 
24315
echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 
24316
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
 
24317
else
 
24318
  # Is the header compilable?
 
24319
echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
 
24320
echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
 
24321
cat >conftest.$ac_ext <<_ACEOF
 
24322
/* confdefs.h.  */
 
24323
_ACEOF
 
24324
cat confdefs.h >>conftest.$ac_ext
 
24325
cat >>conftest.$ac_ext <<_ACEOF
 
24326
/* end confdefs.h.  */
 
24327
$ac_includes_default
 
24328
#include <CoreAudio/CoreAudio.h>
 
24329
_ACEOF
 
24330
rm -f conftest.$ac_objext
 
24331
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24332
  (eval $ac_compile) 2>conftest.er1
 
24333
  ac_status=$?
 
24334
  grep -v '^ *+' conftest.er1 >conftest.err
 
24335
  rm -f conftest.er1
 
24336
  cat conftest.err >&5
 
24337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24338
  (exit $ac_status); } &&
 
24339
         { ac_try='test -z "$ac_c_werror_flag"
 
24340
                         || test ! -s conftest.err'
 
24341
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24342
  (eval $ac_try) 2>&5
 
24343
  ac_status=$?
 
24344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24345
  (exit $ac_status); }; } &&
 
24346
         { ac_try='test -s conftest.$ac_objext'
 
24347
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24348
  (eval $ac_try) 2>&5
 
24349
  ac_status=$?
 
24350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24351
  (exit $ac_status); }; }; then
 
24352
  ac_header_compiler=yes
 
24353
else
 
24354
  echo "$as_me: failed program was:" >&5
 
24355
sed 's/^/| /' conftest.$ac_ext >&5
 
24356
 
 
24357
ac_header_compiler=no
 
24358
fi
 
24359
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24360
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24361
echo "${ECHO_T}$ac_header_compiler" >&6
 
24362
 
 
24363
# Is the header present?
 
24364
echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
 
24365
echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
 
24366
cat >conftest.$ac_ext <<_ACEOF
 
24367
/* confdefs.h.  */
 
24368
_ACEOF
 
24369
cat confdefs.h >>conftest.$ac_ext
 
24370
cat >>conftest.$ac_ext <<_ACEOF
 
24371
/* end confdefs.h.  */
 
24372
#include <CoreAudio/CoreAudio.h>
 
24373
_ACEOF
 
24374
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
24375
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
24376
  ac_status=$?
 
24377
  grep -v '^ *+' conftest.er1 >conftest.err
 
24378
  rm -f conftest.er1
 
24379
  cat conftest.err >&5
 
24380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24381
  (exit $ac_status); } >/dev/null; then
 
24382
  if test -s conftest.err; then
 
24383
    ac_cpp_err=$ac_c_preproc_warn_flag
 
24384
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
24385
  else
 
24386
    ac_cpp_err=
 
24387
  fi
 
24388
else
 
24389
  ac_cpp_err=yes
 
24390
fi
 
24391
if test -z "$ac_cpp_err"; then
 
24392
  ac_header_preproc=yes
 
24393
else
 
24394
  echo "$as_me: failed program was:" >&5
 
24395
sed 's/^/| /' conftest.$ac_ext >&5
 
24396
 
 
24397
  ac_header_preproc=no
 
24398
fi
 
24399
rm -f conftest.err conftest.$ac_ext
 
24400
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24401
echo "${ECHO_T}$ac_header_preproc" >&6
 
24402
 
 
24403
# So?  What about this header?
 
24404
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24405
  yes:no: )
 
24406
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
24407
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24408
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
 
24409
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
 
24410
    ac_header_preproc=yes
 
24411
    ;;
 
24412
  no:yes:* )
 
24413
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
 
24414
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
 
24415
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
 
24416
echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
 
24417
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
 
24418
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
 
24419
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
 
24420
echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24421
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
 
24422
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
 
24423
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
 
24424
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
 
24425
    (
 
24426
      cat <<\_ASBOX
 
24427
## ------------------------------------------ ##
 
24428
## Report this to the AC_PACKAGE_NAME lists.  ##
 
24429
## ------------------------------------------ ##
 
24430
_ASBOX
 
24431
    ) |
 
24432
      sed "s/^/$as_me: WARNING:     /" >&2
 
24433
    ;;
 
24434
esac
 
24435
echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 
24436
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
 
24437
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 
24438
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24439
else
 
24440
  ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
 
24441
fi
 
24442
echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 
24443
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
 
24444
 
 
24445
fi
 
24446
if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
 
24447
 
 
24448
 
 
24449
cat >>confdefs.h <<\_ACEOF
 
24450
#define HAVE_COREAUDIO 1
 
24451
_ACEOF
 
24452
 
 
24453
     FRAMEWORK_COREAUDIO="-Xlinker -framework -Xlinker CoreAudio"
 
24454
 
 
24455
fi
 
24456
 
 
24457
 
 
24458
 
 
24459
 
 
24460
  echo "$as_me:$LINENO: checking if res_init needs -lresolv" >&5
 
24461
echo $ECHO_N "checking if res_init needs -lresolv... $ECHO_C" >&6
 
24462
  kde_libs_safe="$LIBS"
 
24463
  LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
 
24464
  cat >conftest.$ac_ext <<_ACEOF
 
24465
/* confdefs.h.  */
 
24466
_ACEOF
 
24467
cat confdefs.h >>conftest.$ac_ext
 
24468
cat >>conftest.$ac_ext <<_ACEOF
 
24469
/* end confdefs.h.  */
 
24470
 
 
24471
#include <sys/types.h>
 
24472
#include <netinet/in.h>
 
24473
#include <arpa/nameser.h>
 
24474
#include <resolv.h>
 
24475
 
 
24476
int
 
24477
main ()
 
24478
{
 
24479
 
 
24480
      res_init();
 
24481
 
 
24482
  ;
 
24483
  return 0;
 
24484
}
 
24485
_ACEOF
 
24486
rm -f conftest.$ac_objext conftest$ac_exeext
 
24487
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24488
  (eval $ac_link) 2>conftest.er1
 
24489
  ac_status=$?
 
24490
  grep -v '^ *+' conftest.er1 >conftest.err
 
24491
  rm -f conftest.er1
 
24492
  cat conftest.err >&5
 
24493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24494
  (exit $ac_status); } &&
 
24495
         { ac_try='test -z "$ac_c_werror_flag"
 
24496
                         || test ! -s conftest.err'
 
24497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24498
  (eval $ac_try) 2>&5
 
24499
  ac_status=$?
 
24500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24501
  (exit $ac_status); }; } &&
 
24502
         { ac_try='test -s conftest$ac_exeext'
 
24503
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24504
  (eval $ac_try) 2>&5
 
24505
  ac_status=$?
 
24506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24507
  (exit $ac_status); }; }; then
 
24508
 
 
24509
      LIBRESOLV="-lresolv"
 
24510
      echo "$as_me:$LINENO: result: yes" >&5
 
24511
echo "${ECHO_T}yes" >&6
 
24512
 
 
24513
cat >>confdefs.h <<\_ACEOF
 
24514
#define HAVE_RES_INIT 1
 
24515
_ACEOF
 
24516
 
 
24517
 
 
24518
else
 
24519
  echo "$as_me: failed program was:" >&5
 
24520
sed 's/^/| /' conftest.$ac_ext >&5
 
24521
 
 
24522
 echo "$as_me:$LINENO: result: no" >&5
 
24523
echo "${ECHO_T}no" >&6
 
24524
 
 
24525
fi
 
24526
rm -f conftest.err conftest.$ac_objext \
 
24527
      conftest$ac_exeext conftest.$ac_ext
 
24528
  LIBS=$kde_libs_safe
 
24529
 
 
24530
 
 
24531
 
 
24532
echo "$as_me:$LINENO: checking for res_init" >&5
 
24533
echo $ECHO_N "checking for res_init... $ECHO_C" >&6
 
24534
if test "${kde_cv_func_res_init+set}" = set; then
 
24535
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24536
else
 
24537
 
 
24538
 
 
24539
 
 
24540
 ac_ext=cc
 
24541
ac_cpp='$CXXCPP $CPPFLAGS'
 
24542
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
24543
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
24544
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
24545
 
 
24546
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
24547
 
 
24548
 
 
24549
save_CXXFLAGS="$CXXFLAGS"
 
24550
kde_safe_LIBS="$LIBS"
 
24551
LIBS="$LIBS $X_EXTRA_LIBS"
 
24552
if test "$GXX" = "yes"; then
 
24553
CXXFLAGS="$CXXFLAGS -pedantic-errors"
 
24554
fi
 
24555
cat >conftest.$ac_ext <<_ACEOF
 
24556
/* confdefs.h.  */
 
24557
_ACEOF
 
24558
cat confdefs.h >>conftest.$ac_ext
 
24559
cat >>conftest.$ac_ext <<_ACEOF
 
24560
/* end confdefs.h.  */
 
24561
 
 
24562
 
 
24563
#include <sys/types.h>
 
24564
#include <netinet/in.h>
 
24565
#include <arpa/nameser.h>
 
24566
#include <resolv.h>
 
24567
 
 
24568
 
 
24569
int
 
24570
main ()
 
24571
{
 
24572
 
 
24573
res_init()
 
24574
 
 
24575
  ;
 
24576
  return 0;
 
24577
}
 
24578
_ACEOF
 
24579
rm -f conftest.$ac_objext
 
24580
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24581
  (eval $ac_compile) 2>conftest.er1
 
24582
  ac_status=$?
 
24583
  grep -v '^ *+' conftest.er1 >conftest.err
 
24584
  rm -f conftest.er1
 
24585
  cat conftest.err >&5
 
24586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24587
  (exit $ac_status); } &&
 
24588
         { ac_try='test -z "$ac_cxx_werror_flag"
 
24589
                         || test ! -s conftest.err'
 
24590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24591
  (eval $ac_try) 2>&5
 
24592
  ac_status=$?
 
24593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24594
  (exit $ac_status); }; } &&
 
24595
         { ac_try='test -s conftest.$ac_objext'
 
24596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24597
  (eval $ac_try) 2>&5
 
24598
  ac_status=$?
 
24599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24600
  (exit $ac_status); }; }; then
 
24601
  kde_cv_func_res_init=yes
 
24602
else
 
24603
  echo "$as_me: failed program was:" >&5
 
24604
sed 's/^/| /' conftest.$ac_ext >&5
 
24605
 
 
24606
kde_cv_func_res_init=no
 
24607
fi
 
24608
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24609
CXXFLAGS="$save_CXXFLAGS"
 
24610
LIBS="$kde_safe_LIBS"
 
24611
ac_ext=c
 
24612
ac_cpp='$CPP $CPPFLAGS'
 
24613
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
24614
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
24615
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
24616
 
 
24617
 
 
24618
fi
 
24619
 
 
24620
 
 
24621
echo "$as_me:$LINENO: result: $kde_cv_func_res_init" >&5
 
24622
echo "${ECHO_T}$kde_cv_func_res_init" >&6
 
24623
 
 
24624
echo "$as_me:$LINENO: checking if res_init needs custom prototype" >&5
 
24625
echo $ECHO_N "checking if res_init needs custom prototype... $ECHO_C" >&6
 
24626
if test "${kde_cv_proto_res_init+set}" = set; then
 
24627
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24628
else
 
24629
 
 
24630
if test "x$kde_cv_func_res_init" = xyes; then
 
24631
  kde_cv_proto_res_init=no
 
24632
else
 
24633
  case "res_init" in
 
24634
        setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
 
24635
                kde_cv_proto_res_init="yes - in libkdefakes"
 
24636
                ;;
 
24637
        *)
 
24638
                kde_cv_proto_res_init=unknown
 
24639
                ;;
 
24640
  esac
 
24641
fi
 
24642
 
 
24643
if test "x$kde_cv_proto_res_init" = xunknown; then
 
24644
 
 
24645
 
 
24646
 
 
24647
 ac_ext=cc
 
24648
ac_cpp='$CXXCPP $CPPFLAGS'
 
24649
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
24650
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
24651
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
24652
 
 
24653
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
24654
 
 
24655
 
 
24656
  kde_safe_libs=$LIBS
 
24657
  LIBS="$LIBS $X_EXTRA_LIBS"
 
24658
  cat >conftest.$ac_ext <<_ACEOF
 
24659
/* confdefs.h.  */
 
24660
_ACEOF
 
24661
cat confdefs.h >>conftest.$ac_ext
 
24662
cat >>conftest.$ac_ext <<_ACEOF
 
24663
/* end confdefs.h.  */
 
24664
 
 
24665
 
 
24666
#include <sys/types.h>
 
24667
#include <netinet/in.h>
 
24668
#include <arpa/nameser.h>
 
24669
#include <resolv.h>
 
24670
 
 
24671
 
 
24672
extern "C" int res_init(void);
 
24673
 
 
24674
int
 
24675
main ()
 
24676
{
 
24677
 
 
24678
res_init()
 
24679
 
 
24680
  ;
 
24681
  return 0;
 
24682
}
 
24683
_ACEOF
 
24684
rm -f conftest.$ac_objext conftest$ac_exeext
 
24685
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24686
  (eval $ac_link) 2>conftest.er1
 
24687
  ac_status=$?
 
24688
  grep -v '^ *+' conftest.er1 >conftest.err
 
24689
  rm -f conftest.er1
 
24690
  cat conftest.err >&5
 
24691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24692
  (exit $ac_status); } &&
 
24693
         { ac_try='test -z "$ac_cxx_werror_flag"
 
24694
                         || test ! -s conftest.err'
 
24695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24696
  (eval $ac_try) 2>&5
 
24697
  ac_status=$?
 
24698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24699
  (exit $ac_status); }; } &&
 
24700
         { ac_try='test -s conftest$ac_exeext'
 
24701
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24702
  (eval $ac_try) 2>&5
 
24703
  ac_status=$?
 
24704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24705
  (exit $ac_status); }; }; then
 
24706
   kde_cv_func_res_init=yes
 
24707
  kde_cv_proto_res_init=yes
 
24708
else
 
24709
  echo "$as_me: failed program was:" >&5
 
24710
sed 's/^/| /' conftest.$ac_ext >&5
 
24711
 
 
24712
kde_cv_proto_res_init="res_init unavailable"
 
24713
 
 
24714
fi
 
24715
rm -f conftest.err conftest.$ac_objext \
 
24716
      conftest$ac_exeext conftest.$ac_ext
 
24717
LIBS=$kde_safe_libs
 
24718
ac_ext=c
 
24719
ac_cpp='$CPP $CPPFLAGS'
 
24720
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
24721
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
24722
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
24723
 
 
24724
fi
 
24725
 
 
24726
fi
 
24727
 
 
24728
echo "$as_me:$LINENO: result: $kde_cv_proto_res_init" >&5
 
24729
echo "${ECHO_T}$kde_cv_proto_res_init" >&6
 
24730
 
 
24731
if test "x$kde_cv_func_res_init" = xyes; then
 
24732
 
 
24733
cat >>confdefs.h <<\_ACEOF
 
24734
#define HAVE_RES_INIT 1
 
24735
_ACEOF
 
24736
 
 
24737
 
 
24738
fi
 
24739
if test "x$kde_cv_proto_res_init" = xno; then
 
24740
 
 
24741
cat >>confdefs.h <<\_ACEOF
 
24742
#define HAVE_RES_INIT_PROTO 1
 
24743
_ACEOF
 
24744
 
 
24745
fi
 
24746
 
 
24747
 
 
24748
 
 
24749
 
 
24750
 
 
24751
 
 
24752
 
 
24753
   LIBSOCKET="$X_EXTRA_LIBS"
 
24754
 
 
24755
 
 
24756
   echo "$as_me:$LINENO: checking for killpg in -lucb" >&5
 
24757
echo $ECHO_N "checking for killpg in -lucb... $ECHO_C" >&6
 
24758
if test "${ac_cv_lib_ucb_killpg+set}" = set; then
 
24759
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24760
else
 
24761
  ac_check_lib_save_LIBS=$LIBS
 
24762
LIBS="-lucb  $LIBS"
 
24763
cat >conftest.$ac_ext <<_ACEOF
 
24764
/* confdefs.h.  */
 
24765
_ACEOF
 
24766
cat confdefs.h >>conftest.$ac_ext
 
24767
cat >>conftest.$ac_ext <<_ACEOF
 
24768
/* end confdefs.h.  */
 
24769
 
 
24770
/* Override any gcc2 internal prototype to avoid an error.  */
 
24771
#ifdef __cplusplus
 
24772
extern "C"
 
24773
#endif
 
24774
/* We use char because int might match the return type of a gcc2
 
24775
   builtin and then its argument prototype would still apply.  */
 
24776
char killpg ();
 
24777
int
 
24778
main ()
 
24779
{
 
24780
killpg ();
 
24781
  ;
 
24782
  return 0;
 
24783
}
 
24784
_ACEOF
 
24785
rm -f conftest.$ac_objext conftest$ac_exeext
 
24786
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24787
  (eval $ac_link) 2>conftest.er1
 
24788
  ac_status=$?
 
24789
  grep -v '^ *+' conftest.er1 >conftest.err
 
24790
  rm -f conftest.er1
 
24791
  cat conftest.err >&5
 
24792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24793
  (exit $ac_status); } &&
 
24794
         { ac_try='test -z "$ac_c_werror_flag"
 
24795
                         || test ! -s conftest.err'
 
24796
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24797
  (eval $ac_try) 2>&5
 
24798
  ac_status=$?
 
24799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24800
  (exit $ac_status); }; } &&
 
24801
         { ac_try='test -s conftest$ac_exeext'
 
24802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24803
  (eval $ac_try) 2>&5
 
24804
  ac_status=$?
 
24805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24806
  (exit $ac_status); }; }; then
 
24807
  ac_cv_lib_ucb_killpg=yes
 
24808
else
 
24809
  echo "$as_me: failed program was:" >&5
 
24810
sed 's/^/| /' conftest.$ac_ext >&5
 
24811
 
 
24812
ac_cv_lib_ucb_killpg=no
 
24813
fi
 
24814
rm -f conftest.err conftest.$ac_objext \
 
24815
      conftest$ac_exeext conftest.$ac_ext
 
24816
LIBS=$ac_check_lib_save_LIBS
 
24817
fi
 
24818
echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5
 
24819
echo "${ECHO_T}$ac_cv_lib_ucb_killpg" >&6
 
24820
if test $ac_cv_lib_ucb_killpg = yes; then
 
24821
  LIBUCB="-lucb"
 
24822
fi
 
24823
 
 
24824
 
 
24825
   case $host in     *-*-lynxos* )
 
24826
        echo "$as_me:$LINENO: checking LynxOS header file wrappers" >&5
 
24827
echo $ECHO_N "checking LynxOS header file wrappers... $ECHO_C" >&6
 
24828
        CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
 
24829
        echo "$as_me:$LINENO: result: disabled" >&5
 
24830
echo "${ECHO_T}disabled" >&6
 
24831
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
 
24832
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
 
24833
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
 
24834
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24835
else
 
24836
  ac_check_lib_save_LIBS=$LIBS
 
24837
LIBS="-lbsd  $LIBS"
 
24838
cat >conftest.$ac_ext <<_ACEOF
 
24839
/* confdefs.h.  */
 
24840
_ACEOF
 
24841
cat confdefs.h >>conftest.$ac_ext
 
24842
cat >>conftest.$ac_ext <<_ACEOF
 
24843
/* end confdefs.h.  */
 
24844
 
 
24845
/* Override any gcc2 internal prototype to avoid an error.  */
 
24846
#ifdef __cplusplus
 
24847
extern "C"
 
24848
#endif
 
24849
/* We use char because int might match the return type of a gcc2
 
24850
   builtin and then its argument prototype would still apply.  */
 
24851
char gethostbyname ();
 
24852
int
 
24853
main ()
 
24854
{
 
24855
gethostbyname ();
 
24856
  ;
 
24857
  return 0;
 
24858
}
 
24859
_ACEOF
 
24860
rm -f conftest.$ac_objext conftest$ac_exeext
 
24861
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24862
  (eval $ac_link) 2>conftest.er1
 
24863
  ac_status=$?
 
24864
  grep -v '^ *+' conftest.er1 >conftest.err
 
24865
  rm -f conftest.er1
 
24866
  cat conftest.err >&5
 
24867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24868
  (exit $ac_status); } &&
 
24869
         { ac_try='test -z "$ac_c_werror_flag"
 
24870
                         || test ! -s conftest.err'
 
24871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24872
  (eval $ac_try) 2>&5
 
24873
  ac_status=$?
 
24874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24875
  (exit $ac_status); }; } &&
 
24876
         { ac_try='test -s conftest$ac_exeext'
 
24877
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24878
  (eval $ac_try) 2>&5
 
24879
  ac_status=$?
 
24880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24881
  (exit $ac_status); }; }; then
 
24882
  ac_cv_lib_bsd_gethostbyname=yes
 
24883
else
 
24884
  echo "$as_me: failed program was:" >&5
 
24885
sed 's/^/| /' conftest.$ac_ext >&5
 
24886
 
 
24887
ac_cv_lib_bsd_gethostbyname=no
 
24888
fi
 
24889
rm -f conftest.err conftest.$ac_objext \
 
24890
      conftest$ac_exeext conftest.$ac_ext
 
24891
LIBS=$ac_check_lib_save_LIBS
 
24892
fi
 
24893
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
24894
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
 
24895
if test $ac_cv_lib_bsd_gethostbyname = yes; then
 
24896
  LIBSOCKET="-lbsd"
 
24897
fi
 
24898
          ;;
 
24899
    esac
 
24900
 
 
24901
     echo "$as_me:$LINENO: checking for int" >&5
 
24902
echo $ECHO_N "checking for int... $ECHO_C" >&6
 
24903
if test "${ac_cv_type_int+set}" = set; then
 
24904
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24905
else
 
24906
  cat >conftest.$ac_ext <<_ACEOF
 
24907
/* confdefs.h.  */
 
24908
_ACEOF
 
24909
cat confdefs.h >>conftest.$ac_ext
 
24910
cat >>conftest.$ac_ext <<_ACEOF
 
24911
/* end confdefs.h.  */
 
24912
$ac_includes_default
 
24913
int
 
24914
main ()
 
24915
{
 
24916
if ((int *) 0)
 
24917
  return 0;
 
24918
if (sizeof (int))
 
24919
  return 0;
 
24920
  ;
 
24921
  return 0;
 
24922
}
 
24923
_ACEOF
 
24924
rm -f conftest.$ac_objext
 
24925
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24926
  (eval $ac_compile) 2>conftest.er1
 
24927
  ac_status=$?
 
24928
  grep -v '^ *+' conftest.er1 >conftest.err
 
24929
  rm -f conftest.er1
 
24930
  cat conftest.err >&5
 
24931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24932
  (exit $ac_status); } &&
 
24933
         { ac_try='test -z "$ac_c_werror_flag"
 
24934
                         || test ! -s conftest.err'
 
24935
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24936
  (eval $ac_try) 2>&5
 
24937
  ac_status=$?
 
24938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24939
  (exit $ac_status); }; } &&
 
24940
         { ac_try='test -s conftest.$ac_objext'
 
24941
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24942
  (eval $ac_try) 2>&5
 
24943
  ac_status=$?
 
24944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24945
  (exit $ac_status); }; }; then
 
24946
  ac_cv_type_int=yes
 
24947
else
 
24948
  echo "$as_me: failed program was:" >&5
 
24949
sed 's/^/| /' conftest.$ac_ext >&5
 
24950
 
 
24951
ac_cv_type_int=no
 
24952
fi
 
24953
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24954
fi
 
24955
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
24956
echo "${ECHO_T}$ac_cv_type_int" >&6
 
24957
 
 
24958
echo "$as_me:$LINENO: checking size of int" >&5
 
24959
echo $ECHO_N "checking size of int... $ECHO_C" >&6
 
24960
if test "${ac_cv_sizeof_int+set}" = set; then
 
24961
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24962
else
 
24963
  if test "$ac_cv_type_int" = yes; then
 
24964
  # The cast to unsigned long works around a bug in the HP C Compiler
 
24965
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
24966
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
24967
  # This bug is HP SR number 8606223364.
 
24968
  if test "$cross_compiling" = yes; then
 
24969
  # Depending upon the size, compute the lo and hi bounds.
 
24970
cat >conftest.$ac_ext <<_ACEOF
 
24971
/* confdefs.h.  */
 
24972
_ACEOF
 
24973
cat confdefs.h >>conftest.$ac_ext
 
24974
cat >>conftest.$ac_ext <<_ACEOF
 
24975
/* end confdefs.h.  */
 
24976
$ac_includes_default
 
24977
int
 
24978
main ()
 
24979
{
 
24980
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
 
24981
test_array [0] = 0
 
24982
 
 
24983
  ;
 
24984
  return 0;
 
24985
}
 
24986
_ACEOF
 
24987
rm -f conftest.$ac_objext
 
24988
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24989
  (eval $ac_compile) 2>conftest.er1
 
24990
  ac_status=$?
 
24991
  grep -v '^ *+' conftest.er1 >conftest.err
 
24992
  rm -f conftest.er1
 
24993
  cat conftest.err >&5
 
24994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24995
  (exit $ac_status); } &&
 
24996
         { ac_try='test -z "$ac_c_werror_flag"
 
24997
                         || test ! -s conftest.err'
 
24998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24999
  (eval $ac_try) 2>&5
 
25000
  ac_status=$?
 
25001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25002
  (exit $ac_status); }; } &&
 
25003
         { ac_try='test -s conftest.$ac_objext'
 
25004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25005
  (eval $ac_try) 2>&5
 
25006
  ac_status=$?
 
25007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25008
  (exit $ac_status); }; }; then
 
25009
  ac_lo=0 ac_mid=0
 
25010
  while :; do
 
25011
    cat >conftest.$ac_ext <<_ACEOF
 
25012
/* confdefs.h.  */
 
25013
_ACEOF
 
25014
cat confdefs.h >>conftest.$ac_ext
 
25015
cat >>conftest.$ac_ext <<_ACEOF
 
25016
/* end confdefs.h.  */
 
25017
$ac_includes_default
 
25018
int
 
25019
main ()
 
25020
{
 
25021
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
25022
test_array [0] = 0
 
25023
 
 
25024
  ;
 
25025
  return 0;
 
25026
}
 
25027
_ACEOF
 
25028
rm -f conftest.$ac_objext
 
25029
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25030
  (eval $ac_compile) 2>conftest.er1
 
25031
  ac_status=$?
 
25032
  grep -v '^ *+' conftest.er1 >conftest.err
 
25033
  rm -f conftest.er1
 
25034
  cat conftest.err >&5
 
25035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25036
  (exit $ac_status); } &&
 
25037
         { ac_try='test -z "$ac_c_werror_flag"
 
25038
                         || test ! -s conftest.err'
 
25039
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25040
  (eval $ac_try) 2>&5
 
25041
  ac_status=$?
 
25042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25043
  (exit $ac_status); }; } &&
 
25044
         { ac_try='test -s conftest.$ac_objext'
 
25045
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25046
  (eval $ac_try) 2>&5
 
25047
  ac_status=$?
 
25048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25049
  (exit $ac_status); }; }; then
 
25050
  ac_hi=$ac_mid; break
 
25051
else
 
25052
  echo "$as_me: failed program was:" >&5
 
25053
sed 's/^/| /' conftest.$ac_ext >&5
 
25054
 
 
25055
ac_lo=`expr $ac_mid + 1`
 
25056
                    if test $ac_lo -le $ac_mid; then
 
25057
                      ac_lo= ac_hi=
 
25058
                      break
 
25059
                    fi
 
25060
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
25061
fi
 
25062
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25063
  done
 
25064
else
 
25065
  echo "$as_me: failed program was:" >&5
 
25066
sed 's/^/| /' conftest.$ac_ext >&5
 
25067
 
 
25068
cat >conftest.$ac_ext <<_ACEOF
 
25069
/* confdefs.h.  */
 
25070
_ACEOF
 
25071
cat confdefs.h >>conftest.$ac_ext
 
25072
cat >>conftest.$ac_ext <<_ACEOF
 
25073
/* end confdefs.h.  */
 
25074
$ac_includes_default
 
25075
int
 
25076
main ()
 
25077
{
 
25078
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
 
25079
test_array [0] = 0
 
25080
 
 
25081
  ;
 
25082
  return 0;
 
25083
}
 
25084
_ACEOF
 
25085
rm -f conftest.$ac_objext
 
25086
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25087
  (eval $ac_compile) 2>conftest.er1
 
25088
  ac_status=$?
 
25089
  grep -v '^ *+' conftest.er1 >conftest.err
 
25090
  rm -f conftest.er1
 
25091
  cat conftest.err >&5
 
25092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25093
  (exit $ac_status); } &&
 
25094
         { ac_try='test -z "$ac_c_werror_flag"
 
25095
                         || test ! -s conftest.err'
 
25096
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25097
  (eval $ac_try) 2>&5
 
25098
  ac_status=$?
 
25099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25100
  (exit $ac_status); }; } &&
 
25101
         { ac_try='test -s conftest.$ac_objext'
 
25102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25103
  (eval $ac_try) 2>&5
 
25104
  ac_status=$?
 
25105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25106
  (exit $ac_status); }; }; then
 
25107
  ac_hi=-1 ac_mid=-1
 
25108
  while :; do
 
25109
    cat >conftest.$ac_ext <<_ACEOF
 
25110
/* confdefs.h.  */
 
25111
_ACEOF
 
25112
cat confdefs.h >>conftest.$ac_ext
 
25113
cat >>conftest.$ac_ext <<_ACEOF
 
25114
/* end confdefs.h.  */
 
25115
$ac_includes_default
 
25116
int
 
25117
main ()
 
25118
{
 
25119
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
 
25120
test_array [0] = 0
 
25121
 
 
25122
  ;
 
25123
  return 0;
 
25124
}
 
25125
_ACEOF
 
25126
rm -f conftest.$ac_objext
 
25127
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25128
  (eval $ac_compile) 2>conftest.er1
 
25129
  ac_status=$?
 
25130
  grep -v '^ *+' conftest.er1 >conftest.err
 
25131
  rm -f conftest.er1
 
25132
  cat conftest.err >&5
 
25133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25134
  (exit $ac_status); } &&
 
25135
         { ac_try='test -z "$ac_c_werror_flag"
 
25136
                         || test ! -s conftest.err'
 
25137
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25138
  (eval $ac_try) 2>&5
 
25139
  ac_status=$?
 
25140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25141
  (exit $ac_status); }; } &&
 
25142
         { ac_try='test -s conftest.$ac_objext'
 
25143
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25144
  (eval $ac_try) 2>&5
 
25145
  ac_status=$?
 
25146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25147
  (exit $ac_status); }; }; then
 
25148
  ac_lo=$ac_mid; break
 
25149
else
 
25150
  echo "$as_me: failed program was:" >&5
 
25151
sed 's/^/| /' conftest.$ac_ext >&5
 
25152
 
 
25153
ac_hi=`expr '(' $ac_mid ')' - 1`
 
25154
                       if test $ac_mid -le $ac_hi; then
 
25155
                         ac_lo= ac_hi=
 
25156
                         break
 
25157
                       fi
 
25158
                       ac_mid=`expr 2 '*' $ac_mid`
 
25159
fi
 
25160
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25161
  done
 
25162
else
 
25163
  echo "$as_me: failed program was:" >&5
 
25164
sed 's/^/| /' conftest.$ac_ext >&5
 
25165
 
 
25166
ac_lo= ac_hi=
 
25167
fi
 
25168
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25169
fi
 
25170
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25171
# Binary search between lo and hi bounds.
 
25172
while test "x$ac_lo" != "x$ac_hi"; do
 
25173
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
25174
  cat >conftest.$ac_ext <<_ACEOF
 
25175
/* confdefs.h.  */
 
25176
_ACEOF
 
25177
cat confdefs.h >>conftest.$ac_ext
 
25178
cat >>conftest.$ac_ext <<_ACEOF
 
25179
/* end confdefs.h.  */
 
25180
$ac_includes_default
 
25181
int
 
25182
main ()
 
25183
{
 
25184
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
25185
test_array [0] = 0
 
25186
 
 
25187
  ;
 
25188
  return 0;
 
25189
}
 
25190
_ACEOF
 
25191
rm -f conftest.$ac_objext
 
25192
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25193
  (eval $ac_compile) 2>conftest.er1
 
25194
  ac_status=$?
 
25195
  grep -v '^ *+' conftest.er1 >conftest.err
 
25196
  rm -f conftest.er1
 
25197
  cat conftest.err >&5
 
25198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25199
  (exit $ac_status); } &&
 
25200
         { ac_try='test -z "$ac_c_werror_flag"
 
25201
                         || test ! -s conftest.err'
 
25202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25203
  (eval $ac_try) 2>&5
 
25204
  ac_status=$?
 
25205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25206
  (exit $ac_status); }; } &&
 
25207
         { ac_try='test -s conftest.$ac_objext'
 
25208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25209
  (eval $ac_try) 2>&5
 
25210
  ac_status=$?
 
25211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25212
  (exit $ac_status); }; }; then
 
25213
  ac_hi=$ac_mid
 
25214
else
 
25215
  echo "$as_me: failed program was:" >&5
 
25216
sed 's/^/| /' conftest.$ac_ext >&5
 
25217
 
 
25218
ac_lo=`expr '(' $ac_mid ')' + 1`
 
25219
fi
 
25220
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25221
done
 
25222
case $ac_lo in
 
25223
?*) ac_cv_sizeof_int=$ac_lo;;
 
25224
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
25225
See \`config.log' for more details." >&5
 
25226
echo "$as_me: error: cannot compute sizeof (int), 77
 
25227
See \`config.log' for more details." >&2;}
 
25228
   { (exit 1); exit 1; }; } ;;
 
25229
esac
 
25230
else
 
25231
  if test "$cross_compiling" = yes; then
 
25232
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
25233
See \`config.log' for more details." >&5
 
25234
echo "$as_me: error: cannot run test program while cross compiling
 
25235
See \`config.log' for more details." >&2;}
 
25236
   { (exit 1); exit 1; }; }
 
25237
else
 
25238
  cat >conftest.$ac_ext <<_ACEOF
 
25239
/* confdefs.h.  */
 
25240
_ACEOF
 
25241
cat confdefs.h >>conftest.$ac_ext
 
25242
cat >>conftest.$ac_ext <<_ACEOF
 
25243
/* end confdefs.h.  */
 
25244
$ac_includes_default
 
25245
long longval () { return (long) (sizeof (int)); }
 
25246
unsigned long ulongval () { return (long) (sizeof (int)); }
 
25247
#include <stdio.h>
 
25248
#include <stdlib.h>
 
25249
int
 
25250
main ()
 
25251
{
 
25252
 
 
25253
  FILE *f = fopen ("conftest.val", "w");
 
25254
  if (! f)
 
25255
    exit (1);
 
25256
  if (((long) (sizeof (int))) < 0)
 
25257
    {
 
25258
      long i = longval ();
 
25259
      if (i != ((long) (sizeof (int))))
 
25260
        exit (1);
 
25261
      fprintf (f, "%ld\n", i);
 
25262
    }
 
25263
  else
 
25264
    {
 
25265
      unsigned long i = ulongval ();
 
25266
      if (i != ((long) (sizeof (int))))
 
25267
        exit (1);
 
25268
      fprintf (f, "%lu\n", i);
 
25269
    }
 
25270
  exit (ferror (f) || fclose (f) != 0);
 
25271
 
 
25272
  ;
 
25273
  return 0;
 
25274
}
 
25275
_ACEOF
 
25276
rm -f conftest$ac_exeext
 
25277
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25278
  (eval $ac_link) 2>&5
 
25279
  ac_status=$?
 
25280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25281
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
25282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25283
  (eval $ac_try) 2>&5
 
25284
  ac_status=$?
 
25285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25286
  (exit $ac_status); }; }; then
 
25287
  ac_cv_sizeof_int=`cat conftest.val`
 
25288
else
 
25289
  echo "$as_me: program exited with status $ac_status" >&5
 
25290
echo "$as_me: failed program was:" >&5
 
25291
sed 's/^/| /' conftest.$ac_ext >&5
 
25292
 
 
25293
( exit $ac_status )
 
25294
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
25295
See \`config.log' for more details." >&5
 
25296
echo "$as_me: error: cannot compute sizeof (int), 77
 
25297
See \`config.log' for more details." >&2;}
 
25298
   { (exit 1); exit 1; }; }
 
25299
fi
 
25300
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
25301
fi
 
25302
fi
 
25303
rm -f conftest.val
 
25304
else
 
25305
  ac_cv_sizeof_int=0
 
25306
fi
 
25307
fi
 
25308
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
25309
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
 
25310
cat >>confdefs.h <<_ACEOF
 
25311
#define SIZEOF_INT $ac_cv_sizeof_int
 
25312
_ACEOF
 
25313
 
 
25314
   echo "$as_me:$LINENO: checking for short" >&5
 
25315
echo $ECHO_N "checking for short... $ECHO_C" >&6
 
25316
if test "${ac_cv_type_short+set}" = set; then
 
25317
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25318
else
 
25319
  cat >conftest.$ac_ext <<_ACEOF
 
25320
/* confdefs.h.  */
 
25321
_ACEOF
 
25322
cat confdefs.h >>conftest.$ac_ext
 
25323
cat >>conftest.$ac_ext <<_ACEOF
 
25324
/* end confdefs.h.  */
 
25325
$ac_includes_default
 
25326
int
 
25327
main ()
 
25328
{
 
25329
if ((short *) 0)
 
25330
  return 0;
 
25331
if (sizeof (short))
 
25332
  return 0;
 
25333
  ;
 
25334
  return 0;
 
25335
}
 
25336
_ACEOF
 
25337
rm -f conftest.$ac_objext
 
25338
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25339
  (eval $ac_compile) 2>conftest.er1
 
25340
  ac_status=$?
 
25341
  grep -v '^ *+' conftest.er1 >conftest.err
 
25342
  rm -f conftest.er1
 
25343
  cat conftest.err >&5
 
25344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25345
  (exit $ac_status); } &&
 
25346
         { ac_try='test -z "$ac_c_werror_flag"
 
25347
                         || test ! -s conftest.err'
 
25348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25349
  (eval $ac_try) 2>&5
 
25350
  ac_status=$?
 
25351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25352
  (exit $ac_status); }; } &&
 
25353
         { ac_try='test -s conftest.$ac_objext'
 
25354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25355
  (eval $ac_try) 2>&5
 
25356
  ac_status=$?
 
25357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25358
  (exit $ac_status); }; }; then
 
25359
  ac_cv_type_short=yes
 
25360
else
 
25361
  echo "$as_me: failed program was:" >&5
 
25362
sed 's/^/| /' conftest.$ac_ext >&5
 
25363
 
 
25364
ac_cv_type_short=no
 
25365
fi
 
25366
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25367
fi
 
25368
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
 
25369
echo "${ECHO_T}$ac_cv_type_short" >&6
 
25370
 
 
25371
echo "$as_me:$LINENO: checking size of short" >&5
 
25372
echo $ECHO_N "checking size of short... $ECHO_C" >&6
 
25373
if test "${ac_cv_sizeof_short+set}" = set; then
 
25374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25375
else
 
25376
  if test "$ac_cv_type_short" = yes; then
 
25377
  # The cast to unsigned long works around a bug in the HP C Compiler
 
25378
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
25379
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
25380
  # This bug is HP SR number 8606223364.
 
25381
  if test "$cross_compiling" = yes; then
 
25382
  # Depending upon the size, compute the lo and hi bounds.
 
25383
cat >conftest.$ac_ext <<_ACEOF
 
25384
/* confdefs.h.  */
 
25385
_ACEOF
 
25386
cat confdefs.h >>conftest.$ac_ext
 
25387
cat >>conftest.$ac_ext <<_ACEOF
 
25388
/* end confdefs.h.  */
 
25389
$ac_includes_default
 
25390
int
 
25391
main ()
 
25392
{
 
25393
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
 
25394
test_array [0] = 0
 
25395
 
 
25396
  ;
 
25397
  return 0;
 
25398
}
 
25399
_ACEOF
 
25400
rm -f conftest.$ac_objext
 
25401
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25402
  (eval $ac_compile) 2>conftest.er1
 
25403
  ac_status=$?
 
25404
  grep -v '^ *+' conftest.er1 >conftest.err
 
25405
  rm -f conftest.er1
 
25406
  cat conftest.err >&5
 
25407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25408
  (exit $ac_status); } &&
 
25409
         { ac_try='test -z "$ac_c_werror_flag"
 
25410
                         || test ! -s conftest.err'
 
25411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25412
  (eval $ac_try) 2>&5
 
25413
  ac_status=$?
 
25414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25415
  (exit $ac_status); }; } &&
 
25416
         { ac_try='test -s conftest.$ac_objext'
 
25417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25418
  (eval $ac_try) 2>&5
 
25419
  ac_status=$?
 
25420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25421
  (exit $ac_status); }; }; then
 
25422
  ac_lo=0 ac_mid=0
 
25423
  while :; do
 
25424
    cat >conftest.$ac_ext <<_ACEOF
 
25425
/* confdefs.h.  */
 
25426
_ACEOF
 
25427
cat confdefs.h >>conftest.$ac_ext
 
25428
cat >>conftest.$ac_ext <<_ACEOF
 
25429
/* end confdefs.h.  */
 
25430
$ac_includes_default
 
25431
int
 
25432
main ()
 
25433
{
 
25434
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
25435
test_array [0] = 0
 
25436
 
 
25437
  ;
 
25438
  return 0;
 
25439
}
 
25440
_ACEOF
 
25441
rm -f conftest.$ac_objext
 
25442
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25443
  (eval $ac_compile) 2>conftest.er1
 
25444
  ac_status=$?
 
25445
  grep -v '^ *+' conftest.er1 >conftest.err
 
25446
  rm -f conftest.er1
 
25447
  cat conftest.err >&5
 
25448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25449
  (exit $ac_status); } &&
 
25450
         { ac_try='test -z "$ac_c_werror_flag"
 
25451
                         || test ! -s conftest.err'
 
25452
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25453
  (eval $ac_try) 2>&5
 
25454
  ac_status=$?
 
25455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25456
  (exit $ac_status); }; } &&
 
25457
         { ac_try='test -s conftest.$ac_objext'
 
25458
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25459
  (eval $ac_try) 2>&5
 
25460
  ac_status=$?
 
25461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25462
  (exit $ac_status); }; }; then
 
25463
  ac_hi=$ac_mid; break
 
25464
else
 
25465
  echo "$as_me: failed program was:" >&5
 
25466
sed 's/^/| /' conftest.$ac_ext >&5
 
25467
 
 
25468
ac_lo=`expr $ac_mid + 1`
 
25469
                    if test $ac_lo -le $ac_mid; then
 
25470
                      ac_lo= ac_hi=
 
25471
                      break
 
25472
                    fi
 
25473
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
25474
fi
 
25475
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25476
  done
 
25477
else
 
25478
  echo "$as_me: failed program was:" >&5
 
25479
sed 's/^/| /' conftest.$ac_ext >&5
 
25480
 
 
25481
cat >conftest.$ac_ext <<_ACEOF
 
25482
/* confdefs.h.  */
 
25483
_ACEOF
 
25484
cat confdefs.h >>conftest.$ac_ext
 
25485
cat >>conftest.$ac_ext <<_ACEOF
 
25486
/* end confdefs.h.  */
 
25487
$ac_includes_default
 
25488
int
 
25489
main ()
 
25490
{
 
25491
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
 
25492
test_array [0] = 0
 
25493
 
 
25494
  ;
 
25495
  return 0;
 
25496
}
 
25497
_ACEOF
 
25498
rm -f conftest.$ac_objext
 
25499
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25500
  (eval $ac_compile) 2>conftest.er1
 
25501
  ac_status=$?
 
25502
  grep -v '^ *+' conftest.er1 >conftest.err
 
25503
  rm -f conftest.er1
 
25504
  cat conftest.err >&5
 
25505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25506
  (exit $ac_status); } &&
 
25507
         { ac_try='test -z "$ac_c_werror_flag"
 
25508
                         || test ! -s conftest.err'
 
25509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25510
  (eval $ac_try) 2>&5
 
25511
  ac_status=$?
 
25512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25513
  (exit $ac_status); }; } &&
 
25514
         { ac_try='test -s conftest.$ac_objext'
 
25515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25516
  (eval $ac_try) 2>&5
 
25517
  ac_status=$?
 
25518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25519
  (exit $ac_status); }; }; then
 
25520
  ac_hi=-1 ac_mid=-1
 
25521
  while :; do
 
25522
    cat >conftest.$ac_ext <<_ACEOF
 
25523
/* confdefs.h.  */
 
25524
_ACEOF
 
25525
cat confdefs.h >>conftest.$ac_ext
 
25526
cat >>conftest.$ac_ext <<_ACEOF
 
25527
/* end confdefs.h.  */
 
25528
$ac_includes_default
 
25529
int
 
25530
main ()
 
25531
{
 
25532
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
 
25533
test_array [0] = 0
 
25534
 
 
25535
  ;
 
25536
  return 0;
 
25537
}
 
25538
_ACEOF
 
25539
rm -f conftest.$ac_objext
 
25540
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25541
  (eval $ac_compile) 2>conftest.er1
 
25542
  ac_status=$?
 
25543
  grep -v '^ *+' conftest.er1 >conftest.err
 
25544
  rm -f conftest.er1
 
25545
  cat conftest.err >&5
 
25546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25547
  (exit $ac_status); } &&
 
25548
         { ac_try='test -z "$ac_c_werror_flag"
 
25549
                         || test ! -s conftest.err'
 
25550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25551
  (eval $ac_try) 2>&5
 
25552
  ac_status=$?
 
25553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25554
  (exit $ac_status); }; } &&
 
25555
         { ac_try='test -s conftest.$ac_objext'
 
25556
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25557
  (eval $ac_try) 2>&5
 
25558
  ac_status=$?
 
25559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25560
  (exit $ac_status); }; }; then
 
25561
  ac_lo=$ac_mid; break
 
25562
else
 
25563
  echo "$as_me: failed program was:" >&5
 
25564
sed 's/^/| /' conftest.$ac_ext >&5
 
25565
 
 
25566
ac_hi=`expr '(' $ac_mid ')' - 1`
 
25567
                       if test $ac_mid -le $ac_hi; then
 
25568
                         ac_lo= ac_hi=
 
25569
                         break
 
25570
                       fi
 
25571
                       ac_mid=`expr 2 '*' $ac_mid`
 
25572
fi
 
25573
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25574
  done
 
25575
else
 
25576
  echo "$as_me: failed program was:" >&5
 
25577
sed 's/^/| /' conftest.$ac_ext >&5
 
25578
 
 
25579
ac_lo= ac_hi=
 
25580
fi
 
25581
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25582
fi
 
25583
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25584
# Binary search between lo and hi bounds.
 
25585
while test "x$ac_lo" != "x$ac_hi"; do
 
25586
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
25587
  cat >conftest.$ac_ext <<_ACEOF
 
25588
/* confdefs.h.  */
 
25589
_ACEOF
 
25590
cat confdefs.h >>conftest.$ac_ext
 
25591
cat >>conftest.$ac_ext <<_ACEOF
 
25592
/* end confdefs.h.  */
 
25593
$ac_includes_default
 
25594
int
 
25595
main ()
 
25596
{
 
25597
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
25598
test_array [0] = 0
 
25599
 
 
25600
  ;
 
25601
  return 0;
 
25602
}
 
25603
_ACEOF
 
25604
rm -f conftest.$ac_objext
 
25605
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25606
  (eval $ac_compile) 2>conftest.er1
 
25607
  ac_status=$?
 
25608
  grep -v '^ *+' conftest.er1 >conftest.err
 
25609
  rm -f conftest.er1
 
25610
  cat conftest.err >&5
 
25611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25612
  (exit $ac_status); } &&
 
25613
         { ac_try='test -z "$ac_c_werror_flag"
 
25614
                         || test ! -s conftest.err'
 
25615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25616
  (eval $ac_try) 2>&5
 
25617
  ac_status=$?
 
25618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25619
  (exit $ac_status); }; } &&
 
25620
         { ac_try='test -s conftest.$ac_objext'
 
25621
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25622
  (eval $ac_try) 2>&5
 
25623
  ac_status=$?
 
25624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25625
  (exit $ac_status); }; }; then
 
25626
  ac_hi=$ac_mid
 
25627
else
 
25628
  echo "$as_me: failed program was:" >&5
 
25629
sed 's/^/| /' conftest.$ac_ext >&5
 
25630
 
 
25631
ac_lo=`expr '(' $ac_mid ')' + 1`
 
25632
fi
 
25633
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25634
done
 
25635
case $ac_lo in
 
25636
?*) ac_cv_sizeof_short=$ac_lo;;
 
25637
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
25638
See \`config.log' for more details." >&5
 
25639
echo "$as_me: error: cannot compute sizeof (short), 77
 
25640
See \`config.log' for more details." >&2;}
 
25641
   { (exit 1); exit 1; }; } ;;
 
25642
esac
 
25643
else
 
25644
  if test "$cross_compiling" = yes; then
 
25645
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
25646
See \`config.log' for more details." >&5
 
25647
echo "$as_me: error: cannot run test program while cross compiling
 
25648
See \`config.log' for more details." >&2;}
 
25649
   { (exit 1); exit 1; }; }
 
25650
else
 
25651
  cat >conftest.$ac_ext <<_ACEOF
 
25652
/* confdefs.h.  */
 
25653
_ACEOF
 
25654
cat confdefs.h >>conftest.$ac_ext
 
25655
cat >>conftest.$ac_ext <<_ACEOF
 
25656
/* end confdefs.h.  */
 
25657
$ac_includes_default
 
25658
long longval () { return (long) (sizeof (short)); }
 
25659
unsigned long ulongval () { return (long) (sizeof (short)); }
 
25660
#include <stdio.h>
 
25661
#include <stdlib.h>
 
25662
int
 
25663
main ()
 
25664
{
 
25665
 
 
25666
  FILE *f = fopen ("conftest.val", "w");
 
25667
  if (! f)
 
25668
    exit (1);
 
25669
  if (((long) (sizeof (short))) < 0)
 
25670
    {
 
25671
      long i = longval ();
 
25672
      if (i != ((long) (sizeof (short))))
 
25673
        exit (1);
 
25674
      fprintf (f, "%ld\n", i);
 
25675
    }
 
25676
  else
 
25677
    {
 
25678
      unsigned long i = ulongval ();
 
25679
      if (i != ((long) (sizeof (short))))
 
25680
        exit (1);
 
25681
      fprintf (f, "%lu\n", i);
 
25682
    }
 
25683
  exit (ferror (f) || fclose (f) != 0);
 
25684
 
 
25685
  ;
 
25686
  return 0;
 
25687
}
 
25688
_ACEOF
 
25689
rm -f conftest$ac_exeext
 
25690
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25691
  (eval $ac_link) 2>&5
 
25692
  ac_status=$?
 
25693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25694
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
25695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25696
  (eval $ac_try) 2>&5
 
25697
  ac_status=$?
 
25698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25699
  (exit $ac_status); }; }; then
 
25700
  ac_cv_sizeof_short=`cat conftest.val`
 
25701
else
 
25702
  echo "$as_me: program exited with status $ac_status" >&5
 
25703
echo "$as_me: failed program was:" >&5
 
25704
sed 's/^/| /' conftest.$ac_ext >&5
 
25705
 
 
25706
( exit $ac_status )
 
25707
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
25708
See \`config.log' for more details." >&5
 
25709
echo "$as_me: error: cannot compute sizeof (short), 77
 
25710
See \`config.log' for more details." >&2;}
 
25711
   { (exit 1); exit 1; }; }
 
25712
fi
 
25713
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
25714
fi
 
25715
fi
 
25716
rm -f conftest.val
 
25717
else
 
25718
  ac_cv_sizeof_short=0
 
25719
fi
 
25720
fi
 
25721
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
25722
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
 
25723
cat >>confdefs.h <<_ACEOF
 
25724
#define SIZEOF_SHORT $ac_cv_sizeof_short
 
25725
_ACEOF
 
25726
 
 
25727
  echo "$as_me:$LINENO: checking for long" >&5
 
25728
echo $ECHO_N "checking for long... $ECHO_C" >&6
 
25729
if test "${ac_cv_type_long+set}" = set; then
 
25730
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25731
else
 
25732
  cat >conftest.$ac_ext <<_ACEOF
 
25733
/* confdefs.h.  */
 
25734
_ACEOF
 
25735
cat confdefs.h >>conftest.$ac_ext
 
25736
cat >>conftest.$ac_ext <<_ACEOF
 
25737
/* end confdefs.h.  */
 
25738
$ac_includes_default
 
25739
int
 
25740
main ()
 
25741
{
 
25742
if ((long *) 0)
 
25743
  return 0;
 
25744
if (sizeof (long))
 
25745
  return 0;
 
25746
  ;
 
25747
  return 0;
 
25748
}
 
25749
_ACEOF
 
25750
rm -f conftest.$ac_objext
 
25751
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25752
  (eval $ac_compile) 2>conftest.er1
 
25753
  ac_status=$?
 
25754
  grep -v '^ *+' conftest.er1 >conftest.err
 
25755
  rm -f conftest.er1
 
25756
  cat conftest.err >&5
 
25757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25758
  (exit $ac_status); } &&
 
25759
         { ac_try='test -z "$ac_c_werror_flag"
 
25760
                         || test ! -s conftest.err'
 
25761
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25762
  (eval $ac_try) 2>&5
 
25763
  ac_status=$?
 
25764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25765
  (exit $ac_status); }; } &&
 
25766
         { ac_try='test -s conftest.$ac_objext'
 
25767
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25768
  (eval $ac_try) 2>&5
 
25769
  ac_status=$?
 
25770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25771
  (exit $ac_status); }; }; then
 
25772
  ac_cv_type_long=yes
 
25773
else
 
25774
  echo "$as_me: failed program was:" >&5
 
25775
sed 's/^/| /' conftest.$ac_ext >&5
 
25776
 
 
25777
ac_cv_type_long=no
 
25778
fi
 
25779
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25780
fi
 
25781
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
25782
echo "${ECHO_T}$ac_cv_type_long" >&6
 
25783
 
 
25784
echo "$as_me:$LINENO: checking size of long" >&5
 
25785
echo $ECHO_N "checking size of long... $ECHO_C" >&6
 
25786
if test "${ac_cv_sizeof_long+set}" = set; then
 
25787
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25788
else
 
25789
  if test "$ac_cv_type_long" = yes; then
 
25790
  # The cast to unsigned long works around a bug in the HP C Compiler
 
25791
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
25792
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
25793
  # This bug is HP SR number 8606223364.
 
25794
  if test "$cross_compiling" = yes; then
 
25795
  # Depending upon the size, compute the lo and hi bounds.
 
25796
cat >conftest.$ac_ext <<_ACEOF
 
25797
/* confdefs.h.  */
 
25798
_ACEOF
 
25799
cat confdefs.h >>conftest.$ac_ext
 
25800
cat >>conftest.$ac_ext <<_ACEOF
 
25801
/* end confdefs.h.  */
 
25802
$ac_includes_default
 
25803
int
 
25804
main ()
 
25805
{
 
25806
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
 
25807
test_array [0] = 0
 
25808
 
 
25809
  ;
 
25810
  return 0;
 
25811
}
 
25812
_ACEOF
 
25813
rm -f conftest.$ac_objext
 
25814
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25815
  (eval $ac_compile) 2>conftest.er1
 
25816
  ac_status=$?
 
25817
  grep -v '^ *+' conftest.er1 >conftest.err
 
25818
  rm -f conftest.er1
 
25819
  cat conftest.err >&5
 
25820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25821
  (exit $ac_status); } &&
 
25822
         { ac_try='test -z "$ac_c_werror_flag"
 
25823
                         || test ! -s conftest.err'
 
25824
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25825
  (eval $ac_try) 2>&5
 
25826
  ac_status=$?
 
25827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25828
  (exit $ac_status); }; } &&
 
25829
         { ac_try='test -s conftest.$ac_objext'
 
25830
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25831
  (eval $ac_try) 2>&5
 
25832
  ac_status=$?
 
25833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25834
  (exit $ac_status); }; }; then
 
25835
  ac_lo=0 ac_mid=0
 
25836
  while :; do
 
25837
    cat >conftest.$ac_ext <<_ACEOF
 
25838
/* confdefs.h.  */
 
25839
_ACEOF
 
25840
cat confdefs.h >>conftest.$ac_ext
 
25841
cat >>conftest.$ac_ext <<_ACEOF
 
25842
/* end confdefs.h.  */
 
25843
$ac_includes_default
 
25844
int
 
25845
main ()
 
25846
{
 
25847
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
25848
test_array [0] = 0
 
25849
 
 
25850
  ;
 
25851
  return 0;
 
25852
}
 
25853
_ACEOF
 
25854
rm -f conftest.$ac_objext
 
25855
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25856
  (eval $ac_compile) 2>conftest.er1
 
25857
  ac_status=$?
 
25858
  grep -v '^ *+' conftest.er1 >conftest.err
 
25859
  rm -f conftest.er1
 
25860
  cat conftest.err >&5
 
25861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25862
  (exit $ac_status); } &&
 
25863
         { ac_try='test -z "$ac_c_werror_flag"
 
25864
                         || test ! -s conftest.err'
 
25865
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25866
  (eval $ac_try) 2>&5
 
25867
  ac_status=$?
 
25868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25869
  (exit $ac_status); }; } &&
 
25870
         { ac_try='test -s conftest.$ac_objext'
 
25871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25872
  (eval $ac_try) 2>&5
 
25873
  ac_status=$?
 
25874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25875
  (exit $ac_status); }; }; then
 
25876
  ac_hi=$ac_mid; break
 
25877
else
 
25878
  echo "$as_me: failed program was:" >&5
 
25879
sed 's/^/| /' conftest.$ac_ext >&5
 
25880
 
 
25881
ac_lo=`expr $ac_mid + 1`
 
25882
                    if test $ac_lo -le $ac_mid; then
 
25883
                      ac_lo= ac_hi=
 
25884
                      break
 
25885
                    fi
 
25886
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
25887
fi
 
25888
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25889
  done
 
25890
else
 
25891
  echo "$as_me: failed program was:" >&5
 
25892
sed 's/^/| /' conftest.$ac_ext >&5
 
25893
 
 
25894
cat >conftest.$ac_ext <<_ACEOF
 
25895
/* confdefs.h.  */
 
25896
_ACEOF
 
25897
cat confdefs.h >>conftest.$ac_ext
 
25898
cat >>conftest.$ac_ext <<_ACEOF
 
25899
/* end confdefs.h.  */
 
25900
$ac_includes_default
 
25901
int
 
25902
main ()
 
25903
{
 
25904
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
 
25905
test_array [0] = 0
 
25906
 
 
25907
  ;
 
25908
  return 0;
 
25909
}
 
25910
_ACEOF
 
25911
rm -f conftest.$ac_objext
 
25912
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25913
  (eval $ac_compile) 2>conftest.er1
 
25914
  ac_status=$?
 
25915
  grep -v '^ *+' conftest.er1 >conftest.err
 
25916
  rm -f conftest.er1
 
25917
  cat conftest.err >&5
 
25918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25919
  (exit $ac_status); } &&
 
25920
         { ac_try='test -z "$ac_c_werror_flag"
 
25921
                         || test ! -s conftest.err'
 
25922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25923
  (eval $ac_try) 2>&5
 
25924
  ac_status=$?
 
25925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25926
  (exit $ac_status); }; } &&
 
25927
         { ac_try='test -s conftest.$ac_objext'
 
25928
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25929
  (eval $ac_try) 2>&5
 
25930
  ac_status=$?
 
25931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25932
  (exit $ac_status); }; }; then
 
25933
  ac_hi=-1 ac_mid=-1
 
25934
  while :; do
 
25935
    cat >conftest.$ac_ext <<_ACEOF
 
25936
/* confdefs.h.  */
 
25937
_ACEOF
 
25938
cat confdefs.h >>conftest.$ac_ext
 
25939
cat >>conftest.$ac_ext <<_ACEOF
 
25940
/* end confdefs.h.  */
 
25941
$ac_includes_default
 
25942
int
 
25943
main ()
 
25944
{
 
25945
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
 
25946
test_array [0] = 0
 
25947
 
 
25948
  ;
 
25949
  return 0;
 
25950
}
 
25951
_ACEOF
 
25952
rm -f conftest.$ac_objext
 
25953
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25954
  (eval $ac_compile) 2>conftest.er1
 
25955
  ac_status=$?
 
25956
  grep -v '^ *+' conftest.er1 >conftest.err
 
25957
  rm -f conftest.er1
 
25958
  cat conftest.err >&5
 
25959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25960
  (exit $ac_status); } &&
 
25961
         { ac_try='test -z "$ac_c_werror_flag"
 
25962
                         || test ! -s conftest.err'
 
25963
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25964
  (eval $ac_try) 2>&5
 
25965
  ac_status=$?
 
25966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25967
  (exit $ac_status); }; } &&
 
25968
         { ac_try='test -s conftest.$ac_objext'
 
25969
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25970
  (eval $ac_try) 2>&5
 
25971
  ac_status=$?
 
25972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25973
  (exit $ac_status); }; }; then
 
25974
  ac_lo=$ac_mid; break
 
25975
else
 
25976
  echo "$as_me: failed program was:" >&5
 
25977
sed 's/^/| /' conftest.$ac_ext >&5
 
25978
 
 
25979
ac_hi=`expr '(' $ac_mid ')' - 1`
 
25980
                       if test $ac_mid -le $ac_hi; then
 
25981
                         ac_lo= ac_hi=
 
25982
                         break
 
25983
                       fi
 
25984
                       ac_mid=`expr 2 '*' $ac_mid`
 
25985
fi
 
25986
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25987
  done
 
25988
else
 
25989
  echo "$as_me: failed program was:" >&5
 
25990
sed 's/^/| /' conftest.$ac_ext >&5
 
25991
 
 
25992
ac_lo= ac_hi=
 
25993
fi
 
25994
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25995
fi
 
25996
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25997
# Binary search between lo and hi bounds.
 
25998
while test "x$ac_lo" != "x$ac_hi"; do
 
25999
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
26000
  cat >conftest.$ac_ext <<_ACEOF
 
26001
/* confdefs.h.  */
 
26002
_ACEOF
 
26003
cat confdefs.h >>conftest.$ac_ext
 
26004
cat >>conftest.$ac_ext <<_ACEOF
 
26005
/* end confdefs.h.  */
 
26006
$ac_includes_default
 
26007
int
 
26008
main ()
 
26009
{
 
26010
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
26011
test_array [0] = 0
 
26012
 
 
26013
  ;
 
26014
  return 0;
 
26015
}
 
26016
_ACEOF
 
26017
rm -f conftest.$ac_objext
 
26018
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26019
  (eval $ac_compile) 2>conftest.er1
 
26020
  ac_status=$?
 
26021
  grep -v '^ *+' conftest.er1 >conftest.err
 
26022
  rm -f conftest.er1
 
26023
  cat conftest.err >&5
 
26024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26025
  (exit $ac_status); } &&
 
26026
         { ac_try='test -z "$ac_c_werror_flag"
 
26027
                         || test ! -s conftest.err'
 
26028
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26029
  (eval $ac_try) 2>&5
 
26030
  ac_status=$?
 
26031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26032
  (exit $ac_status); }; } &&
 
26033
         { ac_try='test -s conftest.$ac_objext'
 
26034
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26035
  (eval $ac_try) 2>&5
 
26036
  ac_status=$?
 
26037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26038
  (exit $ac_status); }; }; then
 
26039
  ac_hi=$ac_mid
 
26040
else
 
26041
  echo "$as_me: failed program was:" >&5
 
26042
sed 's/^/| /' conftest.$ac_ext >&5
 
26043
 
 
26044
ac_lo=`expr '(' $ac_mid ')' + 1`
 
26045
fi
 
26046
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26047
done
 
26048
case $ac_lo in
 
26049
?*) ac_cv_sizeof_long=$ac_lo;;
 
26050
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
26051
See \`config.log' for more details." >&5
 
26052
echo "$as_me: error: cannot compute sizeof (long), 77
 
26053
See \`config.log' for more details." >&2;}
 
26054
   { (exit 1); exit 1; }; } ;;
 
26055
esac
 
26056
else
 
26057
  if test "$cross_compiling" = yes; then
 
26058
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
26059
See \`config.log' for more details." >&5
 
26060
echo "$as_me: error: cannot run test program while cross compiling
 
26061
See \`config.log' for more details." >&2;}
 
26062
   { (exit 1); exit 1; }; }
 
26063
else
 
26064
  cat >conftest.$ac_ext <<_ACEOF
 
26065
/* confdefs.h.  */
 
26066
_ACEOF
 
26067
cat confdefs.h >>conftest.$ac_ext
 
26068
cat >>conftest.$ac_ext <<_ACEOF
 
26069
/* end confdefs.h.  */
 
26070
$ac_includes_default
 
26071
long longval () { return (long) (sizeof (long)); }
 
26072
unsigned long ulongval () { return (long) (sizeof (long)); }
 
26073
#include <stdio.h>
 
26074
#include <stdlib.h>
 
26075
int
 
26076
main ()
 
26077
{
 
26078
 
 
26079
  FILE *f = fopen ("conftest.val", "w");
 
26080
  if (! f)
 
26081
    exit (1);
 
26082
  if (((long) (sizeof (long))) < 0)
 
26083
    {
 
26084
      long i = longval ();
 
26085
      if (i != ((long) (sizeof (long))))
 
26086
        exit (1);
 
26087
      fprintf (f, "%ld\n", i);
 
26088
    }
 
26089
  else
 
26090
    {
 
26091
      unsigned long i = ulongval ();
 
26092
      if (i != ((long) (sizeof (long))))
 
26093
        exit (1);
 
26094
      fprintf (f, "%lu\n", i);
 
26095
    }
 
26096
  exit (ferror (f) || fclose (f) != 0);
 
26097
 
 
26098
  ;
 
26099
  return 0;
 
26100
}
 
26101
_ACEOF
 
26102
rm -f conftest$ac_exeext
 
26103
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26104
  (eval $ac_link) 2>&5
 
26105
  ac_status=$?
 
26106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26107
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26109
  (eval $ac_try) 2>&5
 
26110
  ac_status=$?
 
26111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26112
  (exit $ac_status); }; }; then
 
26113
  ac_cv_sizeof_long=`cat conftest.val`
 
26114
else
 
26115
  echo "$as_me: program exited with status $ac_status" >&5
 
26116
echo "$as_me: failed program was:" >&5
 
26117
sed 's/^/| /' conftest.$ac_ext >&5
 
26118
 
 
26119
( exit $ac_status )
 
26120
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
26121
See \`config.log' for more details." >&5
 
26122
echo "$as_me: error: cannot compute sizeof (long), 77
 
26123
See \`config.log' for more details." >&2;}
 
26124
   { (exit 1); exit 1; }; }
 
26125
fi
 
26126
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26127
fi
 
26128
fi
 
26129
rm -f conftest.val
 
26130
else
 
26131
  ac_cv_sizeof_long=0
 
26132
fi
 
26133
fi
 
26134
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
26135
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
 
26136
cat >>confdefs.h <<_ACEOF
 
26137
#define SIZEOF_LONG $ac_cv_sizeof_long
 
26138
_ACEOF
 
26139
 
 
26140
  echo "$as_me:$LINENO: checking for char *" >&5
 
26141
echo $ECHO_N "checking for char *... $ECHO_C" >&6
 
26142
if test "${ac_cv_type_char_p+set}" = set; then
 
26143
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26144
else
 
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
$ac_includes_default
 
26152
int
 
26153
main ()
 
26154
{
 
26155
if ((char * *) 0)
 
26156
  return 0;
 
26157
if (sizeof (char *))
 
26158
  return 0;
 
26159
  ;
 
26160
  return 0;
 
26161
}
 
26162
_ACEOF
 
26163
rm -f conftest.$ac_objext
 
26164
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26165
  (eval $ac_compile) 2>conftest.er1
 
26166
  ac_status=$?
 
26167
  grep -v '^ *+' conftest.er1 >conftest.err
 
26168
  rm -f conftest.er1
 
26169
  cat conftest.err >&5
 
26170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26171
  (exit $ac_status); } &&
 
26172
         { ac_try='test -z "$ac_c_werror_flag"
 
26173
                         || test ! -s conftest.err'
 
26174
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26175
  (eval $ac_try) 2>&5
 
26176
  ac_status=$?
 
26177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26178
  (exit $ac_status); }; } &&
 
26179
         { ac_try='test -s conftest.$ac_objext'
 
26180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26181
  (eval $ac_try) 2>&5
 
26182
  ac_status=$?
 
26183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26184
  (exit $ac_status); }; }; then
 
26185
  ac_cv_type_char_p=yes
 
26186
else
 
26187
  echo "$as_me: failed program was:" >&5
 
26188
sed 's/^/| /' conftest.$ac_ext >&5
 
26189
 
 
26190
ac_cv_type_char_p=no
 
26191
fi
 
26192
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26193
fi
 
26194
echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
 
26195
echo "${ECHO_T}$ac_cv_type_char_p" >&6
 
26196
 
 
26197
echo "$as_me:$LINENO: checking size of char *" >&5
 
26198
echo $ECHO_N "checking size of char *... $ECHO_C" >&6
 
26199
if test "${ac_cv_sizeof_char_p+set}" = set; then
 
26200
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26201
else
 
26202
  if test "$ac_cv_type_char_p" = yes; then
 
26203
  # The cast to unsigned long works around a bug in the HP C Compiler
 
26204
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
26205
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
26206
  # This bug is HP SR number 8606223364.
 
26207
  if test "$cross_compiling" = yes; then
 
26208
  # Depending upon the size, compute the lo and hi bounds.
 
26209
cat >conftest.$ac_ext <<_ACEOF
 
26210
/* confdefs.h.  */
 
26211
_ACEOF
 
26212
cat confdefs.h >>conftest.$ac_ext
 
26213
cat >>conftest.$ac_ext <<_ACEOF
 
26214
/* end confdefs.h.  */
 
26215
$ac_includes_default
 
26216
int
 
26217
main ()
 
26218
{
 
26219
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
 
26220
test_array [0] = 0
 
26221
 
 
26222
  ;
 
26223
  return 0;
 
26224
}
 
26225
_ACEOF
 
26226
rm -f conftest.$ac_objext
 
26227
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26228
  (eval $ac_compile) 2>conftest.er1
 
26229
  ac_status=$?
 
26230
  grep -v '^ *+' conftest.er1 >conftest.err
 
26231
  rm -f conftest.er1
 
26232
  cat conftest.err >&5
 
26233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26234
  (exit $ac_status); } &&
 
26235
         { ac_try='test -z "$ac_c_werror_flag"
 
26236
                         || test ! -s conftest.err'
 
26237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26238
  (eval $ac_try) 2>&5
 
26239
  ac_status=$?
 
26240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26241
  (exit $ac_status); }; } &&
 
26242
         { ac_try='test -s conftest.$ac_objext'
 
26243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26244
  (eval $ac_try) 2>&5
 
26245
  ac_status=$?
 
26246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26247
  (exit $ac_status); }; }; then
 
26248
  ac_lo=0 ac_mid=0
 
26249
  while :; do
 
26250
    cat >conftest.$ac_ext <<_ACEOF
 
26251
/* confdefs.h.  */
 
26252
_ACEOF
 
26253
cat confdefs.h >>conftest.$ac_ext
 
26254
cat >>conftest.$ac_ext <<_ACEOF
 
26255
/* end confdefs.h.  */
 
26256
$ac_includes_default
 
26257
int
 
26258
main ()
 
26259
{
 
26260
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
 
26261
test_array [0] = 0
 
26262
 
 
26263
  ;
 
26264
  return 0;
 
26265
}
 
26266
_ACEOF
 
26267
rm -f conftest.$ac_objext
 
26268
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26269
  (eval $ac_compile) 2>conftest.er1
 
26270
  ac_status=$?
 
26271
  grep -v '^ *+' conftest.er1 >conftest.err
 
26272
  rm -f conftest.er1
 
26273
  cat conftest.err >&5
 
26274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26275
  (exit $ac_status); } &&
 
26276
         { ac_try='test -z "$ac_c_werror_flag"
 
26277
                         || test ! -s conftest.err'
 
26278
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26279
  (eval $ac_try) 2>&5
 
26280
  ac_status=$?
 
26281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26282
  (exit $ac_status); }; } &&
 
26283
         { ac_try='test -s conftest.$ac_objext'
 
26284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26285
  (eval $ac_try) 2>&5
 
26286
  ac_status=$?
 
26287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26288
  (exit $ac_status); }; }; then
 
26289
  ac_hi=$ac_mid; break
 
26290
else
 
26291
  echo "$as_me: failed program was:" >&5
 
26292
sed 's/^/| /' conftest.$ac_ext >&5
 
26293
 
 
26294
ac_lo=`expr $ac_mid + 1`
 
26295
                    if test $ac_lo -le $ac_mid; then
 
26296
                      ac_lo= ac_hi=
 
26297
                      break
 
26298
                    fi
 
26299
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
26300
fi
 
26301
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26302
  done
 
26303
else
 
26304
  echo "$as_me: failed program was:" >&5
 
26305
sed 's/^/| /' conftest.$ac_ext >&5
 
26306
 
 
26307
cat >conftest.$ac_ext <<_ACEOF
 
26308
/* confdefs.h.  */
 
26309
_ACEOF
 
26310
cat confdefs.h >>conftest.$ac_ext
 
26311
cat >>conftest.$ac_ext <<_ACEOF
 
26312
/* end confdefs.h.  */
 
26313
$ac_includes_default
 
26314
int
 
26315
main ()
 
26316
{
 
26317
static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
 
26318
test_array [0] = 0
 
26319
 
 
26320
  ;
 
26321
  return 0;
 
26322
}
 
26323
_ACEOF
 
26324
rm -f conftest.$ac_objext
 
26325
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26326
  (eval $ac_compile) 2>conftest.er1
 
26327
  ac_status=$?
 
26328
  grep -v '^ *+' conftest.er1 >conftest.err
 
26329
  rm -f conftest.er1
 
26330
  cat conftest.err >&5
 
26331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26332
  (exit $ac_status); } &&
 
26333
         { ac_try='test -z "$ac_c_werror_flag"
 
26334
                         || test ! -s conftest.err'
 
26335
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26336
  (eval $ac_try) 2>&5
 
26337
  ac_status=$?
 
26338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26339
  (exit $ac_status); }; } &&
 
26340
         { ac_try='test -s conftest.$ac_objext'
 
26341
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26342
  (eval $ac_try) 2>&5
 
26343
  ac_status=$?
 
26344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26345
  (exit $ac_status); }; }; then
 
26346
  ac_hi=-1 ac_mid=-1
 
26347
  while :; do
 
26348
    cat >conftest.$ac_ext <<_ACEOF
 
26349
/* confdefs.h.  */
 
26350
_ACEOF
 
26351
cat confdefs.h >>conftest.$ac_ext
 
26352
cat >>conftest.$ac_ext <<_ACEOF
 
26353
/* end confdefs.h.  */
 
26354
$ac_includes_default
 
26355
int
 
26356
main ()
 
26357
{
 
26358
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
 
26359
test_array [0] = 0
 
26360
 
 
26361
  ;
 
26362
  return 0;
 
26363
}
 
26364
_ACEOF
 
26365
rm -f conftest.$ac_objext
 
26366
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26367
  (eval $ac_compile) 2>conftest.er1
 
26368
  ac_status=$?
 
26369
  grep -v '^ *+' conftest.er1 >conftest.err
 
26370
  rm -f conftest.er1
 
26371
  cat conftest.err >&5
 
26372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26373
  (exit $ac_status); } &&
 
26374
         { ac_try='test -z "$ac_c_werror_flag"
 
26375
                         || test ! -s conftest.err'
 
26376
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26377
  (eval $ac_try) 2>&5
 
26378
  ac_status=$?
 
26379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26380
  (exit $ac_status); }; } &&
 
26381
         { ac_try='test -s conftest.$ac_objext'
 
26382
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26383
  (eval $ac_try) 2>&5
 
26384
  ac_status=$?
 
26385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26386
  (exit $ac_status); }; }; then
 
26387
  ac_lo=$ac_mid; break
 
26388
else
 
26389
  echo "$as_me: failed program was:" >&5
 
26390
sed 's/^/| /' conftest.$ac_ext >&5
 
26391
 
 
26392
ac_hi=`expr '(' $ac_mid ')' - 1`
 
26393
                       if test $ac_mid -le $ac_hi; then
 
26394
                         ac_lo= ac_hi=
 
26395
                         break
 
26396
                       fi
 
26397
                       ac_mid=`expr 2 '*' $ac_mid`
 
26398
fi
 
26399
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26400
  done
 
26401
else
 
26402
  echo "$as_me: failed program was:" >&5
 
26403
sed 's/^/| /' conftest.$ac_ext >&5
 
26404
 
 
26405
ac_lo= ac_hi=
 
26406
fi
 
26407
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26408
fi
 
26409
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26410
# Binary search between lo and hi bounds.
 
26411
while test "x$ac_lo" != "x$ac_hi"; do
 
26412
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
26413
  cat >conftest.$ac_ext <<_ACEOF
 
26414
/* confdefs.h.  */
 
26415
_ACEOF
 
26416
cat confdefs.h >>conftest.$ac_ext
 
26417
cat >>conftest.$ac_ext <<_ACEOF
 
26418
/* end confdefs.h.  */
 
26419
$ac_includes_default
 
26420
int
 
26421
main ()
 
26422
{
 
26423
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
 
26424
test_array [0] = 0
 
26425
 
 
26426
  ;
 
26427
  return 0;
 
26428
}
 
26429
_ACEOF
 
26430
rm -f conftest.$ac_objext
 
26431
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26432
  (eval $ac_compile) 2>conftest.er1
 
26433
  ac_status=$?
 
26434
  grep -v '^ *+' conftest.er1 >conftest.err
 
26435
  rm -f conftest.er1
 
26436
  cat conftest.err >&5
 
26437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26438
  (exit $ac_status); } &&
 
26439
         { ac_try='test -z "$ac_c_werror_flag"
 
26440
                         || test ! -s conftest.err'
 
26441
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26442
  (eval $ac_try) 2>&5
 
26443
  ac_status=$?
 
26444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26445
  (exit $ac_status); }; } &&
 
26446
         { ac_try='test -s conftest.$ac_objext'
 
26447
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26448
  (eval $ac_try) 2>&5
 
26449
  ac_status=$?
 
26450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26451
  (exit $ac_status); }; }; then
 
26452
  ac_hi=$ac_mid
 
26453
else
 
26454
  echo "$as_me: failed program was:" >&5
 
26455
sed 's/^/| /' conftest.$ac_ext >&5
 
26456
 
 
26457
ac_lo=`expr '(' $ac_mid ')' + 1`
 
26458
fi
 
26459
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26460
done
 
26461
case $ac_lo in
 
26462
?*) ac_cv_sizeof_char_p=$ac_lo;;
 
26463
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
 
26464
See \`config.log' for more details." >&5
 
26465
echo "$as_me: error: cannot compute sizeof (char *), 77
 
26466
See \`config.log' for more details." >&2;}
 
26467
   { (exit 1); exit 1; }; } ;;
 
26468
esac
 
26469
else
 
26470
  if test "$cross_compiling" = yes; then
 
26471
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
26472
See \`config.log' for more details." >&5
 
26473
echo "$as_me: error: cannot run test program while cross compiling
 
26474
See \`config.log' for more details." >&2;}
 
26475
   { (exit 1); exit 1; }; }
 
26476
else
 
26477
  cat >conftest.$ac_ext <<_ACEOF
 
26478
/* confdefs.h.  */
 
26479
_ACEOF
 
26480
cat confdefs.h >>conftest.$ac_ext
 
26481
cat >>conftest.$ac_ext <<_ACEOF
 
26482
/* end confdefs.h.  */
 
26483
$ac_includes_default
 
26484
long longval () { return (long) (sizeof (char *)); }
 
26485
unsigned long ulongval () { return (long) (sizeof (char *)); }
 
26486
#include <stdio.h>
 
26487
#include <stdlib.h>
 
26488
int
 
26489
main ()
 
26490
{
 
26491
 
 
26492
  FILE *f = fopen ("conftest.val", "w");
 
26493
  if (! f)
 
26494
    exit (1);
 
26495
  if (((long) (sizeof (char *))) < 0)
 
26496
    {
 
26497
      long i = longval ();
 
26498
      if (i != ((long) (sizeof (char *))))
 
26499
        exit (1);
 
26500
      fprintf (f, "%ld\n", i);
 
26501
    }
 
26502
  else
 
26503
    {
 
26504
      unsigned long i = ulongval ();
 
26505
      if (i != ((long) (sizeof (char *))))
 
26506
        exit (1);
 
26507
      fprintf (f, "%lu\n", i);
 
26508
    }
 
26509
  exit (ferror (f) || fclose (f) != 0);
 
26510
 
 
26511
  ;
 
26512
  return 0;
 
26513
}
 
26514
_ACEOF
 
26515
rm -f conftest$ac_exeext
 
26516
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26517
  (eval $ac_link) 2>&5
 
26518
  ac_status=$?
 
26519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26520
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26521
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26522
  (eval $ac_try) 2>&5
 
26523
  ac_status=$?
 
26524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26525
  (exit $ac_status); }; }; then
 
26526
  ac_cv_sizeof_char_p=`cat conftest.val`
 
26527
else
 
26528
  echo "$as_me: program exited with status $ac_status" >&5
 
26529
echo "$as_me: failed program was:" >&5
 
26530
sed 's/^/| /' conftest.$ac_ext >&5
 
26531
 
 
26532
( exit $ac_status )
 
26533
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
 
26534
See \`config.log' for more details." >&5
 
26535
echo "$as_me: error: cannot compute sizeof (char *), 77
 
26536
See \`config.log' for more details." >&2;}
 
26537
   { (exit 1); exit 1; }; }
 
26538
fi
 
26539
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26540
fi
 
26541
fi
 
26542
rm -f conftest.val
 
26543
else
 
26544
  ac_cv_sizeof_char_p=0
 
26545
fi
 
26546
fi
 
26547
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
 
26548
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
 
26549
cat >>confdefs.h <<_ACEOF
 
26550
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
 
26551
_ACEOF
 
26552
 
 
26553
 
 
26554
 
 
26555
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
26556
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
26557
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
26558
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26559
else
 
26560
  ac_check_lib_save_LIBS=$LIBS
 
26561
LIBS="-ldl  $LIBS"
 
26562
cat >conftest.$ac_ext <<_ACEOF
 
26563
/* confdefs.h.  */
 
26564
_ACEOF
 
26565
cat confdefs.h >>conftest.$ac_ext
 
26566
cat >>conftest.$ac_ext <<_ACEOF
 
26567
/* end confdefs.h.  */
 
26568
 
 
26569
/* Override any gcc2 internal prototype to avoid an error.  */
 
26570
#ifdef __cplusplus
 
26571
extern "C"
 
26572
#endif
 
26573
/* We use char because int might match the return type of a gcc2
 
26574
   builtin and then its argument prototype would still apply.  */
 
26575
char dlopen ();
 
26576
int
 
26577
main ()
 
26578
{
 
26579
dlopen ();
 
26580
  ;
 
26581
  return 0;
 
26582
}
 
26583
_ACEOF
 
26584
rm -f conftest.$ac_objext conftest$ac_exeext
 
26585
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26586
  (eval $ac_link) 2>conftest.er1
 
26587
  ac_status=$?
 
26588
  grep -v '^ *+' conftest.er1 >conftest.err
 
26589
  rm -f conftest.er1
 
26590
  cat conftest.err >&5
 
26591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26592
  (exit $ac_status); } &&
 
26593
         { ac_try='test -z "$ac_c_werror_flag"
 
26594
                         || test ! -s conftest.err'
 
26595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26596
  (eval $ac_try) 2>&5
 
26597
  ac_status=$?
 
26598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26599
  (exit $ac_status); }; } &&
 
26600
         { ac_try='test -s conftest$ac_exeext'
 
26601
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26602
  (eval $ac_try) 2>&5
 
26603
  ac_status=$?
 
26604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26605
  (exit $ac_status); }; }; then
 
26606
  ac_cv_lib_dl_dlopen=yes
 
26607
else
 
26608
  echo "$as_me: failed program was:" >&5
 
26609
sed 's/^/| /' conftest.$ac_ext >&5
 
26610
 
 
26611
ac_cv_lib_dl_dlopen=no
 
26612
fi
 
26613
rm -f conftest.err conftest.$ac_objext \
 
26614
      conftest$ac_exeext conftest.$ac_ext
 
26615
LIBS=$ac_check_lib_save_LIBS
 
26616
fi
 
26617
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
26618
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
26619
if test $ac_cv_lib_dl_dlopen = yes; then
 
26620
 
 
26621
LIBDL="-ldl"
 
26622
ac_cv_have_dlfcn=yes
 
26623
 
 
26624
fi
 
26625
 
 
26626
 
 
26627
echo "$as_me:$LINENO: checking for shl_unload in -ldld" >&5
 
26628
echo $ECHO_N "checking for shl_unload in -ldld... $ECHO_C" >&6
 
26629
if test "${ac_cv_lib_dld_shl_unload+set}" = set; then
 
26630
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26631
else
 
26632
  ac_check_lib_save_LIBS=$LIBS
 
26633
LIBS="-ldld  $LIBS"
 
26634
cat >conftest.$ac_ext <<_ACEOF
 
26635
/* confdefs.h.  */
 
26636
_ACEOF
 
26637
cat confdefs.h >>conftest.$ac_ext
 
26638
cat >>conftest.$ac_ext <<_ACEOF
 
26639
/* end confdefs.h.  */
 
26640
 
 
26641
/* Override any gcc2 internal prototype to avoid an error.  */
 
26642
#ifdef __cplusplus
 
26643
extern "C"
 
26644
#endif
 
26645
/* We use char because int might match the return type of a gcc2
 
26646
   builtin and then its argument prototype would still apply.  */
 
26647
char shl_unload ();
 
26648
int
 
26649
main ()
 
26650
{
 
26651
shl_unload ();
 
26652
  ;
 
26653
  return 0;
 
26654
}
 
26655
_ACEOF
 
26656
rm -f conftest.$ac_objext conftest$ac_exeext
 
26657
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26658
  (eval $ac_link) 2>conftest.er1
 
26659
  ac_status=$?
 
26660
  grep -v '^ *+' conftest.er1 >conftest.err
 
26661
  rm -f conftest.er1
 
26662
  cat conftest.err >&5
 
26663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26664
  (exit $ac_status); } &&
 
26665
         { ac_try='test -z "$ac_c_werror_flag"
 
26666
                         || test ! -s conftest.err'
 
26667
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26668
  (eval $ac_try) 2>&5
 
26669
  ac_status=$?
 
26670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26671
  (exit $ac_status); }; } &&
 
26672
         { ac_try='test -s conftest$ac_exeext'
 
26673
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26674
  (eval $ac_try) 2>&5
 
26675
  ac_status=$?
 
26676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26677
  (exit $ac_status); }; }; then
 
26678
  ac_cv_lib_dld_shl_unload=yes
 
26679
else
 
26680
  echo "$as_me: failed program was:" >&5
 
26681
sed 's/^/| /' conftest.$ac_ext >&5
 
26682
 
 
26683
ac_cv_lib_dld_shl_unload=no
 
26684
fi
 
26685
rm -f conftest.err conftest.$ac_objext \
 
26686
      conftest$ac_exeext conftest.$ac_ext
 
26687
LIBS=$ac_check_lib_save_LIBS
 
26688
fi
 
26689
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5
 
26690
echo "${ECHO_T}$ac_cv_lib_dld_shl_unload" >&6
 
26691
if test $ac_cv_lib_dld_shl_unload = yes; then
 
26692
 
 
26693
LIBDL="-ldld"
 
26694
ac_cv_have_shload=yes
 
26695
 
 
26696
fi
 
26697
 
 
26698
 
 
26699
 
 
26700
 
 
26701
 
 
26702
 
 
26703
 
 
26704
  echo "$as_me:$LINENO: checking for size_t" >&5
 
26705
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
26706
if test "${ac_cv_type_size_t+set}" = set; then
 
26707
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26708
else
 
26709
  cat >conftest.$ac_ext <<_ACEOF
 
26710
/* confdefs.h.  */
 
26711
_ACEOF
 
26712
cat confdefs.h >>conftest.$ac_ext
 
26713
cat >>conftest.$ac_ext <<_ACEOF
 
26714
/* end confdefs.h.  */
 
26715
$ac_includes_default
 
26716
int
 
26717
main ()
 
26718
{
 
26719
if ((size_t *) 0)
 
26720
  return 0;
 
26721
if (sizeof (size_t))
 
26722
  return 0;
 
26723
  ;
 
26724
  return 0;
 
26725
}
 
26726
_ACEOF
 
26727
rm -f conftest.$ac_objext
 
26728
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26729
  (eval $ac_compile) 2>conftest.er1
 
26730
  ac_status=$?
 
26731
  grep -v '^ *+' conftest.er1 >conftest.err
 
26732
  rm -f conftest.er1
 
26733
  cat conftest.err >&5
 
26734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26735
  (exit $ac_status); } &&
 
26736
         { ac_try='test -z "$ac_c_werror_flag"
 
26737
                         || test ! -s conftest.err'
 
26738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26739
  (eval $ac_try) 2>&5
 
26740
  ac_status=$?
 
26741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26742
  (exit $ac_status); }; } &&
 
26743
         { ac_try='test -s conftest.$ac_objext'
 
26744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26745
  (eval $ac_try) 2>&5
 
26746
  ac_status=$?
 
26747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26748
  (exit $ac_status); }; }; then
 
26749
  ac_cv_type_size_t=yes
 
26750
else
 
26751
  echo "$as_me: failed program was:" >&5
 
26752
sed 's/^/| /' conftest.$ac_ext >&5
 
26753
 
 
26754
ac_cv_type_size_t=no
 
26755
fi
 
26756
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26757
fi
 
26758
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
26759
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
26760
 
 
26761
echo "$as_me:$LINENO: checking size of size_t" >&5
 
26762
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
 
26763
if test "${ac_cv_sizeof_size_t+set}" = set; then
 
26764
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26765
else
 
26766
  if test "$ac_cv_type_size_t" = yes; then
 
26767
  # The cast to unsigned long works around a bug in the HP C Compiler
 
26768
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
26769
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
26770
  # This bug is HP SR number 8606223364.
 
26771
  if test "$cross_compiling" = yes; then
 
26772
  # Depending upon the size, compute the lo and hi bounds.
 
26773
cat >conftest.$ac_ext <<_ACEOF
 
26774
/* confdefs.h.  */
 
26775
_ACEOF
 
26776
cat confdefs.h >>conftest.$ac_ext
 
26777
cat >>conftest.$ac_ext <<_ACEOF
 
26778
/* end confdefs.h.  */
 
26779
$ac_includes_default
 
26780
int
 
26781
main ()
 
26782
{
 
26783
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
 
26784
test_array [0] = 0
 
26785
 
 
26786
  ;
 
26787
  return 0;
 
26788
}
 
26789
_ACEOF
 
26790
rm -f conftest.$ac_objext
 
26791
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26792
  (eval $ac_compile) 2>conftest.er1
 
26793
  ac_status=$?
 
26794
  grep -v '^ *+' conftest.er1 >conftest.err
 
26795
  rm -f conftest.er1
 
26796
  cat conftest.err >&5
 
26797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26798
  (exit $ac_status); } &&
 
26799
         { ac_try='test -z "$ac_c_werror_flag"
 
26800
                         || test ! -s conftest.err'
 
26801
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26802
  (eval $ac_try) 2>&5
 
26803
  ac_status=$?
 
26804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26805
  (exit $ac_status); }; } &&
 
26806
         { ac_try='test -s conftest.$ac_objext'
 
26807
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26808
  (eval $ac_try) 2>&5
 
26809
  ac_status=$?
 
26810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26811
  (exit $ac_status); }; }; then
 
26812
  ac_lo=0 ac_mid=0
 
26813
  while :; do
 
26814
    cat >conftest.$ac_ext <<_ACEOF
 
26815
/* confdefs.h.  */
 
26816
_ACEOF
 
26817
cat confdefs.h >>conftest.$ac_ext
 
26818
cat >>conftest.$ac_ext <<_ACEOF
 
26819
/* end confdefs.h.  */
 
26820
$ac_includes_default
 
26821
int
 
26822
main ()
 
26823
{
 
26824
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
 
26825
test_array [0] = 0
 
26826
 
 
26827
  ;
 
26828
  return 0;
 
26829
}
 
26830
_ACEOF
 
26831
rm -f conftest.$ac_objext
 
26832
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26833
  (eval $ac_compile) 2>conftest.er1
 
26834
  ac_status=$?
 
26835
  grep -v '^ *+' conftest.er1 >conftest.err
 
26836
  rm -f conftest.er1
 
26837
  cat conftest.err >&5
 
26838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26839
  (exit $ac_status); } &&
 
26840
         { ac_try='test -z "$ac_c_werror_flag"
 
26841
                         || test ! -s conftest.err'
 
26842
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26843
  (eval $ac_try) 2>&5
 
26844
  ac_status=$?
 
26845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26846
  (exit $ac_status); }; } &&
 
26847
         { ac_try='test -s conftest.$ac_objext'
 
26848
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26849
  (eval $ac_try) 2>&5
 
26850
  ac_status=$?
 
26851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26852
  (exit $ac_status); }; }; then
 
26853
  ac_hi=$ac_mid; break
 
26854
else
 
26855
  echo "$as_me: failed program was:" >&5
 
26856
sed 's/^/| /' conftest.$ac_ext >&5
 
26857
 
 
26858
ac_lo=`expr $ac_mid + 1`
 
26859
                    if test $ac_lo -le $ac_mid; then
 
26860
                      ac_lo= ac_hi=
 
26861
                      break
 
26862
                    fi
 
26863
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
26864
fi
 
26865
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26866
  done
 
26867
else
 
26868
  echo "$as_me: failed program was:" >&5
 
26869
sed 's/^/| /' conftest.$ac_ext >&5
 
26870
 
 
26871
cat >conftest.$ac_ext <<_ACEOF
 
26872
/* confdefs.h.  */
 
26873
_ACEOF
 
26874
cat confdefs.h >>conftest.$ac_ext
 
26875
cat >>conftest.$ac_ext <<_ACEOF
 
26876
/* end confdefs.h.  */
 
26877
$ac_includes_default
 
26878
int
 
26879
main ()
 
26880
{
 
26881
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
 
26882
test_array [0] = 0
 
26883
 
 
26884
  ;
 
26885
  return 0;
 
26886
}
 
26887
_ACEOF
 
26888
rm -f conftest.$ac_objext
 
26889
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26890
  (eval $ac_compile) 2>conftest.er1
 
26891
  ac_status=$?
 
26892
  grep -v '^ *+' conftest.er1 >conftest.err
 
26893
  rm -f conftest.er1
 
26894
  cat conftest.err >&5
 
26895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26896
  (exit $ac_status); } &&
 
26897
         { ac_try='test -z "$ac_c_werror_flag"
 
26898
                         || test ! -s conftest.err'
 
26899
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26900
  (eval $ac_try) 2>&5
 
26901
  ac_status=$?
 
26902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26903
  (exit $ac_status); }; } &&
 
26904
         { ac_try='test -s conftest.$ac_objext'
 
26905
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26906
  (eval $ac_try) 2>&5
 
26907
  ac_status=$?
 
26908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26909
  (exit $ac_status); }; }; then
 
26910
  ac_hi=-1 ac_mid=-1
 
26911
  while :; do
 
26912
    cat >conftest.$ac_ext <<_ACEOF
 
26913
/* confdefs.h.  */
 
26914
_ACEOF
 
26915
cat confdefs.h >>conftest.$ac_ext
 
26916
cat >>conftest.$ac_ext <<_ACEOF
 
26917
/* end confdefs.h.  */
 
26918
$ac_includes_default
 
26919
int
 
26920
main ()
 
26921
{
 
26922
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
 
26923
test_array [0] = 0
 
26924
 
 
26925
  ;
 
26926
  return 0;
 
26927
}
 
26928
_ACEOF
 
26929
rm -f conftest.$ac_objext
 
26930
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26931
  (eval $ac_compile) 2>conftest.er1
 
26932
  ac_status=$?
 
26933
  grep -v '^ *+' conftest.er1 >conftest.err
 
26934
  rm -f conftest.er1
 
26935
  cat conftest.err >&5
 
26936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26937
  (exit $ac_status); } &&
 
26938
         { ac_try='test -z "$ac_c_werror_flag"
 
26939
                         || test ! -s conftest.err'
 
26940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26941
  (eval $ac_try) 2>&5
 
26942
  ac_status=$?
 
26943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26944
  (exit $ac_status); }; } &&
 
26945
         { ac_try='test -s conftest.$ac_objext'
 
26946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26947
  (eval $ac_try) 2>&5
 
26948
  ac_status=$?
 
26949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26950
  (exit $ac_status); }; }; then
 
26951
  ac_lo=$ac_mid; break
 
26952
else
 
26953
  echo "$as_me: failed program was:" >&5
 
26954
sed 's/^/| /' conftest.$ac_ext >&5
 
26955
 
 
26956
ac_hi=`expr '(' $ac_mid ')' - 1`
 
26957
                       if test $ac_mid -le $ac_hi; then
 
26958
                         ac_lo= ac_hi=
 
26959
                         break
 
26960
                       fi
 
26961
                       ac_mid=`expr 2 '*' $ac_mid`
 
26962
fi
 
26963
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26964
  done
 
26965
else
 
26966
  echo "$as_me: failed program was:" >&5
 
26967
sed 's/^/| /' conftest.$ac_ext >&5
 
26968
 
 
26969
ac_lo= ac_hi=
 
26970
fi
 
26971
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26972
fi
 
26973
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26974
# Binary search between lo and hi bounds.
 
26975
while test "x$ac_lo" != "x$ac_hi"; do
 
26976
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
26977
  cat >conftest.$ac_ext <<_ACEOF
 
26978
/* confdefs.h.  */
 
26979
_ACEOF
 
26980
cat confdefs.h >>conftest.$ac_ext
 
26981
cat >>conftest.$ac_ext <<_ACEOF
 
26982
/* end confdefs.h.  */
 
26983
$ac_includes_default
 
26984
int
 
26985
main ()
 
26986
{
 
26987
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
 
26988
test_array [0] = 0
 
26989
 
 
26990
  ;
 
26991
  return 0;
 
26992
}
 
26993
_ACEOF
 
26994
rm -f conftest.$ac_objext
 
26995
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26996
  (eval $ac_compile) 2>conftest.er1
 
26997
  ac_status=$?
 
26998
  grep -v '^ *+' conftest.er1 >conftest.err
 
26999
  rm -f conftest.er1
 
27000
  cat conftest.err >&5
 
27001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27002
  (exit $ac_status); } &&
 
27003
         { ac_try='test -z "$ac_c_werror_flag"
 
27004
                         || test ! -s conftest.err'
 
27005
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27006
  (eval $ac_try) 2>&5
 
27007
  ac_status=$?
 
27008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27009
  (exit $ac_status); }; } &&
 
27010
         { ac_try='test -s conftest.$ac_objext'
 
27011
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27012
  (eval $ac_try) 2>&5
 
27013
  ac_status=$?
 
27014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27015
  (exit $ac_status); }; }; then
 
27016
  ac_hi=$ac_mid
 
27017
else
 
27018
  echo "$as_me: failed program was:" >&5
 
27019
sed 's/^/| /' conftest.$ac_ext >&5
 
27020
 
 
27021
ac_lo=`expr '(' $ac_mid ')' + 1`
 
27022
fi
 
27023
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27024
done
 
27025
case $ac_lo in
 
27026
?*) ac_cv_sizeof_size_t=$ac_lo;;
 
27027
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
 
27028
See \`config.log' for more details." >&5
 
27029
echo "$as_me: error: cannot compute sizeof (size_t), 77
 
27030
See \`config.log' for more details." >&2;}
 
27031
   { (exit 1); exit 1; }; } ;;
 
27032
esac
 
27033
else
 
27034
  if test "$cross_compiling" = yes; then
 
27035
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
27036
See \`config.log' for more details." >&5
 
27037
echo "$as_me: error: cannot run test program while cross compiling
 
27038
See \`config.log' for more details." >&2;}
 
27039
   { (exit 1); exit 1; }; }
 
27040
else
 
27041
  cat >conftest.$ac_ext <<_ACEOF
 
27042
/* confdefs.h.  */
 
27043
_ACEOF
 
27044
cat confdefs.h >>conftest.$ac_ext
 
27045
cat >>conftest.$ac_ext <<_ACEOF
 
27046
/* end confdefs.h.  */
 
27047
$ac_includes_default
 
27048
long longval () { return (long) (sizeof (size_t)); }
 
27049
unsigned long ulongval () { return (long) (sizeof (size_t)); }
 
27050
#include <stdio.h>
 
27051
#include <stdlib.h>
 
27052
int
 
27053
main ()
 
27054
{
 
27055
 
 
27056
  FILE *f = fopen ("conftest.val", "w");
 
27057
  if (! f)
 
27058
    exit (1);
 
27059
  if (((long) (sizeof (size_t))) < 0)
 
27060
    {
 
27061
      long i = longval ();
 
27062
      if (i != ((long) (sizeof (size_t))))
 
27063
        exit (1);
 
27064
      fprintf (f, "%ld\n", i);
 
27065
    }
 
27066
  else
 
27067
    {
 
27068
      unsigned long i = ulongval ();
 
27069
      if (i != ((long) (sizeof (size_t))))
 
27070
        exit (1);
 
27071
      fprintf (f, "%lu\n", i);
 
27072
    }
 
27073
  exit (ferror (f) || fclose (f) != 0);
 
27074
 
 
27075
  ;
 
27076
  return 0;
 
27077
}
 
27078
_ACEOF
 
27079
rm -f conftest$ac_exeext
 
27080
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27081
  (eval $ac_link) 2>&5
 
27082
  ac_status=$?
 
27083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27084
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
27085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27086
  (eval $ac_try) 2>&5
 
27087
  ac_status=$?
 
27088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27089
  (exit $ac_status); }; }; then
 
27090
  ac_cv_sizeof_size_t=`cat conftest.val`
 
27091
else
 
27092
  echo "$as_me: program exited with status $ac_status" >&5
 
27093
echo "$as_me: failed program was:" >&5
 
27094
sed 's/^/| /' conftest.$ac_ext >&5
 
27095
 
 
27096
( exit $ac_status )
 
27097
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
 
27098
See \`config.log' for more details." >&5
 
27099
echo "$as_me: error: cannot compute sizeof (size_t), 77
 
27100
See \`config.log' for more details." >&2;}
 
27101
   { (exit 1); exit 1; }; }
 
27102
fi
 
27103
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
27104
fi
 
27105
fi
 
27106
rm -f conftest.val
 
27107
else
 
27108
  ac_cv_sizeof_size_t=0
 
27109
fi
 
27110
fi
 
27111
echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
 
27112
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
 
27113
cat >>confdefs.h <<_ACEOF
 
27114
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
 
27115
_ACEOF
 
27116
 
 
27117
 
 
27118
  echo "$as_me:$LINENO: checking for unsigned long" >&5
 
27119
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
 
27120
if test "${ac_cv_type_unsigned_long+set}" = set; then
 
27121
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27122
else
 
27123
  cat >conftest.$ac_ext <<_ACEOF
 
27124
/* confdefs.h.  */
 
27125
_ACEOF
 
27126
cat confdefs.h >>conftest.$ac_ext
 
27127
cat >>conftest.$ac_ext <<_ACEOF
 
27128
/* end confdefs.h.  */
 
27129
$ac_includes_default
 
27130
int
 
27131
main ()
 
27132
{
 
27133
if ((unsigned long *) 0)
 
27134
  return 0;
 
27135
if (sizeof (unsigned long))
 
27136
  return 0;
 
27137
  ;
 
27138
  return 0;
 
27139
}
 
27140
_ACEOF
 
27141
rm -f conftest.$ac_objext
 
27142
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27143
  (eval $ac_compile) 2>conftest.er1
 
27144
  ac_status=$?
 
27145
  grep -v '^ *+' conftest.er1 >conftest.err
 
27146
  rm -f conftest.er1
 
27147
  cat conftest.err >&5
 
27148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27149
  (exit $ac_status); } &&
 
27150
         { ac_try='test -z "$ac_c_werror_flag"
 
27151
                         || test ! -s conftest.err'
 
27152
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27153
  (eval $ac_try) 2>&5
 
27154
  ac_status=$?
 
27155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27156
  (exit $ac_status); }; } &&
 
27157
         { ac_try='test -s conftest.$ac_objext'
 
27158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27159
  (eval $ac_try) 2>&5
 
27160
  ac_status=$?
 
27161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27162
  (exit $ac_status); }; }; then
 
27163
  ac_cv_type_unsigned_long=yes
 
27164
else
 
27165
  echo "$as_me: failed program was:" >&5
 
27166
sed 's/^/| /' conftest.$ac_ext >&5
 
27167
 
 
27168
ac_cv_type_unsigned_long=no
 
27169
fi
 
27170
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27171
fi
 
27172
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
 
27173
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
 
27174
 
 
27175
echo "$as_me:$LINENO: checking size of unsigned long" >&5
 
27176
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
 
27177
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
 
27178
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27179
else
 
27180
  if test "$ac_cv_type_unsigned_long" = yes; then
 
27181
  # The cast to unsigned long works around a bug in the HP C Compiler
 
27182
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
27183
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
27184
  # This bug is HP SR number 8606223364.
 
27185
  if test "$cross_compiling" = yes; then
 
27186
  # Depending upon the size, compute the lo and hi bounds.
 
27187
cat >conftest.$ac_ext <<_ACEOF
 
27188
/* confdefs.h.  */
 
27189
_ACEOF
 
27190
cat confdefs.h >>conftest.$ac_ext
 
27191
cat >>conftest.$ac_ext <<_ACEOF
 
27192
/* end confdefs.h.  */
 
27193
$ac_includes_default
 
27194
int
 
27195
main ()
 
27196
{
 
27197
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
 
27198
test_array [0] = 0
 
27199
 
 
27200
  ;
 
27201
  return 0;
 
27202
}
 
27203
_ACEOF
 
27204
rm -f conftest.$ac_objext
 
27205
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27206
  (eval $ac_compile) 2>conftest.er1
 
27207
  ac_status=$?
 
27208
  grep -v '^ *+' conftest.er1 >conftest.err
 
27209
  rm -f conftest.er1
 
27210
  cat conftest.err >&5
 
27211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27212
  (exit $ac_status); } &&
 
27213
         { ac_try='test -z "$ac_c_werror_flag"
 
27214
                         || test ! -s conftest.err'
 
27215
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27216
  (eval $ac_try) 2>&5
 
27217
  ac_status=$?
 
27218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27219
  (exit $ac_status); }; } &&
 
27220
         { ac_try='test -s conftest.$ac_objext'
 
27221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27222
  (eval $ac_try) 2>&5
 
27223
  ac_status=$?
 
27224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27225
  (exit $ac_status); }; }; then
 
27226
  ac_lo=0 ac_mid=0
 
27227
  while :; do
 
27228
    cat >conftest.$ac_ext <<_ACEOF
 
27229
/* confdefs.h.  */
 
27230
_ACEOF
 
27231
cat confdefs.h >>conftest.$ac_ext
 
27232
cat >>conftest.$ac_ext <<_ACEOF
 
27233
/* end confdefs.h.  */
 
27234
$ac_includes_default
 
27235
int
 
27236
main ()
 
27237
{
 
27238
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
 
27239
test_array [0] = 0
 
27240
 
 
27241
  ;
 
27242
  return 0;
 
27243
}
 
27244
_ACEOF
 
27245
rm -f conftest.$ac_objext
 
27246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27247
  (eval $ac_compile) 2>conftest.er1
 
27248
  ac_status=$?
 
27249
  grep -v '^ *+' conftest.er1 >conftest.err
 
27250
  rm -f conftest.er1
 
27251
  cat conftest.err >&5
 
27252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27253
  (exit $ac_status); } &&
 
27254
         { ac_try='test -z "$ac_c_werror_flag"
 
27255
                         || test ! -s conftest.err'
 
27256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27257
  (eval $ac_try) 2>&5
 
27258
  ac_status=$?
 
27259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27260
  (exit $ac_status); }; } &&
 
27261
         { ac_try='test -s conftest.$ac_objext'
 
27262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27263
  (eval $ac_try) 2>&5
 
27264
  ac_status=$?
 
27265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27266
  (exit $ac_status); }; }; then
 
27267
  ac_hi=$ac_mid; break
 
27268
else
 
27269
  echo "$as_me: failed program was:" >&5
 
27270
sed 's/^/| /' conftest.$ac_ext >&5
 
27271
 
 
27272
ac_lo=`expr $ac_mid + 1`
 
27273
                    if test $ac_lo -le $ac_mid; then
 
27274
                      ac_lo= ac_hi=
 
27275
                      break
 
27276
                    fi
 
27277
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
27278
fi
 
27279
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27280
  done
 
27281
else
 
27282
  echo "$as_me: failed program was:" >&5
 
27283
sed 's/^/| /' conftest.$ac_ext >&5
 
27284
 
 
27285
cat >conftest.$ac_ext <<_ACEOF
 
27286
/* confdefs.h.  */
 
27287
_ACEOF
 
27288
cat confdefs.h >>conftest.$ac_ext
 
27289
cat >>conftest.$ac_ext <<_ACEOF
 
27290
/* end confdefs.h.  */
 
27291
$ac_includes_default
 
27292
int
 
27293
main ()
 
27294
{
 
27295
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
 
27296
test_array [0] = 0
 
27297
 
 
27298
  ;
 
27299
  return 0;
 
27300
}
 
27301
_ACEOF
 
27302
rm -f conftest.$ac_objext
 
27303
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27304
  (eval $ac_compile) 2>conftest.er1
 
27305
  ac_status=$?
 
27306
  grep -v '^ *+' conftest.er1 >conftest.err
 
27307
  rm -f conftest.er1
 
27308
  cat conftest.err >&5
 
27309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27310
  (exit $ac_status); } &&
 
27311
         { ac_try='test -z "$ac_c_werror_flag"
 
27312
                         || test ! -s conftest.err'
 
27313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27314
  (eval $ac_try) 2>&5
 
27315
  ac_status=$?
 
27316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27317
  (exit $ac_status); }; } &&
 
27318
         { ac_try='test -s conftest.$ac_objext'
 
27319
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27320
  (eval $ac_try) 2>&5
 
27321
  ac_status=$?
 
27322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27323
  (exit $ac_status); }; }; then
 
27324
  ac_hi=-1 ac_mid=-1
 
27325
  while :; do
 
27326
    cat >conftest.$ac_ext <<_ACEOF
 
27327
/* confdefs.h.  */
 
27328
_ACEOF
 
27329
cat confdefs.h >>conftest.$ac_ext
 
27330
cat >>conftest.$ac_ext <<_ACEOF
 
27331
/* end confdefs.h.  */
 
27332
$ac_includes_default
 
27333
int
 
27334
main ()
 
27335
{
 
27336
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
 
27337
test_array [0] = 0
 
27338
 
 
27339
  ;
 
27340
  return 0;
 
27341
}
 
27342
_ACEOF
 
27343
rm -f conftest.$ac_objext
 
27344
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27345
  (eval $ac_compile) 2>conftest.er1
 
27346
  ac_status=$?
 
27347
  grep -v '^ *+' conftest.er1 >conftest.err
 
27348
  rm -f conftest.er1
 
27349
  cat conftest.err >&5
 
27350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27351
  (exit $ac_status); } &&
 
27352
         { ac_try='test -z "$ac_c_werror_flag"
 
27353
                         || test ! -s conftest.err'
 
27354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27355
  (eval $ac_try) 2>&5
 
27356
  ac_status=$?
 
27357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27358
  (exit $ac_status); }; } &&
 
27359
         { ac_try='test -s conftest.$ac_objext'
 
27360
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27361
  (eval $ac_try) 2>&5
 
27362
  ac_status=$?
 
27363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27364
  (exit $ac_status); }; }; then
 
27365
  ac_lo=$ac_mid; break
 
27366
else
 
27367
  echo "$as_me: failed program was:" >&5
 
27368
sed 's/^/| /' conftest.$ac_ext >&5
 
27369
 
 
27370
ac_hi=`expr '(' $ac_mid ')' - 1`
 
27371
                       if test $ac_mid -le $ac_hi; then
 
27372
                         ac_lo= ac_hi=
 
27373
                         break
 
27374
                       fi
 
27375
                       ac_mid=`expr 2 '*' $ac_mid`
 
27376
fi
 
27377
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27378
  done
 
27379
else
 
27380
  echo "$as_me: failed program was:" >&5
 
27381
sed 's/^/| /' conftest.$ac_ext >&5
 
27382
 
 
27383
ac_lo= ac_hi=
 
27384
fi
 
27385
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27386
fi
 
27387
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27388
# Binary search between lo and hi bounds.
 
27389
while test "x$ac_lo" != "x$ac_hi"; do
 
27390
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
27391
  cat >conftest.$ac_ext <<_ACEOF
 
27392
/* confdefs.h.  */
 
27393
_ACEOF
 
27394
cat confdefs.h >>conftest.$ac_ext
 
27395
cat >>conftest.$ac_ext <<_ACEOF
 
27396
/* end confdefs.h.  */
 
27397
$ac_includes_default
 
27398
int
 
27399
main ()
 
27400
{
 
27401
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
 
27402
test_array [0] = 0
 
27403
 
 
27404
  ;
 
27405
  return 0;
 
27406
}
 
27407
_ACEOF
 
27408
rm -f conftest.$ac_objext
 
27409
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27410
  (eval $ac_compile) 2>conftest.er1
 
27411
  ac_status=$?
 
27412
  grep -v '^ *+' conftest.er1 >conftest.err
 
27413
  rm -f conftest.er1
 
27414
  cat conftest.err >&5
 
27415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27416
  (exit $ac_status); } &&
 
27417
         { ac_try='test -z "$ac_c_werror_flag"
 
27418
                         || test ! -s conftest.err'
 
27419
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27420
  (eval $ac_try) 2>&5
 
27421
  ac_status=$?
 
27422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27423
  (exit $ac_status); }; } &&
 
27424
         { ac_try='test -s conftest.$ac_objext'
 
27425
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27426
  (eval $ac_try) 2>&5
 
27427
  ac_status=$?
 
27428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27429
  (exit $ac_status); }; }; then
 
27430
  ac_hi=$ac_mid
 
27431
else
 
27432
  echo "$as_me: failed program was:" >&5
 
27433
sed 's/^/| /' conftest.$ac_ext >&5
 
27434
 
 
27435
ac_lo=`expr '(' $ac_mid ')' + 1`
 
27436
fi
 
27437
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27438
done
 
27439
case $ac_lo in
 
27440
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
 
27441
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
 
27442
See \`config.log' for more details." >&5
 
27443
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
 
27444
See \`config.log' for more details." >&2;}
 
27445
   { (exit 1); exit 1; }; } ;;
 
27446
esac
 
27447
else
 
27448
  if test "$cross_compiling" = yes; then
 
27449
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
27450
See \`config.log' for more details." >&5
 
27451
echo "$as_me: error: cannot run test program while cross compiling
 
27452
See \`config.log' for more details." >&2;}
 
27453
   { (exit 1); exit 1; }; }
 
27454
else
 
27455
  cat >conftest.$ac_ext <<_ACEOF
 
27456
/* confdefs.h.  */
 
27457
_ACEOF
 
27458
cat confdefs.h >>conftest.$ac_ext
 
27459
cat >>conftest.$ac_ext <<_ACEOF
 
27460
/* end confdefs.h.  */
 
27461
$ac_includes_default
 
27462
long longval () { return (long) (sizeof (unsigned long)); }
 
27463
unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
 
27464
#include <stdio.h>
 
27465
#include <stdlib.h>
 
27466
int
 
27467
main ()
 
27468
{
 
27469
 
 
27470
  FILE *f = fopen ("conftest.val", "w");
 
27471
  if (! f)
 
27472
    exit (1);
 
27473
  if (((long) (sizeof (unsigned long))) < 0)
 
27474
    {
 
27475
      long i = longval ();
 
27476
      if (i != ((long) (sizeof (unsigned long))))
 
27477
        exit (1);
 
27478
      fprintf (f, "%ld\n", i);
 
27479
    }
 
27480
  else
 
27481
    {
 
27482
      unsigned long i = ulongval ();
 
27483
      if (i != ((long) (sizeof (unsigned long))))
 
27484
        exit (1);
 
27485
      fprintf (f, "%lu\n", i);
 
27486
    }
 
27487
  exit (ferror (f) || fclose (f) != 0);
 
27488
 
 
27489
  ;
 
27490
  return 0;
 
27491
}
 
27492
_ACEOF
 
27493
rm -f conftest$ac_exeext
 
27494
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27495
  (eval $ac_link) 2>&5
 
27496
  ac_status=$?
 
27497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27498
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
27499
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27500
  (eval $ac_try) 2>&5
 
27501
  ac_status=$?
 
27502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27503
  (exit $ac_status); }; }; then
 
27504
  ac_cv_sizeof_unsigned_long=`cat conftest.val`
 
27505
else
 
27506
  echo "$as_me: program exited with status $ac_status" >&5
 
27507
echo "$as_me: failed program was:" >&5
 
27508
sed 's/^/| /' conftest.$ac_ext >&5
 
27509
 
 
27510
( exit $ac_status )
 
27511
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
 
27512
See \`config.log' for more details." >&5
 
27513
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
 
27514
See \`config.log' for more details." >&2;}
 
27515
   { (exit 1); exit 1; }; }
 
27516
fi
 
27517
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
27518
fi
 
27519
fi
 
27520
rm -f conftest.val
 
27521
else
 
27522
  ac_cv_sizeof_unsigned_long=0
 
27523
fi
 
27524
fi
 
27525
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
 
27526
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
 
27527
cat >>confdefs.h <<_ACEOF
 
27528
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
 
27529
_ACEOF
 
27530
 
 
27531
 
 
27532
 
 
27533
  echo "$as_me:$LINENO: checking sizeof size_t == sizeof unsigned long" >&5
 
27534
echo $ECHO_N "checking sizeof size_t == sizeof unsigned long... $ECHO_C" >&6
 
27535
  cat >conftest.$ac_ext <<_ACEOF
 
27536
/* confdefs.h.  */
 
27537
_ACEOF
 
27538
cat confdefs.h >>conftest.$ac_ext
 
27539
cat >>conftest.$ac_ext <<_ACEOF
 
27540
/* end confdefs.h.  */
 
27541
 
 
27542
int
 
27543
main ()
 
27544
{
 
27545
 
 
27546
    #if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG
 
27547
       choke me
 
27548
    #endif
 
27549
 
 
27550
  ;
 
27551
  return 0;
 
27552
}
 
27553
_ACEOF
 
27554
rm -f conftest.$ac_objext
 
27555
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27556
  (eval $ac_compile) 2>conftest.er1
 
27557
  ac_status=$?
 
27558
  grep -v '^ *+' conftest.er1 >conftest.err
 
27559
  rm -f conftest.er1
 
27560
  cat conftest.err >&5
 
27561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27562
  (exit $ac_status); } &&
 
27563
         { ac_try='test -z "$ac_c_werror_flag"
 
27564
                         || test ! -s conftest.err'
 
27565
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27566
  (eval $ac_try) 2>&5
 
27567
  ac_status=$?
 
27568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27569
  (exit $ac_status); }; } &&
 
27570
         { ac_try='test -s conftest.$ac_objext'
 
27571
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27572
  (eval $ac_try) 2>&5
 
27573
  ac_status=$?
 
27574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27575
  (exit $ac_status); }; }; then
 
27576
  echo "$as_me:$LINENO: result: yes" >&5
 
27577
echo "${ECHO_T}yes" >&6
 
27578
else
 
27579
  echo "$as_me: failed program was:" >&5
 
27580
sed 's/^/| /' conftest.$ac_ext >&5
 
27581
 
 
27582
 
 
27583
      echo "$as_me:$LINENO: result: no" >&5
 
27584
echo "${ECHO_T}no" >&6
 
27585
      { { echo "$as_me:$LINENO: error:
 
27586
       Apparently on your system our assumption sizeof size_t == sizeof unsigned long
 
27587
       does not apply. Please mail kde-devel@kde.org with a description of your system!
 
27588
      " >&5
 
27589
echo "$as_me: error:
 
27590
       Apparently on your system our assumption sizeof size_t == sizeof unsigned long
 
27591
       does not apply. Please mail kde-devel@kde.org with a description of your system!
 
27592
      " >&2;}
 
27593
   { (exit 1); exit 1; }; }
 
27594
 
 
27595
fi
 
27596
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27597
 
 
27598
 
 
27599
# darwin needs this to initialize the environment
 
27600
 
 
27601
for ac_header in crt_externs.h
 
27602
do
 
27603
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
27604
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
27605
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
27606
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
27607
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
27608
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27609
fi
 
27610
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
27611
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
27612
else
 
27613
  # Is the header compilable?
 
27614
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
27615
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
27616
cat >conftest.$ac_ext <<_ACEOF
 
27617
/* confdefs.h.  */
 
27618
_ACEOF
 
27619
cat confdefs.h >>conftest.$ac_ext
 
27620
cat >>conftest.$ac_ext <<_ACEOF
 
27621
/* end confdefs.h.  */
 
27622
$ac_includes_default
 
27623
#include <$ac_header>
 
27624
_ACEOF
 
27625
rm -f conftest.$ac_objext
 
27626
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27627
  (eval $ac_compile) 2>conftest.er1
 
27628
  ac_status=$?
 
27629
  grep -v '^ *+' conftest.er1 >conftest.err
 
27630
  rm -f conftest.er1
 
27631
  cat conftest.err >&5
 
27632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27633
  (exit $ac_status); } &&
 
27634
         { ac_try='test -z "$ac_c_werror_flag"
 
27635
                         || test ! -s conftest.err'
 
27636
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27637
  (eval $ac_try) 2>&5
 
27638
  ac_status=$?
 
27639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27640
  (exit $ac_status); }; } &&
 
27641
         { ac_try='test -s conftest.$ac_objext'
 
27642
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27643
  (eval $ac_try) 2>&5
 
27644
  ac_status=$?
 
27645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27646
  (exit $ac_status); }; }; then
 
27647
  ac_header_compiler=yes
 
27648
else
 
27649
  echo "$as_me: failed program was:" >&5
 
27650
sed 's/^/| /' conftest.$ac_ext >&5
 
27651
 
 
27652
ac_header_compiler=no
 
27653
fi
 
27654
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27655
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
27656
echo "${ECHO_T}$ac_header_compiler" >&6
 
27657
 
 
27658
# Is the header present?
 
27659
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
27660
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
27661
cat >conftest.$ac_ext <<_ACEOF
 
27662
/* confdefs.h.  */
 
27663
_ACEOF
 
27664
cat confdefs.h >>conftest.$ac_ext
 
27665
cat >>conftest.$ac_ext <<_ACEOF
 
27666
/* end confdefs.h.  */
 
27667
#include <$ac_header>
 
27668
_ACEOF
 
27669
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
27670
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
27671
  ac_status=$?
 
27672
  grep -v '^ *+' conftest.er1 >conftest.err
 
27673
  rm -f conftest.er1
 
27674
  cat conftest.err >&5
 
27675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27676
  (exit $ac_status); } >/dev/null; then
 
27677
  if test -s conftest.err; then
 
27678
    ac_cpp_err=$ac_c_preproc_warn_flag
 
27679
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
27680
  else
 
27681
    ac_cpp_err=
 
27682
  fi
 
27683
else
 
27684
  ac_cpp_err=yes
 
27685
fi
 
27686
if test -z "$ac_cpp_err"; then
 
27687
  ac_header_preproc=yes
 
27688
else
 
27689
  echo "$as_me: failed program was:" >&5
 
27690
sed 's/^/| /' conftest.$ac_ext >&5
 
27691
 
 
27692
  ac_header_preproc=no
 
27693
fi
 
27694
rm -f conftest.err conftest.$ac_ext
 
27695
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
27696
echo "${ECHO_T}$ac_header_preproc" >&6
 
27697
 
 
27698
# So?  What about this header?
 
27699
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
27700
  yes:no: )
 
27701
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
27702
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
27703
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
27704
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
27705
    ac_header_preproc=yes
 
27706
    ;;
 
27707
  no:yes:* )
 
27708
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
27709
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
27710
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
27711
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
27712
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
27713
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
27714
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
27715
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
27716
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
27717
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
27718
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
27719
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
27720
    (
 
27721
      cat <<\_ASBOX
 
27722
## ------------------------------------------ ##
 
27723
## Report this to the AC_PACKAGE_NAME lists.  ##
 
27724
## ------------------------------------------ ##
 
27725
_ASBOX
 
27726
    ) |
 
27727
      sed "s/^/$as_me: WARNING:     /" >&2
 
27728
    ;;
 
27729
esac
 
27730
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
27731
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
27732
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
27733
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27734
else
 
27735
  eval "$as_ac_Header=\$ac_header_preproc"
 
27736
fi
 
27737
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
27738
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
27739
 
 
27740
fi
 
27741
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
27742
  cat >>confdefs.h <<_ACEOF
 
27743
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
27744
_ACEOF
 
27745
 
 
27746
fi
 
27747
 
 
27748
done
 
27749
 
 
27750
echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
 
27751
echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6
 
27752
if test "${ac_cv_func__NSGetEnviron+set}" = set; then
 
27753
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27754
else
 
27755
  cat >conftest.$ac_ext <<_ACEOF
 
27756
/* confdefs.h.  */
 
27757
_ACEOF
 
27758
cat confdefs.h >>conftest.$ac_ext
 
27759
cat >>conftest.$ac_ext <<_ACEOF
 
27760
/* end confdefs.h.  */
 
27761
/* Define _NSGetEnviron to an innocuous variant, in case <limits.h> declares _NSGetEnviron.
 
27762
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
27763
#define _NSGetEnviron innocuous__NSGetEnviron
 
27764
 
 
27765
/* System header to define __stub macros and hopefully few prototypes,
 
27766
    which can conflict with char _NSGetEnviron (); below.
 
27767
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
27768
    <limits.h> exists even on freestanding compilers.  */
 
27769
 
 
27770
#ifdef __STDC__
 
27771
# include <limits.h>
 
27772
#else
 
27773
# include <assert.h>
 
27774
#endif
 
27775
 
 
27776
#undef _NSGetEnviron
 
27777
 
 
27778
/* Override any gcc2 internal prototype to avoid an error.  */
 
27779
#ifdef __cplusplus
 
27780
extern "C"
 
27781
{
 
27782
#endif
 
27783
/* We use char because int might match the return type of a gcc2
 
27784
   builtin and then its argument prototype would still apply.  */
 
27785
char _NSGetEnviron ();
 
27786
/* The GNU C library defines this for functions which it implements
 
27787
    to always fail with ENOSYS.  Some functions are actually named
 
27788
    something starting with __ and the normal name is an alias.  */
 
27789
#if defined (__stub__NSGetEnviron) || defined (__stub____NSGetEnviron)
 
27790
choke me
 
27791
#else
 
27792
char (*f) () = _NSGetEnviron;
 
27793
#endif
 
27794
#ifdef __cplusplus
 
27795
}
 
27796
#endif
 
27797
 
 
27798
int
 
27799
main ()
 
27800
{
 
27801
return f != _NSGetEnviron;
 
27802
  ;
 
27803
  return 0;
 
27804
}
 
27805
_ACEOF
 
27806
rm -f conftest.$ac_objext conftest$ac_exeext
 
27807
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27808
  (eval $ac_link) 2>conftest.er1
 
27809
  ac_status=$?
 
27810
  grep -v '^ *+' conftest.er1 >conftest.err
 
27811
  rm -f conftest.er1
 
27812
  cat conftest.err >&5
 
27813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27814
  (exit $ac_status); } &&
 
27815
         { ac_try='test -z "$ac_c_werror_flag"
 
27816
                         || test ! -s conftest.err'
 
27817
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27818
  (eval $ac_try) 2>&5
 
27819
  ac_status=$?
 
27820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27821
  (exit $ac_status); }; } &&
 
27822
         { ac_try='test -s conftest$ac_exeext'
 
27823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27824
  (eval $ac_try) 2>&5
 
27825
  ac_status=$?
 
27826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27827
  (exit $ac_status); }; }; then
 
27828
  ac_cv_func__NSGetEnviron=yes
 
27829
else
 
27830
  echo "$as_me: failed program was:" >&5
 
27831
sed 's/^/| /' conftest.$ac_ext >&5
 
27832
 
 
27833
ac_cv_func__NSGetEnviron=no
 
27834
fi
 
27835
rm -f conftest.err conftest.$ac_objext \
 
27836
      conftest$ac_exeext conftest.$ac_ext
 
27837
fi
 
27838
echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
 
27839
echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6
 
27840
if test $ac_cv_func__NSGetEnviron = yes; then
 
27841
 
 
27842
cat >>confdefs.h <<\_ACEOF
 
27843
#define HAVE_NSGETENVIRON 1
 
27844
_ACEOF
 
27845
 
 
27846
fi
 
27847
 
 
27848
 
 
27849
 
 
27850
 
 
27851
 
 
27852
 
 
27853
 
 
27854
 
 
27855
 
 
27856
 
 
27857
for ac_func in vsnprintf snprintf
 
27858
do
 
27859
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
27860
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
27861
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
27862
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
27863
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27864
else
 
27865
  cat >conftest.$ac_ext <<_ACEOF
 
27866
/* confdefs.h.  */
 
27867
_ACEOF
 
27868
cat confdefs.h >>conftest.$ac_ext
 
27869
cat >>conftest.$ac_ext <<_ACEOF
 
27870
/* end confdefs.h.  */
 
27871
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
27872
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
27873
#define $ac_func innocuous_$ac_func
 
27874
 
 
27875
/* System header to define __stub macros and hopefully few prototypes,
 
27876
    which can conflict with char $ac_func (); below.
 
27877
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
27878
    <limits.h> exists even on freestanding compilers.  */
 
27879
 
 
27880
#ifdef __STDC__
 
27881
# include <limits.h>
 
27882
#else
 
27883
# include <assert.h>
 
27884
#endif
 
27885
 
 
27886
#undef $ac_func
 
27887
 
 
27888
/* Override any gcc2 internal prototype to avoid an error.  */
 
27889
#ifdef __cplusplus
 
27890
extern "C"
 
27891
{
 
27892
#endif
 
27893
/* We use char because int might match the return type of a gcc2
 
27894
   builtin and then its argument prototype would still apply.  */
 
27895
char $ac_func ();
 
27896
/* The GNU C library defines this for functions which it implements
 
27897
    to always fail with ENOSYS.  Some functions are actually named
 
27898
    something starting with __ and the normal name is an alias.  */
 
27899
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
27900
choke me
 
27901
#else
 
27902
char (*f) () = $ac_func;
 
27903
#endif
 
27904
#ifdef __cplusplus
 
27905
}
 
27906
#endif
 
27907
 
 
27908
int
 
27909
main ()
 
27910
{
 
27911
return f != $ac_func;
 
27912
  ;
 
27913
  return 0;
 
27914
}
 
27915
_ACEOF
 
27916
rm -f conftest.$ac_objext conftest$ac_exeext
 
27917
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27918
  (eval $ac_link) 2>conftest.er1
 
27919
  ac_status=$?
 
27920
  grep -v '^ *+' conftest.er1 >conftest.err
 
27921
  rm -f conftest.er1
 
27922
  cat conftest.err >&5
 
27923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27924
  (exit $ac_status); } &&
 
27925
         { ac_try='test -z "$ac_c_werror_flag"
 
27926
                         || test ! -s conftest.err'
 
27927
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27928
  (eval $ac_try) 2>&5
 
27929
  ac_status=$?
 
27930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27931
  (exit $ac_status); }; } &&
 
27932
         { ac_try='test -s conftest$ac_exeext'
 
27933
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27934
  (eval $ac_try) 2>&5
 
27935
  ac_status=$?
 
27936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27937
  (exit $ac_status); }; }; then
 
27938
  eval "$as_ac_var=yes"
 
27939
else
 
27940
  echo "$as_me: failed program was:" >&5
 
27941
sed 's/^/| /' conftest.$ac_ext >&5
 
27942
 
 
27943
eval "$as_ac_var=no"
 
27944
fi
 
27945
rm -f conftest.err conftest.$ac_objext \
 
27946
      conftest$ac_exeext conftest.$ac_ext
 
27947
fi
 
27948
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
27949
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
27950
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
27951
  cat >>confdefs.h <<_ACEOF
 
27952
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
27953
_ACEOF
 
27954
 
 
27955
fi
 
27956
done
 
27957
 
 
27958
 
 
27959
 
 
27960
 
 
27961
 
 
27962
 
 
27963
 
 
27964
 
 
27965
 
 
27966
# Check whether --enable-embedded or --disable-embedded was given.
 
27967
if test "${enable_embedded+set}" = set; then
 
27968
  enableval="$enable_embedded"
 
27969
  kde_use_qt_emb=$enableval
 
27970
else
 
27971
  kde_use_qt_emb=no
 
27972
 
 
27973
fi;
 
27974
 
 
27975
# Check whether --enable-qtopia or --disable-qtopia was given.
 
27976
if test "${enable_qtopia+set}" = set; then
 
27977
  enableval="$enable_qtopia"
 
27978
  kde_use_qt_emb_palm=$enableval
 
27979
else
 
27980
  kde_use_qt_emb_palm=no
 
27981
 
 
27982
fi;
 
27983
 
 
27984
# Check whether --enable-mac or --disable-mac was given.
 
27985
if test "${enable_mac+set}" = set; then
 
27986
  enableval="$enable_mac"
 
27987
  kde_use_qt_mac=$enableval
 
27988
else
 
27989
  kde_use_qt_mac=no
 
27990
 
 
27991
fi;
 
27992
 
 
27993
# used to disable x11-specific stuff on special platforms
 
27994
 
 
27995
 
 
27996
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
 
27997
  include_x11_TRUE=
 
27998
  include_x11_FALSE='#'
 
27999
else
 
28000
  include_x11_TRUE='#'
 
28001
  include_x11_FALSE=
 
28002
fi
 
28003
 
 
28004
 
 
28005
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
 
28006
 
 
28007
echo "$as_me:$LINENO: checking for X" >&5
 
28008
echo $ECHO_N "checking for X... $ECHO_C" >&6
 
28009
 
 
28010
if test "${kde_cv_have_x+set}" = set; then
 
28011
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28012
else
 
28013
  # One or both of the vars are not set, and there is no cached value.
 
28014
if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
 
28015
   kde_x_includes=NO
 
28016
else
 
28017
   kde_x_includes=$x_includes
 
28018
fi
 
28019
if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
 
28020
   kde_x_libraries=NO
 
28021
else
 
28022
   kde_x_libraries=$x_libraries
 
28023
fi
 
28024
 
 
28025
# below we use the standard autoconf calls
 
28026
ac_x_libraries=$kde_x_libraries
 
28027
ac_x_includes=$kde_x_includes
 
28028
 
 
28029
 
 
28030
 
 
28031
 
 
28032
if test "$ac_x_includes" = NO; then
 
28033
  # Guess where to find include files, by looking for this one X11 .h file.
 
28034
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
 
28035
 
 
28036
  # First, try using that file with no special directory specified.
 
28037
cat >conftest.$ac_ext <<_ACEOF
 
28038
/* confdefs.h.  */
 
28039
_ACEOF
 
28040
cat confdefs.h >>conftest.$ac_ext
 
28041
cat >>conftest.$ac_ext <<_ACEOF
 
28042
/* end confdefs.h.  */
 
28043
#include <$x_direct_test_include>
 
28044
_ACEOF
 
28045
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
28046
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
28047
  ac_status=$?
 
28048
  grep -v '^ *+' conftest.er1 >conftest.err
 
28049
  rm -f conftest.er1
 
28050
  cat conftest.err >&5
 
28051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28052
  (exit $ac_status); } >/dev/null; then
 
28053
  if test -s conftest.err; then
 
28054
    ac_cpp_err=$ac_c_preproc_warn_flag
 
28055
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
28056
  else
 
28057
    ac_cpp_err=
 
28058
  fi
 
28059
else
 
28060
  ac_cpp_err=yes
 
28061
fi
 
28062
if test -z "$ac_cpp_err"; then
 
28063
  # We can compile using X headers with no special include directory.
 
28064
ac_x_includes=
 
28065
else
 
28066
  echo "$as_me: failed program was:" >&5
 
28067
sed 's/^/| /' conftest.$ac_ext >&5
 
28068
 
 
28069
  # Look for the header file in a standard set of common directories.
 
28070
# Check X11 before X11Rn because it is often a symlink to the current release.
 
28071
  for ac_dir in               \
 
28072
    /usr/X11/include          \
 
28073
    /usr/X11R6/include        \
 
28074
    /usr/X11R5/include        \
 
28075
    /usr/X11R4/include        \
 
28076
                              \
 
28077
    /usr/include/X11          \
 
28078
    /usr/include/X11R6        \
 
28079
    /usr/include/X11R5        \
 
28080
    /usr/include/X11R4        \
 
28081
                              \
 
28082
    /usr/local/X11/include    \
 
28083
    /usr/local/X11R6/include  \
 
28084
    /usr/local/X11R5/include  \
 
28085
    /usr/local/X11R4/include  \
 
28086
                              \
 
28087
    /usr/local/include/X11    \
 
28088
    /usr/local/include/X11R6  \
 
28089
    /usr/local/include/X11R5  \
 
28090
    /usr/local/include/X11R4  \
 
28091
                              \
 
28092
    /usr/X386/include         \
 
28093
    /usr/x386/include         \
 
28094
    /usr/XFree86/include/X11  \
 
28095
                              \
 
28096
    /usr/include              \
 
28097
    /usr/local/include        \
 
28098
    /usr/unsupported/include  \
 
28099
    /usr/athena/include       \
 
28100
    /usr/local/x11r5/include  \
 
28101
    /usr/lpp/Xamples/include  \
 
28102
                              \
 
28103
    /usr/openwin/include      \
 
28104
    /usr/openwin/share/include \
 
28105
    ; \
 
28106
  do
 
28107
    if test -r "$ac_dir/$x_direct_test_include"; then
 
28108
      ac_x_includes=$ac_dir
 
28109
      break
 
28110
    fi
 
28111
  done
 
28112
fi
 
28113
rm -f conftest.err conftest.$ac_ext
 
28114
fi # $ac_x_includes = NO
 
28115
 
 
28116
if test "$ac_x_libraries" = NO; then
 
28117
  # Check for the libraries.
 
28118
 
 
28119
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
 
28120
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
 
28121
 
 
28122
  # See if we find them without any special options.
 
28123
  # Don't add to $LIBS permanently.
 
28124
  ac_save_LIBS="$LIBS"
 
28125
  LIBS="-l$x_direct_test_library $LIBS"
 
28126
cat >conftest.$ac_ext <<_ACEOF
 
28127
/* confdefs.h.  */
 
28128
_ACEOF
 
28129
cat confdefs.h >>conftest.$ac_ext
 
28130
cat >>conftest.$ac_ext <<_ACEOF
 
28131
/* end confdefs.h.  */
 
28132
#include <X11/Intrinsic.h>
 
28133
int
 
28134
main ()
 
28135
{
 
28136
${x_direct_test_function}(1)
 
28137
  ;
 
28138
  return 0;
 
28139
}
 
28140
_ACEOF
 
28141
rm -f conftest.$ac_objext conftest$ac_exeext
 
28142
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28143
  (eval $ac_link) 2>conftest.er1
 
28144
  ac_status=$?
 
28145
  grep -v '^ *+' conftest.er1 >conftest.err
 
28146
  rm -f conftest.er1
 
28147
  cat conftest.err >&5
 
28148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28149
  (exit $ac_status); } &&
 
28150
         { ac_try='test -z "$ac_c_werror_flag"
 
28151
                         || test ! -s conftest.err'
 
28152
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28153
  (eval $ac_try) 2>&5
 
28154
  ac_status=$?
 
28155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28156
  (exit $ac_status); }; } &&
 
28157
         { ac_try='test -s conftest$ac_exeext'
 
28158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28159
  (eval $ac_try) 2>&5
 
28160
  ac_status=$?
 
28161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28162
  (exit $ac_status); }; }; then
 
28163
  LIBS="$ac_save_LIBS"
 
28164
# We can link X programs with no special library path.
 
28165
ac_x_libraries=
 
28166
else
 
28167
  echo "$as_me: failed program was:" >&5
 
28168
sed 's/^/| /' conftest.$ac_ext >&5
 
28169
 
 
28170
LIBS="$ac_save_LIBS"
 
28171
# First see if replacing the include by lib works.
 
28172
# Check X11 before X11Rn because it is often a symlink to the current release.
 
28173
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib${kdelibsuff}/` \
 
28174
    /usr/X11/lib${kdelibsuff}           \
 
28175
    /usr/X11R6/lib${kdelibsuff}         \
 
28176
    /usr/X11R5/lib${kdelibsuff}         \
 
28177
    /usr/X11R4/lib${kdelibsuff}         \
 
28178
                                        \
 
28179
    /usr/lib${kdelibsuff}/X11           \
 
28180
    /usr/lib${kdelibsuff}/X11R6         \
 
28181
    /usr/lib${kdelibsuff}/X11R5         \
 
28182
    /usr/lib${kdelibsuff}/X11R4         \
 
28183
                                        \
 
28184
    /usr/local/X11/lib${kdelibsuff}     \
 
28185
    /usr/local/X11R6/lib${kdelibsuff}   \
 
28186
    /usr/local/X11R5/lib${kdelibsuff}   \
 
28187
    /usr/local/X11R4/lib${kdelibsuff}   \
 
28188
                                        \
 
28189
    /usr/local/lib${kdelibsuff}/X11     \
 
28190
    /usr/local/lib${kdelibsuff}/X11R6   \
 
28191
    /usr/local/lib${kdelibsuff}/X11R5   \
 
28192
    /usr/local/lib${kdelibsuff}/X11R4   \
 
28193
                                        \
 
28194
    /usr/X386/lib${kdelibsuff}          \
 
28195
    /usr/x386/lib${kdelibsuff}          \
 
28196
    /usr/XFree86/lib${kdelibsuff}/X11   \
 
28197
                                        \
 
28198
    /usr/lib${kdelibsuff}               \
 
28199
    /usr/local/lib${kdelibsuff}         \
 
28200
    /usr/unsupported/lib${kdelibsuff}   \
 
28201
    /usr/athena/lib${kdelibsuff}        \
 
28202
    /usr/local/x11r5/lib${kdelibsuff}   \
 
28203
    /usr/lpp/Xamples/lib${kdelibsuff}   \
 
28204
    /lib/usr/lib${kdelibsuff}/X11       \
 
28205
                                        \
 
28206
    /usr/openwin/lib${kdelibsuff}       \
 
28207
    /usr/openwin/share/lib${kdelibsuff} \
 
28208
    ; \
 
28209
do
 
28210
  for ac_extension in a so sl; do
 
28211
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
 
28212
      ac_x_libraries=$ac_dir
 
28213
      break 2
 
28214
    fi
 
28215
  done
 
28216
done
 
28217
fi
 
28218
rm -f conftest.err conftest.$ac_objext \
 
28219
      conftest$ac_exeext conftest.$ac_ext
 
28220
fi # $ac_x_libraries = NO
 
28221
 
 
28222
case "$host" in
 
28223
mips-sgi-irix6*)
 
28224
  ;;
 
28225
*-*-solaris*)
 
28226
  ;;
 
28227
*)
 
28228
  rm -fr conftest.dir
 
28229
if mkdir conftest.dir; then
 
28230
  cd conftest.dir
 
28231
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 
28232
  cat >Imakefile <<'_ACEOF'
 
28233
acfindx:
 
28234
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
28235
_ACEOF
 
28236
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
28237
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
28238
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
28239
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 
28240
    for ac_extension in a so sl; do
 
28241
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
 
28242
         test -f $ac_im_libdir/libX11.$ac_extension; then
 
28243
        ac_im_usrlibdir=$ac_im_libdir; break
 
28244
      fi
 
28245
    done
 
28246
    # Screen out bogus values from the imake configuration.  They are
 
28247
    # bogus both because they are the default anyway, and because
 
28248
    # using them would break gcc on systems where it needs fixed includes.
 
28249
    case $ac_im_incroot in
 
28250
        /usr/include) ;;
 
28251
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
28252
    esac
 
28253
    case $ac_im_usrlibdir in
 
28254
        /usr/lib | /lib) ;;
 
28255
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
28256
    esac
 
28257
  fi
 
28258
  cd ..
 
28259
  rm -fr conftest.dir
 
28260
fi
 
28261
 
 
28262
  if test -z "$ac_x_includes"; then
 
28263
    ac_x_includes="."
 
28264
  fi
 
28265
  if test -z "$ac_x_libraries"; then
 
28266
    ac_x_libraries="/usr/lib${kdelibsuff}"
 
28267
  fi
 
28268
esac
 
28269
#from now on we use our own again
 
28270
 
 
28271
# when the user already gave --x-includes, we ignore
 
28272
# what the standard autoconf macros told us.
 
28273
if test "$kde_x_includes" = NO; then
 
28274
  kde_x_includes=$ac_x_includes
 
28275
fi
 
28276
 
 
28277
# for --x-libraries too
 
28278
if test "$kde_x_libraries" = NO; then
 
28279
  kde_x_libraries=$ac_x_libraries
 
28280
fi
 
28281
 
 
28282
if test "$kde_x_includes" = NO; then
 
28283
  { { echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and add the correct paths!" >&5
 
28284
echo "$as_me: error: Can't find X includes. Please check your installation and add the correct paths!" >&2;}
 
28285
   { (exit 1); exit 1; }; }
 
28286
fi
 
28287
 
 
28288
if test "$kde_x_libraries" = NO; then
 
28289
  { { echo "$as_me:$LINENO: error: Can't find X libraries. Please check your installation and add the correct paths!" >&5
 
28290
echo "$as_me: error: Can't find X libraries. Please check your installation and add the correct paths!" >&2;}
 
28291
   { (exit 1); exit 1; }; }
 
28292
fi
 
28293
 
 
28294
# Record where we found X for the cache.
 
28295
kde_cv_have_x="have_x=yes \
 
28296
         kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
 
28297
 
 
28298
fi
 
28299
 
 
28300
eval "$kde_cv_have_x"
 
28301
 
 
28302
if test "$have_x" != yes; then
 
28303
  echo "$as_me:$LINENO: result: $have_x" >&5
 
28304
echo "${ECHO_T}$have_x" >&6
 
28305
  no_x=yes
 
28306
else
 
28307
  echo "$as_me:$LINENO: result: libraries $kde_x_libraries, headers $kde_x_includes" >&5
 
28308
echo "${ECHO_T}libraries $kde_x_libraries, headers $kde_x_includes" >&6
 
28309
fi
 
28310
 
 
28311
if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
 
28312
  X_INCLUDES=""
 
28313
  x_includes=".";  else
 
28314
  x_includes=$kde_x_includes
 
28315
  X_INCLUDES="-I$x_includes"
 
28316
fi
 
28317
 
 
28318
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
 
28319
  X_LDFLAGS=""
 
28320
  x_libraries="/usr/lib";  else
 
28321
  x_libraries=$kde_x_libraries
 
28322
  X_LDFLAGS="-L$x_libraries"
 
28323
fi
 
28324
all_includes="$X_INCLUDES"
 
28325
all_libraries="$X_LDFLAGS $LDFLAGS_AS_NEEDED $LDFLAGS_NEW_DTAGS"
 
28326
 
 
28327
# Check for libraries that X11R6 Xt/Xaw programs need.
 
28328
ac_save_LDFLAGS="$LDFLAGS"
 
28329
LDFLAGS="$LDFLAGS $X_LDFLAGS"
 
28330
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
 
28331
# check for ICE first), but we must link in the order -lSM -lICE or
 
28332
# we get undefined symbols.  So assume we have SM if we have ICE.
 
28333
# These have to be linked with before -lX11, unlike the other
 
28334
# libraries we check for below, so use a different variable.
 
28335
#  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
 
28336
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
 
28337
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
 
28338
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
 
28339
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28340
else
 
28341
  ac_check_lib_save_LIBS=$LIBS
 
28342
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 
28343
cat >conftest.$ac_ext <<_ACEOF
 
28344
/* confdefs.h.  */
 
28345
_ACEOF
 
28346
cat confdefs.h >>conftest.$ac_ext
 
28347
cat >>conftest.$ac_ext <<_ACEOF
 
28348
/* end confdefs.h.  */
 
28349
 
 
28350
/* Override any gcc2 internal prototype to avoid an error.  */
 
28351
#ifdef __cplusplus
 
28352
extern "C"
 
28353
#endif
 
28354
/* We use char because int might match the return type of a gcc2
 
28355
   builtin and then its argument prototype would still apply.  */
 
28356
char IceConnectionNumber ();
 
28357
int
 
28358
main ()
 
28359
{
 
28360
IceConnectionNumber ();
 
28361
  ;
 
28362
  return 0;
 
28363
}
 
28364
_ACEOF
 
28365
rm -f conftest.$ac_objext conftest$ac_exeext
 
28366
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28367
  (eval $ac_link) 2>conftest.er1
 
28368
  ac_status=$?
 
28369
  grep -v '^ *+' conftest.er1 >conftest.err
 
28370
  rm -f conftest.er1
 
28371
  cat conftest.err >&5
 
28372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28373
  (exit $ac_status); } &&
 
28374
         { ac_try='test -z "$ac_c_werror_flag"
 
28375
                         || test ! -s conftest.err'
 
28376
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28377
  (eval $ac_try) 2>&5
 
28378
  ac_status=$?
 
28379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28380
  (exit $ac_status); }; } &&
 
28381
         { ac_try='test -s conftest$ac_exeext'
 
28382
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28383
  (eval $ac_try) 2>&5
 
28384
  ac_status=$?
 
28385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28386
  (exit $ac_status); }; }; then
 
28387
  ac_cv_lib_ICE_IceConnectionNumber=yes
 
28388
else
 
28389
  echo "$as_me: failed program was:" >&5
 
28390
sed 's/^/| /' conftest.$ac_ext >&5
 
28391
 
 
28392
ac_cv_lib_ICE_IceConnectionNumber=no
 
28393
fi
 
28394
rm -f conftest.err conftest.$ac_objext \
 
28395
      conftest$ac_exeext conftest.$ac_ext
 
28396
LIBS=$ac_check_lib_save_LIBS
 
28397
fi
 
28398
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
28399
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
 
28400
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
 
28401
  LIBSM="-lSM -lICE"
 
28402
fi
 
28403
 
 
28404
LDFLAGS="$ac_save_LDFLAGS"
 
28405
 
 
28406
LIB_X11='-lX11 $(LIBSOCKET)'
 
28407
 
 
28408
echo "$as_me:$LINENO: checking for libXext" >&5
 
28409
echo $ECHO_N "checking for libXext... $ECHO_C" >&6
 
28410
if test "${kde_cv_have_libXext+set}" = set; then
 
28411
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28412
else
 
28413
 
 
28414
kde_ldflags_safe="$LDFLAGS"
 
28415
kde_libs_safe="$LIBS"
 
28416
 
 
28417
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
 
28418
LIBS="-lXext -lX11 $LIBSOCKET"
 
28419
 
 
28420
cat >conftest.$ac_ext <<_ACEOF
 
28421
/* confdefs.h.  */
 
28422
_ACEOF
 
28423
cat confdefs.h >>conftest.$ac_ext
 
28424
cat >>conftest.$ac_ext <<_ACEOF
 
28425
/* end confdefs.h.  */
 
28426
 
 
28427
#include <stdio.h>
 
28428
#ifdef STDC_HEADERS
 
28429
# include <stdlib.h>
 
28430
#endif
 
28431
 
 
28432
int
 
28433
main ()
 
28434
{
 
28435
 
 
28436
printf("hello Xext\n");
 
28437
 
 
28438
  ;
 
28439
  return 0;
 
28440
}
 
28441
_ACEOF
 
28442
rm -f conftest.$ac_objext conftest$ac_exeext
 
28443
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28444
  (eval $ac_link) 2>conftest.er1
 
28445
  ac_status=$?
 
28446
  grep -v '^ *+' conftest.er1 >conftest.err
 
28447
  rm -f conftest.er1
 
28448
  cat conftest.err >&5
 
28449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28450
  (exit $ac_status); } &&
 
28451
         { ac_try='test -z "$ac_c_werror_flag"
 
28452
                         || test ! -s conftest.err'
 
28453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28454
  (eval $ac_try) 2>&5
 
28455
  ac_status=$?
 
28456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28457
  (exit $ac_status); }; } &&
 
28458
         { ac_try='test -s conftest$ac_exeext'
 
28459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28460
  (eval $ac_try) 2>&5
 
28461
  ac_status=$?
 
28462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28463
  (exit $ac_status); }; }; then
 
28464
  kde_cv_have_libXext=yes
 
28465
else
 
28466
  echo "$as_me: failed program was:" >&5
 
28467
sed 's/^/| /' conftest.$ac_ext >&5
 
28468
 
 
28469
kde_cv_have_libXext=no
 
28470
 
 
28471
fi
 
28472
rm -f conftest.err conftest.$ac_objext \
 
28473
      conftest$ac_exeext conftest.$ac_ext
 
28474
 
 
28475
LDFLAGS=$kde_ldflags_safe
 
28476
LIBS=$kde_libs_safe
 
28477
 
 
28478
fi
 
28479
 
 
28480
 
 
28481
echo "$as_me:$LINENO: result: $kde_cv_have_libXext" >&5
 
28482
echo "${ECHO_T}$kde_cv_have_libXext" >&6
 
28483
 
 
28484
if test "$kde_cv_have_libXext" = "no"; then
 
28485
  { { echo "$as_me:$LINENO: error: We need a working libXext to proceed. Since configure
 
28486
can't find it itself, we stop here assuming that make wouldn't find
 
28487
them either." >&5
 
28488
echo "$as_me: error: We need a working libXext to proceed. Since configure
 
28489
can't find it itself, we stop here assuming that make wouldn't find
 
28490
them either." >&2;}
 
28491
   { (exit 1); exit 1; }; }
 
28492
fi
 
28493
 
 
28494
LIB_XEXT="-lXext"
 
28495
QTE_NORTTI=""
 
28496
 
 
28497
elif test "$kde_use_qt_emb" = "yes"; then
 
28498
    CPPFLAGS=-DQWS
 
28499
  CXXFLAGS="$CXXFLAGS -fno-rtti"
 
28500
  QTE_NORTTI="-fno-rtti -DQWS"
 
28501
  X_PRE_LIBS=""
 
28502
  LIB_X11=""
 
28503
  LIB_XEXT=""
 
28504
  LIB_XRENDER=""
 
28505
  LIBSM=""
 
28506
  X_INCLUDES=""
 
28507
  X_LDFLAGS=""
 
28508
  x_includes=""
 
28509
  x_libraries=""
 
28510
elif test "$kde_use_qt_mac" = "yes"; then
 
28511
      CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp"
 
28512
  CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp"
 
28513
  X_PRE_LIBS=""
 
28514
  LIB_X11=""
 
28515
  LIB_XEXT=""
 
28516
  LIB_XRENDER=""
 
28517
  LIBSM=""
 
28518
  X_INCLUDES=""
 
28519
  X_LDFLAGS=""
 
28520
  x_includes=""
 
28521
  x_libraries=""
 
28522
fi
 
28523
 
 
28524
 
 
28525
 
 
28526
 
 
28527
 
 
28528
 
 
28529
 
 
28530
 
 
28531
 
 
28532
 
 
28533
 
 
28534
 
 
28535
 
 
28536
                LIBPTHREAD=""
 
28537
 
 
28538
  if test -n "$PTHREAD_LIBS"; then
 
28539
    if test "x$PTHREAD_LIBS" = "x-pthread" ; then
 
28540
      LIBPTHREAD="PTHREAD"
 
28541
    else
 
28542
      PTHREAD_LIBS_save="$PTHREAD_LIBS"
 
28543
      PTHREAD_LIBS=`echo "$PTHREAD_LIBS_save" | sed -e 's,^-l,,g'`
 
28544
      echo "$as_me:$LINENO: checking for pthread_create in $PTHREAD_LIBS" >&5
 
28545
echo $ECHO_N "checking for pthread_create in $PTHREAD_LIBS... $ECHO_C" >&6
 
28546
 
 
28547
     kde_save_LDFLAGS="$LDFLAGS"
 
28548
          kde_save_LIBS="$LIBS"
 
28549
     LDFLAGS="$LDFLAGS $all_libraries"
 
28550
     case $host_os in
 
28551
      aix*) LDFLAGS="-brtl $LDFLAGS"
 
28552
        test "$GCC" = yes && LDFLAGS="-Wl,$LDFLAGS"
 
28553
        ;;
 
28554
     esac
 
28555
     as_ac_Lib=`echo "ac_cv_lib_$PTHREAD_LIBS''_pthread_create" | $as_tr_sh`
 
28556
echo "$as_me:$LINENO: checking for pthread_create in -l$PTHREAD_LIBS" >&5
 
28557
echo $ECHO_N "checking for pthread_create in -l$PTHREAD_LIBS... $ECHO_C" >&6
 
28558
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
 
28559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28560
else
 
28561
  ac_check_lib_save_LIBS=$LIBS
 
28562
LIBS="-l$PTHREAD_LIBS  $LIBS"
 
28563
cat >conftest.$ac_ext <<_ACEOF
 
28564
/* confdefs.h.  */
 
28565
_ACEOF
 
28566
cat confdefs.h >>conftest.$ac_ext
 
28567
cat >>conftest.$ac_ext <<_ACEOF
 
28568
/* end confdefs.h.  */
 
28569
 
 
28570
/* Override any gcc2 internal prototype to avoid an error.  */
 
28571
#ifdef __cplusplus
 
28572
extern "C"
 
28573
#endif
 
28574
/* We use char because int might match the return type of a gcc2
 
28575
   builtin and then its argument prototype would still apply.  */
 
28576
char pthread_create ();
 
28577
int
 
28578
main ()
 
28579
{
 
28580
pthread_create ();
 
28581
  ;
 
28582
  return 0;
 
28583
}
 
28584
_ACEOF
 
28585
rm -f conftest.$ac_objext conftest$ac_exeext
 
28586
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28587
  (eval $ac_link) 2>conftest.er1
 
28588
  ac_status=$?
 
28589
  grep -v '^ *+' conftest.er1 >conftest.err
 
28590
  rm -f conftest.er1
 
28591
  cat conftest.err >&5
 
28592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28593
  (exit $ac_status); } &&
 
28594
         { ac_try='test -z "$ac_c_werror_flag"
 
28595
                         || test ! -s conftest.err'
 
28596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28597
  (eval $ac_try) 2>&5
 
28598
  ac_status=$?
 
28599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28600
  (exit $ac_status); }; } &&
 
28601
         { ac_try='test -s conftest$ac_exeext'
 
28602
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28603
  (eval $ac_try) 2>&5
 
28604
  ac_status=$?
 
28605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28606
  (exit $ac_status); }; }; then
 
28607
  eval "$as_ac_Lib=yes"
 
28608
else
 
28609
  echo "$as_me: failed program was:" >&5
 
28610
sed 's/^/| /' conftest.$ac_ext >&5
 
28611
 
 
28612
eval "$as_ac_Lib=no"
 
28613
fi
 
28614
rm -f conftest.err conftest.$ac_objext \
 
28615
      conftest$ac_exeext conftest.$ac_ext
 
28616
LIBS=$ac_check_lib_save_LIBS
 
28617
fi
 
28618
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
 
28619
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
 
28620
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
28621
  LIBPTHREAD="$PTHREAD_LIBS_save"
 
28622
fi
 
28623
 
 
28624
     LDFLAGS="$kde_save_LDFLAGS"
 
28625
     LIBS="$kde_save_LIBS"
 
28626
 
 
28627
      PTHREAD_LIBS="$PTHREAD_LIBS_save"
 
28628
    fi
 
28629
  fi
 
28630
 
 
28631
    if test -z "$LIBPTHREAD"; then
 
28632
    echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
28633
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
 
28634
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
 
28635
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28636
else
 
28637
  ac_check_lib_save_LIBS=$LIBS
 
28638
LIBS="-lpthread  $LIBS"
 
28639
cat >conftest.$ac_ext <<_ACEOF
 
28640
/* confdefs.h.  */
 
28641
_ACEOF
 
28642
cat confdefs.h >>conftest.$ac_ext
 
28643
cat >>conftest.$ac_ext <<_ACEOF
 
28644
/* end confdefs.h.  */
 
28645
 
 
28646
/* Override any gcc2 internal prototype to avoid an error.  */
 
28647
#ifdef __cplusplus
 
28648
extern "C"
 
28649
#endif
 
28650
/* We use char because int might match the return type of a gcc2
 
28651
   builtin and then its argument prototype would still apply.  */
 
28652
char pthread_create ();
 
28653
int
 
28654
main ()
 
28655
{
 
28656
pthread_create ();
 
28657
  ;
 
28658
  return 0;
 
28659
}
 
28660
_ACEOF
 
28661
rm -f conftest.$ac_objext conftest$ac_exeext
 
28662
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28663
  (eval $ac_link) 2>conftest.er1
 
28664
  ac_status=$?
 
28665
  grep -v '^ *+' conftest.er1 >conftest.err
 
28666
  rm -f conftest.er1
 
28667
  cat conftest.err >&5
 
28668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28669
  (exit $ac_status); } &&
 
28670
         { ac_try='test -z "$ac_c_werror_flag"
 
28671
                         || test ! -s conftest.err'
 
28672
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28673
  (eval $ac_try) 2>&5
 
28674
  ac_status=$?
 
28675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28676
  (exit $ac_status); }; } &&
 
28677
         { ac_try='test -s conftest$ac_exeext'
 
28678
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28679
  (eval $ac_try) 2>&5
 
28680
  ac_status=$?
 
28681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28682
  (exit $ac_status); }; }; then
 
28683
  ac_cv_lib_pthread_pthread_create=yes
 
28684
else
 
28685
  echo "$as_me: failed program was:" >&5
 
28686
sed 's/^/| /' conftest.$ac_ext >&5
 
28687
 
 
28688
ac_cv_lib_pthread_pthread_create=no
 
28689
fi
 
28690
rm -f conftest.err conftest.$ac_objext \
 
28691
      conftest$ac_exeext conftest.$ac_ext
 
28692
LIBS=$ac_check_lib_save_LIBS
 
28693
fi
 
28694
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
 
28695
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
 
28696
if test $ac_cv_lib_pthread_pthread_create = yes; then
 
28697
  LIBPTHREAD="-lpthread"
 
28698
fi
 
28699
 
 
28700
  fi
 
28701
 
 
28702
    if test -z "$LIBPTHREAD" ; then
 
28703
    echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
28704
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
 
28705
    kde_safe_libs=$LIBS
 
28706
    LIBS="$LIBS -lpthread"
 
28707
    cat >conftest.$ac_ext <<_ACEOF
 
28708
/* confdefs.h.  */
 
28709
_ACEOF
 
28710
cat confdefs.h >>conftest.$ac_ext
 
28711
cat >>conftest.$ac_ext <<_ACEOF
 
28712
/* end confdefs.h.  */
 
28713
#include <pthread.h>
 
28714
int
 
28715
main ()
 
28716
{
 
28717
(void)pthread_create(0,0,0,0);
 
28718
  ;
 
28719
  return 0;
 
28720
}
 
28721
_ACEOF
 
28722
rm -f conftest.$ac_objext conftest$ac_exeext
 
28723
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28724
  (eval $ac_link) 2>conftest.er1
 
28725
  ac_status=$?
 
28726
  grep -v '^ *+' conftest.er1 >conftest.err
 
28727
  rm -f conftest.er1
 
28728
  cat conftest.err >&5
 
28729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28730
  (exit $ac_status); } &&
 
28731
         { ac_try='test -z "$ac_c_werror_flag"
 
28732
                         || test ! -s conftest.err'
 
28733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28734
  (eval $ac_try) 2>&5
 
28735
  ac_status=$?
 
28736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28737
  (exit $ac_status); }; } &&
 
28738
         { ac_try='test -s conftest$ac_exeext'
 
28739
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28740
  (eval $ac_try) 2>&5
 
28741
  ac_status=$?
 
28742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28743
  (exit $ac_status); }; }; then
 
28744
 
 
28745
        echo "$as_me:$LINENO: result: yes" >&5
 
28746
echo "${ECHO_T}yes" >&6
 
28747
        LIBPTHREAD="-lpthread"
 
28748
else
 
28749
  echo "$as_me: failed program was:" >&5
 
28750
sed 's/^/| /' conftest.$ac_ext >&5
 
28751
 
 
28752
 
 
28753
        echo "$as_me:$LINENO: result: no" >&5
 
28754
echo "${ECHO_T}no" >&6
 
28755
fi
 
28756
rm -f conftest.err conftest.$ac_objext \
 
28757
      conftest$ac_exeext conftest.$ac_ext
 
28758
    LIBS=$kde_safe_libs
 
28759
  fi
 
28760
 
 
28761
    if test "x$LIBPTHREAD" = "xPTHREAD" ; then
 
28762
    LIBPTHREAD=""
 
28763
  fi
 
28764
 
 
28765
 
 
28766
 
 
28767
 
 
28768
      USE_THREADS=""
 
28769
      if test -z "$LIBPTHREAD"; then
 
28770
 
 
28771
echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
 
28772
echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6
 
28773
kde_cache=`echo pthread | sed 'y% .=/+-,%____p__%'`
 
28774
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
28775
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28776
else
 
28777
 
 
28778
 
 
28779
 
 
28780
   ac_ext=cc
 
28781
ac_cpp='$CXXCPP $CPPFLAGS'
 
28782
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
28783
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
28784
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
28785
 
 
28786
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
28787
 
 
28788
 
 
28789
  save_CXXFLAGS="$CXXFLAGS"
 
28790
  CXXFLAGS="$CXXFLAGS -pthread"
 
28791
  cat >conftest.$ac_ext <<_ACEOF
 
28792
/* confdefs.h.  */
 
28793
_ACEOF
 
28794
cat confdefs.h >>conftest.$ac_ext
 
28795
cat >>conftest.$ac_ext <<_ACEOF
 
28796
/* end confdefs.h.  */
 
28797
 
 
28798
int
 
28799
main ()
 
28800
{
 
28801
 return 0;
 
28802
  ;
 
28803
  return 0;
 
28804
}
 
28805
_ACEOF
 
28806
rm -f conftest.$ac_objext conftest$ac_exeext
 
28807
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28808
  (eval $ac_link) 2>conftest.er1
 
28809
  ac_status=$?
 
28810
  grep -v '^ *+' conftest.er1 >conftest.err
 
28811
  rm -f conftest.er1
 
28812
  cat conftest.err >&5
 
28813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28814
  (exit $ac_status); } &&
 
28815
         { ac_try='test -z "$ac_cxx_werror_flag"
 
28816
                         || test ! -s conftest.err'
 
28817
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28818
  (eval $ac_try) 2>&5
 
28819
  ac_status=$?
 
28820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28821
  (exit $ac_status); }; } &&
 
28822
         { ac_try='test -s conftest$ac_exeext'
 
28823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28824
  (eval $ac_try) 2>&5
 
28825
  ac_status=$?
 
28826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28827
  (exit $ac_status); }; }; then
 
28828
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
28829
else
 
28830
  echo "$as_me: failed program was:" >&5
 
28831
sed 's/^/| /' conftest.$ac_ext >&5
 
28832
 
 
28833
fi
 
28834
rm -f conftest.err conftest.$ac_objext \
 
28835
      conftest$ac_exeext conftest.$ac_ext
 
28836
  CXXFLAGS="$save_CXXFLAGS"
 
28837
  ac_ext=c
 
28838
ac_cpp='$CPP $CPPFLAGS'
 
28839
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
28840
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
28841
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
28842
 
 
28843
 
 
28844
fi
 
28845
 
 
28846
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
28847
 echo "$as_me:$LINENO: result: yes" >&5
 
28848
echo "${ECHO_T}yes" >&6
 
28849
 :
 
28850
 USE_THREADS="-D_THREAD_SAFE -pthread"
 
28851
else
 
28852
 echo "$as_me:$LINENO: result: no" >&5
 
28853
echo "${ECHO_T}no" >&6
 
28854
 :
 
28855
 
 
28856
fi
 
28857
 
 
28858
      fi
 
28859
 
 
28860
 
 
28861
 
 
28862
    case $host_os in
 
28863
        solaris*)
 
28864
 
 
28865
echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
 
28866
echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6
 
28867
kde_cache=`echo mt | sed 'y% .=/+-,%____p__%'`
 
28868
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
28869
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28870
else
 
28871
 
 
28872
 
 
28873
 
 
28874
   ac_ext=cc
 
28875
ac_cpp='$CXXCPP $CPPFLAGS'
 
28876
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
28877
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
28878
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
28879
 
 
28880
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
28881
 
 
28882
 
 
28883
  save_CXXFLAGS="$CXXFLAGS"
 
28884
  CXXFLAGS="$CXXFLAGS -mt"
 
28885
  cat >conftest.$ac_ext <<_ACEOF
 
28886
/* confdefs.h.  */
 
28887
_ACEOF
 
28888
cat confdefs.h >>conftest.$ac_ext
 
28889
cat >>conftest.$ac_ext <<_ACEOF
 
28890
/* end confdefs.h.  */
 
28891
 
 
28892
int
 
28893
main ()
 
28894
{
 
28895
 return 0;
 
28896
  ;
 
28897
  return 0;
 
28898
}
 
28899
_ACEOF
 
28900
rm -f conftest.$ac_objext conftest$ac_exeext
 
28901
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28902
  (eval $ac_link) 2>conftest.er1
 
28903
  ac_status=$?
 
28904
  grep -v '^ *+' conftest.er1 >conftest.err
 
28905
  rm -f conftest.er1
 
28906
  cat conftest.err >&5
 
28907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28908
  (exit $ac_status); } &&
 
28909
         { ac_try='test -z "$ac_cxx_werror_flag"
 
28910
                         || test ! -s conftest.err'
 
28911
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28912
  (eval $ac_try) 2>&5
 
28913
  ac_status=$?
 
28914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28915
  (exit $ac_status); }; } &&
 
28916
         { ac_try='test -s conftest$ac_exeext'
 
28917
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28918
  (eval $ac_try) 2>&5
 
28919
  ac_status=$?
 
28920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28921
  (exit $ac_status); }; }; then
 
28922
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
28923
else
 
28924
  echo "$as_me: failed program was:" >&5
 
28925
sed 's/^/| /' conftest.$ac_ext >&5
 
28926
 
 
28927
fi
 
28928
rm -f conftest.err conftest.$ac_objext \
 
28929
      conftest$ac_exeext conftest.$ac_ext
 
28930
  CXXFLAGS="$save_CXXFLAGS"
 
28931
  ac_ext=c
 
28932
ac_cpp='$CPP $CPPFLAGS'
 
28933
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
28934
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
28935
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
28936
 
 
28937
 
 
28938
fi
 
28939
 
 
28940
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
28941
 echo "$as_me:$LINENO: result: yes" >&5
 
28942
echo "${ECHO_T}yes" >&6
 
28943
 :
 
28944
 USE_THREADS="-mt"
 
28945
else
 
28946
 echo "$as_me:$LINENO: result: no" >&5
 
28947
echo "${ECHO_T}no" >&6
 
28948
 :
 
28949
 
 
28950
fi
 
28951
 
 
28952
                CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
 
28953
                ;;
 
28954
        freebsd*)
 
28955
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE $PTHREAD_CFLAGS"
 
28956
                ;;
 
28957
        aix*)
 
28958
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
 
28959
                LIBPTHREAD="$LIBPTHREAD -lc_r"
 
28960
                ;;
 
28961
        linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
 
28962
                if test "$CXX" = "KCC"; then
 
28963
                  CXXFLAGS="$CXXFLAGS --thread_safe"
 
28964
                  NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe"
 
28965
                fi
 
28966
                ;;
 
28967
        *)
 
28968
                ;;
 
28969
    esac
 
28970
 
 
28971
 
 
28972
 
 
28973
 
 
28974
echo "$as_me:$LINENO: checking for extra includes" >&5
 
28975
echo $ECHO_N "checking for extra includes... $ECHO_C" >&6
 
28976
 
 
28977
# Check whether --with-extra-includes or --without-extra-includes was given.
 
28978
if test "${with_extra_includes+set}" = set; then
 
28979
  withval="$with_extra_includes"
 
28980
  kde_use_extra_includes="$withval"
 
28981
else
 
28982
  kde_use_extra_includes=NONE
 
28983
 
 
28984
fi;
 
28985
kde_extra_includes=
 
28986
if test -n "$kde_use_extra_includes" && \
 
28987
   test "$kde_use_extra_includes" != "NONE"; then
 
28988
 
 
28989
   ac_save_ifs=$IFS
 
28990
   IFS=':'
 
28991
   for dir in $kde_use_extra_includes; do
 
28992
     kde_extra_includes="$kde_extra_includes $dir"
 
28993
     USER_INCLUDES="$USER_INCLUDES -I$dir"
 
28994
   done
 
28995
   IFS=$ac_save_ifs
 
28996
   kde_use_extra_includes="added"
 
28997
else
 
28998
   kde_use_extra_includes="no"
 
28999
fi
 
29000
 
 
29001
 
 
29002
echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
 
29003
echo "${ECHO_T}$kde_use_extra_includes" >&6
 
29004
 
 
29005
kde_extra_libs=
 
29006
echo "$as_me:$LINENO: checking for extra libs" >&5
 
29007
echo $ECHO_N "checking for extra libs... $ECHO_C" >&6
 
29008
 
 
29009
# Check whether --with-extra-libs or --without-extra-libs was given.
 
29010
if test "${with_extra_libs+set}" = set; then
 
29011
  withval="$with_extra_libs"
 
29012
  kde_use_extra_libs=$withval
 
29013
else
 
29014
  kde_use_extra_libs=NONE
 
29015
 
 
29016
fi;
 
29017
if test -n "$kde_use_extra_libs" && \
 
29018
   test "$kde_use_extra_libs" != "NONE"; then
 
29019
 
 
29020
   ac_save_ifs=$IFS
 
29021
   IFS=':'
 
29022
   for dir in $kde_use_extra_libs; do
 
29023
     kde_extra_libs="$kde_extra_libs $dir"
 
29024
     KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
 
29025
     USER_LDFLAGS="$USER_LDFLAGS -L$dir"
 
29026
   done
 
29027
   IFS=$ac_save_ifs
 
29028
   kde_use_extra_libs="added"
 
29029
else
 
29030
   kde_use_extra_libs="no"
 
29031
fi
 
29032
 
 
29033
 
 
29034
 
 
29035
echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
 
29036
echo "${ECHO_T}$kde_use_extra_libs" >&6
 
29037
 
 
29038
 
 
29039
 
 
29040
 
 
29041
echo "$as_me:$LINENO: checking for libz" >&5
 
29042
echo $ECHO_N "checking for libz... $ECHO_C" >&6
 
29043
if test "${ac_cv_lib_z+set}" = set; then
 
29044
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29045
else
 
29046
 
 
29047
kde_save_LIBS="$LIBS"
 
29048
LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
 
29049
kde_save_CFLAGS="$CFLAGS"
 
29050
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
29051
cat >conftest.$ac_ext <<_ACEOF
 
29052
/* confdefs.h.  */
 
29053
_ACEOF
 
29054
cat confdefs.h >>conftest.$ac_ext
 
29055
cat >>conftest.$ac_ext <<_ACEOF
 
29056
/* end confdefs.h.  */
 
29057
 
 
29058
#include<zlib.h>
 
29059
 
 
29060
int
 
29061
main ()
 
29062
{
 
29063
 
 
29064
  char buf[42];
 
29065
  gzFile f = (gzFile) 0;
 
29066
  /* this would segfault.. but we only link, don't run */
 
29067
  (void) gzgets(f, buf, sizeof(buf));
 
29068
 
 
29069
  return (zlibVersion() == ZLIB_VERSION);
 
29070
 
 
29071
  ;
 
29072
  return 0;
 
29073
}
 
29074
_ACEOF
 
29075
rm -f conftest.$ac_objext conftest$ac_exeext
 
29076
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29077
  (eval $ac_link) 2>conftest.er1
 
29078
  ac_status=$?
 
29079
  grep -v '^ *+' conftest.er1 >conftest.err
 
29080
  rm -f conftest.er1
 
29081
  cat conftest.err >&5
 
29082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29083
  (exit $ac_status); } &&
 
29084
         { ac_try='test -z "$ac_c_werror_flag"
 
29085
                         || test ! -s conftest.err'
 
29086
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29087
  (eval $ac_try) 2>&5
 
29088
  ac_status=$?
 
29089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29090
  (exit $ac_status); }; } &&
 
29091
         { ac_try='test -s conftest$ac_exeext'
 
29092
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29093
  (eval $ac_try) 2>&5
 
29094
  ac_status=$?
 
29095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29096
  (exit $ac_status); }; }; then
 
29097
  eval "ac_cv_lib_z='-lz'"
 
29098
else
 
29099
  echo "$as_me: failed program was:" >&5
 
29100
sed 's/^/| /' conftest.$ac_ext >&5
 
29101
 
 
29102
eval "ac_cv_lib_z=no"
 
29103
fi
 
29104
rm -f conftest.err conftest.$ac_objext \
 
29105
      conftest$ac_exeext conftest.$ac_ext
 
29106
LIBS="$kde_save_LIBS"
 
29107
CFLAGS="$kde_save_CFLAGS"
 
29108
 
 
29109
fi
 
29110
if test ! "$ac_cv_lib_z" = no; then
 
29111
 
 
29112
cat >>confdefs.h <<_ACEOF
 
29113
#define HAVE_LIBZ 1
 
29114
_ACEOF
 
29115
 
 
29116
  LIBZ="$ac_cv_lib_z"
 
29117
  echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
 
29118
echo "${ECHO_T}$ac_cv_lib_z" >&6
 
29119
else
 
29120
  { { echo "$as_me:$LINENO: error: not found.
 
29121
          Possibly configure picks up an outdated version
 
29122
          installed by XFree86. Remove it from your system.
 
29123
 
 
29124
          Check your installation and look into config.log" >&5
 
29125
echo "$as_me: error: not found.
 
29126
          Possibly configure picks up an outdated version
 
29127
          installed by XFree86. Remove it from your system.
 
29128
 
 
29129
          Check your installation and look into config.log" >&2;}
 
29130
   { (exit 1); exit 1; }; }
 
29131
  LIBZ=""
 
29132
fi
 
29133
 
 
29134
 
 
29135
 
 
29136
 
 
29137
 
 
29138
echo "$as_me:$LINENO: checking for libpng" >&5
 
29139
echo $ECHO_N "checking for libpng... $ECHO_C" >&6
 
29140
if test "${ac_cv_lib_png+set}" = set; then
 
29141
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29142
else
 
29143
 
 
29144
kde_save_LIBS="$LIBS"
 
29145
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
 
29146
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
 
29147
else
 
29148
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
 
29149
fi
 
29150
kde_save_CFLAGS="$CFLAGS"
 
29151
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
29152
 
 
29153
cat >conftest.$ac_ext <<_ACEOF
 
29154
/* confdefs.h.  */
 
29155
_ACEOF
 
29156
cat confdefs.h >>conftest.$ac_ext
 
29157
cat >>conftest.$ac_ext <<_ACEOF
 
29158
/* end confdefs.h.  */
 
29159
 
 
29160
    #include<png.h>
 
29161
 
 
29162
int
 
29163
main ()
 
29164
{
 
29165
 
 
29166
    png_structp png_ptr = png_create_read_struct(  /* image ptr */
 
29167
                PNG_LIBPNG_VER_STRING, 0, 0, 0 );
 
29168
    return( png_ptr != 0 );
 
29169
 
 
29170
  ;
 
29171
  return 0;
 
29172
}
 
29173
_ACEOF
 
29174
rm -f conftest.$ac_objext conftest$ac_exeext
 
29175
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29176
  (eval $ac_link) 2>conftest.er1
 
29177
  ac_status=$?
 
29178
  grep -v '^ *+' conftest.er1 >conftest.err
 
29179
  rm -f conftest.er1
 
29180
  cat conftest.err >&5
 
29181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29182
  (exit $ac_status); } &&
 
29183
         { ac_try='test -z "$ac_c_werror_flag"
 
29184
                         || test ! -s conftest.err'
 
29185
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29186
  (eval $ac_try) 2>&5
 
29187
  ac_status=$?
 
29188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29189
  (exit $ac_status); }; } &&
 
29190
         { ac_try='test -s conftest$ac_exeext'
 
29191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29192
  (eval $ac_try) 2>&5
 
29193
  ac_status=$?
 
29194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29195
  (exit $ac_status); }; }; then
 
29196
  eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
 
29197
else
 
29198
  echo "$as_me: failed program was:" >&5
 
29199
sed 's/^/| /' conftest.$ac_ext >&5
 
29200
 
 
29201
eval "ac_cv_lib_png=no"
 
29202
 
 
29203
fi
 
29204
rm -f conftest.err conftest.$ac_objext \
 
29205
      conftest$ac_exeext conftest.$ac_ext
 
29206
LIBS="$kde_save_LIBS"
 
29207
CFLAGS="$kde_save_CFLAGS"
 
29208
 
 
29209
fi
 
29210
if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
 
29211
 
 
29212
cat >>confdefs.h <<_ACEOF
 
29213
#define HAVE_LIBPNG 1
 
29214
_ACEOF
 
29215
 
 
29216
  LIBPNG="$ac_cv_lib_png"
 
29217
 
 
29218
  echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5
 
29219
echo "${ECHO_T}$ac_cv_lib_png" >&6
 
29220
else
 
29221
  echo "$as_me:$LINENO: result: no" >&5
 
29222
echo "${ECHO_T}no" >&6
 
29223
  LIBPNG=""
 
29224
 
 
29225
fi
 
29226
 
 
29227
 
 
29228
 
 
29229
echo "$as_me:$LINENO: checking for libjpeg6b" >&5
 
29230
echo $ECHO_N "checking for libjpeg6b... $ECHO_C" >&6
 
29231
if test "${ac_cv_lib_jpeg_6b+set}" = set; then
 
29232
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29233
else
 
29234
 
 
29235
ac_save_LIBS="$LIBS"
 
29236
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
 
29237
ac_save_CFLAGS="$CFLAGS"
 
29238
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
29239
cat >conftest.$ac_ext <<_ACEOF
 
29240
/* confdefs.h.  */
 
29241
_ACEOF
 
29242
cat confdefs.h >>conftest.$ac_ext
 
29243
cat >>conftest.$ac_ext <<_ACEOF
 
29244
/* end confdefs.h.  */
 
29245
/* Override any gcc2 internal prototype to avoid an error.  */
 
29246
struct jpeg_decompress_struct;
 
29247
typedef struct jpeg_decompress_struct * j_decompress_ptr;
 
29248
typedef int size_t;
 
29249
#ifdef __cplusplus
 
29250
extern "C" {
 
29251
#endif
 
29252
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
 
29253
                                    int version, size_t structsize);
 
29254
#ifdef __cplusplus
 
29255
}
 
29256
#endif
 
29257
/* We use char because int might match the return type of a gcc2
 
29258
    builtin and then its argument prototype would still apply.  */
 
29259
 
 
29260
int
 
29261
main ()
 
29262
{
 
29263
jpeg_CreateDecompress(0L, 0, 0);
 
29264
  ;
 
29265
  return 0;
 
29266
}
 
29267
_ACEOF
 
29268
rm -f conftest.$ac_objext conftest$ac_exeext
 
29269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29270
  (eval $ac_link) 2>conftest.er1
 
29271
  ac_status=$?
 
29272
  grep -v '^ *+' conftest.er1 >conftest.err
 
29273
  rm -f conftest.er1
 
29274
  cat conftest.err >&5
 
29275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29276
  (exit $ac_status); } &&
 
29277
         { ac_try='test -z "$ac_c_werror_flag"
 
29278
                         || test ! -s conftest.err'
 
29279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29280
  (eval $ac_try) 2>&5
 
29281
  ac_status=$?
 
29282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29283
  (exit $ac_status); }; } &&
 
29284
         { ac_try='test -s conftest$ac_exeext'
 
29285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29286
  (eval $ac_try) 2>&5
 
29287
  ac_status=$?
 
29288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29289
  (exit $ac_status); }; }; then
 
29290
  eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
 
29291
else
 
29292
  echo "$as_me: failed program was:" >&5
 
29293
sed 's/^/| /' conftest.$ac_ext >&5
 
29294
 
 
29295
eval "ac_cv_lib_jpeg_6b=no"
 
29296
fi
 
29297
rm -f conftest.err conftest.$ac_objext \
 
29298
      conftest$ac_exeext conftest.$ac_ext
 
29299
LIBS="$ac_save_LIBS"
 
29300
CFLAGS="$ac_save_CFLAGS"
 
29301
 
 
29302
fi
 
29303
 
 
29304
 
 
29305
if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
 
29306
  LIBJPEG="$ac_cv_lib_jpeg_6b"
 
29307
  echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5
 
29308
echo "${ECHO_T}$ac_cv_lib_jpeg_6b" >&6
 
29309
else
 
29310
  echo "$as_me:$LINENO: result: no" >&5
 
29311
echo "${ECHO_T}no" >&6
 
29312
 
 
29313
echo "$as_me:$LINENO: checking for libjpeg" >&5
 
29314
echo $ECHO_N "checking for libjpeg... $ECHO_C" >&6
 
29315
if test "${ac_cv_lib_jpeg_normal+set}" = set; then
 
29316
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29317
else
 
29318
 
 
29319
ac_save_LIBS="$LIBS"
 
29320
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
 
29321
ac_save_CFLAGS="$CFLAGS"
 
29322
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
29323
cat >conftest.$ac_ext <<_ACEOF
 
29324
/* confdefs.h.  */
 
29325
_ACEOF
 
29326
cat confdefs.h >>conftest.$ac_ext
 
29327
cat >>conftest.$ac_ext <<_ACEOF
 
29328
/* end confdefs.h.  */
 
29329
/* Override any gcc2 internal prototype to avoid an error.  */
 
29330
struct jpeg_decompress_struct;
 
29331
typedef struct jpeg_decompress_struct * j_decompress_ptr;
 
29332
typedef int size_t;
 
29333
#ifdef __cplusplus
 
29334
extern "C" {
 
29335
#endif
 
29336
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
 
29337
                                    int version, size_t structsize);
 
29338
#ifdef __cplusplus
 
29339
}
 
29340
#endif
 
29341
/* We use char because int might match the return type of a gcc2
 
29342
    builtin and then its argument prototype would still apply.  */
 
29343
 
 
29344
int
 
29345
main ()
 
29346
{
 
29347
jpeg_CreateDecompress(0L, 0, 0);
 
29348
  ;
 
29349
  return 0;
 
29350
}
 
29351
_ACEOF
 
29352
rm -f conftest.$ac_objext conftest$ac_exeext
 
29353
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29354
  (eval $ac_link) 2>conftest.er1
 
29355
  ac_status=$?
 
29356
  grep -v '^ *+' conftest.er1 >conftest.err
 
29357
  rm -f conftest.er1
 
29358
  cat conftest.err >&5
 
29359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29360
  (exit $ac_status); } &&
 
29361
         { ac_try='test -z "$ac_c_werror_flag"
 
29362
                         || test ! -s conftest.err'
 
29363
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29364
  (eval $ac_try) 2>&5
 
29365
  ac_status=$?
 
29366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29367
  (exit $ac_status); }; } &&
 
29368
         { ac_try='test -s conftest$ac_exeext'
 
29369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29370
  (eval $ac_try) 2>&5
 
29371
  ac_status=$?
 
29372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29373
  (exit $ac_status); }; }; then
 
29374
  eval "ac_cv_lib_jpeg_normal=-ljpeg"
 
29375
else
 
29376
  echo "$as_me: failed program was:" >&5
 
29377
sed 's/^/| /' conftest.$ac_ext >&5
 
29378
 
 
29379
eval "ac_cv_lib_jpeg_normal=no"
 
29380
fi
 
29381
rm -f conftest.err conftest.$ac_objext \
 
29382
      conftest$ac_exeext conftest.$ac_ext
 
29383
LIBS="$ac_save_LIBS"
 
29384
CFLAGS="$ac_save_CFLAGS"
 
29385
 
 
29386
fi
 
29387
 
 
29388
 
 
29389
if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
 
29390
  LIBJPEG="$ac_cv_lib_jpeg_normal"
 
29391
  echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5
 
29392
echo "${ECHO_T}$ac_cv_lib_jpeg_normal" >&6
 
29393
else
 
29394
  echo "$as_me:$LINENO: result: no" >&5
 
29395
echo "${ECHO_T}no" >&6
 
29396
 
 
29397
       LIBJPEG=
 
29398
 
 
29399
 
 
29400
fi
 
29401
 
 
29402
 
 
29403
 
 
29404
fi
 
29405
 
 
29406
 
 
29407
 
 
29408
jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes"
 
29409
 
 
29410
jpeg_incdir=NO
 
29411
for i in $jpeg_incdirs;
 
29412
do
 
29413
  for j in jpeglib.h;
 
29414
  do
 
29415
    echo "configure: 29415: $i/$j" >&5
 
29416
    if test -r "$i/$j"; then
 
29417
      echo "taking that" >&5
 
29418
      jpeg_incdir=$i
 
29419
      break 2
 
29420
    fi
 
29421
  done
 
29422
done
 
29423
 
 
29424
test "x$jpeg_incdir" = xNO && jpeg_incdir=
 
29425
 
 
29426
if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
 
29427
 
 
29428
cat >>confdefs.h <<_ACEOF
 
29429
#define HAVE_LIBJPEG 1
 
29430
_ACEOF
 
29431
 
 
29432
else
 
29433
  if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
 
29434
    { echo "$as_me:$LINENO: WARNING:
 
29435
There is an installation error in jpeg support. You seem to have only one
 
29436
of either the headers _or_ the libraries installed. You may need to either
 
29437
provide correct --with-extra-... options, or the development package of
 
29438
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
 
29439
Disabling JPEG support.
 
29440
" >&5
 
29441
echo "$as_me: WARNING:
 
29442
There is an installation error in jpeg support. You seem to have only one
 
29443
of either the headers _or_ the libraries installed. You may need to either
 
29444
provide correct --with-extra-... options, or the development package of
 
29445
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
 
29446
Disabling JPEG support.
 
29447
" >&2;}
 
29448
  else
 
29449
    { echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5
 
29450
echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
 
29451
  fi
 
29452
  jpeg_incdir=
 
29453
  LIBJPEG=
 
29454
fi
 
29455
 
 
29456
 
 
29457
 
 
29458
 
 
29459
 
 
29460
 
 
29461
 
 
29462
   echo "$as_me:$LINENO: checking for perl" >&5
 
29463
echo $ECHO_N "checking for perl... $ECHO_C" >&6
 
29464
   if test -n "$PERL"; then
 
29465
        kde_cv_path="$PERL";
 
29466
   else
 
29467
        kde_cache=`echo perl | sed 'y%./+-%__p_%'`
 
29468
 
 
29469
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
29470
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29471
else
 
29472
 
 
29473
        kde_cv_path="NONE"
 
29474
        kde_save_IFS=$IFS
 
29475
        IFS=':'
 
29476
        dirs=""
 
29477
        for dir in $PATH; do
 
29478
          dirs="$dirs $dir"
 
29479
        done
 
29480
        if test -z ""; then       dirs="$bindir $exec_prefix/bin $prefix/bin $dirs"
 
29481
        else      dirs="$dirs $bindir $exec_prefix/bin $prefix/bin"
 
29482
        fi
 
29483
        IFS=$kde_save_IFS
 
29484
 
 
29485
        for dir in $dirs; do
 
29486
          if test -x "$dir/perl"; then
 
29487
            if test -n ""
 
29488
            then
 
29489
              evalstr="$dir/perl  2>&1 "
 
29490
              if eval $evalstr; then
 
29491
                kde_cv_path="$dir/perl"
 
29492
                break
 
29493
              fi
 
29494
            else
 
29495
                kde_cv_path="$dir/perl"
 
29496
                break
 
29497
            fi
 
29498
          fi
 
29499
        done
 
29500
 
 
29501
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
29502
 
 
29503
 
 
29504
fi
 
29505
 
 
29506
 
 
29507
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
29508
 
 
29509
   fi
 
29510
 
 
29511
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
29512
      echo "$as_me:$LINENO: result: not found" >&5
 
29513
echo "${ECHO_T}not found" >&6
 
29514
 
 
29515
                    { { echo "$as_me:$LINENO: error: No Perl found in your $PATH.
 
29516
We need perl to generate some code." >&5
 
29517
echo "$as_me: error: No Perl found in your $PATH.
 
29518
We need perl to generate some code." >&2;}
 
29519
   { (exit 1); exit 1; }; }
 
29520
 
 
29521
   else
 
29522
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
29523
echo "${ECHO_T}$kde_cv_path" >&6
 
29524
      PERL=$kde_cv_path
 
29525
 
 
29526
   fi
 
29527
 
 
29528
 
 
29529
 
 
29530
 
 
29531
 
 
29532
 
 
29533
 
 
29534
 
 
29535
 
 
29536
 
 
29537
# Check whether --enable-mt or --disable-mt was given.
 
29538
if test "${enable_mt+set}" = set; then
 
29539
  enableval="$enable_mt"
 
29540
  kde_use_qt_mt=$enableval
 
29541
else
 
29542
 
 
29543
    if test $kde_qtver = 3; then
 
29544
      kde_use_qt_mt=yes
 
29545
    else
 
29546
      kde_use_qt_mt=no
 
29547
    fi
 
29548
 
 
29549
 
 
29550
fi;
 
29551
 
 
29552
USING_QT_MT=""
 
29553
 
 
29554
 
 
29555
KDE_MT_LDFLAGS=
 
29556
KDE_MT_LIBS=
 
29557
if test "x$kde_use_qt_mt" = "xyes"; then
 
29558
 
 
29559
 
 
29560
 
 
29561
    if test -z "$LIBPTHREAD"; then
 
29562
    if test -z "$USE_THREADS"; then
 
29563
      kde_check_threading_default=no
 
29564
    else
 
29565
      kde_check_threading_default=yes
 
29566
    fi
 
29567
  else
 
29568
    kde_check_threading_default=yes
 
29569
  fi
 
29570
  # Check whether --enable-threading or --disable-threading was given.
 
29571
if test "${enable_threading+set}" = set; then
 
29572
  enableval="$enable_threading"
 
29573
  kde_use_threading=$enableval
 
29574
else
 
29575
  kde_use_threading=$kde_check_threading_default
 
29576
fi;
 
29577
  if test "x$kde_use_threading" = "xyes"; then
 
29578
 
 
29579
cat >>confdefs.h <<\_ACEOF
 
29580
#define HAVE_LIBPTHREAD 1
 
29581
_ACEOF
 
29582
 
 
29583
  fi
 
29584
 
 
29585
  if test "x$kde_use_threading" = "xyes"; then
 
29586
    CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
 
29587
    KDE_MT_LDFLAGS="$USE_THREADS"
 
29588
    KDE_MT_LIBS="$LIBPTHREAD"
 
29589
  else
 
29590
    kde_use_qt_mt=no
 
29591
  fi
 
29592
fi
 
29593
 
 
29594
 
 
29595
 
 
29596
kde_qt_was_given=yes
 
29597
 
 
29598
if test -z "$LIBQT_GLOB"; then
 
29599
  if test "x$kde_use_qt_emb" = "xyes"; then
 
29600
    LIBQT_GLOB="libqte.*"
 
29601
  else
 
29602
    LIBQT_GLOB="libqt.*"
 
29603
  fi
 
29604
fi
 
29605
 
 
29606
if test "x$kde_use_qt_emb" = "xyes"; then
 
29607
  qtlib="qte"
 
29608
else
 
29609
  qtlib="qt"
 
29610
fi
 
29611
 
 
29612
kde_int_qt="-l$qtlib"
 
29613
 
 
29614
if test -z "$LIBQPE"; then
 
29615
  if test "x$kde_use_qt_emb" = "xyes"; then
 
29616
    if test "x$kde_use_qt_emb_palm" = "xyes"; then
 
29617
      LIB_QPE="-lqpe"
 
29618
    else
 
29619
      LIB_QPE=""
 
29620
    fi
 
29621
  else
 
29622
    LIB_QPE=""
 
29623
  fi
 
29624
fi
 
29625
 
 
29626
 
 
29627
if test "x$kde_use_qt_mt" = "xyes"; then
 
29628
  LIBQT="-l$qtlib-mt"
 
29629
  kde_int_qt="-l$qtlib-mt"
 
29630
  LIBQT_GLOB="lib$qtlib-mt.*"
 
29631
  USING_QT_MT="using -mt"
 
29632
else
 
29633
  LIBQT="-l$qtlib"
 
29634
fi
 
29635
 
 
29636
if test $kde_qtver != 1; then
 
29637
 
 
29638
 
 
29639
 
 
29640
  LIBQT="$LIBQT $LIBPNG $LIBJPEG"
 
29641
fi
 
29642
 
 
29643
if test $kde_qtver = 3; then
 
29644
 
 
29645
  LIBQT="$LIBQT $LIBDL"
 
29646
fi
 
29647
 
 
29648
echo "$as_me:$LINENO: checking for Qt" >&5
 
29649
echo $ECHO_N "checking for Qt... $ECHO_C" >&6
 
29650
 
 
29651
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
 
29652
LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
 
29653
fi
 
29654
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
 
29655
qt_libraries=""
 
29656
qt_includes=""
 
29657
 
 
29658
# Check whether --with-qt-dir or --without-qt-dir was given.
 
29659
if test "${with_qt_dir+set}" = set; then
 
29660
  withval="$with_qt_dir"
 
29661
    ac_qt_includes="$withval"/include
 
29662
       ac_qt_libraries="$withval"/lib${kdelibsuff}
 
29663
       ac_qt_bindir="$withval"/bin
 
29664
 
 
29665
fi;
 
29666
 
 
29667
 
 
29668
# Check whether --with-qt-includes or --without-qt-includes was given.
 
29669
if test "${with_qt_includes+set}" = set; then
 
29670
  withval="$with_qt_includes"
 
29671
 
 
29672
       ac_qt_includes="$withval"
 
29673
 
 
29674
fi;
 
29675
 
 
29676
kde_qt_libs_given=no
 
29677
 
 
29678
 
 
29679
# Check whether --with-qt-libraries or --without-qt-libraries was given.
 
29680
if test "${with_qt_libraries+set}" = set; then
 
29681
  withval="$with_qt_libraries"
 
29682
    ac_qt_libraries="$withval"
 
29683
       kde_qt_libs_given=yes
 
29684
 
 
29685
fi;
 
29686
 
 
29687
if test "${ac_cv_have_qt+set}" = set; then
 
29688
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29689
else
 
29690
  #try to guess Qt locations
 
29691
 
 
29692
qt_incdirs=""
 
29693
for dir in $kde_qt_dirs; do
 
29694
   qt_incdirs="$qt_incdirs $dir/include $dir"
 
29695
done
 
29696
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"
 
29697
if test ! "$ac_qt_includes" = "NO"; then
 
29698
   qt_incdirs="$ac_qt_includes $qt_incdirs"
 
29699
fi
 
29700
 
 
29701
if test "$kde_qtver" != "1"; then
 
29702
  kde_qt_header=qstyle.h
 
29703
else
 
29704
  kde_qt_header=qglobal.h
 
29705
fi
 
29706
 
 
29707
 
 
29708
qt_incdir=NO
 
29709
for i in $qt_incdirs;
 
29710
do
 
29711
  for j in $kde_qt_header;
 
29712
  do
 
29713
    echo "configure: 29713: $i/$j" >&5
 
29714
    if test -r "$i/$j"; then
 
29715
      echo "taking that" >&5
 
29716
      qt_incdir=$i
 
29717
      break 2
 
29718
    fi
 
29719
  done
 
29720
done
 
29721
 
 
29722
ac_qt_includes="$qt_incdir"
 
29723
 
 
29724
qt_libdirs=""
 
29725
for dir in $kde_qt_dirs; do
 
29726
   qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir"
 
29727
done
 
29728
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
 
29729
if test ! "$ac_qt_libraries" = "NO"; then
 
29730
  qt_libdir=$ac_qt_libraries
 
29731
else
 
29732
  qt_libdirs="$ac_qt_libraries $qt_libdirs"
 
29733
  # if the Qt was given, the chance is too big that libqt.* doesn't exist
 
29734
  qt_libdir=NONE
 
29735
  for dir in $qt_libdirs; do
 
29736
    try="ls -1 $dir/${LIBQT_GLOB}"
 
29737
    if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
 
29738
  done
 
29739
fi
 
29740
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
 
29741
  if test -e "$a"; then
 
29742
    LIBQT="$LIBQT ${kde_int_qt}_incremental"
 
29743
    break
 
29744
  fi
 
29745
done
 
29746
 
 
29747
ac_qt_libraries="$qt_libdir"
 
29748
 
 
29749
 
 
29750
 
 
29751
 ac_ext=cc
 
29752
ac_cpp='$CXXCPP $CPPFLAGS'
 
29753
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29754
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29755
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
29756
 
 
29757
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
29758
 
 
29759
 
 
29760
 
 
29761
ac_cxxflags_safe="$CXXFLAGS"
 
29762
ac_ldflags_safe="$LDFLAGS"
 
29763
ac_libs_safe="$LIBS"
 
29764
 
 
29765
CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
 
29766
LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
 
29767
LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
 
29768
 
 
29769
 
 
29770
 
 
29771
cat > conftest.$ac_ext <<EOF
 
29772
#include "confdefs.h"
 
29773
#include <qglobal.h>
 
29774
#include <qapplication.h>
 
29775
EOF
 
29776
if test "$kde_qtver" = "2"; then
 
29777
cat >> conftest.$ac_ext <<EOF
 
29778
#include <qevent.h>
 
29779
#include <qstring.h>
 
29780
#include <qstyle.h>
 
29781
EOF
 
29782
 
 
29783
if test $kde_qtsubver -gt 0; then
 
29784
cat >> conftest.$ac_ext <<EOF
 
29785
#if QT_VERSION < 210
 
29786
#error 1
 
29787
#endif
 
29788
EOF
 
29789
fi
 
29790
fi
 
29791
 
 
29792
if test "$kde_qtver" = "3"; then
 
29793
cat >> conftest.$ac_ext <<EOF
 
29794
#include <qcursor.h>
 
29795
#include <qstylefactory.h>
 
29796
#include <private/qucomextra_p.h>
 
29797
EOF
 
29798
fi
 
29799
 
 
29800
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
 
29801
cat >> conftest.$ac_ext <<EOF
 
29802
#error 1
 
29803
#endif
 
29804
 
 
29805
int main() {
 
29806
EOF
 
29807
if test "$kde_qtver" = "2"; then
 
29808
cat >> conftest.$ac_ext <<EOF
 
29809
    QStringList *t = new QStringList();
 
29810
    Q_UNUSED(t);
 
29811
EOF
 
29812
if test $kde_qtsubver -gt 0; then
 
29813
cat >> conftest.$ac_ext <<EOF
 
29814
    QString s;
 
29815
    s.setLatin1("Elvis is alive", 14);
 
29816
EOF
 
29817
fi
 
29818
fi
 
29819
if test "$kde_qtver" = "3"; then
 
29820
cat >> conftest.$ac_ext <<EOF
 
29821
    (void)QStyleFactory::create(QString::null);
 
29822
    QCursor c(Qt::WhatsThisCursor);
 
29823
EOF
 
29824
fi
 
29825
cat >> conftest.$ac_ext <<EOF
 
29826
    return 0;
 
29827
}
 
29828
EOF
 
29829
 
 
29830
 
 
29831
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29832
  (eval $ac_link) 2>&5
 
29833
  ac_status=$?
 
29834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29835
  (exit $ac_status); } && test -s conftest; then
 
29836
  rm -f conftest*
 
29837
else
 
29838
  echo "configure: failed program was:" >&5
 
29839
  cat conftest.$ac_ext >&5
 
29840
  ac_qt_libraries="NO"
 
29841
fi
 
29842
rm -f conftest*
 
29843
CXXFLAGS="$ac_cxxflags_safe"
 
29844
LDFLAGS="$ac_ldflags_safe"
 
29845
LIBS="$ac_libs_safe"
 
29846
 
 
29847
ac_ext=c
 
29848
ac_cpp='$CPP $CPPFLAGS'
 
29849
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29850
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29851
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
29852
 
 
29853
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
 
29854
  ac_cv_have_qt="have_qt=no"
 
29855
  ac_qt_notfound=""
 
29856
  missing_qt_mt=""
 
29857
  if test "$ac_qt_includes" = NO; then
 
29858
    if test "$ac_qt_libraries" = NO; then
 
29859
      ac_qt_notfound="(headers and libraries)";
 
29860
    else
 
29861
      ac_qt_notfound="(headers)";
 
29862
    fi
 
29863
  else
 
29864
    if test "x$kde_use_qt_mt" = "xyes"; then
 
29865
       missing_qt_mt="
 
29866
Make sure that you have compiled Qt with thread support!"
 
29867
       ac_qt_notfound="(library $qtlib-mt)";
 
29868
    else
 
29869
       ac_qt_notfound="(library $qtlib)";
 
29870
    fi
 
29871
  fi
 
29872
 
 
29873
  { { echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
 
29874
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
 
29875
echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
 
29876
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
 
29877
   { (exit 1); exit 1; }; }
 
29878
else
 
29879
  have_qt="yes"
 
29880
fi
 
29881
 
 
29882
fi
 
29883
 
 
29884
 
 
29885
eval "$ac_cv_have_qt"
 
29886
 
 
29887
if test "$have_qt" != yes; then
 
29888
  echo "$as_me:$LINENO: result: $have_qt" >&5
 
29889
echo "${ECHO_T}$have_qt" >&6;
 
29890
else
 
29891
  ac_cv_have_qt="have_qt=yes \
 
29892
    ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
 
29893
  echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
 
29894
echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6
 
29895
 
 
29896
  qt_libraries="$ac_qt_libraries"
 
29897
  qt_includes="$ac_qt_includes"
 
29898
fi
 
29899
 
 
29900
if test ! "$kde_qt_libs_given" = "yes" && test ! "$kde_qtver" = 3; then
 
29901
 
 
29902
 
 
29903
echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
 
29904
echo $ECHO_N "checking if Qt compiles without flags... $ECHO_C" >&6
 
29905
if test "${kde_cv_qt_direct+set}" = set; then
 
29906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29907
else
 
29908
 
 
29909
 
 
29910
 
 
29911
 ac_ext=cc
 
29912
ac_cpp='$CXXCPP $CPPFLAGS'
 
29913
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29914
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29915
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
29916
 
 
29917
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
29918
 
 
29919
 
 
29920
ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
 
29921
ac_LIBRARY_PATH="$LIBRARY_PATH"
 
29922
ac_cxxflags_safe="$CXXFLAGS"
 
29923
ac_ldflags_safe="$LDFLAGS"
 
29924
ac_libs_safe="$LIBS"
 
29925
 
 
29926
CXXFLAGS="$CXXFLAGS -I$qt_includes"
 
29927
LDFLAGS="$LDFLAGS $X_LDFLAGS"
 
29928
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
 
29929
LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
 
29930
else
 
29931
LIBS="$LIBQT $LIBSOCKET"
 
29932
fi
 
29933
LD_LIBRARY_PATH=
 
29934
export LD_LIBRARY_PATH
 
29935
LIBRARY_PATH=
 
29936
export LIBRARY_PATH
 
29937
 
 
29938
 
 
29939
 
 
29940
cat > conftest.$ac_ext <<EOF
 
29941
#include "confdefs.h"
 
29942
#include <qglobal.h>
 
29943
#include <qapplication.h>
 
29944
EOF
 
29945
if test "$kde_qtver" = "2"; then
 
29946
cat >> conftest.$ac_ext <<EOF
 
29947
#include <qevent.h>
 
29948
#include <qstring.h>
 
29949
#include <qstyle.h>
 
29950
EOF
 
29951
 
 
29952
if test $kde_qtsubver -gt 0; then
 
29953
cat >> conftest.$ac_ext <<EOF
 
29954
#if QT_VERSION < 210
 
29955
#error 1
 
29956
#endif
 
29957
EOF
 
29958
fi
 
29959
fi
 
29960
 
 
29961
if test "$kde_qtver" = "3"; then
 
29962
cat >> conftest.$ac_ext <<EOF
 
29963
#include <qcursor.h>
 
29964
#include <qstylefactory.h>
 
29965
#include <private/qucomextra_p.h>
 
29966
EOF
 
29967
fi
 
29968
 
 
29969
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
 
29970
cat >> conftest.$ac_ext <<EOF
 
29971
#error 1
 
29972
#endif
 
29973
 
 
29974
int main() {
 
29975
EOF
 
29976
if test "$kde_qtver" = "2"; then
 
29977
cat >> conftest.$ac_ext <<EOF
 
29978
    QStringList *t = new QStringList();
 
29979
    Q_UNUSED(t);
 
29980
EOF
 
29981
if test $kde_qtsubver -gt 0; then
 
29982
cat >> conftest.$ac_ext <<EOF
 
29983
    QString s;
 
29984
    s.setLatin1("Elvis is alive", 14);
 
29985
EOF
 
29986
fi
 
29987
fi
 
29988
if test "$kde_qtver" = "3"; then
 
29989
cat >> conftest.$ac_ext <<EOF
 
29990
    (void)QStyleFactory::create(QString::null);
 
29991
    QCursor c(Qt::WhatsThisCursor);
 
29992
EOF
 
29993
fi
 
29994
cat >> conftest.$ac_ext <<EOF
 
29995
    return 0;
 
29996
}
 
29997
EOF
 
29998
 
 
29999
 
 
30000
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30001
  (eval $ac_link) 2>&5
 
30002
  ac_status=$?
 
30003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30004
  (exit $ac_status); } && test -s conftest; then
 
30005
  kde_cv_qt_direct="yes"
 
30006
else
 
30007
  kde_cv_qt_direct="no"
 
30008
  echo "configure: failed program was:" >&5
 
30009
  cat conftest.$ac_ext >&5
 
30010
fi
 
30011
 
 
30012
rm -f conftest*
 
30013
CXXFLAGS="$ac_cxxflags_safe"
 
30014
LDFLAGS="$ac_ldflags_safe"
 
30015
LIBS="$ac_libs_safe"
 
30016
 
 
30017
LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
 
30018
export LD_LIBRARY_PATH
 
30019
LIBRARY_PATH="$ac_LIBRARY_PATH"
 
30020
export LIBRARY_PATH
 
30021
ac_ext=c
 
30022
ac_cpp='$CPP $CPPFLAGS'
 
30023
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30024
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30025
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
30026
 
 
30027
 
 
30028
fi
 
30029
 
 
30030
 
 
30031
if test "$kde_cv_qt_direct" = "yes"; then
 
30032
  echo "$as_me:$LINENO: result: yes" >&5
 
30033
echo "${ECHO_T}yes" >&6
 
30034
  qt_libraries=
 
30035
else
 
30036
  echo "$as_me:$LINENO: result: no" >&5
 
30037
echo "${ECHO_T}no" >&6
 
30038
 
 
30039
fi
 
30040
 
 
30041
fi
 
30042
 
 
30043
 
 
30044
 
 
30045
 
 
30046
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
 
30047
 QT_INCLUDES=""
 
30048
else
 
30049
 QT_INCLUDES="-I$qt_includes"
 
30050
 all_includes="$QT_INCLUDES $all_includes"
 
30051
fi
 
30052
 
 
30053
if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
 
30054
 QT_LDFLAGS=""
 
30055
else
 
30056
 QT_LDFLAGS="-L$qt_libraries"
 
30057
 all_libraries="$QT_LDFLAGS $all_libraries"
 
30058
fi
 
30059
test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
 
30060
 
 
30061
 
 
30062
 
 
30063
 
 
30064
 
 
30065
   qt_bindirs=""
 
30066
   for dir in $kde_qt_dirs; do
 
30067
      qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
 
30068
   done
 
30069
   qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
 
30070
   if test ! "$ac_qt_bindir" = "NO"; then
 
30071
      qt_bindirs="$ac_qt_bindir $qt_bindirs"
 
30072
   fi
 
30073
 
 
30074
 
 
30075
   echo "$as_me:$LINENO: checking for moc" >&5
 
30076
echo $ECHO_N "checking for moc... $ECHO_C" >&6
 
30077
   if test -n "$MOC"; then
 
30078
        kde_cv_path="$MOC";
 
30079
   else
 
30080
        kde_cache=`echo moc | sed 'y%./+-%__p_%'`
 
30081
 
 
30082
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
30083
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30084
else
 
30085
 
 
30086
        kde_cv_path="NONE"
 
30087
        kde_save_IFS=$IFS
 
30088
        IFS=':'
 
30089
        dirs=""
 
30090
        for dir in $PATH; do
 
30091
          dirs="$dirs $dir"
 
30092
        done
 
30093
        if test -z ""; then       dirs="$qt_bindirs $dirs"
 
30094
        else      dirs="$dirs $qt_bindirs"
 
30095
        fi
 
30096
        IFS=$kde_save_IFS
 
30097
 
 
30098
        for dir in $dirs; do
 
30099
          if test -x "$dir/moc"; then
 
30100
            if test -n ""
 
30101
            then
 
30102
              evalstr="$dir/moc  2>&1 "
 
30103
              if eval $evalstr; then
 
30104
                kde_cv_path="$dir/moc"
 
30105
                break
 
30106
              fi
 
30107
            else
 
30108
                kde_cv_path="$dir/moc"
 
30109
                break
 
30110
            fi
 
30111
          fi
 
30112
        done
 
30113
 
 
30114
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
30115
 
 
30116
 
 
30117
fi
 
30118
 
 
30119
 
 
30120
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
30121
 
 
30122
   fi
 
30123
 
 
30124
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
30125
      echo "$as_me:$LINENO: result: not found" >&5
 
30126
echo "${ECHO_T}not found" >&6
 
30127
 
 
30128
    { { echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
 
30129
Please check whether you installed Qt correctly.
 
30130
You need to have a running moc binary.
 
30131
configure tried to run $ac_cv_path_moc and the test didn't
 
30132
succeed. If configure shouldn't have tried this one, set
 
30133
the environment variable MOC to the right one before running
 
30134
configure.
 
30135
" >&5
 
30136
echo "$as_me: error: No Qt meta object compiler (moc) found!
 
30137
Please check whether you installed Qt correctly.
 
30138
You need to have a running moc binary.
 
30139
configure tried to run $ac_cv_path_moc and the test didn't
 
30140
succeed. If configure shouldn't have tried this one, set
 
30141
the environment variable MOC to the right one before running
 
30142
configure.
 
30143
" >&2;}
 
30144
   { (exit 1); exit 1; }; }
 
30145
 
 
30146
   else
 
30147
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
30148
echo "${ECHO_T}$kde_cv_path" >&6
 
30149
      MOC=$kde_cv_path
 
30150
 
 
30151
   fi
 
30152
 
 
30153
   if test -z "$UIC_NOT_NEEDED"; then
 
30154
 
 
30155
   echo "$as_me:$LINENO: checking for uic" >&5
 
30156
echo $ECHO_N "checking for uic... $ECHO_C" >&6
 
30157
   if test -n "$UIC_PATH"; then
 
30158
        kde_cv_path="$UIC_PATH";
 
30159
   else
 
30160
        kde_cache=`echo uic | sed 'y%./+-%__p_%'`
 
30161
 
 
30162
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
30163
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30164
else
 
30165
 
 
30166
        kde_cv_path="NONE"
 
30167
        kde_save_IFS=$IFS
 
30168
        IFS=':'
 
30169
        dirs=""
 
30170
        for dir in $PATH; do
 
30171
          dirs="$dirs $dir"
 
30172
        done
 
30173
        if test -z ""; then       dirs="$qt_bindirs $dirs"
 
30174
        else      dirs="$dirs $qt_bindirs"
 
30175
        fi
 
30176
        IFS=$kde_save_IFS
 
30177
 
 
30178
        for dir in $dirs; do
 
30179
          if test -x "$dir/uic"; then
 
30180
            if test -n ""
 
30181
            then
 
30182
              evalstr="$dir/uic  2>&1 "
 
30183
              if eval $evalstr; then
 
30184
                kde_cv_path="$dir/uic"
 
30185
                break
 
30186
              fi
 
30187
            else
 
30188
                kde_cv_path="$dir/uic"
 
30189
                break
 
30190
            fi
 
30191
          fi
 
30192
        done
 
30193
 
 
30194
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
30195
 
 
30196
 
 
30197
fi
 
30198
 
 
30199
 
 
30200
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
30201
 
 
30202
   fi
 
30203
 
 
30204
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
30205
      echo "$as_me:$LINENO: result: not found" >&5
 
30206
echo "${ECHO_T}not found" >&6
 
30207
      UIC_PATH=""
 
30208
   else
 
30209
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
30210
echo "${ECHO_T}$kde_cv_path" >&6
 
30211
      UIC_PATH=$kde_cv_path
 
30212
 
 
30213
   fi
 
30214
 
 
30215
     if test -z "$UIC_PATH" ; then
 
30216
 
 
30217
    { echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found!
 
30218
Please check whether you installed Qt correctly.
 
30219
You need to have a running uic binary.
 
30220
configure tried to run $ac_cv_path_uic and the test didn't
 
30221
succeed. If configure shouldn't have tried this one, set
 
30222
the environment variable UIC to the right one before running
 
30223
configure.
 
30224
" >&5
 
30225
echo "$as_me: WARNING: No Qt ui compiler (uic) found!
 
30226
Please check whether you installed Qt correctly.
 
30227
You need to have a running uic binary.
 
30228
configure tried to run $ac_cv_path_uic and the test didn't
 
30229
succeed. If configure shouldn't have tried this one, set
 
30230
the environment variable UIC to the right one before running
 
30231
configure.
 
30232
" >&2;}
 
30233
 
 
30234
       exit 1
 
30235
     else
 
30236
       UIC=$UIC_PATH
 
30237
 
 
30238
       if test $kde_qtver = 3; then
 
30239
 
 
30240
    echo "$as_me:$LINENO: checking whether uic supports -L " >&5
 
30241
echo $ECHO_N "checking whether uic supports -L ... $ECHO_C" >&6
 
30242
    kde_cache=`echo L | sed 'y% .=/+-%____p_%'`
 
30243
    if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
 
30244
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30245
else
 
30246
 
 
30247
        cat >conftest.ui <<EOT
 
30248
        <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
 
30249
EOT
 
30250
        ac_uic_testrun="$UIC_PATH -L /nonexistent conftest.ui >/dev/null"
 
30251
        if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
 
30252
  (eval $ac_uic_testrun) 2>&5
 
30253
  ac_status=$?
 
30254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30255
  (exit $ac_status); }; then
 
30256
            eval "kde_cv_prog_uic_$kde_cache=yes"
 
30257
        else
 
30258
            eval "kde_cv_prog_uic_$kde_cache=no"
 
30259
        fi
 
30260
        rm -f conftest*
 
30261
 
 
30262
fi
 
30263
 
 
30264
 
 
30265
    if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
 
30266
        echo "$as_me:$LINENO: result: yes" >&5
 
30267
echo "${ECHO_T}yes" >&6
 
30268
        :
 
30269
        ac_uic_supports_libpath=yes
 
30270
    else
 
30271
        echo "$as_me:$LINENO: result: no" >&5
 
30272
echo "${ECHO_T}no" >&6
 
30273
        :
 
30274
        ac_uic_supports_libpath=no
 
30275
    fi
 
30276
 
 
30277
 
 
30278
    echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5
 
30279
echo $ECHO_N "checking whether uic supports -nounload ... $ECHO_C" >&6
 
30280
    kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'`
 
30281
    if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
 
30282
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30283
else
 
30284
 
 
30285
        cat >conftest.ui <<EOT
 
30286
        <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
 
30287
EOT
 
30288
        ac_uic_testrun="$UIC_PATH -nounload  conftest.ui >/dev/null"
 
30289
        if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
 
30290
  (eval $ac_uic_testrun) 2>&5
 
30291
  ac_status=$?
 
30292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30293
  (exit $ac_status); }; then
 
30294
            eval "kde_cv_prog_uic_$kde_cache=yes"
 
30295
        else
 
30296
            eval "kde_cv_prog_uic_$kde_cache=no"
 
30297
        fi
 
30298
        rm -f conftest*
 
30299
 
 
30300
fi
 
30301
 
 
30302
 
 
30303
    if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
 
30304
        echo "$as_me:$LINENO: result: yes" >&5
 
30305
echo "${ECHO_T}yes" >&6
 
30306
        :
 
30307
        ac_uic_supports_nounload=yes
 
30308
    else
 
30309
        echo "$as_me:$LINENO: result: no" >&5
 
30310
echo "${ECHO_T}no" >&6
 
30311
        :
 
30312
        ac_uic_supports_nounload=no
 
30313
    fi
 
30314
 
 
30315
 
 
30316
         if test x$ac_uic_supports_libpath = xyes; then
 
30317
             UIC="$UIC -L \$(kde_widgetdir)"
 
30318
         fi
 
30319
         if test x$ac_uic_supports_nounload = xyes; then
 
30320
             UIC="$UIC -nounload"
 
30321
         fi
 
30322
       fi
 
30323
     fi
 
30324
   else
 
30325
     UIC="echo uic not available: "
 
30326
   fi
 
30327
 
 
30328
 
 
30329
 
 
30330
 
 
30331
   UIC_TR="i18n"
 
30332
   if test $kde_qtver = 3; then
 
30333
     UIC_TR="tr2i18n"
 
30334
   fi
 
30335
 
 
30336
 
 
30337
 
 
30338
 
 
30339
 
 
30340
if test -n "$LIBJPEG"; then
 
30341
echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
 
30342
echo $ECHO_N "checking if Qt needs $LIBJPEG... $ECHO_C" >&6
 
30343
if test "${kde_cv_qt_jpeg+set}" = set; then
 
30344
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30345
else
 
30346
 
 
30347
 
 
30348
 
 
30349
 ac_ext=cc
 
30350
ac_cpp='$CXXCPP $CPPFLAGS'
 
30351
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30352
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30353
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
30354
 
 
30355
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
30356
 
 
30357
 
 
30358
ac_save_LIBS="$LIBS"
 
30359
LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
 
30360
LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
 
30361
ac_save_CXXFLAGS="$CXXFLAGS"
 
30362
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
 
30363
cat >conftest.$ac_ext <<_ACEOF
 
30364
/* confdefs.h.  */
 
30365
_ACEOF
 
30366
cat confdefs.h >>conftest.$ac_ext
 
30367
cat >>conftest.$ac_ext <<_ACEOF
 
30368
/* end confdefs.h.  */
 
30369
#include <qapplication.h>
 
30370
int
 
30371
main ()
 
30372
{
 
30373
 
 
30374
            int argc;
 
30375
            char** argv;
 
30376
            QApplication app(argc, argv);
 
30377
  ;
 
30378
  return 0;
 
30379
}
 
30380
_ACEOF
 
30381
rm -f conftest.$ac_objext conftest$ac_exeext
 
30382
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30383
  (eval $ac_link) 2>conftest.er1
 
30384
  ac_status=$?
 
30385
  grep -v '^ *+' conftest.er1 >conftest.err
 
30386
  rm -f conftest.er1
 
30387
  cat conftest.err >&5
 
30388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30389
  (exit $ac_status); } &&
 
30390
         { ac_try='test -z "$ac_cxx_werror_flag"
 
30391
                         || test ! -s conftest.err'
 
30392
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30393
  (eval $ac_try) 2>&5
 
30394
  ac_status=$?
 
30395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30396
  (exit $ac_status); }; } &&
 
30397
         { ac_try='test -s conftest$ac_exeext'
 
30398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30399
  (eval $ac_try) 2>&5
 
30400
  ac_status=$?
 
30401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30402
  (exit $ac_status); }; }; then
 
30403
  eval "kde_cv_qt_jpeg=no"
 
30404
else
 
30405
  echo "$as_me: failed program was:" >&5
 
30406
sed 's/^/| /' conftest.$ac_ext >&5
 
30407
 
 
30408
eval "kde_cv_qt_jpeg=yes"
 
30409
fi
 
30410
rm -f conftest.err conftest.$ac_objext \
 
30411
      conftest$ac_exeext conftest.$ac_ext
 
30412
LIBS="$ac_save_LIBS"
 
30413
CXXFLAGS="$ac_save_CXXFLAGS"
 
30414
ac_ext=c
 
30415
ac_cpp='$CPP $CPPFLAGS'
 
30416
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30417
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30418
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
30419
 
 
30420
fi
 
30421
 
 
30422
fi
 
30423
 
 
30424
 
 
30425
if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then
 
30426
  echo "$as_me:$LINENO: result: yes" >&5
 
30427
echo "${ECHO_T}yes" >&6
 
30428
  LIBJPEG_QT='$(LIBJPEG)'
 
30429
else
 
30430
  echo "$as_me:$LINENO: result: no" >&5
 
30431
echo "${ECHO_T}no" >&6
 
30432
  LIBJPEG_QT=
 
30433
fi
 
30434
 
 
30435
 
 
30436
 
 
30437
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
 
30438
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
 
30439
else
 
30440
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG)'
 
30441
fi
 
30442
test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
 
30443
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
 
30444
  if test -e "$a"; then
 
30445
     LIB_QT="$LIB_QT ${kde_int_qt}_incremental"
 
30446
     break
 
30447
  fi
 
30448
done
 
30449
 
 
30450
 
 
30451
 
 
30452
 
 
30453
 
 
30454
 
 
30455
 
 
30456
 
 
30457
 
 
30458
 
 
30459
 
 
30460
 
 
30461
 
 
30462
echo "$as_me:$LINENO: checking for rpath" >&5
 
30463
echo $ECHO_N "checking for rpath... $ECHO_C" >&6
 
30464
# Check whether --enable-rpath or --disable-rpath was given.
 
30465
if test "${enable_rpath+set}" = set; then
 
30466
  enableval="$enable_rpath"
 
30467
  USE_RPATH=$enableval
 
30468
else
 
30469
  USE_RPATH=yes
 
30470
fi;
 
30471
 
 
30472
if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
 
30473
 
 
30474
  KDE_RPATH="-R \$(libdir)"
 
30475
 
 
30476
  if test "$kde_libraries" != "$libdir"; then
 
30477
      KDE_RPATH="$KDE_RPATH -R \$(kde_libraries)"
 
30478
  fi
 
30479
 
 
30480
  if test -n "$qt_libraries"; then
 
30481
    KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
 
30482
  fi
 
30483
    if test -n "$X_LDFLAGS"; then
 
30484
    X_RPATH="-R \$(x_libraries)"
 
30485
    KDE_RPATH="$KDE_RPATH $X_RPATH"
 
30486
  fi
 
30487
  if test -n "$KDE_EXTRA_RPATH"; then
 
30488
    KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)"
 
30489
  fi
 
30490
fi
 
30491
 
 
30492
 
 
30493
 
 
30494
echo "$as_me:$LINENO: result: $USE_RPATH" >&5
 
30495
echo "${ECHO_T}$USE_RPATH" >&6
 
30496
 
 
30497
echo "$as_me:$LINENO: checking for KDE" >&5
 
30498
echo $ECHO_N "checking for KDE... $ECHO_C" >&6
 
30499
 
 
30500
if test "${prefix}" != NONE; then
 
30501
  kde_includes=${includedir}
 
30502
 
 
30503
savex=$exec_prefix
 
30504
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
30505
tmp=$includedir
 
30506
while ac_kde_includes=`eval echo "$tmp"`; test "x$ac_kde_includes" != "x$tmp"; do tmp=$ac_kde_includes; done
 
30507
exec_prefix=$savex
 
30508
 
 
30509
 
 
30510
  kde_libraries=${libdir}
 
30511
 
 
30512
savex=$exec_prefix
 
30513
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
30514
tmp=$libdir
 
30515
while ac_kde_libraries=`eval echo "$tmp"`; test "x$ac_kde_libraries" != "x$tmp"; do tmp=$ac_kde_libraries; done
 
30516
exec_prefix=$savex
 
30517
 
 
30518
 
 
30519
else
 
30520
  ac_kde_includes=
 
30521
  ac_kde_libraries=
 
30522
  kde_libraries=""
 
30523
  kde_includes=""
 
30524
fi
 
30525
 
 
30526
if test "${ac_cv_have_kde+set}" = set; then
 
30527
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30528
else
 
30529
  #try to guess kde locations
 
30530
 
 
30531
if test "$kde_qtver" = 1; then
 
30532
  kde_check_header="ksock.h"
 
30533
  kde_check_lib="libkdecore.la"
 
30534
else
 
30535
  kde_check_header="ksharedptr.h"
 
30536
  kde_check_lib="libkio.la"
 
30537
fi
 
30538
 
 
30539
if test -z ""; then
 
30540
 
 
30541
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"
 
30542
test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
 
30543
kde_incdirs="$ac_kde_includes $kde_incdirs"
 
30544
 
 
30545
kde_incdir=NO
 
30546
for i in $kde_incdirs;
 
30547
do
 
30548
  for j in $kde_check_header;
 
30549
  do
 
30550
    echo "configure: 30550: $i/$j" >&5
 
30551
    if test -r "$i/$j"; then
 
30552
      echo "taking that" >&5
 
30553
      kde_incdir=$i
 
30554
      break 2
 
30555
    fi
 
30556
  done
 
30557
done
 
30558
 
 
30559
ac_kde_includes="$kde_incdir"
 
30560
 
 
30561
if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
 
30562
  { { echo "$as_me:$LINENO: error:
 
30563
in the prefix, you've chosen, are no KDE headers installed. This will fail.
 
30564
So, check this please and use another prefix!" >&5
 
30565
echo "$as_me: error:
 
30566
in the prefix, you've chosen, are no KDE headers installed. This will fail.
 
30567
So, check this please and use another prefix!" >&2;}
 
30568
   { (exit 1); exit 1; }; }
 
30569
fi
 
30570
 
 
30571
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}"
 
30572
test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs"
 
30573
kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs"
 
30574
 
 
30575
kde_libdir=NO
 
30576
for i in $kde_libdirs;
 
30577
do
 
30578
  for j in $kde_check_lib;
 
30579
  do
 
30580
    echo "configure: 30580: $i/$j" >&5
 
30581
    if test -r "$i/$j"; then
 
30582
      echo "taking that" >&5
 
30583
      kde_libdir=$i
 
30584
      break 2
 
30585
    fi
 
30586
  done
 
30587
done
 
30588
 
 
30589
ac_kde_libraries="$kde_libdir"
 
30590
 
 
30591
kde_widgetdir=NO
 
30592
 
 
30593
kde_widgetdir=NO
 
30594
for i in $kde_libdirs;
 
30595
do
 
30596
  for j in "kde3/plugins/designer/kdewidgets.la";
 
30597
  do
 
30598
    echo "configure: 30598: $i/$j" >&5
 
30599
    if test -r "$i/$j"; then
 
30600
      echo "taking that" >&5
 
30601
      kde_widgetdir=$i
 
30602
      break 2
 
30603
    fi
 
30604
  done
 
30605
done
 
30606
 
 
30607
 
 
30608
if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
 
30609
{ { echo "$as_me:$LINENO: error:
 
30610
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
 
30611
So, check this please and use another prefix!" >&5
 
30612
echo "$as_me: error:
 
30613
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
 
30614
So, check this please and use another prefix!" >&2;}
 
30615
   { (exit 1); exit 1; }; }
 
30616
fi
 
30617
 
 
30618
if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then
 
30619
{ { echo "$as_me:$LINENO: error:
 
30620
I can't find the designer plugins. These are required and should have been installed
 
30621
by kdelibs" >&5
 
30622
echo "$as_me: error:
 
30623
I can't find the designer plugins. These are required and should have been installed
 
30624
by kdelibs" >&2;}
 
30625
   { (exit 1); exit 1; }; }
 
30626
fi
 
30627
 
 
30628
if test -n "$kde_widgetdir"; then
 
30629
    kde_widgetdir="$kde_widgetdir/kde3/plugins/designer"
 
30630
fi
 
30631
 
 
30632
 
 
30633
if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO || test "$kde_widgetdir" = NO; then
 
30634
  ac_cv_have_kde="have_kde=no"
 
30635
else
 
30636
  ac_cv_have_kde="have_kde=yes \
 
30637
    ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
 
30638
fi
 
30639
 
 
30640
else
 
30641
  ac_cv_have_kde="have_kde=no"
 
30642
 
 
30643
fi
 
30644
 
 
30645
fi
 
30646
 
 
30647
eval "$ac_cv_have_kde"
 
30648
 
 
30649
if test "$have_kde" != "yes"; then
 
30650
 if test "${prefix}" = NONE; then
 
30651
  ac_kde_prefix="$ac_default_prefix"
 
30652
 else
 
30653
  ac_kde_prefix="$prefix"
 
30654
 fi
 
30655
 if test "$exec_prefix" = NONE; then
 
30656
  ac_kde_exec_prefix="$ac_kde_prefix"
 
30657
  echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix" >&5
 
30658
echo "${ECHO_T}will be installed in $ac_kde_prefix" >&6
 
30659
 else
 
30660
  ac_kde_exec_prefix="$exec_prefix"
 
30661
  echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&5
 
30662
echo "${ECHO_T}will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&6
 
30663
 fi
 
30664
 
 
30665
 kde_libraries="${libdir}"
 
30666
 kde_includes="${includedir}"
 
30667
 
 
30668
else
 
30669
  ac_cv_have_kde="have_kde=yes \
 
30670
    ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
 
30671
  echo "$as_me:$LINENO: result: libraries $ac_kde_libraries, headers $ac_kde_includes" >&5
 
30672
echo "${ECHO_T}libraries $ac_kde_libraries, headers $ac_kde_includes" >&6
 
30673
 
 
30674
  kde_libraries="$ac_kde_libraries"
 
30675
  kde_includes="$ac_kde_includes"
 
30676
fi
 
30677
 
 
30678
 
 
30679
 
 
30680
if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes"  || test "$kde_includes" = "/usr/include"; then
 
30681
 KDE_INCLUDES=""
 
30682
else
 
30683
 KDE_INCLUDES="-I$kde_includes"
 
30684
 all_includes="$KDE_INCLUDES $all_includes"
 
30685
fi
 
30686
 
 
30687
KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION"
 
30688
 
 
30689
KDE_LDFLAGS="-L$kde_libraries"
 
30690
if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
 
30691
 all_libraries="$KDE_LDFLAGS $all_libraries"
 
30692
fi
 
30693
 
 
30694
 
 
30695
 
 
30696
 
 
30697
 
 
30698
 
 
30699
all_libraries="$all_libraries $USER_LDFLAGS"
 
30700
all_includes="$all_includes $USER_INCLUDES"
 
30701
 
 
30702
 
 
30703
 
 
30704
if test -z ""; then
 
30705
 
 
30706
 
 
30707
 
 
30708
if test x$ac_uic_supports_libpath = xyes; then
 
30709
 
 
30710
echo "$as_me:$LINENO: checking if UIC has KDE plugins available" >&5
 
30711
echo $ECHO_N "checking if UIC has KDE plugins available... $ECHO_C" >&6
 
30712
if test "${kde_cv_uic_plugins+set}" = set; then
 
30713
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30714
else
 
30715
 
 
30716
cat > actest.ui << EOF
 
30717
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
 
30718
<class>NewConnectionDialog</class>
 
30719
<widget class="QDialog">
 
30720
   <widget class="KLineEdit">
 
30721
        <property name="name">
 
30722
           <cstring>testInput</cstring>
 
30723
        </property>
 
30724
   </widget>
 
30725
</widget>
 
30726
</UI>
 
30727
EOF
 
30728
 
 
30729
 
 
30730
 
 
30731
kde_cv_uic_plugins=no
 
30732
kde_line="$UIC_PATH -L $kde_widgetdir"
 
30733
if test x$ac_uic_supports_nounload = xyes; then
 
30734
   kde_line="$kde_line -nounload"
 
30735
fi
 
30736
kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
 
30737
if { (eval echo "$as_me:$LINENO: \"$kde_line\"") >&5
 
30738
  (eval $kde_line) 2>&5
 
30739
  ac_status=$?
 
30740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30741
  (exit $ac_status); }; then
 
30742
        # if you're trying to debug this check and think it's incorrect,
 
30743
        # better check your installation. The check _is_ correct - your
 
30744
        # installation is not.
 
30745
        if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
 
30746
                kde_cv_uic_plugins=yes
 
30747
        fi
 
30748
fi
 
30749
rm -f actest.ui actest.cpp
 
30750
 
 
30751
fi
 
30752
 
 
30753
 
 
30754
echo "$as_me:$LINENO: result: $kde_cv_uic_plugins" >&5
 
30755
echo "${ECHO_T}$kde_cv_uic_plugins" >&6
 
30756
if test "$kde_cv_uic_plugins" != yes; then
 
30757
        { { echo "$as_me:$LINENO: error:
 
30758
you need to install kdelibs first.
 
30759
 
 
30760
If you did install kdelibs, then the Qt version that is picked up by
 
30761
this configure is not the same version you used to compile kdelibs.
 
30762
The Qt Plugin installed by kdelibs is *ONLY* loadable if its the
 
30763
same Qt version, compiled with the same compiler and the same Qt
 
30764
configuration settings.
 
30765
" >&5
 
30766
echo "$as_me: error:
 
30767
you need to install kdelibs first.
 
30768
 
 
30769
If you did install kdelibs, then the Qt version that is picked up by
 
30770
this configure is not the same version you used to compile kdelibs.
 
30771
The Qt Plugin installed by kdelibs is *ONLY* loadable if its the
 
30772
same Qt version, compiled with the same compiler and the same Qt
 
30773
configuration settings.
 
30774
" >&2;}
 
30775
   { (exit 1); exit 1; }; }
 
30776
fi
 
30777
fi
 
30778
 
 
30779
fi
 
30780
 
 
30781
ac_kde_libraries="$kde_libdir"
 
30782
 
 
30783
 
 
30784
 
 
30785
 
 
30786
 
 
30787
  # Check whether --enable-path-check or --disable-path-check was given.
 
30788
if test "${enable_path_check+set}" = set; then
 
30789
  enableval="$enable_path_check"
 
30790
 
 
30791
  if test "$enableval" = "no";
 
30792
    then ac_use_path_checking="default"
 
30793
    else ac_use_path_checking=""
 
30794
  fi
 
30795
 
 
30796
else
 
30797
 
 
30798
  if test "$kde_qtver" = 1;
 
30799
    then ac_use_path_checking=""
 
30800
    else ac_use_path_checking="default"
 
30801
  fi
 
30802
 
 
30803
 
 
30804
fi;
 
30805
 
 
30806
 
 
30807
 
 
30808
 
 
30809
echo "$as_me:$LINENO: checking for KDE paths" >&5
 
30810
echo $ECHO_N "checking for KDE paths... $ECHO_C" >&6
 
30811
kde_result=""
 
30812
kde_cached_paths=yes
 
30813
if test "${kde_cv_all_paths+set}" = set; then
 
30814
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30815
else
 
30816
 
 
30817
 
 
30818
if test "$ac_use_path_checking" = "default"; then
 
30819
 
 
30820
  if test -z "$kde_htmldir"; then
 
30821
    kde_htmldir='\${datadir}/doc/HTML'
 
30822
  fi
 
30823
  if test -z "$kde_appsdir"; then
 
30824
    kde_appsdir='\${datadir}/applnk'
 
30825
  fi
 
30826
  if test -z "$kde_icondir"; then
 
30827
    kde_icondir='\${datadir}/icons'
 
30828
  fi
 
30829
  if test -z "$kde_sounddir"; then
 
30830
    kde_sounddir='\${datadir}/sounds'
 
30831
  fi
 
30832
  if test -z "$kde_datadir"; then
 
30833
    kde_datadir='\${datadir}/apps'
 
30834
  fi
 
30835
  if test -z "$kde_locale"; then
 
30836
    kde_locale='\${datadir}/locale'
 
30837
  fi
 
30838
  if test -z "$kde_cgidir"; then
 
30839
    kde_cgidir='\${exec_prefix}/cgi-bin'
 
30840
  fi
 
30841
  if test -z "$kde_confdir"; then
 
30842
    kde_confdir='\${datadir}/config'
 
30843
  fi
 
30844
  if test -z "$kde_kcfgdir"; then
 
30845
    kde_kcfgdir='\${datadir}/config.kcfg'
 
30846
  fi
 
30847
  if test -z "$kde_mimedir"; then
 
30848
    kde_mimedir='\${datadir}/mimelnk'
 
30849
  fi
 
30850
  if test -z "$kde_toolbardir"; then
 
30851
    kde_toolbardir='\${datadir}/toolbar'
 
30852
  fi
 
30853
  if test -z "$kde_wallpaperdir"; then
 
30854
    kde_wallpaperdir='\${datadir}/wallpapers'
 
30855
  fi
 
30856
  if test -z "$kde_templatesdir"; then
 
30857
    kde_templatesdir='\${datadir}/templates'
 
30858
  fi
 
30859
  if test -z "$kde_bindir"; then
 
30860
    kde_bindir='\${exec_prefix}/bin'
 
30861
  fi
 
30862
  if test -z "$kde_servicesdir"; then
 
30863
    kde_servicesdir='\${datadir}/services'
 
30864
  fi
 
30865
  if test -z "$kde_servicetypesdir"; then
 
30866
    kde_servicetypesdir='\${datadir}/servicetypes'
 
30867
  fi
 
30868
  if test -z "$kde_moduledir"; then
 
30869
    if test "$kde_qtver" = "2"; then
 
30870
      kde_moduledir='\${libdir}/kde2'
 
30871
    else
 
30872
      kde_moduledir='\${libdir}/kde3'
 
30873
    fi
 
30874
  fi
 
30875
  if test -z "$kde_styledir"; then
 
30876
    kde_styledir='\${libdir}/kde3/plugins/styles'
 
30877
  fi
 
30878
  if test -z "$kde_widgetdir"; then
 
30879
    kde_widgetdir='\${libdir}/kde3/plugins/designer'
 
30880
  fi
 
30881
  if test -z "$xdg_appsdir"; then
 
30882
    xdg_appsdir='\${datadir}/applications/kde'
 
30883
  fi
 
30884
  if test -z "$xdg_menudir"; then
 
30885
    xdg_menudir='\${sysconfdir}/xdg/menus'
 
30886
  fi
 
30887
  if test -z "$xdg_directorydir"; then
 
30888
    xdg_directorydir='\${datadir}/desktop-directories'
 
30889
  fi
 
30890
 
 
30891
 
 
30892
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
 
30893
        kde_htmldir=\"$kde_htmldir\" \
 
30894
        kde_appsdir=\"$kde_appsdir\" \
 
30895
        kde_icondir=\"$kde_icondir\" \
 
30896
        kde_sounddir=\"$kde_sounddir\" \
 
30897
        kde_datadir=\"$kde_datadir\" \
 
30898
        kde_locale=\"$kde_locale\" \
 
30899
        kde_cgidir=\"$kde_cgidir\" \
 
30900
        kde_confdir=\"$kde_confdir\" \
 
30901
        kde_kcfgdir=\"$kde_kcfgdir\" \
 
30902
        kde_mimedir=\"$kde_mimedir\" \
 
30903
        kde_toolbardir=\"$kde_toolbardir\" \
 
30904
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
 
30905
        kde_templatesdir=\"$kde_templatesdir\" \
 
30906
        kde_bindir=\"$kde_bindir\" \
 
30907
        kde_servicesdir=\"$kde_servicesdir\" \
 
30908
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
 
30909
        kde_moduledir=\"$kde_moduledir\" \
 
30910
        kde_styledir=\"$kde_styledir\" \
 
30911
        kde_widgetdir=\"$kde_widgetdir\" \
 
30912
        xdg_appsdir=\"$xdg_appsdir\" \
 
30913
        xdg_menudir=\"$xdg_menudir\" \
 
30914
        xdg_directorydir=\"$xdg_directorydir\" \
 
30915
        kde_result=defaults"
 
30916
 
 
30917
 
 
30918
else
 
30919
 
 
30920
  if test $kde_qtver = 1; then
 
30921
     echo "$as_me:$LINENO: result: compiling" >&5
 
30922
echo "${ECHO_T}compiling" >&6
 
30923
 
 
30924
 
 
30925
    echo "$as_me:$LINENO: checking for KDE headers installed" >&5
 
30926
echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6
 
30927
 
 
30928
 
 
30929
     ac_ext=cc
 
30930
ac_cpp='$CXXCPP $CPPFLAGS'
 
30931
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30932
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30933
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
30934
 
 
30935
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
30936
 
 
30937
 
 
30938
cat > conftest.$ac_ext <<EOF
 
30939
#ifdef STDC_HEADERS
 
30940
# include <stdlib.h>
 
30941
#endif
 
30942
#include <stdio.h>
 
30943
#include "confdefs.h"
 
30944
#include <kapp.h>
 
30945
 
 
30946
int main() {
 
30947
    printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
 
30948
    printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
 
30949
    printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
 
30950
    printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
 
30951
    printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
 
30952
    printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
 
30953
    printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
 
30954
    printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
 
30955
    printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
 
30956
    printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
 
30957
    printf("kde_wallpaperdir=\\"%s\\"\n",
 
30958
        KApplication::kde_wallpaperdir().data());
 
30959
    printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
 
30960
    printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
 
30961
    printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
 
30962
    printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
 
30963
    printf("kde_moduledir=\\"/tmp/dummy\\"\n");
 
30964
    printf("kde_styledir=\\"/tmp/dummy\\"\n");
 
30965
    printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
 
30966
    printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
 
30967
    printf("xdg_menudir=\\"/tmp/dummy\\"\n");
 
30968
    printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
 
30969
    printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
 
30970
    return 0;
 
30971
    }
 
30972
EOF
 
30973
 
 
30974
 ac_save_CPPFLAGS=$CPPFLAGS
 
30975
 CPPFLAGS="$all_includes $CPPFLAGS"
 
30976
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30977
  (eval $ac_compile) 2>&5
 
30978
  ac_status=$?
 
30979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30980
  (exit $ac_status); }; then
 
30981
   echo "$as_me:$LINENO: result: yes" >&5
 
30982
echo "${ECHO_T}yes" >&6
 
30983
 else
 
30984
   { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
 
30985
Check, if you installed the KDE header files correctly.
 
30986
For more details about this problem, look at the end of config.log." >&5
 
30987
echo "$as_me: error: your system is not able to compile a small KDE application!
 
30988
Check, if you installed the KDE header files correctly.
 
30989
For more details about this problem, look at the end of config.log." >&2;}
 
30990
   { (exit 1); exit 1; }; }
 
30991
  fi
 
30992
  CPPFLAGS=$ac_save_CPPFLAGS
 
30993
 
 
30994
  ac_ext=c
 
30995
ac_cpp='$CPP $CPPFLAGS'
 
30996
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30997
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30998
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
30999
 
 
31000
 
 
31001
 
 
31002
  KDE_TEST_RPATH=
 
31003
 
 
31004
  if test -n "$USE_RPATH"; then
 
31005
 
 
31006
     if test -n "$kde_libraries"; then
 
31007
       KDE_TEST_RPATH="-R $kde_libraries"
 
31008
     fi
 
31009
 
 
31010
     if test -n "$qt_libraries"; then
 
31011
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
 
31012
     fi
 
31013
 
 
31014
     if test -n "$x_libraries"; then
 
31015
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
 
31016
     fi
 
31017
 
 
31018
     KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
 
31019
  fi
 
31020
 
 
31021
echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
 
31022
echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6
 
31023
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'
 
31024
 
 
31025
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31026
  (eval $ac_link) 2>&5
 
31027
  ac_status=$?
 
31028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31029
  (exit $ac_status); } && test -s conftest; then
 
31030
  echo "$as_me:$LINENO: result: yes" >&5
 
31031
echo "${ECHO_T}yes" >&6
 
31032
else
 
31033
  { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
 
31034
Check, if your compiler is installed correctly and if you have used the
 
31035
same compiler to compile Qt and kdelibs as you did use now.
 
31036
For more details about this problem, look at the end of config.log." >&5
 
31037
echo "$as_me: error: your system fails at linking a small KDE application!
 
31038
Check, if your compiler is installed correctly and if you have used the
 
31039
same compiler to compile Qt and kdelibs as you did use now.
 
31040
For more details about this problem, look at the end of config.log." >&2;}
 
31041
   { (exit 1); exit 1; }; }
 
31042
fi
 
31043
 
 
31044
if eval `KDEDIR= ./conftest 2>&5`; then
 
31045
  kde_result=done
 
31046
else
 
31047
  kde_result=problems
 
31048
fi
 
31049
 
 
31050
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
 
31051
kde_have_all_paths=yes
 
31052
 
 
31053
 
 
31054
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
 
31055
        kde_htmldir=\"$kde_htmldir\" \
 
31056
        kde_appsdir=\"$kde_appsdir\" \
 
31057
        kde_icondir=\"$kde_icondir\" \
 
31058
        kde_sounddir=\"$kde_sounddir\" \
 
31059
        kde_datadir=\"$kde_datadir\" \
 
31060
        kde_locale=\"$kde_locale\" \
 
31061
        kde_cgidir=\"$kde_cgidir\" \
 
31062
        kde_confdir=\"$kde_confdir\" \
 
31063
        kde_kcfgdir=\"$kde_kcfgdir\" \
 
31064
        kde_mimedir=\"$kde_mimedir\" \
 
31065
        kde_toolbardir=\"$kde_toolbardir\" \
 
31066
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
 
31067
        kde_templatesdir=\"$kde_templatesdir\" \
 
31068
        kde_bindir=\"$kde_bindir\" \
 
31069
        kde_servicesdir=\"$kde_servicesdir\" \
 
31070
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
 
31071
        kde_moduledir=\"$kde_moduledir\" \
 
31072
        kde_styledir=\"$kde_styledir\" \
 
31073
        kde_widgetdir=\"$kde_widgetdir\" \
 
31074
        xdg_appsdir=\"$xdg_appsdir\" \
 
31075
        xdg_menudir=\"$xdg_menudir\" \
 
31076
        xdg_directorydir=\"$xdg_directorydir\" \
 
31077
        kde_result=$kde_result"
 
31078
 
 
31079
 
 
31080
 
 
31081
  else
 
31082
     { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
 
31083
echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
 
31084
   { (exit 1); exit 1; }; }
 
31085
  fi
 
31086
 
 
31087
fi
 
31088
 
 
31089
  kde_cached_paths=no
 
31090
 
 
31091
fi
 
31092
 
 
31093
eval "$kde_cv_all_paths"
 
31094
 if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
 
31095
   test -z "$kde_icondir" || test -z "$kde_sounddir" ||
 
31096
   test -z "$kde_datadir" || test -z "$kde_locale"  ||
 
31097
   test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
 
31098
   test -z "$kde_kcfgdir" ||
 
31099
   test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
 
31100
   test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
 
31101
   test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
 
31102
   test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
 
31103
   test -z "$kde_styledir" || test -z "kde_widgetdir" ||
 
31104
   test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
 
31105
   test "x$kde_have_all_paths" != "xyes"; then
 
31106
     kde_have_all_paths=no
 
31107
  fi
 
31108
 
 
31109
if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then
 
31110
  # wrong values were cached, may be, we can set better ones
 
31111
  kde_result=
 
31112
  kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
 
31113
  kde_datadir= kde_locale=  kde_cgidir=  kde_confdir= kde_kcfgdir=
 
31114
  kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
 
31115
  kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
 
31116
  kde_have_all_paths=
 
31117
  kde_styledir=
 
31118
  kde_widgetdir=
 
31119
  xdg_appsdir = xdg_menudir= xdg_directorydir=
 
31120
 
 
31121
if test "$ac_use_path_checking" = "default"; then
 
31122
 
 
31123
  if test -z "$kde_htmldir"; then
 
31124
    kde_htmldir='\${datadir}/doc/HTML'
 
31125
  fi
 
31126
  if test -z "$kde_appsdir"; then
 
31127
    kde_appsdir='\${datadir}/applnk'
 
31128
  fi
 
31129
  if test -z "$kde_icondir"; then
 
31130
    kde_icondir='\${datadir}/icons'
 
31131
  fi
 
31132
  if test -z "$kde_sounddir"; then
 
31133
    kde_sounddir='\${datadir}/sounds'
 
31134
  fi
 
31135
  if test -z "$kde_datadir"; then
 
31136
    kde_datadir='\${datadir}/apps'
 
31137
  fi
 
31138
  if test -z "$kde_locale"; then
 
31139
    kde_locale='\${datadir}/locale'
 
31140
  fi
 
31141
  if test -z "$kde_cgidir"; then
 
31142
    kde_cgidir='\${exec_prefix}/cgi-bin'
 
31143
  fi
 
31144
  if test -z "$kde_confdir"; then
 
31145
    kde_confdir='\${datadir}/config'
 
31146
  fi
 
31147
  if test -z "$kde_kcfgdir"; then
 
31148
    kde_kcfgdir='\${datadir}/config.kcfg'
 
31149
  fi
 
31150
  if test -z "$kde_mimedir"; then
 
31151
    kde_mimedir='\${datadir}/mimelnk'
 
31152
  fi
 
31153
  if test -z "$kde_toolbardir"; then
 
31154
    kde_toolbardir='\${datadir}/toolbar'
 
31155
  fi
 
31156
  if test -z "$kde_wallpaperdir"; then
 
31157
    kde_wallpaperdir='\${datadir}/wallpapers'
 
31158
  fi
 
31159
  if test -z "$kde_templatesdir"; then
 
31160
    kde_templatesdir='\${datadir}/templates'
 
31161
  fi
 
31162
  if test -z "$kde_bindir"; then
 
31163
    kde_bindir='\${exec_prefix}/bin'
 
31164
  fi
 
31165
  if test -z "$kde_servicesdir"; then
 
31166
    kde_servicesdir='\${datadir}/services'
 
31167
  fi
 
31168
  if test -z "$kde_servicetypesdir"; then
 
31169
    kde_servicetypesdir='\${datadir}/servicetypes'
 
31170
  fi
 
31171
  if test -z "$kde_moduledir"; then
 
31172
    if test "$kde_qtver" = "2"; then
 
31173
      kde_moduledir='\${libdir}/kde2'
 
31174
    else
 
31175
      kde_moduledir='\${libdir}/kde3'
 
31176
    fi
 
31177
  fi
 
31178
  if test -z "$kde_styledir"; then
 
31179
    kde_styledir='\${libdir}/kde3/plugins/styles'
 
31180
  fi
 
31181
  if test -z "$kde_widgetdir"; then
 
31182
    kde_widgetdir='\${libdir}/kde3/plugins/designer'
 
31183
  fi
 
31184
  if test -z "$xdg_appsdir"; then
 
31185
    xdg_appsdir='\${datadir}/applications/kde'
 
31186
  fi
 
31187
  if test -z "$xdg_menudir"; then
 
31188
    xdg_menudir='\${sysconfdir}/xdg/menus'
 
31189
  fi
 
31190
  if test -z "$xdg_directorydir"; then
 
31191
    xdg_directorydir='\${datadir}/desktop-directories'
 
31192
  fi
 
31193
 
 
31194
 
 
31195
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
 
31196
        kde_htmldir=\"$kde_htmldir\" \
 
31197
        kde_appsdir=\"$kde_appsdir\" \
 
31198
        kde_icondir=\"$kde_icondir\" \
 
31199
        kde_sounddir=\"$kde_sounddir\" \
 
31200
        kde_datadir=\"$kde_datadir\" \
 
31201
        kde_locale=\"$kde_locale\" \
 
31202
        kde_cgidir=\"$kde_cgidir\" \
 
31203
        kde_confdir=\"$kde_confdir\" \
 
31204
        kde_kcfgdir=\"$kde_kcfgdir\" \
 
31205
        kde_mimedir=\"$kde_mimedir\" \
 
31206
        kde_toolbardir=\"$kde_toolbardir\" \
 
31207
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
 
31208
        kde_templatesdir=\"$kde_templatesdir\" \
 
31209
        kde_bindir=\"$kde_bindir\" \
 
31210
        kde_servicesdir=\"$kde_servicesdir\" \
 
31211
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
 
31212
        kde_moduledir=\"$kde_moduledir\" \
 
31213
        kde_styledir=\"$kde_styledir\" \
 
31214
        kde_widgetdir=\"$kde_widgetdir\" \
 
31215
        xdg_appsdir=\"$xdg_appsdir\" \
 
31216
        xdg_menudir=\"$xdg_menudir\" \
 
31217
        xdg_directorydir=\"$xdg_directorydir\" \
 
31218
        kde_result=defaults"
 
31219
 
 
31220
 
 
31221
else
 
31222
 
 
31223
  if test $kde_qtver = 1; then
 
31224
     echo "$as_me:$LINENO: result: compiling" >&5
 
31225
echo "${ECHO_T}compiling" >&6
 
31226
 
 
31227
 
 
31228
    echo "$as_me:$LINENO: checking for KDE headers installed" >&5
 
31229
echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6
 
31230
 
 
31231
 
 
31232
     ac_ext=cc
 
31233
ac_cpp='$CXXCPP $CPPFLAGS'
 
31234
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31235
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31236
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
31237
 
 
31238
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
31239
 
 
31240
 
 
31241
cat > conftest.$ac_ext <<EOF
 
31242
#ifdef STDC_HEADERS
 
31243
# include <stdlib.h>
 
31244
#endif
 
31245
#include <stdio.h>
 
31246
#include "confdefs.h"
 
31247
#include <kapp.h>
 
31248
 
 
31249
int main() {
 
31250
    printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
 
31251
    printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
 
31252
    printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
 
31253
    printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
 
31254
    printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
 
31255
    printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
 
31256
    printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
 
31257
    printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
 
31258
    printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
 
31259
    printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
 
31260
    printf("kde_wallpaperdir=\\"%s\\"\n",
 
31261
        KApplication::kde_wallpaperdir().data());
 
31262
    printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
 
31263
    printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
 
31264
    printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
 
31265
    printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
 
31266
    printf("kde_moduledir=\\"/tmp/dummy\\"\n");
 
31267
    printf("kde_styledir=\\"/tmp/dummy\\"\n");
 
31268
    printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
 
31269
    printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
 
31270
    printf("xdg_menudir=\\"/tmp/dummy\\"\n");
 
31271
    printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
 
31272
    printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
 
31273
    return 0;
 
31274
    }
 
31275
EOF
 
31276
 
 
31277
 ac_save_CPPFLAGS=$CPPFLAGS
 
31278
 CPPFLAGS="$all_includes $CPPFLAGS"
 
31279
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31280
  (eval $ac_compile) 2>&5
 
31281
  ac_status=$?
 
31282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31283
  (exit $ac_status); }; then
 
31284
   echo "$as_me:$LINENO: result: yes" >&5
 
31285
echo "${ECHO_T}yes" >&6
 
31286
 else
 
31287
   { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
 
31288
Check, if you installed the KDE header files correctly.
 
31289
For more details about this problem, look at the end of config.log." >&5
 
31290
echo "$as_me: error: your system is not able to compile a small KDE application!
 
31291
Check, if you installed the KDE header files correctly.
 
31292
For more details about this problem, look at the end of config.log." >&2;}
 
31293
   { (exit 1); exit 1; }; }
 
31294
  fi
 
31295
  CPPFLAGS=$ac_save_CPPFLAGS
 
31296
 
 
31297
  ac_ext=c
 
31298
ac_cpp='$CPP $CPPFLAGS'
 
31299
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31300
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31301
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
31302
 
 
31303
 
 
31304
 
 
31305
  KDE_TEST_RPATH=
 
31306
 
 
31307
  if test -n "$USE_RPATH"; then
 
31308
 
 
31309
     if test -n "$kde_libraries"; then
 
31310
       KDE_TEST_RPATH="-R $kde_libraries"
 
31311
     fi
 
31312
 
 
31313
     if test -n "$qt_libraries"; then
 
31314
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
 
31315
     fi
 
31316
 
 
31317
     if test -n "$x_libraries"; then
 
31318
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
 
31319
     fi
 
31320
 
 
31321
     KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
 
31322
  fi
 
31323
 
 
31324
echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
 
31325
echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6
 
31326
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'
 
31327
 
 
31328
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31329
  (eval $ac_link) 2>&5
 
31330
  ac_status=$?
 
31331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31332
  (exit $ac_status); } && test -s conftest; then
 
31333
  echo "$as_me:$LINENO: result: yes" >&5
 
31334
echo "${ECHO_T}yes" >&6
 
31335
else
 
31336
  { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
 
31337
Check, if your compiler is installed correctly and if you have used the
 
31338
same compiler to compile Qt and kdelibs as you did use now.
 
31339
For more details about this problem, look at the end of config.log." >&5
 
31340
echo "$as_me: error: your system fails at linking a small KDE application!
 
31341
Check, if your compiler is installed correctly and if you have used the
 
31342
same compiler to compile Qt and kdelibs as you did use now.
 
31343
For more details about this problem, look at the end of config.log." >&2;}
 
31344
   { (exit 1); exit 1; }; }
 
31345
fi
 
31346
 
 
31347
if eval `KDEDIR= ./conftest 2>&5`; then
 
31348
  kde_result=done
 
31349
else
 
31350
  kde_result=problems
 
31351
fi
 
31352
 
 
31353
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
 
31354
kde_have_all_paths=yes
 
31355
 
 
31356
 
 
31357
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
 
31358
        kde_htmldir=\"$kde_htmldir\" \
 
31359
        kde_appsdir=\"$kde_appsdir\" \
 
31360
        kde_icondir=\"$kde_icondir\" \
 
31361
        kde_sounddir=\"$kde_sounddir\" \
 
31362
        kde_datadir=\"$kde_datadir\" \
 
31363
        kde_locale=\"$kde_locale\" \
 
31364
        kde_cgidir=\"$kde_cgidir\" \
 
31365
        kde_confdir=\"$kde_confdir\" \
 
31366
        kde_kcfgdir=\"$kde_kcfgdir\" \
 
31367
        kde_mimedir=\"$kde_mimedir\" \
 
31368
        kde_toolbardir=\"$kde_toolbardir\" \
 
31369
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
 
31370
        kde_templatesdir=\"$kde_templatesdir\" \
 
31371
        kde_bindir=\"$kde_bindir\" \
 
31372
        kde_servicesdir=\"$kde_servicesdir\" \
 
31373
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
 
31374
        kde_moduledir=\"$kde_moduledir\" \
 
31375
        kde_styledir=\"$kde_styledir\" \
 
31376
        kde_widgetdir=\"$kde_widgetdir\" \
 
31377
        xdg_appsdir=\"$xdg_appsdir\" \
 
31378
        xdg_menudir=\"$xdg_menudir\" \
 
31379
        xdg_directorydir=\"$xdg_directorydir\" \
 
31380
        kde_result=$kde_result"
 
31381
 
 
31382
 
 
31383
 
 
31384
  else
 
31385
     { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
 
31386
echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
 
31387
   { (exit 1); exit 1; }; }
 
31388
  fi
 
31389
 
 
31390
fi
 
31391
 
 
31392
  eval "$kde_cv_all_paths"
 
31393
   if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
 
31394
   test -z "$kde_icondir" || test -z "$kde_sounddir" ||
 
31395
   test -z "$kde_datadir" || test -z "$kde_locale"  ||
 
31396
   test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
 
31397
   test -z "$kde_kcfgdir" ||
 
31398
   test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
 
31399
   test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
 
31400
   test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
 
31401
   test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
 
31402
   test -z "$kde_styledir" || test -z "kde_widgetdir" ||
 
31403
   test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
 
31404
   test "x$kde_have_all_paths" != "xyes"; then
 
31405
     kde_have_all_paths=no
 
31406
  fi
 
31407
 
 
31408
  kde_result="$kde_result (cache overridden)"
 
31409
fi
 
31410
if test "$kde_have_all_paths" = "no"; then
 
31411
  { { echo "$as_me:$LINENO: error: configure could not run a little KDE program to test the environment.
 
31412
Since it had compiled and linked before, it must be a strange problem on your system.
 
31413
Look at config.log for details. If you are not able to fix this, look at
 
31414
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
 
31415
(If you're using an egcs version on Linux, you may update binutils!)
 
31416
" >&5
 
31417
echo "$as_me: error: configure could not run a little KDE program to test the environment.
 
31418
Since it had compiled and linked before, it must be a strange problem on your system.
 
31419
Look at config.log for details. If you are not able to fix this, look at
 
31420
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
 
31421
(If you're using an egcs version on Linux, you may update binutils!)
 
31422
" >&2;}
 
31423
   { (exit 1); exit 1; }; }
 
31424
else
 
31425
  rm -f conftest*
 
31426
  echo "$as_me:$LINENO: result: $kde_result" >&5
 
31427
echo "${ECHO_T}$kde_result" >&6
 
31428
fi
 
31429
 
 
31430
bindir=$kde_bindir
 
31431
 
 
31432
 
 
31433
 
 
31434
# Check whether --with-arts or --without-arts was given.
 
31435
if test "${with_arts+set}" = set; then
 
31436
  withval="$with_arts"
 
31437
  build_arts=$withval
 
31438
else
 
31439
  build_arts=yes
 
31440
 
 
31441
fi;
 
31442
 
 
31443
 
 
31444
if test "$build_arts" '!=' "no"; then
 
31445
  include_ARTS_TRUE=
 
31446
  include_ARTS_FALSE='#'
 
31447
else
 
31448
  include_ARTS_TRUE='#'
 
31449
  include_ARTS_FALSE=
 
31450
fi
 
31451
 
 
31452
    if test "$build_arts" = "no"; then
 
31453
 
 
31454
cat >>confdefs.h <<\_ACEOF
 
31455
#define WITHOUT_ARTS 1
 
31456
_ACEOF
 
31457
 
 
31458
    fi
 
31459
 
 
31460
 
 
31461
    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"
 
31462
    test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
 
31463
    if test -n "$KDEDIRS"; then
 
31464
       kde_save_IFS=$IFS
 
31465
       IFS=:
 
31466
       for dir in $KDEDIRS; do
 
31467
            kde_default_bindirs="$dir/bin $kde_default_bindirs "
 
31468
       done
 
31469
       IFS=$kde_save_IFS
 
31470
    fi
 
31471
 
 
31472
        kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs"
 
31473
 
 
31474
   echo "$as_me:$LINENO: checking for dcopidl" >&5
 
31475
echo $ECHO_N "checking for dcopidl... $ECHO_C" >&6
 
31476
   if test -n "$DCOPIDL"; then
 
31477
        kde_cv_path="$DCOPIDL";
 
31478
   else
 
31479
        kde_cache=`echo dcopidl | sed 'y%./+-%__p_%'`
 
31480
 
 
31481
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31482
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31483
else
 
31484
 
 
31485
        kde_cv_path="NONE"
 
31486
        kde_save_IFS=$IFS
 
31487
        IFS=':'
 
31488
        dirs=""
 
31489
        for dir in $PATH; do
 
31490
          dirs="$dirs $dir"
 
31491
        done
 
31492
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31493
        else      dirs="$dirs $kde_default_bindirs"
 
31494
        fi
 
31495
        IFS=$kde_save_IFS
 
31496
 
 
31497
        for dir in $dirs; do
 
31498
          if test -x "$dir/dcopidl"; then
 
31499
            if test -n ""
 
31500
            then
 
31501
              evalstr="$dir/dcopidl  2>&1 "
 
31502
              if eval $evalstr; then
 
31503
                kde_cv_path="$dir/dcopidl"
 
31504
                break
 
31505
              fi
 
31506
            else
 
31507
                kde_cv_path="$dir/dcopidl"
 
31508
                break
 
31509
            fi
 
31510
          fi
 
31511
        done
 
31512
 
 
31513
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31514
 
 
31515
 
 
31516
fi
 
31517
 
 
31518
 
 
31519
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31520
 
 
31521
   fi
 
31522
 
 
31523
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31524
      echo "$as_me:$LINENO: result: not found" >&5
 
31525
echo "${ECHO_T}not found" >&6
 
31526
 
 
31527
    { { echo "$as_me:$LINENO: error: The important program dcopidl was not found!
 
31528
Please check whether you installed KDE correctly.
 
31529
" >&5
 
31530
echo "$as_me: error: The important program dcopidl was not found!
 
31531
Please check whether you installed KDE correctly.
 
31532
" >&2;}
 
31533
   { (exit 1); exit 1; }; }
 
31534
 
 
31535
   else
 
31536
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31537
echo "${ECHO_T}$kde_cv_path" >&6
 
31538
      DCOPIDL=$kde_cv_path
 
31539
 
 
31540
   fi
 
31541
 
 
31542
 
 
31543
   echo "$as_me:$LINENO: checking for dcopidl2cpp" >&5
 
31544
echo $ECHO_N "checking for dcopidl2cpp... $ECHO_C" >&6
 
31545
   if test -n "$DCOPIDL2CPP"; then
 
31546
        kde_cv_path="$DCOPIDL2CPP";
 
31547
   else
 
31548
        kde_cache=`echo dcopidl2cpp | sed 'y%./+-%__p_%'`
 
31549
 
 
31550
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31551
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31552
else
 
31553
 
 
31554
        kde_cv_path="NONE"
 
31555
        kde_save_IFS=$IFS
 
31556
        IFS=':'
 
31557
        dirs=""
 
31558
        for dir in $PATH; do
 
31559
          dirs="$dirs $dir"
 
31560
        done
 
31561
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31562
        else      dirs="$dirs $kde_default_bindirs"
 
31563
        fi
 
31564
        IFS=$kde_save_IFS
 
31565
 
 
31566
        for dir in $dirs; do
 
31567
          if test -x "$dir/dcopidl2cpp"; then
 
31568
            if test -n ""
 
31569
            then
 
31570
              evalstr="$dir/dcopidl2cpp  2>&1 "
 
31571
              if eval $evalstr; then
 
31572
                kde_cv_path="$dir/dcopidl2cpp"
 
31573
                break
 
31574
              fi
 
31575
            else
 
31576
                kde_cv_path="$dir/dcopidl2cpp"
 
31577
                break
 
31578
            fi
 
31579
          fi
 
31580
        done
 
31581
 
 
31582
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31583
 
 
31584
 
 
31585
fi
 
31586
 
 
31587
 
 
31588
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31589
 
 
31590
   fi
 
31591
 
 
31592
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31593
      echo "$as_me:$LINENO: result: not found" >&5
 
31594
echo "${ECHO_T}not found" >&6
 
31595
 
 
31596
    { { echo "$as_me:$LINENO: error: The important program dcopidl2cpp was not found!
 
31597
Please check whether you installed KDE correctly.
 
31598
" >&5
 
31599
echo "$as_me: error: The important program dcopidl2cpp was not found!
 
31600
Please check whether you installed KDE correctly.
 
31601
" >&2;}
 
31602
   { (exit 1); exit 1; }; }
 
31603
 
 
31604
   else
 
31605
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31606
echo "${ECHO_T}$kde_cv_path" >&6
 
31607
      DCOPIDL2CPP=$kde_cv_path
 
31608
 
 
31609
   fi
 
31610
 
 
31611
        if test "$build_arts" '!=' "no"; then
 
31612
 
 
31613
   echo "$as_me:$LINENO: checking for mcopidl" >&5
 
31614
echo $ECHO_N "checking for mcopidl... $ECHO_C" >&6
 
31615
   if test -n "$MCOPIDL"; then
 
31616
        kde_cv_path="$MCOPIDL";
 
31617
   else
 
31618
        kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'`
 
31619
 
 
31620
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31621
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31622
else
 
31623
 
 
31624
        kde_cv_path="NONE"
 
31625
        kde_save_IFS=$IFS
 
31626
        IFS=':'
 
31627
        dirs=""
 
31628
        for dir in $PATH; do
 
31629
          dirs="$dirs $dir"
 
31630
        done
 
31631
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31632
        else      dirs="$dirs $kde_default_bindirs"
 
31633
        fi
 
31634
        IFS=$kde_save_IFS
 
31635
 
 
31636
        for dir in $dirs; do
 
31637
          if test -x "$dir/mcopidl"; then
 
31638
            if test -n ""
 
31639
            then
 
31640
              evalstr="$dir/mcopidl  2>&1 "
 
31641
              if eval $evalstr; then
 
31642
                kde_cv_path="$dir/mcopidl"
 
31643
                break
 
31644
              fi
 
31645
            else
 
31646
                kde_cv_path="$dir/mcopidl"
 
31647
                break
 
31648
            fi
 
31649
          fi
 
31650
        done
 
31651
 
 
31652
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31653
 
 
31654
 
 
31655
fi
 
31656
 
 
31657
 
 
31658
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31659
 
 
31660
   fi
 
31661
 
 
31662
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31663
      echo "$as_me:$LINENO: result: not found" >&5
 
31664
echo "${ECHO_T}not found" >&6
 
31665
 
 
31666
    { { echo "$as_me:$LINENO: error: The important program mcopidl was not found!
 
31667
Please check whether you installed aRts correctly or use
 
31668
--without-arts to compile without aRts support (this will remove functionality).
 
31669
" >&5
 
31670
echo "$as_me: error: The important program mcopidl was not found!
 
31671
Please check whether you installed aRts correctly or use
 
31672
--without-arts to compile without aRts support (this will remove functionality).
 
31673
" >&2;}
 
31674
   { (exit 1); exit 1; }; }
 
31675
 
 
31676
   else
 
31677
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31678
echo "${ECHO_T}$kde_cv_path" >&6
 
31679
      MCOPIDL=$kde_cv_path
 
31680
 
 
31681
   fi
 
31682
 
 
31683
 
 
31684
   echo "$as_me:$LINENO: checking for artsc-config" >&5
 
31685
echo $ECHO_N "checking for artsc-config... $ECHO_C" >&6
 
31686
   if test -n "$ARTSCCONFIG"; then
 
31687
        kde_cv_path="$ARTSCCONFIG";
 
31688
   else
 
31689
        kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'`
 
31690
 
 
31691
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31693
else
 
31694
 
 
31695
        kde_cv_path="NONE"
 
31696
        kde_save_IFS=$IFS
 
31697
        IFS=':'
 
31698
        dirs=""
 
31699
        for dir in $PATH; do
 
31700
          dirs="$dirs $dir"
 
31701
        done
 
31702
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31703
        else      dirs="$dirs $kde_default_bindirs"
 
31704
        fi
 
31705
        IFS=$kde_save_IFS
 
31706
 
 
31707
        for dir in $dirs; do
 
31708
          if test -x "$dir/artsc-config"; then
 
31709
            if test -n ""
 
31710
            then
 
31711
              evalstr="$dir/artsc-config  2>&1 "
 
31712
              if eval $evalstr; then
 
31713
                kde_cv_path="$dir/artsc-config"
 
31714
                break
 
31715
              fi
 
31716
            else
 
31717
                kde_cv_path="$dir/artsc-config"
 
31718
                break
 
31719
            fi
 
31720
          fi
 
31721
        done
 
31722
 
 
31723
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31724
 
 
31725
 
 
31726
fi
 
31727
 
 
31728
 
 
31729
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31730
 
 
31731
   fi
 
31732
 
 
31733
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31734
      echo "$as_me:$LINENO: result: not found" >&5
 
31735
echo "${ECHO_T}not found" >&6
 
31736
 
 
31737
    { { echo "$as_me:$LINENO: error: The important program artsc-config was not found!
 
31738
Please check whether you installed aRts correctly or use
 
31739
--without-arts to compile without aRts support (this will remove functionality).
 
31740
" >&5
 
31741
echo "$as_me: error: The important program artsc-config was not found!
 
31742
Please check whether you installed aRts correctly or use
 
31743
--without-arts to compile without aRts support (this will remove functionality).
 
31744
" >&2;}
 
31745
   { (exit 1); exit 1; }; }
 
31746
 
 
31747
   else
 
31748
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31749
echo "${ECHO_T}$kde_cv_path" >&6
 
31750
      ARTSCCONFIG=$kde_cv_path
 
31751
 
 
31752
   fi
 
31753
 
 
31754
        fi
 
31755
 
 
31756
   echo "$as_me:$LINENO: checking for meinproc" >&5
 
31757
echo $ECHO_N "checking for meinproc... $ECHO_C" >&6
 
31758
   if test -n "$MEINPROC"; then
 
31759
        kde_cv_path="$MEINPROC";
 
31760
   else
 
31761
        kde_cache=`echo meinproc | sed 'y%./+-%__p_%'`
 
31762
 
 
31763
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31764
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31765
else
 
31766
 
 
31767
        kde_cv_path="NONE"
 
31768
        kde_save_IFS=$IFS
 
31769
        IFS=':'
 
31770
        dirs=""
 
31771
        for dir in $PATH; do
 
31772
          dirs="$dirs $dir"
 
31773
        done
 
31774
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31775
        else      dirs="$dirs $kde_default_bindirs"
 
31776
        fi
 
31777
        IFS=$kde_save_IFS
 
31778
 
 
31779
        for dir in $dirs; do
 
31780
          if test -x "$dir/meinproc"; then
 
31781
            if test -n ""
 
31782
            then
 
31783
              evalstr="$dir/meinproc  2>&1 "
 
31784
              if eval $evalstr; then
 
31785
                kde_cv_path="$dir/meinproc"
 
31786
                break
 
31787
              fi
 
31788
            else
 
31789
                kde_cv_path="$dir/meinproc"
 
31790
                break
 
31791
            fi
 
31792
          fi
 
31793
        done
 
31794
 
 
31795
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31796
 
 
31797
 
 
31798
fi
 
31799
 
 
31800
 
 
31801
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31802
 
 
31803
   fi
 
31804
 
 
31805
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31806
      echo "$as_me:$LINENO: result: not found" >&5
 
31807
echo "${ECHO_T}not found" >&6
 
31808
 
 
31809
   else
 
31810
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31811
echo "${ECHO_T}$kde_cv_path" >&6
 
31812
      MEINPROC=$kde_cv_path
 
31813
 
 
31814
   fi
 
31815
 
 
31816
 
 
31817
        kde32ornewer=1
 
31818
        kde33ornewer=1
 
31819
        if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
 
31820
            kde32ornewer=
 
31821
            kde33ornewer=
 
31822
        else
 
31823
            if test "$kde_qtver" = "3"; then
 
31824
              if test "$kde_qtsubver" -le 1; then
 
31825
                kde32ornewer=
 
31826
              fi
 
31827
              if test "$kde_qtsubver" -le 2 -o `kde-config --version | grep KDE | sed 's/KDE: \(...\).*/\1/'` == 3.2; then
 
31828
                kde33ornewer=
 
31829
              fi
 
31830
            fi
 
31831
        fi
 
31832
 
 
31833
        if test -n "$kde32ornewer"; then
 
31834
 
 
31835
   echo "$as_me:$LINENO: checking for kconfig_compiler" >&5
 
31836
echo $ECHO_N "checking for kconfig_compiler... $ECHO_C" >&6
 
31837
   if test -n "$KCONFIG_COMPILER"; then
 
31838
        kde_cv_path="$KCONFIG_COMPILER";
 
31839
   else
 
31840
        kde_cache=`echo kconfig_compiler | sed 'y%./+-%__p_%'`
 
31841
 
 
31842
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31843
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31844
else
 
31845
 
 
31846
        kde_cv_path="NONE"
 
31847
        kde_save_IFS=$IFS
 
31848
        IFS=':'
 
31849
        dirs=""
 
31850
        for dir in $PATH; do
 
31851
          dirs="$dirs $dir"
 
31852
        done
 
31853
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31854
        else      dirs="$dirs $kde_default_bindirs"
 
31855
        fi
 
31856
        IFS=$kde_save_IFS
 
31857
 
 
31858
        for dir in $dirs; do
 
31859
          if test -x "$dir/kconfig_compiler"; then
 
31860
            if test -n ""
 
31861
            then
 
31862
              evalstr="$dir/kconfig_compiler  2>&1 "
 
31863
              if eval $evalstr; then
 
31864
                kde_cv_path="$dir/kconfig_compiler"
 
31865
                break
 
31866
              fi
 
31867
            else
 
31868
                kde_cv_path="$dir/kconfig_compiler"
 
31869
                break
 
31870
            fi
 
31871
          fi
 
31872
        done
 
31873
 
 
31874
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31875
 
 
31876
 
 
31877
fi
 
31878
 
 
31879
 
 
31880
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31881
 
 
31882
   fi
 
31883
 
 
31884
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31885
      echo "$as_me:$LINENO: result: not found" >&5
 
31886
echo "${ECHO_T}not found" >&6
 
31887
 
 
31888
    { { echo "$as_me:$LINENO: error: The important program kconfig_compiler was not found!
 
31889
Please check whether you installed KDE correctly.
 
31890
" >&5
 
31891
echo "$as_me: error: The important program kconfig_compiler was not found!
 
31892
Please check whether you installed KDE correctly.
 
31893
" >&2;}
 
31894
   { (exit 1); exit 1; }; }
 
31895
 
 
31896
   else
 
31897
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31898
echo "${ECHO_T}$kde_cv_path" >&6
 
31899
      KCONFIG_COMPILER=$kde_cv_path
 
31900
 
 
31901
   fi
 
31902
 
 
31903
 
 
31904
   echo "$as_me:$LINENO: checking for dcopidlng" >&5
 
31905
echo $ECHO_N "checking for dcopidlng... $ECHO_C" >&6
 
31906
   if test -n "$DCOPIDLNG"; then
 
31907
        kde_cv_path="$DCOPIDLNG";
 
31908
   else
 
31909
        kde_cache=`echo dcopidlng | sed 'y%./+-%__p_%'`
 
31910
 
 
31911
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31912
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31913
else
 
31914
 
 
31915
        kde_cv_path="NONE"
 
31916
        kde_save_IFS=$IFS
 
31917
        IFS=':'
 
31918
        dirs=""
 
31919
        for dir in $PATH; do
 
31920
          dirs="$dirs $dir"
 
31921
        done
 
31922
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31923
        else      dirs="$dirs $kde_default_bindirs"
 
31924
        fi
 
31925
        IFS=$kde_save_IFS
 
31926
 
 
31927
        for dir in $dirs; do
 
31928
          if test -x "$dir/dcopidlng"; then
 
31929
            if test -n ""
 
31930
            then
 
31931
              evalstr="$dir/dcopidlng  2>&1 "
 
31932
              if eval $evalstr; then
 
31933
                kde_cv_path="$dir/dcopidlng"
 
31934
                break
 
31935
              fi
 
31936
            else
 
31937
                kde_cv_path="$dir/dcopidlng"
 
31938
                break
 
31939
            fi
 
31940
          fi
 
31941
        done
 
31942
 
 
31943
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31944
 
 
31945
 
 
31946
fi
 
31947
 
 
31948
 
 
31949
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31950
 
 
31951
   fi
 
31952
 
 
31953
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31954
      echo "$as_me:$LINENO: result: not found" >&5
 
31955
echo "${ECHO_T}not found" >&6
 
31956
 
 
31957
    { { echo "$as_me:$LINENO: error: The important program dcopidlng was not found!
 
31958
Please check whether you installed KDE correctly.
 
31959
" >&5
 
31960
echo "$as_me: error: The important program dcopidlng was not found!
 
31961
Please check whether you installed KDE correctly.
 
31962
" >&2;}
 
31963
   { (exit 1); exit 1; }; }
 
31964
 
 
31965
   else
 
31966
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31967
echo "${ECHO_T}$kde_cv_path" >&6
 
31968
      DCOPIDLNG=$kde_cv_path
 
31969
 
 
31970
   fi
 
31971
 
 
31972
        fi
 
31973
        if test -n "$kde33ornewer"; then
 
31974
 
 
31975
   echo "$as_me:$LINENO: checking for makekdewidgets" >&5
 
31976
echo $ECHO_N "checking for makekdewidgets... $ECHO_C" >&6
 
31977
   if test -n "$MAKEKDEWIDGETS"; then
 
31978
        kde_cv_path="$MAKEKDEWIDGETS";
 
31979
   else
 
31980
        kde_cache=`echo makekdewidgets | sed 'y%./+-%__p_%'`
 
31981
 
 
31982
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31983
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31984
else
 
31985
 
 
31986
        kde_cv_path="NONE"
 
31987
        kde_save_IFS=$IFS
 
31988
        IFS=':'
 
31989
        dirs=""
 
31990
        for dir in $PATH; do
 
31991
          dirs="$dirs $dir"
 
31992
        done
 
31993
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31994
        else      dirs="$dirs $kde_default_bindirs"
 
31995
        fi
 
31996
        IFS=$kde_save_IFS
 
31997
 
 
31998
        for dir in $dirs; do
 
31999
          if test -x "$dir/makekdewidgets"; then
 
32000
            if test -n ""
 
32001
            then
 
32002
              evalstr="$dir/makekdewidgets  2>&1 "
 
32003
              if eval $evalstr; then
 
32004
                kde_cv_path="$dir/makekdewidgets"
 
32005
                break
 
32006
              fi
 
32007
            else
 
32008
                kde_cv_path="$dir/makekdewidgets"
 
32009
                break
 
32010
            fi
 
32011
          fi
 
32012
        done
 
32013
 
 
32014
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
32015
 
 
32016
 
 
32017
fi
 
32018
 
 
32019
 
 
32020
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
32021
 
 
32022
   fi
 
32023
 
 
32024
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
32025
      echo "$as_me:$LINENO: result: not found" >&5
 
32026
echo "${ECHO_T}not found" >&6
 
32027
 
 
32028
    { { echo "$as_me:$LINENO: error: The important program makekdewidgets was not found!
 
32029
Please check whether you installed KDE correctly.
 
32030
" >&5
 
32031
echo "$as_me: error: The important program makekdewidgets was not found!
 
32032
Please check whether you installed KDE correctly.
 
32033
" >&2;}
 
32034
   { (exit 1); exit 1; }; }
 
32035
 
 
32036
   else
 
32037
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
32038
echo "${ECHO_T}$kde_cv_path" >&6
 
32039
      MAKEKDEWIDGETS=$kde_cv_path
 
32040
 
 
32041
   fi
 
32042
 
 
32043
 
 
32044
        fi
 
32045
 
 
32046
   echo "$as_me:$LINENO: checking for xmllint" >&5
 
32047
echo $ECHO_N "checking for xmllint... $ECHO_C" >&6
 
32048
   if test -n "$XMLLINT"; then
 
32049
        kde_cv_path="$XMLLINT";
 
32050
   else
 
32051
        kde_cache=`echo xmllint | sed 'y%./+-%__p_%'`
 
32052
 
 
32053
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
32054
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32055
else
 
32056
 
 
32057
        kde_cv_path="NONE"
 
32058
        kde_save_IFS=$IFS
 
32059
        IFS=':'
 
32060
        dirs=""
 
32061
        for dir in $PATH; do
 
32062
          dirs="$dirs $dir"
 
32063
        done
 
32064
        if test -z ""; then       dirs="${prefix}/bin ${exec_prefix}/bin $dirs"
 
32065
        else      dirs="$dirs ${prefix}/bin ${exec_prefix}/bin"
 
32066
        fi
 
32067
        IFS=$kde_save_IFS
 
32068
 
 
32069
        for dir in $dirs; do
 
32070
          if test -x "$dir/xmllint"; then
 
32071
            if test -n ""
 
32072
            then
 
32073
              evalstr="$dir/xmllint  2>&1 "
 
32074
              if eval $evalstr; then
 
32075
                kde_cv_path="$dir/xmllint"
 
32076
                break
 
32077
              fi
 
32078
            else
 
32079
                kde_cv_path="$dir/xmllint"
 
32080
                break
 
32081
            fi
 
32082
          fi
 
32083
        done
 
32084
 
 
32085
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
32086
 
 
32087
 
 
32088
fi
 
32089
 
 
32090
 
 
32091
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
32092
 
 
32093
   fi
 
32094
 
 
32095
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
32096
      echo "$as_me:$LINENO: result: not found" >&5
 
32097
echo "${ECHO_T}not found" >&6
 
32098
      XMLLINT=""
 
32099
   else
 
32100
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
32101
echo "${ECHO_T}$kde_cv_path" >&6
 
32102
      XMLLINT=$kde_cv_path
 
32103
 
 
32104
   fi
 
32105
 
 
32106
 
 
32107
        if test -n "$MEINPROC" && test ! "$MEINPROC" = "compiled"; then
 
32108
            kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
 
32109
            test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs"
 
32110
 
 
32111
KDE_XSL_STYLESHEET=NO
 
32112
for i in $kde_sharedirs;
 
32113
do
 
32114
  for j in apps/ksgmltools2/customization/kde-chunk.xsl;
 
32115
  do
 
32116
    echo "configure: 32116: $i/$j" >&5
 
32117
    if test -r "$i/$j"; then
 
32118
      echo "taking that" >&5
 
32119
      KDE_XSL_STYLESHEET=$i
 
32120
      break 2
 
32121
    fi
 
32122
  done
 
32123
done
 
32124
 
 
32125
            if test "$KDE_XSL_STYLESHEET" = "NO"; then
 
32126
                KDE_XSL_STYLESHEET=""
 
32127
            else
 
32128
                KDE_XSL_STYLESHEET="$KDE_XSL_STYLESHEET/apps/ksgmltools2/customization/kde-chunk.xsl"
 
32129
            fi
 
32130
        fi
 
32131
 
 
32132
        DCOP_DEPENDENCIES='$(DCOPIDL)'
 
32133
        if test -n "$kde32ornewer"; then
 
32134
            KCFG_DEPENDENCIES='$(KCONFIG_COMPILER)'
 
32135
            DCOP_DEPENDENCIES='$(DCOPIDL) $(DCOPIDLNG)'
 
32136
 
 
32137
 
 
32138
 
 
32139
        fi
 
32140
 
 
32141
 
 
32142
 
 
32143
 
 
32144
 
 
32145
 
 
32146
 
 
32147
 
 
32148
 
 
32149
 
 
32150
 
 
32151
 
 
32152
 
 
32153
 
 
32154
 
 
32155
 
 
32156
 
 
32157
 
 
32158
 
 
32159
 
 
32160
 
 
32161
 
 
32162
 
 
32163
 
 
32164
 
 
32165
 
 
32166
 
 
32167
 
 
32168
 
 
32169
 
 
32170
 
 
32171
kdeinitdir='$(kde_moduledir)'
 
32172
 
 
32173
 
 
32174
 
 
32175
if test "$kde_qtver" = 1; then
 
32176
  kde_minidir="$kde_icondir/mini"
 
32177
else
 
32178
# for KDE 1 - this breaks KDE2 apps using minidir, but
 
32179
# that's the plan ;-/
 
32180
  kde_minidir="/dev/null"
 
32181
fi
 
32182
 
 
32183
 
 
32184
 
 
32185
 
 
32186
 
 
32187
 
 
32188
if test $kde_qtver = 3; then
 
32189
   case $host in
 
32190
               *cygwin*) lib_kded="-lkdeinit_kded" ;;
 
32191
               *) lib_kded="" ;;
 
32192
       esac
 
32193
   LIB_KDED=$lib_kded
 
32194
 
 
32195
   LIB_KDECORE="-lkdecore"
 
32196
 
 
32197
   LIB_KDEUI="-lkdeui"
 
32198
 
 
32199
   LIB_KIO="-lkio"
 
32200
 
 
32201
   LIB_KJS="-lkjs"
 
32202
 
 
32203
   LIB_SMB="-lsmb"
 
32204
 
 
32205
   LIB_KAB="-lkab"
 
32206
 
 
32207
   LIB_KABC="-lkabc"
 
32208
 
 
32209
   LIB_KHTML="-lkhtml"
 
32210
 
 
32211
   LIB_KSPELL="-lkspell"
 
32212
 
 
32213
   LIB_KPARTS="-lkparts"
 
32214
 
 
32215
   LIB_KDEPRINT="-lkdeprint"
 
32216
 
 
32217
   LIB_KUTILS="-lkutils"
 
32218
 
 
32219
   LIB_KDEPIM="-lkdepim"
 
32220
 
 
32221
   LIB_KIMPROXY="-lkimproxy"
 
32222
 
 
32223
   LIB_KNEWSTUFF="-lknewstuff"
 
32224
 
 
32225
   LIB_KDNSSD="-lkdnssd"
 
32226
 
 
32227
   LIB_KUNITTEST="-lkunittest"
 
32228
 
 
32229
# these are for backward compatibility
 
32230
   LIB_KSYCOCA="-lkio"
 
32231
 
 
32232
   LIB_KFILE="-lkio"
 
32233
 
 
32234
elif test $kde_qtver = 2; then
 
32235
   LIB_KDECORE="-lkdecore"
 
32236
 
 
32237
   LIB_KDEUI="-lkdeui"
 
32238
 
 
32239
   LIB_KIO="-lkio"
 
32240
 
 
32241
   LIB_KSYCOCA="-lksycoca"
 
32242
 
 
32243
   LIB_SMB="-lsmb"
 
32244
 
 
32245
   LIB_KFILE="-lkfile"
 
32246
 
 
32247
   LIB_KAB="-lkab"
 
32248
 
 
32249
   LIB_KHTML="-lkhtml"
 
32250
 
 
32251
   LIB_KSPELL="-lkspell"
 
32252
 
 
32253
   LIB_KPARTS="-lkparts"
 
32254
 
 
32255
   LIB_KDEPRINT="-lkdeprint"
 
32256
 
 
32257
else
 
32258
   LIB_KDECORE="-lkdecore -lXext $(LIB_QT)"
 
32259
 
 
32260
   LIB_KDEUI="-lkdeui $(LIB_KDECORE)"
 
32261
 
 
32262
   LIB_KFM="-lkfm $(LIB_KDECORE)"
 
32263
 
 
32264
   LIB_KFILE="-lkfile $(LIB_KFM) $(LIB_KDEUI)"
 
32265
 
 
32266
   LIB_KAB="-lkab $(LIB_KIMGIO) $(LIB_KDECORE)"
 
32267
 
 
32268
fi
 
32269
 
 
32270
 
 
32271
 
 
32272
#MIN_CONFIG(3.2)
 
32273
CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS"
 
32274
 
 
32275
if test "$build_arts" = "yes"; then
 
32276
 
 
32277
cat >>confdefs.h <<\_ACEOF
 
32278
#define USE_ARTS 1
 
32279
_ACEOF
 
32280
 
 
32281
    LIB_ARTS="-lartskde"
 
32282
 
 
32283
fi
 
32284
 
 
32285
 
 
32286
echo "$as_me:$LINENO: checking for Qt docs" >&5
 
32287
echo $ECHO_N "checking for Qt docs... $ECHO_C" >&6
 
32288
kde_qtdir=
 
32289
if test "${with_qt_dir+set}" = set; then
 
32290
  kde_qtdir="$with_qt_dir"
 
32291
fi
 
32292
 
 
32293
 
 
32294
QTDOCDIR=NO
 
32295
for i in  $kde_qtdir/doc/html $QTDIR/doc/html /usr/share/doc/packages/qt3/html /usr/lib/qt/doc /usr/lib/qt3/doc /usr/lib/qt3/doc/html /usr/doc/qt3/html /usr/doc/qt3 /usr/share/doc/qt3-doc /usr/share/qt3/doc/html /usr/X11R6/share/doc/qt/html ;
 
32296
do
 
32297
  for j in qsql.html;
 
32298
  do
 
32299
    echo "configure: 32299: $i/$j" >&5
 
32300
    if test -r "$i/$j"; then
 
32301
      echo "taking that" >&5
 
32302
      QTDOCDIR=$i
 
32303
      break 2
 
32304
    fi
 
32305
  done
 
32306
done
 
32307
 
 
32308
echo "$as_me:$LINENO: result: $QTDOCDIR" >&5
 
32309
echo "${ECHO_T}$QTDOCDIR" >&6
 
32310
 
 
32311
 
 
32312
 
 
32313
 
 
32314
   echo "$as_me:$LINENO: checking for dot" >&5
 
32315
echo $ECHO_N "checking for dot... $ECHO_C" >&6
 
32316
   if test -n "$DOT"; then
 
32317
        kde_cv_path="$DOT";
 
32318
   else
 
32319
        kde_cache=`echo dot | sed 'y%./+-%__p_%'`
 
32320
 
 
32321
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
32322
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32323
else
 
32324
 
 
32325
        kde_cv_path="NONE"
 
32326
        kde_save_IFS=$IFS
 
32327
        IFS=':'
 
32328
        dirs=""
 
32329
        for dir in $PATH; do
 
32330
          dirs="$dirs $dir"
 
32331
        done
 
32332
        if test -z ""; then       dirs=" $dirs"
 
32333
        else      dirs="$dirs "
 
32334
        fi
 
32335
        IFS=$kde_save_IFS
 
32336
 
 
32337
        for dir in $dirs; do
 
32338
          if test -x "$dir/dot"; then
 
32339
            if test -n ""
 
32340
            then
 
32341
              evalstr="$dir/dot  2>&1 "
 
32342
              if eval $evalstr; then
 
32343
                kde_cv_path="$dir/dot"
 
32344
                break
 
32345
              fi
 
32346
            else
 
32347
                kde_cv_path="$dir/dot"
 
32348
                break
 
32349
            fi
 
32350
          fi
 
32351
        done
 
32352
 
 
32353
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
32354
 
 
32355
 
 
32356
fi
 
32357
 
 
32358
 
 
32359
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
32360
 
 
32361
   fi
 
32362
 
 
32363
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
32364
      echo "$as_me:$LINENO: result: not found" >&5
 
32365
echo "${ECHO_T}not found" >&6
 
32366
 
 
32367
   else
 
32368
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
32369
echo "${ECHO_T}$kde_cv_path" >&6
 
32370
      DOT=$kde_cv_path
 
32371
 
 
32372
   fi
 
32373
 
 
32374
if test -n "$DOT"; then
 
32375
  KDE_HAVE_DOT="YES"
 
32376
else
 
32377
  KDE_HAVE_DOT="NO"
 
32378
fi
 
32379
 
 
32380
 
 
32381
   echo "$as_me:$LINENO: checking for doxygen" >&5
 
32382
echo $ECHO_N "checking for doxygen... $ECHO_C" >&6
 
32383
   if test -n "$DOXYGEN"; then
 
32384
        kde_cv_path="$DOXYGEN";
 
32385
   else
 
32386
        kde_cache=`echo doxygen | sed 'y%./+-%__p_%'`
 
32387
 
 
32388
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
32389
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32390
else
 
32391
 
 
32392
        kde_cv_path="NONE"
 
32393
        kde_save_IFS=$IFS
 
32394
        IFS=':'
 
32395
        dirs=""
 
32396
        for dir in $PATH; do
 
32397
          dirs="$dirs $dir"
 
32398
        done
 
32399
        if test -z ""; then       dirs=" $dirs"
 
32400
        else      dirs="$dirs "
 
32401
        fi
 
32402
        IFS=$kde_save_IFS
 
32403
 
 
32404
        for dir in $dirs; do
 
32405
          if test -x "$dir/doxygen"; then
 
32406
            if test -n ""
 
32407
            then
 
32408
              evalstr="$dir/doxygen  2>&1 "
 
32409
              if eval $evalstr; then
 
32410
                kde_cv_path="$dir/doxygen"
 
32411
                break
 
32412
              fi
 
32413
            else
 
32414
                kde_cv_path="$dir/doxygen"
 
32415
                break
 
32416
            fi
 
32417
          fi
 
32418
        done
 
32419
 
 
32420
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
32421
 
 
32422
 
 
32423
fi
 
32424
 
 
32425
 
 
32426
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
32427
 
 
32428
   fi
 
32429
 
 
32430
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
32431
      echo "$as_me:$LINENO: result: not found" >&5
 
32432
echo "${ECHO_T}not found" >&6
 
32433
 
 
32434
   else
 
32435
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
32436
echo "${ECHO_T}$kde_cv_path" >&6
 
32437
      DOXYGEN=$kde_cv_path
 
32438
 
 
32439
   fi
 
32440
 
 
32441
 
 
32442
 
 
32443
DOXYGEN_PROJECT_NAME="The API Reference"
 
32444
DOXYGEN_PROJECT_NUMBER="Version $VERSION"
 
32445
 
 
32446
 
 
32447
 
 
32448
KDE_HAS_DOXYGEN=no
 
32449
if test -n "$DOXYGEN" && test -x "$DOXYGEN" && test -f $QTDOCDIR/qsql.html; then
 
32450
  KDE_HAS_DOXYGEN=yes
 
32451
fi
 
32452
 
 
32453
 
 
32454
 
 
32455
 
 
32456
 
 
32457
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
32458
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
32459
if test "${ac_cv_c_bigendian+set}" = set; then
 
32460
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32461
else
 
32462
  # See if sys/param.h defines the BYTE_ORDER macro.
 
32463
cat >conftest.$ac_ext <<_ACEOF
 
32464
/* confdefs.h.  */
 
32465
_ACEOF
 
32466
cat confdefs.h >>conftest.$ac_ext
 
32467
cat >>conftest.$ac_ext <<_ACEOF
 
32468
/* end confdefs.h.  */
 
32469
#include <sys/types.h>
 
32470
#include <sys/param.h>
 
32471
 
 
32472
int
 
32473
main ()
 
32474
{
 
32475
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
32476
 bogus endian macros
 
32477
#endif
 
32478
 
 
32479
  ;
 
32480
  return 0;
 
32481
}
 
32482
_ACEOF
 
32483
rm -f conftest.$ac_objext
 
32484
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32485
  (eval $ac_compile) 2>conftest.er1
 
32486
  ac_status=$?
 
32487
  grep -v '^ *+' conftest.er1 >conftest.err
 
32488
  rm -f conftest.er1
 
32489
  cat conftest.err >&5
 
32490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32491
  (exit $ac_status); } &&
 
32492
         { ac_try='test -z "$ac_c_werror_flag"
 
32493
                         || test ! -s conftest.err'
 
32494
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32495
  (eval $ac_try) 2>&5
 
32496
  ac_status=$?
 
32497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32498
  (exit $ac_status); }; } &&
 
32499
         { ac_try='test -s conftest.$ac_objext'
 
32500
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32501
  (eval $ac_try) 2>&5
 
32502
  ac_status=$?
 
32503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32504
  (exit $ac_status); }; }; then
 
32505
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
32506
cat >conftest.$ac_ext <<_ACEOF
 
32507
/* confdefs.h.  */
 
32508
_ACEOF
 
32509
cat confdefs.h >>conftest.$ac_ext
 
32510
cat >>conftest.$ac_ext <<_ACEOF
 
32511
/* end confdefs.h.  */
 
32512
#include <sys/types.h>
 
32513
#include <sys/param.h>
 
32514
 
 
32515
int
 
32516
main ()
 
32517
{
 
32518
#if BYTE_ORDER != BIG_ENDIAN
 
32519
 not big endian
 
32520
#endif
 
32521
 
 
32522
  ;
 
32523
  return 0;
 
32524
}
 
32525
_ACEOF
 
32526
rm -f conftest.$ac_objext
 
32527
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32528
  (eval $ac_compile) 2>conftest.er1
 
32529
  ac_status=$?
 
32530
  grep -v '^ *+' conftest.er1 >conftest.err
 
32531
  rm -f conftest.er1
 
32532
  cat conftest.err >&5
 
32533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32534
  (exit $ac_status); } &&
 
32535
         { ac_try='test -z "$ac_c_werror_flag"
 
32536
                         || test ! -s conftest.err'
 
32537
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32538
  (eval $ac_try) 2>&5
 
32539
  ac_status=$?
 
32540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32541
  (exit $ac_status); }; } &&
 
32542
         { ac_try='test -s conftest.$ac_objext'
 
32543
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32544
  (eval $ac_try) 2>&5
 
32545
  ac_status=$?
 
32546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32547
  (exit $ac_status); }; }; then
 
32548
  ac_cv_c_bigendian=yes
 
32549
else
 
32550
  echo "$as_me: failed program was:" >&5
 
32551
sed 's/^/| /' conftest.$ac_ext >&5
 
32552
 
 
32553
ac_cv_c_bigendian=no
 
32554
fi
 
32555
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32556
else
 
32557
  echo "$as_me: failed program was:" >&5
 
32558
sed 's/^/| /' conftest.$ac_ext >&5
 
32559
 
 
32560
# It does not; compile a test program.
 
32561
if test "$cross_compiling" = yes; then
 
32562
  # try to guess the endianness by grepping values into an object file
 
32563
  ac_cv_c_bigendian=unknown
 
32564
  cat >conftest.$ac_ext <<_ACEOF
 
32565
/* confdefs.h.  */
 
32566
_ACEOF
 
32567
cat confdefs.h >>conftest.$ac_ext
 
32568
cat >>conftest.$ac_ext <<_ACEOF
 
32569
/* end confdefs.h.  */
 
32570
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
32571
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
32572
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
32573
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
32574
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
32575
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
32576
int
 
32577
main ()
 
32578
{
 
32579
 _ascii (); _ebcdic ();
 
32580
  ;
 
32581
  return 0;
 
32582
}
 
32583
_ACEOF
 
32584
rm -f conftest.$ac_objext
 
32585
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32586
  (eval $ac_compile) 2>conftest.er1
 
32587
  ac_status=$?
 
32588
  grep -v '^ *+' conftest.er1 >conftest.err
 
32589
  rm -f conftest.er1
 
32590
  cat conftest.err >&5
 
32591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32592
  (exit $ac_status); } &&
 
32593
         { ac_try='test -z "$ac_c_werror_flag"
 
32594
                         || test ! -s conftest.err'
 
32595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32596
  (eval $ac_try) 2>&5
 
32597
  ac_status=$?
 
32598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32599
  (exit $ac_status); }; } &&
 
32600
         { ac_try='test -s conftest.$ac_objext'
 
32601
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32602
  (eval $ac_try) 2>&5
 
32603
  ac_status=$?
 
32604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32605
  (exit $ac_status); }; }; then
 
32606
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
32607
  ac_cv_c_bigendian=yes
 
32608
fi
 
32609
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
32610
  if test "$ac_cv_c_bigendian" = unknown; then
 
32611
    ac_cv_c_bigendian=no
 
32612
  else
 
32613
    # finding both strings is unlikely to happen, but who knows?
 
32614
    ac_cv_c_bigendian=unknown
 
32615
  fi
 
32616
fi
 
32617
else
 
32618
  echo "$as_me: failed program was:" >&5
 
32619
sed 's/^/| /' conftest.$ac_ext >&5
 
32620
 
 
32621
fi
 
32622
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32623
else
 
32624
  cat >conftest.$ac_ext <<_ACEOF
 
32625
/* confdefs.h.  */
 
32626
_ACEOF
 
32627
cat confdefs.h >>conftest.$ac_ext
 
32628
cat >>conftest.$ac_ext <<_ACEOF
 
32629
/* end confdefs.h.  */
 
32630
int
 
32631
main ()
 
32632
{
 
32633
  /* Are we little or big endian?  From Harbison&Steele.  */
 
32634
  union
 
32635
  {
 
32636
    long l;
 
32637
    char c[sizeof (long)];
 
32638
  } u;
 
32639
  u.l = 1;
 
32640
  exit (u.c[sizeof (long) - 1] == 1);
 
32641
}
 
32642
_ACEOF
 
32643
rm -f conftest$ac_exeext
 
32644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
32645
  (eval $ac_link) 2>&5
 
32646
  ac_status=$?
 
32647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32648
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
32649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32650
  (eval $ac_try) 2>&5
 
32651
  ac_status=$?
 
32652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32653
  (exit $ac_status); }; }; then
 
32654
  ac_cv_c_bigendian=no
 
32655
else
 
32656
  echo "$as_me: program exited with status $ac_status" >&5
 
32657
echo "$as_me: failed program was:" >&5
 
32658
sed 's/^/| /' conftest.$ac_ext >&5
 
32659
 
 
32660
( exit $ac_status )
 
32661
ac_cv_c_bigendian=yes
 
32662
fi
 
32663
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32664
fi
 
32665
fi
 
32666
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32667
fi
 
32668
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
32669
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
32670
case $ac_cv_c_bigendian in
 
32671
  yes)
 
32672
 
 
32673
cat >>confdefs.h <<\_ACEOF
 
32674
#define WORDS_BIGENDIAN 1
 
32675
_ACEOF
 
32676
 ;;
 
32677
  no)
 
32678
     ;;
 
32679
  *)
 
32680
    { { echo "$as_me:$LINENO: error: unknown endianness
 
32681
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
32682
echo "$as_me: error: unknown endianness
 
32683
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
32684
   { (exit 1); exit 1; }; } ;;
 
32685
esac
 
32686
 
 
32687
 
 
32688
echo "$as_me:$LINENO: checking for MAXPATHLEN" >&5
 
32689
echo $ECHO_N "checking for MAXPATHLEN... $ECHO_C" >&6
 
32690
if test "${ac_cv_maxpathlen+set}" = set; then
 
32691
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32692
else
 
32693
 
 
32694
cat > conftest.$ac_ext <<EOF
 
32695
#ifdef STDC_HEADERS
 
32696
# include <stdlib.h>
 
32697
#endif
 
32698
#include <stdio.h>
 
32699
#include <sys/param.h>
 
32700
#ifndef MAXPATHLEN
 
32701
#define MAXPATHLEN 1024
 
32702
#endif
 
32703
 
 
32704
KDE_HELLO MAXPATHLEN
 
32705
 
 
32706
EOF
 
32707
 
 
32708
ac_try="$ac_cpp conftest.$ac_ext 2>/dev/null | grep '^KDE_HELLO' >conftest.out"
 
32709
 
 
32710
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32711
  (eval $ac_try) 2>&5
 
32712
  ac_status=$?
 
32713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32714
  (exit $ac_status); } && test -s conftest.out; then
 
32715
    ac_cv_maxpathlen=`sed 's#KDE_HELLO ##' conftest.out`
 
32716
else
 
32717
    ac_cv_maxpathlen=1024
 
32718
fi
 
32719
 
 
32720
rm conftest.*
 
32721
 
 
32722
 
 
32723
fi
 
32724
 
 
32725
echo "$as_me:$LINENO: result: $ac_cv_maxpathlen" >&5
 
32726
echo "${ECHO_T}$ac_cv_maxpathlen" >&6
 
32727
 
 
32728
cat >>confdefs.h <<_ACEOF
 
32729
#define KDEMAXPATHLEN $ac_cv_maxpathlen
 
32730
_ACEOF
 
32731
 
 
32732
 
 
32733
 
 
32734
 
 
32735
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
32736
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
32737
if test "${ac_cv_c_bigendian+set}" = set; then
 
32738
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32739
else
 
32740
  # See if sys/param.h defines the BYTE_ORDER macro.
 
32741
cat >conftest.$ac_ext <<_ACEOF
 
32742
/* confdefs.h.  */
 
32743
_ACEOF
 
32744
cat confdefs.h >>conftest.$ac_ext
 
32745
cat >>conftest.$ac_ext <<_ACEOF
 
32746
/* end confdefs.h.  */
 
32747
#include <sys/types.h>
 
32748
#include <sys/param.h>
 
32749
 
 
32750
int
 
32751
main ()
 
32752
{
 
32753
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
32754
 bogus endian macros
 
32755
#endif
 
32756
 
 
32757
  ;
 
32758
  return 0;
 
32759
}
 
32760
_ACEOF
 
32761
rm -f conftest.$ac_objext
 
32762
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32763
  (eval $ac_compile) 2>conftest.er1
 
32764
  ac_status=$?
 
32765
  grep -v '^ *+' conftest.er1 >conftest.err
 
32766
  rm -f conftest.er1
 
32767
  cat conftest.err >&5
 
32768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32769
  (exit $ac_status); } &&
 
32770
         { ac_try='test -z "$ac_c_werror_flag"
 
32771
                         || test ! -s conftest.err'
 
32772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32773
  (eval $ac_try) 2>&5
 
32774
  ac_status=$?
 
32775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32776
  (exit $ac_status); }; } &&
 
32777
         { ac_try='test -s conftest.$ac_objext'
 
32778
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32779
  (eval $ac_try) 2>&5
 
32780
  ac_status=$?
 
32781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32782
  (exit $ac_status); }; }; then
 
32783
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
32784
cat >conftest.$ac_ext <<_ACEOF
 
32785
/* confdefs.h.  */
 
32786
_ACEOF
 
32787
cat confdefs.h >>conftest.$ac_ext
 
32788
cat >>conftest.$ac_ext <<_ACEOF
 
32789
/* end confdefs.h.  */
 
32790
#include <sys/types.h>
 
32791
#include <sys/param.h>
 
32792
 
 
32793
int
 
32794
main ()
 
32795
{
 
32796
#if BYTE_ORDER != BIG_ENDIAN
 
32797
 not big endian
 
32798
#endif
 
32799
 
 
32800
  ;
 
32801
  return 0;
 
32802
}
 
32803
_ACEOF
 
32804
rm -f conftest.$ac_objext
 
32805
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32806
  (eval $ac_compile) 2>conftest.er1
 
32807
  ac_status=$?
 
32808
  grep -v '^ *+' conftest.er1 >conftest.err
 
32809
  rm -f conftest.er1
 
32810
  cat conftest.err >&5
 
32811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32812
  (exit $ac_status); } &&
 
32813
         { ac_try='test -z "$ac_c_werror_flag"
 
32814
                         || test ! -s conftest.err'
 
32815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32816
  (eval $ac_try) 2>&5
 
32817
  ac_status=$?
 
32818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32819
  (exit $ac_status); }; } &&
 
32820
         { ac_try='test -s conftest.$ac_objext'
 
32821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32822
  (eval $ac_try) 2>&5
 
32823
  ac_status=$?
 
32824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32825
  (exit $ac_status); }; }; then
 
32826
  ac_cv_c_bigendian=yes
 
32827
else
 
32828
  echo "$as_me: failed program was:" >&5
 
32829
sed 's/^/| /' conftest.$ac_ext >&5
 
32830
 
 
32831
ac_cv_c_bigendian=no
 
32832
fi
 
32833
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32834
else
 
32835
  echo "$as_me: failed program was:" >&5
 
32836
sed 's/^/| /' conftest.$ac_ext >&5
 
32837
 
 
32838
# It does not; compile a test program.
 
32839
if test "$cross_compiling" = yes; then
 
32840
  # try to guess the endianness by grepping values into an object file
 
32841
  ac_cv_c_bigendian=unknown
 
32842
  cat >conftest.$ac_ext <<_ACEOF
 
32843
/* confdefs.h.  */
 
32844
_ACEOF
 
32845
cat confdefs.h >>conftest.$ac_ext
 
32846
cat >>conftest.$ac_ext <<_ACEOF
 
32847
/* end confdefs.h.  */
 
32848
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
32849
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
32850
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
32851
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
32852
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
32853
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
32854
int
 
32855
main ()
 
32856
{
 
32857
 _ascii (); _ebcdic ();
 
32858
  ;
 
32859
  return 0;
 
32860
}
 
32861
_ACEOF
 
32862
rm -f conftest.$ac_objext
 
32863
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32864
  (eval $ac_compile) 2>conftest.er1
 
32865
  ac_status=$?
 
32866
  grep -v '^ *+' conftest.er1 >conftest.err
 
32867
  rm -f conftest.er1
 
32868
  cat conftest.err >&5
 
32869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32870
  (exit $ac_status); } &&
 
32871
         { ac_try='test -z "$ac_c_werror_flag"
 
32872
                         || test ! -s conftest.err'
 
32873
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32874
  (eval $ac_try) 2>&5
 
32875
  ac_status=$?
 
32876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32877
  (exit $ac_status); }; } &&
 
32878
         { ac_try='test -s conftest.$ac_objext'
 
32879
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32880
  (eval $ac_try) 2>&5
 
32881
  ac_status=$?
 
32882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32883
  (exit $ac_status); }; }; then
 
32884
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
32885
  ac_cv_c_bigendian=yes
 
32886
fi
 
32887
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
32888
  if test "$ac_cv_c_bigendian" = unknown; then
 
32889
    ac_cv_c_bigendian=no
 
32890
  else
 
32891
    # finding both strings is unlikely to happen, but who knows?
 
32892
    ac_cv_c_bigendian=unknown
 
32893
  fi
 
32894
fi
 
32895
else
 
32896
  echo "$as_me: failed program was:" >&5
 
32897
sed 's/^/| /' conftest.$ac_ext >&5
 
32898
 
 
32899
fi
 
32900
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32901
else
 
32902
  cat >conftest.$ac_ext <<_ACEOF
 
32903
/* confdefs.h.  */
 
32904
_ACEOF
 
32905
cat confdefs.h >>conftest.$ac_ext
 
32906
cat >>conftest.$ac_ext <<_ACEOF
 
32907
/* end confdefs.h.  */
 
32908
int
 
32909
main ()
 
32910
{
 
32911
  /* Are we little or big endian?  From Harbison&Steele.  */
 
32912
  union
 
32913
  {
 
32914
    long l;
 
32915
    char c[sizeof (long)];
 
32916
  } u;
 
32917
  u.l = 1;
 
32918
  exit (u.c[sizeof (long) - 1] == 1);
 
32919
}
 
32920
_ACEOF
 
32921
rm -f conftest$ac_exeext
 
32922
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
32923
  (eval $ac_link) 2>&5
 
32924
  ac_status=$?
 
32925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32926
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
32927
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32928
  (eval $ac_try) 2>&5
 
32929
  ac_status=$?
 
32930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32931
  (exit $ac_status); }; }; then
 
32932
  ac_cv_c_bigendian=no
 
32933
else
 
32934
  echo "$as_me: program exited with status $ac_status" >&5
 
32935
echo "$as_me: failed program was:" >&5
 
32936
sed 's/^/| /' conftest.$ac_ext >&5
 
32937
 
 
32938
( exit $ac_status )
 
32939
ac_cv_c_bigendian=yes
 
32940
fi
 
32941
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32942
fi
 
32943
fi
 
32944
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32945
fi
 
32946
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
32947
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
32948
case $ac_cv_c_bigendian in
 
32949
  yes)
 
32950
 
 
32951
cat >>confdefs.h <<\_ACEOF
 
32952
#define WORDS_BIGENDIAN 1
 
32953
_ACEOF
 
32954
 ;;
 
32955
  no)
 
32956
     ;;
 
32957
  *)
 
32958
    { { echo "$as_me:$LINENO: error: unknown endianness
 
32959
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
32960
echo "$as_me: error: unknown endianness
 
32961
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
32962
   { (exit 1); exit 1; }; } ;;
 
32963
esac
 
32964
 
 
32965
 
 
32966
echo "$as_me:$LINENO: checking for MAXPATHLEN" >&5
 
32967
echo $ECHO_N "checking for MAXPATHLEN... $ECHO_C" >&6
 
32968
if test "${ac_cv_maxpathlen+set}" = set; then
 
32969
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32970
else
 
32971
 
 
32972
cat > conftest.$ac_ext <<EOF
 
32973
#ifdef STDC_HEADERS
 
32974
# include <stdlib.h>
 
32975
#endif
 
32976
#include <stdio.h>
 
32977
#include <sys/param.h>
 
32978
#ifndef MAXPATHLEN
 
32979
#define MAXPATHLEN 1024
 
32980
#endif
 
32981
 
 
32982
KDE_HELLO MAXPATHLEN
 
32983
 
 
32984
EOF
 
32985
 
 
32986
ac_try="$ac_cpp conftest.$ac_ext 2>/dev/null | grep '^KDE_HELLO' >conftest.out"
 
32987
 
 
32988
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32989
  (eval $ac_try) 2>&5
 
32990
  ac_status=$?
 
32991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32992
  (exit $ac_status); } && test -s conftest.out; then
 
32993
    ac_cv_maxpathlen=`sed 's#KDE_HELLO ##' conftest.out`
 
32994
else
 
32995
    ac_cv_maxpathlen=1024
 
32996
fi
 
32997
 
 
32998
rm conftest.*
 
32999
 
 
33000
 
 
33001
fi
 
33002
 
 
33003
echo "$as_me:$LINENO: result: $ac_cv_maxpathlen" >&5
 
33004
echo "${ECHO_T}$ac_cv_maxpathlen" >&6
 
33005
 
 
33006
cat >>confdefs.h <<_ACEOF
 
33007
#define KDEMAXPATHLEN $ac_cv_maxpathlen
 
33008
_ACEOF
 
33009
 
 
33010
 
 
33011
 
 
33012
 
 
33013
 
 
33014
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
 
33015
TOPSUBDIRS=""
 
33016
 
 
33017
if test ! -s $srcdir/subdirs; then
 
33018
    files=`cd $srcdir && ls -1`
 
33019
  dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
 
33020
  for i in $dirs; do
 
33021
    echo $i >> $srcdir/subdirs
 
33022
  done
 
33023
fi
 
33024
 
 
33025
ac_topsubdirs=
 
33026
if test -s $srcdir/inst-apps; then
 
33027
  ac_topsubdirs="`cat $srcdir/inst-apps`"
 
33028
elif test -s $srcdir/subdirs; then
 
33029
  ac_topsubdirs="`cat $srcdir/subdirs`"
 
33030
fi
 
33031
 
 
33032
for i in $ac_topsubdirs; do
 
33033
  echo "$as_me:$LINENO: checking if $i should be compiled" >&5
 
33034
echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6
 
33035
  if test -d $srcdir/$i; then
 
33036
    install_it="yes"
 
33037
    for j in $DO_NOT_COMPILE; do
 
33038
      if test $i = $j; then
 
33039
        install_it="no"
 
33040
      fi
 
33041
    done
 
33042
  else
 
33043
    install_it="no"
 
33044
  fi
 
33045
  echo "$as_me:$LINENO: result: $install_it" >&5
 
33046
echo "${ECHO_T}$install_it" >&6
 
33047
  vari=`echo $i | sed -e 's,[-+.@],_,g'`
 
33048
  if test $install_it = "yes"; then
 
33049
    TOPSUBDIRS="$TOPSUBDIRS $i"
 
33050
    eval "$vari""_SUBDIR_included=yes"
 
33051
  else
 
33052
    eval "$vari""_SUBDIR_included=no"
 
33053
  fi
 
33054
done
 
33055
 
 
33056
 
 
33057
 
 
33058
 
 
33059
 
 
33060
if test "x$src_SUBDIR_included" = xyes; then
 
33061
  src_SUBDIR_included_TRUE=
 
33062
  src_SUBDIR_included_FALSE='#'
 
33063
else
 
33064
  src_SUBDIR_included_TRUE='#'
 
33065
  src_SUBDIR_included_FALSE=
 
33066
fi
 
33067
 
 
33068
          ac_config_files="$ac_config_files Makefile"
 
33069
 
 
33070
          ac_config_files="$ac_config_files src/Makefile"
 
33071
 
 
33072
          ac_config_files="$ac_config_files src/datakiosk/Makefile"
 
33073
 
 
33074
          ac_config_files="$ac_config_files src/datakiosk/icons/Makefile"
 
33075
 
 
33076
          ac_config_files="$ac_config_files src/datakiosk/pics/Makefile"
 
33077
 
 
33078
          ac_config_files="$ac_config_files src/datakiosk/po/Makefile"
 
33079
 
 
33080
          ac_config_files="$ac_config_files src/datakiosk/src/Makefile"
 
33081
 
 
33082
          ac_config_files="$ac_config_files src/icons/Makefile"
 
33083
 
 
33084
          ac_config_files="$ac_config_files src/pics/Makefile"
 
33085
 
 
33086
          ac_config_files="$ac_config_files src/po/Makefile"
 
33087
 
 
33088
          ac_config_files="$ac_config_files src/src/Makefile"
 
33089
 
 
33090
cat >confcache <<\_ACEOF
 
33091
# This file is a shell script that caches the results of configure
 
33092
# tests run on this system so they can be shared between configure
 
33093
# scripts and configure runs, see configure's option --config-cache.
 
33094
# It is not useful on other systems.  If it contains results you don't
 
33095
# want to keep, you may remove or edit it.
 
33096
#
 
33097
# config.status only pays attention to the cache file if you give it
 
33098
# the --recheck option to rerun configure.
 
33099
#
 
33100
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
33101
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
33102
# following values.
 
33103
 
 
33104
_ACEOF
 
33105
 
 
33106
# The following way of writing the cache mishandles newlines in values,
 
33107
# but we know of no workaround that is simple, portable, and efficient.
 
33108
# So, don't put newlines in cache variables' values.
 
33109
# Ultrix sh set writes to stderr and can't be redirected directly,
 
33110
# and sets the high bit in the cache file unless we assign to the vars.
 
33111
{
 
33112
  (set) 2>&1 |
 
33113
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
33114
    *ac_space=\ *)
 
33115
      # `set' does not quote correctly, so add quotes (double-quote
 
33116
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
33117
      sed -n \
 
33118
        "s/'/'\\\\''/g;
 
33119
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
33120
      ;;
 
33121
    *)
 
33122
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
33123
      sed -n \
 
33124
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
33125
      ;;
 
33126
    esac;
 
33127
} |
 
33128
  sed '
 
33129
     t clear
 
33130
     : clear
 
33131
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
33132
     t end
 
33133
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
33134
     : end' >>confcache
 
33135
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
33136
  if test -w $cache_file; then
 
33137
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
33138
    cat confcache >$cache_file
 
33139
  else
 
33140
    echo "not updating unwritable cache $cache_file"
 
33141
  fi
 
33142
fi
 
33143
rm -f confcache
 
33144
 
 
33145
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
33146
# Let make expand exec_prefix.
 
33147
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
33148
 
 
33149
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
33150
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
33151
# trailing colons and then remove the whole line if VPATH becomes empty
 
33152
# (actually we leave an empty line to preserve line numbers).
 
33153
if test "x$srcdir" = x.; then
 
33154
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
33155
s/:*\$(srcdir):*/:/;
 
33156
s/:*\${srcdir}:*/:/;
 
33157
s/:*@srcdir@:*/:/;
 
33158
s/^\([^=]*=[     ]*\):*/\1/;
 
33159
s/:*$//;
 
33160
s/^[^=]*=[       ]*$//;
 
33161
}'
 
33162
fi
 
33163
 
 
33164
DEFS=-DHAVE_CONFIG_H
 
33165
 
 
33166
ac_libobjs=
 
33167
ac_ltlibobjs=
 
33168
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
33169
  # 1. Remove the extension, and $U if already installed.
 
33170
  ac_i=`echo "$ac_i" |
 
33171
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
33172
  # 2. Add them.
 
33173
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
33174
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
33175
done
 
33176
LIBOBJS=$ac_libobjs
 
33177
 
 
33178
LTLIBOBJS=$ac_ltlibobjs
 
33179
 
 
33180
 
 
33181
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
33182
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
33183
Usually this means the macro was only invoked conditionally." >&5
 
33184
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
33185
Usually this means the macro was only invoked conditionally." >&2;}
 
33186
   { (exit 1); exit 1; }; }
 
33187
fi
 
33188
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
33189
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
33190
Usually this means the macro was only invoked conditionally." >&5
 
33191
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
33192
Usually this means the macro was only invoked conditionally." >&2;}
 
33193
   { (exit 1); exit 1; }; }
 
33194
fi
 
33195
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
33196
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
33197
Usually this means the macro was only invoked conditionally." >&5
 
33198
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
33199
Usually this means the macro was only invoked conditionally." >&2;}
 
33200
   { (exit 1); exit 1; }; }
 
33201
fi
 
33202
if test -z "${unsermake_enable_pch_TRUE}" && test -z "${unsermake_enable_pch_FALSE}"; then
 
33203
  { { echo "$as_me:$LINENO: error: conditional \"unsermake_enable_pch\" was never defined.
 
33204
Usually this means the macro was only invoked conditionally." >&5
 
33205
echo "$as_me: error: conditional \"unsermake_enable_pch\" was never defined.
 
33206
Usually this means the macro was only invoked conditionally." >&2;}
 
33207
   { (exit 1); exit 1; }; }
 
33208
fi
 
33209
if test -z "${include_x11_TRUE}" && test -z "${include_x11_FALSE}"; then
 
33210
  { { echo "$as_me:$LINENO: error: conditional \"include_x11\" was never defined.
 
33211
Usually this means the macro was only invoked conditionally." >&5
 
33212
echo "$as_me: error: conditional \"include_x11\" was never defined.
 
33213
Usually this means the macro was only invoked conditionally." >&2;}
 
33214
   { (exit 1); exit 1; }; }
 
33215
fi
 
33216
if test -z "${include_ARTS_TRUE}" && test -z "${include_ARTS_FALSE}"; then
 
33217
  { { echo "$as_me:$LINENO: error: conditional \"include_ARTS\" was never defined.
 
33218
Usually this means the macro was only invoked conditionally." >&5
 
33219
echo "$as_me: error: conditional \"include_ARTS\" was never defined.
 
33220
Usually this means the macro was only invoked conditionally." >&2;}
 
33221
   { (exit 1); exit 1; }; }
 
33222
fi
 
33223
if test -z "${src_SUBDIR_included_TRUE}" && test -z "${src_SUBDIR_included_FALSE}"; then
 
33224
  { { echo "$as_me:$LINENO: error: conditional \"src_SUBDIR_included\" was never defined.
 
33225
Usually this means the macro was only invoked conditionally." >&5
 
33226
echo "$as_me: error: conditional \"src_SUBDIR_included\" was never defined.
 
33227
Usually this means the macro was only invoked conditionally." >&2;}
 
33228
   { (exit 1); exit 1; }; }
 
33229
fi
 
33230
 
 
33231
: ${CONFIG_STATUS=./config.status}
 
33232
ac_clean_files_save=$ac_clean_files
 
33233
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
33234
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
33235
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
33236
cat >$CONFIG_STATUS <<_ACEOF
 
33237
#! $SHELL
 
33238
# Generated by $as_me.
 
33239
# Run this file to recreate the current configuration.
 
33240
# Compiler output produced by configure, useful for debugging
 
33241
# configure, is in config.log if it exists.
 
33242
 
 
33243
debug=false
 
33244
ac_cs_recheck=false
 
33245
ac_cs_silent=false
 
33246
SHELL=\${CONFIG_SHELL-$SHELL}
 
33247
_ACEOF
 
33248
 
 
33249
cat >>$CONFIG_STATUS <<\_ACEOF
 
33250
## --------------------- ##
 
33251
## M4sh Initialization.  ##
 
33252
## --------------------- ##
 
33253
 
 
33254
# Be Bourne compatible
 
33255
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
33256
  emulate sh
 
33257
  NULLCMD=:
 
33258
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
33259
  # is contrary to our usage.  Disable this feature.
 
33260
  alias -g '${1+"$@"}'='"$@"'
 
33261
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
33262
  set -o posix
 
33263
fi
 
33264
DUALCASE=1; export DUALCASE # for MKS sh
 
33265
 
 
33266
# Support unset when possible.
 
33267
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
33268
  as_unset=unset
 
33269
else
 
33270
  as_unset=false
 
33271
fi
 
33272
 
 
33273
 
 
33274
# Work around bugs in pre-3.0 UWIN ksh.
 
33275
$as_unset ENV MAIL MAILPATH
 
33276
PS1='$ '
 
33277
PS2='> '
 
33278
PS4='+ '
 
33279
 
 
33280
# NLS nuisances.
 
33281
for as_var in \
 
33282
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
33283
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
33284
  LC_TELEPHONE LC_TIME
 
33285
do
 
33286
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
33287
    eval $as_var=C; export $as_var
 
33288
  else
 
33289
    $as_unset $as_var
 
33290
  fi
 
33291
done
 
33292
 
 
33293
# Required to use basename.
 
33294
if expr a : '\(a\)' >/dev/null 2>&1; then
 
33295
  as_expr=expr
 
33296
else
 
33297
  as_expr=false
 
33298
fi
 
33299
 
 
33300
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
33301
  as_basename=basename
 
33302
else
 
33303
  as_basename=false
 
33304
fi
 
33305
 
 
33306
 
 
33307
# Name of the executable.
 
33308
as_me=`$as_basename "$0" ||
 
33309
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
33310
         X"$0" : 'X\(//\)$' \| \
 
33311
         X"$0" : 'X\(/\)$' \| \
 
33312
         .     : '\(.\)' 2>/dev/null ||
 
33313
echo X/"$0" |
 
33314
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
33315
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
33316
          /^X\/\(\/\).*/{ s//\1/; q; }
 
33317
          s/.*/./; q'`
 
33318
 
 
33319
 
 
33320
# PATH needs CR, and LINENO needs CR and PATH.
 
33321
# Avoid depending upon Character Ranges.
 
33322
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
33323
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
33324
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
33325
as_cr_digits='0123456789'
 
33326
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
33327
 
 
33328
# The user is always right.
 
33329
if test "${PATH_SEPARATOR+set}" != set; then
 
33330
  echo "#! /bin/sh" >conf$$.sh
 
33331
  echo  "exit 0"   >>conf$$.sh
 
33332
  chmod +x conf$$.sh
 
33333
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
33334
    PATH_SEPARATOR=';'
 
33335
  else
 
33336
    PATH_SEPARATOR=:
 
33337
  fi
 
33338
  rm -f conf$$.sh
 
33339
fi
 
33340
 
 
33341
 
 
33342
  as_lineno_1=$LINENO
 
33343
  as_lineno_2=$LINENO
 
33344
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
33345
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
33346
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
33347
  # Find who we are.  Look in the path if we contain no path at all
 
33348
  # relative or not.
 
33349
  case $0 in
 
33350
    *[\\/]* ) as_myself=$0 ;;
 
33351
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
33352
for as_dir in $PATH
 
33353
do
 
33354
  IFS=$as_save_IFS
 
33355
  test -z "$as_dir" && as_dir=.
 
33356
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
33357
done
 
33358
 
 
33359
       ;;
 
33360
  esac
 
33361
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
33362
  # in which case we are not to be found in the path.
 
33363
  if test "x$as_myself" = x; then
 
33364
    as_myself=$0
 
33365
  fi
 
33366
  if test ! -f "$as_myself"; then
 
33367
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
33368
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
33369
   { (exit 1); exit 1; }; }
 
33370
  fi
 
33371
  case $CONFIG_SHELL in
 
33372
  '')
 
33373
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
33374
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
33375
do
 
33376
  IFS=$as_save_IFS
 
33377
  test -z "$as_dir" && as_dir=.
 
33378
  for as_base in sh bash ksh sh5; do
 
33379
         case $as_dir in
 
33380
         /*)
 
33381
           if ("$as_dir/$as_base" -c '
 
33382
  as_lineno_1=$LINENO
 
33383
  as_lineno_2=$LINENO
 
33384
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
33385
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
33386
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
33387
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
33388
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
33389
             CONFIG_SHELL=$as_dir/$as_base
 
33390
             export CONFIG_SHELL
 
33391
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
33392
           fi;;
 
33393
         esac
 
33394
       done
 
33395
done
 
33396
;;
 
33397
  esac
 
33398
 
 
33399
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
33400
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
33401
  # line-number line before each line; the second 'sed' does the real
 
33402
  # work.  The second script uses 'N' to pair each line-number line
 
33403
  # with the numbered line, and appends trailing '-' during
 
33404
  # substitution so that $LINENO is not a special case at line end.
 
33405
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
33406
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
33407
  sed '=' <$as_myself |
 
33408
    sed '
 
33409
      N
 
33410
      s,$,-,
 
33411
      : loop
 
33412
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
33413
      t loop
 
33414
      s,-$,,
 
33415
      s,^['$as_cr_digits']*\n,,
 
33416
    ' >$as_me.lineno &&
 
33417
  chmod +x $as_me.lineno ||
 
33418
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
33419
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
33420
   { (exit 1); exit 1; }; }
 
33421
 
 
33422
  # Don't try to exec as it changes $[0], causing all sort of problems
 
33423
  # (the dirname of $[0] is not the place where we might find the
 
33424
  # original and so on.  Autoconf is especially sensible to this).
 
33425
  . ./$as_me.lineno
 
33426
  # Exit status is that of the last command.
 
33427
  exit
 
33428
}
 
33429
 
 
33430
 
 
33431
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
33432
  *c*,-n*) ECHO_N= ECHO_C='
 
33433
' ECHO_T='      ' ;;
 
33434
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
33435
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
33436
esac
 
33437
 
 
33438
if expr a : '\(a\)' >/dev/null 2>&1; then
 
33439
  as_expr=expr
 
33440
else
 
33441
  as_expr=false
 
33442
fi
 
33443
 
 
33444
rm -f conf$$ conf$$.exe conf$$.file
 
33445
echo >conf$$.file
 
33446
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
33447
  # We could just check for DJGPP; but this test a) works b) is more generic
 
33448
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
33449
  if test -f conf$$.exe; then
 
33450
    # Don't use ln at all; we don't have any links
 
33451
    as_ln_s='cp -p'
 
33452
  else
 
33453
    as_ln_s='ln -s'
 
33454
  fi
 
33455
elif ln conf$$.file conf$$ 2>/dev/null; then
 
33456
  as_ln_s=ln
 
33457
else
 
33458
  as_ln_s='cp -p'
 
33459
fi
 
33460
rm -f conf$$ conf$$.exe conf$$.file
 
33461
 
 
33462
if mkdir -p . 2>/dev/null; then
 
33463
  as_mkdir_p=:
 
33464
else
 
33465
  test -d ./-p && rmdir ./-p
 
33466
  as_mkdir_p=false
 
33467
fi
 
33468
 
 
33469
as_executable_p="test -f"
 
33470
 
 
33471
# Sed expression to map a string onto a valid CPP name.
 
33472
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
33473
 
 
33474
# Sed expression to map a string onto a valid variable name.
 
33475
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
33476
 
 
33477
 
 
33478
# IFS
 
33479
# We need space, tab and new line, in precisely that order.
 
33480
as_nl='
 
33481
'
 
33482
IFS="   $as_nl"
 
33483
 
 
33484
# CDPATH.
 
33485
$as_unset CDPATH
 
33486
 
 
33487
exec 6>&1
 
33488
 
 
33489
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
33490
# report actual input values of CONFIG_FILES etc. instead of their
 
33491
# values after options handling.  Logging --version etc. is OK.
 
33492
exec 5>>config.log
 
33493
{
 
33494
  echo
 
33495
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
33496
## Running $as_me. ##
 
33497
_ASBOX
 
33498
} >&5
 
33499
cat >&5 <<_CSEOF
 
33500
 
 
33501
This file was extended by $as_me, which was
 
33502
generated by GNU Autoconf 2.59.  Invocation command line was
 
33503
 
 
33504
  CONFIG_FILES    = $CONFIG_FILES
 
33505
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
33506
  CONFIG_LINKS    = $CONFIG_LINKS
 
33507
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
33508
  $ $0 $@
 
33509
 
 
33510
_CSEOF
 
33511
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
33512
echo >&5
 
33513
_ACEOF
 
33514
 
 
33515
# Files that config.status was made for.
 
33516
if test -n "$ac_config_files"; then
 
33517
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
33518
fi
 
33519
 
 
33520
if test -n "$ac_config_headers"; then
 
33521
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
33522
fi
 
33523
 
 
33524
if test -n "$ac_config_links"; then
 
33525
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
33526
fi
 
33527
 
 
33528
if test -n "$ac_config_commands"; then
 
33529
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
33530
fi
 
33531
 
 
33532
cat >>$CONFIG_STATUS <<\_ACEOF
 
33533
 
 
33534
ac_cs_usage="\
 
33535
\`$as_me' instantiates files from templates according to the
 
33536
current configuration.
 
33537
 
 
33538
Usage: $0 [OPTIONS] [FILE]...
 
33539
 
 
33540
  -h, --help       print this help, then exit
 
33541
  -V, --version    print version number, then exit
 
33542
  -q, --quiet      do not print progress messages
 
33543
  -d, --debug      don't remove temporary files
 
33544
      --recheck    update $as_me by reconfiguring in the same conditions
 
33545
  --file=FILE[:TEMPLATE]
 
33546
                   instantiate the configuration file FILE
 
33547
  --header=FILE[:TEMPLATE]
 
33548
                   instantiate the configuration header FILE
 
33549
 
 
33550
Configuration files:
 
33551
$config_files
 
33552
 
 
33553
Configuration headers:
 
33554
$config_headers
 
33555
 
 
33556
Configuration commands:
 
33557
$config_commands
 
33558
 
 
33559
Report bugs to <bug-autoconf@gnu.org>."
 
33560
_ACEOF
 
33561
 
 
33562
cat >>$CONFIG_STATUS <<_ACEOF
 
33563
ac_cs_version="\\
 
33564
config.status
 
33565
configured by $0, generated by GNU Autoconf 2.59,
 
33566
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
33567
 
 
33568
Copyright (C) 2003 Free Software Foundation, Inc.
 
33569
This config.status script is free software; the Free Software Foundation
 
33570
gives unlimited permission to copy, distribute and modify it."
 
33571
srcdir=$srcdir
 
33572
INSTALL="$INSTALL"
 
33573
_ACEOF
 
33574
 
 
33575
cat >>$CONFIG_STATUS <<\_ACEOF
 
33576
# If no file are specified by the user, then we need to provide default
 
33577
# value.  By we need to know if files were specified by the user.
 
33578
ac_need_defaults=:
 
33579
while test $# != 0
 
33580
do
 
33581
  case $1 in
 
33582
  --*=*)
 
33583
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
33584
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
33585
    ac_shift=:
 
33586
    ;;
 
33587
  -*)
 
33588
    ac_option=$1
 
33589
    ac_optarg=$2
 
33590
    ac_shift=shift
 
33591
    ;;
 
33592
  *) # This is not an option, so the user has probably given explicit
 
33593
     # arguments.
 
33594
     ac_option=$1
 
33595
     ac_need_defaults=false;;
 
33596
  esac
 
33597
 
 
33598
  case $ac_option in
 
33599
  # Handling of the options.
 
33600
_ACEOF
 
33601
cat >>$CONFIG_STATUS <<\_ACEOF
 
33602
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
33603
    ac_cs_recheck=: ;;
 
33604
  --version | --vers* | -V )
 
33605
    echo "$ac_cs_version"; exit 0 ;;
 
33606
  --he | --h)
 
33607
    # Conflict between --help and --header
 
33608
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
33609
Try \`$0 --help' for more information." >&5
 
33610
echo "$as_me: error: ambiguous option: $1
 
33611
Try \`$0 --help' for more information." >&2;}
 
33612
   { (exit 1); exit 1; }; };;
 
33613
  --help | --hel | -h )
 
33614
    echo "$ac_cs_usage"; exit 0 ;;
 
33615
  --debug | --d* | -d )
 
33616
    debug=: ;;
 
33617
  --file | --fil | --fi | --f )
 
33618
    $ac_shift
 
33619
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
33620
    ac_need_defaults=false;;
 
33621
  --header | --heade | --head | --hea )
 
33622
    $ac_shift
 
33623
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
33624
    ac_need_defaults=false;;
 
33625
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
33626
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
33627
    ac_cs_silent=: ;;
 
33628
 
 
33629
  # This is an error.
 
33630
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
33631
Try \`$0 --help' for more information." >&5
 
33632
echo "$as_me: error: unrecognized option: $1
 
33633
Try \`$0 --help' for more information." >&2;}
 
33634
   { (exit 1); exit 1; }; } ;;
 
33635
 
 
33636
  *) ac_config_targets="$ac_config_targets $1" ;;
 
33637
 
 
33638
  esac
 
33639
  shift
 
33640
done
 
33641
 
 
33642
ac_configure_extra_args=
 
33643
 
 
33644
if $ac_cs_silent; then
 
33645
  exec 6>/dev/null
 
33646
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
33647
fi
 
33648
 
 
33649
_ACEOF
 
33650
cat >>$CONFIG_STATUS <<_ACEOF
 
33651
if \$ac_cs_recheck; then
 
33652
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
33653
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
33654
fi
 
33655
 
 
33656
_ACEOF
 
33657
 
 
33658
cat >>$CONFIG_STATUS <<_ACEOF
 
33659
#
 
33660
# INIT-COMMANDS section.
 
33661
#
 
33662
 
 
33663
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
33664
 
 
33665
_ACEOF
 
33666
 
 
33667
 
 
33668
 
 
33669
cat >>$CONFIG_STATUS <<\_ACEOF
 
33670
for ac_config_target in $ac_config_targets
 
33671
do
 
33672
  case "$ac_config_target" in
 
33673
  # Handling of arguments.
 
33674
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
33675
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
33676
  "src/datakiosk/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/datakiosk/Makefile" ;;
 
33677
  "src/datakiosk/icons/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/datakiosk/icons/Makefile" ;;
 
33678
  "src/datakiosk/pics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/datakiosk/pics/Makefile" ;;
 
33679
  "src/datakiosk/po/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/datakiosk/po/Makefile" ;;
 
33680
  "src/datakiosk/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/datakiosk/src/Makefile" ;;
 
33681
  "src/icons/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/icons/Makefile" ;;
 
33682
  "src/pics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pics/Makefile" ;;
 
33683
  "src/po/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/po/Makefile" ;;
 
33684
  "src/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/src/Makefile" ;;
 
33685
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
33686
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
33687
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
33688
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
33689
   { (exit 1); exit 1; }; };;
 
33690
  esac
 
33691
done
 
33692
 
 
33693
# If the user did not use the arguments to specify the items to instantiate,
 
33694
# then the envvar interface is used.  Set only those that are not.
 
33695
# We use the long form for the default assignment because of an extremely
 
33696
# bizarre bug on SunOS 4.1.3.
 
33697
if $ac_need_defaults; then
 
33698
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
33699
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
33700
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
33701
fi
 
33702
 
 
33703
# Have a temporary directory for convenience.  Make it in the build tree
 
33704
# simply because there is no reason to put it here, and in addition,
 
33705
# creating and moving files from /tmp can sometimes cause problems.
 
33706
# Create a temporary directory, and hook for its removal unless debugging.
 
33707
$debug ||
 
33708
{
 
33709
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
33710
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
33711
}
 
33712
 
 
33713
# Create a (secure) tmp directory for tmp files.
 
33714
 
 
33715
{
 
33716
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
33717
  test -n "$tmp" && test -d "$tmp"
 
33718
}  ||
 
33719
{
 
33720
  tmp=./confstat$$-$RANDOM
 
33721
  (umask 077 && mkdir $tmp)
 
33722
} ||
 
33723
{
 
33724
   echo "$me: cannot create a temporary directory in ." >&2
 
33725
   { (exit 1); exit 1; }
 
33726
}
 
33727
 
 
33728
_ACEOF
 
33729
 
 
33730
cat >>$CONFIG_STATUS <<_ACEOF
 
33731
 
 
33732
#
 
33733
# CONFIG_FILES section.
 
33734
#
 
33735
 
 
33736
# No need to generate the scripts if there are no CONFIG_FILES.
 
33737
# This happens for instance when ./config.status config.h
 
33738
if test -n "\$CONFIG_FILES"; then
 
33739
  # Protect against being on the right side of a sed subst in config.status.
 
33740
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
33741
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
33742
s,@SHELL@,$SHELL,;t t
 
33743
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
33744
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
33745
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
33746
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
33747
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
33748
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
33749
s,@exec_prefix@,$exec_prefix,;t t
 
33750
s,@prefix@,$prefix,;t t
 
33751
s,@program_transform_name@,$program_transform_name,;t t
 
33752
s,@bindir@,$bindir,;t t
 
33753
s,@sbindir@,$sbindir,;t t
 
33754
s,@libexecdir@,$libexecdir,;t t
 
33755
s,@datadir@,$datadir,;t t
 
33756
s,@sysconfdir@,$sysconfdir,;t t
 
33757
s,@sharedstatedir@,$sharedstatedir,;t t
 
33758
s,@localstatedir@,$localstatedir,;t t
 
33759
s,@libdir@,$libdir,;t t
 
33760
s,@includedir@,$includedir,;t t
 
33761
s,@oldincludedir@,$oldincludedir,;t t
 
33762
s,@infodir@,$infodir,;t t
 
33763
s,@mandir@,$mandir,;t t
 
33764
s,@build_alias@,$build_alias,;t t
 
33765
s,@host_alias@,$host_alias,;t t
 
33766
s,@target_alias@,$target_alias,;t t
 
33767
s,@DEFS@,$DEFS,;t t
 
33768
s,@ECHO_C@,$ECHO_C,;t t
 
33769
s,@ECHO_N@,$ECHO_N,;t t
 
33770
s,@ECHO_T@,$ECHO_T,;t t
 
33771
s,@LIBS@,$LIBS,;t t
 
33772
s,@build@,$build,;t t
 
33773
s,@build_cpu@,$build_cpu,;t t
 
33774
s,@build_vendor@,$build_vendor,;t t
 
33775
s,@build_os@,$build_os,;t t
 
33776
s,@host@,$host,;t t
 
33777
s,@host_cpu@,$host_cpu,;t t
 
33778
s,@host_vendor@,$host_vendor,;t t
 
33779
s,@host_os@,$host_os,;t t
 
33780
s,@target@,$target,;t t
 
33781
s,@target_cpu@,$target_cpu,;t t
 
33782
s,@target_vendor@,$target_vendor,;t t
 
33783
s,@target_os@,$target_os,;t t
 
33784
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
33785
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
33786
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
33787
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
33788
s,@PACKAGE@,$PACKAGE,;t t
 
33789
s,@VERSION@,$VERSION,;t t
 
33790
s,@ACLOCAL@,$ACLOCAL,;t t
 
33791
s,@AUTOCONF@,$AUTOCONF,;t t
 
33792
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
33793
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
33794
s,@MAKEINFO@,$MAKEINFO,;t t
 
33795
s,@install_sh@,$install_sh,;t t
 
33796
s,@STRIP@,$STRIP,;t t
 
33797
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
33798
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
33799
s,@mkdir_p@,$mkdir_p,;t t
 
33800
s,@AWK@,$AWK,;t t
 
33801
s,@SET_MAKE@,$SET_MAKE,;t t
 
33802
s,@am__leading_dot@,$am__leading_dot,;t t
 
33803
s,@AMTAR@,$AMTAR,;t t
 
33804
s,@am__tar@,$am__tar,;t t
 
33805
s,@am__untar@,$am__untar,;t t
 
33806
s,@KDECONFIG@,$KDECONFIG,;t t
 
33807
s,@kde_libs_prefix@,$kde_libs_prefix,;t t
 
33808
s,@kde_libs_htmldir@,$kde_libs_htmldir,;t t
 
33809
s,@CONF_FILES@,$CONF_FILES,;t t
 
33810
s,@CC@,$CC,;t t
 
33811
s,@CFLAGS@,$CFLAGS,;t t
 
33812
s,@LDFLAGS@,$LDFLAGS,;t t
 
33813
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
33814
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
33815
s,@EXEEXT@,$EXEEXT,;t t
 
33816
s,@OBJEXT@,$OBJEXT,;t t
 
33817
s,@DEPDIR@,$DEPDIR,;t t
 
33818
s,@am__include@,$am__include,;t t
 
33819
s,@am__quote@,$am__quote,;t t
 
33820
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
33821
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
33822
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
33823
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
33824
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
33825
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
33826
s,@CPP@,$CPP,;t t
 
33827
s,@CXX@,$CXX,;t t
 
33828
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
33829
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
33830
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
33831
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
33832
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
33833
s,@WOVERLOADED_VIRTUAL@,$WOVERLOADED_VIRTUAL,;t t
 
33834
s,@HAVE_GCC_VISIBILITY@,$HAVE_GCC_VISIBILITY,;t t
 
33835
s,@unsermake_enable_pch_TRUE@,$unsermake_enable_pch_TRUE,;t t
 
33836
s,@unsermake_enable_pch_FALSE@,$unsermake_enable_pch_FALSE,;t t
 
33837
s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t
 
33838
s,@USE_RTTI@,$USE_RTTI,;t t
 
33839
s,@CXXCPP@,$CXXCPP,;t t
 
33840
s,@NOOPT_CXXFLAGS@,$NOOPT_CXXFLAGS,;t t
 
33841
s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t
 
33842
s,@ENABLE_PERMISSIVE_FLAG@,$ENABLE_PERMISSIVE_FLAG,;t t
 
33843
s,@LDFLAGS_AS_NEEDED@,$LDFLAGS_AS_NEEDED,;t t
 
33844
s,@LDFLAGS_NEW_DTAGS@,$LDFLAGS_NEW_DTAGS,;t t
 
33845
s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t
 
33846
s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t
 
33847
s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t
 
33848
s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t
 
33849
s,@KDE_NO_UNDEFINED@,$KDE_NO_UNDEFINED,;t t
 
33850
s,@KDE_USE_NMCHECK_TRUE@,$KDE_USE_NMCHECK_TRUE,;t t
 
33851
s,@KDE_USE_NMCHECK_FALSE@,$KDE_USE_NMCHECK_FALSE,;t t
 
33852
s,@EGREP@,$EGREP,;t t
 
33853
s,@LN_S@,$LN_S,;t t
 
33854
s,@ECHO@,$ECHO,;t t
 
33855
s,@AR@,$AR,;t t
 
33856
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
33857
s,@RANLIB@,$RANLIB,;t t
 
33858
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
33859
s,@F77@,$F77,;t t
 
33860
s,@FFLAGS@,$FFLAGS,;t t
 
33861
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
33862
s,@LIBTOOL@,$LIBTOOL,;t t
 
33863
s,@KDE_PLUGIN@,$KDE_PLUGIN,;t t
 
33864
s,@KDE_CHECK_PLUGIN@,$KDE_CHECK_PLUGIN,;t t
 
33865
s,@MSGFMT@,$MSGFMT,;t t
 
33866
s,@GMSGFMT@,$GMSGFMT,;t t
 
33867
s,@XGETTEXT@,$XGETTEXT,;t t
 
33868
s,@LIBUTIL@,$LIBUTIL,;t t
 
33869
s,@LIBCOMPAT@,$LIBCOMPAT,;t t
 
33870
s,@LIBCRYPT@,$LIBCRYPT,;t t
 
33871
s,@LIBRESOLV@,$LIBRESOLV,;t t
 
33872
s,@LIB_POLL@,$LIB_POLL,;t t
 
33873
s,@FRAMEWORK_COREAUDIO@,$FRAMEWORK_COREAUDIO,;t t
 
33874
s,@LIBSOCKET@,$LIBSOCKET,;t t
 
33875
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
 
33876
s,@LIBUCB@,$LIBUCB,;t t
 
33877
s,@LIBDL@,$LIBDL,;t t
 
33878
s,@include_x11_TRUE@,$include_x11_TRUE,;t t
 
33879
s,@include_x11_FALSE@,$include_x11_FALSE,;t t
 
33880
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
 
33881
s,@LIB_X11@,$LIB_X11,;t t
 
33882
s,@LIB_XRENDER@,$LIB_XRENDER,;t t
 
33883
s,@LIBSM@,$LIBSM,;t t
 
33884
s,@X_INCLUDES@,$X_INCLUDES,;t t
 
33885
s,@X_LDFLAGS@,$X_LDFLAGS,;t t
 
33886
s,@x_includes@,$x_includes,;t t
 
33887
s,@x_libraries@,$x_libraries,;t t
 
33888
s,@QTE_NORTTI@,$QTE_NORTTI,;t t
 
33889
s,@LIB_XEXT@,$LIB_XEXT,;t t
 
33890
s,@LIBPTHREAD@,$LIBPTHREAD,;t t
 
33891
s,@USE_THREADS@,$USE_THREADS,;t t
 
33892
s,@KDE_MT_LDFLAGS@,$KDE_MT_LDFLAGS,;t t
 
33893
s,@KDE_MT_LIBS@,$KDE_MT_LIBS,;t t
 
33894
s,@USER_INCLUDES@,$USER_INCLUDES,;t t
 
33895
s,@USER_LDFLAGS@,$USER_LDFLAGS,;t t
 
33896
s,@LIBZ@,$LIBZ,;t t
 
33897
s,@LIBPNG@,$LIBPNG,;t t
 
33898
s,@LIBJPEG@,$LIBJPEG,;t t
 
33899
s,@qt_libraries@,$qt_libraries,;t t
 
33900
s,@qt_includes@,$qt_includes,;t t
 
33901
s,@QT_INCLUDES@,$QT_INCLUDES,;t t
 
33902
s,@QT_LDFLAGS@,$QT_LDFLAGS,;t t
 
33903
s,@PERL@,$PERL,;t t
 
33904
s,@MOC@,$MOC,;t t
 
33905
s,@UIC@,$UIC,;t t
 
33906
s,@UIC_TR@,$UIC_TR,;t t
 
33907
s,@LIB_QT@,$LIB_QT,;t t
 
33908
s,@LIB_QPE@,$LIB_QPE,;t t
 
33909
s,@kde_qtver@,$kde_qtver,;t t
 
33910
s,@KDE_EXTRA_RPATH@,$KDE_EXTRA_RPATH,;t t
 
33911
s,@KDE_RPATH@,$KDE_RPATH,;t t
 
33912
s,@X_RPATH@,$X_RPATH,;t t
 
33913
s,@kde_libraries@,$kde_libraries,;t t
 
33914
s,@kde_includes@,$kde_includes,;t t
 
33915
s,@KDE_LDFLAGS@,$KDE_LDFLAGS,;t t
 
33916
s,@KDE_INCLUDES@,$KDE_INCLUDES,;t t
 
33917
s,@all_includes@,$all_includes,;t t
 
33918
s,@all_libraries@,$all_libraries,;t t
 
33919
s,@AUTODIRS@,$AUTODIRS,;t t
 
33920
s,@include_ARTS_TRUE@,$include_ARTS_TRUE,;t t
 
33921
s,@include_ARTS_FALSE@,$include_ARTS_FALSE,;t t
 
33922
s,@MAKEKDEWIDGETS@,$MAKEKDEWIDGETS,;t t
 
33923
s,@KCONFIG_COMPILER@,$KCONFIG_COMPILER,;t t
 
33924
s,@KCFG_DEPENDENCIES@,$KCFG_DEPENDENCIES,;t t
 
33925
s,@DCOPIDLNG@,$DCOPIDLNG,;t t
 
33926
s,@DCOPIDL@,$DCOPIDL,;t t
 
33927
s,@DCOPIDL2CPP@,$DCOPIDL2CPP,;t t
 
33928
s,@DCOP_DEPENDENCIES@,$DCOP_DEPENDENCIES,;t t
 
33929
s,@MCOPIDL@,$MCOPIDL,;t t
 
33930
s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
 
33931
s,@MEINPROC@,$MEINPROC,;t t
 
33932
s,@KDE_XSL_STYLESHEET@,$KDE_XSL_STYLESHEET,;t t
 
33933
s,@XMLLINT@,$XMLLINT,;t t
 
33934
s,@kde_htmldir@,$kde_htmldir,;t t
 
33935
s,@kde_appsdir@,$kde_appsdir,;t t
 
33936
s,@kde_icondir@,$kde_icondir,;t t
 
33937
s,@kde_sounddir@,$kde_sounddir,;t t
 
33938
s,@kde_datadir@,$kde_datadir,;t t
 
33939
s,@kde_locale@,$kde_locale,;t t
 
33940
s,@kde_confdir@,$kde_confdir,;t t
 
33941
s,@kde_kcfgdir@,$kde_kcfgdir,;t t
 
33942
s,@kde_mimedir@,$kde_mimedir,;t t
 
33943
s,@kde_wallpaperdir@,$kde_wallpaperdir,;t t
 
33944
s,@kde_bindir@,$kde_bindir,;t t
 
33945
s,@xdg_appsdir@,$xdg_appsdir,;t t
 
33946
s,@xdg_menudir@,$xdg_menudir,;t t
 
33947
s,@xdg_directorydir@,$xdg_directorydir,;t t
 
33948
s,@kde_templatesdir@,$kde_templatesdir,;t t
 
33949
s,@kde_servicesdir@,$kde_servicesdir,;t t
 
33950
s,@kde_servicetypesdir@,$kde_servicetypesdir,;t t
 
33951
s,@kde_moduledir@,$kde_moduledir,;t t
 
33952
s,@kdeinitdir@,$kdeinitdir,;t t
 
33953
s,@kde_styledir@,$kde_styledir,;t t
 
33954
s,@kde_widgetdir@,$kde_widgetdir,;t t
 
33955
s,@LIB_KDED@,$LIB_KDED,;t t
 
33956
s,@LIB_KDECORE@,$LIB_KDECORE,;t t
 
33957
s,@LIB_KDEUI@,$LIB_KDEUI,;t t
 
33958
s,@LIB_KIO@,$LIB_KIO,;t t
 
33959
s,@LIB_KJS@,$LIB_KJS,;t t
 
33960
s,@LIB_SMB@,$LIB_SMB,;t t
 
33961
s,@LIB_KAB@,$LIB_KAB,;t t
 
33962
s,@LIB_KABC@,$LIB_KABC,;t t
 
33963
s,@LIB_KHTML@,$LIB_KHTML,;t t
 
33964
s,@LIB_KSPELL@,$LIB_KSPELL,;t t
 
33965
s,@LIB_KPARTS@,$LIB_KPARTS,;t t
 
33966
s,@LIB_KDEPRINT@,$LIB_KDEPRINT,;t t
 
33967
s,@LIB_KUTILS@,$LIB_KUTILS,;t t
 
33968
s,@LIB_KDEPIM@,$LIB_KDEPIM,;t t
 
33969
s,@LIB_KIMPROXY@,$LIB_KIMPROXY,;t t
 
33970
s,@LIB_KNEWSTUFF@,$LIB_KNEWSTUFF,;t t
 
33971
s,@LIB_KDNSSD@,$LIB_KDNSSD,;t t
 
33972
s,@LIB_KUNITTEST@,$LIB_KUNITTEST,;t t
 
33973
s,@LIB_KSYCOCA@,$LIB_KSYCOCA,;t t
 
33974
s,@LIB_KFILE@,$LIB_KFILE,;t t
 
33975
s,@LIB_KFM@,$LIB_KFM,;t t
 
33976
s,@LIB_ARTS@,$LIB_ARTS,;t t
 
33977
s,@QTDOCDIR@,$QTDOCDIR,;t t
 
33978
s,@KDE_HAVE_DOT@,$KDE_HAVE_DOT,;t t
 
33979
s,@DOXYGEN@,$DOXYGEN,;t t
 
33980
s,@DOXYGEN_PROJECT_NAME@,$DOXYGEN_PROJECT_NAME,;t t
 
33981
s,@DOXYGEN_PROJECT_NUMBER@,$DOXYGEN_PROJECT_NUMBER,;t t
 
33982
s,@KDE_HAS_DOXYGEN@,$KDE_HAS_DOXYGEN,;t t
 
33983
s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t
 
33984
s,@src_SUBDIR_included_TRUE@,$src_SUBDIR_included_TRUE,;t t
 
33985
s,@src_SUBDIR_included_FALSE@,$src_SUBDIR_included_FALSE,;t t
 
33986
s,@LIBOBJS@,$LIBOBJS,;t t
 
33987
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
33988
CEOF
 
33989
 
 
33990
_ACEOF
 
33991
 
 
33992
  cat >>$CONFIG_STATUS <<\_ACEOF
 
33993
  # Split the substitutions into bite-sized pieces for seds with
 
33994
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
33995
  ac_max_sed_lines=48
 
33996
  ac_sed_frag=1 # Number of current file.
 
33997
  ac_beg=1 # First line for current file.
 
33998
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
33999
  ac_more_lines=:
 
34000
  ac_sed_cmds=
 
34001
  while $ac_more_lines; do
 
34002
    if test $ac_beg -gt 1; then
 
34003
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
34004
    else
 
34005
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
34006
    fi
 
34007
    if test ! -s $tmp/subs.frag; then
 
34008
      ac_more_lines=false
 
34009
    else
 
34010
      # The purpose of the label and of the branching condition is to
 
34011
      # speed up the sed processing (if there are no `@' at all, there
 
34012
      # is no need to browse any of the substitutions).
 
34013
      # These are the two extra sed commands mentioned above.
 
34014
      (echo ':t
 
34015
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
34016
      if test -z "$ac_sed_cmds"; then
 
34017
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
34018
      else
 
34019
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
34020
      fi
 
34021
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
34022
      ac_beg=$ac_end
 
34023
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
34024
    fi
 
34025
  done
 
34026
  if test -z "$ac_sed_cmds"; then
 
34027
    ac_sed_cmds=cat
 
34028
  fi
 
34029
fi # test -n "$CONFIG_FILES"
 
34030
 
 
34031
_ACEOF
 
34032
cat >>$CONFIG_STATUS <<\_ACEOF
 
34033
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
34034
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
34035
  case $ac_file in
 
34036
  - | *:- | *:-:* ) # input from stdin
 
34037
        cat >$tmp/stdin
 
34038
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
34039
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
34040
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
34041
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
34042
  * )   ac_file_in=$ac_file.in ;;
 
34043
  esac
 
34044
 
 
34045
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
34046
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
34047
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34048
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
34049
         X"$ac_file" : 'X\(//\)$' \| \
 
34050
         X"$ac_file" : 'X\(/\)' \| \
 
34051
         .     : '\(.\)' 2>/dev/null ||
 
34052
echo X"$ac_file" |
 
34053
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
34054
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
34055
          /^X\(\/\/\)$/{ s//\1/; q; }
 
34056
          /^X\(\/\).*/{ s//\1/; q; }
 
34057
          s/.*/./; q'`
 
34058
  { if $as_mkdir_p; then
 
34059
    mkdir -p "$ac_dir"
 
34060
  else
 
34061
    as_dir="$ac_dir"
 
34062
    as_dirs=
 
34063
    while test ! -d "$as_dir"; do
 
34064
      as_dirs="$as_dir $as_dirs"
 
34065
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
34066
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34067
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
34068
         X"$as_dir" : 'X\(//\)$' \| \
 
34069
         X"$as_dir" : 'X\(/\)' \| \
 
34070
         .     : '\(.\)' 2>/dev/null ||
 
34071
echo X"$as_dir" |
 
34072
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
34073
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
34074
          /^X\(\/\/\)$/{ s//\1/; q; }
 
34075
          /^X\(\/\).*/{ s//\1/; q; }
 
34076
          s/.*/./; q'`
 
34077
    done
 
34078
    test ! -n "$as_dirs" || mkdir $as_dirs
 
34079
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
34080
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
34081
   { (exit 1); exit 1; }; }; }
 
34082
 
 
34083
  ac_builddir=.
 
34084
 
 
34085
if test "$ac_dir" != .; then
 
34086
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
34087
  # A "../" for each directory in $ac_dir_suffix.
 
34088
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
34089
else
 
34090
  ac_dir_suffix= ac_top_builddir=
 
34091
fi
 
34092
 
 
34093
case $srcdir in
 
34094
  .)  # No --srcdir option.  We are building in place.
 
34095
    ac_srcdir=.
 
34096
    if test -z "$ac_top_builddir"; then
 
34097
       ac_top_srcdir=.
 
34098
    else
 
34099
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
34100
    fi ;;
 
34101
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
34102
    ac_srcdir=$srcdir$ac_dir_suffix;
 
34103
    ac_top_srcdir=$srcdir ;;
 
34104
  *) # Relative path.
 
34105
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
34106
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
34107
esac
 
34108
 
 
34109
# Do not use `cd foo && pwd` to compute absolute paths, because
 
34110
# the directories may not exist.
 
34111
case `pwd` in
 
34112
.) ac_abs_builddir="$ac_dir";;
 
34113
*)
 
34114
  case "$ac_dir" in
 
34115
  .) ac_abs_builddir=`pwd`;;
 
34116
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
34117
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
34118
  esac;;
 
34119
esac
 
34120
case $ac_abs_builddir in
 
34121
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
34122
*)
 
34123
  case ${ac_top_builddir}. in
 
34124
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
34125
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
34126
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
34127
  esac;;
 
34128
esac
 
34129
case $ac_abs_builddir in
 
34130
.) ac_abs_srcdir=$ac_srcdir;;
 
34131
*)
 
34132
  case $ac_srcdir in
 
34133
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
34134
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
34135
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
34136
  esac;;
 
34137
esac
 
34138
case $ac_abs_builddir in
 
34139
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
34140
*)
 
34141
  case $ac_top_srcdir in
 
34142
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
34143
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
34144
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
34145
  esac;;
 
34146
esac
 
34147
 
 
34148
 
 
34149
  case $INSTALL in
 
34150
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
34151
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
34152
  esac
 
34153
 
 
34154
  if test x"$ac_file" != x-; then
 
34155
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
34156
echo "$as_me: creating $ac_file" >&6;}
 
34157
    rm -f "$ac_file"
 
34158
  fi
 
34159
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
34160
  # use $as_me), people would be surprised to read:
 
34161
  #    /* config.h.  Generated by config.status.  */
 
34162
  if test x"$ac_file" = x-; then
 
34163
    configure_input=
 
34164
  else
 
34165
    configure_input="$ac_file.  "
 
34166
  fi
 
34167
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
34168
                                     sed 's,.*/,,'` by configure."
 
34169
 
 
34170
  # First look for the input files in the build tree, otherwise in the
 
34171
  # src tree.
 
34172
  ac_file_inputs=`IFS=:
 
34173
    for f in $ac_file_in; do
 
34174
      case $f in
 
34175
      -) echo $tmp/stdin ;;
 
34176
      [\\/$]*)
 
34177
         # Absolute (can't be DOS-style, as IFS=:)
 
34178
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
34179
echo "$as_me: error: cannot find input file: $f" >&2;}
 
34180
   { (exit 1); exit 1; }; }
 
34181
         echo "$f";;
 
34182
      *) # Relative
 
34183
         if test -f "$f"; then
 
34184
           # Build tree
 
34185
           echo "$f"
 
34186
         elif test -f "$srcdir/$f"; then
 
34187
           # Source tree
 
34188
           echo "$srcdir/$f"
 
34189
         else
 
34190
           # /dev/null tree
 
34191
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
34192
echo "$as_me: error: cannot find input file: $f" >&2;}
 
34193
   { (exit 1); exit 1; }; }
 
34194
         fi;;
 
34195
      esac
 
34196
    done` || { (exit 1); exit 1; }
 
34197
_ACEOF
 
34198
cat >>$CONFIG_STATUS <<_ACEOF
 
34199
  sed "$ac_vpsub
 
34200
$extrasub
 
34201
_ACEOF
 
34202
cat >>$CONFIG_STATUS <<\_ACEOF
 
34203
:t
 
34204
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
34205
s,@configure_input@,$configure_input,;t t
 
34206
s,@srcdir@,$ac_srcdir,;t t
 
34207
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
34208
s,@top_srcdir@,$ac_top_srcdir,;t t
 
34209
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
34210
s,@builddir@,$ac_builddir,;t t
 
34211
s,@abs_builddir@,$ac_abs_builddir,;t t
 
34212
s,@top_builddir@,$ac_top_builddir,;t t
 
34213
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
34214
s,@INSTALL@,$ac_INSTALL,;t t
 
34215
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
34216
  rm -f $tmp/stdin
 
34217
  if test x"$ac_file" != x-; then
 
34218
    mv $tmp/out $ac_file
 
34219
  else
 
34220
    cat $tmp/out
 
34221
    rm -f $tmp/out
 
34222
  fi
 
34223
 
 
34224
done
 
34225
_ACEOF
 
34226
cat >>$CONFIG_STATUS <<\_ACEOF
 
34227
 
 
34228
#
 
34229
# CONFIG_HEADER section.
 
34230
#
 
34231
 
 
34232
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
34233
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
34234
#
 
34235
# ac_d sets the value in "#define NAME VALUE" lines.
 
34236
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
34237
ac_dB='[         ].*$,\1#\2'
 
34238
ac_dC=' '
 
34239
ac_dD=',;t'
 
34240
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
34241
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
34242
ac_uB='$,\1#\2define\3'
 
34243
ac_uC=' '
 
34244
ac_uD=',;t'
 
34245
 
 
34246
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
34247
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
34248
  case $ac_file in
 
34249
  - | *:- | *:-:* ) # input from stdin
 
34250
        cat >$tmp/stdin
 
34251
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
34252
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
34253
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
34254
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
34255
  * )   ac_file_in=$ac_file.in ;;
 
34256
  esac
 
34257
 
 
34258
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
34259
echo "$as_me: creating $ac_file" >&6;}
 
34260
 
 
34261
  # First look for the input files in the build tree, otherwise in the
 
34262
  # src tree.
 
34263
  ac_file_inputs=`IFS=:
 
34264
    for f in $ac_file_in; do
 
34265
      case $f in
 
34266
      -) echo $tmp/stdin ;;
 
34267
      [\\/$]*)
 
34268
         # Absolute (can't be DOS-style, as IFS=:)
 
34269
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
34270
echo "$as_me: error: cannot find input file: $f" >&2;}
 
34271
   { (exit 1); exit 1; }; }
 
34272
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
34273
         echo "$f";;
 
34274
      *) # Relative
 
34275
         if test -f "$f"; then
 
34276
           # Build tree
 
34277
           echo "$f"
 
34278
         elif test -f "$srcdir/$f"; then
 
34279
           # Source tree
 
34280
           echo "$srcdir/$f"
 
34281
         else
 
34282
           # /dev/null tree
 
34283
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
34284
echo "$as_me: error: cannot find input file: $f" >&2;}
 
34285
   { (exit 1); exit 1; }; }
 
34286
         fi;;
 
34287
      esac
 
34288
    done` || { (exit 1); exit 1; }
 
34289
  # Remove the trailing spaces.
 
34290
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
34291
 
 
34292
_ACEOF
 
34293
 
 
34294
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
34295
# `conftest.undefs', that substitutes the proper values into
 
34296
# config.h.in to produce config.h.  The first handles `#define'
 
34297
# templates, and the second `#undef' templates.
 
34298
# And first: Protect against being on the right side of a sed subst in
 
34299
# config.status.  Protect against being in an unquoted here document
 
34300
# in config.status.
 
34301
rm -f conftest.defines conftest.undefs
 
34302
# Using a here document instead of a string reduces the quoting nightmare.
 
34303
# Putting comments in sed scripts is not portable.
 
34304
#
 
34305
# `end' is used to avoid that the second main sed command (meant for
 
34306
# 0-ary CPP macros) applies to n-ary macro definitions.
 
34307
# See the Autoconf documentation for `clear'.
 
34308
cat >confdef2sed.sed <<\_ACEOF
 
34309
s/[\\&,]/\\&/g
 
34310
s,[\\$`],\\&,g
 
34311
t clear
 
34312
: clear
 
34313
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
34314
t end
 
34315
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
34316
: end
 
34317
_ACEOF
 
34318
# If some macros were called several times there might be several times
 
34319
# the same #defines, which is useless.  Nevertheless, we may not want to
 
34320
# sort them, since we want the *last* AC-DEFINE to be honored.
 
34321
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
34322
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
34323
rm -f confdef2sed.sed
 
34324
 
 
34325
# This sed command replaces #undef with comments.  This is necessary, for
 
34326
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
34327
# on some systems where configure will not decide to define it.
 
34328
cat >>conftest.undefs <<\_ACEOF
 
34329
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
34330
_ACEOF
 
34331
 
 
34332
# Break up conftest.defines because some shells have a limit on the size
 
34333
# of here documents, and old seds have small limits too (100 cmds).
 
34334
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
34335
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
34336
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
34337
echo '  :' >>$CONFIG_STATUS
 
34338
rm -f conftest.tail
 
34339
while grep . conftest.defines >/dev/null
 
34340
do
 
34341
  # Write a limited-size here document to $tmp/defines.sed.
 
34342
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
34343
  # Speed up: don't consider the non `#define' lines.
 
34344
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
34345
  # Work around the forget-to-reset-the-flag bug.
 
34346
  echo 't clr' >>$CONFIG_STATUS
 
34347
  echo ': clr' >>$CONFIG_STATUS
 
34348
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
34349
  echo 'CEOF
 
34350
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
34351
  rm -f $tmp/in
 
34352
  mv $tmp/out $tmp/in
 
34353
' >>$CONFIG_STATUS
 
34354
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
34355
  rm -f conftest.defines
 
34356
  mv conftest.tail conftest.defines
 
34357
done
 
34358
rm -f conftest.defines
 
34359
echo '  fi # grep' >>$CONFIG_STATUS
 
34360
echo >>$CONFIG_STATUS
 
34361
 
 
34362
# Break up conftest.undefs because some shells have a limit on the size
 
34363
# of here documents, and old seds have small limits too (100 cmds).
 
34364
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
34365
rm -f conftest.tail
 
34366
while grep . conftest.undefs >/dev/null
 
34367
do
 
34368
  # Write a limited-size here document to $tmp/undefs.sed.
 
34369
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
34370
  # Speed up: don't consider the non `#undef'
 
34371
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
34372
  # Work around the forget-to-reset-the-flag bug.
 
34373
  echo 't clr' >>$CONFIG_STATUS
 
34374
  echo ': clr' >>$CONFIG_STATUS
 
34375
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
34376
  echo 'CEOF
 
34377
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
34378
  rm -f $tmp/in
 
34379
  mv $tmp/out $tmp/in
 
34380
' >>$CONFIG_STATUS
 
34381
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
34382
  rm -f conftest.undefs
 
34383
  mv conftest.tail conftest.undefs
 
34384
done
 
34385
rm -f conftest.undefs
 
34386
 
 
34387
cat >>$CONFIG_STATUS <<\_ACEOF
 
34388
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
34389
  # use $as_me), people would be surprised to read:
 
34390
  #    /* config.h.  Generated by config.status.  */
 
34391
  if test x"$ac_file" = x-; then
 
34392
    echo "/* Generated by configure.  */" >$tmp/config.h
 
34393
  else
 
34394
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
34395
  fi
 
34396
  cat $tmp/in >>$tmp/config.h
 
34397
  rm -f $tmp/in
 
34398
  if test x"$ac_file" != x-; then
 
34399
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
34400
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
34401
echo "$as_me: $ac_file is unchanged" >&6;}
 
34402
    else
 
34403
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
34404
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34405
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
34406
         X"$ac_file" : 'X\(//\)$' \| \
 
34407
         X"$ac_file" : 'X\(/\)' \| \
 
34408
         .     : '\(.\)' 2>/dev/null ||
 
34409
echo X"$ac_file" |
 
34410
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
34411
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
34412
          /^X\(\/\/\)$/{ s//\1/; q; }
 
34413
          /^X\(\/\).*/{ s//\1/; q; }
 
34414
          s/.*/./; q'`
 
34415
      { if $as_mkdir_p; then
 
34416
    mkdir -p "$ac_dir"
 
34417
  else
 
34418
    as_dir="$ac_dir"
 
34419
    as_dirs=
 
34420
    while test ! -d "$as_dir"; do
 
34421
      as_dirs="$as_dir $as_dirs"
 
34422
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
34423
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34424
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
34425
         X"$as_dir" : 'X\(//\)$' \| \
 
34426
         X"$as_dir" : 'X\(/\)' \| \
 
34427
         .     : '\(.\)' 2>/dev/null ||
 
34428
echo X"$as_dir" |
 
34429
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
34430
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
34431
          /^X\(\/\/\)$/{ s//\1/; q; }
 
34432
          /^X\(\/\).*/{ s//\1/; q; }
 
34433
          s/.*/./; q'`
 
34434
    done
 
34435
    test ! -n "$as_dirs" || mkdir $as_dirs
 
34436
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
34437
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
34438
   { (exit 1); exit 1; }; }; }
 
34439
 
 
34440
      rm -f $ac_file
 
34441
      mv $tmp/config.h $ac_file
 
34442
    fi
 
34443
  else
 
34444
    cat $tmp/config.h
 
34445
    rm -f $tmp/config.h
 
34446
  fi
 
34447
# Compute $ac_file's index in $config_headers.
 
34448
_am_stamp_count=1
 
34449
for _am_header in $config_headers :; do
 
34450
  case $_am_header in
 
34451
    $ac_file | $ac_file:* )
 
34452
      break ;;
 
34453
    * )
 
34454
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
34455
  esac
 
34456
done
 
34457
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
34458
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34459
         X$ac_file : 'X\(//\)[^/]' \| \
 
34460
         X$ac_file : 'X\(//\)$' \| \
 
34461
         X$ac_file : 'X\(/\)' \| \
 
34462
         .     : '\(.\)' 2>/dev/null ||
 
34463
echo X$ac_file |
 
34464
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
34465
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
34466
          /^X\(\/\/\)$/{ s//\1/; q; }
 
34467
          /^X\(\/\).*/{ s//\1/; q; }
 
34468
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
34469
done
 
34470
_ACEOF
 
34471
cat >>$CONFIG_STATUS <<\_ACEOF
 
34472
 
 
34473
#
 
34474
# CONFIG_COMMANDS section.
 
34475
#
 
34476
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
34477
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
34478
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
34479
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
34480
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34481
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
34482
         X"$ac_dest" : 'X\(//\)$' \| \
 
34483
         X"$ac_dest" : 'X\(/\)' \| \
 
34484
         .     : '\(.\)' 2>/dev/null ||
 
34485
echo X"$ac_dest" |
 
34486
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
34487
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
34488
          /^X\(\/\/\)$/{ s//\1/; q; }
 
34489
          /^X\(\/\).*/{ s//\1/; q; }
 
34490
          s/.*/./; q'`
 
34491
  { if $as_mkdir_p; then
 
34492
    mkdir -p "$ac_dir"
 
34493
  else
 
34494
    as_dir="$ac_dir"
 
34495
    as_dirs=
 
34496
    while test ! -d "$as_dir"; do
 
34497
      as_dirs="$as_dir $as_dirs"
 
34498
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
34499
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34500
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
34501
         X"$as_dir" : 'X\(//\)$' \| \
 
34502
         X"$as_dir" : 'X\(/\)' \| \
 
34503
         .     : '\(.\)' 2>/dev/null ||
 
34504
echo X"$as_dir" |
 
34505
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
34506
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
34507
          /^X\(\/\/\)$/{ s//\1/; q; }
 
34508
          /^X\(\/\).*/{ s//\1/; q; }
 
34509
          s/.*/./; q'`
 
34510
    done
 
34511
    test ! -n "$as_dirs" || mkdir $as_dirs
 
34512
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
34513
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
34514
   { (exit 1); exit 1; }; }; }
 
34515
 
 
34516
  ac_builddir=.
 
34517
 
 
34518
if test "$ac_dir" != .; then
 
34519
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
34520
  # A "../" for each directory in $ac_dir_suffix.
 
34521
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
34522
else
 
34523
  ac_dir_suffix= ac_top_builddir=
 
34524
fi
 
34525
 
 
34526
case $srcdir in
 
34527
  .)  # No --srcdir option.  We are building in place.
 
34528
    ac_srcdir=.
 
34529
    if test -z "$ac_top_builddir"; then
 
34530
       ac_top_srcdir=.
 
34531
    else
 
34532
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
34533
    fi ;;
 
34534
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
34535
    ac_srcdir=$srcdir$ac_dir_suffix;
 
34536
    ac_top_srcdir=$srcdir ;;
 
34537
  *) # Relative path.
 
34538
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
34539
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
34540
esac
 
34541
 
 
34542
# Do not use `cd foo && pwd` to compute absolute paths, because
 
34543
# the directories may not exist.
 
34544
case `pwd` in
 
34545
.) ac_abs_builddir="$ac_dir";;
 
34546
*)
 
34547
  case "$ac_dir" in
 
34548
  .) ac_abs_builddir=`pwd`;;
 
34549
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
34550
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
34551
  esac;;
 
34552
esac
 
34553
case $ac_abs_builddir in
 
34554
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
34555
*)
 
34556
  case ${ac_top_builddir}. in
 
34557
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
34558
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
34559
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
34560
  esac;;
 
34561
esac
 
34562
case $ac_abs_builddir in
 
34563
.) ac_abs_srcdir=$ac_srcdir;;
 
34564
*)
 
34565
  case $ac_srcdir in
 
34566
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
34567
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
34568
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
34569
  esac;;
 
34570
esac
 
34571
case $ac_abs_builddir in
 
34572
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
34573
*)
 
34574
  case $ac_top_srcdir in
 
34575
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
34576
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
34577
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
34578
  esac;;
 
34579
esac
 
34580
 
 
34581
 
 
34582
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
34583
echo "$as_me: executing $ac_dest commands" >&6;}
 
34584
  case $ac_dest in
 
34585
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
34586
  # Strip MF so we end up with the name of the file.
 
34587
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
34588
  # Check whether this is an Automake generated Makefile or not.
 
34589
  # We used to match only the files named `Makefile.in', but
 
34590
  # some people rename them; so instead we look at the file content.
 
34591
  # Grep'ing the first line is not enough: some people post-process
 
34592
  # each Makefile.in and add a new line on top of each file to say so.
 
34593
  # So let's grep whole file.
 
34594
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
34595
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
34596
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34597
         X"$mf" : 'X\(//\)[^/]' \| \
 
34598
         X"$mf" : 'X\(//\)$' \| \
 
34599
         X"$mf" : 'X\(/\)' \| \
 
34600
         .     : '\(.\)' 2>/dev/null ||
 
34601
echo X"$mf" |
 
34602
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
34603
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
34604
          /^X\(\/\/\)$/{ s//\1/; q; }
 
34605
          /^X\(\/\).*/{ s//\1/; q; }
 
34606
          s/.*/./; q'`
 
34607
  else
 
34608
    continue
 
34609
  fi
 
34610
  # Extract the definition of DEPDIR, am__include, and am__quote
 
34611
  # from the Makefile without running `make'.
 
34612
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
34613
  test -z "$DEPDIR" && continue
 
34614
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
34615
  test -z "am__include" && continue
 
34616
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
34617
  # When using ansi2knr, U may be empty or an underscore; expand it
 
34618
  U=`sed -n 's/^U = //p' < "$mf"`
 
34619
  # Find all dependency output files, they are included files with
 
34620
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
34621
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
34622
  # expansion.
 
34623
  for file in `sed -n "
 
34624
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
34625
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
34626
    # Make sure the directory exists.
 
34627
    test -f "$dirpart/$file" && continue
 
34628
    fdir=`(dirname "$file") 2>/dev/null ||
 
34629
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34630
         X"$file" : 'X\(//\)[^/]' \| \
 
34631
         X"$file" : 'X\(//\)$' \| \
 
34632
         X"$file" : 'X\(/\)' \| \
 
34633
         .     : '\(.\)' 2>/dev/null ||
 
34634
echo X"$file" |
 
34635
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
34636
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
34637
          /^X\(\/\/\)$/{ s//\1/; q; }
 
34638
          /^X\(\/\).*/{ s//\1/; q; }
 
34639
          s/.*/./; q'`
 
34640
    { if $as_mkdir_p; then
 
34641
    mkdir -p $dirpart/$fdir
 
34642
  else
 
34643
    as_dir=$dirpart/$fdir
 
34644
    as_dirs=
 
34645
    while test ! -d "$as_dir"; do
 
34646
      as_dirs="$as_dir $as_dirs"
 
34647
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
34648
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34649
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
34650
         X"$as_dir" : 'X\(//\)$' \| \
 
34651
         X"$as_dir" : 'X\(/\)' \| \
 
34652
         .     : '\(.\)' 2>/dev/null ||
 
34653
echo X"$as_dir" |
 
34654
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
34655
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
34656
          /^X\(\/\/\)$/{ s//\1/; q; }
 
34657
          /^X\(\/\).*/{ s//\1/; q; }
 
34658
          s/.*/./; q'`
 
34659
    done
 
34660
    test ! -n "$as_dirs" || mkdir $as_dirs
 
34661
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
34662
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
34663
   { (exit 1); exit 1; }; }; }
 
34664
 
 
34665
    # echo "creating $dirpart/$file"
 
34666
    echo '# dummy' > "$dirpart/$file"
 
34667
  done
 
34668
done
 
34669
 ;;
 
34670
  esac
 
34671
done
 
34672
_ACEOF
 
34673
 
 
34674
cat >>$CONFIG_STATUS <<\_ACEOF
 
34675
 
 
34676
{ (exit 0); exit 0; }
 
34677
_ACEOF
 
34678
if test "x$with_fast_perl" = "xyes"; then    
 
34679
  perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS    \
 
34680
    || mv $CONFIG_STATUS.bak $CONFIG_STATUS    
 
34681
  rm -f $CONFIG_STATUS.bak
 
34682
fi    
 
34683
chmod +x $CONFIG_STATUS
 
34684
ac_clean_files=$ac_clean_files_save
 
34685
 
 
34686
 
 
34687
# configure is writing to config.log, and then calls config.status.
 
34688
# config.status does its own redirection, appending to config.log.
 
34689
# Unfortunately, on DOS this fails, as config.log is still kept open
 
34690
# by configure, so config.status won't be able to write to it; its
 
34691
# output is simply discarded.  So we exec the FD to /dev/null,
 
34692
# effectively closing config.log, so it can be properly (re)opened and
 
34693
# appended to by config.status.  When coming back to configure, we
 
34694
# need to make the FD available again.
 
34695
if test "$no_create" != yes; then
 
34696
  ac_cs_success=:
 
34697
  ac_config_status_args=
 
34698
  test "$silent" = yes &&
 
34699
    ac_config_status_args="$ac_config_status_args --quiet"
 
34700
  exec 5>/dev/null
 
34701
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
34702
  exec 5>>config.log
 
34703
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
34704
  # would make configure fail if this is the last instruction.
 
34705
  $ac_cs_success || { (exit 1); exit 1; }
 
34706
fi
 
34707
 
 
34708
 
 
34709
# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
 
34710
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
 
34711
  # And if so, warn when they don't match
 
34712
  if test "$kde_libs_prefix" != "$given_prefix"; then
 
34713
    # And if kde doesn't know about the prefix yet
 
34714
    echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
 
34715
    if test $? -ne 0; then
 
34716
      echo ""
 
34717
      echo "Warning: you chose to install this package in $given_prefix,"
 
34718
      echo "but KDE was found in $kde_libs_prefix."
 
34719
      echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
 
34720
      echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
 
34721
      echo "Then restart KDE."
 
34722
      echo ""
 
34723
    fi
 
34724
  fi
 
34725
fi
 
34726
 
 
34727
if test "$all_tests" = "bad"; then
 
34728
  if test ! "$cache_file" = "/dev/null"; then
 
34729
    echo ""
 
34730
    echo "Please remove the file $cache_file after changing your setup"
 
34731
    echo "so that configure will find the changes next time."
 
34732
    echo ""
 
34733
  fi
 
34734
else
 
34735
  echo ""
 
34736
  echo "Good - your configure finished. Start make now"
 
34737
  echo ""
 
34738
fi