~ubuntu-branches/ubuntu/karmic/potracegui/karmic

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Wegscheider
  • Date: 2005-04-30 23:04:34 UTC
  • Revision ID: james.westby@ubuntu.com-20050430230434-733cdzgwcwtb98ud
Tags: upstream-1.3
ImportĀ upstreamĀ versionĀ 1.3

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 USE_EXCEPTIONS USE_RTTI CXXCPP NOOPT_CXXFLAGS NOOPT_CFLAGS ENABLE_PERMISSIVE_FLAG KDE_USE_FINAL_TRUE KDE_USE_FINAL_FALSE KDE_USE_CLOSURE_TRUE KDE_USE_CLOSURE_FALSE KDE_NO_UNDEFINED KDE_USE_NMCHECK_TRUE KDE_USE_NMCHECK_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL KDE_PLUGIN MSGFMT GMSGFMT XGETTEXT LIBUTIL LIBCOMPAT LIBCRYPT LIBRESOLV LIB_POLL FRAMEWORK_COREAUDIO LIBSOCKET X_EXTRA_LIBS LIBUCB LIBDL X_PRE_LIBS LIB_X11 LIB_XRENDER LIBSM X_INCLUDES X_LDFLAGS x_includes x_libraries QTE_NORTTI LIB_XEXT LIBPTHREAD USE_THREADS KDE_MT_LDFLAGS KDE_MT_LIBS USER_INCLUDES USER_LDFLAGS LIBZ LIBPNG LIBJPEG qt_libraries qt_includes QT_INCLUDES QT_LDFLAGS PERL MOC UIC UIC_TR LIB_QT LIB_QPE kde_qtver KDE_EXTRA_RPATH KDE_RPATH X_RPATH kde_libraries kde_includes KDE_LDFLAGS KDE_INCLUDES all_includes all_libraries AUTODIRS include_ARTS_TRUE include_ARTS_FALSE KCONFIG_COMPILER KCFG_DEPENDENCIES DCOPIDLNG DCOPIDL DCOPIDL2CPP DCOP_DEPENDENCIES MCOPIDL ARTSCCONFIG MEINPROC KDE_XSL_STYLESHEET XMLLINT kde_htmldir kde_appsdir kde_icondir kde_sounddir kde_datadir kde_locale kde_confdir kde_kcfgdir kde_mimedir kde_wallpaperdir kde_bindir xdg_appsdir xdg_menudir xdg_directorydir kde_templatesdir kde_servicesdir kde_servicetypesdir kde_moduledir kdeinitdir kde_styledir kde_widgetdir LIB_KDECORE LIB_KDEUI LIB_KIO LIB_SMB LIB_KAB LIB_KABC LIB_KHTML LIB_KSPELL LIB_KPARTS LIB_KDEPRINT LIB_KUTILS LIB_KDEPIM LIB_KSYCOCA LIB_KFILE LIB_KFM TOPSUBDIRS LIBOBJS LTLIBOBJS'
 
468
ac_subst_files=''
 
469
 
 
470
# Initialize some variables set by options.
 
471
ac_init_help=
 
472
ac_init_version=false
 
473
# The variables have the same names as the options, with
 
474
# dashes changed to underlines.
 
475
cache_file=/dev/null
 
476
exec_prefix=NONE
 
477
no_create=
 
478
no_recursion=
 
479
prefix=NONE
 
480
program_prefix=NONE
 
481
program_suffix=NONE
 
482
program_transform_name=s,x,x,
 
483
silent=
 
484
site=
 
485
srcdir=
 
486
verbose=
 
487
x_includes=NONE
 
488
x_libraries=NONE
 
489
 
 
490
# Installation directory options.
 
491
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
492
# and all the variables that are supposed to be based on exec_prefix
 
493
# by default will actually change.
 
494
# Use braces instead of parens because sh, perl, etc. also accept them.
 
495
bindir='${exec_prefix}/bin'
 
496
sbindir='${exec_prefix}/sbin'
 
497
libexecdir='${exec_prefix}/libexec'
 
498
datadir='${prefix}/share'
 
499
sysconfdir='${prefix}/etc'
 
500
sharedstatedir='${prefix}/com'
 
501
localstatedir='${prefix}/var'
 
502
libdir='${exec_prefix}/lib'
 
503
includedir='${prefix}/include'
 
504
oldincludedir='/usr/include'
 
505
infodir='${prefix}/info'
 
506
mandir='${prefix}/man'
 
507
 
 
508
ac_prev=
 
509
for ac_option
 
510
do
 
511
  # If the previous option needs an argument, assign it.
 
512
  if test -n "$ac_prev"; then
 
513
    eval "$ac_prev=\$ac_option"
 
514
    ac_prev=
 
515
    continue
 
516
  fi
 
517
 
 
518
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
519
 
 
520
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
521
 
 
522
  case $ac_option in
 
523
 
 
524
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
525
    ac_prev=bindir ;;
 
526
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
527
    bindir=$ac_optarg ;;
 
528
 
 
529
  -build | --build | --buil | --bui | --bu)
 
530
    ac_prev=build_alias ;;
 
531
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
532
    build_alias=$ac_optarg ;;
 
533
 
 
534
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
535
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
536
    ac_prev=cache_file ;;
 
537
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
538
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
539
    cache_file=$ac_optarg ;;
 
540
 
 
541
  --config-cache | -C)
 
542
    cache_file=config.cache ;;
 
543
 
 
544
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
545
    ac_prev=datadir ;;
 
546
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
547
  | --da=*)
 
548
    datadir=$ac_optarg ;;
 
549
 
 
550
  -disable-* | --disable-*)
 
551
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
552
    # Reject names that are not valid shell variable names.
 
553
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
554
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
555
   { (exit 1); exit 1; }; }
 
556
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
557
    eval "enable_$ac_feature=no" ;;
 
558
 
 
559
  -enable-* | --enable-*)
 
560
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
561
    # Reject names that are not valid shell variable names.
 
562
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
563
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
564
   { (exit 1); exit 1; }; }
 
565
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
566
    case $ac_option in
 
567
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
568
      *) ac_optarg=yes ;;
 
569
    esac
 
570
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
571
 
 
572
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
573
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
574
  | --exec | --exe | --ex)
 
575
    ac_prev=exec_prefix ;;
 
576
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
577
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
578
  | --exec=* | --exe=* | --ex=*)
 
579
    exec_prefix=$ac_optarg ;;
 
580
 
 
581
  -gas | --gas | --ga | --g)
 
582
    # Obsolete; use --with-gas.
 
583
    with_gas=yes ;;
 
584
 
 
585
  -help | --help | --hel | --he | -h)
 
586
    ac_init_help=long ;;
 
587
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
588
    ac_init_help=recursive ;;
 
589
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
590
    ac_init_help=short ;;
 
591
 
 
592
  -host | --host | --hos | --ho)
 
593
    ac_prev=host_alias ;;
 
594
  -host=* | --host=* | --hos=* | --ho=*)
 
595
    host_alias=$ac_optarg ;;
 
596
 
 
597
  -includedir | --includedir | --includedi | --included | --include \
 
598
  | --includ | --inclu | --incl | --inc)
 
599
    ac_prev=includedir ;;
 
600
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
601
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
602
    includedir=$ac_optarg ;;
 
603
 
 
604
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
605
    ac_prev=infodir ;;
 
606
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
607
    infodir=$ac_optarg ;;
 
608
 
 
609
  -libdir | --libdir | --libdi | --libd)
 
610
    ac_prev=libdir ;;
 
611
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
612
    libdir=$ac_optarg ;;
 
613
 
 
614
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
615
  | --libexe | --libex | --libe)
 
616
    ac_prev=libexecdir ;;
 
617
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
618
  | --libexe=* | --libex=* | --libe=*)
 
619
    libexecdir=$ac_optarg ;;
 
620
 
 
621
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
622
  | --localstate | --localstat | --localsta | --localst \
 
623
  | --locals | --local | --loca | --loc | --lo)
 
624
    ac_prev=localstatedir ;;
 
625
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
626
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
627
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
628
    localstatedir=$ac_optarg ;;
 
629
 
 
630
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
631
    ac_prev=mandir ;;
 
632
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
633
    mandir=$ac_optarg ;;
 
634
 
 
635
  -nfp | --nfp | --nf)
 
636
    # Obsolete; use --without-fp.
 
637
    with_fp=no ;;
 
638
 
 
639
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
640
  | --no-cr | --no-c | -n)
 
641
    no_create=yes ;;
 
642
 
 
643
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
644
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
645
    no_recursion=yes ;;
 
646
 
 
647
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
648
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
649
  | --oldin | --oldi | --old | --ol | --o)
 
650
    ac_prev=oldincludedir ;;
 
651
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
652
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
653
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
654
    oldincludedir=$ac_optarg ;;
 
655
 
 
656
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
657
    ac_prev=prefix ;;
 
658
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
659
    prefix=$ac_optarg ;;
 
660
 
 
661
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
662
  | --program-pre | --program-pr | --program-p)
 
663
    ac_prev=program_prefix ;;
 
664
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
665
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
666
    program_prefix=$ac_optarg ;;
 
667
 
 
668
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
669
  | --program-suf | --program-su | --program-s)
 
670
    ac_prev=program_suffix ;;
 
671
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
672
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
673
    program_suffix=$ac_optarg ;;
 
674
 
 
675
  -program-transform-name | --program-transform-name \
 
676
  | --program-transform-nam | --program-transform-na \
 
677
  | --program-transform-n | --program-transform- \
 
678
  | --program-transform | --program-transfor \
 
679
  | --program-transfo | --program-transf \
 
680
  | --program-trans | --program-tran \
 
681
  | --progr-tra | --program-tr | --program-t)
 
682
    ac_prev=program_transform_name ;;
 
683
  -program-transform-name=* | --program-transform-name=* \
 
684
  | --program-transform-nam=* | --program-transform-na=* \
 
685
  | --program-transform-n=* | --program-transform-=* \
 
686
  | --program-transform=* | --program-transfor=* \
 
687
  | --program-transfo=* | --program-transf=* \
 
688
  | --program-trans=* | --program-tran=* \
 
689
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
690
    program_transform_name=$ac_optarg ;;
 
691
 
 
692
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
693
  | -silent | --silent | --silen | --sile | --sil)
 
694
    silent=yes ;;
 
695
 
 
696
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
697
    ac_prev=sbindir ;;
 
698
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
699
  | --sbi=* | --sb=*)
 
700
    sbindir=$ac_optarg ;;
 
701
 
 
702
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
703
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
704
  | --sharedst | --shareds | --shared | --share | --shar \
 
705
  | --sha | --sh)
 
706
    ac_prev=sharedstatedir ;;
 
707
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
708
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
709
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
710
  | --sha=* | --sh=*)
 
711
    sharedstatedir=$ac_optarg ;;
 
712
 
 
713
  -site | --site | --sit)
 
714
    ac_prev=site ;;
 
715
  -site=* | --site=* | --sit=*)
 
716
    site=$ac_optarg ;;
 
717
 
 
718
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
719
    ac_prev=srcdir ;;
 
720
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
721
    srcdir=$ac_optarg ;;
 
722
 
 
723
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
724
  | --syscon | --sysco | --sysc | --sys | --sy)
 
725
    ac_prev=sysconfdir ;;
 
726
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
727
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
728
    sysconfdir=$ac_optarg ;;
 
729
 
 
730
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
731
    ac_prev=target_alias ;;
 
732
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
733
    target_alias=$ac_optarg ;;
 
734
 
 
735
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
736
    verbose=yes ;;
 
737
 
 
738
  -version | --version | --versio | --versi | --vers | -V)
 
739
    ac_init_version=: ;;
 
740
 
 
741
  -with-* | --with-*)
 
742
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
743
    # Reject names that are not valid shell variable names.
 
744
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
745
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
746
   { (exit 1); exit 1; }; }
 
747
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
748
    case $ac_option in
 
749
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
750
      *) ac_optarg=yes ;;
 
751
    esac
 
752
    eval "with_$ac_package='$ac_optarg'" ;;
 
753
 
 
754
  -without-* | --without-*)
 
755
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
756
    # Reject names that are not valid shell variable names.
 
757
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
758
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
759
   { (exit 1); exit 1; }; }
 
760
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
761
    eval "with_$ac_package=no" ;;
 
762
 
 
763
  --x)
 
764
    # Obsolete; use --with-x.
 
765
    with_x=yes ;;
 
766
 
 
767
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
768
  | --x-incl | --x-inc | --x-in | --x-i)
 
769
    ac_prev=x_includes ;;
 
770
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
771
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
772
    x_includes=$ac_optarg ;;
 
773
 
 
774
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
775
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
776
    ac_prev=x_libraries ;;
 
777
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
778
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
779
    x_libraries=$ac_optarg ;;
 
780
 
 
781
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
782
Try \`$0 --help' for more information." >&2
 
783
   { (exit 1); exit 1; }; }
 
784
    ;;
 
785
 
 
786
  *=*)
 
787
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
788
    # Reject names that are not valid shell variable names.
 
789
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
790
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
791
   { (exit 1); exit 1; }; }
 
792
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
793
    eval "$ac_envvar='$ac_optarg'"
 
794
    export $ac_envvar ;;
 
795
 
 
796
  *)
 
797
    # FIXME: should be removed in autoconf 3.0.
 
798
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
799
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
800
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
801
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
802
    ;;
 
803
 
 
804
  esac
 
805
done
 
806
 
 
807
if test -n "$ac_prev"; then
 
808
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
809
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
810
   { (exit 1); exit 1; }; }
 
811
fi
 
812
 
 
813
# Be sure to have absolute paths.
 
814
for ac_var in exec_prefix prefix
 
815
do
 
816
  eval ac_val=$`echo $ac_var`
 
817
  case $ac_val in
 
818
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
819
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
820
   { (exit 1); exit 1; }; };;
 
821
  esac
 
822
done
 
823
 
 
824
# Be sure to have absolute paths.
 
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
826
              localstatedir libdir includedir oldincludedir infodir mandir
 
827
do
 
828
  eval ac_val=$`echo $ac_var`
 
829
  case $ac_val in
 
830
    [\\/$]* | ?:[\\/]* ) ;;
 
831
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
832
   { (exit 1); exit 1; }; };;
 
833
  esac
 
834
done
 
835
 
 
836
# There might be people who depend on the old broken behavior: `$host'
 
837
# used to hold the argument of --host etc.
 
838
# FIXME: To remove some day.
 
839
build=$build_alias
 
840
host=$host_alias
 
841
target=$target_alias
 
842
 
 
843
# FIXME: To remove some day.
 
844
if test "x$host_alias" != x; then
 
845
  if test "x$build_alias" = x; then
 
846
    cross_compiling=maybe
 
847
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
848
    If a cross compiler is detected then cross compile mode will be used." >&2
 
849
  elif test "x$build_alias" != "x$host_alias"; then
 
850
    cross_compiling=yes
 
851
  fi
 
852
fi
 
853
 
 
854
ac_tool_prefix=
 
855
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
856
 
 
857
test "$silent" = yes && exec 6>/dev/null
 
858
 
 
859
 
 
860
# Find the source files, if location was not specified.
 
861
if test -z "$srcdir"; then
 
862
  ac_srcdir_defaulted=yes
 
863
  # Try the directory containing this script, then its parent.
 
864
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
866
         X"$0" : 'X\(//\)[^/]' \| \
 
867
         X"$0" : 'X\(//\)$' \| \
 
868
         X"$0" : 'X\(/\)' \| \
 
869
         .     : '\(.\)' 2>/dev/null ||
 
870
echo X"$0" |
 
871
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
872
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
873
          /^X\(\/\/\)$/{ s//\1/; q; }
 
874
          /^X\(\/\).*/{ s//\1/; q; }
 
875
          s/.*/./; q'`
 
876
  srcdir=$ac_confdir
 
877
  if test ! -r $srcdir/$ac_unique_file; then
 
878
    srcdir=..
 
879
  fi
 
880
else
 
881
  ac_srcdir_defaulted=no
 
882
fi
 
883
if test ! -r $srcdir/$ac_unique_file; then
 
884
  if test "$ac_srcdir_defaulted" = yes; then
 
885
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
886
   { (exit 1); exit 1; }; }
 
887
  else
 
888
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
889
   { (exit 1); exit 1; }; }
 
890
  fi
 
891
fi
 
892
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
893
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
894
   { (exit 1); exit 1; }; }
 
895
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
896
ac_env_build_alias_set=${build_alias+set}
 
897
ac_env_build_alias_value=$build_alias
 
898
ac_cv_env_build_alias_set=${build_alias+set}
 
899
ac_cv_env_build_alias_value=$build_alias
 
900
ac_env_host_alias_set=${host_alias+set}
 
901
ac_env_host_alias_value=$host_alias
 
902
ac_cv_env_host_alias_set=${host_alias+set}
 
903
ac_cv_env_host_alias_value=$host_alias
 
904
ac_env_target_alias_set=${target_alias+set}
 
905
ac_env_target_alias_value=$target_alias
 
906
ac_cv_env_target_alias_set=${target_alias+set}
 
907
ac_cv_env_target_alias_value=$target_alias
 
908
ac_env_CC_set=${CC+set}
 
909
ac_env_CC_value=$CC
 
910
ac_cv_env_CC_set=${CC+set}
 
911
ac_cv_env_CC_value=$CC
 
912
ac_env_CFLAGS_set=${CFLAGS+set}
 
913
ac_env_CFLAGS_value=$CFLAGS
 
914
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
915
ac_cv_env_CFLAGS_value=$CFLAGS
 
916
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
917
ac_env_LDFLAGS_value=$LDFLAGS
 
918
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
919
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
920
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
921
ac_env_CPPFLAGS_value=$CPPFLAGS
 
922
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
923
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
924
ac_env_CPP_set=${CPP+set}
 
925
ac_env_CPP_value=$CPP
 
926
ac_cv_env_CPP_set=${CPP+set}
 
927
ac_cv_env_CPP_value=$CPP
 
928
ac_env_CXX_set=${CXX+set}
 
929
ac_env_CXX_value=$CXX
 
930
ac_cv_env_CXX_set=${CXX+set}
 
931
ac_cv_env_CXX_value=$CXX
 
932
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
933
ac_env_CXXFLAGS_value=$CXXFLAGS
 
934
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
935
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
936
ac_env_CXXCPP_set=${CXXCPP+set}
 
937
ac_env_CXXCPP_value=$CXXCPP
 
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
939
ac_cv_env_CXXCPP_value=$CXXCPP
 
940
ac_env_F77_set=${F77+set}
 
941
ac_env_F77_value=$F77
 
942
ac_cv_env_F77_set=${F77+set}
 
943
ac_cv_env_F77_value=$F77
 
944
ac_env_FFLAGS_set=${FFLAGS+set}
 
945
ac_env_FFLAGS_value=$FFLAGS
 
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
947
ac_cv_env_FFLAGS_value=$FFLAGS
 
948
 
 
949
#
 
950
# Report the --help message.
 
951
#
 
952
if test "$ac_init_help" = "long"; then
 
953
  # Omit some internal or obsolete options to make the list less imposing.
 
954
  # This message is too long to be a string in the A/UX 3.1 sh.
 
955
  cat <<_ACEOF
 
956
\`configure' configures this package to adapt to many kinds of systems.
 
957
 
 
958
Usage: $0 [OPTION]... [VAR=VALUE]...
 
959
 
 
960
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
961
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
962
 
 
963
Defaults for the options are specified in brackets.
 
964
 
 
965
Configuration:
 
966
  -h, --help              display this help and exit
 
967
      --help=short        display options specific to this package
 
968
      --help=recursive    display the short help of all the included packages
 
969
  -V, --version           display version information and exit
 
970
  -q, --quiet, --silent   do not print \`checking...' messages
 
971
      --cache-file=FILE   cache test results in FILE [disabled]
 
972
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
973
  -n, --no-create         do not create output files
 
974
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
975
 
 
976
_ACEOF
 
977
 
 
978
  cat <<_ACEOF
 
979
Installation directories:
 
980
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
981
                          [$ac_default_prefix]
 
982
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
983
                          [PREFIX]
 
984
 
 
985
By default, \`make install' will install all the files in
 
986
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
987
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
988
for instance \`--prefix=\$HOME'.
 
989
 
 
990
For better control, use the options below.
 
991
 
 
992
Fine tuning of the installation directories:
 
993
  --bindir=DIR           user executables [EPREFIX/bin]
 
994
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
995
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
996
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
997
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
998
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
999
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1000
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1001
  --includedir=DIR       C header files [PREFIX/include]
 
1002
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1003
  --infodir=DIR          info documentation [PREFIX/info]
 
1004
  --mandir=DIR           man documentation [PREFIX/man]
 
1005
_ACEOF
 
1006
 
 
1007
  cat <<\_ACEOF
 
1008
 
 
1009
Program names:
 
1010
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1011
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1012
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1013
 
 
1014
System types:
 
1015
  --build=BUILD     configure for building on BUILD [guessed]
 
1016
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1017
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1018
_ACEOF
 
1019
fi
 
1020
 
 
1021
if test -n "$ac_init_help"; then
 
1022
 
 
1023
  cat <<\_ACEOF
 
1024
 
 
1025
Optional Features:
 
1026
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1027
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1028
  --disable-fast-perl     disable fast Makefile generation (needs perl)
 
1029
  --enable-debug=ARG      enables debug symbols (yes|no|full) default=no
 
1030
  --disable-debug         disables debug output and debug symbols default=no
 
1031
  --enable-strict         compiles with strict compiler options (may not
 
1032
                          work!)
 
1033
  --disable-warnings      disables compilation with -Wall and similiar
 
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) default=no
 
1039
  --enable-final          build size optimized apps (experimental - needs lots
 
1040
                          of memory)
 
1041
  --enable-closure        delay template instantiation
 
1042
  --enable-nmcheck        enable automatic namespace cleanness check
 
1043
  --enable-shared[=PKGS]
 
1044
                          build shared libraries [default=yes]
 
1045
  --enable-static[=PKGS]
 
1046
                          build static libraries [default=no]
 
1047
  --enable-libsuffix      /lib directory suffix (64,32,none=default)
 
1048
  --enable-fast-install[=PKGS]
 
1049
                          optimize for fast installation [default=yes]
 
1050
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1051
  --enable-embedded       link to Qt-embedded, don't use X
 
1052
  --enable-qtopia         link to Qt-embedded, link to the Qtopia Environment
 
1053
  --enable-mac            link to Qt/Mac (don't use X)
 
1054
  --disable-mt            link to non-threaded Qt (deprecated)
 
1055
  --disable-threading     disables threading even if libpthread found
 
1056
  --disable-rpath         do not use the rpath feature of ld
 
1057
  --disable-path-check    don't try to find out, where to install
 
1058
 
 
1059
Optional Packages:
 
1060
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1061
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1062
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1063
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1064
                          both]
 
1065
  --with-tags[=TAGS]
 
1066
                          include additional configurations [automatic]
 
1067
  --with-extra-includes=DIR
 
1068
                          adds non standard include paths
 
1069
  --with-extra-libs=DIR   adds non standard library paths
 
1070
  --with-qt-dir=DIR       where the root of Qt is installed
 
1071
  --with-qt-includes=DIR  where the Qt includes are.
 
1072
  --with-qt-libraries=DIR where the Qt library is installed.
 
1073
  --without-arts          build without aRts default=no
 
1074
 
 
1075
Some influential environment variables:
 
1076
  CC          C compiler command
 
1077
  CFLAGS      C compiler flags
 
1078
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1079
              nonstandard directory <lib dir>
 
1080
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1081
              headers in a nonstandard directory <include dir>
 
1082
  CPP         C preprocessor
 
1083
  CXX         C++ compiler command
 
1084
  CXXFLAGS    C++ compiler flags
 
1085
  CXXCPP      C++ preprocessor
 
1086
  F77         Fortran 77 compiler command
 
1087
  FFLAGS      Fortran 77 compiler flags
 
1088
 
 
1089
Use these variables to override the choices made by `configure' or to help
 
1090
it to find libraries and programs with nonstandard names/locations.
 
1091
 
 
1092
_ACEOF
 
1093
fi
 
1094
 
 
1095
if test "$ac_init_help" = "recursive"; then
 
1096
  # If there are subdirs, report their specific --help.
 
1097
  ac_popdir=`pwd`
 
1098
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1099
    test -d $ac_dir || continue
 
1100
    ac_builddir=.
 
1101
 
 
1102
if test "$ac_dir" != .; then
 
1103
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1104
  # A "../" for each directory in $ac_dir_suffix.
 
1105
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1106
else
 
1107
  ac_dir_suffix= ac_top_builddir=
 
1108
fi
 
1109
 
 
1110
case $srcdir in
 
1111
  .)  # No --srcdir option.  We are building in place.
 
1112
    ac_srcdir=.
 
1113
    if test -z "$ac_top_builddir"; then
 
1114
       ac_top_srcdir=.
 
1115
    else
 
1116
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1117
    fi ;;
 
1118
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1119
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1120
    ac_top_srcdir=$srcdir ;;
 
1121
  *) # Relative path.
 
1122
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1123
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1124
esac
 
1125
 
 
1126
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1127
# the directories may not exist.
 
1128
case `pwd` in
 
1129
.) ac_abs_builddir="$ac_dir";;
 
1130
*)
 
1131
  case "$ac_dir" in
 
1132
  .) ac_abs_builddir=`pwd`;;
 
1133
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1134
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1135
  esac;;
 
1136
esac
 
1137
case $ac_abs_builddir in
 
1138
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1139
*)
 
1140
  case ${ac_top_builddir}. in
 
1141
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1142
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1143
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1144
  esac;;
 
1145
esac
 
1146
case $ac_abs_builddir in
 
1147
.) ac_abs_srcdir=$ac_srcdir;;
 
1148
*)
 
1149
  case $ac_srcdir in
 
1150
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1151
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1152
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1153
  esac;;
 
1154
esac
 
1155
case $ac_abs_builddir in
 
1156
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1157
*)
 
1158
  case $ac_top_srcdir in
 
1159
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1160
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1161
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1162
  esac;;
 
1163
esac
 
1164
 
 
1165
    cd $ac_dir
 
1166
    # Check for guested configure; otherwise get Cygnus style configure.
 
1167
    if test -f $ac_srcdir/configure.gnu; then
 
1168
      echo
 
1169
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1170
    elif test -f $ac_srcdir/configure; then
 
1171
      echo
 
1172
      $SHELL $ac_srcdir/configure  --help=recursive
 
1173
    elif test -f $ac_srcdir/configure.ac ||
 
1174
           test -f $ac_srcdir/configure.in; then
 
1175
      echo
 
1176
      $ac_configure --help
 
1177
    else
 
1178
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1179
    fi
 
1180
    cd $ac_popdir
 
1181
  done
 
1182
fi
 
1183
 
 
1184
test -n "$ac_init_help" && exit 0
 
1185
if $ac_init_version; then
 
1186
  cat <<\_ACEOF
 
1187
 
 
1188
Copyright (C) 2003 Free Software Foundation, Inc.
 
1189
This configure script is free software; the Free Software Foundation
 
1190
gives unlimited permission to copy, distribute and modify it.
 
1191
_ACEOF
 
1192
  exit 0
 
1193
fi
 
1194
exec 5>config.log
 
1195
cat >&5 <<_ACEOF
 
1196
This file contains any messages produced by compilers while
 
1197
running configure, to aid debugging if configure makes a mistake.
 
1198
 
 
1199
It was created by $as_me, which was
 
1200
generated by GNU Autoconf 2.59.  Invocation command line was
 
1201
 
 
1202
  $ $0 $@
 
1203
 
 
1204
_ACEOF
 
1205
{
 
1206
cat <<_ASUNAME
 
1207
## --------- ##
 
1208
## Platform. ##
 
1209
## --------- ##
 
1210
 
 
1211
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1212
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1213
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1214
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1215
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1216
 
 
1217
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1218
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1219
 
 
1220
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1221
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1222
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1223
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1224
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1225
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1226
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1227
 
 
1228
_ASUNAME
 
1229
 
 
1230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1231
for as_dir in $PATH
 
1232
do
 
1233
  IFS=$as_save_IFS
 
1234
  test -z "$as_dir" && as_dir=.
 
1235
  echo "PATH: $as_dir"
 
1236
done
 
1237
 
 
1238
} >&5
 
1239
 
 
1240
cat >&5 <<_ACEOF
 
1241
 
 
1242
 
 
1243
## ----------- ##
 
1244
## Core tests. ##
 
1245
## ----------- ##
 
1246
 
 
1247
_ACEOF
 
1248
 
 
1249
 
 
1250
# Keep a trace of the command line.
 
1251
# Strip out --no-create and --no-recursion so they do not pile up.
 
1252
# Strip out --silent because we don't want to record it for future runs.
 
1253
# Also quote any args containing shell meta-characters.
 
1254
# Make two passes to allow for proper duplicate-argument suppression.
 
1255
ac_configure_args=
 
1256
ac_configure_args0=
 
1257
ac_configure_args1=
 
1258
ac_sep=
 
1259
ac_must_keep_next=false
 
1260
for ac_pass in 1 2
 
1261
do
 
1262
  for ac_arg
 
1263
  do
 
1264
    case $ac_arg in
 
1265
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1266
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1267
    | -silent | --silent | --silen | --sile | --sil)
 
1268
      continue ;;
 
1269
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1270
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1271
    esac
 
1272
    case $ac_pass in
 
1273
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1274
    2)
 
1275
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1276
      if test $ac_must_keep_next = true; then
 
1277
        ac_must_keep_next=false # Got value, back to normal.
 
1278
      else
 
1279
        case $ac_arg in
 
1280
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1281
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1282
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1283
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1284
            case "$ac_configure_args0 " in
 
1285
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1286
            esac
 
1287
            ;;
 
1288
          -* ) ac_must_keep_next=true ;;
 
1289
        esac
 
1290
      fi
 
1291
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1292
      # Get rid of the leading space.
 
1293
      ac_sep=" "
 
1294
      ;;
 
1295
    esac
 
1296
  done
 
1297
done
 
1298
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1299
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1300
 
 
1301
# When interrupted or exit'd, cleanup temporary files, and complete
 
1302
# config.log.  We remove comments because anyway the quotes in there
 
1303
# would cause problems or look ugly.
 
1304
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1305
# such as our DU 5.0 friend, will then `close' the trap.
 
1306
trap 'exit_status=$?
 
1307
  # Save into config.log some information that might help in debugging.
 
1308
  {
 
1309
    echo
 
1310
 
 
1311
    cat <<\_ASBOX
 
1312
## ---------------- ##
 
1313
## Cache variables. ##
 
1314
## ---------------- ##
 
1315
_ASBOX
 
1316
    echo
 
1317
    # The following way of writing the cache mishandles newlines in values,
 
1318
{
 
1319
  (set) 2>&1 |
 
1320
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1321
    *ac_space=\ *)
 
1322
      sed -n \
 
1323
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1324
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1325
      ;;
 
1326
    *)
 
1327
      sed -n \
 
1328
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1329
      ;;
 
1330
    esac;
 
1331
}
 
1332
    echo
 
1333
 
 
1334
    cat <<\_ASBOX
 
1335
## ----------------- ##
 
1336
## Output variables. ##
 
1337
## ----------------- ##
 
1338
_ASBOX
 
1339
    echo
 
1340
    for ac_var in $ac_subst_vars
 
1341
    do
 
1342
      eval ac_val=$`echo $ac_var`
 
1343
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1344
    done | sort
 
1345
    echo
 
1346
 
 
1347
    if test -n "$ac_subst_files"; then
 
1348
      cat <<\_ASBOX
 
1349
## ------------- ##
 
1350
## Output files. ##
 
1351
## ------------- ##
 
1352
_ASBOX
 
1353
      echo
 
1354
      for ac_var in $ac_subst_files
 
1355
      do
 
1356
        eval ac_val=$`echo $ac_var`
 
1357
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1358
      done | sort
 
1359
      echo
 
1360
    fi
 
1361
 
 
1362
    if test -s confdefs.h; then
 
1363
      cat <<\_ASBOX
 
1364
## ----------- ##
 
1365
## confdefs.h. ##
 
1366
## ----------- ##
 
1367
_ASBOX
 
1368
      echo
 
1369
      sed "/^$/d" confdefs.h | sort
 
1370
      echo
 
1371
    fi
 
1372
    test "$ac_signal" != 0 &&
 
1373
      echo "$as_me: caught signal $ac_signal"
 
1374
    echo "$as_me: exit $exit_status"
 
1375
  } >&5
 
1376
  rm -f core *.core &&
 
1377
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1378
    exit $exit_status
 
1379
     ' 0
 
1380
for ac_signal in 1 2 13 15; do
 
1381
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1382
done
 
1383
ac_signal=0
 
1384
 
 
1385
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1386
rm -rf conftest* confdefs.h
 
1387
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1388
echo >confdefs.h
 
1389
 
 
1390
# Predefined preprocessor variables.
 
1391
 
 
1392
cat >>confdefs.h <<_ACEOF
 
1393
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1394
_ACEOF
 
1395
 
 
1396
 
 
1397
cat >>confdefs.h <<_ACEOF
 
1398
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1399
_ACEOF
 
1400
 
 
1401
 
 
1402
cat >>confdefs.h <<_ACEOF
 
1403
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1404
_ACEOF
 
1405
 
 
1406
 
 
1407
cat >>confdefs.h <<_ACEOF
 
1408
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1409
_ACEOF
 
1410
 
 
1411
 
 
1412
cat >>confdefs.h <<_ACEOF
 
1413
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1414
_ACEOF
 
1415
 
 
1416
 
 
1417
# Let the site file select an alternate cache file if it wants to.
 
1418
# Prefer explicitly selected file to automatically selected ones.
 
1419
if test -z "$CONFIG_SITE"; then
 
1420
  if test "x$prefix" != xNONE; then
 
1421
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1422
  else
 
1423
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1424
  fi
 
1425
fi
 
1426
for ac_site_file in $CONFIG_SITE; do
 
1427
  if test -r "$ac_site_file"; then
 
1428
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1429
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1430
    sed 's/^/| /' "$ac_site_file" >&5
 
1431
    . "$ac_site_file"
 
1432
  fi
 
1433
done
 
1434
 
 
1435
if test -r "$cache_file"; then
 
1436
  # Some versions of bash will fail to source /dev/null (special
 
1437
  # files actually), so we avoid doing that.
 
1438
  if test -f "$cache_file"; then
 
1439
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1440
echo "$as_me: loading cache $cache_file" >&6;}
 
1441
    case $cache_file in
 
1442
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1443
      *)                      . ./$cache_file;;
 
1444
    esac
 
1445
  fi
 
1446
else
 
1447
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1448
echo "$as_me: creating cache $cache_file" >&6;}
 
1449
  >$cache_file
 
1450
fi
 
1451
 
 
1452
# Check that the precious variables saved in the cache have kept the same
 
1453
# value.
 
1454
ac_cache_corrupted=false
 
1455
for ac_var in `(set) 2>&1 |
 
1456
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1457
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1458
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1459
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1460
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1461
  case $ac_old_set,$ac_new_set in
 
1462
    set,)
 
1463
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1464
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1465
      ac_cache_corrupted=: ;;
 
1466
    ,set)
 
1467
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1468
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1469
      ac_cache_corrupted=: ;;
 
1470
    ,);;
 
1471
    *)
 
1472
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1473
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1474
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1475
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1476
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1477
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1478
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1479
        ac_cache_corrupted=:
 
1480
      fi;;
 
1481
  esac
 
1482
  # Pass precious variables to config.status.
 
1483
  if test "$ac_new_set" = set; then
 
1484
    case $ac_new_val in
 
1485
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1486
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1487
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1488
    esac
 
1489
    case " $ac_configure_args " in
 
1490
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1491
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1492
    esac
 
1493
  fi
 
1494
done
 
1495
if $ac_cache_corrupted; then
 
1496
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1497
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1498
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1499
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1500
   { (exit 1); exit 1; }; }
 
1501
fi
 
1502
 
 
1503
ac_ext=c
 
1504
ac_cpp='$CPP $CPPFLAGS'
 
1505
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1506
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1507
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
 
1524
 
 
1525
 
 
1526
 
 
1527
ac_aux_dir=
 
1528
for ac_dir in admin $srcdir/admin; do
 
1529
  if test -f $ac_dir/install-sh; then
 
1530
    ac_aux_dir=$ac_dir
 
1531
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1532
    break
 
1533
  elif test -f $ac_dir/install.sh; then
 
1534
    ac_aux_dir=$ac_dir
 
1535
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1536
    break
 
1537
  elif test -f $ac_dir/shtool; then
 
1538
    ac_aux_dir=$ac_dir
 
1539
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1540
    break
 
1541
  fi
 
1542
done
 
1543
if test -z "$ac_aux_dir"; then
 
1544
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
 
1545
echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
 
1546
   { (exit 1); exit 1; }; }
 
1547
fi
 
1548
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1549
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1550
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1551
 
 
1552
 
 
1553
unset CDPATH
 
1554
 
 
1555
# Make sure we can run config.sub.
 
1556
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1557
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1558
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1559
   { (exit 1); exit 1; }; }
 
1560
 
 
1561
echo "$as_me:$LINENO: checking build system type" >&5
 
1562
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1563
if test "${ac_cv_build+set}" = set; then
 
1564
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1565
else
 
1566
  ac_cv_build_alias=$build_alias
 
1567
test -z "$ac_cv_build_alias" &&
 
1568
  ac_cv_build_alias=`$ac_config_guess`
 
1569
test -z "$ac_cv_build_alias" &&
 
1570
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1571
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1572
   { (exit 1); exit 1; }; }
 
1573
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1574
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1575
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1576
   { (exit 1); exit 1; }; }
 
1577
 
 
1578
fi
 
1579
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1580
echo "${ECHO_T}$ac_cv_build" >&6
 
1581
build=$ac_cv_build
 
1582
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1583
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1584
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1585
 
 
1586
 
 
1587
echo "$as_me:$LINENO: checking host system type" >&5
 
1588
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1589
if test "${ac_cv_host+set}" = set; then
 
1590
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1591
else
 
1592
  ac_cv_host_alias=$host_alias
 
1593
test -z "$ac_cv_host_alias" &&
 
1594
  ac_cv_host_alias=$ac_cv_build_alias
 
1595
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1596
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1597
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1598
   { (exit 1); exit 1; }; }
 
1599
 
 
1600
fi
 
1601
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1602
echo "${ECHO_T}$ac_cv_host" >&6
 
1603
host=$ac_cv_host
 
1604
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1605
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1606
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1607
 
 
1608
 
 
1609
echo "$as_me:$LINENO: checking target system type" >&5
 
1610
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1611
if test "${ac_cv_target+set}" = set; then
 
1612
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1613
else
 
1614
  ac_cv_target_alias=$target_alias
 
1615
test "x$ac_cv_target_alias" = "x" &&
 
1616
  ac_cv_target_alias=$ac_cv_host_alias
 
1617
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1618
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1619
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1620
   { (exit 1); exit 1; }; }
 
1621
 
 
1622
fi
 
1623
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1624
echo "${ECHO_T}$ac_cv_target" >&6
 
1625
target=$ac_cv_target
 
1626
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1627
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1628
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1629
 
 
1630
 
 
1631
# The aliases save the names the user supplied, while $host etc.
 
1632
# will get canonicalized.
 
1633
test -n "$target_alias" &&
 
1634
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1635
    NONENONEs,x,x, &&
 
1636
  program_prefix=${target_alias}-
 
1637
test "$program_prefix" != NONE &&
 
1638
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1639
# Use a double $ so make ignores it.
 
1640
test "$program_suffix" != NONE &&
 
1641
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1642
# Double any \ or $.  echo might interpret backslashes.
 
1643
# By default was `s,x,x', remove it if useless.
 
1644
cat <<\_ACEOF >conftest.sed
 
1645
s/[\\$]/&&/g;s/;s,x,x,$//
 
1646
_ACEOF
 
1647
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1648
rm conftest.sed
 
1649
 
 
1650
 
 
1651
am__api_version="1.9"
 
1652
 
 
1653
 
 
1654
          test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
 
1655
  test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
 
1656
  test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
 
1657
  # Find a good install program.  We prefer a C program (faster),
 
1658
# so one script is as good as another.  But avoid the broken or
 
1659
# incompatible versions:
 
1660
# SysV /etc/install, /usr/sbin/install
 
1661
# SunOS /usr/etc/install
 
1662
# IRIX /sbin/install
 
1663
# AIX /bin/install
 
1664
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1665
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1666
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1667
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1668
# OS/2's system install, which has a completely different semantic
 
1669
# ./install, which can be erroneously created by make from ./install.sh.
 
1670
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1671
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1672
if test -z "$INSTALL"; then
 
1673
if test "${ac_cv_path_install+set}" = set; then
 
1674
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1675
else
 
1676
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1677
for as_dir in $PATH
 
1678
do
 
1679
  IFS=$as_save_IFS
 
1680
  test -z "$as_dir" && as_dir=.
 
1681
  # Account for people who put trailing slashes in PATH elements.
 
1682
case $as_dir/ in
 
1683
  ./ | .// | /cC/* | \
 
1684
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1685
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1686
  /usr/ucb/* ) ;;
 
1687
  *)
 
1688
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1689
    # Don't use installbsd from OSF since it installs stuff as root
 
1690
    # by default.
 
1691
    for ac_prog in ginstall scoinst install; do
 
1692
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1693
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1694
          if test $ac_prog = install &&
 
1695
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1696
            # AIX install.  It has an incompatible calling convention.
 
1697
            :
 
1698
          elif test $ac_prog = install &&
 
1699
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1700
            # program-specific install script used by HP pwplus--don't use.
 
1701
            :
 
1702
          else
 
1703
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1704
            break 3
 
1705
          fi
 
1706
        fi
 
1707
      done
 
1708
    done
 
1709
    ;;
 
1710
esac
 
1711
done
 
1712
 
 
1713
 
 
1714
fi
 
1715
  if test "${ac_cv_path_install+set}" = set; then
 
1716
    INSTALL=$ac_cv_path_install
 
1717
  else
 
1718
    # As a last resort, use the slow shell script.  We don't cache a
 
1719
    # path for INSTALL within a source directory, because that will
 
1720
    # break other packages using the cache if that directory is
 
1721
    # removed, or if the path is relative.
 
1722
    INSTALL=$ac_install_sh
 
1723
  fi
 
1724
fi
 
1725
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1726
echo "${ECHO_T}$INSTALL" >&6
 
1727
 
 
1728
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1729
# It thinks the first close brace ends the variable substitution.
 
1730
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1731
 
 
1732
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1733
 
 
1734
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1735
 
 
1736
 
 
1737
  if test -z "$kde_save_INSTALL_given" ; then
 
1738
    # OK, user hasn't given any INSTALL, autoconf found one for us
 
1739
    # now we test, if it supports the -p flag
 
1740
    echo "$as_me:$LINENO: checking for -p flag to install" >&5
 
1741
echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6
 
1742
    rm -f confinst.$$.* > /dev/null 2>&1
 
1743
    echo "Testtest" > confinst.$$.orig
 
1744
    ac_res=no
 
1745
    if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
 
1746
      if test -f confinst.$$.new ; then
 
1747
        # OK, -p seems to do no harm to install
 
1748
        INSTALL="${INSTALL} -p"
 
1749
        ac_res=yes
 
1750
      fi
 
1751
    fi
 
1752
    rm -f confinst.$$.*
 
1753
    echo "$as_me:$LINENO: result: $ac_res" >&5
 
1754
echo "${ECHO_T}$ac_res" >&6
 
1755
  fi
 
1756
 
 
1757
  if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
 
1758
    INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
 
1759
  fi
 
1760
  if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
 
1761
    INSTALL_SCRIPT='${INSTALL}'
 
1762
  fi
 
1763
 
 
1764
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1765
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1766
# Just in case
 
1767
sleep 1
 
1768
echo timestamp > conftest.file
 
1769
# Do `set' in a subshell so we don't clobber the current shell's
 
1770
# arguments.  Must try -L first in case configure is actually a
 
1771
# symlink; some systems play weird games with the mod time of symlinks
 
1772
# (eg FreeBSD returns the mod time of the symlink's containing
 
1773
# directory).
 
1774
if (
 
1775
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1776
   if test "$*" = "X"; then
 
1777
      # -L didn't work.
 
1778
      set X `ls -t $srcdir/configure conftest.file`
 
1779
   fi
 
1780
   rm -f conftest.file
 
1781
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1782
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1783
 
 
1784
      # If neither matched, then we have a broken ls.  This can happen
 
1785
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1786
      # broken ls alias from the environment.  This has actually
 
1787
      # happened.  Such a system could not be considered "sane".
 
1788
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1789
alias in your environment" >&5
 
1790
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1791
alias in your environment" >&2;}
 
1792
   { (exit 1); exit 1; }; }
 
1793
   fi
 
1794
 
 
1795
   test "$2" = conftest.file
 
1796
   )
 
1797
then
 
1798
   # Ok.
 
1799
   :
 
1800
else
 
1801
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1802
Check your system clock" >&5
 
1803
echo "$as_me: error: newly created file is older than distributed files!
 
1804
Check your system clock" >&2;}
 
1805
   { (exit 1); exit 1; }; }
 
1806
fi
 
1807
echo "$as_me:$LINENO: result: yes" >&5
 
1808
echo "${ECHO_T}yes" >&6
 
1809
# expand $ac_aux_dir to an absolute path
 
1810
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1811
 
 
1812
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1813
# Use eval to expand $SHELL
 
1814
if eval "$MISSING --run true"; then
 
1815
  am_missing_run="$MISSING --run "
 
1816
else
 
1817
  am_missing_run=
 
1818
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1819
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1820
fi
 
1821
 
 
1822
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1823
  # We used to keeping the `.' as first argument, in order to
 
1824
  # allow $(mkdir_p) to be used without argument.  As in
 
1825
  #   $(mkdir_p) $(somedir)
 
1826
  # where $(somedir) is conditionally defined.  However this is wrong
 
1827
  # for two reasons:
 
1828
  #  1. if the package is installed by a user who cannot write `.'
 
1829
  #     make install will fail,
 
1830
  #  2. the above comment should most certainly read
 
1831
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1832
  #     so it does not work when $(somedir) is undefined and
 
1833
  #     $(DESTDIR) is not.
 
1834
  #  To support the latter case, we have to write
 
1835
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1836
  #  so the `.' trick is pointless.
 
1837
  mkdir_p='mkdir -p --'
 
1838
else
 
1839
  # On NextStep and OpenStep, the `mkdir' command does not
 
1840
  # recognize any option.  It will interpret all options as
 
1841
  # directories to create, and then abort because `.' already
 
1842
  # exists.
 
1843
  for d in ./-p ./--version;
 
1844
  do
 
1845
    test -d $d && rmdir $d
 
1846
  done
 
1847
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1848
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1849
    mkdir_p='$(mkinstalldirs)'
 
1850
  else
 
1851
    mkdir_p='$(install_sh) -d'
 
1852
  fi
 
1853
fi
 
1854
 
 
1855
for ac_prog in gawk mawk nawk awk
 
1856
do
 
1857
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1858
set dummy $ac_prog; ac_word=$2
 
1859
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1860
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1861
if test "${ac_cv_prog_AWK+set}" = set; then
 
1862
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1863
else
 
1864
  if test -n "$AWK"; then
 
1865
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1866
else
 
1867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1868
for as_dir in $PATH
 
1869
do
 
1870
  IFS=$as_save_IFS
 
1871
  test -z "$as_dir" && as_dir=.
 
1872
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1873
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1874
    ac_cv_prog_AWK="$ac_prog"
 
1875
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1876
    break 2
 
1877
  fi
 
1878
done
 
1879
done
 
1880
 
 
1881
fi
 
1882
fi
 
1883
AWK=$ac_cv_prog_AWK
 
1884
if test -n "$AWK"; then
 
1885
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1886
echo "${ECHO_T}$AWK" >&6
 
1887
else
 
1888
  echo "$as_me:$LINENO: result: no" >&5
 
1889
echo "${ECHO_T}no" >&6
 
1890
fi
 
1891
 
 
1892
  test -n "$AWK" && break
 
1893
done
 
1894
 
 
1895
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1896
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1897
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1898
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1899
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1900
else
 
1901
  cat >conftest.make <<\_ACEOF
 
1902
all:
 
1903
        @echo 'ac_maketemp="$(MAKE)"'
 
1904
_ACEOF
 
1905
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1906
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1907
if test -n "$ac_maketemp"; then
 
1908
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1909
else
 
1910
  eval ac_cv_prog_make_${ac_make}_set=no
 
1911
fi
 
1912
rm -f conftest.make
 
1913
fi
 
1914
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1915
  echo "$as_me:$LINENO: result: yes" >&5
 
1916
echo "${ECHO_T}yes" >&6
 
1917
  SET_MAKE=
 
1918
else
 
1919
  echo "$as_me:$LINENO: result: no" >&5
 
1920
echo "${ECHO_T}no" >&6
 
1921
  SET_MAKE="MAKE=${MAKE-make}"
 
1922
fi
 
1923
 
 
1924
rm -rf .tst 2>/dev/null
 
1925
mkdir .tst 2>/dev/null
 
1926
if test -d .tst; then
 
1927
  am__leading_dot=.
 
1928
else
 
1929
  am__leading_dot=_
 
1930
fi
 
1931
rmdir .tst 2>/dev/null
 
1932
 
 
1933
# test to see if srcdir already configured
 
1934
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1935
   test -f $srcdir/config.status; then
 
1936
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1937
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1938
   { (exit 1); exit 1; }; }
 
1939
fi
 
1940
 
 
1941
# test whether we have cygpath
 
1942
if test -z "$CYGPATH_W"; then
 
1943
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1944
    CYGPATH_W='cygpath -w'
 
1945
  else
 
1946
    CYGPATH_W=echo
 
1947
  fi
 
1948
fi
 
1949
 
 
1950
 
 
1951
# Define the identity of the package.
 
1952
 PACKAGE=potracegui
 
1953
 VERSION=1.3
 
1954
 
 
1955
 
 
1956
cat >>confdefs.h <<_ACEOF
 
1957
#define PACKAGE "$PACKAGE"
 
1958
_ACEOF
 
1959
 
 
1960
 
 
1961
cat >>confdefs.h <<_ACEOF
 
1962
#define VERSION "$VERSION"
 
1963
_ACEOF
 
1964
 
 
1965
# Some tools Automake needs.
 
1966
 
 
1967
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1968
 
 
1969
 
 
1970
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1971
 
 
1972
 
 
1973
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1974
 
 
1975
 
 
1976
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1977
 
 
1978
 
 
1979
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1980
 
 
1981
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1982
 
 
1983
# Installed binaries are usually stripped using `strip' when the user
 
1984
# run `make install-strip'.  However `strip' might not be the right
 
1985
# tool to use in cross-compilation environments, therefore Automake
 
1986
# will honor the `STRIP' environment variable to overrule this program.
 
1987
if test "$cross_compiling" != no; then
 
1988
  if test -n "$ac_tool_prefix"; then
 
1989
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1990
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1991
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1992
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1993
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1994
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1995
else
 
1996
  if test -n "$STRIP"; then
 
1997
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1998
else
 
1999
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2000
for as_dir in $PATH
 
2001
do
 
2002
  IFS=$as_save_IFS
 
2003
  test -z "$as_dir" && as_dir=.
 
2004
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2005
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2006
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2007
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2008
    break 2
 
2009
  fi
 
2010
done
 
2011
done
 
2012
 
 
2013
fi
 
2014
fi
 
2015
STRIP=$ac_cv_prog_STRIP
 
2016
if test -n "$STRIP"; then
 
2017
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
2018
echo "${ECHO_T}$STRIP" >&6
 
2019
else
 
2020
  echo "$as_me:$LINENO: result: no" >&5
 
2021
echo "${ECHO_T}no" >&6
 
2022
fi
 
2023
 
 
2024
fi
 
2025
if test -z "$ac_cv_prog_STRIP"; then
 
2026
  ac_ct_STRIP=$STRIP
 
2027
  # Extract the first word of "strip", so it can be a program name with args.
 
2028
set dummy strip; ac_word=$2
 
2029
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2030
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2031
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2032
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2033
else
 
2034
  if test -n "$ac_ct_STRIP"; then
 
2035
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2036
else
 
2037
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2038
for as_dir in $PATH
 
2039
do
 
2040
  IFS=$as_save_IFS
 
2041
  test -z "$as_dir" && as_dir=.
 
2042
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2043
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2044
    ac_cv_prog_ac_ct_STRIP="strip"
 
2045
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2046
    break 2
 
2047
  fi
 
2048
done
 
2049
done
 
2050
 
 
2051
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
2052
fi
 
2053
fi
 
2054
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2055
if test -n "$ac_ct_STRIP"; then
 
2056
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2057
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
2058
else
 
2059
  echo "$as_me:$LINENO: result: no" >&5
 
2060
echo "${ECHO_T}no" >&6
 
2061
fi
 
2062
 
 
2063
  STRIP=$ac_ct_STRIP
 
2064
else
 
2065
  STRIP="$ac_cv_prog_STRIP"
 
2066
fi
 
2067
 
 
2068
fi
 
2069
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2070
 
 
2071
# We need awk for the "check" target.  The system "awk" is bad on
 
2072
# some platforms.
 
2073
# Always define AMTAR for backward compatibility.
 
2074
 
 
2075
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2076
 
 
2077
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2078
 
 
2079
 
 
2080
 
 
2081
 
 
2082
 
 
2083
 
 
2084
  unset CDPATH
 
2085
 
 
2086
 
 
2087
 
 
2088
    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"
 
2089
    test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
 
2090
    if test -n "$KDEDIRS"; then
 
2091
       kde_save_IFS=$IFS
 
2092
       IFS=:
 
2093
       for dir in $KDEDIRS; do
 
2094
            kde_default_bindirs="$dir/bin $kde_default_bindirs "
 
2095
       done
 
2096
       IFS=$kde_save_IFS
 
2097
    fi
 
2098
 
 
2099
  if test "x$prefix" = "xNONE"; then
 
2100
 
 
2101
   echo "$as_me:$LINENO: checking for kde-config" >&5
 
2102
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6
 
2103
   if test -n "$KDECONFIG"; then
 
2104
        kde_cv_path="$KDECONFIG";
 
2105
   else
 
2106
        kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
 
2107
 
 
2108
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
2109
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2110
else
 
2111
 
 
2112
        kde_cv_path="NONE"
 
2113
        kde_save_IFS=$IFS
 
2114
        IFS=':'
 
2115
        dirs=""
 
2116
        for dir in $PATH; do
 
2117
          dirs="$dirs $dir"
 
2118
        done
 
2119
        if test -z "prepend"; then        dirs="$kde_default_bindirs $dirs"
 
2120
        else      dirs="$dirs $kde_default_bindirs"
 
2121
        fi
 
2122
        IFS=$kde_save_IFS
 
2123
 
 
2124
        for dir in $dirs; do
 
2125
          if test -x "$dir/kde-config"; then
 
2126
            if test -n ""
 
2127
            then
 
2128
              evalstr="$dir/kde-config  2>&1 "
 
2129
              if eval $evalstr; then
 
2130
                kde_cv_path="$dir/kde-config"
 
2131
                break
 
2132
              fi
 
2133
            else
 
2134
                kde_cv_path="$dir/kde-config"
 
2135
                break
 
2136
            fi
 
2137
          fi
 
2138
        done
 
2139
 
 
2140
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
2141
 
 
2142
 
 
2143
fi
 
2144
 
 
2145
 
 
2146
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
2147
 
 
2148
   fi
 
2149
 
 
2150
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
2151
      echo "$as_me:$LINENO: result: not found" >&5
 
2152
echo "${ECHO_T}not found" >&6
 
2153
 
 
2154
    { { echo "$as_me:$LINENO: error: The important program kde-config was not found!
 
2155
Please check whether you installed KDE correctly.
 
2156
" >&5
 
2157
echo "$as_me: error: The important program kde-config was not found!
 
2158
Please check whether you installed KDE correctly.
 
2159
" >&2;}
 
2160
   { (exit 1); exit 1; }; }
 
2161
 
 
2162
   else
 
2163
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
2164
echo "${ECHO_T}$kde_cv_path" >&6
 
2165
      KDECONFIG=$kde_cv_path
 
2166
 
 
2167
   fi
 
2168
 
 
2169
  else
 
2170
        kde_save_PATH="$PATH"
 
2171
    PATH="$exec_prefix/bin:$prefix/bin:$PATH"
 
2172
 
 
2173
   echo "$as_me:$LINENO: checking for kde-config" >&5
 
2174
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6
 
2175
   if test -n "$KDECONFIG"; then
 
2176
        kde_cv_path="$KDECONFIG";
 
2177
   else
 
2178
        kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
 
2179
 
 
2180
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
2181
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2182
else
 
2183
 
 
2184
        kde_cv_path="NONE"
 
2185
        kde_save_IFS=$IFS
 
2186
        IFS=':'
 
2187
        dirs=""
 
2188
        for dir in $PATH; do
 
2189
          dirs="$dirs $dir"
 
2190
        done
 
2191
        if test -z "prepend"; then        dirs="$kde_default_bindirs $dirs"
 
2192
        else      dirs="$dirs $kde_default_bindirs"
 
2193
        fi
 
2194
        IFS=$kde_save_IFS
 
2195
 
 
2196
        for dir in $dirs; do
 
2197
          if test -x "$dir/kde-config"; then
 
2198
            if test -n ""
 
2199
            then
 
2200
              evalstr="$dir/kde-config  2>&1 "
 
2201
              if eval $evalstr; then
 
2202
                kde_cv_path="$dir/kde-config"
 
2203
                break
 
2204
              fi
 
2205
            else
 
2206
                kde_cv_path="$dir/kde-config"
 
2207
                break
 
2208
            fi
 
2209
          fi
 
2210
        done
 
2211
 
 
2212
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
2213
 
 
2214
 
 
2215
fi
 
2216
 
 
2217
 
 
2218
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
2219
 
 
2220
   fi
 
2221
 
 
2222
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
2223
      echo "$as_me:$LINENO: result: not found" >&5
 
2224
echo "${ECHO_T}not found" >&6
 
2225
 
 
2226
    { { echo "$as_me:$LINENO: error: The important program kde-config was not found!
 
2227
Please check whether you installed KDE correctly.
 
2228
" >&5
 
2229
echo "$as_me: error: The important program kde-config was not found!
 
2230
Please check whether you installed KDE correctly.
 
2231
" >&2;}
 
2232
   { (exit 1); exit 1; }; }
 
2233
 
 
2234
   else
 
2235
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
2236
echo "${ECHO_T}$kde_cv_path" >&6
 
2237
      KDECONFIG=$kde_cv_path
 
2238
 
 
2239
   fi
 
2240
 
 
2241
    PATH="$kde_save_PATH"
 
2242
  fi
 
2243
 
 
2244
  kde_libs_prefix=`$KDECONFIG --prefix`
 
2245
  if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
 
2246
       { { echo "$as_me:$LINENO: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
 
2247
                    This means it has been moved since you installed it.
 
2248
                    This won't work. Please recompile kdelibs for the new prefix.
 
2249
                    " >&5
 
2250
echo "$as_me: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
 
2251
                    This means it has been moved since you installed it.
 
2252
                    This won't work. Please recompile kdelibs for the new prefix.
 
2253
                    " >&2;}
 
2254
   { (exit 1); exit 1; }; }
 
2255
  fi
 
2256
  kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
 
2257
  kde_libs_suffix=`$KDECONFIG --libsuffix`
 
2258
 
 
2259
  echo "$as_me:$LINENO: checking where to install" >&5
 
2260
echo $ECHO_N "checking where to install... $ECHO_C" >&6
 
2261
  if test "x$prefix" = "xNONE"; then
 
2262
    prefix=$kde_libs_prefix
 
2263
    echo "$as_me:$LINENO: result: $prefix (as returned by kde-config)" >&5
 
2264
echo "${ECHO_T}$prefix (as returned by kde-config)" >&6
 
2265
  else
 
2266
        given_prefix=$prefix
 
2267
    echo "$as_me:$LINENO: result: $prefix (as requested)" >&5
 
2268
echo "${ECHO_T}$prefix (as requested)" >&6
 
2269
  fi
 
2270
 
 
2271
  # And delete superfluous '/' to make compares easier
 
2272
  prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
 
2273
  exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
 
2274
  given_prefix=`echo "$given_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
 
2275
 
 
2276
 
 
2277
 
 
2278
 
 
2279
 
 
2280
 
 
2281
    # Check whether --enable-fast-perl or --disable-fast-perl was given.
 
2282
if test "${enable_fast_perl+set}" = set; then
 
2283
  enableval="$enable_fast_perl"
 
2284
  with_fast_perl=$enableval
 
2285
else
 
2286
  with_fast_perl=yes
 
2287
fi;
 
2288
 
 
2289
 
 
2290
  val=
 
2291
  if test -f $srcdir/configure.files ; then
 
2292
    val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
 
2293
  fi
 
2294
  CONF_FILES=
 
2295
  if test -n "$val" ; then
 
2296
    for i in $val ; do
 
2297
      CONF_FILES="$CONF_FILES $i"
 
2298
    done
 
2299
  fi
 
2300
 
 
2301
 
 
2302
 
 
2303
 
 
2304
          ac_config_headers="$ac_config_headers config.h"
 
2305
 
 
2306
DEPDIR="${am__leading_dot}deps"
 
2307
 
 
2308
          ac_config_commands="$ac_config_commands depfiles"
 
2309
 
 
2310
 
 
2311
am_make=${MAKE-make}
 
2312
cat > confinc << 'END'
 
2313
am__doit:
 
2314
        @echo done
 
2315
.PHONY: am__doit
 
2316
END
 
2317
# If we don't find an include directive, just comment out the code.
 
2318
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2319
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2320
am__include="#"
 
2321
am__quote=
 
2322
_am_result=none
 
2323
# First try GNU make style include.
 
2324
echo "include confinc" > confmf
 
2325
# We grep out `Entering directory' and `Leaving directory'
 
2326
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2327
# In particular we don't look at `^make:' because GNU make might
 
2328
# be invoked under some other name (usually "gmake"), in which
 
2329
# case it prints its new name instead of `make'.
 
2330
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2331
   am__include=include
 
2332
   am__quote=
 
2333
   _am_result=GNU
 
2334
fi
 
2335
# Now try BSD make style include.
 
2336
if test "$am__include" = "#"; then
 
2337
   echo '.include "confinc"' > confmf
 
2338
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2339
      am__include=.include
 
2340
      am__quote="\""
 
2341
      _am_result=BSD
 
2342
   fi
 
2343
fi
 
2344
 
 
2345
 
 
2346
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2347
echo "${ECHO_T}$_am_result" >&6
 
2348
rm -f confinc confmf
 
2349
 
 
2350
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2351
if test "${enable_dependency_tracking+set}" = set; then
 
2352
  enableval="$enable_dependency_tracking"
 
2353
 
 
2354
fi;
 
2355
if test "x$enable_dependency_tracking" != xno; then
 
2356
  am_depcomp="$ac_aux_dir/depcomp"
 
2357
  AMDEPBACKSLASH='\'
 
2358
fi
 
2359
 
 
2360
 
 
2361
if test "x$enable_dependency_tracking" != xno; then
 
2362
  AMDEP_TRUE=
 
2363
  AMDEP_FALSE='#'
 
2364
else
 
2365
  AMDEP_TRUE='#'
 
2366
  AMDEP_FALSE=
 
2367
fi
 
2368
 
 
2369
 
 
2370
 
 
2371
 
 
2372
 
 
2373
 
 
2374
  # Check whether --enable-debug or --disable-debug was given.
 
2375
if test "${enable_debug+set}" = set; then
 
2376
  enableval="$enable_debug"
 
2377
 
 
2378
    case $enableval in
 
2379
      yes)
 
2380
        kde_use_debug_code="yes"
 
2381
        kde_use_debug_define=no
 
2382
        ;;
 
2383
      full)
 
2384
        kde_use_debug_code="full"
 
2385
        kde_use_debug_define=no
 
2386
        ;;
 
2387
      *)
 
2388
        kde_use_debug_code="no"
 
2389
        kde_use_debug_define=yes
 
2390
        ;;
 
2391
    esac
 
2392
 
 
2393
else
 
2394
  kde_use_debug_code="no"
 
2395
      kde_use_debug_define=no
 
2396
 
 
2397
fi;
 
2398
 
 
2399
    # Check whether --enable-dummyoption or --disable-dummyoption was given.
 
2400
if test "${enable_dummyoption+set}" = set; then
 
2401
  enableval="$enable_dummyoption"
 
2402
 
 
2403
fi;
 
2404
 
 
2405
  # Check whether --enable-strict or --disable-strict was given.
 
2406
if test "${enable_strict+set}" = set; then
 
2407
  enableval="$enable_strict"
 
2408
 
 
2409
    if test $enableval = "no"; then
 
2410
         kde_use_strict_options="no"
 
2411
       else
 
2412
         kde_use_strict_options="yes"
 
2413
    fi
 
2414
 
 
2415
else
 
2416
  kde_use_strict_options="no"
 
2417
fi;
 
2418
 
 
2419
  # Check whether --enable-warnings or --disable-warnings was given.
 
2420
if test "${enable_warnings+set}" = set; then
 
2421
  enableval="$enable_warnings"
 
2422
 
 
2423
    if test $enableval = "no"; then
 
2424
         kde_use_warnings="no"
 
2425
       else
 
2426
         kde_use_warnings="yes"
 
2427
    fi
 
2428
 
 
2429
else
 
2430
  kde_use_warnings="yes"
 
2431
fi;
 
2432
 
 
2433
    if test "$kde_use_debug_code" != "no"; then
 
2434
    kde_use_warnings=yes
 
2435
  fi
 
2436
 
 
2437
  # Check whether --enable-profile or --disable-profile was given.
 
2438
if test "${enable_profile+set}" = set; then
 
2439
  enableval="$enable_profile"
 
2440
  kde_use_profiling=$enableval
 
2441
else
 
2442
  kde_use_profiling="no"
 
2443
 
 
2444
fi;
 
2445
 
 
2446
    CFLAGS=" $CFLAGS"
 
2447
 
 
2448
  ac_ext=c
 
2449
ac_cpp='$CPP $CPPFLAGS'
 
2450
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2451
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2452
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2453
if test -n "$ac_tool_prefix"; then
 
2454
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2455
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2456
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2457
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2458
if test "${ac_cv_prog_CC+set}" = set; then
 
2459
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2460
else
 
2461
  if test -n "$CC"; then
 
2462
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2463
else
 
2464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2465
for as_dir in $PATH
 
2466
do
 
2467
  IFS=$as_save_IFS
 
2468
  test -z "$as_dir" && as_dir=.
 
2469
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2470
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2471
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2472
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2473
    break 2
 
2474
  fi
 
2475
done
 
2476
done
 
2477
 
 
2478
fi
 
2479
fi
 
2480
CC=$ac_cv_prog_CC
 
2481
if test -n "$CC"; then
 
2482
  echo "$as_me:$LINENO: result: $CC" >&5
 
2483
echo "${ECHO_T}$CC" >&6
 
2484
else
 
2485
  echo "$as_me:$LINENO: result: no" >&5
 
2486
echo "${ECHO_T}no" >&6
 
2487
fi
 
2488
 
 
2489
fi
 
2490
if test -z "$ac_cv_prog_CC"; then
 
2491
  ac_ct_CC=$CC
 
2492
  # Extract the first word of "gcc", so it can be a program name with args.
 
2493
set dummy gcc; ac_word=$2
 
2494
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2495
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2496
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2497
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2498
else
 
2499
  if test -n "$ac_ct_CC"; then
 
2500
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2501
else
 
2502
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2503
for as_dir in $PATH
 
2504
do
 
2505
  IFS=$as_save_IFS
 
2506
  test -z "$as_dir" && as_dir=.
 
2507
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2508
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2509
    ac_cv_prog_ac_ct_CC="gcc"
 
2510
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2511
    break 2
 
2512
  fi
 
2513
done
 
2514
done
 
2515
 
 
2516
fi
 
2517
fi
 
2518
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2519
if test -n "$ac_ct_CC"; then
 
2520
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2521
echo "${ECHO_T}$ac_ct_CC" >&6
 
2522
else
 
2523
  echo "$as_me:$LINENO: result: no" >&5
 
2524
echo "${ECHO_T}no" >&6
 
2525
fi
 
2526
 
 
2527
  CC=$ac_ct_CC
 
2528
else
 
2529
  CC="$ac_cv_prog_CC"
 
2530
fi
 
2531
 
 
2532
if test -z "$CC"; then
 
2533
  if test -n "$ac_tool_prefix"; then
 
2534
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2535
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2536
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2537
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2538
if test "${ac_cv_prog_CC+set}" = set; then
 
2539
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2540
else
 
2541
  if test -n "$CC"; then
 
2542
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2543
else
 
2544
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2545
for as_dir in $PATH
 
2546
do
 
2547
  IFS=$as_save_IFS
 
2548
  test -z "$as_dir" && as_dir=.
 
2549
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2550
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2551
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2552
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2553
    break 2
 
2554
  fi
 
2555
done
 
2556
done
 
2557
 
 
2558
fi
 
2559
fi
 
2560
CC=$ac_cv_prog_CC
 
2561
if test -n "$CC"; then
 
2562
  echo "$as_me:$LINENO: result: $CC" >&5
 
2563
echo "${ECHO_T}$CC" >&6
 
2564
else
 
2565
  echo "$as_me:$LINENO: result: no" >&5
 
2566
echo "${ECHO_T}no" >&6
 
2567
fi
 
2568
 
 
2569
fi
 
2570
if test -z "$ac_cv_prog_CC"; then
 
2571
  ac_ct_CC=$CC
 
2572
  # Extract the first word of "cc", so it can be a program name with args.
 
2573
set dummy cc; ac_word=$2
 
2574
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2575
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2576
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2577
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2578
else
 
2579
  if test -n "$ac_ct_CC"; then
 
2580
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2581
else
 
2582
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2583
for as_dir in $PATH
 
2584
do
 
2585
  IFS=$as_save_IFS
 
2586
  test -z "$as_dir" && as_dir=.
 
2587
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2588
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2589
    ac_cv_prog_ac_ct_CC="cc"
 
2590
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2591
    break 2
 
2592
  fi
 
2593
done
 
2594
done
 
2595
 
 
2596
fi
 
2597
fi
 
2598
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2599
if test -n "$ac_ct_CC"; then
 
2600
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2601
echo "${ECHO_T}$ac_ct_CC" >&6
 
2602
else
 
2603
  echo "$as_me:$LINENO: result: no" >&5
 
2604
echo "${ECHO_T}no" >&6
 
2605
fi
 
2606
 
 
2607
  CC=$ac_ct_CC
 
2608
else
 
2609
  CC="$ac_cv_prog_CC"
 
2610
fi
 
2611
 
 
2612
fi
 
2613
if test -z "$CC"; then
 
2614
  # Extract the first word of "cc", so it can be a program name with args.
 
2615
set dummy cc; ac_word=$2
 
2616
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2617
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2618
if test "${ac_cv_prog_CC+set}" = set; then
 
2619
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2620
else
 
2621
  if test -n "$CC"; then
 
2622
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2623
else
 
2624
  ac_prog_rejected=no
 
2625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2626
for as_dir in $PATH
 
2627
do
 
2628
  IFS=$as_save_IFS
 
2629
  test -z "$as_dir" && as_dir=.
 
2630
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2631
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2632
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2633
       ac_prog_rejected=yes
 
2634
       continue
 
2635
     fi
 
2636
    ac_cv_prog_CC="cc"
 
2637
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2638
    break 2
 
2639
  fi
 
2640
done
 
2641
done
 
2642
 
 
2643
if test $ac_prog_rejected = yes; then
 
2644
  # We found a bogon in the path, so make sure we never use it.
 
2645
  set dummy $ac_cv_prog_CC
 
2646
  shift
 
2647
  if test $# != 0; then
 
2648
    # We chose a different compiler from the bogus one.
 
2649
    # However, it has the same basename, so the bogon will be chosen
 
2650
    # first if we set CC to just the basename; use the full file name.
 
2651
    shift
 
2652
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2653
  fi
 
2654
fi
 
2655
fi
 
2656
fi
 
2657
CC=$ac_cv_prog_CC
 
2658
if test -n "$CC"; then
 
2659
  echo "$as_me:$LINENO: result: $CC" >&5
 
2660
echo "${ECHO_T}$CC" >&6
 
2661
else
 
2662
  echo "$as_me:$LINENO: result: no" >&5
 
2663
echo "${ECHO_T}no" >&6
 
2664
fi
 
2665
 
 
2666
fi
 
2667
if test -z "$CC"; then
 
2668
  if test -n "$ac_tool_prefix"; then
 
2669
  for ac_prog in cl
 
2670
  do
 
2671
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2672
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2673
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2674
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2675
if test "${ac_cv_prog_CC+set}" = set; then
 
2676
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2677
else
 
2678
  if test -n "$CC"; then
 
2679
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2680
else
 
2681
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2682
for as_dir in $PATH
 
2683
do
 
2684
  IFS=$as_save_IFS
 
2685
  test -z "$as_dir" && as_dir=.
 
2686
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2687
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2688
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2689
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2690
    break 2
 
2691
  fi
 
2692
done
 
2693
done
 
2694
 
 
2695
fi
 
2696
fi
 
2697
CC=$ac_cv_prog_CC
 
2698
if test -n "$CC"; then
 
2699
  echo "$as_me:$LINENO: result: $CC" >&5
 
2700
echo "${ECHO_T}$CC" >&6
 
2701
else
 
2702
  echo "$as_me:$LINENO: result: no" >&5
 
2703
echo "${ECHO_T}no" >&6
 
2704
fi
 
2705
 
 
2706
    test -n "$CC" && break
 
2707
  done
 
2708
fi
 
2709
if test -z "$CC"; then
 
2710
  ac_ct_CC=$CC
 
2711
  for ac_prog in cl
 
2712
do
 
2713
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2714
set dummy $ac_prog; ac_word=$2
 
2715
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2716
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2717
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2718
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2719
else
 
2720
  if test -n "$ac_ct_CC"; then
 
2721
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2722
else
 
2723
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2724
for as_dir in $PATH
 
2725
do
 
2726
  IFS=$as_save_IFS
 
2727
  test -z "$as_dir" && as_dir=.
 
2728
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2729
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2730
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2731
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2732
    break 2
 
2733
  fi
 
2734
done
 
2735
done
 
2736
 
 
2737
fi
 
2738
fi
 
2739
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2740
if test -n "$ac_ct_CC"; then
 
2741
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2742
echo "${ECHO_T}$ac_ct_CC" >&6
 
2743
else
 
2744
  echo "$as_me:$LINENO: result: no" >&5
 
2745
echo "${ECHO_T}no" >&6
 
2746
fi
 
2747
 
 
2748
  test -n "$ac_ct_CC" && break
 
2749
done
 
2750
 
 
2751
  CC=$ac_ct_CC
 
2752
fi
 
2753
 
 
2754
fi
 
2755
 
 
2756
 
 
2757
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2758
See \`config.log' for more details." >&5
 
2759
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2760
See \`config.log' for more details." >&2;}
 
2761
   { (exit 1); exit 1; }; }
 
2762
 
 
2763
# Provide some information about the compiler.
 
2764
echo "$as_me:$LINENO:" \
 
2765
     "checking for C compiler version" >&5
 
2766
ac_compiler=`set X $ac_compile; echo $2`
 
2767
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2768
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2769
  ac_status=$?
 
2770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2771
  (exit $ac_status); }
 
2772
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2773
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2774
  ac_status=$?
 
2775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2776
  (exit $ac_status); }
 
2777
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2778
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2779
  ac_status=$?
 
2780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2781
  (exit $ac_status); }
 
2782
 
 
2783
cat >conftest.$ac_ext <<_ACEOF
 
2784
/* confdefs.h.  */
 
2785
_ACEOF
 
2786
cat confdefs.h >>conftest.$ac_ext
 
2787
cat >>conftest.$ac_ext <<_ACEOF
 
2788
/* end confdefs.h.  */
 
2789
 
 
2790
int
 
2791
main ()
 
2792
{
 
2793
 
 
2794
  ;
 
2795
  return 0;
 
2796
}
 
2797
_ACEOF
 
2798
ac_clean_files_save=$ac_clean_files
 
2799
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2800
# Try to create an executable without -o first, disregard a.out.
 
2801
# It will help us diagnose broken compilers, and finding out an intuition
 
2802
# of exeext.
 
2803
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2804
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2805
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2806
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2807
  (eval $ac_link_default) 2>&5
 
2808
  ac_status=$?
 
2809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2810
  (exit $ac_status); }; then
 
2811
  # Find the output, starting from the most likely.  This scheme is
 
2812
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2813
# resort.
 
2814
 
 
2815
# Be careful to initialize this variable, since it used to be cached.
 
2816
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2817
ac_cv_exeext=
 
2818
# b.out is created by i960 compilers.
 
2819
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2820
do
 
2821
  test -f "$ac_file" || continue
 
2822
  case $ac_file in
 
2823
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2824
        ;;
 
2825
    conftest.$ac_ext )
 
2826
        # This is the source file.
 
2827
        ;;
 
2828
    [ab].out )
 
2829
        # We found the default executable, but exeext='' is most
 
2830
        # certainly right.
 
2831
        break;;
 
2832
    *.* )
 
2833
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2834
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2835
        # but it would be cool to find out if it's true.  Does anybody
 
2836
        # maintain Libtool? --akim.
 
2837
        export ac_cv_exeext
 
2838
        break;;
 
2839
    * )
 
2840
        break;;
 
2841
  esac
 
2842
done
 
2843
else
 
2844
  echo "$as_me: failed program was:" >&5
 
2845
sed 's/^/| /' conftest.$ac_ext >&5
 
2846
 
 
2847
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2848
See \`config.log' for more details." >&5
 
2849
echo "$as_me: error: C compiler cannot create executables
 
2850
See \`config.log' for more details." >&2;}
 
2851
   { (exit 77); exit 77; }; }
 
2852
fi
 
2853
 
 
2854
ac_exeext=$ac_cv_exeext
 
2855
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2856
echo "${ECHO_T}$ac_file" >&6
 
2857
 
 
2858
# Check the compiler produces executables we can run.  If not, either
 
2859
# the compiler is broken, or we cross compile.
 
2860
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2861
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2862
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2863
# If not cross compiling, check that we can run a simple program.
 
2864
if test "$cross_compiling" != yes; then
 
2865
  if { ac_try='./$ac_file'
 
2866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2867
  (eval $ac_try) 2>&5
 
2868
  ac_status=$?
 
2869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2870
  (exit $ac_status); }; }; then
 
2871
    cross_compiling=no
 
2872
  else
 
2873
    if test "$cross_compiling" = maybe; then
 
2874
        cross_compiling=yes
 
2875
    else
 
2876
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2877
If you meant to cross compile, use \`--host'.
 
2878
See \`config.log' for more details." >&5
 
2879
echo "$as_me: error: cannot run C compiled programs.
 
2880
If you meant to cross compile, use \`--host'.
 
2881
See \`config.log' for more details." >&2;}
 
2882
   { (exit 1); exit 1; }; }
 
2883
    fi
 
2884
  fi
 
2885
fi
 
2886
echo "$as_me:$LINENO: result: yes" >&5
 
2887
echo "${ECHO_T}yes" >&6
 
2888
 
 
2889
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2890
ac_clean_files=$ac_clean_files_save
 
2891
# Check the compiler produces executables we can run.  If not, either
 
2892
# the compiler is broken, or we cross compile.
 
2893
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2894
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2895
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2896
echo "${ECHO_T}$cross_compiling" >&6
 
2897
 
 
2898
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2899
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2900
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2901
  (eval $ac_link) 2>&5
 
2902
  ac_status=$?
 
2903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2904
  (exit $ac_status); }; then
 
2905
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2906
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2907
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2908
# `rm'.
 
2909
for ac_file in conftest.exe conftest conftest.*; do
 
2910
  test -f "$ac_file" || continue
 
2911
  case $ac_file in
 
2912
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2913
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2914
          export ac_cv_exeext
 
2915
          break;;
 
2916
    * ) break;;
 
2917
  esac
 
2918
done
 
2919
else
 
2920
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2921
See \`config.log' for more details." >&5
 
2922
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2923
See \`config.log' for more details." >&2;}
 
2924
   { (exit 1); exit 1; }; }
 
2925
fi
 
2926
 
 
2927
rm -f conftest$ac_cv_exeext
 
2928
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2929
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2930
 
 
2931
rm -f conftest.$ac_ext
 
2932
EXEEXT=$ac_cv_exeext
 
2933
ac_exeext=$EXEEXT
 
2934
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2935
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2936
if test "${ac_cv_objext+set}" = set; then
 
2937
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2938
else
 
2939
  cat >conftest.$ac_ext <<_ACEOF
 
2940
/* confdefs.h.  */
 
2941
_ACEOF
 
2942
cat confdefs.h >>conftest.$ac_ext
 
2943
cat >>conftest.$ac_ext <<_ACEOF
 
2944
/* end confdefs.h.  */
 
2945
 
 
2946
int
 
2947
main ()
 
2948
{
 
2949
 
 
2950
  ;
 
2951
  return 0;
 
2952
}
 
2953
_ACEOF
 
2954
rm -f conftest.o conftest.obj
 
2955
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2956
  (eval $ac_compile) 2>&5
 
2957
  ac_status=$?
 
2958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2959
  (exit $ac_status); }; then
 
2960
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2961
  case $ac_file in
 
2962
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2963
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2964
       break;;
 
2965
  esac
 
2966
done
 
2967
else
 
2968
  echo "$as_me: failed program was:" >&5
 
2969
sed 's/^/| /' conftest.$ac_ext >&5
 
2970
 
 
2971
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2972
See \`config.log' for more details." >&5
 
2973
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2974
See \`config.log' for more details." >&2;}
 
2975
   { (exit 1); exit 1; }; }
 
2976
fi
 
2977
 
 
2978
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2979
fi
 
2980
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2981
echo "${ECHO_T}$ac_cv_objext" >&6
 
2982
OBJEXT=$ac_cv_objext
 
2983
ac_objext=$OBJEXT
 
2984
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2985
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2986
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2988
else
 
2989
  cat >conftest.$ac_ext <<_ACEOF
 
2990
/* confdefs.h.  */
 
2991
_ACEOF
 
2992
cat confdefs.h >>conftest.$ac_ext
 
2993
cat >>conftest.$ac_ext <<_ACEOF
 
2994
/* end confdefs.h.  */
 
2995
 
 
2996
int
 
2997
main ()
 
2998
{
 
2999
#ifndef __GNUC__
 
3000
       choke me
 
3001
#endif
 
3002
 
 
3003
  ;
 
3004
  return 0;
 
3005
}
 
3006
_ACEOF
 
3007
rm -f conftest.$ac_objext
 
3008
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3009
  (eval $ac_compile) 2>conftest.er1
 
3010
  ac_status=$?
 
3011
  grep -v '^ *+' conftest.er1 >conftest.err
 
3012
  rm -f conftest.er1
 
3013
  cat conftest.err >&5
 
3014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3015
  (exit $ac_status); } &&
 
3016
         { ac_try='test -z "$ac_c_werror_flag"
 
3017
                         || test ! -s conftest.err'
 
3018
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3019
  (eval $ac_try) 2>&5
 
3020
  ac_status=$?
 
3021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3022
  (exit $ac_status); }; } &&
 
3023
         { ac_try='test -s conftest.$ac_objext'
 
3024
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3025
  (eval $ac_try) 2>&5
 
3026
  ac_status=$?
 
3027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3028
  (exit $ac_status); }; }; then
 
3029
  ac_compiler_gnu=yes
 
3030
else
 
3031
  echo "$as_me: failed program was:" >&5
 
3032
sed 's/^/| /' conftest.$ac_ext >&5
 
3033
 
 
3034
ac_compiler_gnu=no
 
3035
fi
 
3036
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3037
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3038
 
 
3039
fi
 
3040
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3041
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3042
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3043
ac_test_CFLAGS=${CFLAGS+set}
 
3044
ac_save_CFLAGS=$CFLAGS
 
3045
CFLAGS="-g"
 
3046
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3047
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3048
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3049
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3050
else
 
3051
  cat >conftest.$ac_ext <<_ACEOF
 
3052
/* confdefs.h.  */
 
3053
_ACEOF
 
3054
cat confdefs.h >>conftest.$ac_ext
 
3055
cat >>conftest.$ac_ext <<_ACEOF
 
3056
/* end confdefs.h.  */
 
3057
 
 
3058
int
 
3059
main ()
 
3060
{
 
3061
 
 
3062
  ;
 
3063
  return 0;
 
3064
}
 
3065
_ACEOF
 
3066
rm -f conftest.$ac_objext
 
3067
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3068
  (eval $ac_compile) 2>conftest.er1
 
3069
  ac_status=$?
 
3070
  grep -v '^ *+' conftest.er1 >conftest.err
 
3071
  rm -f conftest.er1
 
3072
  cat conftest.err >&5
 
3073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3074
  (exit $ac_status); } &&
 
3075
         { ac_try='test -z "$ac_c_werror_flag"
 
3076
                         || test ! -s conftest.err'
 
3077
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3078
  (eval $ac_try) 2>&5
 
3079
  ac_status=$?
 
3080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3081
  (exit $ac_status); }; } &&
 
3082
         { ac_try='test -s conftest.$ac_objext'
 
3083
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3084
  (eval $ac_try) 2>&5
 
3085
  ac_status=$?
 
3086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3087
  (exit $ac_status); }; }; then
 
3088
  ac_cv_prog_cc_g=yes
 
3089
else
 
3090
  echo "$as_me: failed program was:" >&5
 
3091
sed 's/^/| /' conftest.$ac_ext >&5
 
3092
 
 
3093
ac_cv_prog_cc_g=no
 
3094
fi
 
3095
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3096
fi
 
3097
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3098
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3099
if test "$ac_test_CFLAGS" = set; then
 
3100
  CFLAGS=$ac_save_CFLAGS
 
3101
elif test $ac_cv_prog_cc_g = yes; then
 
3102
  if test "$GCC" = yes; then
 
3103
    CFLAGS="-g -O2"
 
3104
  else
 
3105
    CFLAGS="-g"
 
3106
  fi
 
3107
else
 
3108
  if test "$GCC" = yes; then
 
3109
    CFLAGS="-O2"
 
3110
  else
 
3111
    CFLAGS=
 
3112
  fi
 
3113
fi
 
3114
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
3115
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
3116
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3117
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3118
else
 
3119
  ac_cv_prog_cc_stdc=no
 
3120
ac_save_CC=$CC
 
3121
cat >conftest.$ac_ext <<_ACEOF
 
3122
/* confdefs.h.  */
 
3123
_ACEOF
 
3124
cat confdefs.h >>conftest.$ac_ext
 
3125
cat >>conftest.$ac_ext <<_ACEOF
 
3126
/* end confdefs.h.  */
 
3127
#include <stdarg.h>
 
3128
#include <stdio.h>
 
3129
#include <sys/types.h>
 
3130
#include <sys/stat.h>
 
3131
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3132
struct buf { int x; };
 
3133
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3134
static char *e (p, i)
 
3135
     char **p;
 
3136
     int i;
 
3137
{
 
3138
  return p[i];
 
3139
}
 
3140
static char *f (char * (*g) (char **, int), char **p, ...)
 
3141
{
 
3142
  char *s;
 
3143
  va_list v;
 
3144
  va_start (v,p);
 
3145
  s = g (p, va_arg (v,int));
 
3146
  va_end (v);
 
3147
  return s;
 
3148
}
 
3149
 
 
3150
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3151
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3152
   These don't provoke an error unfortunately, instead are silently treated
 
3153
   as 'x'.  The following induces an error, until -std1 is added to get
 
3154
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3155
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3156
   that's true only with -std1.  */
 
3157
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3158
 
 
3159
int test (int i, double x);
 
3160
struct s1 {int (*f) (int a);};
 
3161
struct s2 {int (*f) (double a);};
 
3162
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3163
int argc;
 
3164
char **argv;
 
3165
int
 
3166
main ()
 
3167
{
 
3168
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3169
  ;
 
3170
  return 0;
 
3171
}
 
3172
_ACEOF
 
3173
# Don't try gcc -ansi; that turns off useful extensions and
 
3174
# breaks some systems' header files.
 
3175
# AIX                   -qlanglvl=ansi
 
3176
# Ultrix and OSF/1      -std1
 
3177
# HP-UX 10.20 and later -Ae
 
3178
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
3179
# SVR4                  -Xc -D__EXTENSIONS__
 
3180
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3181
do
 
3182
  CC="$ac_save_CC $ac_arg"
 
3183
  rm -f conftest.$ac_objext
 
3184
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3185
  (eval $ac_compile) 2>conftest.er1
 
3186
  ac_status=$?
 
3187
  grep -v '^ *+' conftest.er1 >conftest.err
 
3188
  rm -f conftest.er1
 
3189
  cat conftest.err >&5
 
3190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3191
  (exit $ac_status); } &&
 
3192
         { ac_try='test -z "$ac_c_werror_flag"
 
3193
                         || test ! -s conftest.err'
 
3194
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3195
  (eval $ac_try) 2>&5
 
3196
  ac_status=$?
 
3197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3198
  (exit $ac_status); }; } &&
 
3199
         { ac_try='test -s conftest.$ac_objext'
 
3200
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3201
  (eval $ac_try) 2>&5
 
3202
  ac_status=$?
 
3203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3204
  (exit $ac_status); }; }; then
 
3205
  ac_cv_prog_cc_stdc=$ac_arg
 
3206
break
 
3207
else
 
3208
  echo "$as_me: failed program was:" >&5
 
3209
sed 's/^/| /' conftest.$ac_ext >&5
 
3210
 
 
3211
fi
 
3212
rm -f conftest.err conftest.$ac_objext
 
3213
done
 
3214
rm -f conftest.$ac_ext conftest.$ac_objext
 
3215
CC=$ac_save_CC
 
3216
 
 
3217
fi
 
3218
 
 
3219
case "x$ac_cv_prog_cc_stdc" in
 
3220
  x|xno)
 
3221
    echo "$as_me:$LINENO: result: none needed" >&5
 
3222
echo "${ECHO_T}none needed" >&6 ;;
 
3223
  *)
 
3224
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
3225
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
3226
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3227
esac
 
3228
 
 
3229
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
3230
# in C++ we need to declare it.  In case someone uses the same compiler
 
3231
# for both compiling C and C++ we need to have the C++ compiler decide
 
3232
# the declaration of exit, since it's the most demanding environment.
 
3233
cat >conftest.$ac_ext <<_ACEOF
 
3234
#ifndef __cplusplus
 
3235
  choke me
 
3236
#endif
 
3237
_ACEOF
 
3238
rm -f conftest.$ac_objext
 
3239
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3240
  (eval $ac_compile) 2>conftest.er1
 
3241
  ac_status=$?
 
3242
  grep -v '^ *+' conftest.er1 >conftest.err
 
3243
  rm -f conftest.er1
 
3244
  cat conftest.err >&5
 
3245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3246
  (exit $ac_status); } &&
 
3247
         { ac_try='test -z "$ac_c_werror_flag"
 
3248
                         || test ! -s conftest.err'
 
3249
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3250
  (eval $ac_try) 2>&5
 
3251
  ac_status=$?
 
3252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3253
  (exit $ac_status); }; } &&
 
3254
         { ac_try='test -s conftest.$ac_objext'
 
3255
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3256
  (eval $ac_try) 2>&5
 
3257
  ac_status=$?
 
3258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3259
  (exit $ac_status); }; }; then
 
3260
  for ac_declaration in \
 
3261
   '' \
 
3262
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3263
   'extern "C" void std::exit (int); using std::exit;' \
 
3264
   'extern "C" void exit (int) throw ();' \
 
3265
   'extern "C" void exit (int);' \
 
3266
   'void exit (int);'
 
3267
do
 
3268
  cat >conftest.$ac_ext <<_ACEOF
 
3269
/* confdefs.h.  */
 
3270
_ACEOF
 
3271
cat confdefs.h >>conftest.$ac_ext
 
3272
cat >>conftest.$ac_ext <<_ACEOF
 
3273
/* end confdefs.h.  */
 
3274
$ac_declaration
 
3275
#include <stdlib.h>
 
3276
int
 
3277
main ()
 
3278
{
 
3279
exit (42);
 
3280
  ;
 
3281
  return 0;
 
3282
}
 
3283
_ACEOF
 
3284
rm -f conftest.$ac_objext
 
3285
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3286
  (eval $ac_compile) 2>conftest.er1
 
3287
  ac_status=$?
 
3288
  grep -v '^ *+' conftest.er1 >conftest.err
 
3289
  rm -f conftest.er1
 
3290
  cat conftest.err >&5
 
3291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3292
  (exit $ac_status); } &&
 
3293
         { ac_try='test -z "$ac_c_werror_flag"
 
3294
                         || test ! -s conftest.err'
 
3295
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3296
  (eval $ac_try) 2>&5
 
3297
  ac_status=$?
 
3298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3299
  (exit $ac_status); }; } &&
 
3300
         { ac_try='test -s conftest.$ac_objext'
 
3301
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3302
  (eval $ac_try) 2>&5
 
3303
  ac_status=$?
 
3304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3305
  (exit $ac_status); }; }; then
 
3306
  :
 
3307
else
 
3308
  echo "$as_me: failed program was:" >&5
 
3309
sed 's/^/| /' conftest.$ac_ext >&5
 
3310
 
 
3311
continue
 
3312
fi
 
3313
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3314
  cat >conftest.$ac_ext <<_ACEOF
 
3315
/* confdefs.h.  */
 
3316
_ACEOF
 
3317
cat confdefs.h >>conftest.$ac_ext
 
3318
cat >>conftest.$ac_ext <<_ACEOF
 
3319
/* end confdefs.h.  */
 
3320
$ac_declaration
 
3321
int
 
3322
main ()
 
3323
{
 
3324
exit (42);
 
3325
  ;
 
3326
  return 0;
 
3327
}
 
3328
_ACEOF
 
3329
rm -f conftest.$ac_objext
 
3330
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3331
  (eval $ac_compile) 2>conftest.er1
 
3332
  ac_status=$?
 
3333
  grep -v '^ *+' conftest.er1 >conftest.err
 
3334
  rm -f conftest.er1
 
3335
  cat conftest.err >&5
 
3336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3337
  (exit $ac_status); } &&
 
3338
         { ac_try='test -z "$ac_c_werror_flag"
 
3339
                         || test ! -s conftest.err'
 
3340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3341
  (eval $ac_try) 2>&5
 
3342
  ac_status=$?
 
3343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3344
  (exit $ac_status); }; } &&
 
3345
         { ac_try='test -s conftest.$ac_objext'
 
3346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3347
  (eval $ac_try) 2>&5
 
3348
  ac_status=$?
 
3349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3350
  (exit $ac_status); }; }; then
 
3351
  break
 
3352
else
 
3353
  echo "$as_me: failed program was:" >&5
 
3354
sed 's/^/| /' conftest.$ac_ext >&5
 
3355
 
 
3356
fi
 
3357
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3358
done
 
3359
rm -f conftest*
 
3360
if test -n "$ac_declaration"; then
 
3361
  echo '#ifdef __cplusplus' >>confdefs.h
 
3362
  echo $ac_declaration      >>confdefs.h
 
3363
  echo '#endif'             >>confdefs.h
 
3364
fi
 
3365
 
 
3366
else
 
3367
  echo "$as_me: failed program was:" >&5
 
3368
sed 's/^/| /' conftest.$ac_ext >&5
 
3369
 
 
3370
fi
 
3371
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3372
ac_ext=c
 
3373
ac_cpp='$CPP $CPPFLAGS'
 
3374
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3375
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3376
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3377
 
 
3378
depcc="$CC"   am_compiler_list=
 
3379
 
 
3380
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3381
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3382
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3383
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3384
else
 
3385
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3386
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3387
  # making bogus files that we don't know about and never remove.  For
 
3388
  # instance it was reported that on HP-UX the gcc test will end up
 
3389
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3390
  # in D'.
 
3391
  mkdir conftest.dir
 
3392
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3393
  # using a relative directory.
 
3394
  cp "$am_depcomp" conftest.dir
 
3395
  cd conftest.dir
 
3396
  # We will build objects and dependencies in a subdirectory because
 
3397
  # it helps to detect inapplicable dependency modes.  For instance
 
3398
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3399
  # side effect of compilation, but ICC will put the dependencies in
 
3400
  # the current directory while Tru64 will put them in the object
 
3401
  # directory.
 
3402
  mkdir sub
 
3403
 
 
3404
  am_cv_CC_dependencies_compiler_type=none
 
3405
  if test "$am_compiler_list" = ""; then
 
3406
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3407
  fi
 
3408
  for depmode in $am_compiler_list; do
 
3409
    # Setup a source with many dependencies, because some compilers
 
3410
    # like to wrap large dependency lists on column 80 (with \), and
 
3411
    # we should not choose a depcomp mode which is confused by this.
 
3412
    #
 
3413
    # We need to recreate these files for each test, as the compiler may
 
3414
    # overwrite some of them when testing with obscure command lines.
 
3415
    # This happens at least with the AIX C compiler.
 
3416
    : > sub/conftest.c
 
3417
    for i in 1 2 3 4 5 6; do
 
3418
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3419
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3420
      # Solaris 8's {/usr,}/bin/sh.
 
3421
      touch sub/conftst$i.h
 
3422
    done
 
3423
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3424
 
 
3425
    case $depmode in
 
3426
    nosideeffect)
 
3427
      # after this tag, mechanisms are not by side-effect, so they'll
 
3428
      # only be used when explicitly requested
 
3429
      if test "x$enable_dependency_tracking" = xyes; then
 
3430
        continue
 
3431
      else
 
3432
        break
 
3433
      fi
 
3434
      ;;
 
3435
    none) break ;;
 
3436
    esac
 
3437
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3438
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3439
    # handle `-M -o', and we need to detect this.
 
3440
    if depmode=$depmode \
 
3441
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3442
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3443
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3444
         >/dev/null 2>conftest.err &&
 
3445
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3446
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3447
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3448
      # icc doesn't choke on unknown options, it will just issue warnings
 
3449
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3450
      # that says an option was ignored or not supported.
 
3451
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3452
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3453
      # The diagnosis changed in icc 8.0:
 
3454
      #   icc: Command line remark: option '-MP' not supported
 
3455
      if (grep 'ignoring option' conftest.err ||
 
3456
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3457
        am_cv_CC_dependencies_compiler_type=$depmode
 
3458
        break
 
3459
      fi
 
3460
    fi
 
3461
  done
 
3462
 
 
3463
  cd ..
 
3464
  rm -rf conftest.dir
 
3465
else
 
3466
  am_cv_CC_dependencies_compiler_type=none
 
3467
fi
 
3468
 
 
3469
fi
 
3470
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3471
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3472
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3473
 
 
3474
 
 
3475
 
 
3476
if
 
3477
  test "x$enable_dependency_tracking" != xno \
 
3478
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3479
  am__fastdepCC_TRUE=
 
3480
  am__fastdepCC_FALSE='#'
 
3481
else
 
3482
  am__fastdepCC_TRUE='#'
 
3483
  am__fastdepCC_FALSE=
 
3484
fi
 
3485
 
 
3486
 
 
3487
 
 
3488
  ac_ext=c
 
3489
ac_cpp='$CPP $CPPFLAGS'
 
3490
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3491
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3492
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3493
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3494
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3495
# On Suns, sometimes $CPP names a directory.
 
3496
if test -n "$CPP" && test -d "$CPP"; then
 
3497
  CPP=
 
3498
fi
 
3499
if test -z "$CPP"; then
 
3500
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3501
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3502
else
 
3503
      # Double quotes because CPP needs to be expanded
 
3504
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3505
    do
 
3506
      ac_preproc_ok=false
 
3507
for ac_c_preproc_warn_flag in '' yes
 
3508
do
 
3509
  # Use a header file that comes with gcc, so configuring glibc
 
3510
  # with a fresh cross-compiler works.
 
3511
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3512
  # <limits.h> exists even on freestanding compilers.
 
3513
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3514
  # not just through cpp. "Syntax error" is here to catch this case.
 
3515
  cat >conftest.$ac_ext <<_ACEOF
 
3516
/* confdefs.h.  */
 
3517
_ACEOF
 
3518
cat confdefs.h >>conftest.$ac_ext
 
3519
cat >>conftest.$ac_ext <<_ACEOF
 
3520
/* end confdefs.h.  */
 
3521
#ifdef __STDC__
 
3522
# include <limits.h>
 
3523
#else
 
3524
# include <assert.h>
 
3525
#endif
 
3526
                     Syntax error
 
3527
_ACEOF
 
3528
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3529
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3530
  ac_status=$?
 
3531
  grep -v '^ *+' conftest.er1 >conftest.err
 
3532
  rm -f conftest.er1
 
3533
  cat conftest.err >&5
 
3534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3535
  (exit $ac_status); } >/dev/null; then
 
3536
  if test -s conftest.err; then
 
3537
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3538
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3539
  else
 
3540
    ac_cpp_err=
 
3541
  fi
 
3542
else
 
3543
  ac_cpp_err=yes
 
3544
fi
 
3545
if test -z "$ac_cpp_err"; then
 
3546
  :
 
3547
else
 
3548
  echo "$as_me: failed program was:" >&5
 
3549
sed 's/^/| /' conftest.$ac_ext >&5
 
3550
 
 
3551
  # Broken: fails on valid input.
 
3552
continue
 
3553
fi
 
3554
rm -f conftest.err conftest.$ac_ext
 
3555
 
 
3556
  # OK, works on sane cases.  Now check whether non-existent headers
 
3557
  # can be detected and how.
 
3558
  cat >conftest.$ac_ext <<_ACEOF
 
3559
/* confdefs.h.  */
 
3560
_ACEOF
 
3561
cat confdefs.h >>conftest.$ac_ext
 
3562
cat >>conftest.$ac_ext <<_ACEOF
 
3563
/* end confdefs.h.  */
 
3564
#include <ac_nonexistent.h>
 
3565
_ACEOF
 
3566
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3567
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3568
  ac_status=$?
 
3569
  grep -v '^ *+' conftest.er1 >conftest.err
 
3570
  rm -f conftest.er1
 
3571
  cat conftest.err >&5
 
3572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3573
  (exit $ac_status); } >/dev/null; then
 
3574
  if test -s conftest.err; then
 
3575
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3576
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3577
  else
 
3578
    ac_cpp_err=
 
3579
  fi
 
3580
else
 
3581
  ac_cpp_err=yes
 
3582
fi
 
3583
if test -z "$ac_cpp_err"; then
 
3584
  # Broken: success on invalid input.
 
3585
continue
 
3586
else
 
3587
  echo "$as_me: failed program was:" >&5
 
3588
sed 's/^/| /' conftest.$ac_ext >&5
 
3589
 
 
3590
  # Passes both tests.
 
3591
ac_preproc_ok=:
 
3592
break
 
3593
fi
 
3594
rm -f conftest.err conftest.$ac_ext
 
3595
 
 
3596
done
 
3597
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3598
rm -f conftest.err conftest.$ac_ext
 
3599
if $ac_preproc_ok; then
 
3600
  break
 
3601
fi
 
3602
 
 
3603
    done
 
3604
    ac_cv_prog_CPP=$CPP
 
3605
 
 
3606
fi
 
3607
  CPP=$ac_cv_prog_CPP
 
3608
else
 
3609
  ac_cv_prog_CPP=$CPP
 
3610
fi
 
3611
echo "$as_me:$LINENO: result: $CPP" >&5
 
3612
echo "${ECHO_T}$CPP" >&6
 
3613
ac_preproc_ok=false
 
3614
for ac_c_preproc_warn_flag in '' yes
 
3615
do
 
3616
  # Use a header file that comes with gcc, so configuring glibc
 
3617
  # with a fresh cross-compiler works.
 
3618
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3619
  # <limits.h> exists even on freestanding compilers.
 
3620
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3621
  # not just through cpp. "Syntax error" is here to catch this case.
 
3622
  cat >conftest.$ac_ext <<_ACEOF
 
3623
/* confdefs.h.  */
 
3624
_ACEOF
 
3625
cat confdefs.h >>conftest.$ac_ext
 
3626
cat >>conftest.$ac_ext <<_ACEOF
 
3627
/* end confdefs.h.  */
 
3628
#ifdef __STDC__
 
3629
# include <limits.h>
 
3630
#else
 
3631
# include <assert.h>
 
3632
#endif
 
3633
                     Syntax error
 
3634
_ACEOF
 
3635
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3636
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3637
  ac_status=$?
 
3638
  grep -v '^ *+' conftest.er1 >conftest.err
 
3639
  rm -f conftest.er1
 
3640
  cat conftest.err >&5
 
3641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3642
  (exit $ac_status); } >/dev/null; then
 
3643
  if test -s conftest.err; then
 
3644
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3645
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3646
  else
 
3647
    ac_cpp_err=
 
3648
  fi
 
3649
else
 
3650
  ac_cpp_err=yes
 
3651
fi
 
3652
if test -z "$ac_cpp_err"; then
 
3653
  :
 
3654
else
 
3655
  echo "$as_me: failed program was:" >&5
 
3656
sed 's/^/| /' conftest.$ac_ext >&5
 
3657
 
 
3658
  # Broken: fails on valid input.
 
3659
continue
 
3660
fi
 
3661
rm -f conftest.err conftest.$ac_ext
 
3662
 
 
3663
  # OK, works on sane cases.  Now check whether non-existent headers
 
3664
  # can be detected and how.
 
3665
  cat >conftest.$ac_ext <<_ACEOF
 
3666
/* confdefs.h.  */
 
3667
_ACEOF
 
3668
cat confdefs.h >>conftest.$ac_ext
 
3669
cat >>conftest.$ac_ext <<_ACEOF
 
3670
/* end confdefs.h.  */
 
3671
#include <ac_nonexistent.h>
 
3672
_ACEOF
 
3673
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3674
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3675
  ac_status=$?
 
3676
  grep -v '^ *+' conftest.er1 >conftest.err
 
3677
  rm -f conftest.er1
 
3678
  cat conftest.err >&5
 
3679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3680
  (exit $ac_status); } >/dev/null; then
 
3681
  if test -s conftest.err; then
 
3682
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3683
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3684
  else
 
3685
    ac_cpp_err=
 
3686
  fi
 
3687
else
 
3688
  ac_cpp_err=yes
 
3689
fi
 
3690
if test -z "$ac_cpp_err"; then
 
3691
  # Broken: success on invalid input.
 
3692
continue
 
3693
else
 
3694
  echo "$as_me: failed program was:" >&5
 
3695
sed 's/^/| /' conftest.$ac_ext >&5
 
3696
 
 
3697
  # Passes both tests.
 
3698
ac_preproc_ok=:
 
3699
break
 
3700
fi
 
3701
rm -f conftest.err conftest.$ac_ext
 
3702
 
 
3703
done
 
3704
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3705
rm -f conftest.err conftest.$ac_ext
 
3706
if $ac_preproc_ok; then
 
3707
  :
 
3708
else
 
3709
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3710
See \`config.log' for more details." >&5
 
3711
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3712
See \`config.log' for more details." >&2;}
 
3713
   { (exit 1); exit 1; }; }
 
3714
fi
 
3715
 
 
3716
ac_ext=c
 
3717
ac_cpp='$CPP $CPPFLAGS'
 
3718
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3719
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3720
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3721
 
 
3722
 
 
3723
  if test "$GCC" = "yes"; then
 
3724
    if test "$kde_use_debug_code" != "no"; then
 
3725
      if test $kde_use_debug_code = "full"; then
 
3726
        CFLAGS="-g3 -fno-inline $CFLAGS"
 
3727
      else
 
3728
        CFLAGS="-g -O2 $CFLAGS"
 
3729
      fi
 
3730
    else
 
3731
      CFLAGS="-O2 $CFLAGS"
 
3732
    fi
 
3733
  fi
 
3734
 
 
3735
  if test "$kde_use_debug_define" = "yes"; then
 
3736
    CFLAGS="-DNDEBUG $CFLAGS"
 
3737
  fi
 
3738
 
 
3739
 
 
3740
  case "$host" in
 
3741
  *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
 
3742
  *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
 
3743
  esac
 
3744
 
 
3745
  if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
 
3746
     LDFLAGS=""
 
3747
  fi
 
3748
 
 
3749
  CXXFLAGS=" $CXXFLAGS"
 
3750
 
 
3751
  ac_ext=cc
 
3752
ac_cpp='$CXXCPP $CPPFLAGS'
 
3753
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3754
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3755
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3756
if test -n "$ac_tool_prefix"; then
 
3757
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3758
  do
 
3759
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3760
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3761
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3762
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3763
if test "${ac_cv_prog_CXX+set}" = set; then
 
3764
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3765
else
 
3766
  if test -n "$CXX"; then
 
3767
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
3768
else
 
3769
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3770
for as_dir in $PATH
 
3771
do
 
3772
  IFS=$as_save_IFS
 
3773
  test -z "$as_dir" && as_dir=.
 
3774
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3775
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3776
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
3777
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3778
    break 2
 
3779
  fi
 
3780
done
 
3781
done
 
3782
 
 
3783
fi
 
3784
fi
 
3785
CXX=$ac_cv_prog_CXX
 
3786
if test -n "$CXX"; then
 
3787
  echo "$as_me:$LINENO: result: $CXX" >&5
 
3788
echo "${ECHO_T}$CXX" >&6
 
3789
else
 
3790
  echo "$as_me:$LINENO: result: no" >&5
 
3791
echo "${ECHO_T}no" >&6
 
3792
fi
 
3793
 
 
3794
    test -n "$CXX" && break
 
3795
  done
 
3796
fi
 
3797
if test -z "$CXX"; then
 
3798
  ac_ct_CXX=$CXX
 
3799
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3800
do
 
3801
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3802
set dummy $ac_prog; ac_word=$2
 
3803
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3804
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3805
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
3806
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3807
else
 
3808
  if test -n "$ac_ct_CXX"; then
 
3809
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
3810
else
 
3811
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3812
for as_dir in $PATH
 
3813
do
 
3814
  IFS=$as_save_IFS
 
3815
  test -z "$as_dir" && as_dir=.
 
3816
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3817
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3818
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
3819
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3820
    break 2
 
3821
  fi
 
3822
done
 
3823
done
 
3824
 
 
3825
fi
 
3826
fi
 
3827
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
3828
if test -n "$ac_ct_CXX"; then
 
3829
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
3830
echo "${ECHO_T}$ac_ct_CXX" >&6
 
3831
else
 
3832
  echo "$as_me:$LINENO: result: no" >&5
 
3833
echo "${ECHO_T}no" >&6
 
3834
fi
 
3835
 
 
3836
  test -n "$ac_ct_CXX" && break
 
3837
done
 
3838
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
3839
 
 
3840
  CXX=$ac_ct_CXX
 
3841
fi
 
3842
 
 
3843
 
 
3844
# Provide some information about the compiler.
 
3845
echo "$as_me:$LINENO:" \
 
3846
     "checking for C++ compiler version" >&5
 
3847
ac_compiler=`set X $ac_compile; echo $2`
 
3848
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3849
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3850
  ac_status=$?
 
3851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3852
  (exit $ac_status); }
 
3853
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3854
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3855
  ac_status=$?
 
3856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3857
  (exit $ac_status); }
 
3858
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3859
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3860
  ac_status=$?
 
3861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3862
  (exit $ac_status); }
 
3863
 
 
3864
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
3865
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
3866
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
3867
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3868
else
 
3869
  cat >conftest.$ac_ext <<_ACEOF
 
3870
/* confdefs.h.  */
 
3871
_ACEOF
 
3872
cat confdefs.h >>conftest.$ac_ext
 
3873
cat >>conftest.$ac_ext <<_ACEOF
 
3874
/* end confdefs.h.  */
 
3875
 
 
3876
int
 
3877
main ()
 
3878
{
 
3879
#ifndef __GNUC__
 
3880
       choke me
 
3881
#endif
 
3882
 
 
3883
  ;
 
3884
  return 0;
 
3885
}
 
3886
_ACEOF
 
3887
rm -f conftest.$ac_objext
 
3888
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3889
  (eval $ac_compile) 2>conftest.er1
 
3890
  ac_status=$?
 
3891
  grep -v '^ *+' conftest.er1 >conftest.err
 
3892
  rm -f conftest.er1
 
3893
  cat conftest.err >&5
 
3894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3895
  (exit $ac_status); } &&
 
3896
         { ac_try='test -z "$ac_cxx_werror_flag"
 
3897
                         || test ! -s conftest.err'
 
3898
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3899
  (eval $ac_try) 2>&5
 
3900
  ac_status=$?
 
3901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3902
  (exit $ac_status); }; } &&
 
3903
         { ac_try='test -s conftest.$ac_objext'
 
3904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3905
  (eval $ac_try) 2>&5
 
3906
  ac_status=$?
 
3907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3908
  (exit $ac_status); }; }; then
 
3909
  ac_compiler_gnu=yes
 
3910
else
 
3911
  echo "$as_me: failed program was:" >&5
 
3912
sed 's/^/| /' conftest.$ac_ext >&5
 
3913
 
 
3914
ac_compiler_gnu=no
 
3915
fi
 
3916
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3917
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3918
 
 
3919
fi
 
3920
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
3921
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
3922
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
3923
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3924
ac_save_CXXFLAGS=$CXXFLAGS
 
3925
CXXFLAGS="-g"
 
3926
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
3927
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
3928
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
3929
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3930
else
 
3931
  cat >conftest.$ac_ext <<_ACEOF
 
3932
/* confdefs.h.  */
 
3933
_ACEOF
 
3934
cat confdefs.h >>conftest.$ac_ext
 
3935
cat >>conftest.$ac_ext <<_ACEOF
 
3936
/* end confdefs.h.  */
 
3937
 
 
3938
int
 
3939
main ()
 
3940
{
 
3941
 
 
3942
  ;
 
3943
  return 0;
 
3944
}
 
3945
_ACEOF
 
3946
rm -f conftest.$ac_objext
 
3947
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3948
  (eval $ac_compile) 2>conftest.er1
 
3949
  ac_status=$?
 
3950
  grep -v '^ *+' conftest.er1 >conftest.err
 
3951
  rm -f conftest.er1
 
3952
  cat conftest.err >&5
 
3953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3954
  (exit $ac_status); } &&
 
3955
         { ac_try='test -z "$ac_cxx_werror_flag"
 
3956
                         || test ! -s conftest.err'
 
3957
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3958
  (eval $ac_try) 2>&5
 
3959
  ac_status=$?
 
3960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3961
  (exit $ac_status); }; } &&
 
3962
         { ac_try='test -s conftest.$ac_objext'
 
3963
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3964
  (eval $ac_try) 2>&5
 
3965
  ac_status=$?
 
3966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3967
  (exit $ac_status); }; }; then
 
3968
  ac_cv_prog_cxx_g=yes
 
3969
else
 
3970
  echo "$as_me: failed program was:" >&5
 
3971
sed 's/^/| /' conftest.$ac_ext >&5
 
3972
 
 
3973
ac_cv_prog_cxx_g=no
 
3974
fi
 
3975
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3976
fi
 
3977
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
3978
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
3979
if test "$ac_test_CXXFLAGS" = set; then
 
3980
  CXXFLAGS=$ac_save_CXXFLAGS
 
3981
elif test $ac_cv_prog_cxx_g = yes; then
 
3982
  if test "$GXX" = yes; then
 
3983
    CXXFLAGS="-g -O2"
 
3984
  else
 
3985
    CXXFLAGS="-g"
 
3986
  fi
 
3987
else
 
3988
  if test "$GXX" = yes; then
 
3989
    CXXFLAGS="-O2"
 
3990
  else
 
3991
    CXXFLAGS=
 
3992
  fi
 
3993
fi
 
3994
for ac_declaration in \
 
3995
   '' \
 
3996
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3997
   'extern "C" void std::exit (int); using std::exit;' \
 
3998
   'extern "C" void exit (int) throw ();' \
 
3999
   'extern "C" void exit (int);' \
 
4000
   'void exit (int);'
 
4001
do
 
4002
  cat >conftest.$ac_ext <<_ACEOF
 
4003
/* confdefs.h.  */
 
4004
_ACEOF
 
4005
cat confdefs.h >>conftest.$ac_ext
 
4006
cat >>conftest.$ac_ext <<_ACEOF
 
4007
/* end confdefs.h.  */
 
4008
$ac_declaration
 
4009
#include <stdlib.h>
 
4010
int
 
4011
main ()
 
4012
{
 
4013
exit (42);
 
4014
  ;
 
4015
  return 0;
 
4016
}
 
4017
_ACEOF
 
4018
rm -f conftest.$ac_objext
 
4019
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4020
  (eval $ac_compile) 2>conftest.er1
 
4021
  ac_status=$?
 
4022
  grep -v '^ *+' conftest.er1 >conftest.err
 
4023
  rm -f conftest.er1
 
4024
  cat conftest.err >&5
 
4025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4026
  (exit $ac_status); } &&
 
4027
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4028
                         || test ! -s conftest.err'
 
4029
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4030
  (eval $ac_try) 2>&5
 
4031
  ac_status=$?
 
4032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4033
  (exit $ac_status); }; } &&
 
4034
         { ac_try='test -s conftest.$ac_objext'
 
4035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4036
  (eval $ac_try) 2>&5
 
4037
  ac_status=$?
 
4038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4039
  (exit $ac_status); }; }; then
 
4040
  :
 
4041
else
 
4042
  echo "$as_me: failed program was:" >&5
 
4043
sed 's/^/| /' conftest.$ac_ext >&5
 
4044
 
 
4045
continue
 
4046
fi
 
4047
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4048
  cat >conftest.$ac_ext <<_ACEOF
 
4049
/* confdefs.h.  */
 
4050
_ACEOF
 
4051
cat confdefs.h >>conftest.$ac_ext
 
4052
cat >>conftest.$ac_ext <<_ACEOF
 
4053
/* end confdefs.h.  */
 
4054
$ac_declaration
 
4055
int
 
4056
main ()
 
4057
{
 
4058
exit (42);
 
4059
  ;
 
4060
  return 0;
 
4061
}
 
4062
_ACEOF
 
4063
rm -f conftest.$ac_objext
 
4064
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4065
  (eval $ac_compile) 2>conftest.er1
 
4066
  ac_status=$?
 
4067
  grep -v '^ *+' conftest.er1 >conftest.err
 
4068
  rm -f conftest.er1
 
4069
  cat conftest.err >&5
 
4070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4071
  (exit $ac_status); } &&
 
4072
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4073
                         || test ! -s conftest.err'
 
4074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4075
  (eval $ac_try) 2>&5
 
4076
  ac_status=$?
 
4077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4078
  (exit $ac_status); }; } &&
 
4079
         { ac_try='test -s conftest.$ac_objext'
 
4080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4081
  (eval $ac_try) 2>&5
 
4082
  ac_status=$?
 
4083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4084
  (exit $ac_status); }; }; then
 
4085
  break
 
4086
else
 
4087
  echo "$as_me: failed program was:" >&5
 
4088
sed 's/^/| /' conftest.$ac_ext >&5
 
4089
 
 
4090
fi
 
4091
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4092
done
 
4093
rm -f conftest*
 
4094
if test -n "$ac_declaration"; then
 
4095
  echo '#ifdef __cplusplus' >>confdefs.h
 
4096
  echo $ac_declaration      >>confdefs.h
 
4097
  echo '#endif'             >>confdefs.h
 
4098
fi
 
4099
 
 
4100
ac_ext=c
 
4101
ac_cpp='$CPP $CPPFLAGS'
 
4102
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4103
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4104
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4105
 
 
4106
depcc="$CXX"  am_compiler_list=
 
4107
 
 
4108
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4109
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4110
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
4111
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4112
else
 
4113
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4114
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4115
  # making bogus files that we don't know about and never remove.  For
 
4116
  # instance it was reported that on HP-UX the gcc test will end up
 
4117
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4118
  # in D'.
 
4119
  mkdir conftest.dir
 
4120
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4121
  # using a relative directory.
 
4122
  cp "$am_depcomp" conftest.dir
 
4123
  cd conftest.dir
 
4124
  # We will build objects and dependencies in a subdirectory because
 
4125
  # it helps to detect inapplicable dependency modes.  For instance
 
4126
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4127
  # side effect of compilation, but ICC will put the dependencies in
 
4128
  # the current directory while Tru64 will put them in the object
 
4129
  # directory.
 
4130
  mkdir sub
 
4131
 
 
4132
  am_cv_CXX_dependencies_compiler_type=none
 
4133
  if test "$am_compiler_list" = ""; then
 
4134
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4135
  fi
 
4136
  for depmode in $am_compiler_list; do
 
4137
    # Setup a source with many dependencies, because some compilers
 
4138
    # like to wrap large dependency lists on column 80 (with \), and
 
4139
    # we should not choose a depcomp mode which is confused by this.
 
4140
    #
 
4141
    # We need to recreate these files for each test, as the compiler may
 
4142
    # overwrite some of them when testing with obscure command lines.
 
4143
    # This happens at least with the AIX C compiler.
 
4144
    : > sub/conftest.c
 
4145
    for i in 1 2 3 4 5 6; do
 
4146
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4147
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4148
      # Solaris 8's {/usr,}/bin/sh.
 
4149
      touch sub/conftst$i.h
 
4150
    done
 
4151
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4152
 
 
4153
    case $depmode in
 
4154
    nosideeffect)
 
4155
      # after this tag, mechanisms are not by side-effect, so they'll
 
4156
      # only be used when explicitly requested
 
4157
      if test "x$enable_dependency_tracking" = xyes; then
 
4158
        continue
 
4159
      else
 
4160
        break
 
4161
      fi
 
4162
      ;;
 
4163
    none) break ;;
 
4164
    esac
 
4165
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4166
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4167
    # handle `-M -o', and we need to detect this.
 
4168
    if depmode=$depmode \
 
4169
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4170
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4171
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4172
         >/dev/null 2>conftest.err &&
 
4173
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4174
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4175
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4176
      # icc doesn't choke on unknown options, it will just issue warnings
 
4177
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4178
      # that says an option was ignored or not supported.
 
4179
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4180
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4181
      # The diagnosis changed in icc 8.0:
 
4182
      #   icc: Command line remark: option '-MP' not supported
 
4183
      if (grep 'ignoring option' conftest.err ||
 
4184
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4185
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4186
        break
 
4187
      fi
 
4188
    fi
 
4189
  done
 
4190
 
 
4191
  cd ..
 
4192
  rm -rf conftest.dir
 
4193
else
 
4194
  am_cv_CXX_dependencies_compiler_type=none
 
4195
fi
 
4196
 
 
4197
fi
 
4198
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4199
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
4200
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4201
 
 
4202
 
 
4203
 
 
4204
if
 
4205
  test "x$enable_dependency_tracking" != xno \
 
4206
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4207
  am__fastdepCXX_TRUE=
 
4208
  am__fastdepCXX_FALSE='#'
 
4209
else
 
4210
  am__fastdepCXX_TRUE='#'
 
4211
  am__fastdepCXX_FALSE=
 
4212
fi
 
4213
 
 
4214
 
 
4215
 
 
4216
  if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
 
4217
    if test "$kde_use_debug_code" != "no"; then
 
4218
      if test "$CXX" = "KCC"; then
 
4219
        CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
 
4220
      else
 
4221
        if test "$kde_use_debug_code" = "full"; then
 
4222
          CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
 
4223
        else
 
4224
          CXXFLAGS="-g -O2 $CXXFLAGS"
 
4225
        fi
 
4226
      fi
 
4227
 
 
4228
echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
 
4229
echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6
 
4230
kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'`
 
4231
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4232
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4233
else
 
4234
 
 
4235
 
 
4236
 
 
4237
 
 
4238
ac_ext=cc
 
4239
ac_cpp='$CXXCPP $CPPFLAGS'
 
4240
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4241
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4242
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4243
 
 
4244
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4245
 
 
4246
 
 
4247
 
 
4248
  save_CXXFLAGS="$CXXFLAGS"
 
4249
  CXXFLAGS="$CXXFLAGS -fno-builtin"
 
4250
  cat >conftest.$ac_ext <<_ACEOF
 
4251
/* confdefs.h.  */
 
4252
_ACEOF
 
4253
cat confdefs.h >>conftest.$ac_ext
 
4254
cat >>conftest.$ac_ext <<_ACEOF
 
4255
/* end confdefs.h.  */
 
4256
 
 
4257
int
 
4258
main ()
 
4259
{
 
4260
 return 0;
 
4261
  ;
 
4262
  return 0;
 
4263
}
 
4264
_ACEOF
 
4265
rm -f conftest.$ac_objext conftest$ac_exeext
 
4266
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4267
  (eval $ac_link) 2>conftest.er1
 
4268
  ac_status=$?
 
4269
  grep -v '^ *+' conftest.er1 >conftest.err
 
4270
  rm -f conftest.er1
 
4271
  cat conftest.err >&5
 
4272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4273
  (exit $ac_status); } &&
 
4274
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4275
                         || test ! -s conftest.err'
 
4276
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4277
  (eval $ac_try) 2>&5
 
4278
  ac_status=$?
 
4279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4280
  (exit $ac_status); }; } &&
 
4281
         { ac_try='test -s conftest$ac_exeext'
 
4282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4283
  (eval $ac_try) 2>&5
 
4284
  ac_status=$?
 
4285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4286
  (exit $ac_status); }; }; then
 
4287
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4288
else
 
4289
  echo "$as_me: failed program was:" >&5
 
4290
sed 's/^/| /' conftest.$ac_ext >&5
 
4291
 
 
4292
fi
 
4293
rm -f conftest.err conftest.$ac_objext \
 
4294
      conftest$ac_exeext conftest.$ac_ext
 
4295
  CXXFLAGS="$save_CXXFLAGS"
 
4296
  ac_ext=c
 
4297
ac_cpp='$CPP $CPPFLAGS'
 
4298
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4299
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4300
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4301
 
 
4302
 
 
4303
fi
 
4304
 
 
4305
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4306
 echo "$as_me:$LINENO: result: yes" >&5
 
4307
echo "${ECHO_T}yes" >&6
 
4308
 :
 
4309
 CXXFLAGS="-fno-builtin $CXXFLAGS"
 
4310
else
 
4311
 echo "$as_me:$LINENO: result: no" >&5
 
4312
echo "${ECHO_T}no" >&6
 
4313
 :
 
4314
 
 
4315
fi
 
4316
 
 
4317
 
 
4318
 
 
4319
echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
 
4320
echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6
 
4321
kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'`
 
4322
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4323
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4324
else
 
4325
 
 
4326
 
 
4327
 
 
4328
   ac_ext=cc
 
4329
ac_cpp='$CXXCPP $CPPFLAGS'
 
4330
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4331
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4332
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4333
 
 
4334
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4335
 
 
4336
 
 
4337
  save_CXXFLAGS="$CXXFLAGS"
 
4338
  CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
 
4339
  cat >conftest.$ac_ext <<_ACEOF
 
4340
/* confdefs.h.  */
 
4341
_ACEOF
 
4342
cat confdefs.h >>conftest.$ac_ext
 
4343
cat >>conftest.$ac_ext <<_ACEOF
 
4344
/* end confdefs.h.  */
 
4345
 
 
4346
int
 
4347
main ()
 
4348
{
 
4349
 return 0;
 
4350
  ;
 
4351
  return 0;
 
4352
}
 
4353
_ACEOF
 
4354
rm -f conftest.$ac_objext conftest$ac_exeext
 
4355
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4356
  (eval $ac_link) 2>conftest.er1
 
4357
  ac_status=$?
 
4358
  grep -v '^ *+' conftest.er1 >conftest.err
 
4359
  rm -f conftest.er1
 
4360
  cat conftest.err >&5
 
4361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4362
  (exit $ac_status); } &&
 
4363
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4364
                         || test ! -s conftest.err'
 
4365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4366
  (eval $ac_try) 2>&5
 
4367
  ac_status=$?
 
4368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4369
  (exit $ac_status); }; } &&
 
4370
         { ac_try='test -s conftest$ac_exeext'
 
4371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4372
  (eval $ac_try) 2>&5
 
4373
  ac_status=$?
 
4374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4375
  (exit $ac_status); }; }; then
 
4376
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4377
else
 
4378
  echo "$as_me: failed program was:" >&5
 
4379
sed 's/^/| /' conftest.$ac_ext >&5
 
4380
 
 
4381
fi
 
4382
rm -f conftest.err conftest.$ac_objext \
 
4383
      conftest$ac_exeext conftest.$ac_ext
 
4384
  CXXFLAGS="$save_CXXFLAGS"
 
4385
  ac_ext=c
 
4386
ac_cpp='$CPP $CPPFLAGS'
 
4387
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4388
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4389
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4390
 
 
4391
 
 
4392
fi
 
4393
 
 
4394
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4395
 echo "$as_me:$LINENO: result: yes" >&5
 
4396
echo "${ECHO_T}yes" >&6
 
4397
 :
 
4398
 WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
 
4399
else
 
4400
 echo "$as_me:$LINENO: result: no" >&5
 
4401
echo "${ECHO_T}no" >&6
 
4402
 :
 
4403
 WOVERLOADED_VRITUAL=""
 
4404
fi
 
4405
 
 
4406
 
 
4407
    else
 
4408
      if test "$CXX" = "KCC"; then
 
4409
        CXXFLAGS="+K3 $CXXFLAGS"
 
4410
      else
 
4411
        CXXFLAGS="-O2 $CXXFLAGS"
 
4412
      fi
 
4413
    fi
 
4414
  fi
 
4415
 
 
4416
  if test "$kde_use_debug_define" = "yes"; then
 
4417
    CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
 
4418
  fi
 
4419
 
 
4420
  if test "$kde_use_profiling" = "yes"; then
 
4421
 
 
4422
echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
 
4423
echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6
 
4424
kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'`
 
4425
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4426
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4427
else
 
4428
 
 
4429
 
 
4430
 
 
4431
   ac_ext=cc
 
4432
ac_cpp='$CXXCPP $CPPFLAGS'
 
4433
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4434
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4435
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4436
 
 
4437
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4438
 
 
4439
 
 
4440
  save_CXXFLAGS="$CXXFLAGS"
 
4441
  CXXFLAGS="$CXXFLAGS -pg"
 
4442
  cat >conftest.$ac_ext <<_ACEOF
 
4443
/* confdefs.h.  */
 
4444
_ACEOF
 
4445
cat confdefs.h >>conftest.$ac_ext
 
4446
cat >>conftest.$ac_ext <<_ACEOF
 
4447
/* end confdefs.h.  */
 
4448
 
 
4449
int
 
4450
main ()
 
4451
{
 
4452
 return 0;
 
4453
  ;
 
4454
  return 0;
 
4455
}
 
4456
_ACEOF
 
4457
rm -f conftest.$ac_objext conftest$ac_exeext
 
4458
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4459
  (eval $ac_link) 2>conftest.er1
 
4460
  ac_status=$?
 
4461
  grep -v '^ *+' conftest.er1 >conftest.err
 
4462
  rm -f conftest.er1
 
4463
  cat conftest.err >&5
 
4464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4465
  (exit $ac_status); } &&
 
4466
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4467
                         || test ! -s conftest.err'
 
4468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4469
  (eval $ac_try) 2>&5
 
4470
  ac_status=$?
 
4471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4472
  (exit $ac_status); }; } &&
 
4473
         { ac_try='test -s conftest$ac_exeext'
 
4474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4475
  (eval $ac_try) 2>&5
 
4476
  ac_status=$?
 
4477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4478
  (exit $ac_status); }; }; then
 
4479
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4480
else
 
4481
  echo "$as_me: failed program was:" >&5
 
4482
sed 's/^/| /' conftest.$ac_ext >&5
 
4483
 
 
4484
fi
 
4485
rm -f conftest.err conftest.$ac_objext \
 
4486
      conftest$ac_exeext conftest.$ac_ext
 
4487
  CXXFLAGS="$save_CXXFLAGS"
 
4488
  ac_ext=c
 
4489
ac_cpp='$CPP $CPPFLAGS'
 
4490
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4491
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4492
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4493
 
 
4494
 
 
4495
fi
 
4496
 
 
4497
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4498
 echo "$as_me:$LINENO: result: yes" >&5
 
4499
echo "${ECHO_T}yes" >&6
 
4500
 :
 
4501
 
 
4502
      CFLAGS="-pg $CFLAGS"
 
4503
      CXXFLAGS="-pg $CXXFLAGS"
 
4504
 
 
4505
else
 
4506
 echo "$as_me:$LINENO: result: no" >&5
 
4507
echo "${ECHO_T}no" >&6
 
4508
 :
 
4509
 
 
4510
fi
 
4511
 
 
4512
  fi
 
4513
 
 
4514
  if test "$kde_use_warnings" = "yes"; then
 
4515
      if test "$GCC" = "yes"; then
 
4516
        CXXFLAGS="-Wall -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
 
4517
        case $host in
 
4518
          *-*-linux-gnu)
 
4519
            CFLAGS="-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
 
4520
            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
 
4521
 
 
4522
echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5
 
4523
echo $ECHO_N "checking whether $CXX supports -Wmissing-format-attribute... $ECHO_C" >&6
 
4524
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
 
4525
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4526
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4527
else
 
4528
 
 
4529
 
 
4530
 
 
4531
   ac_ext=cc
 
4532
ac_cpp='$CXXCPP $CPPFLAGS'
 
4533
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4534
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4535
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4536
 
 
4537
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4538
 
 
4539
 
 
4540
  save_CXXFLAGS="$CXXFLAGS"
 
4541
  CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
 
4542
  cat >conftest.$ac_ext <<_ACEOF
 
4543
/* confdefs.h.  */
 
4544
_ACEOF
 
4545
cat confdefs.h >>conftest.$ac_ext
 
4546
cat >>conftest.$ac_ext <<_ACEOF
 
4547
/* end confdefs.h.  */
 
4548
 
 
4549
int
 
4550
main ()
 
4551
{
 
4552
 return 0;
 
4553
  ;
 
4554
  return 0;
 
4555
}
 
4556
_ACEOF
 
4557
rm -f conftest.$ac_objext conftest$ac_exeext
 
4558
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4559
  (eval $ac_link) 2>conftest.er1
 
4560
  ac_status=$?
 
4561
  grep -v '^ *+' conftest.er1 >conftest.err
 
4562
  rm -f conftest.er1
 
4563
  cat conftest.err >&5
 
4564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4565
  (exit $ac_status); } &&
 
4566
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4567
                         || test ! -s conftest.err'
 
4568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4569
  (eval $ac_try) 2>&5
 
4570
  ac_status=$?
 
4571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4572
  (exit $ac_status); }; } &&
 
4573
         { ac_try='test -s conftest$ac_exeext'
 
4574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4575
  (eval $ac_try) 2>&5
 
4576
  ac_status=$?
 
4577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4578
  (exit $ac_status); }; }; then
 
4579
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4580
else
 
4581
  echo "$as_me: failed program was:" >&5
 
4582
sed 's/^/| /' conftest.$ac_ext >&5
 
4583
 
 
4584
fi
 
4585
rm -f conftest.err conftest.$ac_objext \
 
4586
      conftest$ac_exeext conftest.$ac_ext
 
4587
  CXXFLAGS="$save_CXXFLAGS"
 
4588
  ac_ext=c
 
4589
ac_cpp='$CPP $CPPFLAGS'
 
4590
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4591
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4592
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4593
 
 
4594
 
 
4595
fi
 
4596
 
 
4597
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4598
 echo "$as_me:$LINENO: result: yes" >&5
 
4599
echo "${ECHO_T}yes" >&6
 
4600
 :
 
4601
 CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"
 
4602
else
 
4603
 echo "$as_me:$LINENO: result: no" >&5
 
4604
echo "${ECHO_T}no" >&6
 
4605
 :
 
4606
 
 
4607
fi
 
4608
 
 
4609
 
 
4610
echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
 
4611
echo $ECHO_N "checking whether $CC supports -Wmissing-format-attribute... $ECHO_C" >&6
 
4612
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
 
4613
if eval "test \"\${kde_cv_prog_cc_$kde_cache+set}\" = set"; then
 
4614
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4615
else
 
4616
 
 
4617
 
 
4618
 
 
4619
  ac_ext=c
 
4620
ac_cpp='$CPP $CPPFLAGS'
 
4621
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4622
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4623
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4624
 
 
4625
  save_CFLAGS="$CFLAGS"
 
4626
  CFLAGS="$CFLAGS -Wmissing-format-attribute"
 
4627
  cat >conftest.$ac_ext <<_ACEOF
 
4628
/* confdefs.h.  */
 
4629
_ACEOF
 
4630
cat confdefs.h >>conftest.$ac_ext
 
4631
cat >>conftest.$ac_ext <<_ACEOF
 
4632
/* end confdefs.h.  */
 
4633
 
 
4634
int
 
4635
main ()
 
4636
{
 
4637
 return 0;
 
4638
  ;
 
4639
  return 0;
 
4640
}
 
4641
_ACEOF
 
4642
rm -f conftest.$ac_objext conftest$ac_exeext
 
4643
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4644
  (eval $ac_link) 2>conftest.er1
 
4645
  ac_status=$?
 
4646
  grep -v '^ *+' conftest.er1 >conftest.err
 
4647
  rm -f conftest.er1
 
4648
  cat conftest.err >&5
 
4649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4650
  (exit $ac_status); } &&
 
4651
         { ac_try='test -z "$ac_c_werror_flag"
 
4652
                         || test ! -s conftest.err'
 
4653
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4654
  (eval $ac_try) 2>&5
 
4655
  ac_status=$?
 
4656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4657
  (exit $ac_status); }; } &&
 
4658
         { ac_try='test -s conftest$ac_exeext'
 
4659
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4660
  (eval $ac_try) 2>&5
 
4661
  ac_status=$?
 
4662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4663
  (exit $ac_status); }; }; then
 
4664
  eval "kde_cv_prog_cc_$kde_cache=yes"
 
4665
else
 
4666
  echo "$as_me: failed program was:" >&5
 
4667
sed 's/^/| /' conftest.$ac_ext >&5
 
4668
 
 
4669
fi
 
4670
rm -f conftest.err conftest.$ac_objext \
 
4671
      conftest$ac_exeext conftest.$ac_ext
 
4672
  CFLAGS="$save_CFLAGS"
 
4673
  ac_ext=c
 
4674
ac_cpp='$CPP $CPPFLAGS'
 
4675
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4676
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4677
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4678
 
 
4679
 
 
4680
fi
 
4681
 
 
4682
if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then
 
4683
 echo "$as_me:$LINENO: result: yes" >&5
 
4684
echo "${ECHO_T}yes" >&6
 
4685
 :
 
4686
 CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"
 
4687
else
 
4688
 echo "$as_me:$LINENO: result: no" >&5
 
4689
echo "${ECHO_T}no" >&6
 
4690
 :
 
4691
 
 
4692
fi
 
4693
 
 
4694
          ;;
 
4695
        esac
 
4696
 
 
4697
echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
 
4698
echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6
 
4699
kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'`
 
4700
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4702
else
 
4703
 
 
4704
 
 
4705
 
 
4706
   ac_ext=cc
 
4707
ac_cpp='$CXXCPP $CPPFLAGS'
 
4708
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4709
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4710
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4711
 
 
4712
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4713
 
 
4714
 
 
4715
  save_CXXFLAGS="$CXXFLAGS"
 
4716
  CXXFLAGS="$CXXFLAGS -Wundef"
 
4717
  cat >conftest.$ac_ext <<_ACEOF
 
4718
/* confdefs.h.  */
 
4719
_ACEOF
 
4720
cat confdefs.h >>conftest.$ac_ext
 
4721
cat >>conftest.$ac_ext <<_ACEOF
 
4722
/* end confdefs.h.  */
 
4723
 
 
4724
int
 
4725
main ()
 
4726
{
 
4727
 return 0;
 
4728
  ;
 
4729
  return 0;
 
4730
}
 
4731
_ACEOF
 
4732
rm -f conftest.$ac_objext conftest$ac_exeext
 
4733
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4734
  (eval $ac_link) 2>conftest.er1
 
4735
  ac_status=$?
 
4736
  grep -v '^ *+' conftest.er1 >conftest.err
 
4737
  rm -f conftest.er1
 
4738
  cat conftest.err >&5
 
4739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4740
  (exit $ac_status); } &&
 
4741
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4742
                         || test ! -s conftest.err'
 
4743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4744
  (eval $ac_try) 2>&5
 
4745
  ac_status=$?
 
4746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4747
  (exit $ac_status); }; } &&
 
4748
         { ac_try='test -s conftest$ac_exeext'
 
4749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4750
  (eval $ac_try) 2>&5
 
4751
  ac_status=$?
 
4752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4753
  (exit $ac_status); }; }; then
 
4754
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4755
else
 
4756
  echo "$as_me: failed program was:" >&5
 
4757
sed 's/^/| /' conftest.$ac_ext >&5
 
4758
 
 
4759
fi
 
4760
rm -f conftest.err conftest.$ac_objext \
 
4761
      conftest$ac_exeext conftest.$ac_ext
 
4762
  CXXFLAGS="$save_CXXFLAGS"
 
4763
  ac_ext=c
 
4764
ac_cpp='$CPP $CPPFLAGS'
 
4765
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4766
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4767
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4768
 
 
4769
 
 
4770
fi
 
4771
 
 
4772
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4773
 echo "$as_me:$LINENO: result: yes" >&5
 
4774
echo "${ECHO_T}yes" >&6
 
4775
 :
 
4776
 CXXFLAGS="-Wundef $CXXFLAGS"
 
4777
else
 
4778
 echo "$as_me:$LINENO: result: no" >&5
 
4779
echo "${ECHO_T}no" >&6
 
4780
 :
 
4781
 
 
4782
fi
 
4783
 
 
4784
 
 
4785
echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
 
4786
echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6
 
4787
kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'`
 
4788
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4789
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4790
else
 
4791
 
 
4792
 
 
4793
 
 
4794
   ac_ext=cc
 
4795
ac_cpp='$CXXCPP $CPPFLAGS'
 
4796
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4797
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4798
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4799
 
 
4800
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4801
 
 
4802
 
 
4803
  save_CXXFLAGS="$CXXFLAGS"
 
4804
  CXXFLAGS="$CXXFLAGS -Wno-long-long"
 
4805
  cat >conftest.$ac_ext <<_ACEOF
 
4806
/* confdefs.h.  */
 
4807
_ACEOF
 
4808
cat confdefs.h >>conftest.$ac_ext
 
4809
cat >>conftest.$ac_ext <<_ACEOF
 
4810
/* end confdefs.h.  */
 
4811
 
 
4812
int
 
4813
main ()
 
4814
{
 
4815
 return 0;
 
4816
  ;
 
4817
  return 0;
 
4818
}
 
4819
_ACEOF
 
4820
rm -f conftest.$ac_objext conftest$ac_exeext
 
4821
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4822
  (eval $ac_link) 2>conftest.er1
 
4823
  ac_status=$?
 
4824
  grep -v '^ *+' conftest.er1 >conftest.err
 
4825
  rm -f conftest.er1
 
4826
  cat conftest.err >&5
 
4827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4828
  (exit $ac_status); } &&
 
4829
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4830
                         || test ! -s conftest.err'
 
4831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4832
  (eval $ac_try) 2>&5
 
4833
  ac_status=$?
 
4834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4835
  (exit $ac_status); }; } &&
 
4836
         { ac_try='test -s conftest$ac_exeext'
 
4837
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4838
  (eval $ac_try) 2>&5
 
4839
  ac_status=$?
 
4840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4841
  (exit $ac_status); }; }; then
 
4842
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4843
else
 
4844
  echo "$as_me: failed program was:" >&5
 
4845
sed 's/^/| /' conftest.$ac_ext >&5
 
4846
 
 
4847
fi
 
4848
rm -f conftest.err conftest.$ac_objext \
 
4849
      conftest$ac_exeext conftest.$ac_ext
 
4850
  CXXFLAGS="$save_CXXFLAGS"
 
4851
  ac_ext=c
 
4852
ac_cpp='$CPP $CPPFLAGS'
 
4853
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4854
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4855
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4856
 
 
4857
 
 
4858
fi
 
4859
 
 
4860
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4861
 echo "$as_me:$LINENO: result: yes" >&5
 
4862
echo "${ECHO_T}yes" >&6
 
4863
 :
 
4864
 CXXFLAGS="-Wno-long-long $CXXFLAGS"
 
4865
else
 
4866
 echo "$as_me:$LINENO: result: no" >&5
 
4867
echo "${ECHO_T}no" >&6
 
4868
 :
 
4869
 
 
4870
fi
 
4871
 
 
4872
 
 
4873
echo "$as_me:$LINENO: checking whether $CXX supports -Wnon-virtual-dtor" >&5
 
4874
echo $ECHO_N "checking whether $CXX supports -Wnon-virtual-dtor... $ECHO_C" >&6
 
4875
kde_cache=`echo Wnon-virtual-dtor | sed 'y% .=/+-,%____p__%'`
 
4876
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4877
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4878
else
 
4879
 
 
4880
 
 
4881
 
 
4882
   ac_ext=cc
 
4883
ac_cpp='$CXXCPP $CPPFLAGS'
 
4884
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4885
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4886
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4887
 
 
4888
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4889
 
 
4890
 
 
4891
  save_CXXFLAGS="$CXXFLAGS"
 
4892
  CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor"
 
4893
  cat >conftest.$ac_ext <<_ACEOF
 
4894
/* confdefs.h.  */
 
4895
_ACEOF
 
4896
cat confdefs.h >>conftest.$ac_ext
 
4897
cat >>conftest.$ac_ext <<_ACEOF
 
4898
/* end confdefs.h.  */
 
4899
 
 
4900
int
 
4901
main ()
 
4902
{
 
4903
 return 0;
 
4904
  ;
 
4905
  return 0;
 
4906
}
 
4907
_ACEOF
 
4908
rm -f conftest.$ac_objext conftest$ac_exeext
 
4909
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4910
  (eval $ac_link) 2>conftest.er1
 
4911
  ac_status=$?
 
4912
  grep -v '^ *+' conftest.er1 >conftest.err
 
4913
  rm -f conftest.er1
 
4914
  cat conftest.err >&5
 
4915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4916
  (exit $ac_status); } &&
 
4917
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4918
                         || test ! -s conftest.err'
 
4919
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4920
  (eval $ac_try) 2>&5
 
4921
  ac_status=$?
 
4922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4923
  (exit $ac_status); }; } &&
 
4924
         { ac_try='test -s conftest$ac_exeext'
 
4925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4926
  (eval $ac_try) 2>&5
 
4927
  ac_status=$?
 
4928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4929
  (exit $ac_status); }; }; then
 
4930
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4931
else
 
4932
  echo "$as_me: failed program was:" >&5
 
4933
sed 's/^/| /' conftest.$ac_ext >&5
 
4934
 
 
4935
fi
 
4936
rm -f conftest.err conftest.$ac_objext \
 
4937
      conftest$ac_exeext conftest.$ac_ext
 
4938
  CXXFLAGS="$save_CXXFLAGS"
 
4939
  ac_ext=c
 
4940
ac_cpp='$CPP $CPPFLAGS'
 
4941
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4942
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4943
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4944
 
 
4945
 
 
4946
fi
 
4947
 
 
4948
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4949
 echo "$as_me:$LINENO: result: yes" >&5
 
4950
echo "${ECHO_T}yes" >&6
 
4951
 :
 
4952
 CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"
 
4953
else
 
4954
 echo "$as_me:$LINENO: result: no" >&5
 
4955
echo "${ECHO_T}no" >&6
 
4956
 :
 
4957
 
 
4958
fi
 
4959
 
 
4960
     fi
 
4961
  fi
 
4962
 
 
4963
  if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
 
4964
    CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
 
4965
  fi
 
4966
 
 
4967
  if test "$GXX" = "yes"; then
 
4968
 
 
4969
echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
 
4970
echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6
 
4971
kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'`
 
4972
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4973
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4974
else
 
4975
 
 
4976
 
 
4977
 
 
4978
   ac_ext=cc
 
4979
ac_cpp='$CXXCPP $CPPFLAGS'
 
4980
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4981
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4982
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4983
 
 
4984
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4985
 
 
4986
 
 
4987
  save_CXXFLAGS="$CXXFLAGS"
 
4988
  CXXFLAGS="$CXXFLAGS -fno-exceptions"
 
4989
  cat >conftest.$ac_ext <<_ACEOF
 
4990
/* confdefs.h.  */
 
4991
_ACEOF
 
4992
cat confdefs.h >>conftest.$ac_ext
 
4993
cat >>conftest.$ac_ext <<_ACEOF
 
4994
/* end confdefs.h.  */
 
4995
 
 
4996
int
 
4997
main ()
 
4998
{
 
4999
 return 0;
 
5000
  ;
 
5001
  return 0;
 
5002
}
 
5003
_ACEOF
 
5004
rm -f conftest.$ac_objext conftest$ac_exeext
 
5005
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5006
  (eval $ac_link) 2>conftest.er1
 
5007
  ac_status=$?
 
5008
  grep -v '^ *+' conftest.er1 >conftest.err
 
5009
  rm -f conftest.er1
 
5010
  cat conftest.err >&5
 
5011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5012
  (exit $ac_status); } &&
 
5013
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5014
                         || test ! -s conftest.err'
 
5015
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5016
  (eval $ac_try) 2>&5
 
5017
  ac_status=$?
 
5018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5019
  (exit $ac_status); }; } &&
 
5020
         { ac_try='test -s conftest$ac_exeext'
 
5021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5022
  (eval $ac_try) 2>&5
 
5023
  ac_status=$?
 
5024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5025
  (exit $ac_status); }; }; then
 
5026
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5027
else
 
5028
  echo "$as_me: failed program was:" >&5
 
5029
sed 's/^/| /' conftest.$ac_ext >&5
 
5030
 
 
5031
fi
 
5032
rm -f conftest.err conftest.$ac_objext \
 
5033
      conftest$ac_exeext conftest.$ac_ext
 
5034
  CXXFLAGS="$save_CXXFLAGS"
 
5035
  ac_ext=c
 
5036
ac_cpp='$CPP $CPPFLAGS'
 
5037
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5038
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5039
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5040
 
 
5041
 
 
5042
fi
 
5043
 
 
5044
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5045
 echo "$as_me:$LINENO: result: yes" >&5
 
5046
echo "${ECHO_T}yes" >&6
 
5047
 :
 
5048
 CXXFLAGS="$CXXFLAGS -fno-exceptions"
 
5049
else
 
5050
 echo "$as_me:$LINENO: result: no" >&5
 
5051
echo "${ECHO_T}no" >&6
 
5052
 :
 
5053
 
 
5054
fi
 
5055
 
 
5056
 
 
5057
echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
 
5058
echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6
 
5059
kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'`
 
5060
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5061
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5062
else
 
5063
 
 
5064
 
 
5065
 
 
5066
   ac_ext=cc
 
5067
ac_cpp='$CXXCPP $CPPFLAGS'
 
5068
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5069
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5070
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5071
 
 
5072
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5073
 
 
5074
 
 
5075
  save_CXXFLAGS="$CXXFLAGS"
 
5076
  CXXFLAGS="$CXXFLAGS -fno-check-new"
 
5077
  cat >conftest.$ac_ext <<_ACEOF
 
5078
/* confdefs.h.  */
 
5079
_ACEOF
 
5080
cat confdefs.h >>conftest.$ac_ext
 
5081
cat >>conftest.$ac_ext <<_ACEOF
 
5082
/* end confdefs.h.  */
 
5083
 
 
5084
int
 
5085
main ()
 
5086
{
 
5087
 return 0;
 
5088
  ;
 
5089
  return 0;
 
5090
}
 
5091
_ACEOF
 
5092
rm -f conftest.$ac_objext conftest$ac_exeext
 
5093
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5094
  (eval $ac_link) 2>conftest.er1
 
5095
  ac_status=$?
 
5096
  grep -v '^ *+' conftest.er1 >conftest.err
 
5097
  rm -f conftest.er1
 
5098
  cat conftest.err >&5
 
5099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5100
  (exit $ac_status); } &&
 
5101
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5102
                         || test ! -s conftest.err'
 
5103
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5104
  (eval $ac_try) 2>&5
 
5105
  ac_status=$?
 
5106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5107
  (exit $ac_status); }; } &&
 
5108
         { ac_try='test -s conftest$ac_exeext'
 
5109
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5110
  (eval $ac_try) 2>&5
 
5111
  ac_status=$?
 
5112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5113
  (exit $ac_status); }; }; then
 
5114
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5115
else
 
5116
  echo "$as_me: failed program was:" >&5
 
5117
sed 's/^/| /' conftest.$ac_ext >&5
 
5118
 
 
5119
fi
 
5120
rm -f conftest.err conftest.$ac_objext \
 
5121
      conftest$ac_exeext conftest.$ac_ext
 
5122
  CXXFLAGS="$save_CXXFLAGS"
 
5123
  ac_ext=c
 
5124
ac_cpp='$CPP $CPPFLAGS'
 
5125
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5126
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5127
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5128
 
 
5129
 
 
5130
fi
 
5131
 
 
5132
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5133
 echo "$as_me:$LINENO: result: yes" >&5
 
5134
echo "${ECHO_T}yes" >&6
 
5135
 :
 
5136
 CXXFLAGS="$CXXFLAGS -fno-check-new"
 
5137
else
 
5138
 echo "$as_me:$LINENO: result: no" >&5
 
5139
echo "${ECHO_T}no" >&6
 
5140
 :
 
5141
 
 
5142
fi
 
5143
 
 
5144
 
 
5145
echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5
 
5146
echo $ECHO_N "checking whether $CXX supports -fno-common... $ECHO_C" >&6
 
5147
kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'`
 
5148
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5149
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5150
else
 
5151
 
 
5152
 
 
5153
 
 
5154
   ac_ext=cc
 
5155
ac_cpp='$CXXCPP $CPPFLAGS'
 
5156
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5157
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5158
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5159
 
 
5160
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5161
 
 
5162
 
 
5163
  save_CXXFLAGS="$CXXFLAGS"
 
5164
  CXXFLAGS="$CXXFLAGS -fno-common"
 
5165
  cat >conftest.$ac_ext <<_ACEOF
 
5166
/* confdefs.h.  */
 
5167
_ACEOF
 
5168
cat confdefs.h >>conftest.$ac_ext
 
5169
cat >>conftest.$ac_ext <<_ACEOF
 
5170
/* end confdefs.h.  */
 
5171
 
 
5172
int
 
5173
main ()
 
5174
{
 
5175
 return 0;
 
5176
  ;
 
5177
  return 0;
 
5178
}
 
5179
_ACEOF
 
5180
rm -f conftest.$ac_objext conftest$ac_exeext
 
5181
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5182
  (eval $ac_link) 2>conftest.er1
 
5183
  ac_status=$?
 
5184
  grep -v '^ *+' conftest.er1 >conftest.err
 
5185
  rm -f conftest.er1
 
5186
  cat conftest.err >&5
 
5187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5188
  (exit $ac_status); } &&
 
5189
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5190
                         || test ! -s conftest.err'
 
5191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5192
  (eval $ac_try) 2>&5
 
5193
  ac_status=$?
 
5194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5195
  (exit $ac_status); }; } &&
 
5196
         { ac_try='test -s conftest$ac_exeext'
 
5197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5198
  (eval $ac_try) 2>&5
 
5199
  ac_status=$?
 
5200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5201
  (exit $ac_status); }; }; then
 
5202
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5203
else
 
5204
  echo "$as_me: failed program was:" >&5
 
5205
sed 's/^/| /' conftest.$ac_ext >&5
 
5206
 
 
5207
fi
 
5208
rm -f conftest.err conftest.$ac_objext \
 
5209
      conftest$ac_exeext conftest.$ac_ext
 
5210
  CXXFLAGS="$save_CXXFLAGS"
 
5211
  ac_ext=c
 
5212
ac_cpp='$CPP $CPPFLAGS'
 
5213
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5214
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5215
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5216
 
 
5217
 
 
5218
fi
 
5219
 
 
5220
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5221
 echo "$as_me:$LINENO: result: yes" >&5
 
5222
echo "${ECHO_T}yes" >&6
 
5223
 :
 
5224
 CXXFLAGS="$CXXFLAGS -fno-common"
 
5225
else
 
5226
 echo "$as_me:$LINENO: result: no" >&5
 
5227
echo "${ECHO_T}no" >&6
 
5228
 :
 
5229
 
 
5230
fi
 
5231
 
 
5232
 
 
5233
echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
 
5234
echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6
 
5235
kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'`
 
5236
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5237
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5238
else
 
5239
 
 
5240
 
 
5241
 
 
5242
   ac_ext=cc
 
5243
ac_cpp='$CXXCPP $CPPFLAGS'
 
5244
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5245
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5246
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5247
 
 
5248
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5249
 
 
5250
 
 
5251
  save_CXXFLAGS="$CXXFLAGS"
 
5252
  CXXFLAGS="$CXXFLAGS -fexceptions"
 
5253
  cat >conftest.$ac_ext <<_ACEOF
 
5254
/* confdefs.h.  */
 
5255
_ACEOF
 
5256
cat confdefs.h >>conftest.$ac_ext
 
5257
cat >>conftest.$ac_ext <<_ACEOF
 
5258
/* end confdefs.h.  */
 
5259
 
 
5260
int
 
5261
main ()
 
5262
{
 
5263
 return 0;
 
5264
  ;
 
5265
  return 0;
 
5266
}
 
5267
_ACEOF
 
5268
rm -f conftest.$ac_objext conftest$ac_exeext
 
5269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5270
  (eval $ac_link) 2>conftest.er1
 
5271
  ac_status=$?
 
5272
  grep -v '^ *+' conftest.er1 >conftest.err
 
5273
  rm -f conftest.er1
 
5274
  cat conftest.err >&5
 
5275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5276
  (exit $ac_status); } &&
 
5277
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5278
                         || test ! -s conftest.err'
 
5279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5280
  (eval $ac_try) 2>&5
 
5281
  ac_status=$?
 
5282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5283
  (exit $ac_status); }; } &&
 
5284
         { ac_try='test -s conftest$ac_exeext'
 
5285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5286
  (eval $ac_try) 2>&5
 
5287
  ac_status=$?
 
5288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5289
  (exit $ac_status); }; }; then
 
5290
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5291
else
 
5292
  echo "$as_me: failed program was:" >&5
 
5293
sed 's/^/| /' conftest.$ac_ext >&5
 
5294
 
 
5295
fi
 
5296
rm -f conftest.err conftest.$ac_objext \
 
5297
      conftest$ac_exeext conftest.$ac_ext
 
5298
  CXXFLAGS="$save_CXXFLAGS"
 
5299
  ac_ext=c
 
5300
ac_cpp='$CPP $CPPFLAGS'
 
5301
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5302
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5303
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5304
 
 
5305
 
 
5306
fi
 
5307
 
 
5308
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5309
 echo "$as_me:$LINENO: result: yes" >&5
 
5310
echo "${ECHO_T}yes" >&6
 
5311
 :
 
5312
 USE_EXCEPTIONS="-fexceptions"
 
5313
else
 
5314
 echo "$as_me:$LINENO: result: no" >&5
 
5315
echo "${ECHO_T}no" >&6
 
5316
 :
 
5317
 USE_EXCEPTIONS=
 
5318
fi
 
5319
 
 
5320
    ENABLE_PERMISSIVE_FLAG="-fpermissive"
 
5321
  fi
 
5322
  if test "$CXX" = "KCC"; then
 
5323
 
 
5324
    # Check whether --enable-pch or --disable-pch was given.
 
5325
if test "${enable_pch+set}" = set; then
 
5326
  enableval="$enable_pch"
 
5327
 
 
5328
      kde_use_pch=$enableval
 
5329
 
 
5330
else
 
5331
  kde_use_pch=no
 
5332
fi;
 
5333
 
 
5334
    if test "$kde_use_pch" = "yes"; then
 
5335
 
 
5336
echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
 
5337
echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6
 
5338
kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'`
 
5339
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5340
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5341
else
 
5342
 
 
5343
 
 
5344
 
 
5345
   ac_ext=cc
 
5346
ac_cpp='$CXXCPP $CPPFLAGS'
 
5347
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5348
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5349
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5350
 
 
5351
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5352
 
 
5353
 
 
5354
  save_CXXFLAGS="$CXXFLAGS"
 
5355
  CXXFLAGS="$CXXFLAGS --pch"
 
5356
  cat >conftest.$ac_ext <<_ACEOF
 
5357
/* confdefs.h.  */
 
5358
_ACEOF
 
5359
cat confdefs.h >>conftest.$ac_ext
 
5360
cat >>conftest.$ac_ext <<_ACEOF
 
5361
/* end confdefs.h.  */
 
5362
 
 
5363
int
 
5364
main ()
 
5365
{
 
5366
 return 0;
 
5367
  ;
 
5368
  return 0;
 
5369
}
 
5370
_ACEOF
 
5371
rm -f conftest.$ac_objext conftest$ac_exeext
 
5372
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5373
  (eval $ac_link) 2>conftest.er1
 
5374
  ac_status=$?
 
5375
  grep -v '^ *+' conftest.er1 >conftest.err
 
5376
  rm -f conftest.er1
 
5377
  cat conftest.err >&5
 
5378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5379
  (exit $ac_status); } &&
 
5380
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5381
                         || test ! -s conftest.err'
 
5382
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5383
  (eval $ac_try) 2>&5
 
5384
  ac_status=$?
 
5385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5386
  (exit $ac_status); }; } &&
 
5387
         { ac_try='test -s conftest$ac_exeext'
 
5388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5389
  (eval $ac_try) 2>&5
 
5390
  ac_status=$?
 
5391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5392
  (exit $ac_status); }; }; then
 
5393
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5394
else
 
5395
  echo "$as_me: failed program was:" >&5
 
5396
sed 's/^/| /' conftest.$ac_ext >&5
 
5397
 
 
5398
fi
 
5399
rm -f conftest.err conftest.$ac_objext \
 
5400
      conftest$ac_exeext conftest.$ac_ext
 
5401
  CXXFLAGS="$save_CXXFLAGS"
 
5402
  ac_ext=c
 
5403
ac_cpp='$CPP $CPPFLAGS'
 
5404
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5405
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5406
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5407
 
 
5408
 
 
5409
fi
 
5410
 
 
5411
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5412
 echo "$as_me:$LINENO: result: yes" >&5
 
5413
echo "${ECHO_T}yes" >&6
 
5414
 :
 
5415
 CXXFLAGS="$CXXFLAGS --pch"
 
5416
else
 
5417
 echo "$as_me:$LINENO: result: no" >&5
 
5418
echo "${ECHO_T}no" >&6
 
5419
 :
 
5420
 
 
5421
fi
 
5422
 
 
5423
                                              fi
 
5424
 
 
5425
echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
 
5426
echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6
 
5427
kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'`
 
5428
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5429
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5430
else
 
5431
 
 
5432
 
 
5433
 
 
5434
   ac_ext=cc
 
5435
ac_cpp='$CXXCPP $CPPFLAGS'
 
5436
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5437
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5438
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5439
 
 
5440
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5441
 
 
5442
 
 
5443
  save_CXXFLAGS="$CXXFLAGS"
 
5444
  CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
 
5445
  cat >conftest.$ac_ext <<_ACEOF
 
5446
/* confdefs.h.  */
 
5447
_ACEOF
 
5448
cat confdefs.h >>conftest.$ac_ext
 
5449
cat >>conftest.$ac_ext <<_ACEOF
 
5450
/* end confdefs.h.  */
 
5451
 
 
5452
int
 
5453
main ()
 
5454
{
 
5455
 return 0;
 
5456
  ;
 
5457
  return 0;
 
5458
}
 
5459
_ACEOF
 
5460
rm -f conftest.$ac_objext conftest$ac_exeext
 
5461
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5462
  (eval $ac_link) 2>conftest.er1
 
5463
  ac_status=$?
 
5464
  grep -v '^ *+' conftest.er1 >conftest.err
 
5465
  rm -f conftest.er1
 
5466
  cat conftest.err >&5
 
5467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5468
  (exit $ac_status); } &&
 
5469
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5470
                         || test ! -s conftest.err'
 
5471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5472
  (eval $ac_try) 2>&5
 
5473
  ac_status=$?
 
5474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5475
  (exit $ac_status); }; } &&
 
5476
         { ac_try='test -s conftest$ac_exeext'
 
5477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5478
  (eval $ac_try) 2>&5
 
5479
  ac_status=$?
 
5480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5481
  (exit $ac_status); }; }; then
 
5482
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5483
else
 
5484
  echo "$as_me: failed program was:" >&5
 
5485
sed 's/^/| /' conftest.$ac_ext >&5
 
5486
 
 
5487
fi
 
5488
rm -f conftest.err conftest.$ac_objext \
 
5489
      conftest$ac_exeext conftest.$ac_ext
 
5490
  CXXFLAGS="$save_CXXFLAGS"
 
5491
  ac_ext=c
 
5492
ac_cpp='$CPP $CPPFLAGS'
 
5493
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5494
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5495
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5496
 
 
5497
 
 
5498
fi
 
5499
 
 
5500
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5501
 echo "$as_me:$LINENO: result: yes" >&5
 
5502
echo "${ECHO_T}yes" >&6
 
5503
 :
 
5504
 CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
 
5505
else
 
5506
 echo "$as_me:$LINENO: result: no" >&5
 
5507
echo "${ECHO_T}no" >&6
 
5508
 :
 
5509
 
 
5510
fi
 
5511
 
 
5512
 
 
5513
echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
 
5514
echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6
 
5515
kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'`
 
5516
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5517
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5518
else
 
5519
 
 
5520
 
 
5521
 
 
5522
   ac_ext=cc
 
5523
ac_cpp='$CXXCPP $CPPFLAGS'
 
5524
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5525
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5526
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5527
 
 
5528
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5529
 
 
5530
 
 
5531
  save_CXXFLAGS="$CXXFLAGS"
 
5532
  CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
 
5533
  cat >conftest.$ac_ext <<_ACEOF
 
5534
/* confdefs.h.  */
 
5535
_ACEOF
 
5536
cat confdefs.h >>conftest.$ac_ext
 
5537
cat >>conftest.$ac_ext <<_ACEOF
 
5538
/* end confdefs.h.  */
 
5539
 
 
5540
int
 
5541
main ()
 
5542
{
 
5543
 return 0;
 
5544
  ;
 
5545
  return 0;
 
5546
}
 
5547
_ACEOF
 
5548
rm -f conftest.$ac_objext conftest$ac_exeext
 
5549
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5550
  (eval $ac_link) 2>conftest.er1
 
5551
  ac_status=$?
 
5552
  grep -v '^ *+' conftest.er1 >conftest.err
 
5553
  rm -f conftest.er1
 
5554
  cat conftest.err >&5
 
5555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5556
  (exit $ac_status); } &&
 
5557
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5558
                         || test ! -s conftest.err'
 
5559
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5560
  (eval $ac_try) 2>&5
 
5561
  ac_status=$?
 
5562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5563
  (exit $ac_status); }; } &&
 
5564
         { ac_try='test -s conftest$ac_exeext'
 
5565
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5566
  (eval $ac_try) 2>&5
 
5567
  ac_status=$?
 
5568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5569
  (exit $ac_status); }; }; then
 
5570
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5571
else
 
5572
  echo "$as_me: failed program was:" >&5
 
5573
sed 's/^/| /' conftest.$ac_ext >&5
 
5574
 
 
5575
fi
 
5576
rm -f conftest.err conftest.$ac_objext \
 
5577
      conftest$ac_exeext conftest.$ac_ext
 
5578
  CXXFLAGS="$save_CXXFLAGS"
 
5579
  ac_ext=c
 
5580
ac_cpp='$CPP $CPPFLAGS'
 
5581
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5582
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5583
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5584
 
 
5585
 
 
5586
fi
 
5587
 
 
5588
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5589
 echo "$as_me:$LINENO: result: yes" >&5
 
5590
echo "${ECHO_T}yes" >&6
 
5591
 :
 
5592
 CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
 
5593
else
 
5594
 echo "$as_me:$LINENO: result: no" >&5
 
5595
echo "${ECHO_T}no" >&6
 
5596
 :
 
5597
 
 
5598
fi
 
5599
 
 
5600
 
 
5601
echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
 
5602
echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6
 
5603
kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
 
5604
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5606
else
 
5607
 
 
5608
 
 
5609
 
 
5610
   ac_ext=cc
 
5611
ac_cpp='$CXXCPP $CPPFLAGS'
 
5612
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5613
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5614
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5615
 
 
5616
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5617
 
 
5618
 
 
5619
  save_CXXFLAGS="$CXXFLAGS"
 
5620
  CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
 
5621
  cat >conftest.$ac_ext <<_ACEOF
 
5622
/* confdefs.h.  */
 
5623
_ACEOF
 
5624
cat confdefs.h >>conftest.$ac_ext
 
5625
cat >>conftest.$ac_ext <<_ACEOF
 
5626
/* end confdefs.h.  */
 
5627
 
 
5628
int
 
5629
main ()
 
5630
{
 
5631
 return 0;
 
5632
  ;
 
5633
  return 0;
 
5634
}
 
5635
_ACEOF
 
5636
rm -f conftest.$ac_objext conftest$ac_exeext
 
5637
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5638
  (eval $ac_link) 2>conftest.er1
 
5639
  ac_status=$?
 
5640
  grep -v '^ *+' conftest.er1 >conftest.err
 
5641
  rm -f conftest.er1
 
5642
  cat conftest.err >&5
 
5643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5644
  (exit $ac_status); } &&
 
5645
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5646
                         || test ! -s conftest.err'
 
5647
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5648
  (eval $ac_try) 2>&5
 
5649
  ac_status=$?
 
5650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5651
  (exit $ac_status); }; } &&
 
5652
         { ac_try='test -s conftest$ac_exeext'
 
5653
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5654
  (eval $ac_try) 2>&5
 
5655
  ac_status=$?
 
5656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5657
  (exit $ac_status); }; }; then
 
5658
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5659
else
 
5660
  echo "$as_me: failed program was:" >&5
 
5661
sed 's/^/| /' conftest.$ac_ext >&5
 
5662
 
 
5663
fi
 
5664
rm -f conftest.err conftest.$ac_objext \
 
5665
      conftest$ac_exeext conftest.$ac_ext
 
5666
  CXXFLAGS="$save_CXXFLAGS"
 
5667
  ac_ext=c
 
5668
ac_cpp='$CPP $CPPFLAGS'
 
5669
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5670
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5671
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5672
 
 
5673
 
 
5674
fi
 
5675
 
 
5676
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5677
 echo "$as_me:$LINENO: result: yes" >&5
 
5678
echo "${ECHO_T}yes" >&6
 
5679
 :
 
5680
 CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
 
5681
else
 
5682
 echo "$as_me:$LINENO: result: no" >&5
 
5683
echo "${ECHO_T}no" >&6
 
5684
 :
 
5685
 
 
5686
fi
 
5687
 
 
5688
 
 
5689
echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
 
5690
echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6
 
5691
kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
 
5692
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5693
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5694
else
 
5695
 
 
5696
 
 
5697
 
 
5698
   ac_ext=cc
 
5699
ac_cpp='$CXXCPP $CPPFLAGS'
 
5700
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5701
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5702
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5703
 
 
5704
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5705
 
 
5706
 
 
5707
  save_CXXFLAGS="$CXXFLAGS"
 
5708
  CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
 
5709
  cat >conftest.$ac_ext <<_ACEOF
 
5710
/* confdefs.h.  */
 
5711
_ACEOF
 
5712
cat confdefs.h >>conftest.$ac_ext
 
5713
cat >>conftest.$ac_ext <<_ACEOF
 
5714
/* end confdefs.h.  */
 
5715
 
 
5716
int
 
5717
main ()
 
5718
{
 
5719
 return 0;
 
5720
  ;
 
5721
  return 0;
 
5722
}
 
5723
_ACEOF
 
5724
rm -f conftest.$ac_objext conftest$ac_exeext
 
5725
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5726
  (eval $ac_link) 2>conftest.er1
 
5727
  ac_status=$?
 
5728
  grep -v '^ *+' conftest.er1 >conftest.err
 
5729
  rm -f conftest.er1
 
5730
  cat conftest.err >&5
 
5731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5732
  (exit $ac_status); } &&
 
5733
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5734
                         || test ! -s conftest.err'
 
5735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5736
  (eval $ac_try) 2>&5
 
5737
  ac_status=$?
 
5738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5739
  (exit $ac_status); }; } &&
 
5740
         { ac_try='test -s conftest$ac_exeext'
 
5741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5742
  (eval $ac_try) 2>&5
 
5743
  ac_status=$?
 
5744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5745
  (exit $ac_status); }; }; then
 
5746
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5747
else
 
5748
  echo "$as_me: failed program was:" >&5
 
5749
sed 's/^/| /' conftest.$ac_ext >&5
 
5750
 
 
5751
fi
 
5752
rm -f conftest.err conftest.$ac_objext \
 
5753
      conftest$ac_exeext conftest.$ac_ext
 
5754
  CXXFLAGS="$save_CXXFLAGS"
 
5755
  ac_ext=c
 
5756
ac_cpp='$CPP $CPPFLAGS'
 
5757
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5758
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5759
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5760
 
 
5761
 
 
5762
fi
 
5763
 
 
5764
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5765
 echo "$as_me:$LINENO: result: yes" >&5
 
5766
echo "${ECHO_T}yes" >&6
 
5767
 :
 
5768
 CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
 
5769
else
 
5770
 echo "$as_me:$LINENO: result: no" >&5
 
5771
echo "${ECHO_T}no" >&6
 
5772
 :
 
5773
 
 
5774
fi
 
5775
 
 
5776
 
 
5777
echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
 
5778
echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6
 
5779
kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'`
 
5780
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5782
else
 
5783
 
 
5784
 
 
5785
 
 
5786
   ac_ext=cc
 
5787
ac_cpp='$CXXCPP $CPPFLAGS'
 
5788
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5789
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5790
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5791
 
 
5792
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5793
 
 
5794
 
 
5795
  save_CXXFLAGS="$CXXFLAGS"
 
5796
  CXXFLAGS="$CXXFLAGS --one_per"
 
5797
  cat >conftest.$ac_ext <<_ACEOF
 
5798
/* confdefs.h.  */
 
5799
_ACEOF
 
5800
cat confdefs.h >>conftest.$ac_ext
 
5801
cat >>conftest.$ac_ext <<_ACEOF
 
5802
/* end confdefs.h.  */
 
5803
 
 
5804
int
 
5805
main ()
 
5806
{
 
5807
 return 0;
 
5808
  ;
 
5809
  return 0;
 
5810
}
 
5811
_ACEOF
 
5812
rm -f conftest.$ac_objext conftest$ac_exeext
 
5813
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5814
  (eval $ac_link) 2>conftest.er1
 
5815
  ac_status=$?
 
5816
  grep -v '^ *+' conftest.er1 >conftest.err
 
5817
  rm -f conftest.er1
 
5818
  cat conftest.err >&5
 
5819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5820
  (exit $ac_status); } &&
 
5821
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5822
                         || test ! -s conftest.err'
 
5823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5824
  (eval $ac_try) 2>&5
 
5825
  ac_status=$?
 
5826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5827
  (exit $ac_status); }; } &&
 
5828
         { ac_try='test -s conftest$ac_exeext'
 
5829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5830
  (eval $ac_try) 2>&5
 
5831
  ac_status=$?
 
5832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5833
  (exit $ac_status); }; }; then
 
5834
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5835
else
 
5836
  echo "$as_me: failed program was:" >&5
 
5837
sed 's/^/| /' conftest.$ac_ext >&5
 
5838
 
 
5839
fi
 
5840
rm -f conftest.err conftest.$ac_objext \
 
5841
      conftest$ac_exeext conftest.$ac_ext
 
5842
  CXXFLAGS="$save_CXXFLAGS"
 
5843
  ac_ext=c
 
5844
ac_cpp='$CPP $CPPFLAGS'
 
5845
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5846
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5847
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5848
 
 
5849
 
 
5850
fi
 
5851
 
 
5852
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5853
 echo "$as_me:$LINENO: result: yes" >&5
 
5854
echo "${ECHO_T}yes" >&6
 
5855
 :
 
5856
 CXXFLAGS="$CXXFLAGS --one_per"
 
5857
else
 
5858
 echo "$as_me:$LINENO: result: no" >&5
 
5859
echo "${ECHO_T}no" >&6
 
5860
 :
 
5861
 
 
5862
fi
 
5863
 
 
5864
  fi
 
5865
 
 
5866
    USE_RTTI=
 
5867
 
 
5868
 
 
5869
  case "$host" in
 
5870
      *-*-irix*)  test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
 
5871
      *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
 
5872
      *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
 
5873
      *-*-solaris*)
 
5874
        if test "$GXX" = yes; then
 
5875
          libstdcpp=`$CXX -print-file-name=libstdc++.so`
 
5876
          if test ! -f $libstdcpp; then
 
5877
             { { 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
 
5878
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;}
 
5879
   { (exit 1); exit 1; }; }
 
5880
          fi
 
5881
        fi
 
5882
        ;;
 
5883
  esac
 
5884
 
 
5885
  if test "x$kde_use_qt_emb" != "xyes"; then
 
5886
  __val=$CXX
 
5887
  __forbid=" -fno-rtti -rpath "
 
5888
  if test -n "$__val"; then
 
5889
    __new=""
 
5890
    ac_save_IFS=$IFS
 
5891
    IFS="       "
 
5892
    for i in $__val; do
 
5893
      case "$__forbid" in
 
5894
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
 
5895
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
 
5896
        *) # Careful to not add spaces, where there were none, because otherwise
 
5897
           # libtool gets confused, if we change e.g. CXX
 
5898
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
5899
      esac
 
5900
    done
 
5901
    IFS=$ac_save_IFS
 
5902
    CXX=$__new
 
5903
  fi
 
5904
 
 
5905
  __val=$CXXFLAGS
 
5906
  __forbid=" -fno-rtti -rpath "
 
5907
  if test -n "$__val"; then
 
5908
    __new=""
 
5909
    ac_save_IFS=$IFS
 
5910
    IFS="       "
 
5911
    for i in $__val; do
 
5912
      case "$__forbid" in
 
5913
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
 
5914
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
 
5915
        *) # Careful to not add spaces, where there were none, because otherwise
 
5916
           # libtool gets confused, if we change e.g. CXX
 
5917
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
5918
      esac
 
5919
    done
 
5920
    IFS=$ac_save_IFS
 
5921
    CXXFLAGS=$__new
 
5922
  fi
 
5923
 
 
5924
else
 
5925
  __val=$CXX
 
5926
  __forbid=" -rpath "
 
5927
  if test -n "$__val"; then
 
5928
    __new=""
 
5929
    ac_save_IFS=$IFS
 
5930
    IFS="       "
 
5931
    for i in $__val; do
 
5932
      case "$__forbid" in
 
5933
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
 
5934
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
 
5935
        *) # Careful to not add spaces, where there were none, because otherwise
 
5936
           # libtool gets confused, if we change e.g. CXX
 
5937
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
5938
      esac
 
5939
    done
 
5940
    IFS=$ac_save_IFS
 
5941
    CXX=$__new
 
5942
  fi
 
5943
 
 
5944
  __val=$CXXFLAGS
 
5945
  __forbid=" -rpath "
 
5946
  if test -n "$__val"; then
 
5947
    __new=""
 
5948
    ac_save_IFS=$IFS
 
5949
    IFS="       "
 
5950
    for i in $__val; do
 
5951
      case "$__forbid" in
 
5952
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
 
5953
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
 
5954
        *) # Careful to not add spaces, where there were none, because otherwise
 
5955
           # libtool gets confused, if we change e.g. CXX
 
5956
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
5957
      esac
 
5958
    done
 
5959
    IFS=$ac_save_IFS
 
5960
    CXXFLAGS=$__new
 
5961
  fi
 
5962
 
 
5963
fi
 
5964
 
 
5965
 
 
5966
  ac_ext=cc
 
5967
ac_cpp='$CXXCPP $CPPFLAGS'
 
5968
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5969
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5970
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5971
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5972
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
5973
if test -z "$CXXCPP"; then
 
5974
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5975
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5976
else
 
5977
      # Double quotes because CXXCPP needs to be expanded
 
5978
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5979
    do
 
5980
      ac_preproc_ok=false
 
5981
for ac_cxx_preproc_warn_flag in '' yes
 
5982
do
 
5983
  # Use a header file that comes with gcc, so configuring glibc
 
5984
  # with a fresh cross-compiler works.
 
5985
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5986
  # <limits.h> exists even on freestanding compilers.
 
5987
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5988
  # not just through cpp. "Syntax error" is here to catch this case.
 
5989
  cat >conftest.$ac_ext <<_ACEOF
 
5990
/* confdefs.h.  */
 
5991
_ACEOF
 
5992
cat confdefs.h >>conftest.$ac_ext
 
5993
cat >>conftest.$ac_ext <<_ACEOF
 
5994
/* end confdefs.h.  */
 
5995
#ifdef __STDC__
 
5996
# include <limits.h>
 
5997
#else
 
5998
# include <assert.h>
 
5999
#endif
 
6000
                     Syntax error
 
6001
_ACEOF
 
6002
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6003
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6004
  ac_status=$?
 
6005
  grep -v '^ *+' conftest.er1 >conftest.err
 
6006
  rm -f conftest.er1
 
6007
  cat conftest.err >&5
 
6008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6009
  (exit $ac_status); } >/dev/null; then
 
6010
  if test -s conftest.err; then
 
6011
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6012
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6013
  else
 
6014
    ac_cpp_err=
 
6015
  fi
 
6016
else
 
6017
  ac_cpp_err=yes
 
6018
fi
 
6019
if test -z "$ac_cpp_err"; then
 
6020
  :
 
6021
else
 
6022
  echo "$as_me: failed program was:" >&5
 
6023
sed 's/^/| /' conftest.$ac_ext >&5
 
6024
 
 
6025
  # Broken: fails on valid input.
 
6026
continue
 
6027
fi
 
6028
rm -f conftest.err conftest.$ac_ext
 
6029
 
 
6030
  # OK, works on sane cases.  Now check whether non-existent headers
 
6031
  # can be detected and how.
 
6032
  cat >conftest.$ac_ext <<_ACEOF
 
6033
/* confdefs.h.  */
 
6034
_ACEOF
 
6035
cat confdefs.h >>conftest.$ac_ext
 
6036
cat >>conftest.$ac_ext <<_ACEOF
 
6037
/* end confdefs.h.  */
 
6038
#include <ac_nonexistent.h>
 
6039
_ACEOF
 
6040
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6041
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6042
  ac_status=$?
 
6043
  grep -v '^ *+' conftest.er1 >conftest.err
 
6044
  rm -f conftest.er1
 
6045
  cat conftest.err >&5
 
6046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6047
  (exit $ac_status); } >/dev/null; then
 
6048
  if test -s conftest.err; then
 
6049
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6050
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6051
  else
 
6052
    ac_cpp_err=
 
6053
  fi
 
6054
else
 
6055
  ac_cpp_err=yes
 
6056
fi
 
6057
if test -z "$ac_cpp_err"; then
 
6058
  # Broken: success on invalid input.
 
6059
continue
 
6060
else
 
6061
  echo "$as_me: failed program was:" >&5
 
6062
sed 's/^/| /' conftest.$ac_ext >&5
 
6063
 
 
6064
  # Passes both tests.
 
6065
ac_preproc_ok=:
 
6066
break
 
6067
fi
 
6068
rm -f conftest.err conftest.$ac_ext
 
6069
 
 
6070
done
 
6071
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6072
rm -f conftest.err conftest.$ac_ext
 
6073
if $ac_preproc_ok; then
 
6074
  break
 
6075
fi
 
6076
 
 
6077
    done
 
6078
    ac_cv_prog_CXXCPP=$CXXCPP
 
6079
 
 
6080
fi
 
6081
  CXXCPP=$ac_cv_prog_CXXCPP
 
6082
else
 
6083
  ac_cv_prog_CXXCPP=$CXXCPP
 
6084
fi
 
6085
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6086
echo "${ECHO_T}$CXXCPP" >&6
 
6087
ac_preproc_ok=false
 
6088
for ac_cxx_preproc_warn_flag in '' yes
 
6089
do
 
6090
  # Use a header file that comes with gcc, so configuring glibc
 
6091
  # with a fresh cross-compiler works.
 
6092
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6093
  # <limits.h> exists even on freestanding compilers.
 
6094
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6095
  # not just through cpp. "Syntax error" is here to catch this case.
 
6096
  cat >conftest.$ac_ext <<_ACEOF
 
6097
/* confdefs.h.  */
 
6098
_ACEOF
 
6099
cat confdefs.h >>conftest.$ac_ext
 
6100
cat >>conftest.$ac_ext <<_ACEOF
 
6101
/* end confdefs.h.  */
 
6102
#ifdef __STDC__
 
6103
# include <limits.h>
 
6104
#else
 
6105
# include <assert.h>
 
6106
#endif
 
6107
                     Syntax error
 
6108
_ACEOF
 
6109
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6110
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6111
  ac_status=$?
 
6112
  grep -v '^ *+' conftest.er1 >conftest.err
 
6113
  rm -f conftest.er1
 
6114
  cat conftest.err >&5
 
6115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6116
  (exit $ac_status); } >/dev/null; then
 
6117
  if test -s conftest.err; then
 
6118
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6119
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6120
  else
 
6121
    ac_cpp_err=
 
6122
  fi
 
6123
else
 
6124
  ac_cpp_err=yes
 
6125
fi
 
6126
if test -z "$ac_cpp_err"; then
 
6127
  :
 
6128
else
 
6129
  echo "$as_me: failed program was:" >&5
 
6130
sed 's/^/| /' conftest.$ac_ext >&5
 
6131
 
 
6132
  # Broken: fails on valid input.
 
6133
continue
 
6134
fi
 
6135
rm -f conftest.err conftest.$ac_ext
 
6136
 
 
6137
  # OK, works on sane cases.  Now check whether non-existent headers
 
6138
  # can be detected and how.
 
6139
  cat >conftest.$ac_ext <<_ACEOF
 
6140
/* confdefs.h.  */
 
6141
_ACEOF
 
6142
cat confdefs.h >>conftest.$ac_ext
 
6143
cat >>conftest.$ac_ext <<_ACEOF
 
6144
/* end confdefs.h.  */
 
6145
#include <ac_nonexistent.h>
 
6146
_ACEOF
 
6147
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6148
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6149
  ac_status=$?
 
6150
  grep -v '^ *+' conftest.er1 >conftest.err
 
6151
  rm -f conftest.er1
 
6152
  cat conftest.err >&5
 
6153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6154
  (exit $ac_status); } >/dev/null; then
 
6155
  if test -s conftest.err; then
 
6156
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6157
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6158
  else
 
6159
    ac_cpp_err=
 
6160
  fi
 
6161
else
 
6162
  ac_cpp_err=yes
 
6163
fi
 
6164
if test -z "$ac_cpp_err"; then
 
6165
  # Broken: success on invalid input.
 
6166
continue
 
6167
else
 
6168
  echo "$as_me: failed program was:" >&5
 
6169
sed 's/^/| /' conftest.$ac_ext >&5
 
6170
 
 
6171
  # Passes both tests.
 
6172
ac_preproc_ok=:
 
6173
break
 
6174
fi
 
6175
rm -f conftest.err conftest.$ac_ext
 
6176
 
 
6177
done
 
6178
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6179
rm -f conftest.err conftest.$ac_ext
 
6180
if $ac_preproc_ok; then
 
6181
  :
 
6182
else
 
6183
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6184
See \`config.log' for more details." >&5
 
6185
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6186
See \`config.log' for more details." >&2;}
 
6187
   { (exit 1); exit 1; }; }
 
6188
fi
 
6189
 
 
6190
ac_ext=c
 
6191
ac_cpp='$CPP $CPPFLAGS'
 
6192
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6193
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6194
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6195
 
 
6196
 
 
6197
  if test "$GCC" = yes; then
 
6198
     NOOPT_CFLAGS=-O0
 
6199
  fi
 
6200
 
 
6201
echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5
 
6202
echo $ECHO_N "checking whether $CXX supports -O0... $ECHO_C" >&6
 
6203
kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'`
 
6204
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
6205
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6206
else
 
6207
 
 
6208
 
 
6209
 
 
6210
   ac_ext=cc
 
6211
ac_cpp='$CXXCPP $CPPFLAGS'
 
6212
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6213
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6214
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6215
 
 
6216
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6217
 
 
6218
 
 
6219
  save_CXXFLAGS="$CXXFLAGS"
 
6220
  CXXFLAGS="$CXXFLAGS -O0"
 
6221
  cat >conftest.$ac_ext <<_ACEOF
 
6222
/* confdefs.h.  */
 
6223
_ACEOF
 
6224
cat confdefs.h >>conftest.$ac_ext
 
6225
cat >>conftest.$ac_ext <<_ACEOF
 
6226
/* end confdefs.h.  */
 
6227
 
 
6228
int
 
6229
main ()
 
6230
{
 
6231
 return 0;
 
6232
  ;
 
6233
  return 0;
 
6234
}
 
6235
_ACEOF
 
6236
rm -f conftest.$ac_objext conftest$ac_exeext
 
6237
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6238
  (eval $ac_link) 2>conftest.er1
 
6239
  ac_status=$?
 
6240
  grep -v '^ *+' conftest.er1 >conftest.err
 
6241
  rm -f conftest.er1
 
6242
  cat conftest.err >&5
 
6243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6244
  (exit $ac_status); } &&
 
6245
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6246
                         || test ! -s conftest.err'
 
6247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6248
  (eval $ac_try) 2>&5
 
6249
  ac_status=$?
 
6250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6251
  (exit $ac_status); }; } &&
 
6252
         { ac_try='test -s conftest$ac_exeext'
 
6253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6254
  (eval $ac_try) 2>&5
 
6255
  ac_status=$?
 
6256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6257
  (exit $ac_status); }; }; then
 
6258
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6259
else
 
6260
  echo "$as_me: failed program was:" >&5
 
6261
sed 's/^/| /' conftest.$ac_ext >&5
 
6262
 
 
6263
fi
 
6264
rm -f conftest.err conftest.$ac_objext \
 
6265
      conftest$ac_exeext conftest.$ac_ext
 
6266
  CXXFLAGS="$save_CXXFLAGS"
 
6267
  ac_ext=c
 
6268
ac_cpp='$CPP $CPPFLAGS'
 
6269
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6270
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6271
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6272
 
 
6273
 
 
6274
fi
 
6275
 
 
6276
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6277
 echo "$as_me:$LINENO: result: yes" >&5
 
6278
echo "${ECHO_T}yes" >&6
 
6279
 :
 
6280
 NOOPT_CXXFLAGS=-O0
 
6281
else
 
6282
 echo "$as_me:$LINENO: result: no" >&5
 
6283
echo "${ECHO_T}no" >&6
 
6284
 :
 
6285
 
 
6286
fi
 
6287
 
 
6288
 
 
6289
 
 
6290
 
 
6291
 
 
6292
 
 
6293
 
 
6294
  # Check whether --enable-final or --disable-final was given.
 
6295
if test "${enable_final+set}" = set; then
 
6296
  enableval="$enable_final"
 
6297
  kde_use_final=$enableval
 
6298
else
 
6299
  kde_use_final=no
 
6300
fi;
 
6301
 
 
6302
  if test "x$kde_use_final" = "xyes"; then
 
6303
      KDE_USE_FINAL_TRUE=""
 
6304
      KDE_USE_FINAL_FALSE="#"
 
6305
   else
 
6306
      KDE_USE_FINAL_TRUE="#"
 
6307
      KDE_USE_FINAL_FALSE=""
 
6308
  fi
 
6309
 
 
6310
 
 
6311
 
 
6312
 
 
6313
  # Check whether --enable-closure or --disable-closure was given.
 
6314
if test "${enable_closure+set}" = set; then
 
6315
  enableval="$enable_closure"
 
6316
  kde_use_closure=$enableval
 
6317
else
 
6318
  kde_use_closure=no
 
6319
fi;
 
6320
 
 
6321
  KDE_NO_UNDEFINED=""
 
6322
  if test "x$kde_use_closure" = "xyes"; then
 
6323
       KDE_USE_CLOSURE_TRUE=""
 
6324
       KDE_USE_CLOSURE_FALSE="#"
 
6325
#       CXXFLAGS="$CXXFLAGS $REPO"
 
6326
  else
 
6327
       KDE_USE_CLOSURE_TRUE="#"
 
6328
       KDE_USE_CLOSURE_FALSE=""
 
6329
       KDE_NO_UNDEFINED=""
 
6330
       case $host in
 
6331
         *-*-linux-gnu)
 
6332
 
 
6333
echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
 
6334
echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6
 
6335
kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
 
6336
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
6337
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6338
else
 
6339
 
 
6340
 
 
6341
 
 
6342
   ac_ext=cc
 
6343
ac_cpp='$CXXCPP $CPPFLAGS'
 
6344
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6345
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6346
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6347
 
 
6348
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6349
 
 
6350
 
 
6351
  save_CXXFLAGS="$CXXFLAGS"
 
6352
  CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
 
6353
  cat >conftest.$ac_ext <<_ACEOF
 
6354
/* confdefs.h.  */
 
6355
_ACEOF
 
6356
cat confdefs.h >>conftest.$ac_ext
 
6357
cat >>conftest.$ac_ext <<_ACEOF
 
6358
/* end confdefs.h.  */
 
6359
 
 
6360
int
 
6361
main ()
 
6362
{
 
6363
 return 0;
 
6364
  ;
 
6365
  return 0;
 
6366
}
 
6367
_ACEOF
 
6368
rm -f conftest.$ac_objext conftest$ac_exeext
 
6369
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6370
  (eval $ac_link) 2>conftest.er1
 
6371
  ac_status=$?
 
6372
  grep -v '^ *+' conftest.er1 >conftest.err
 
6373
  rm -f conftest.er1
 
6374
  cat conftest.err >&5
 
6375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6376
  (exit $ac_status); } &&
 
6377
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6378
                         || test ! -s conftest.err'
 
6379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6380
  (eval $ac_try) 2>&5
 
6381
  ac_status=$?
 
6382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6383
  (exit $ac_status); }; } &&
 
6384
         { ac_try='test -s conftest$ac_exeext'
 
6385
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6386
  (eval $ac_try) 2>&5
 
6387
  ac_status=$?
 
6388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6389
  (exit $ac_status); }; }; then
 
6390
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6391
else
 
6392
  echo "$as_me: failed program was:" >&5
 
6393
sed 's/^/| /' conftest.$ac_ext >&5
 
6394
 
 
6395
fi
 
6396
rm -f conftest.err conftest.$ac_objext \
 
6397
      conftest$ac_exeext conftest.$ac_ext
 
6398
  CXXFLAGS="$save_CXXFLAGS"
 
6399
  ac_ext=c
 
6400
ac_cpp='$CPP $CPPFLAGS'
 
6401
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6402
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6403
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6404
 
 
6405
 
 
6406
fi
 
6407
 
 
6408
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6409
 echo "$as_me:$LINENO: result: yes" >&5
 
6410
echo "${ECHO_T}yes" >&6
 
6411
 :
 
6412
 
 
6413
echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
 
6414
echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6
 
6415
kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
 
6416
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
6417
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6418
else
 
6419
 
 
6420
 
 
6421
 
 
6422
   ac_ext=cc
 
6423
ac_cpp='$CXXCPP $CPPFLAGS'
 
6424
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6425
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6426
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6427
 
 
6428
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6429
 
 
6430
 
 
6431
  save_CXXFLAGS="$CXXFLAGS"
 
6432
  CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
 
6433
  cat >conftest.$ac_ext <<_ACEOF
 
6434
/* confdefs.h.  */
 
6435
_ACEOF
 
6436
cat confdefs.h >>conftest.$ac_ext
 
6437
cat >>conftest.$ac_ext <<_ACEOF
 
6438
/* end confdefs.h.  */
 
6439
 
 
6440
int
 
6441
main ()
 
6442
{
 
6443
 return 0;
 
6444
  ;
 
6445
  return 0;
 
6446
}
 
6447
_ACEOF
 
6448
rm -f conftest.$ac_objext conftest$ac_exeext
 
6449
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6450
  (eval $ac_link) 2>conftest.er1
 
6451
  ac_status=$?
 
6452
  grep -v '^ *+' conftest.er1 >conftest.err
 
6453
  rm -f conftest.er1
 
6454
  cat conftest.err >&5
 
6455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6456
  (exit $ac_status); } &&
 
6457
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6458
                         || test ! -s conftest.err'
 
6459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6460
  (eval $ac_try) 2>&5
 
6461
  ac_status=$?
 
6462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6463
  (exit $ac_status); }; } &&
 
6464
         { ac_try='test -s conftest$ac_exeext'
 
6465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6466
  (eval $ac_try) 2>&5
 
6467
  ac_status=$?
 
6468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6469
  (exit $ac_status); }; }; then
 
6470
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6471
else
 
6472
  echo "$as_me: failed program was:" >&5
 
6473
sed 's/^/| /' conftest.$ac_ext >&5
 
6474
 
 
6475
fi
 
6476
rm -f conftest.err conftest.$ac_objext \
 
6477
      conftest$ac_exeext conftest.$ac_ext
 
6478
  CXXFLAGS="$save_CXXFLAGS"
 
6479
  ac_ext=c
 
6480
ac_cpp='$CPP $CPPFLAGS'
 
6481
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6482
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6483
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6484
 
 
6485
 
 
6486
fi
 
6487
 
 
6488
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6489
 echo "$as_me:$LINENO: result: yes" >&5
 
6490
echo "${ECHO_T}yes" >&6
 
6491
 :
 
6492
 KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
 
6493
else
 
6494
 echo "$as_me:$LINENO: result: no" >&5
 
6495
echo "${ECHO_T}no" >&6
 
6496
 :
 
6497
 KDE_NO_UNDEFINED=""
 
6498
fi
 
6499
 
 
6500
else
 
6501
 echo "$as_me:$LINENO: result: no" >&5
 
6502
echo "${ECHO_T}no" >&6
 
6503
 :
 
6504
 KDE_NO_UNDEFINED=""
 
6505
fi
 
6506
 
 
6507
           ;;
 
6508
       esac
 
6509
  fi
 
6510
 
 
6511
 
 
6512
 
 
6513
 
 
6514
 
 
6515
  # Check whether --enable-nmcheck or --disable-nmcheck was given.
 
6516
if test "${enable_nmcheck+set}" = set; then
 
6517
  enableval="$enable_nmcheck"
 
6518
  kde_use_nmcheck=$enableval
 
6519
else
 
6520
  kde_use_nmcheck=no
 
6521
fi;
 
6522
 
 
6523
  if test "$kde_use_nmcheck" = "yes"; then
 
6524
      KDE_USE_NMCHECK_TRUE=""
 
6525
      KDE_USE_NMCHECK_FALSE="#"
 
6526
   else
 
6527
      KDE_USE_NMCHECK_TRUE="#"
 
6528
      KDE_USE_NMCHECK_FALSE=""
 
6529
  fi
 
6530
 
 
6531
 
 
6532
 
 
6533
 
 
6534
 
 
6535
 
 
6536
# Check whether --enable-shared or --disable-shared was given.
 
6537
if test "${enable_shared+set}" = set; then
 
6538
  enableval="$enable_shared"
 
6539
  p=${PACKAGE-default}
 
6540
    case $enableval in
 
6541
    yes) enable_shared=yes ;;
 
6542
    no) enable_shared=no ;;
 
6543
    *)
 
6544
      enable_shared=no
 
6545
      # Look at the argument we got.  We use all the common list separators.
 
6546
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6547
      for pkg in $enableval; do
 
6548
        IFS="$lt_save_ifs"
 
6549
        if test "X$pkg" = "X$p"; then
 
6550
          enable_shared=yes
 
6551
        fi
 
6552
      done
 
6553
      IFS="$lt_save_ifs"
 
6554
      ;;
 
6555
    esac
 
6556
else
 
6557
  enable_shared=yes
 
6558
fi;
 
6559
 
 
6560
# Check whether --enable-static or --disable-static was given.
 
6561
if test "${enable_static+set}" = set; then
 
6562
  enableval="$enable_static"
 
6563
  p=${PACKAGE-default}
 
6564
    case $enableval in
 
6565
    yes) enable_static=yes ;;
 
6566
    no) enable_static=no ;;
 
6567
    *)
 
6568
     enable_static=no
 
6569
      # Look at the argument we got.  We use all the common list separators.
 
6570
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6571
      for pkg in $enableval; do
 
6572
        IFS="$lt_save_ifs"
 
6573
        if test "X$pkg" = "X$p"; then
 
6574
          enable_static=yes
 
6575
        fi
 
6576
      done
 
6577
      IFS="$lt_save_ifs"
 
6578
      ;;
 
6579
    esac
 
6580
else
 
6581
  enable_static=no
 
6582
fi;
 
6583
 
 
6584
 
 
6585
 
 
6586
 
 
6587
    kdelibsuff="$kde_libs_suffix"
 
6588
    if test -z "$kdelibsuff"; then
 
6589
       kdelibsuff=no
 
6590
    fi
 
6591
    # Check whether --enable-libsuffix or --disable-libsuffix was given.
 
6592
if test "${enable_libsuffix+set}" = set; then
 
6593
  enableval="$enable_libsuffix"
 
6594
  kdelibsuff=$enableval
 
6595
fi;
 
6596
    # TODO: add an auto case that compiles a little C app to check
 
6597
    # where the glibc is
 
6598
    if test "$kdelibsuff" = "no"; then
 
6599
       kdelibsuff=
 
6600
    fi
 
6601
    if test -z "$kdelibsuff"; then
 
6602
        echo "$as_me:$LINENO: result: not using lib directory suffix" >&5
 
6603
echo "${ECHO_T}not using lib directory suffix" >&6
 
6604
 
 
6605
cat >>confdefs.h <<\_ACEOF
 
6606
#define KDELIBSUFF ""
 
6607
_ACEOF
 
6608
 
 
6609
    else
 
6610
        if test "$libdir" = '${exec_prefix}/lib'; then
 
6611
            libdir="$libdir${kdelibsuff}"
 
6612
            libdir="$libdir"
 
6613
          fi
 
6614
 
 
6615
cat >>confdefs.h <<_ACEOF
 
6616
#define KDELIBSUFF "${kdelibsuff}"
 
6617
_ACEOF
 
6618
 
 
6619
        echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
 
6620
echo "${ECHO_T}using lib directory suffix $kdelibsuff" >&6
 
6621
    fi
 
6622
 
 
6623
# Check whether --enable-fast-install or --disable-fast-install was given.
 
6624
if test "${enable_fast_install+set}" = set; then
 
6625
  enableval="$enable_fast_install"
 
6626
  p=${PACKAGE-default}
 
6627
    case $enableval in
 
6628
    yes) enable_fast_install=yes ;;
 
6629
    no) enable_fast_install=no ;;
 
6630
    *)
 
6631
      enable_fast_install=no
 
6632
      # Look at the argument we got.  We use all the common list separators.
 
6633
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6634
      for pkg in $enableval; do
 
6635
        IFS="$lt_save_ifs"
 
6636
        if test "X$pkg" = "X$p"; then
 
6637
          enable_fast_install=yes
 
6638
        fi
 
6639
      done
 
6640
      IFS="$lt_save_ifs"
 
6641
      ;;
 
6642
    esac
 
6643
else
 
6644
  enable_fast_install=yes
 
6645
fi;
 
6646
 
 
6647
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
6648
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
6649
if test "${lt_cv_path_SED+set}" = set; then
 
6650
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6651
else
 
6652
  # Loop through the user's path and test for sed and gsed.
 
6653
# Then use that list of sed's as ones to test for truncation.
 
6654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6655
for as_dir in $PATH
 
6656
do
 
6657
  IFS=$as_save_IFS
 
6658
  test -z "$as_dir" && as_dir=.
 
6659
  for lt_ac_prog in sed gsed; do
 
6660
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6661
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6662
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
6663
      fi
 
6664
    done
 
6665
  done
 
6666
done
 
6667
lt_ac_max=0
 
6668
lt_ac_count=0
 
6669
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
6670
# along with /bin/sed that truncates output.
 
6671
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
6672
  test ! -f $lt_ac_sed && break
 
6673
  cat /dev/null > conftest.in
 
6674
  lt_ac_count=0
 
6675
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
6676
  # Check for GNU sed and select it if it is found.
 
6677
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
6678
    lt_cv_path_SED=$lt_ac_sed
 
6679
    break
 
6680
  fi
 
6681
  while true; do
 
6682
    cat conftest.in conftest.in >conftest.tmp
 
6683
    mv conftest.tmp conftest.in
 
6684
    cp conftest.in conftest.nl
 
6685
    echo >>conftest.nl
 
6686
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
6687
    cmp -s conftest.out conftest.nl || break
 
6688
    # 10000 chars as input seems more than enough
 
6689
    test $lt_ac_count -gt 10 && break
 
6690
    lt_ac_count=`expr $lt_ac_count + 1`
 
6691
    if test $lt_ac_count -gt $lt_ac_max; then
 
6692
      lt_ac_max=$lt_ac_count
 
6693
      lt_cv_path_SED=$lt_ac_sed
 
6694
    fi
 
6695
  done
 
6696
done
 
6697
 
 
6698
fi
 
6699
 
 
6700
SED=$lt_cv_path_SED
 
6701
echo "$as_me:$LINENO: result: $SED" >&5
 
6702
echo "${ECHO_T}$SED" >&6
 
6703
 
 
6704
echo "$as_me:$LINENO: checking for egrep" >&5
 
6705
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
6706
if test "${ac_cv_prog_egrep+set}" = set; then
 
6707
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6708
else
 
6709
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
6710
    then ac_cv_prog_egrep='grep -E'
 
6711
    else ac_cv_prog_egrep='egrep'
 
6712
    fi
 
6713
fi
 
6714
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
6715
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
6716
 EGREP=$ac_cv_prog_egrep
 
6717
 
 
6718
 
 
6719
 
 
6720
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
6721
if test "${with_gnu_ld+set}" = set; then
 
6722
  withval="$with_gnu_ld"
 
6723
  test "$withval" = no || with_gnu_ld=yes
 
6724
else
 
6725
  with_gnu_ld=no
 
6726
fi;
 
6727
ac_prog=ld
 
6728
if test "$GCC" = yes; then
 
6729
  # Check if gcc -print-prog-name=ld gives a path.
 
6730
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
6731
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
6732
  case $host in
 
6733
  *-*-mingw*)
 
6734
    # gcc leaves a trailing carriage return which upsets mingw
 
6735
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
6736
  *)
 
6737
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
6738
  esac
 
6739
  case $ac_prog in
 
6740
    # Accept absolute paths.
 
6741
    [\\/]* | ?:[\\/]*)
 
6742
      re_direlt='/[^/][^/]*/\.\./'
 
6743
      # Canonicalize the pathname of ld
 
6744
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
6745
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
6746
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
6747
      done
 
6748
      test -z "$LD" && LD="$ac_prog"
 
6749
      ;;
 
6750
  "")
 
6751
    # If it fails, then pretend we aren't using GCC.
 
6752
    ac_prog=ld
 
6753
    ;;
 
6754
  *)
 
6755
    # If it is relative, then search for the first ld in PATH.
 
6756
    with_gnu_ld=unknown
 
6757
    ;;
 
6758
  esac
 
6759
elif test "$with_gnu_ld" = yes; then
 
6760
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
6761
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
6762
else
 
6763
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
6764
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
6765
fi
 
6766
if test "${lt_cv_path_LD+set}" = set; then
 
6767
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6768
else
 
6769
  if test -z "$LD"; then
 
6770
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6771
  for ac_dir in $PATH; do
 
6772
    IFS="$lt_save_ifs"
 
6773
    test -z "$ac_dir" && ac_dir=.
 
6774
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
6775
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
6776
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
6777
      # but apparently some GNU ld's only accept -v.
 
6778
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
6779
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
6780
      *GNU* | *'with BFD'*)
 
6781
        test "$with_gnu_ld" != no && break
 
6782
        ;;
 
6783
      *)
 
6784
        test "$with_gnu_ld" != yes && break
 
6785
        ;;
 
6786
      esac
 
6787
    fi
 
6788
  done
 
6789
  IFS="$lt_save_ifs"
 
6790
else
 
6791
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
6792
fi
 
6793
fi
 
6794
 
 
6795
LD="$lt_cv_path_LD"
 
6796
if test -n "$LD"; then
 
6797
  echo "$as_me:$LINENO: result: $LD" >&5
 
6798
echo "${ECHO_T}$LD" >&6
 
6799
else
 
6800
  echo "$as_me:$LINENO: result: no" >&5
 
6801
echo "${ECHO_T}no" >&6
 
6802
fi
 
6803
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
6804
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
6805
   { (exit 1); exit 1; }; }
 
6806
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
6807
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
6808
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
6809
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6810
else
 
6811
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
6812
case `$LD -v 2>&1 </dev/null` in
 
6813
*GNU* | *'with BFD'*)
 
6814
  lt_cv_prog_gnu_ld=yes
 
6815
  ;;
 
6816
*)
 
6817
  lt_cv_prog_gnu_ld=no
 
6818
  ;;
 
6819
esac
 
6820
fi
 
6821
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
6822
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
6823
with_gnu_ld=$lt_cv_prog_gnu_ld
 
6824
 
 
6825
 
 
6826
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
6827
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
6828
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
6829
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6830
else
 
6831
  lt_cv_ld_reload_flag='-r'
 
6832
fi
 
6833
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
6834
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
6835
reload_flag=$lt_cv_ld_reload_flag
 
6836
case $reload_flag in
 
6837
"" | " "*) ;;
 
6838
*) reload_flag=" $reload_flag" ;;
 
6839
esac
 
6840
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6841
 
 
6842
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
6843
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
6844
if test "${lt_cv_path_NM+set}" = set; then
 
6845
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6846
else
 
6847
  if test -n "$NM"; then
 
6848
  # Let the user override the test.
 
6849
  lt_cv_path_NM="$NM"
 
6850
else
 
6851
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6852
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
6853
    IFS="$lt_save_ifs"
 
6854
    test -z "$ac_dir" && ac_dir=.
 
6855
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
6856
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
6857
      # Check to see if the nm accepts a BSD-compat flag.
 
6858
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
6859
      #   nm: unknown option "B" ignored
 
6860
      # Tru64's nm complains that /dev/null is an invalid object file
 
6861
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
6862
      */dev/null* | *'Invalid file or object type'*)
 
6863
        lt_cv_path_NM="$tmp_nm -B"
 
6864
        break
 
6865
        ;;
 
6866
      *)
 
6867
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
6868
        */dev/null*)
 
6869
          lt_cv_path_NM="$tmp_nm -p"
 
6870
          break
 
6871
          ;;
 
6872
        *)
 
6873
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
6874
          continue # so that we can try to find one that supports BSD flags
 
6875
          ;;
 
6876
        esac
 
6877
      esac
 
6878
    fi
 
6879
  done
 
6880
  IFS="$lt_save_ifs"
 
6881
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
6882
fi
 
6883
fi
 
6884
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
6885
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
6886
NM="$lt_cv_path_NM"
 
6887
 
 
6888
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
6889
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
6890
LN_S=$as_ln_s
 
6891
if test "$LN_S" = "ln -s"; then
 
6892
  echo "$as_me:$LINENO: result: yes" >&5
 
6893
echo "${ECHO_T}yes" >&6
 
6894
else
 
6895
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
6896
echo "${ECHO_T}no, using $LN_S" >&6
 
6897
fi
 
6898
 
 
6899
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
6900
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
6901
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
6902
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6903
else
 
6904
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
6905
lt_cv_file_magic_test_file=
 
6906
lt_cv_deplibs_check_method='unknown'
 
6907
# Need to set the preceding variable on all platforms that support
 
6908
# interlibrary dependencies.
 
6909
# 'none' -- dependencies not supported.
 
6910
# `unknown' -- same as none, but documents that we really don't know.
 
6911
# 'pass_all' -- all dependencies passed with no checks.
 
6912
# 'test_compile' -- check by making test program.
 
6913
# 'file_magic [[regex]]' -- check by looking for files in library path
 
6914
# which responds to the $file_magic_cmd with a given extended regex.
 
6915
# If you have `file' or equivalent on your system and you're not sure
 
6916
# whether `pass_all' will *always* work, you probably want this one.
 
6917
 
 
6918
case $host_os in
 
6919
aix4* | aix5*)
 
6920
  lt_cv_deplibs_check_method=pass_all
 
6921
  ;;
 
6922
 
 
6923
beos*)
 
6924
  lt_cv_deplibs_check_method=pass_all
 
6925
  ;;
 
6926
 
 
6927
bsdi4*)
 
6928
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
6929
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
6930
  lt_cv_file_magic_test_file=/shlib/libc.so
 
6931
  ;;
 
6932
 
 
6933
cygwin*)
 
6934
  lt_cv_deplibs_check_method=pass_all
 
6935
  ;;
 
6936
 
 
6937
mingw* | pw32*)
 
6938
  # win32_libid is a shell function defined in ltmain.sh
 
6939
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6940
  lt_cv_file_magic_cmd='win32_libid'
 
6941
  ;;
 
6942
 
 
6943
darwin* | rhapsody*)
 
6944
  # this will be overwritten by pass_all, but leave it in just in case
 
6945
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 
6946
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
6947
  case "$host_os" in
 
6948
  rhapsody* | darwin1.[012])
 
6949
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
 
6950
    ;;
 
6951
  *) # Darwin 1.3 on
 
6952
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 
6953
    ;;
 
6954
  esac
 
6955
  lt_cv_deplibs_check_method=pass_all
 
6956
  ;;
 
6957
 
 
6958
freebsd*)
 
6959
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
6960
    case $host_cpu in
 
6961
    i*86 )
 
6962
      # Not sure whether the presence of OpenBSD here was a mistake.
 
6963
      # Let's accept both of them until this is cleared up.
 
6964
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
6965
      lt_cv_file_magic_cmd=/usr/bin/file
 
6966
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
6967
      ;;
 
6968
    esac
 
6969
  else
 
6970
    lt_cv_deplibs_check_method=pass_all
 
6971
  fi
 
6972
  ;;
 
6973
 
 
6974
gnu*)
 
6975
  lt_cv_deplibs_check_method=pass_all
 
6976
  ;;
 
6977
 
 
6978
hpux10.20* | hpux11*)
 
6979
  lt_cv_file_magic_cmd=/usr/bin/file
 
6980
  case "$host_cpu" in
 
6981
  ia64*)
 
6982
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
6983
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
6984
    ;;
 
6985
  hppa*64*)
 
6986
    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]'
 
6987
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
6988
    ;;
 
6989
  *)
 
6990
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
6991
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
6992
    ;;
 
6993
  esac
 
6994
  ;;
 
6995
 
 
6996
irix5* | irix6* | nonstopux*)
 
6997
  case $host_os in
 
6998
  irix5* | nonstopux*)
 
6999
    # this will be overridden with pass_all, but let us keep it just in case
 
7000
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
7001
    ;;
 
7002
  *)
 
7003
    case $LD in
 
7004
    *-32|*"-32 ") libmagic=32-bit;;
 
7005
    *-n32|*"-n32 ") libmagic=N32;;
 
7006
    *-64|*"-64 ") libmagic=64-bit;;
 
7007
    *) libmagic=never-match;;
 
7008
    esac
 
7009
    # this will be overridden with pass_all, but let us keep it just in case
 
7010
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
7011
    ;;
 
7012
  esac
 
7013
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
7014
  lt_cv_deplibs_check_method=pass_all
 
7015
  ;;
 
7016
 
 
7017
# This must be Linux ELF.
 
7018
linux*)
 
7019
  case $host_cpu in
 
7020
  alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
 
7021
    lt_cv_deplibs_check_method=pass_all ;;
 
7022
  # the debian people say, arm and glibc 2.3.1 works for them with pass_all
 
7023
  arm* )
 
7024
    lt_cv_deplibs_check_method=pass_all ;;
 
7025
  *)
 
7026
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
7027
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
7028
  esac
 
7029
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
7030
  ;;
 
7031
 
 
7032
netbsd*)
 
7033
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
7034
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
7035
  else
 
7036
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
7037
  fi
 
7038
  ;;
 
7039
 
 
7040
newos6*)
 
7041
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
7042
  lt_cv_file_magic_cmd=/usr/bin/file
 
7043
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
7044
  ;;
 
7045
 
 
7046
nto-qnx*)
 
7047
  lt_cv_deplibs_check_method=unknown
 
7048
  ;;
 
7049
 
 
7050
openbsd*)
 
7051
  lt_cv_file_magic_cmd=/usr/bin/file
 
7052
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
7053
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7054
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
7055
  else
 
7056
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
7057
  fi
 
7058
  ;;
 
7059
 
 
7060
osf3* | osf4* | osf5*)
 
7061
  # this will be overridden with pass_all, but let us keep it just in case
 
7062
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 
7063
  lt_cv_file_magic_test_file=/shlib/libc.so
 
7064
  lt_cv_deplibs_check_method=pass_all
 
7065
  ;;
 
7066
 
 
7067
sco3.2v5*)
 
7068
  lt_cv_deplibs_check_method=pass_all
 
7069
  ;;
 
7070
 
 
7071
solaris*)
 
7072
  lt_cv_deplibs_check_method=pass_all
 
7073
  lt_cv_file_magic_test_file=/lib/libc.so
 
7074
  ;;
 
7075
 
 
7076
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7077
  case $host_vendor in
 
7078
  motorola)
 
7079
    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]'
 
7080
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
7081
    ;;
 
7082
  ncr)
 
7083
    lt_cv_deplibs_check_method=pass_all
 
7084
    ;;
 
7085
  sequent)
 
7086
    lt_cv_file_magic_cmd='/bin/file'
 
7087
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
7088
    ;;
 
7089
  sni)
 
7090
    lt_cv_file_magic_cmd='/bin/file'
 
7091
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
7092
    lt_cv_file_magic_test_file=/lib/libc.so
 
7093
    ;;
 
7094
  siemens)
 
7095
    lt_cv_deplibs_check_method=pass_all
 
7096
    ;;
 
7097
  esac
 
7098
  ;;
 
7099
 
 
7100
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
7101
  lt_cv_deplibs_check_method=pass_all
 
7102
  ;;
 
7103
esac
 
7104
 
 
7105
fi
 
7106
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
7107
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
7108
file_magic_cmd=$lt_cv_file_magic_cmd
 
7109
deplibs_check_method=$lt_cv_deplibs_check_method
 
7110
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
7111
 
 
7112
 
 
7113
# If no C compiler was specified, use CC.
 
7114
LTCC=${LTCC-"$CC"}
 
7115
 
 
7116
# Allow CC to be a program name with arguments.
 
7117
compiler=$CC
 
7118
 
 
7119
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
7120
if test "${enable_libtool_lock+set}" = set; then
 
7121
  enableval="$enable_libtool_lock"
 
7122
 
 
7123
fi;
 
7124
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7125
 
 
7126
# Some flags need to be propagated to the compiler or linker for good
 
7127
# libtool support.
 
7128
case $host in
 
7129
ia64-*-hpux*)
 
7130
  # Find out which ABI we are using.
 
7131
  echo 'int i;' > conftest.$ac_ext
 
7132
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7133
  (eval $ac_compile) 2>&5
 
7134
  ac_status=$?
 
7135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7136
  (exit $ac_status); }; then
 
7137
    case `/usr/bin/file conftest.$ac_objext` in
 
7138
    *ELF-32*)
 
7139
      HPUX_IA64_MODE="32"
 
7140
      ;;
 
7141
    *ELF-64*)
 
7142
      HPUX_IA64_MODE="64"
 
7143
      ;;
 
7144
    esac
 
7145
  fi
 
7146
  rm -rf conftest*
 
7147
  ;;
 
7148
*-*-irix6*)
 
7149
  # Find out which ABI we are using.
 
7150
  echo '#line 7150 "configure"' > conftest.$ac_ext
 
7151
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7152
  (eval $ac_compile) 2>&5
 
7153
  ac_status=$?
 
7154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7155
  (exit $ac_status); }; then
 
7156
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
7157
    case `/usr/bin/file conftest.$ac_objext` in
 
7158
    *32-bit*)
 
7159
      LD="${LD-ld} -melf32bsmip"
 
7160
      ;;
 
7161
    *N32*)
 
7162
      LD="${LD-ld} -melf32bmipn32"
 
7163
      ;;
 
7164
    *64-bit*)
 
7165
      LD="${LD-ld} -melf64bmip"
 
7166
      ;;
 
7167
    esac
 
7168
   else
 
7169
    case `/usr/bin/file conftest.$ac_objext` in
 
7170
    *32-bit*)
 
7171
      LD="${LD-ld} -32"
 
7172
      ;;
 
7173
    *N32*)
 
7174
      LD="${LD-ld} -n32"
 
7175
      ;;
 
7176
    *64-bit*)
 
7177
      LD="${LD-ld} -64"
 
7178
      ;;
 
7179
    esac
 
7180
   fi
 
7181
  fi
 
7182
  rm -rf conftest*
 
7183
  ;;
 
7184
 
 
7185
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
7186
  # Find out which ABI we are using.
 
7187
  echo 'int i;' > conftest.$ac_ext
 
7188
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7189
  (eval $ac_compile) 2>&5
 
7190
  ac_status=$?
 
7191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7192
  (exit $ac_status); }; then
 
7193
    case "`/usr/bin/file conftest.o`" in
 
7194
    *32-bit*)
 
7195
      LINUX_64_MODE="32"
 
7196
      case $host in
 
7197
        x86_64-*linux*)
 
7198
          LD="${LD-ld} -m elf_i386"
 
7199
          ;;
 
7200
        ppc64-*linux*)
 
7201
          LD="${LD-ld} -m elf32ppclinux"
 
7202
          ;;
 
7203
        s390x-*linux*)
 
7204
          LD="${LD-ld} -m elf_s390"
 
7205
          ;;
 
7206
        sparc64-*linux*)
 
7207
          LD="${LD-ld} -m elf32_sparc"
 
7208
          ;;
 
7209
      esac
 
7210
      ;;
 
7211
    *64-bit*)
 
7212
      LINUX_64_MODE="64"
 
7213
      case $host in
 
7214
        x86_64-*linux*)
 
7215
          LD="${LD-ld} -m elf_x86_64"
 
7216
          ;;
 
7217
        ppc*-*linux*|powerpc*-*linux*)
 
7218
          LD="${LD-ld} -m elf64ppc"
 
7219
          ;;
 
7220
        s390*-*linux*)
 
7221
          LD="${LD-ld} -m elf64_s390"
 
7222
          ;;
 
7223
        sparc*-*linux*)
 
7224
          LD="${LD-ld} -m elf64_sparc"
 
7225
          ;;
 
7226
      esac
 
7227
      ;;
 
7228
    esac
 
7229
  fi
 
7230
  rm -rf conftest*
 
7231
  ;;
 
7232
 
 
7233
*-*-sco3.2v5*)
 
7234
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7235
  SAVE_CFLAGS="$CFLAGS"
 
7236
  CFLAGS="$CFLAGS -belf"
 
7237
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
7238
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
7239
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
7240
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7241
else
 
7242
  ac_ext=c
 
7243
ac_cpp='$CPP $CPPFLAGS'
 
7244
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7245
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7246
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7247
 
 
7248
     cat >conftest.$ac_ext <<_ACEOF
 
7249
/* confdefs.h.  */
 
7250
_ACEOF
 
7251
cat confdefs.h >>conftest.$ac_ext
 
7252
cat >>conftest.$ac_ext <<_ACEOF
 
7253
/* end confdefs.h.  */
 
7254
 
 
7255
int
 
7256
main ()
 
7257
{
 
7258
 
 
7259
  ;
 
7260
  return 0;
 
7261
}
 
7262
_ACEOF
 
7263
rm -f conftest.$ac_objext conftest$ac_exeext
 
7264
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7265
  (eval $ac_link) 2>conftest.er1
 
7266
  ac_status=$?
 
7267
  grep -v '^ *+' conftest.er1 >conftest.err
 
7268
  rm -f conftest.er1
 
7269
  cat conftest.err >&5
 
7270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7271
  (exit $ac_status); } &&
 
7272
         { ac_try='test -z "$ac_c_werror_flag"
 
7273
                         || test ! -s conftest.err'
 
7274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7275
  (eval $ac_try) 2>&5
 
7276
  ac_status=$?
 
7277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7278
  (exit $ac_status); }; } &&
 
7279
         { ac_try='test -s conftest$ac_exeext'
 
7280
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7281
  (eval $ac_try) 2>&5
 
7282
  ac_status=$?
 
7283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7284
  (exit $ac_status); }; }; then
 
7285
  lt_cv_cc_needs_belf=yes
 
7286
else
 
7287
  echo "$as_me: failed program was:" >&5
 
7288
sed 's/^/| /' conftest.$ac_ext >&5
 
7289
 
 
7290
lt_cv_cc_needs_belf=no
 
7291
fi
 
7292
rm -f conftest.err conftest.$ac_objext \
 
7293
      conftest$ac_exeext conftest.$ac_ext
 
7294
     ac_ext=c
 
7295
ac_cpp='$CPP $CPPFLAGS'
 
7296
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7297
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7298
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7299
 
 
7300
fi
 
7301
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
7302
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
7303
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7304
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7305
    CFLAGS="$SAVE_CFLAGS"
 
7306
  fi
 
7307
  ;;
 
7308
 
 
7309
esac
 
7310
 
 
7311
need_locks="$enable_libtool_lock"
 
7312
 
 
7313
 
 
7314
 
 
7315
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
7316
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
7317
if test "${ac_cv_header_stdc+set}" = set; then
 
7318
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7319
else
 
7320
  cat >conftest.$ac_ext <<_ACEOF
 
7321
/* confdefs.h.  */
 
7322
_ACEOF
 
7323
cat confdefs.h >>conftest.$ac_ext
 
7324
cat >>conftest.$ac_ext <<_ACEOF
 
7325
/* end confdefs.h.  */
 
7326
#include <stdlib.h>
 
7327
#include <stdarg.h>
 
7328
#include <string.h>
 
7329
#include <float.h>
 
7330
 
 
7331
int
 
7332
main ()
 
7333
{
 
7334
 
 
7335
  ;
 
7336
  return 0;
 
7337
}
 
7338
_ACEOF
 
7339
rm -f conftest.$ac_objext
 
7340
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7341
  (eval $ac_compile) 2>conftest.er1
 
7342
  ac_status=$?
 
7343
  grep -v '^ *+' conftest.er1 >conftest.err
 
7344
  rm -f conftest.er1
 
7345
  cat conftest.err >&5
 
7346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7347
  (exit $ac_status); } &&
 
7348
         { ac_try='test -z "$ac_c_werror_flag"
 
7349
                         || test ! -s conftest.err'
 
7350
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7351
  (eval $ac_try) 2>&5
 
7352
  ac_status=$?
 
7353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7354
  (exit $ac_status); }; } &&
 
7355
         { ac_try='test -s conftest.$ac_objext'
 
7356
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7357
  (eval $ac_try) 2>&5
 
7358
  ac_status=$?
 
7359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7360
  (exit $ac_status); }; }; then
 
7361
  ac_cv_header_stdc=yes
 
7362
else
 
7363
  echo "$as_me: failed program was:" >&5
 
7364
sed 's/^/| /' conftest.$ac_ext >&5
 
7365
 
 
7366
ac_cv_header_stdc=no
 
7367
fi
 
7368
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7369
 
 
7370
if test $ac_cv_header_stdc = yes; then
 
7371
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7372
  cat >conftest.$ac_ext <<_ACEOF
 
7373
/* confdefs.h.  */
 
7374
_ACEOF
 
7375
cat confdefs.h >>conftest.$ac_ext
 
7376
cat >>conftest.$ac_ext <<_ACEOF
 
7377
/* end confdefs.h.  */
 
7378
#include <string.h>
 
7379
 
 
7380
_ACEOF
 
7381
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7382
  $EGREP "memchr" >/dev/null 2>&1; then
 
7383
  :
 
7384
else
 
7385
  ac_cv_header_stdc=no
 
7386
fi
 
7387
rm -f conftest*
 
7388
 
 
7389
fi
 
7390
 
 
7391
if test $ac_cv_header_stdc = yes; then
 
7392
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7393
  cat >conftest.$ac_ext <<_ACEOF
 
7394
/* confdefs.h.  */
 
7395
_ACEOF
 
7396
cat confdefs.h >>conftest.$ac_ext
 
7397
cat >>conftest.$ac_ext <<_ACEOF
 
7398
/* end confdefs.h.  */
 
7399
#include <stdlib.h>
 
7400
 
 
7401
_ACEOF
 
7402
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7403
  $EGREP "free" >/dev/null 2>&1; then
 
7404
  :
 
7405
else
 
7406
  ac_cv_header_stdc=no
 
7407
fi
 
7408
rm -f conftest*
 
7409
 
 
7410
fi
 
7411
 
 
7412
if test $ac_cv_header_stdc = yes; then
 
7413
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7414
  if test "$cross_compiling" = yes; then
 
7415
  :
 
7416
else
 
7417
  cat >conftest.$ac_ext <<_ACEOF
 
7418
/* confdefs.h.  */
 
7419
_ACEOF
 
7420
cat confdefs.h >>conftest.$ac_ext
 
7421
cat >>conftest.$ac_ext <<_ACEOF
 
7422
/* end confdefs.h.  */
 
7423
#include <ctype.h>
 
7424
#if ((' ' & 0x0FF) == 0x020)
 
7425
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7426
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7427
#else
 
7428
# define ISLOWER(c) \
 
7429
                   (('a' <= (c) && (c) <= 'i') \
 
7430
                     || ('j' <= (c) && (c) <= 'r') \
 
7431
                     || ('s' <= (c) && (c) <= 'z'))
 
7432
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7433
#endif
 
7434
 
 
7435
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7436
int
 
7437
main ()
 
7438
{
 
7439
  int i;
 
7440
  for (i = 0; i < 256; i++)
 
7441
    if (XOR (islower (i), ISLOWER (i))
 
7442
        || toupper (i) != TOUPPER (i))
 
7443
      exit(2);
 
7444
  exit (0);
 
7445
}
 
7446
_ACEOF
 
7447
rm -f conftest$ac_exeext
 
7448
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7449
  (eval $ac_link) 2>&5
 
7450
  ac_status=$?
 
7451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7452
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7454
  (eval $ac_try) 2>&5
 
7455
  ac_status=$?
 
7456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7457
  (exit $ac_status); }; }; then
 
7458
  :
 
7459
else
 
7460
  echo "$as_me: program exited with status $ac_status" >&5
 
7461
echo "$as_me: failed program was:" >&5
 
7462
sed 's/^/| /' conftest.$ac_ext >&5
 
7463
 
 
7464
( exit $ac_status )
 
7465
ac_cv_header_stdc=no
 
7466
fi
 
7467
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7468
fi
 
7469
fi
 
7470
fi
 
7471
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
7472
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
7473
if test $ac_cv_header_stdc = yes; then
 
7474
 
 
7475
cat >>confdefs.h <<\_ACEOF
 
7476
#define STDC_HEADERS 1
 
7477
_ACEOF
 
7478
 
 
7479
fi
 
7480
 
 
7481
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7482
 
 
7483
 
 
7484
 
 
7485
 
 
7486
 
 
7487
 
 
7488
 
 
7489
 
 
7490
 
 
7491
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7492
                  inttypes.h stdint.h unistd.h
 
7493
do
 
7494
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7495
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7496
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7497
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7498
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7499
else
 
7500
  cat >conftest.$ac_ext <<_ACEOF
 
7501
/* confdefs.h.  */
 
7502
_ACEOF
 
7503
cat confdefs.h >>conftest.$ac_ext
 
7504
cat >>conftest.$ac_ext <<_ACEOF
 
7505
/* end confdefs.h.  */
 
7506
$ac_includes_default
 
7507
 
 
7508
#include <$ac_header>
 
7509
_ACEOF
 
7510
rm -f conftest.$ac_objext
 
7511
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7512
  (eval $ac_compile) 2>conftest.er1
 
7513
  ac_status=$?
 
7514
  grep -v '^ *+' conftest.er1 >conftest.err
 
7515
  rm -f conftest.er1
 
7516
  cat conftest.err >&5
 
7517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7518
  (exit $ac_status); } &&
 
7519
         { ac_try='test -z "$ac_c_werror_flag"
 
7520
                         || test ! -s conftest.err'
 
7521
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7522
  (eval $ac_try) 2>&5
 
7523
  ac_status=$?
 
7524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7525
  (exit $ac_status); }; } &&
 
7526
         { ac_try='test -s conftest.$ac_objext'
 
7527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7528
  (eval $ac_try) 2>&5
 
7529
  ac_status=$?
 
7530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7531
  (exit $ac_status); }; }; then
 
7532
  eval "$as_ac_Header=yes"
 
7533
else
 
7534
  echo "$as_me: failed program was:" >&5
 
7535
sed 's/^/| /' conftest.$ac_ext >&5
 
7536
 
 
7537
eval "$as_ac_Header=no"
 
7538
fi
 
7539
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7540
fi
 
7541
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7542
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7543
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7544
  cat >>confdefs.h <<_ACEOF
 
7545
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7546
_ACEOF
 
7547
 
 
7548
fi
 
7549
 
 
7550
done
 
7551
 
 
7552
 
 
7553
 
 
7554
for ac_header in dlfcn.h
 
7555
do
 
7556
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7557
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7558
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7559
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7560
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7562
fi
 
7563
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7564
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7565
else
 
7566
  # Is the header compilable?
 
7567
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7568
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7569
cat >conftest.$ac_ext <<_ACEOF
 
7570
/* confdefs.h.  */
 
7571
_ACEOF
 
7572
cat confdefs.h >>conftest.$ac_ext
 
7573
cat >>conftest.$ac_ext <<_ACEOF
 
7574
/* end confdefs.h.  */
 
7575
$ac_includes_default
 
7576
#include <$ac_header>
 
7577
_ACEOF
 
7578
rm -f conftest.$ac_objext
 
7579
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7580
  (eval $ac_compile) 2>conftest.er1
 
7581
  ac_status=$?
 
7582
  grep -v '^ *+' conftest.er1 >conftest.err
 
7583
  rm -f conftest.er1
 
7584
  cat conftest.err >&5
 
7585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7586
  (exit $ac_status); } &&
 
7587
         { ac_try='test -z "$ac_c_werror_flag"
 
7588
                         || test ! -s conftest.err'
 
7589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7590
  (eval $ac_try) 2>&5
 
7591
  ac_status=$?
 
7592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7593
  (exit $ac_status); }; } &&
 
7594
         { ac_try='test -s conftest.$ac_objext'
 
7595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7596
  (eval $ac_try) 2>&5
 
7597
  ac_status=$?
 
7598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7599
  (exit $ac_status); }; }; then
 
7600
  ac_header_compiler=yes
 
7601
else
 
7602
  echo "$as_me: failed program was:" >&5
 
7603
sed 's/^/| /' conftest.$ac_ext >&5
 
7604
 
 
7605
ac_header_compiler=no
 
7606
fi
 
7607
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7608
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7609
echo "${ECHO_T}$ac_header_compiler" >&6
 
7610
 
 
7611
# Is the header present?
 
7612
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7613
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7614
cat >conftest.$ac_ext <<_ACEOF
 
7615
/* confdefs.h.  */
 
7616
_ACEOF
 
7617
cat confdefs.h >>conftest.$ac_ext
 
7618
cat >>conftest.$ac_ext <<_ACEOF
 
7619
/* end confdefs.h.  */
 
7620
#include <$ac_header>
 
7621
_ACEOF
 
7622
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7623
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7624
  ac_status=$?
 
7625
  grep -v '^ *+' conftest.er1 >conftest.err
 
7626
  rm -f conftest.er1
 
7627
  cat conftest.err >&5
 
7628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7629
  (exit $ac_status); } >/dev/null; then
 
7630
  if test -s conftest.err; then
 
7631
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7632
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
7633
  else
 
7634
    ac_cpp_err=
 
7635
  fi
 
7636
else
 
7637
  ac_cpp_err=yes
 
7638
fi
 
7639
if test -z "$ac_cpp_err"; then
 
7640
  ac_header_preproc=yes
 
7641
else
 
7642
  echo "$as_me: failed program was:" >&5
 
7643
sed 's/^/| /' conftest.$ac_ext >&5
 
7644
 
 
7645
  ac_header_preproc=no
 
7646
fi
 
7647
rm -f conftest.err conftest.$ac_ext
 
7648
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7649
echo "${ECHO_T}$ac_header_preproc" >&6
 
7650
 
 
7651
# So?  What about this header?
 
7652
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7653
  yes:no: )
 
7654
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7655
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7656
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
7657
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7658
    ac_header_preproc=yes
 
7659
    ;;
 
7660
  no:yes:* )
 
7661
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7662
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7663
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7664
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7665
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7666
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7667
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7668
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7669
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7670
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7671
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7672
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
7673
    (
 
7674
      cat <<\_ASBOX
 
7675
## ------------------------------------------ ##
 
7676
## Report this to the AC_PACKAGE_NAME lists.  ##
 
7677
## ------------------------------------------ ##
 
7678
_ASBOX
 
7679
    ) |
 
7680
      sed "s/^/$as_me: WARNING:     /" >&2
 
7681
    ;;
 
7682
esac
 
7683
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7684
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7685
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7686
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7687
else
 
7688
  eval "$as_ac_Header=\$ac_header_preproc"
 
7689
fi
 
7690
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7691
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7692
 
 
7693
fi
 
7694
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7695
  cat >>confdefs.h <<_ACEOF
 
7696
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7697
_ACEOF
 
7698
 
 
7699
fi
 
7700
 
 
7701
done
 
7702
 
 
7703
ac_ext=f
 
7704
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
7705
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7706
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
7707
if test -n "$ac_tool_prefix"; then
 
7708
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
7709
  do
 
7710
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
7711
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
7712
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7713
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7714
if test "${ac_cv_prog_F77+set}" = set; then
 
7715
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7716
else
 
7717
  if test -n "$F77"; then
 
7718
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
7719
else
 
7720
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7721
for as_dir in $PATH
 
7722
do
 
7723
  IFS=$as_save_IFS
 
7724
  test -z "$as_dir" && as_dir=.
 
7725
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7726
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7727
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
7728
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7729
    break 2
 
7730
  fi
 
7731
done
 
7732
done
 
7733
 
 
7734
fi
 
7735
fi
 
7736
F77=$ac_cv_prog_F77
 
7737
if test -n "$F77"; then
 
7738
  echo "$as_me:$LINENO: result: $F77" >&5
 
7739
echo "${ECHO_T}$F77" >&6
 
7740
else
 
7741
  echo "$as_me:$LINENO: result: no" >&5
 
7742
echo "${ECHO_T}no" >&6
 
7743
fi
 
7744
 
 
7745
    test -n "$F77" && break
 
7746
  done
 
7747
fi
 
7748
if test -z "$F77"; then
 
7749
  ac_ct_F77=$F77
 
7750
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
7751
do
 
7752
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7753
set dummy $ac_prog; ac_word=$2
 
7754
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7755
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7756
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
7757
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7758
else
 
7759
  if test -n "$ac_ct_F77"; then
 
7760
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
7761
else
 
7762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7763
for as_dir in $PATH
 
7764
do
 
7765
  IFS=$as_save_IFS
 
7766
  test -z "$as_dir" && as_dir=.
 
7767
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7768
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7769
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
7770
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7771
    break 2
 
7772
  fi
 
7773
done
 
7774
done
 
7775
 
 
7776
fi
 
7777
fi
 
7778
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
7779
if test -n "$ac_ct_F77"; then
 
7780
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
7781
echo "${ECHO_T}$ac_ct_F77" >&6
 
7782
else
 
7783
  echo "$as_me:$LINENO: result: no" >&5
 
7784
echo "${ECHO_T}no" >&6
 
7785
fi
 
7786
 
 
7787
  test -n "$ac_ct_F77" && break
 
7788
done
 
7789
 
 
7790
  F77=$ac_ct_F77
 
7791
fi
 
7792
 
 
7793
 
 
7794
# Provide some information about the compiler.
 
7795
echo "$as_me:7795:" \
 
7796
     "checking for Fortran 77 compiler version" >&5
 
7797
ac_compiler=`set X $ac_compile; echo $2`
 
7798
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
7799
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
7800
  ac_status=$?
 
7801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7802
  (exit $ac_status); }
 
7803
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
7804
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
7805
  ac_status=$?
 
7806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7807
  (exit $ac_status); }
 
7808
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
7809
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
7810
  ac_status=$?
 
7811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7812
  (exit $ac_status); }
 
7813
rm -f a.out
 
7814
 
 
7815
# If we don't use `.F' as extension, the preprocessor is not run on the
 
7816
# input file.  (Note that this only needs to work for GNU compilers.)
 
7817
ac_save_ext=$ac_ext
 
7818
ac_ext=F
 
7819
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
7820
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
7821
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
7822
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7823
else
 
7824
  cat >conftest.$ac_ext <<_ACEOF
 
7825
      program main
 
7826
#ifndef __GNUC__
 
7827
       choke me
 
7828
#endif
 
7829
 
 
7830
      end
 
7831
_ACEOF
 
7832
rm -f conftest.$ac_objext
 
7833
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7834
  (eval $ac_compile) 2>conftest.er1
 
7835
  ac_status=$?
 
7836
  grep -v '^ *+' conftest.er1 >conftest.err
 
7837
  rm -f conftest.er1
 
7838
  cat conftest.err >&5
 
7839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7840
  (exit $ac_status); } &&
 
7841
         { ac_try='test -z "$ac_f77_werror_flag"
 
7842
                         || test ! -s conftest.err'
 
7843
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7844
  (eval $ac_try) 2>&5
 
7845
  ac_status=$?
 
7846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7847
  (exit $ac_status); }; } &&
 
7848
         { ac_try='test -s conftest.$ac_objext'
 
7849
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7850
  (eval $ac_try) 2>&5
 
7851
  ac_status=$?
 
7852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7853
  (exit $ac_status); }; }; then
 
7854
  ac_compiler_gnu=yes
 
7855
else
 
7856
  echo "$as_me: failed program was:" >&5
 
7857
sed 's/^/| /' conftest.$ac_ext >&5
 
7858
 
 
7859
ac_compiler_gnu=no
 
7860
fi
 
7861
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7862
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
7863
 
 
7864
fi
 
7865
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
7866
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
7867
ac_ext=$ac_save_ext
 
7868
ac_test_FFLAGS=${FFLAGS+set}
 
7869
ac_save_FFLAGS=$FFLAGS
 
7870
FFLAGS=
 
7871
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
7872
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
7873
if test "${ac_cv_prog_f77_g+set}" = set; then
 
7874
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7875
else
 
7876
  FFLAGS=-g
 
7877
cat >conftest.$ac_ext <<_ACEOF
 
7878
      program main
 
7879
 
 
7880
      end
 
7881
_ACEOF
 
7882
rm -f conftest.$ac_objext
 
7883
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7884
  (eval $ac_compile) 2>conftest.er1
 
7885
  ac_status=$?
 
7886
  grep -v '^ *+' conftest.er1 >conftest.err
 
7887
  rm -f conftest.er1
 
7888
  cat conftest.err >&5
 
7889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7890
  (exit $ac_status); } &&
 
7891
         { ac_try='test -z "$ac_f77_werror_flag"
 
7892
                         || test ! -s conftest.err'
 
7893
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7894
  (eval $ac_try) 2>&5
 
7895
  ac_status=$?
 
7896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7897
  (exit $ac_status); }; } &&
 
7898
         { ac_try='test -s conftest.$ac_objext'
 
7899
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7900
  (eval $ac_try) 2>&5
 
7901
  ac_status=$?
 
7902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7903
  (exit $ac_status); }; }; then
 
7904
  ac_cv_prog_f77_g=yes
 
7905
else
 
7906
  echo "$as_me: failed program was:" >&5
 
7907
sed 's/^/| /' conftest.$ac_ext >&5
 
7908
 
 
7909
ac_cv_prog_f77_g=no
 
7910
fi
 
7911
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7912
 
 
7913
fi
 
7914
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
7915
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
7916
if test "$ac_test_FFLAGS" = set; then
 
7917
  FFLAGS=$ac_save_FFLAGS
 
7918
elif test $ac_cv_prog_f77_g = yes; then
 
7919
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
7920
    FFLAGS="-g -O2"
 
7921
  else
 
7922
    FFLAGS="-g"
 
7923
  fi
 
7924
else
 
7925
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
7926
    FFLAGS="-O2"
 
7927
  else
 
7928
    FFLAGS=
 
7929
  fi
 
7930
fi
 
7931
 
 
7932
G77=`test $ac_compiler_gnu = yes && echo yes`
 
7933
ac_ext=c
 
7934
ac_cpp='$CPP $CPPFLAGS'
 
7935
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7936
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7937
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7938
 
 
7939
 
 
7940
 
 
7941
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
7942
 
 
7943
# find the maximum length of command line arguments
 
7944
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
7945
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
7946
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
7947
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7948
else
 
7949
    i=0
 
7950
  testring="ABCD"
 
7951
 
 
7952
  case $build_os in
 
7953
  msdosdjgpp*)
 
7954
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
7955
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
7956
    # during glob expansion).  Even if it were fixed, the result of this
 
7957
    # check would be larger than it should be.
 
7958
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
7959
    ;;
 
7960
 
 
7961
  gnu*)
 
7962
    # Under GNU Hurd, this test is not required because there is
 
7963
    # no limit to the length of command line arguments.
 
7964
    # Libtool will interpret -1 as no limit whatsoever
 
7965
    lt_cv_sys_max_cmd_len=-1;
 
7966
    ;;
 
7967
 
 
7968
  cygwin* | mingw*)
 
7969
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
7970
    # about 5 minutes as the teststring grows exponentially.
 
7971
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
7972
    # you end up with a "frozen" computer, even though with patience
 
7973
    # the test eventually succeeds (with a max line length of 256k).
 
7974
    # Instead, let's just punt: use the minimum linelength reported by
 
7975
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
7976
    lt_cv_sys_max_cmd_len=8192;
 
7977
    ;;
 
7978
 
 
7979
 *)
 
7980
    # If test is not a shell built-in, we'll probably end up computing a
 
7981
    # maximum length that is only half of the actual maximum length, but
 
7982
    # we can't tell.
 
7983
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
 
7984
               = "XX$testring") >/dev/null 2>&1 &&
 
7985
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
7986
            lt_cv_sys_max_cmd_len=$new_result &&
 
7987
            test $i != 17 # 1/2 MB should be enough
 
7988
    do
 
7989
      i=`expr $i + 1`
 
7990
      testring=$testring$testring
 
7991
    done
 
7992
    testring=
 
7993
    # Add a significant safety factor because C++ compilers can tack on massive
 
7994
    # amounts of additional arguments before passing them to the linker.
 
7995
    # It appears as though 1/2 is a usable value.
 
7996
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
7997
    ;;
 
7998
  esac
 
7999
 
 
8000
fi
 
8001
 
 
8002
if test -n $lt_cv_sys_max_cmd_len ; then
 
8003
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
8004
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
8005
else
 
8006
  echo "$as_me:$LINENO: result: none" >&5
 
8007
echo "${ECHO_T}none" >&6
 
8008
fi
 
8009
 
 
8010
 
 
8011
 
 
8012
 
 
8013
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
8014
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
8015
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
8016
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
8017
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8018
else
 
8019
 
 
8020
# These are sane defaults that work on at least a few old systems.
 
8021
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
8022
 
 
8023
# Character class describing NM global symbol codes.
 
8024
symcode='[BCDEGRST]'
 
8025
 
 
8026
# Regexp to match symbols that can be accessed directly from C.
 
8027
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
8028
 
 
8029
# Transform the above into a raw symbol and a C symbol.
 
8030
symxfrm='\1 \2\3 \3'
 
8031
 
 
8032
# Transform an extracted symbol line into a proper C declaration
 
8033
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
8034
 
 
8035
# Transform an extracted symbol line into symbol name and symbol address
 
8036
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'"
 
8037
 
 
8038
# Define system-specific variables.
 
8039
case $host_os in
 
8040
aix*)
 
8041
  symcode='[BCDT]'
 
8042
  ;;
 
8043
cygwin* | mingw* | pw32*)
 
8044
  symcode='[ABCDGISTW]'
 
8045
  ;;
 
8046
hpux*) # Its linker distinguishes data from code symbols
 
8047
  if test "$host_cpu" = ia64; then
 
8048
    symcode='[ABCDEGRST]'
 
8049
  fi
 
8050
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
8051
  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'"
 
8052
  ;;
 
8053
irix* | nonstopux*)
 
8054
  symcode='[BCDEGRST]'
 
8055
  ;;
 
8056
osf*)
 
8057
  symcode='[BCDEGQRST]'
 
8058
  ;;
 
8059
solaris* | sysv5*)
 
8060
  symcode='[BDT]'
 
8061
  ;;
 
8062
sysv4)
 
8063
  symcode='[DFNSTU]'
 
8064
  ;;
 
8065
esac
 
8066
 
 
8067
# Handle CRLF in mingw tool chain
 
8068
opt_cr=
 
8069
case $build_os in
 
8070
mingw*)
 
8071
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
8072
  ;;
 
8073
esac
 
8074
 
 
8075
# If we're using GNU nm, then use its standard symbol codes.
 
8076
case `$NM -V 2>&1` in
 
8077
*GNU* | *'with BFD'*)
 
8078
  symcode='[ABCDGISTW]' ;;
 
8079
esac
 
8080
 
 
8081
# Try without a prefix undercore, then with it.
 
8082
for ac_symprfx in "" "_"; do
 
8083
 
 
8084
  # Write the raw and C identifiers.
 
8085
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
8086
 
 
8087
  # Check to see that the pipe works correctly.
 
8088
  pipe_works=no
 
8089
 
 
8090
  rm -f conftest*
 
8091
  cat > conftest.$ac_ext <<EOF
 
8092
#ifdef __cplusplus
 
8093
extern "C" {
 
8094
#endif
 
8095
char nm_test_var;
 
8096
void nm_test_func(){}
 
8097
#ifdef __cplusplus
 
8098
}
 
8099
#endif
 
8100
int main(){nm_test_var='a';nm_test_func();return(0);}
 
8101
EOF
 
8102
 
 
8103
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8104
  (eval $ac_compile) 2>&5
 
8105
  ac_status=$?
 
8106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8107
  (exit $ac_status); }; then
 
8108
    # Now try to grab the symbols.
 
8109
    nlist=conftest.nm
 
8110
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
8111
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
8112
  ac_status=$?
 
8113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8114
  (exit $ac_status); } && test -s "$nlist"; then
 
8115
      # Try sorting and uniquifying the output.
 
8116
      if sort "$nlist" | uniq > "$nlist"T; then
 
8117
        mv -f "$nlist"T "$nlist"
 
8118
      else
 
8119
        rm -f "$nlist"T
 
8120
      fi
 
8121
 
 
8122
      # Make sure that we snagged all the symbols we need.
 
8123
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
8124
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
8125
          cat <<EOF > conftest.$ac_ext
 
8126
#ifdef __cplusplus
 
8127
extern "C" {
 
8128
#endif
 
8129
 
 
8130
EOF
 
8131
          # Now generate the symbol file.
 
8132
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
8133
 
 
8134
          cat <<EOF >> conftest.$ac_ext
 
8135
#if defined (__STDC__) && __STDC__
 
8136
# define lt_ptr_t void *
 
8137
#else
 
8138
# define lt_ptr_t char *
 
8139
# define const
 
8140
#endif
 
8141
 
 
8142
/* The mapping between symbol names and symbols. */
 
8143
const struct {
 
8144
  const char *name;
 
8145
  lt_ptr_t address;
 
8146
}
 
8147
lt_preloaded_symbols[] =
 
8148
{
 
8149
EOF
 
8150
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
8151
          cat <<\EOF >> conftest.$ac_ext
 
8152
  {0, (lt_ptr_t) 0}
 
8153
};
 
8154
 
 
8155
#ifdef __cplusplus
 
8156
}
 
8157
#endif
 
8158
EOF
 
8159
          # Now try linking the two files.
 
8160
          mv conftest.$ac_objext conftstm.$ac_objext
 
8161
          lt_save_LIBS="$LIBS"
 
8162
          lt_save_CFLAGS="$CFLAGS"
 
8163
          LIBS="conftstm.$ac_objext"
 
8164
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
8165
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8166
  (eval $ac_link) 2>&5
 
8167
  ac_status=$?
 
8168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8169
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
8170
            pipe_works=yes
 
8171
          fi
 
8172
          LIBS="$lt_save_LIBS"
 
8173
          CFLAGS="$lt_save_CFLAGS"
 
8174
        else
 
8175
          echo "cannot find nm_test_func in $nlist" >&5
 
8176
        fi
 
8177
      else
 
8178
        echo "cannot find nm_test_var in $nlist" >&5
 
8179
      fi
 
8180
    else
 
8181
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
8182
    fi
 
8183
  else
 
8184
    echo "$progname: failed program was:" >&5
 
8185
    cat conftest.$ac_ext >&5
 
8186
  fi
 
8187
  rm -f conftest* conftst*
 
8188
 
 
8189
  # Do not use the global_symbol_pipe unless it works.
 
8190
  if test "$pipe_works" = yes; then
 
8191
    break
 
8192
  else
 
8193
    lt_cv_sys_global_symbol_pipe=
 
8194
  fi
 
8195
done
 
8196
 
 
8197
fi
 
8198
 
 
8199
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
8200
  lt_cv_sys_global_symbol_to_cdecl=
 
8201
fi
 
8202
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
8203
  echo "$as_me:$LINENO: result: failed" >&5
 
8204
echo "${ECHO_T}failed" >&6
 
8205
else
 
8206
  echo "$as_me:$LINENO: result: ok" >&5
 
8207
echo "${ECHO_T}ok" >&6
 
8208
fi
 
8209
 
 
8210
echo "$as_me:$LINENO: checking for objdir" >&5
 
8211
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
8212
if test "${lt_cv_objdir+set}" = set; then
 
8213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8214
else
 
8215
  rm -f .libs 2>/dev/null
 
8216
mkdir .libs 2>/dev/null
 
8217
if test -d .libs; then
 
8218
  lt_cv_objdir=.libs
 
8219
else
 
8220
  # MS-DOS does not allow filenames that begin with a dot.
 
8221
  lt_cv_objdir=_libs
 
8222
fi
 
8223
rmdir .libs 2>/dev/null
 
8224
fi
 
8225
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
8226
echo "${ECHO_T}$lt_cv_objdir" >&6
 
8227
objdir=$lt_cv_objdir
 
8228
 
 
8229
 
 
8230
 
 
8231
 
 
8232
 
 
8233
case $host_os in
 
8234
aix3*)
 
8235
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8236
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8237
  # vanish in a puff of smoke.
 
8238
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8239
    COLLECT_NAMES=
 
8240
    export COLLECT_NAMES
 
8241
  fi
 
8242
  ;;
 
8243
esac
 
8244
 
 
8245
# Sed substitution that helps us do robust quoting.  It backslashifies
 
8246
# metacharacters that are still active within double-quoted strings.
 
8247
Xsed='sed -e s/^X//'
 
8248
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
8249
 
 
8250
# Same as above, but do not quote variable references.
 
8251
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
8252
 
 
8253
# Sed substitution to delay expansion of an escaped shell variable in a
 
8254
# double_quote_subst'ed string.
 
8255
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
8256
 
 
8257
# Sed substitution to avoid accidental globbing in evaled expressions
 
8258
no_glob_subst='s/\*/\\\*/g'
 
8259
 
 
8260
# Constants:
 
8261
rm="rm -f"
 
8262
 
 
8263
# Global variables:
 
8264
default_ofile=libtool
 
8265
can_build_shared=yes
 
8266
 
 
8267
# All known linkers require a `.a' archive for static linking (except M$VC,
 
8268
# which needs '.lib').
 
8269
libext=a
 
8270
ltmain="$ac_aux_dir/ltmain.sh"
 
8271
ofile="$default_ofile"
 
8272
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8273
 
 
8274
if test -n "$ac_tool_prefix"; then
 
8275
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
8276
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
8277
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8278
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8279
if test "${ac_cv_prog_AR+set}" = set; then
 
8280
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8281
else
 
8282
  if test -n "$AR"; then
 
8283
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
8284
else
 
8285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8286
for as_dir in $PATH
 
8287
do
 
8288
  IFS=$as_save_IFS
 
8289
  test -z "$as_dir" && as_dir=.
 
8290
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8291
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8292
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
8293
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8294
    break 2
 
8295
  fi
 
8296
done
 
8297
done
 
8298
 
 
8299
fi
 
8300
fi
 
8301
AR=$ac_cv_prog_AR
 
8302
if test -n "$AR"; then
 
8303
  echo "$as_me:$LINENO: result: $AR" >&5
 
8304
echo "${ECHO_T}$AR" >&6
 
8305
else
 
8306
  echo "$as_me:$LINENO: result: no" >&5
 
8307
echo "${ECHO_T}no" >&6
 
8308
fi
 
8309
 
 
8310
fi
 
8311
if test -z "$ac_cv_prog_AR"; then
 
8312
  ac_ct_AR=$AR
 
8313
  # Extract the first word of "ar", so it can be a program name with args.
 
8314
set dummy ar; ac_word=$2
 
8315
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8316
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8317
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
8318
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8319
else
 
8320
  if test -n "$ac_ct_AR"; then
 
8321
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
8322
else
 
8323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8324
for as_dir in $PATH
 
8325
do
 
8326
  IFS=$as_save_IFS
 
8327
  test -z "$as_dir" && as_dir=.
 
8328
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8329
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8330
    ac_cv_prog_ac_ct_AR="ar"
 
8331
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8332
    break 2
 
8333
  fi
 
8334
done
 
8335
done
 
8336
 
 
8337
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
8338
fi
 
8339
fi
 
8340
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
8341
if test -n "$ac_ct_AR"; then
 
8342
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
8343
echo "${ECHO_T}$ac_ct_AR" >&6
 
8344
else
 
8345
  echo "$as_me:$LINENO: result: no" >&5
 
8346
echo "${ECHO_T}no" >&6
 
8347
fi
 
8348
 
 
8349
  AR=$ac_ct_AR
 
8350
else
 
8351
  AR="$ac_cv_prog_AR"
 
8352
fi
 
8353
 
 
8354
if test -n "$ac_tool_prefix"; then
 
8355
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
8356
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
8357
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8358
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8359
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
8360
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8361
else
 
8362
  if test -n "$RANLIB"; then
 
8363
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
8364
else
 
8365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8366
for as_dir in $PATH
 
8367
do
 
8368
  IFS=$as_save_IFS
 
8369
  test -z "$as_dir" && as_dir=.
 
8370
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8371
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8372
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
8373
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8374
    break 2
 
8375
  fi
 
8376
done
 
8377
done
 
8378
 
 
8379
fi
 
8380
fi
 
8381
RANLIB=$ac_cv_prog_RANLIB
 
8382
if test -n "$RANLIB"; then
 
8383
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
8384
echo "${ECHO_T}$RANLIB" >&6
 
8385
else
 
8386
  echo "$as_me:$LINENO: result: no" >&5
 
8387
echo "${ECHO_T}no" >&6
 
8388
fi
 
8389
 
 
8390
fi
 
8391
if test -z "$ac_cv_prog_RANLIB"; then
 
8392
  ac_ct_RANLIB=$RANLIB
 
8393
  # Extract the first word of "ranlib", so it can be a program name with args.
 
8394
set dummy ranlib; ac_word=$2
 
8395
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8396
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8397
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
8398
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8399
else
 
8400
  if test -n "$ac_ct_RANLIB"; then
 
8401
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
8402
else
 
8403
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8404
for as_dir in $PATH
 
8405
do
 
8406
  IFS=$as_save_IFS
 
8407
  test -z "$as_dir" && as_dir=.
 
8408
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8409
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8410
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
8411
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8412
    break 2
 
8413
  fi
 
8414
done
 
8415
done
 
8416
 
 
8417
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
8418
fi
 
8419
fi
 
8420
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
8421
if test -n "$ac_ct_RANLIB"; then
 
8422
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
8423
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
8424
else
 
8425
  echo "$as_me:$LINENO: result: no" >&5
 
8426
echo "${ECHO_T}no" >&6
 
8427
fi
 
8428
 
 
8429
  RANLIB=$ac_ct_RANLIB
 
8430
else
 
8431
  RANLIB="$ac_cv_prog_RANLIB"
 
8432
fi
 
8433
 
 
8434
if test -n "$ac_tool_prefix"; then
 
8435
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
8436
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
8437
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8438
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8439
if test "${ac_cv_prog_STRIP+set}" = set; then
 
8440
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8441
else
 
8442
  if test -n "$STRIP"; then
 
8443
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
8444
else
 
8445
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8446
for as_dir in $PATH
 
8447
do
 
8448
  IFS=$as_save_IFS
 
8449
  test -z "$as_dir" && as_dir=.
 
8450
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8451
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8452
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
8453
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8454
    break 2
 
8455
  fi
 
8456
done
 
8457
done
 
8458
 
 
8459
fi
 
8460
fi
 
8461
STRIP=$ac_cv_prog_STRIP
 
8462
if test -n "$STRIP"; then
 
8463
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
8464
echo "${ECHO_T}$STRIP" >&6
 
8465
else
 
8466
  echo "$as_me:$LINENO: result: no" >&5
 
8467
echo "${ECHO_T}no" >&6
 
8468
fi
 
8469
 
 
8470
fi
 
8471
if test -z "$ac_cv_prog_STRIP"; then
 
8472
  ac_ct_STRIP=$STRIP
 
8473
  # Extract the first word of "strip", so it can be a program name with args.
 
8474
set dummy strip; ac_word=$2
 
8475
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8476
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8477
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
8478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8479
else
 
8480
  if test -n "$ac_ct_STRIP"; then
 
8481
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
8482
else
 
8483
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8484
for as_dir in $PATH
 
8485
do
 
8486
  IFS=$as_save_IFS
 
8487
  test -z "$as_dir" && as_dir=.
 
8488
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8489
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8490
    ac_cv_prog_ac_ct_STRIP="strip"
 
8491
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8492
    break 2
 
8493
  fi
 
8494
done
 
8495
done
 
8496
 
 
8497
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
8498
fi
 
8499
fi
 
8500
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
8501
if test -n "$ac_ct_STRIP"; then
 
8502
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
8503
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
8504
else
 
8505
  echo "$as_me:$LINENO: result: no" >&5
 
8506
echo "${ECHO_T}no" >&6
 
8507
fi
 
8508
 
 
8509
  STRIP=$ac_ct_STRIP
 
8510
else
 
8511
  STRIP="$ac_cv_prog_STRIP"
 
8512
fi
 
8513
 
 
8514
 
 
8515
old_CC="$CC"
 
8516
old_CFLAGS="$CFLAGS"
 
8517
 
 
8518
# Set sane defaults for various variables
 
8519
test -z "$AR" && AR=ar
 
8520
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
8521
test -z "$AS" && AS=as
 
8522
test -z "$CC" && CC=cc
 
8523
test -z "$LTCC" && LTCC=$CC
 
8524
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8525
test -z "$LD" && LD=ld
 
8526
test -z "$LN_S" && LN_S="ln -s"
 
8527
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8528
test -z "$NM" && NM=nm
 
8529
test -z "$SED" && SED=sed
 
8530
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8531
test -z "$RANLIB" && RANLIB=:
 
8532
test -z "$STRIP" && STRIP=:
 
8533
test -z "$ac_objext" && ac_objext=o
 
8534
 
 
8535
# Determine commands to create old-style static archives.
 
8536
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
8537
old_postinstall_cmds='chmod 644 $oldlib'
 
8538
old_postuninstall_cmds=
 
8539
 
 
8540
if test -n "$RANLIB"; then
 
8541
  case $host_os in
 
8542
  openbsd*)
 
8543
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
8544
    ;;
 
8545
  *)
 
8546
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
8547
    ;;
 
8548
  esac
 
8549
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
8550
fi
 
8551
 
 
8552
# Only perform the check for file, if the check method requires it
 
8553
case $deplibs_check_method in
 
8554
file_magic*)
 
8555
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8556
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
8557
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
8558
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8560
else
 
8561
  case $MAGIC_CMD in
 
8562
[\\/*] |  ?:[\\/]*)
 
8563
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8564
  ;;
 
8565
*)
 
8566
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8567
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8568
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8569
  for ac_dir in $ac_dummy; do
 
8570
    IFS="$lt_save_ifs"
 
8571
    test -z "$ac_dir" && ac_dir=.
 
8572
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8573
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8574
      if test -n "$file_magic_test_file"; then
 
8575
        case $deplibs_check_method in
 
8576
        "file_magic "*)
 
8577
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
8578
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8579
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8580
            $EGREP "$file_magic_regex" > /dev/null; then
 
8581
            :
 
8582
          else
 
8583
            cat <<EOF 1>&2
 
8584
 
 
8585
*** Warning: the command libtool uses to detect shared libraries,
 
8586
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8587
*** The result is that libtool may fail to recognize shared libraries
 
8588
*** as such.  This will affect the creation of libtool libraries that
 
8589
*** depend on shared libraries, but programs linked with such libtool
 
8590
*** libraries will work regardless of this problem.  Nevertheless, you
 
8591
*** may want to report the problem to your system manager and/or to
 
8592
*** bug-libtool@gnu.org
 
8593
 
 
8594
EOF
 
8595
          fi ;;
 
8596
        esac
 
8597
      fi
 
8598
      break
 
8599
    fi
 
8600
  done
 
8601
  IFS="$lt_save_ifs"
 
8602
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8603
  ;;
 
8604
esac
 
8605
fi
 
8606
 
 
8607
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8608
if test -n "$MAGIC_CMD"; then
 
8609
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8610
echo "${ECHO_T}$MAGIC_CMD" >&6
 
8611
else
 
8612
  echo "$as_me:$LINENO: result: no" >&5
 
8613
echo "${ECHO_T}no" >&6
 
8614
fi
 
8615
 
 
8616
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8617
  if test -n "$ac_tool_prefix"; then
 
8618
    echo "$as_me:$LINENO: checking for file" >&5
 
8619
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
8620
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8621
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8622
else
 
8623
  case $MAGIC_CMD in
 
8624
[\\/*] |  ?:[\\/]*)
 
8625
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8626
  ;;
 
8627
*)
 
8628
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8629
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8630
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8631
  for ac_dir in $ac_dummy; do
 
8632
    IFS="$lt_save_ifs"
 
8633
    test -z "$ac_dir" && ac_dir=.
 
8634
    if test -f $ac_dir/file; then
 
8635
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8636
      if test -n "$file_magic_test_file"; then
 
8637
        case $deplibs_check_method in
 
8638
        "file_magic "*)
 
8639
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
8640
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8641
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8642
            $EGREP "$file_magic_regex" > /dev/null; then
 
8643
            :
 
8644
          else
 
8645
            cat <<EOF 1>&2
 
8646
 
 
8647
*** Warning: the command libtool uses to detect shared libraries,
 
8648
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8649
*** The result is that libtool may fail to recognize shared libraries
 
8650
*** as such.  This will affect the creation of libtool libraries that
 
8651
*** depend on shared libraries, but programs linked with such libtool
 
8652
*** libraries will work regardless of this problem.  Nevertheless, you
 
8653
*** may want to report the problem to your system manager and/or to
 
8654
*** bug-libtool@gnu.org
 
8655
 
 
8656
EOF
 
8657
          fi ;;
 
8658
        esac
 
8659
      fi
 
8660
      break
 
8661
    fi
 
8662
  done
 
8663
  IFS="$lt_save_ifs"
 
8664
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8665
  ;;
 
8666
esac
 
8667
fi
 
8668
 
 
8669
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8670
if test -n "$MAGIC_CMD"; then
 
8671
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8672
echo "${ECHO_T}$MAGIC_CMD" >&6
 
8673
else
 
8674
  echo "$as_me:$LINENO: result: no" >&5
 
8675
echo "${ECHO_T}no" >&6
 
8676
fi
 
8677
 
 
8678
  else
 
8679
    MAGIC_CMD=:
 
8680
  fi
 
8681
fi
 
8682
 
 
8683
  fi
 
8684
  ;;
 
8685
esac
 
8686
 
 
8687
enable_dlopen=yes
 
8688
enable_win32_dll=no
 
8689
 
 
8690
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
8691
if test "${enable_libtool_lock+set}" = set; then
 
8692
  enableval="$enable_libtool_lock"
 
8693
 
 
8694
fi;
 
8695
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
8696
 
 
8697
 
 
8698
# Check whether --with-pic or --without-pic was given.
 
8699
if test "${with_pic+set}" = set; then
 
8700
  withval="$with_pic"
 
8701
  pic_mode="$withval"
 
8702
else
 
8703
  pic_mode=default
 
8704
fi;
 
8705
test -z "$pic_mode" && pic_mode=default
 
8706
 
 
8707
# Use C for the default configuration in the libtool script
 
8708
tagname=
 
8709
lt_save_CC="$CC"
 
8710
ac_ext=c
 
8711
ac_cpp='$CPP $CPPFLAGS'
 
8712
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8713
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8714
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8715
 
 
8716
 
 
8717
# Source file extension for C test sources.
 
8718
ac_ext=c
 
8719
 
 
8720
# Object file extension for compiled C test sources.
 
8721
objext=o
 
8722
objext=$objext
 
8723
 
 
8724
# Code to be used in simple compile tests
 
8725
lt_simple_compile_test_code="int some_variable = 0;\n"
 
8726
 
 
8727
# Code to be used in simple link tests
 
8728
lt_simple_link_test_code='int main(){return(0);}\n'
 
8729
 
 
8730
 
 
8731
# If no C compiler was specified, use CC.
 
8732
LTCC=${LTCC-"$CC"}
 
8733
 
 
8734
# Allow CC to be a program name with arguments.
 
8735
compiler=$CC
 
8736
 
 
8737
 
 
8738
#
 
8739
# Check for any special shared library compilation flags.
 
8740
#
 
8741
lt_prog_cc_shlib=
 
8742
if test "$GCC" = no; then
 
8743
  case $host_os in
 
8744
  sco3.2v5*)
 
8745
    lt_prog_cc_shlib='-belf'
 
8746
    ;;
 
8747
  esac
 
8748
fi
 
8749
if test -n "$lt_prog_cc_shlib"; then
 
8750
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
8751
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
8752
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
8753
  else
 
8754
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
8755
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
8756
    lt_cv_prog_cc_can_build_shared=no
 
8757
  fi
 
8758
fi
 
8759
 
 
8760
 
 
8761
#
 
8762
# Check to make sure the static flag actually works.
 
8763
#
 
8764
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
8765
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
8766
if test "${lt_prog_compiler_static_works+set}" = set; then
 
8767
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8768
else
 
8769
  lt_prog_compiler_static_works=no
 
8770
   save_LDFLAGS="$LDFLAGS"
 
8771
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
8772
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
8773
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8774
     # The compiler can only warn and ignore the option if not recognized
 
8775
     # So say no if there are warnings
 
8776
     if test -s conftest.err; then
 
8777
       # Append any errors to the config.log.
 
8778
       cat conftest.err 1>&5
 
8779
     else
 
8780
       lt_prog_compiler_static_works=yes
 
8781
     fi
 
8782
   fi
 
8783
   $rm conftest*
 
8784
   LDFLAGS="$save_LDFLAGS"
 
8785
 
 
8786
fi
 
8787
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
8788
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
8789
 
 
8790
if test x"$lt_prog_compiler_static_works" = xyes; then
 
8791
    :
 
8792
else
 
8793
    lt_prog_compiler_static=
 
8794
fi
 
8795
 
 
8796
 
 
8797
 
 
8798
## CAVEAT EMPTOR:
 
8799
## There is no encapsulation within the following macros, do not change
 
8800
## the running order or otherwise move them around unless you know exactly
 
8801
## what you are doing...
 
8802
 
 
8803
lt_prog_compiler_no_builtin_flag=
 
8804
 
 
8805
if test "$GCC" = yes; then
 
8806
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
8807
 
 
8808
 
 
8809
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8810
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
8811
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
8812
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8813
else
 
8814
  lt_cv_prog_compiler_rtti_exceptions=no
 
8815
  ac_outfile=conftest.$ac_objext
 
8816
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8817
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8818
   # Insert the option either (1) after the last *FLAGS variable, or
 
8819
   # (2) before a word containing "conftest.", or (3) at the end.
 
8820
   # Note that $ac_compile itself does not contain backslashes and begins
 
8821
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8822
   # The option is referenced via a variable to avoid confusing sed.
 
8823
   lt_compile=`echo "$ac_compile" | $SED \
 
8824
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8825
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8826
   -e 's:$: $lt_compiler_flag:'`
 
8827
   (eval echo "\"\$as_me:8827: $lt_compile\"" >&5)
 
8828
   (eval "$lt_compile" 2>conftest.err)
 
8829
   ac_status=$?
 
8830
   cat conftest.err >&5
 
8831
   echo "$as_me:8831: \$? = $ac_status" >&5
 
8832
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8833
     # The compiler can only warn and ignore the option if not recognized
 
8834
     # So say no if there are warnings
 
8835
     if test ! -s conftest.err; then
 
8836
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8837
     fi
 
8838
   fi
 
8839
   $rm conftest*
 
8840
 
 
8841
fi
 
8842
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8843
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
8844
 
 
8845
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8846
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8847
else
 
8848
    :
 
8849
fi
 
8850
 
 
8851
fi
 
8852
 
 
8853
lt_prog_compiler_wl=
 
8854
lt_prog_compiler_pic=
 
8855
lt_prog_compiler_static=
 
8856
 
 
8857
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
8858
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
8859
 
 
8860
  if test "$GCC" = yes; then
 
8861
    lt_prog_compiler_wl='-Wl,'
 
8862
    lt_prog_compiler_static='-static'
 
8863
 
 
8864
    case $host_os in
 
8865
      aix*)
 
8866
      # All AIX code is PIC.
 
8867
      if test "$host_cpu" = ia64; then
 
8868
        # AIX 5 now supports IA64 processor
 
8869
        lt_prog_compiler_static='-Bstatic'
 
8870
      fi
 
8871
      ;;
 
8872
 
 
8873
    amigaos*)
 
8874
      # FIXME: we need at least 68020 code to build shared libraries, but
 
8875
      # adding the `-m68020' flag to GCC prevents building anything better,
 
8876
      # like `-m68040'.
 
8877
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8878
      ;;
 
8879
 
 
8880
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8881
      # PIC is the default for these OSes.
 
8882
      ;;
 
8883
 
 
8884
    mingw* | pw32* | os2*)
 
8885
      # This hack is so that the source file can tell whether it is being
 
8886
      # built for inclusion in a dll (and should export symbols for example).
 
8887
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8888
      ;;
 
8889
 
 
8890
    darwin* | rhapsody*)
 
8891
      # PIC is the default on this platform
 
8892
      # Common symbols not allowed in MH_DYLIB files
 
8893
      lt_prog_compiler_pic='-fno-common'
 
8894
      ;;
 
8895
 
 
8896
    msdosdjgpp*)
 
8897
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8898
      # on systems that don't support them.
 
8899
      lt_prog_compiler_can_build_shared=no
 
8900
      enable_shared=no
 
8901
      ;;
 
8902
 
 
8903
    sysv4*MP*)
 
8904
      if test -d /usr/nec; then
 
8905
        lt_prog_compiler_pic=-Kconform_pic
 
8906
      fi
 
8907
      ;;
 
8908
 
 
8909
    hpux*)
 
8910
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8911
      # not for PA HP-UX.
 
8912
      case "$host_cpu" in
 
8913
      hppa*64*|ia64*)
 
8914
        # +Z the default
 
8915
        ;;
 
8916
      *)
 
8917
        lt_prog_compiler_pic='-fPIC'
 
8918
        ;;
 
8919
      esac
 
8920
      ;;
 
8921
 
 
8922
    *)
 
8923
      lt_prog_compiler_pic='-fPIC'
 
8924
      ;;
 
8925
    esac
 
8926
  else
 
8927
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8928
    case $host_os in
 
8929
    aix*)
 
8930
      lt_prog_compiler_wl='-Wl,'
 
8931
      if test "$host_cpu" = ia64; then
 
8932
        # AIX 5 now supports IA64 processor
 
8933
        lt_prog_compiler_static='-Bstatic'
 
8934
      else
 
8935
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8936
      fi
 
8937
      ;;
 
8938
 
 
8939
    mingw* | pw32* | os2*)
 
8940
      # This hack is so that the source file can tell whether it is being
 
8941
      # built for inclusion in a dll (and should export symbols for example).
 
8942
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8943
      ;;
 
8944
 
 
8945
    hpux9* | hpux10* | hpux11*)
 
8946
      lt_prog_compiler_wl='-Wl,'
 
8947
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8948
      # not for PA HP-UX.
 
8949
      case "$host_cpu" in
 
8950
      hppa*64*|ia64*)
 
8951
        # +Z the default
 
8952
        ;;
 
8953
      *)
 
8954
        lt_prog_compiler_pic='+Z'
 
8955
        ;;
 
8956
      esac
 
8957
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8958
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8959
      ;;
 
8960
 
 
8961
    irix5* | irix6* | nonstopux*)
 
8962
      lt_prog_compiler_wl='-Wl,'
 
8963
      # PIC (with -KPIC) is the default.
 
8964
      lt_prog_compiler_static='-non_shared'
 
8965
      ;;
 
8966
 
 
8967
    newsos6)
 
8968
      lt_prog_compiler_pic='-KPIC'
 
8969
      lt_prog_compiler_static='-Bstatic'
 
8970
      ;;
 
8971
 
 
8972
    linux*)
 
8973
      case $CC in
 
8974
      icc* | ecc*)
 
8975
        lt_prog_compiler_wl='-Wl,'
 
8976
        lt_prog_compiler_pic='-KPIC'
 
8977
        lt_prog_compiler_static='-static'
 
8978
        ;;
 
8979
      ccc*)
 
8980
        lt_prog_compiler_wl='-Wl,'
 
8981
        # All Alpha code is PIC.
 
8982
        lt_prog_compiler_static='-non_shared'
 
8983
        ;;
 
8984
      esac
 
8985
      ;;
 
8986
 
 
8987
    osf3* | osf4* | osf5*)
 
8988
      lt_prog_compiler_wl='-Wl,'
 
8989
      # All OSF/1 code is PIC.
 
8990
      lt_prog_compiler_static='-non_shared'
 
8991
      ;;
 
8992
 
 
8993
    sco3.2v5*)
 
8994
      lt_prog_compiler_pic='-Kpic'
 
8995
      lt_prog_compiler_static='-dn'
 
8996
      ;;
 
8997
 
 
8998
    solaris*)
 
8999
      lt_prog_compiler_wl='-Wl,'
 
9000
      lt_prog_compiler_pic='-KPIC'
 
9001
      lt_prog_compiler_static='-Bstatic'
 
9002
      ;;
 
9003
 
 
9004
    sunos4*)
 
9005
      lt_prog_compiler_wl='-Qoption ld '
 
9006
      lt_prog_compiler_pic='-PIC'
 
9007
      lt_prog_compiler_static='-Bstatic'
 
9008
      ;;
 
9009
 
 
9010
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9011
      lt_prog_compiler_wl='-Wl,'
 
9012
      lt_prog_compiler_pic='-KPIC'
 
9013
      lt_prog_compiler_static='-Bstatic'
 
9014
      ;;
 
9015
 
 
9016
    sysv4*MP*)
 
9017
      if test -d /usr/nec ;then
 
9018
        lt_prog_compiler_pic='-Kconform_pic'
 
9019
        lt_prog_compiler_static='-Bstatic'
 
9020
      fi
 
9021
      ;;
 
9022
 
 
9023
    uts4*)
 
9024
      lt_prog_compiler_pic='-pic'
 
9025
      lt_prog_compiler_static='-Bstatic'
 
9026
      ;;
 
9027
 
 
9028
    *)
 
9029
      lt_prog_compiler_can_build_shared=no
 
9030
      ;;
 
9031
    esac
 
9032
  fi
 
9033
 
 
9034
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
9035
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
9036
 
 
9037
#
 
9038
# Check to make sure the PIC flag actually works.
 
9039
#
 
9040
if test -n "$lt_prog_compiler_pic"; then
 
9041
 
 
9042
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
9043
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
9044
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
9045
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9046
else
 
9047
  lt_prog_compiler_pic_works=no
 
9048
  ac_outfile=conftest.$ac_objext
 
9049
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9050
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
9051
   # Insert the option either (1) after the last *FLAGS variable, or
 
9052
   # (2) before a word containing "conftest.", or (3) at the end.
 
9053
   # Note that $ac_compile itself does not contain backslashes and begins
 
9054
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9055
   # The option is referenced via a variable to avoid confusing sed.
 
9056
   lt_compile=`echo "$ac_compile" | $SED \
 
9057
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9058
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9059
   -e 's:$: $lt_compiler_flag:'`
 
9060
   (eval echo "\"\$as_me:9060: $lt_compile\"" >&5)
 
9061
   (eval "$lt_compile" 2>conftest.err)
 
9062
   ac_status=$?
 
9063
   cat conftest.err >&5
 
9064
   echo "$as_me:9064: \$? = $ac_status" >&5
 
9065
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9066
     # The compiler can only warn and ignore the option if not recognized
 
9067
     # So say no if there are warnings
 
9068
     if test ! -s conftest.err; then
 
9069
       lt_prog_compiler_pic_works=yes
 
9070
     fi
 
9071
   fi
 
9072
   $rm conftest*
 
9073
 
 
9074
fi
 
9075
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
9076
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
9077
 
 
9078
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
9079
    case $lt_prog_compiler_pic in
 
9080
     "" | " "*) ;;
 
9081
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
9082
     esac
 
9083
else
 
9084
    lt_prog_compiler_pic=
 
9085
     lt_prog_compiler_can_build_shared=no
 
9086
fi
 
9087
 
 
9088
fi
 
9089
case "$host_os" in
 
9090
  # For platforms which do not support PIC, -DPIC is meaningless:
 
9091
  *djgpp*)
 
9092
    lt_prog_compiler_pic=
 
9093
    ;;
 
9094
  *)
 
9095
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
9096
    ;;
 
9097
esac
 
9098
 
 
9099
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9100
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
9101
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
9102
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9103
else
 
9104
  lt_cv_prog_compiler_c_o=no
 
9105
   $rm -r conftest 2>/dev/null
 
9106
   mkdir conftest
 
9107
   cd conftest
 
9108
   mkdir out
 
9109
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9110
 
 
9111
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
9112
   # that will create temporary files in the current directory regardless of
 
9113
   # the output directory.  Thus, making CWD read-only will cause this test
 
9114
   # to fail, enabling locking or at least warning the user not to do parallel
 
9115
   # builds.
 
9116
   chmod -w .
 
9117
 
 
9118
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9119
   # Insert the option either (1) after the last *FLAGS variable, or
 
9120
   # (2) before a word containing "conftest.", or (3) at the end.
 
9121
   # Note that $ac_compile itself does not contain backslashes and begins
 
9122
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9123
   lt_compile=`echo "$ac_compile" | $SED \
 
9124
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9125
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9126
   -e 's:$: $lt_compiler_flag:'`
 
9127
   (eval echo "\"\$as_me:9127: $lt_compile\"" >&5)
 
9128
   (eval "$lt_compile" 2>out/conftest.err)
 
9129
   ac_status=$?
 
9130
   cat out/conftest.err >&5
 
9131
   echo "$as_me:9131: \$? = $ac_status" >&5
 
9132
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9133
   then
 
9134
     # The compiler can only warn and ignore the option if not recognized
 
9135
     # So say no if there are warnings
 
9136
     if test ! -s out/conftest.err; then
 
9137
       lt_cv_prog_compiler_c_o=yes
 
9138
     fi
 
9139
   fi
 
9140
   chmod u+w .
 
9141
   $rm conftest* out/*
 
9142
   rmdir out
 
9143
   cd ..
 
9144
   rmdir conftest
 
9145
   $rm conftest*
 
9146
 
 
9147
fi
 
9148
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
9149
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
9150
 
 
9151
 
 
9152
hard_links="nottested"
 
9153
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
9154
  # do not overwrite the value of need_locks provided by the user
 
9155
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
9156
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
9157
  hard_links=yes
 
9158
  $rm conftest*
 
9159
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9160
  touch conftest.a
 
9161
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9162
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9163
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
9164
echo "${ECHO_T}$hard_links" >&6
 
9165
  if test "$hard_links" = no; then
 
9166
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9167
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9168
    need_locks=warn
 
9169
  fi
 
9170
else
 
9171
  need_locks=no
 
9172
fi
 
9173
 
 
9174
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9175
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
9176
 
 
9177
  runpath_var=
 
9178
  allow_undefined_flag=
 
9179
  enable_shared_with_static_runtimes=no
 
9180
  archive_cmds=
 
9181
  archive_expsym_cmds=
 
9182
  old_archive_From_new_cmds=
 
9183
  old_archive_from_expsyms_cmds=
 
9184
  export_dynamic_flag_spec=
 
9185
  whole_archive_flag_spec=
 
9186
  thread_safe_flag_spec=
 
9187
  hardcode_libdir_flag_spec=
 
9188
  hardcode_libdir_flag_spec_ld=
 
9189
  hardcode_libdir_separator=
 
9190
  hardcode_direct=no
 
9191
  hardcode_minus_L=no
 
9192
  hardcode_shlibpath_var=unsupported
 
9193
  link_all_deplibs=unknown
 
9194
  hardcode_automatic=no
 
9195
  module_cmds=
 
9196
  module_expsym_cmds=
 
9197
  always_export_symbols=no
 
9198
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9199
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9200
  # included in the symbol list
 
9201
  include_expsyms=
 
9202
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9203
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
9204
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
9205
  # as well as any symbol that contains `d'.
 
9206
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
9207
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
9208
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
9209
  # the symbol is explicitly referenced.  Since portable code cannot
 
9210
  # rely on this symbol name, it's probably fine to never include it in
 
9211
  # preloaded symbol tables.
 
9212
  extract_expsyms_cmds=
 
9213
 
 
9214
  case $host_os in
 
9215
  cygwin* | mingw* | pw32*)
 
9216
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
9217
    # When not using gcc, we currently assume that we are using
 
9218
    # Microsoft Visual C++.
 
9219
    if test "$GCC" != yes; then
 
9220
      with_gnu_ld=no
 
9221
    fi
 
9222
    ;;
 
9223
  openbsd*)
 
9224
    with_gnu_ld=no
 
9225
    ;;
 
9226
  esac
 
9227
 
 
9228
  ld_shlibs=yes
 
9229
  if test "$with_gnu_ld" = yes; then
 
9230
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9231
    wlarc='${wl}'
 
9232
 
 
9233
    # See if GNU ld supports shared libraries.
 
9234
    case $host_os in
 
9235
    aix3* | aix4* | aix5*)
 
9236
      # On AIX/PPC, the GNU linker is very broken
 
9237
      if test "$host_cpu" != ia64; then
 
9238
        ld_shlibs=no
 
9239
        cat <<EOF 1>&2
 
9240
 
 
9241
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
9242
*** to be unable to reliably create shared libraries on AIX.
 
9243
*** Therefore, libtool is disabling shared libraries support.  If you
 
9244
*** really care for shared libraries, you may want to modify your PATH
 
9245
*** so that a non-GNU linker is found, and then restart.
 
9246
 
 
9247
EOF
 
9248
      fi
 
9249
      ;;
 
9250
 
 
9251
    amigaos*)
 
9252
      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)'
 
9253
      hardcode_libdir_flag_spec='-L$libdir'
 
9254
      hardcode_minus_L=yes
 
9255
 
 
9256
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
9257
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
9258
      # to version 4, is to share data among multiple programs linked
 
9259
      # with the same dynamic library.  Since this doesn't match the
 
9260
      # behavior of shared libraries on other platforms, we can't use
 
9261
      # them.
 
9262
      ld_shlibs=no
 
9263
      ;;
 
9264
 
 
9265
    beos*)
 
9266
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9267
        allow_undefined_flag=unsupported
 
9268
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9269
        # support --undefined.  This deserves some investigation.  FIXME
 
9270
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9271
      else
 
9272
        ld_shlibs=no
 
9273
      fi
 
9274
      ;;
 
9275
 
 
9276
    cygwin* | mingw* | pw32*)
 
9277
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9278
      # as there is no search path for DLLs.
 
9279
      hardcode_libdir_flag_spec='-L$libdir'
 
9280
      allow_undefined_flag=no
 
9281
      always_export_symbols=no
 
9282
      enable_shared_with_static_runtimes=yes
 
9283
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
9284
 
 
9285
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
9286
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
9287
        # If the export-symbols file already is a .def file (1st line
 
9288
        # is EXPORTS), use it as is; otherwise, prepend...
 
9289
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9290
          cp $export_symbols $output_objdir/$soname.def;
 
9291
        else
 
9292
          echo EXPORTS > $output_objdir/$soname.def;
 
9293
          cat $export_symbols >> $output_objdir/$soname.def;
 
9294
        fi~
 
9295
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
9296
      else
 
9297
        ld_shlibs=no
 
9298
      fi
 
9299
      ;;
 
9300
 
 
9301
    netbsd*)
 
9302
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9303
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9304
        wlarc=
 
9305
      else
 
9306
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9307
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9308
      fi
 
9309
      ;;
 
9310
 
 
9311
    solaris* | sysv5*)
 
9312
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
9313
        ld_shlibs=no
 
9314
        cat <<EOF 1>&2
 
9315
 
 
9316
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9317
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9318
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9319
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9320
*** your PATH or compiler configuration so that the native linker is
 
9321
*** used, and then restart.
 
9322
 
 
9323
EOF
 
9324
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9325
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9326
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9327
      else
 
9328
        ld_shlibs=no
 
9329
      fi
 
9330
      ;;
 
9331
 
 
9332
    sunos4*)
 
9333
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9334
      wlarc=
 
9335
      hardcode_direct=yes
 
9336
      hardcode_shlibpath_var=no
 
9337
      ;;
 
9338
 
 
9339
    *)
 
9340
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9341
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9342
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9343
      else
 
9344
        ld_shlibs=no
 
9345
      fi
 
9346
      ;;
 
9347
    esac
 
9348
 
 
9349
    if test "$ld_shlibs" = yes; then
 
9350
      runpath_var=LD_RUN_PATH
 
9351
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
9352
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
9353
      # ancient GNU ld didn't support --whole-archive et. al.
 
9354
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
9355
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9356
      else
 
9357
        whole_archive_flag_spec=
 
9358
      fi
 
9359
    fi
 
9360
  else
 
9361
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9362
    case $host_os in
 
9363
    aix3*)
 
9364
      allow_undefined_flag=unsupported
 
9365
      always_export_symbols=yes
 
9366
      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'
 
9367
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9368
      # are no directories specified by -L.
 
9369
      hardcode_minus_L=yes
 
9370
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
9371
        # Neither direct hardcoding nor static linking is supported with a
 
9372
        # broken collect2.
 
9373
        hardcode_direct=unsupported
 
9374
      fi
 
9375
      ;;
 
9376
 
 
9377
    aix4* | aix5*)
 
9378
      if test "$host_cpu" = ia64; then
 
9379
        # On IA64, the linker does run time linking by default, so we don't
 
9380
        # have to do anything special.
 
9381
        aix_use_runtimelinking=no
 
9382
        exp_sym_flag='-Bexport'
 
9383
        no_entry_flag=""
 
9384
      else
 
9385
        # If we're using GNU nm, then we don't want the "-C" option.
 
9386
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9387
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
9388
          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'
 
9389
        else
 
9390
          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'
 
9391
        fi
 
9392
 
 
9393
        # KDE requires run time linking.  Make it the default.
 
9394
        aix_use_runtimelinking=yes
 
9395
        exp_sym_flag='-bexport'
 
9396
        no_entry_flag='-bnoentry'
 
9397
      fi
 
9398
 
 
9399
      # When large executables or shared objects are built, AIX ld can
 
9400
      # have problems creating the table of contents.  If linking a library
 
9401
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9402
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9403
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9404
 
 
9405
      archive_cmds=''
 
9406
      hardcode_direct=yes
 
9407
      hardcode_libdir_separator=':'
 
9408
      link_all_deplibs=yes
 
9409
 
 
9410
      if test "$GCC" = yes; then
 
9411
        case $host_os in aix4.012|aix4.012.*)
 
9412
        # We only want to do this on AIX 4.2 and lower, the check
 
9413
        # below for broken collect2 doesn't work under 4.3+
 
9414
          collect2name=`${CC} -print-prog-name=collect2`
 
9415
          if test -f "$collect2name" && \
 
9416
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9417
          then
 
9418
          # We have reworked collect2
 
9419
          hardcode_direct=yes
 
9420
          else
 
9421
          # We have old collect2
 
9422
          hardcode_direct=unsupported
 
9423
          # It fails to find uninstalled libraries when the uninstalled
 
9424
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9425
          # to unsupported forces relinking
 
9426
          hardcode_minus_L=yes
 
9427
          hardcode_libdir_flag_spec='-L$libdir'
 
9428
          hardcode_libdir_separator=
 
9429
          fi
 
9430
        esac
 
9431
        shared_flag='-shared'
 
9432
      else
 
9433
        # not using gcc
 
9434
        if test "$host_cpu" = ia64; then
 
9435
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9436
        # chokes on -Wl,-G. The following line is correct:
 
9437
          shared_flag='-G'
 
9438
        else
 
9439
        if test "$aix_use_runtimelinking" = yes; then
 
9440
            shared_flag='-qmkshrobj ${wl}-G'
 
9441
          else
 
9442
            shared_flag='-qmkshrobj'
 
9443
        fi
 
9444
        fi
 
9445
      fi
 
9446
 
 
9447
      # Let the compiler handle the export list.
 
9448
      always_export_symbols=no
 
9449
      if test "$aix_use_runtimelinking" = yes; then
 
9450
        # Warning - without using the other runtime loading flags (-brtl),
 
9451
        # -berok will link without error, but may produce a broken library.
 
9452
        allow_undefined_flag='-berok'
 
9453
       # Determine the default libpath from the value encoded in an empty executable.
 
9454
        cat >conftest.$ac_ext <<_ACEOF
 
9455
/* confdefs.h.  */
 
9456
_ACEOF
 
9457
cat confdefs.h >>conftest.$ac_ext
 
9458
cat >>conftest.$ac_ext <<_ACEOF
 
9459
/* end confdefs.h.  */
 
9460
 
 
9461
int
 
9462
main ()
 
9463
{
 
9464
 
 
9465
  ;
 
9466
  return 0;
 
9467
}
 
9468
_ACEOF
 
9469
rm -f conftest.$ac_objext conftest$ac_exeext
 
9470
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9471
  (eval $ac_link) 2>conftest.er1
 
9472
  ac_status=$?
 
9473
  grep -v '^ *+' conftest.er1 >conftest.err
 
9474
  rm -f conftest.er1
 
9475
  cat conftest.err >&5
 
9476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9477
  (exit $ac_status); } &&
 
9478
         { ac_try='test -z "$ac_c_werror_flag"
 
9479
                         || test ! -s conftest.err'
 
9480
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9481
  (eval $ac_try) 2>&5
 
9482
  ac_status=$?
 
9483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9484
  (exit $ac_status); }; } &&
 
9485
         { ac_try='test -s conftest$ac_exeext'
 
9486
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9487
  (eval $ac_try) 2>&5
 
9488
  ac_status=$?
 
9489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9490
  (exit $ac_status); }; }; then
 
9491
 
 
9492
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9493
}'`
 
9494
# Check for a 64-bit object if we didn't find anything.
 
9495
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; }
 
9496
}'`; fi
 
9497
else
 
9498
  echo "$as_me: failed program was:" >&5
 
9499
sed 's/^/| /' conftest.$ac_ext >&5
 
9500
 
 
9501
fi
 
9502
rm -f conftest.err conftest.$ac_objext \
 
9503
      conftest$ac_exeext conftest.$ac_ext
 
9504
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9505
 
 
9506
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9507
        archive_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
 
9508
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9509
       else
 
9510
        if test "$host_cpu" = ia64; then
 
9511
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9512
          allow_undefined_flag="-z nodefs"
 
9513
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
9514
        else
 
9515
         # Determine the default libpath from the value encoded in an empty executable.
 
9516
         cat >conftest.$ac_ext <<_ACEOF
 
9517
/* confdefs.h.  */
 
9518
_ACEOF
 
9519
cat confdefs.h >>conftest.$ac_ext
 
9520
cat >>conftest.$ac_ext <<_ACEOF
 
9521
/* end confdefs.h.  */
 
9522
 
 
9523
int
 
9524
main ()
 
9525
{
 
9526
 
 
9527
  ;
 
9528
  return 0;
 
9529
}
 
9530
_ACEOF
 
9531
rm -f conftest.$ac_objext conftest$ac_exeext
 
9532
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9533
  (eval $ac_link) 2>conftest.er1
 
9534
  ac_status=$?
 
9535
  grep -v '^ *+' conftest.er1 >conftest.err
 
9536
  rm -f conftest.er1
 
9537
  cat conftest.err >&5
 
9538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9539
  (exit $ac_status); } &&
 
9540
         { ac_try='test -z "$ac_c_werror_flag"
 
9541
                         || test ! -s conftest.err'
 
9542
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9543
  (eval $ac_try) 2>&5
 
9544
  ac_status=$?
 
9545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9546
  (exit $ac_status); }; } &&
 
9547
         { ac_try='test -s conftest$ac_exeext'
 
9548
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9549
  (eval $ac_try) 2>&5
 
9550
  ac_status=$?
 
9551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9552
  (exit $ac_status); }; }; then
 
9553
 
 
9554
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9555
}'`
 
9556
# Check for a 64-bit object if we didn't find anything.
 
9557
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; }
 
9558
}'`; fi
 
9559
else
 
9560
  echo "$as_me: failed program was:" >&5
 
9561
sed 's/^/| /' conftest.$ac_ext >&5
 
9562
 
 
9563
fi
 
9564
rm -f conftest.err conftest.$ac_objext \
 
9565
      conftest$ac_exeext conftest.$ac_ext
 
9566
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9567
 
 
9568
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9569
          # Warning - without using the other run time loading flags,
 
9570
          # -berok will link without error, but may produce a broken library.
 
9571
          no_undefined_flag=' ${wl}-bernotok'
 
9572
          allow_undefined_flag=' ${wl}-berok'
 
9573
          # -bexpall does not export symbols beginning with underscore (_)
 
9574
          always_export_symbols=yes
 
9575
          # Exported symbols can be pulled into shared objects from archives
 
9576
          whole_archive_flag_spec=' '
 
9577
          archive_cmds_need_lc=yes
 
9578
          # This is similar to how AIX traditionally builds it's shared libraries.
 
9579
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
9580
        fi
 
9581
      fi
 
9582
      ;;
 
9583
 
 
9584
    amigaos*)
 
9585
      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)'
 
9586
      hardcode_libdir_flag_spec='-L$libdir'
 
9587
      hardcode_minus_L=yes
 
9588
      # see comment about different semantics on the GNU ld section
 
9589
      ld_shlibs=no
 
9590
      ;;
 
9591
 
 
9592
    bsdi4*)
 
9593
      export_dynamic_flag_spec=-rdynamic
 
9594
      ;;
 
9595
 
 
9596
    cygwin* | mingw* | pw32*)
 
9597
      # When not using gcc, we currently assume that we are using
 
9598
      # Microsoft Visual C++.
 
9599
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9600
      # no search path for DLLs.
 
9601
      hardcode_libdir_flag_spec=' '
 
9602
      allow_undefined_flag=no
 
9603
      # Tell ltmain to make .lib files, not .a files.
 
9604
      libext=lib
 
9605
      # Tell ltmain to make .dll files, not .so files.
 
9606
      shrext=".dll"
 
9607
      # FIXME: Setting linknames here is a bad hack.
 
9608
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9609
      # The linker will automatically build a .lib file if we build a DLL.
 
9610
      old_archive_From_new_cmds='true'
 
9611
      # FIXME: Should let the user specify the lib program.
 
9612
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
9613
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
9614
      enable_shared_with_static_runtimes=yes
 
9615
      ;;
 
9616
 
 
9617
    darwin* | rhapsody*)
 
9618
    if test "$GXX" = yes ; then
 
9619
      archive_cmds_need_lc=no
 
9620
      case "$host_os" in
 
9621
      rhapsody* | darwin1.[012])
 
9622
        allow_undefined_flag='-undefined suppress'
 
9623
        ;;
 
9624
      *) # Darwin 1.3 on
 
9625
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
 
9626
        ;;
 
9627
      esac
 
9628
        lt_int_apple_cc_single_mod=no
 
9629
        output_verbose_link_cmd='echo'
 
9630
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
9631
          lt_int_apple_cc_single_mod=yes
 
9632
        fi
 
9633
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9634
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9635
        else
 
9636
        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 $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9637
      fi
 
9638
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9639
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9640
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9641
          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 $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9642
        else
 
9643
          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 $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9644
        fi
 
9645
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9646
      hardcode_direct=no
 
9647
      hardcode_automatic=yes
 
9648
      hardcode_shlibpath_var=unsupported
 
9649
      whole_archive_flag_spec='-all_load $convenience'
 
9650
      link_all_deplibs=yes
 
9651
    else
 
9652
      ld_shlibs=no
 
9653
    fi
 
9654
      ;;
 
9655
 
 
9656
    dgux*)
 
9657
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9658
      hardcode_libdir_flag_spec='-L$libdir'
 
9659
      hardcode_shlibpath_var=no
 
9660
      ;;
 
9661
 
 
9662
    freebsd1*)
 
9663
      ld_shlibs=no
 
9664
      ;;
 
9665
 
 
9666
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9667
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9668
    # does not break anything, and helps significantly (at the cost of a little
 
9669
    # extra space).
 
9670
    freebsd2.2*)
 
9671
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9672
      hardcode_libdir_flag_spec='-R$libdir'
 
9673
      hardcode_direct=yes
 
9674
      hardcode_shlibpath_var=no
 
9675
      ;;
 
9676
 
 
9677
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9678
    freebsd2*)
 
9679
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9680
      hardcode_direct=yes
 
9681
      hardcode_minus_L=yes
 
9682
      hardcode_shlibpath_var=no
 
9683
      ;;
 
9684
 
 
9685
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9686
    freebsd*)
 
9687
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9688
      hardcode_libdir_flag_spec='-R$libdir'
 
9689
      hardcode_direct=yes
 
9690
      hardcode_shlibpath_var=no
 
9691
      ;;
 
9692
 
 
9693
    hpux9*)
 
9694
      if test "$GCC" = yes; then
 
9695
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9696
      else
 
9697
        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'
 
9698
      fi
 
9699
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9700
      hardcode_libdir_separator=:
 
9701
      hardcode_direct=yes
 
9702
 
 
9703
      # hardcode_minus_L: Not really in the search PATH,
 
9704
      # but as the default location of the library.
 
9705
      hardcode_minus_L=yes
 
9706
      export_dynamic_flag_spec='${wl}-E'
 
9707
      ;;
 
9708
 
 
9709
    hpux10* | hpux11*)
 
9710
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9711
        case "$host_cpu" in
 
9712
        hppa*64*|ia64*)
 
9713
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9714
          ;;
 
9715
        *)
 
9716
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9717
          ;;
 
9718
        esac
 
9719
      else
 
9720
        case "$host_cpu" in
 
9721
        hppa*64*|ia64*)
 
9722
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9723
          ;;
 
9724
        *)
 
9725
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9726
          ;;
 
9727
        esac
 
9728
      fi
 
9729
      if test "$with_gnu_ld" = no; then
 
9730
        case "$host_cpu" in
 
9731
        hppa*64*)
 
9732
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9733
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
9734
          hardcode_libdir_separator=:
 
9735
          hardcode_direct=no
 
9736
          hardcode_shlibpath_var=no
 
9737
          ;;
 
9738
        ia64*)
 
9739
          hardcode_libdir_flag_spec='-L$libdir'
 
9740
          hardcode_direct=no
 
9741
          hardcode_shlibpath_var=no
 
9742
 
 
9743
          # hardcode_minus_L: Not really in the search PATH,
 
9744
          # but as the default location of the library.
 
9745
          hardcode_minus_L=yes
 
9746
          ;;
 
9747
        *)
 
9748
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9749
          hardcode_libdir_separator=:
 
9750
          hardcode_direct=yes
 
9751
          export_dynamic_flag_spec='${wl}-E'
 
9752
 
 
9753
          # hardcode_minus_L: Not really in the search PATH,
 
9754
          # but as the default location of the library.
 
9755
          hardcode_minus_L=yes
 
9756
          ;;
 
9757
        esac
 
9758
      fi
 
9759
      ;;
 
9760
 
 
9761
    irix5* | irix6* | nonstopux*)
 
9762
      if test "$GCC" = yes; then
 
9763
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9764
      else
 
9765
        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'
 
9766
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9767
      fi
 
9768
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9769
      hardcode_libdir_separator=:
 
9770
      link_all_deplibs=yes
 
9771
      ;;
 
9772
 
 
9773
    netbsd*)
 
9774
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9775
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9776
      else
 
9777
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9778
      fi
 
9779
      hardcode_libdir_flag_spec='-R$libdir'
 
9780
      hardcode_direct=yes
 
9781
      hardcode_shlibpath_var=no
 
9782
      ;;
 
9783
 
 
9784
    newsos6)
 
9785
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9786
      hardcode_direct=yes
 
9787
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9788
      hardcode_libdir_separator=:
 
9789
      hardcode_shlibpath_var=no
 
9790
      ;;
 
9791
 
 
9792
    openbsd*)
 
9793
      hardcode_direct=yes
 
9794
      hardcode_shlibpath_var=no
 
9795
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9796
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9797
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9798
        export_dynamic_flag_spec='${wl}-E'
 
9799
      else
 
9800
       case $host_os in
 
9801
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9802
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9803
           hardcode_libdir_flag_spec='-R$libdir'
 
9804
           ;;
 
9805
         *)
 
9806
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9807
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9808
           ;;
 
9809
       esac
 
9810
      fi
 
9811
      ;;
 
9812
 
 
9813
    os2*)
 
9814
      hardcode_libdir_flag_spec='-L$libdir'
 
9815
      hardcode_minus_L=yes
 
9816
      allow_undefined_flag=unsupported
 
9817
      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 $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
9818
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9819
      ;;
 
9820
 
 
9821
    osf3*)
 
9822
      if test "$GCC" = yes; then
 
9823
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9824
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9825
      else
 
9826
        allow_undefined_flag=' -expect_unresolved \*'
 
9827
        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'
 
9828
      fi
 
9829
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9830
      hardcode_libdir_separator=:
 
9831
      ;;
 
9832
 
 
9833
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9834
      if test "$GCC" = yes; then
 
9835
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9836
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${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'
 
9837
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9838
      else
 
9839
        allow_undefined_flag=' -expect_unresolved \*'
 
9840
        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'
 
9841
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
9842
        $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'
 
9843
 
 
9844
        # Both c and cxx compiler support -rpath directly
 
9845
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9846
      fi
 
9847
      hardcode_libdir_separator=:
 
9848
      ;;
 
9849
 
 
9850
    sco3.2v5*)
 
9851
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9852
      hardcode_shlibpath_var=no
 
9853
      export_dynamic_flag_spec='${wl}-Bexport'
 
9854
      runpath_var=LD_RUN_PATH
 
9855
      hardcode_runpath_var=yes
 
9856
      ;;
 
9857
 
 
9858
    solaris*)
 
9859
      no_undefined_flag=' -z text'
 
9860
      if test "$GCC" = yes; then
 
9861
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9862
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9863
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9864
      else
 
9865
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9866
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9867
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9868
      fi
 
9869
      hardcode_libdir_flag_spec='-R$libdir'
 
9870
      hardcode_shlibpath_var=no
 
9871
      case $host_os in
 
9872
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9873
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9874
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
9875
      esac
 
9876
      link_all_deplibs=yes
 
9877
      ;;
 
9878
 
 
9879
    sunos4*)
 
9880
      if test "x$host_vendor" = xsequent; then
 
9881
        # Use $CC to link under sequent, because it throws in some extra .o
 
9882
        # files that make .init and .fini sections work.
 
9883
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9884
      else
 
9885
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9886
      fi
 
9887
      hardcode_libdir_flag_spec='-L$libdir'
 
9888
      hardcode_direct=yes
 
9889
      hardcode_minus_L=yes
 
9890
      hardcode_shlibpath_var=no
 
9891
      ;;
 
9892
 
 
9893
    sysv4)
 
9894
      case $host_vendor in
 
9895
        sni)
 
9896
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9897
          hardcode_direct=yes # is this really true???
 
9898
        ;;
 
9899
        siemens)
 
9900
          ## LD is ld it makes a PLAMLIB
 
9901
          ## CC just makes a GrossModule.
 
9902
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9903
          reload_cmds='$CC -r -o $output$reload_objs'
 
9904
          hardcode_direct=no
 
9905
        ;;
 
9906
        motorola)
 
9907
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9908
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9909
        ;;
 
9910
      esac
 
9911
      runpath_var='LD_RUN_PATH'
 
9912
      hardcode_shlibpath_var=no
 
9913
      ;;
 
9914
 
 
9915
    sysv4.3*)
 
9916
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9917
      hardcode_shlibpath_var=no
 
9918
      export_dynamic_flag_spec='-Bexport'
 
9919
      ;;
 
9920
 
 
9921
    sysv4*MP*)
 
9922
      if test -d /usr/nec; then
 
9923
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9924
        hardcode_shlibpath_var=no
 
9925
        runpath_var=LD_RUN_PATH
 
9926
        hardcode_runpath_var=yes
 
9927
        ld_shlibs=yes
 
9928
      fi
 
9929
      ;;
 
9930
 
 
9931
    sysv4.2uw2*)
 
9932
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9933
      hardcode_direct=yes
 
9934
      hardcode_minus_L=no
 
9935
      hardcode_shlibpath_var=no
 
9936
      hardcode_runpath_var=yes
 
9937
      runpath_var=LD_RUN_PATH
 
9938
      ;;
 
9939
 
 
9940
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
9941
      no_undefined_flag='${wl}-z ${wl}text'
 
9942
      if test "$GCC" = yes; then
 
9943
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9944
      else
 
9945
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9946
      fi
 
9947
      runpath_var='LD_RUN_PATH'
 
9948
      hardcode_shlibpath_var=no
 
9949
      ;;
 
9950
 
 
9951
    sysv5*)
 
9952
      no_undefined_flag=' -z text'
 
9953
      # $CC -shared without GNU ld will not create a library from C++
 
9954
      # object files and a static libstdc++, better avoid it by now
 
9955
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9956
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9957
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9958
      hardcode_libdir_flag_spec=
 
9959
      hardcode_shlibpath_var=no
 
9960
      runpath_var='LD_RUN_PATH'
 
9961
      ;;
 
9962
 
 
9963
    uts4*)
 
9964
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9965
      hardcode_libdir_flag_spec='-L$libdir'
 
9966
      hardcode_shlibpath_var=no
 
9967
      ;;
 
9968
 
 
9969
    *)
 
9970
      ld_shlibs=no
 
9971
      ;;
 
9972
    esac
 
9973
  fi
 
9974
 
 
9975
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9976
echo "${ECHO_T}$ld_shlibs" >&6
 
9977
test "$ld_shlibs" = no && can_build_shared=no
 
9978
 
 
9979
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9980
if test "$GCC" = yes; then
 
9981
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9982
fi
 
9983
 
 
9984
#
 
9985
# Do we need to explicitly link libc?
 
9986
#
 
9987
case "x$archive_cmds_need_lc" in
 
9988
x|xyes)
 
9989
  # Assume -lc should be added
 
9990
  archive_cmds_need_lc=yes
 
9991
 
 
9992
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9993
    case $archive_cmds in
 
9994
    *'~'*)
 
9995
      # FIXME: we may have to deal with multi-command sequences.
 
9996
      ;;
 
9997
    '$CC '*)
 
9998
      # Test whether the compiler implicitly links with -lc since on some
 
9999
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10000
      # to ld, don't add -lc before -lgcc.
 
10001
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
10002
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
10003
      $rm conftest*
 
10004
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10005
 
 
10006
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10007
  (eval $ac_compile) 2>&5
 
10008
  ac_status=$?
 
10009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10010
  (exit $ac_status); } 2>conftest.err; then
 
10011
        soname=conftest
 
10012
        lib=conftest
 
10013
        libobjs=conftest.$ac_objext
 
10014
        deplibs=
 
10015
        wl=$lt_prog_compiler_wl
 
10016
        compiler_flags=-v
 
10017
        linker_flags=-v
 
10018
        verstring=
 
10019
        output_objdir=.
 
10020
        libname=conftest
 
10021
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
10022
        allow_undefined_flag=
 
10023
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
10024
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10025
  ac_status=$?
 
10026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10027
  (exit $ac_status); }
 
10028
        then
 
10029
          archive_cmds_need_lc=no
 
10030
        else
 
10031
          archive_cmds_need_lc=yes
 
10032
        fi
 
10033
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
10034
      else
 
10035
        cat conftest.err 1>&5
 
10036
      fi
 
10037
      $rm conftest*
 
10038
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
10039
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
10040
      ;;
 
10041
    esac
 
10042
  fi
 
10043
  ;;
 
10044
esac
 
10045
 
 
10046
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
10047
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
10048
library_names_spec=
 
10049
libname_spec='lib$name'
 
10050
soname_spec=
 
10051
shrext=".so"
 
10052
postinstall_cmds=
 
10053
postuninstall_cmds=
 
10054
finish_cmds=
 
10055
finish_eval=
 
10056
shlibpath_var=
 
10057
shlibpath_overrides_runpath=unknown
 
10058
version_type=none
 
10059
dynamic_linker="$host_os ld.so"
 
10060
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10061
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10062
need_lib_prefix=unknown
 
10063
hardcode_into_libs=no
 
10064
 
 
10065
# when you set need_version to no, make sure it does not cause -set_version
 
10066
# flags to be left without arguments
 
10067
need_version=unknown
 
10068
 
 
10069
case $host_os in
 
10070
aix3*)
 
10071
  version_type=linux
 
10072
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10073
  shlibpath_var=LIBPATH
 
10074
 
 
10075
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10076
  soname_spec='${libname}${release}${shared_ext}$major'
 
10077
  ;;
 
10078
 
 
10079
aix4* | aix5*)
 
10080
  version_type=linux
 
10081
  need_lib_prefix=no
 
10082
  need_version=no
 
10083
  hardcode_into_libs=yes
 
10084
  if test "$host_cpu" = ia64; then
 
10085
    # AIX 5 supports IA64
 
10086
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10087
    shlibpath_var=LD_LIBRARY_PATH
 
10088
  else
 
10089
    # With GCC up to 2.95.x, collect2 would create an import file
 
10090
    # for dependence libraries.  The import file would start with
 
10091
    # the line `#! .'.  This would cause the generated library to
 
10092
    # depend on `.', always an invalid library.  This was fixed in
 
10093
    # development snapshots of GCC prior to 3.0.
 
10094
    case $host_os in
 
10095
      aix4 | aix4.[01] | aix4.[01].*)
 
10096
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10097
           echo ' yes '
 
10098
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
10099
        :
 
10100
      else
 
10101
        can_build_shared=no
 
10102
      fi
 
10103
      ;;
 
10104
    esac
 
10105
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10106
    # soname into executable. Probably we can add versioning support to
 
10107
    # collect2, so additional links can be useful in future.
 
10108
    if test "$aix_use_runtimelinking" = yes; then
 
10109
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10110
      # instead of lib<name>.a to let people know that these are not
 
10111
      # typical AIX shared libraries.
 
10112
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10113
    else
 
10114
      # We preserve .a as extension for shared libraries through AIX4.2
 
10115
      # and later when we are not doing run time linking.
 
10116
      library_names_spec='${libname}${release}.a $libname.a'
 
10117
      soname_spec='${libname}${release}${shared_ext}$major'
 
10118
    fi
 
10119
    shlibpath_var=LIBPATH
 
10120
  fi
 
10121
  ;;
 
10122
 
 
10123
amigaos*)
 
10124
  library_names_spec='$libname.ixlibrary $libname.a'
 
10125
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10126
  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'
 
10127
  ;;
 
10128
 
 
10129
beos*)
 
10130
  library_names_spec='${libname}${shared_ext}'
 
10131
  dynamic_linker="$host_os ld.so"
 
10132
  shlibpath_var=LIBRARY_PATH
 
10133
  ;;
 
10134
 
 
10135
bsdi4*)
 
10136
  version_type=linux
 
10137
  need_version=no
 
10138
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10139
  soname_spec='${libname}${release}${shared_ext}$major'
 
10140
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10141
  shlibpath_var=LD_LIBRARY_PATH
 
10142
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10143
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10144
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10145
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10146
  # libtool to hard-code these into programs
 
10147
  ;;
 
10148
 
 
10149
cygwin* | mingw* | pw32*)
 
10150
  version_type=windows
 
10151
  shrext=".dll"
 
10152
  need_version=no
 
10153
  need_lib_prefix=no
 
10154
 
 
10155
  case $GCC,$host_os in
 
10156
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
10157
    library_names_spec='$libname.dll.a'
 
10158
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10159
    postinstall_cmds='base_file=`basename \${file}`~
 
10160
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
10161
      dldir=$destdir/`dirname \$dlpath`~
 
10162
      test -d \$dldir || mkdir -p \$dldir~
 
10163
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10164
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10165
      dlpath=$dir/\$dldll~
 
10166
       $rm \$dlpath'
 
10167
    shlibpath_overrides_runpath=yes
 
10168
 
 
10169
    case $host_os in
 
10170
    cygwin*)
 
10171
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10172
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10173
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
10174
      ;;
 
10175
    mingw*)
 
10176
      # MinGW DLLs use traditional 'lib' prefix
 
10177
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10178
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10179
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
10180
        # It is most probably a Windows format PATH printed by
 
10181
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
10182
        # path with ; separators, and with drive letters. We can handle the
 
10183
        # drive letters (cygwin fileutils understands them), so leave them,
 
10184
        # especially as we might pass files found there to a mingw objdump,
 
10185
        # which wouldn't understand a cygwinified path. Ahh.
 
10186
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10187
      else
 
10188
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10189
      fi
 
10190
      ;;
 
10191
    pw32*)
 
10192
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10193
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
10194
      ;;
 
10195
    esac
 
10196
    ;;
 
10197
 
 
10198
  *)
 
10199
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10200
    ;;
 
10201
  esac
 
10202
  dynamic_linker='Win32 ld.exe'
 
10203
  # FIXME: first we should search . and the directory the executable is in
 
10204
  shlibpath_var=PATH
 
10205
  ;;
 
10206
 
 
10207
darwin* | rhapsody*)
 
10208
  dynamic_linker="$host_os dyld"
 
10209
  version_type=darwin
 
10210
  need_lib_prefix=no
 
10211
  need_version=no
 
10212
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10213
  soname_spec='${libname}${release}${major}$shared_ext'
 
10214
  shlibpath_overrides_runpath=yes
 
10215
  shlibpath_var=DYLD_LIBRARY_PATH
 
10216
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
10217
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
10218
  if test "$GCC" = yes; then
 
10219
    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"`
 
10220
  else
 
10221
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
10222
  fi
 
10223
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10224
  ;;
 
10225
 
 
10226
dgux*)
 
10227
  version_type=linux
 
10228
  need_lib_prefix=no
 
10229
  need_version=no
 
10230
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10231
  soname_spec='${libname}${release}${shared_ext}$major'
 
10232
  shlibpath_var=LD_LIBRARY_PATH
 
10233
  ;;
 
10234
 
 
10235
freebsd1*)
 
10236
  dynamic_linker=no
 
10237
  ;;
 
10238
 
 
10239
freebsd*-gnu*)
 
10240
  version_type=linux
 
10241
  need_lib_prefix=no
 
10242
  need_version=no
 
10243
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10244
  soname_spec='${libname}${release}${shared_ext}$major'
 
10245
  shlibpath_var=LD_LIBRARY_PATH
 
10246
  shlibpath_overrides_runpath=no
 
10247
  hardcode_into_libs=yes
 
10248
  dynamic_linker='GNU ld.so'
 
10249
  ;;
 
10250
 
 
10251
freebsd*)
 
10252
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
10253
  version_type=freebsd-$objformat
 
10254
  case $version_type in
 
10255
    freebsd-elf*)
 
10256
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10257
      need_version=no
 
10258
      need_lib_prefix=no
 
10259
      ;;
 
10260
    freebsd-*)
 
10261
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10262
      need_version=yes
 
10263
      ;;
 
10264
  esac
 
10265
  shlibpath_var=LD_LIBRARY_PATH
 
10266
  case $host_os in
 
10267
  freebsd2*)
 
10268
    shlibpath_overrides_runpath=yes
 
10269
    ;;
 
10270
  freebsd3.01* | freebsdelf3.01*)
 
10271
    shlibpath_overrides_runpath=yes
 
10272
    hardcode_into_libs=yes
 
10273
    ;;
 
10274
  *) # from 3.2 on
 
10275
    shlibpath_overrides_runpath=no
 
10276
    hardcode_into_libs=yes
 
10277
    ;;
 
10278
  esac
 
10279
  ;;
 
10280
 
 
10281
gnu*)
 
10282
  version_type=linux
 
10283
  need_lib_prefix=no
 
10284
  need_version=no
 
10285
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10286
  soname_spec='${libname}${release}${shared_ext}$major'
 
10287
  shlibpath_var=LD_LIBRARY_PATH
 
10288
  hardcode_into_libs=yes
 
10289
  ;;
 
10290
 
 
10291
hpux9* | hpux10* | hpux11*)
 
10292
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10293
  # link against other versions.
 
10294
  version_type=sunos
 
10295
  need_lib_prefix=no
 
10296
  need_version=no
 
10297
  case "$host_cpu" in
 
10298
  ia64*)
 
10299
    shrext='.so'
 
10300
    hardcode_into_libs=yes
 
10301
    dynamic_linker="$host_os dld.so"
 
10302
    shlibpath_var=LD_LIBRARY_PATH
 
10303
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10304
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10305
    soname_spec='${libname}${release}${shared_ext}$major'
 
10306
    if test "X$HPUX_IA64_MODE" = X32; then
 
10307
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10308
    else
 
10309
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10310
    fi
 
10311
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10312
    ;;
 
10313
   hppa*64*)
 
10314
     shrext='.sl'
 
10315
     hardcode_into_libs=yes
 
10316
     dynamic_linker="$host_os dld.sl"
 
10317
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10318
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10319
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10320
     soname_spec='${libname}${release}${shared_ext}$major'
 
10321
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10322
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10323
     ;;
 
10324
   *)
 
10325
    shrext='.sl'
 
10326
    dynamic_linker="$host_os dld.sl"
 
10327
    shlibpath_var=SHLIB_PATH
 
10328
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10329
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10330
    soname_spec='${libname}${release}${shared_ext}$major'
 
10331
    ;;
 
10332
  esac
 
10333
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
10334
  postinstall_cmds='chmod 555 $lib'
 
10335
  ;;
 
10336
 
 
10337
irix5* | irix6* | nonstopux*)
 
10338
  case $host_os in
 
10339
    nonstopux*) version_type=nonstopux ;;
 
10340
    *)
 
10341
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10342
                version_type=linux
 
10343
        else
 
10344
                version_type=irix
 
10345
        fi ;;
 
10346
  esac
 
10347
  need_lib_prefix=no
 
10348
  need_version=no
 
10349
  soname_spec='${libname}${release}${shared_ext}$major'
 
10350
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10351
  case $host_os in
 
10352
  irix5* | nonstopux*)
 
10353
    libsuff= shlibsuff=
 
10354
    ;;
 
10355
  *)
 
10356
    case $LD in # libtool.m4 will add one of these switches to LD
 
10357
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10358
      libsuff= shlibsuff= libmagic=32-bit;;
 
10359
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10360
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10361
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10362
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10363
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10364
    esac
 
10365
    ;;
 
10366
  esac
 
10367
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10368
  shlibpath_overrides_runpath=no
 
10369
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10370
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10371
  hardcode_into_libs=yes
 
10372
  ;;
 
10373
 
 
10374
# No shared lib support for Linux oldld, aout, or coff.
 
10375
linux*oldld* | linux*aout* | linux*coff*)
 
10376
  dynamic_linker=no
 
10377
  ;;
 
10378
 
 
10379
# This must be Linux ELF.
 
10380
linux*)
 
10381
  version_type=linux
 
10382
  need_lib_prefix=no
 
10383
  need_version=no
 
10384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10385
  soname_spec='${libname}${release}${shared_ext}$major'
 
10386
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10387
  libsuff=
 
10388
  if test "x$LINUX_64_MODE" = x64; then
 
10389
    # Some platforms are per default 64-bit, so there's no /lib64
 
10390
    if test -d /lib64; then
 
10391
      libsuff=64
 
10392
    fi
 
10393
  fi
 
10394
  shlibpath_var=LD_LIBRARY_PATH
 
10395
  shlibpath_overrides_runpath=no
 
10396
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
10397
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
10398
  # This implies no fast_install, which is unacceptable.
 
10399
  # Some rework will be needed to allow for fast_install
 
10400
  # before this can be enabled.
 
10401
  hardcode_into_libs=yes
 
10402
 
 
10403
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10404
  # powerpc, because MkLinux only supported shared libraries with the
 
10405
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10406
  # most powerpc-linux boxes support dynamic linking these days and
 
10407
  # people can always --disable-shared, the test was removed, and we
 
10408
  # assume the GNU/Linux dynamic linker is in use.
 
10409
  dynamic_linker='GNU/Linux ld.so'
 
10410
  ;;
 
10411
 
 
10412
netbsd*)
 
10413
  version_type=sunos
 
10414
  need_lib_prefix=no
 
10415
  need_version=no
 
10416
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10417
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10418
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10419
    dynamic_linker='NetBSD (a.out) ld.so'
 
10420
  else
 
10421
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
10422
    soname_spec='${libname}${release}${shared_ext}$major'
 
10423
    dynamic_linker='NetBSD ld.elf_so'
 
10424
  fi
 
10425
  shlibpath_var=LD_LIBRARY_PATH
 
10426
  shlibpath_overrides_runpath=yes
 
10427
  hardcode_into_libs=yes
 
10428
  ;;
 
10429
 
 
10430
newsos6)
 
10431
  version_type=linux
 
10432
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10433
  shlibpath_var=LD_LIBRARY_PATH
 
10434
  shlibpath_overrides_runpath=yes
 
10435
  ;;
 
10436
 
 
10437
nto-qnx*)
 
10438
  version_type=linux
 
10439
  need_lib_prefix=no
 
10440
  need_version=no
 
10441
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10442
  soname_spec='${libname}${release}${shared_ext}$major'
 
10443
  shlibpath_var=LD_LIBRARY_PATH
 
10444
  shlibpath_overrides_runpath=yes
 
10445
  ;;
 
10446
 
 
10447
openbsd*)
 
10448
  version_type=sunos
 
10449
  need_lib_prefix=no
 
10450
  need_version=no
 
10451
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10452
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10453
  shlibpath_var=LD_LIBRARY_PATH
 
10454
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10455
    case $host_os in
 
10456
      openbsd2.[89] | openbsd2.[89].*)
 
10457
        shlibpath_overrides_runpath=no
 
10458
        ;;
 
10459
      *)
 
10460
        shlibpath_overrides_runpath=yes
 
10461
        ;;
 
10462
      esac
 
10463
  else
 
10464
    shlibpath_overrides_runpath=yes
 
10465
  fi
 
10466
  ;;
 
10467
 
 
10468
os2*)
 
10469
  libname_spec='$name'
 
10470
  shrext=".dll"
 
10471
  need_lib_prefix=no
 
10472
  library_names_spec='$libname${shared_ext} $libname.a'
 
10473
  dynamic_linker='OS/2 ld.exe'
 
10474
  shlibpath_var=LIBPATH
 
10475
  ;;
 
10476
 
 
10477
osf3* | osf4* | osf5*)
 
10478
  version_type=osf
 
10479
  need_lib_prefix=no
 
10480
  need_version=no
 
10481
  soname_spec='${libname}${release}${shared_ext}$major'
 
10482
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10483
  shlibpath_var=LD_LIBRARY_PATH
 
10484
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10485
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10486
  ;;
 
10487
 
 
10488
sco3.2v5*)
 
10489
  version_type=osf
 
10490
  soname_spec='${libname}${release}${shared_ext}$major'
 
10491
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10492
  shlibpath_var=LD_LIBRARY_PATH
 
10493
  ;;
 
10494
 
 
10495
solaris*)
 
10496
  version_type=linux
 
10497
  need_lib_prefix=no
 
10498
  need_version=no
 
10499
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10500
  soname_spec='${libname}${release}${shared_ext}$major'
 
10501
  shlibpath_var=LD_LIBRARY_PATH
 
10502
  shlibpath_overrides_runpath=yes
 
10503
  hardcode_into_libs=yes
 
10504
  # ldd complains unless libraries are executable
 
10505
  postinstall_cmds='chmod +x $lib'
 
10506
  ;;
 
10507
 
 
10508
sunos4*)
 
10509
  version_type=sunos
 
10510
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10511
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10512
  shlibpath_var=LD_LIBRARY_PATH
 
10513
  shlibpath_overrides_runpath=yes
 
10514
  if test "$with_gnu_ld" = yes; then
 
10515
    need_lib_prefix=no
 
10516
  fi
 
10517
  need_version=yes
 
10518
  ;;
 
10519
 
 
10520
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10521
  version_type=linux
 
10522
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10523
  soname_spec='${libname}${release}${shared_ext}$major'
 
10524
  shlibpath_var=LD_LIBRARY_PATH
 
10525
  case $host_vendor in
 
10526
    sni)
 
10527
      shlibpath_overrides_runpath=no
 
10528
      need_lib_prefix=no
 
10529
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10530
      runpath_var=LD_RUN_PATH
 
10531
      ;;
 
10532
    siemens)
 
10533
      need_lib_prefix=no
 
10534
      ;;
 
10535
    motorola)
 
10536
      need_lib_prefix=no
 
10537
      need_version=no
 
10538
      shlibpath_overrides_runpath=no
 
10539
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10540
      ;;
 
10541
  esac
 
10542
  ;;
 
10543
 
 
10544
sysv4*MP*)
 
10545
  if test -d /usr/nec ;then
 
10546
    version_type=linux
 
10547
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10548
    soname_spec='$libname${shared_ext}.$major'
 
10549
    shlibpath_var=LD_LIBRARY_PATH
 
10550
  fi
 
10551
  ;;
 
10552
 
 
10553
uts4*)
 
10554
  version_type=linux
 
10555
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10556
  soname_spec='${libname}${release}${shared_ext}$major'
 
10557
  shlibpath_var=LD_LIBRARY_PATH
 
10558
  ;;
 
10559
 
 
10560
*)
 
10561
  dynamic_linker=no
 
10562
  ;;
 
10563
esac
 
10564
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10565
echo "${ECHO_T}$dynamic_linker" >&6
 
10566
test "$dynamic_linker" = no && can_build_shared=no
 
10567
 
 
10568
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10569
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
10570
hardcode_action=
 
10571
if test -n "$hardcode_libdir_flag_spec" || \
 
10572
   test -n "$runpath_var " || \
 
10573
   test "X$hardcode_automatic"="Xyes" ; then
 
10574
 
 
10575
  # We can hardcode non-existant directories.
 
10576
  if test "$hardcode_direct" != no &&
 
10577
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10578
     # have to relink, otherwise we might link with an installed library
 
10579
     # when we should be linking with a yet-to-be-installed one
 
10580
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10581
     test "$hardcode_minus_L" != no; then
 
10582
    # Linking always hardcodes the temporary library directory.
 
10583
    hardcode_action=relink
 
10584
  else
 
10585
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10586
    hardcode_action=immediate
 
10587
  fi
 
10588
else
 
10589
  # We cannot hardcode anything, or else we can only hardcode existing
 
10590
  # directories.
 
10591
  hardcode_action=unsupported
 
10592
fi
 
10593
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
10594
echo "${ECHO_T}$hardcode_action" >&6
 
10595
 
 
10596
if test "$hardcode_action" = relink; then
 
10597
  # Fast installation is not supported
 
10598
  enable_fast_install=no
 
10599
elif test "$shlibpath_overrides_runpath" = yes ||
 
10600
     test "$enable_shared" = no; then
 
10601
  # Fast installation is not necessary
 
10602
  enable_fast_install=needless
 
10603
fi
 
10604
 
 
10605
striplib=
 
10606
old_striplib=
 
10607
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
10608
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
10609
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
10610
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10611
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10612
  echo "$as_me:$LINENO: result: yes" >&5
 
10613
echo "${ECHO_T}yes" >&6
 
10614
else
 
10615
# FIXME - insert some real tests, host_os isn't really good enough
 
10616
  case $host_os in
 
10617
   darwin*)
 
10618
       if test -n "$STRIP" ; then
 
10619
         striplib="$STRIP -x"
 
10620
         echo "$as_me:$LINENO: result: yes" >&5
 
10621
echo "${ECHO_T}yes" >&6
 
10622
       else
 
10623
  echo "$as_me:$LINENO: result: no" >&5
 
10624
echo "${ECHO_T}no" >&6
 
10625
fi
 
10626
       ;;
 
10627
   *)
 
10628
  echo "$as_me:$LINENO: result: no" >&5
 
10629
echo "${ECHO_T}no" >&6
 
10630
    ;;
 
10631
  esac
 
10632
fi
 
10633
 
 
10634
if test "x$enable_dlopen" != xyes; then
 
10635
  enable_dlopen=unknown
 
10636
  enable_dlopen_self=unknown
 
10637
  enable_dlopen_self_static=unknown
 
10638
else
 
10639
  lt_cv_dlopen=no
 
10640
  lt_cv_dlopen_libs=
 
10641
 
 
10642
  case $host_os in
 
10643
  beos*)
 
10644
    lt_cv_dlopen="load_add_on"
 
10645
    lt_cv_dlopen_libs=
 
10646
    lt_cv_dlopen_self=yes
 
10647
    ;;
 
10648
 
 
10649
  mingw* | pw32*)
 
10650
    lt_cv_dlopen="LoadLibrary"
 
10651
    lt_cv_dlopen_libs=
 
10652
   ;;
 
10653
 
 
10654
  cygwin*)
 
10655
    lt_cv_dlopen="dlopen"
 
10656
    lt_cv_dlopen_libs=
 
10657
   ;;
 
10658
 
 
10659
  darwin*)
 
10660
  # if libdl is installed we need to link against it
 
10661
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10662
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
10663
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10664
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10665
else
 
10666
  ac_check_lib_save_LIBS=$LIBS
 
10667
LIBS="-ldl  $LIBS"
 
10668
cat >conftest.$ac_ext <<_ACEOF
 
10669
/* confdefs.h.  */
 
10670
_ACEOF
 
10671
cat confdefs.h >>conftest.$ac_ext
 
10672
cat >>conftest.$ac_ext <<_ACEOF
 
10673
/* end confdefs.h.  */
 
10674
 
 
10675
/* Override any gcc2 internal prototype to avoid an error.  */
 
10676
#ifdef __cplusplus
 
10677
extern "C"
 
10678
#endif
 
10679
/* We use char because int might match the return type of a gcc2
 
10680
   builtin and then its argument prototype would still apply.  */
 
10681
char dlopen ();
 
10682
int
 
10683
main ()
 
10684
{
 
10685
dlopen ();
 
10686
  ;
 
10687
  return 0;
 
10688
}
 
10689
_ACEOF
 
10690
rm -f conftest.$ac_objext conftest$ac_exeext
 
10691
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10692
  (eval $ac_link) 2>conftest.er1
 
10693
  ac_status=$?
 
10694
  grep -v '^ *+' conftest.er1 >conftest.err
 
10695
  rm -f conftest.er1
 
10696
  cat conftest.err >&5
 
10697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10698
  (exit $ac_status); } &&
 
10699
         { ac_try='test -z "$ac_c_werror_flag"
 
10700
                         || test ! -s conftest.err'
 
10701
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10702
  (eval $ac_try) 2>&5
 
10703
  ac_status=$?
 
10704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10705
  (exit $ac_status); }; } &&
 
10706
         { ac_try='test -s conftest$ac_exeext'
 
10707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10708
  (eval $ac_try) 2>&5
 
10709
  ac_status=$?
 
10710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10711
  (exit $ac_status); }; }; then
 
10712
  ac_cv_lib_dl_dlopen=yes
 
10713
else
 
10714
  echo "$as_me: failed program was:" >&5
 
10715
sed 's/^/| /' conftest.$ac_ext >&5
 
10716
 
 
10717
ac_cv_lib_dl_dlopen=no
 
10718
fi
 
10719
rm -f conftest.err conftest.$ac_objext \
 
10720
      conftest$ac_exeext conftest.$ac_ext
 
10721
LIBS=$ac_check_lib_save_LIBS
 
10722
fi
 
10723
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10724
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
10725
if test $ac_cv_lib_dl_dlopen = yes; then
 
10726
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10727
else
 
10728
 
 
10729
    lt_cv_dlopen="dyld"
 
10730
    lt_cv_dlopen_libs=
 
10731
    lt_cv_dlopen_self=yes
 
10732
 
 
10733
fi
 
10734
 
 
10735
   ;;
 
10736
 
 
10737
  *)
 
10738
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
10739
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
10740
if test "${ac_cv_func_shl_load+set}" = set; then
 
10741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10742
else
 
10743
  cat >conftest.$ac_ext <<_ACEOF
 
10744
/* confdefs.h.  */
 
10745
_ACEOF
 
10746
cat confdefs.h >>conftest.$ac_ext
 
10747
cat >>conftest.$ac_ext <<_ACEOF
 
10748
/* end confdefs.h.  */
 
10749
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10750
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10751
#define shl_load innocuous_shl_load
 
10752
 
 
10753
/* System header to define __stub macros and hopefully few prototypes,
 
10754
    which can conflict with char shl_load (); below.
 
10755
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10756
    <limits.h> exists even on freestanding compilers.  */
 
10757
 
 
10758
#ifdef __STDC__
 
10759
# include <limits.h>
 
10760
#else
 
10761
# include <assert.h>
 
10762
#endif
 
10763
 
 
10764
#undef shl_load
 
10765
 
 
10766
/* Override any gcc2 internal prototype to avoid an error.  */
 
10767
#ifdef __cplusplus
 
10768
extern "C"
 
10769
{
 
10770
#endif
 
10771
/* We use char because int might match the return type of a gcc2
 
10772
   builtin and then its argument prototype would still apply.  */
 
10773
char shl_load ();
 
10774
/* The GNU C library defines this for functions which it implements
 
10775
    to always fail with ENOSYS.  Some functions are actually named
 
10776
    something starting with __ and the normal name is an alias.  */
 
10777
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
10778
choke me
 
10779
#else
 
10780
char (*f) () = shl_load;
 
10781
#endif
 
10782
#ifdef __cplusplus
 
10783
}
 
10784
#endif
 
10785
 
 
10786
int
 
10787
main ()
 
10788
{
 
10789
return f != shl_load;
 
10790
  ;
 
10791
  return 0;
 
10792
}
 
10793
_ACEOF
 
10794
rm -f conftest.$ac_objext conftest$ac_exeext
 
10795
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10796
  (eval $ac_link) 2>conftest.er1
 
10797
  ac_status=$?
 
10798
  grep -v '^ *+' conftest.er1 >conftest.err
 
10799
  rm -f conftest.er1
 
10800
  cat conftest.err >&5
 
10801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10802
  (exit $ac_status); } &&
 
10803
         { ac_try='test -z "$ac_c_werror_flag"
 
10804
                         || test ! -s conftest.err'
 
10805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10806
  (eval $ac_try) 2>&5
 
10807
  ac_status=$?
 
10808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10809
  (exit $ac_status); }; } &&
 
10810
         { ac_try='test -s conftest$ac_exeext'
 
10811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10812
  (eval $ac_try) 2>&5
 
10813
  ac_status=$?
 
10814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10815
  (exit $ac_status); }; }; then
 
10816
  ac_cv_func_shl_load=yes
 
10817
else
 
10818
  echo "$as_me: failed program was:" >&5
 
10819
sed 's/^/| /' conftest.$ac_ext >&5
 
10820
 
 
10821
ac_cv_func_shl_load=no
 
10822
fi
 
10823
rm -f conftest.err conftest.$ac_objext \
 
10824
      conftest$ac_exeext conftest.$ac_ext
 
10825
fi
 
10826
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10827
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
10828
if test $ac_cv_func_shl_load = yes; then
 
10829
  lt_cv_dlopen="shl_load"
 
10830
else
 
10831
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10832
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
10833
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10834
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10835
else
 
10836
  ac_check_lib_save_LIBS=$LIBS
 
10837
LIBS="-ldld  $LIBS"
 
10838
cat >conftest.$ac_ext <<_ACEOF
 
10839
/* confdefs.h.  */
 
10840
_ACEOF
 
10841
cat confdefs.h >>conftest.$ac_ext
 
10842
cat >>conftest.$ac_ext <<_ACEOF
 
10843
/* end confdefs.h.  */
 
10844
 
 
10845
/* Override any gcc2 internal prototype to avoid an error.  */
 
10846
#ifdef __cplusplus
 
10847
extern "C"
 
10848
#endif
 
10849
/* We use char because int might match the return type of a gcc2
 
10850
   builtin and then its argument prototype would still apply.  */
 
10851
char shl_load ();
 
10852
int
 
10853
main ()
 
10854
{
 
10855
shl_load ();
 
10856
  ;
 
10857
  return 0;
 
10858
}
 
10859
_ACEOF
 
10860
rm -f conftest.$ac_objext conftest$ac_exeext
 
10861
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10862
  (eval $ac_link) 2>conftest.er1
 
10863
  ac_status=$?
 
10864
  grep -v '^ *+' conftest.er1 >conftest.err
 
10865
  rm -f conftest.er1
 
10866
  cat conftest.err >&5
 
10867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10868
  (exit $ac_status); } &&
 
10869
         { ac_try='test -z "$ac_c_werror_flag"
 
10870
                         || test ! -s conftest.err'
 
10871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10872
  (eval $ac_try) 2>&5
 
10873
  ac_status=$?
 
10874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10875
  (exit $ac_status); }; } &&
 
10876
         { ac_try='test -s conftest$ac_exeext'
 
10877
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10878
  (eval $ac_try) 2>&5
 
10879
  ac_status=$?
 
10880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10881
  (exit $ac_status); }; }; then
 
10882
  ac_cv_lib_dld_shl_load=yes
 
10883
else
 
10884
  echo "$as_me: failed program was:" >&5
 
10885
sed 's/^/| /' conftest.$ac_ext >&5
 
10886
 
 
10887
ac_cv_lib_dld_shl_load=no
 
10888
fi
 
10889
rm -f conftest.err conftest.$ac_objext \
 
10890
      conftest$ac_exeext conftest.$ac_ext
 
10891
LIBS=$ac_check_lib_save_LIBS
 
10892
fi
 
10893
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10894
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
10895
if test $ac_cv_lib_dld_shl_load = yes; then
 
10896
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
10897
else
 
10898
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
10899
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
10900
if test "${ac_cv_func_dlopen+set}" = set; then
 
10901
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10902
else
 
10903
  cat >conftest.$ac_ext <<_ACEOF
 
10904
/* confdefs.h.  */
 
10905
_ACEOF
 
10906
cat confdefs.h >>conftest.$ac_ext
 
10907
cat >>conftest.$ac_ext <<_ACEOF
 
10908
/* end confdefs.h.  */
 
10909
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10910
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10911
#define dlopen innocuous_dlopen
 
10912
 
 
10913
/* System header to define __stub macros and hopefully few prototypes,
 
10914
    which can conflict with char dlopen (); below.
 
10915
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10916
    <limits.h> exists even on freestanding compilers.  */
 
10917
 
 
10918
#ifdef __STDC__
 
10919
# include <limits.h>
 
10920
#else
 
10921
# include <assert.h>
 
10922
#endif
 
10923
 
 
10924
#undef dlopen
 
10925
 
 
10926
/* Override any gcc2 internal prototype to avoid an error.  */
 
10927
#ifdef __cplusplus
 
10928
extern "C"
 
10929
{
 
10930
#endif
 
10931
/* We use char because int might match the return type of a gcc2
 
10932
   builtin and then its argument prototype would still apply.  */
 
10933
char dlopen ();
 
10934
/* The GNU C library defines this for functions which it implements
 
10935
    to always fail with ENOSYS.  Some functions are actually named
 
10936
    something starting with __ and the normal name is an alias.  */
 
10937
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
10938
choke me
 
10939
#else
 
10940
char (*f) () = dlopen;
 
10941
#endif
 
10942
#ifdef __cplusplus
 
10943
}
 
10944
#endif
 
10945
 
 
10946
int
 
10947
main ()
 
10948
{
 
10949
return f != dlopen;
 
10950
  ;
 
10951
  return 0;
 
10952
}
 
10953
_ACEOF
 
10954
rm -f conftest.$ac_objext conftest$ac_exeext
 
10955
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10956
  (eval $ac_link) 2>conftest.er1
 
10957
  ac_status=$?
 
10958
  grep -v '^ *+' conftest.er1 >conftest.err
 
10959
  rm -f conftest.er1
 
10960
  cat conftest.err >&5
 
10961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10962
  (exit $ac_status); } &&
 
10963
         { ac_try='test -z "$ac_c_werror_flag"
 
10964
                         || test ! -s conftest.err'
 
10965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10966
  (eval $ac_try) 2>&5
 
10967
  ac_status=$?
 
10968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10969
  (exit $ac_status); }; } &&
 
10970
         { ac_try='test -s conftest$ac_exeext'
 
10971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10972
  (eval $ac_try) 2>&5
 
10973
  ac_status=$?
 
10974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10975
  (exit $ac_status); }; }; then
 
10976
  ac_cv_func_dlopen=yes
 
10977
else
 
10978
  echo "$as_me: failed program was:" >&5
 
10979
sed 's/^/| /' conftest.$ac_ext >&5
 
10980
 
 
10981
ac_cv_func_dlopen=no
 
10982
fi
 
10983
rm -f conftest.err conftest.$ac_objext \
 
10984
      conftest$ac_exeext conftest.$ac_ext
 
10985
fi
 
10986
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10987
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
10988
if test $ac_cv_func_dlopen = yes; then
 
10989
  lt_cv_dlopen="dlopen"
 
10990
else
 
10991
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10992
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
10993
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10994
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10995
else
 
10996
  ac_check_lib_save_LIBS=$LIBS
 
10997
LIBS="-ldl  $LIBS"
 
10998
cat >conftest.$ac_ext <<_ACEOF
 
10999
/* confdefs.h.  */
 
11000
_ACEOF
 
11001
cat confdefs.h >>conftest.$ac_ext
 
11002
cat >>conftest.$ac_ext <<_ACEOF
 
11003
/* end confdefs.h.  */
 
11004
 
 
11005
/* Override any gcc2 internal prototype to avoid an error.  */
 
11006
#ifdef __cplusplus
 
11007
extern "C"
 
11008
#endif
 
11009
/* We use char because int might match the return type of a gcc2
 
11010
   builtin and then its argument prototype would still apply.  */
 
11011
char dlopen ();
 
11012
int
 
11013
main ()
 
11014
{
 
11015
dlopen ();
 
11016
  ;
 
11017
  return 0;
 
11018
}
 
11019
_ACEOF
 
11020
rm -f conftest.$ac_objext conftest$ac_exeext
 
11021
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11022
  (eval $ac_link) 2>conftest.er1
 
11023
  ac_status=$?
 
11024
  grep -v '^ *+' conftest.er1 >conftest.err
 
11025
  rm -f conftest.er1
 
11026
  cat conftest.err >&5
 
11027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11028
  (exit $ac_status); } &&
 
11029
         { ac_try='test -z "$ac_c_werror_flag"
 
11030
                         || test ! -s conftest.err'
 
11031
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11032
  (eval $ac_try) 2>&5
 
11033
  ac_status=$?
 
11034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11035
  (exit $ac_status); }; } &&
 
11036
         { ac_try='test -s conftest$ac_exeext'
 
11037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11038
  (eval $ac_try) 2>&5
 
11039
  ac_status=$?
 
11040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11041
  (exit $ac_status); }; }; then
 
11042
  ac_cv_lib_dl_dlopen=yes
 
11043
else
 
11044
  echo "$as_me: failed program was:" >&5
 
11045
sed 's/^/| /' conftest.$ac_ext >&5
 
11046
 
 
11047
ac_cv_lib_dl_dlopen=no
 
11048
fi
 
11049
rm -f conftest.err conftest.$ac_objext \
 
11050
      conftest$ac_exeext conftest.$ac_ext
 
11051
LIBS=$ac_check_lib_save_LIBS
 
11052
fi
 
11053
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11054
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11055
if test $ac_cv_lib_dl_dlopen = yes; then
 
11056
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11057
else
 
11058
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
11059
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
11060
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
11061
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11062
else
 
11063
  ac_check_lib_save_LIBS=$LIBS
 
11064
LIBS="-lsvld  $LIBS"
 
11065
cat >conftest.$ac_ext <<_ACEOF
 
11066
/* confdefs.h.  */
 
11067
_ACEOF
 
11068
cat confdefs.h >>conftest.$ac_ext
 
11069
cat >>conftest.$ac_ext <<_ACEOF
 
11070
/* end confdefs.h.  */
 
11071
 
 
11072
/* Override any gcc2 internal prototype to avoid an error.  */
 
11073
#ifdef __cplusplus
 
11074
extern "C"
 
11075
#endif
 
11076
/* We use char because int might match the return type of a gcc2
 
11077
   builtin and then its argument prototype would still apply.  */
 
11078
char dlopen ();
 
11079
int
 
11080
main ()
 
11081
{
 
11082
dlopen ();
 
11083
  ;
 
11084
  return 0;
 
11085
}
 
11086
_ACEOF
 
11087
rm -f conftest.$ac_objext conftest$ac_exeext
 
11088
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11089
  (eval $ac_link) 2>conftest.er1
 
11090
  ac_status=$?
 
11091
  grep -v '^ *+' conftest.er1 >conftest.err
 
11092
  rm -f conftest.er1
 
11093
  cat conftest.err >&5
 
11094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11095
  (exit $ac_status); } &&
 
11096
         { ac_try='test -z "$ac_c_werror_flag"
 
11097
                         || test ! -s conftest.err'
 
11098
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11099
  (eval $ac_try) 2>&5
 
11100
  ac_status=$?
 
11101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11102
  (exit $ac_status); }; } &&
 
11103
         { ac_try='test -s conftest$ac_exeext'
 
11104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11105
  (eval $ac_try) 2>&5
 
11106
  ac_status=$?
 
11107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11108
  (exit $ac_status); }; }; then
 
11109
  ac_cv_lib_svld_dlopen=yes
 
11110
else
 
11111
  echo "$as_me: failed program was:" >&5
 
11112
sed 's/^/| /' conftest.$ac_ext >&5
 
11113
 
 
11114
ac_cv_lib_svld_dlopen=no
 
11115
fi
 
11116
rm -f conftest.err conftest.$ac_objext \
 
11117
      conftest$ac_exeext conftest.$ac_ext
 
11118
LIBS=$ac_check_lib_save_LIBS
 
11119
fi
 
11120
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
11121
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
11122
if test $ac_cv_lib_svld_dlopen = yes; then
 
11123
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11124
else
 
11125
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
11126
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
11127
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
11128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11129
else
 
11130
  ac_check_lib_save_LIBS=$LIBS
 
11131
LIBS="-ldld  $LIBS"
 
11132
cat >conftest.$ac_ext <<_ACEOF
 
11133
/* confdefs.h.  */
 
11134
_ACEOF
 
11135
cat confdefs.h >>conftest.$ac_ext
 
11136
cat >>conftest.$ac_ext <<_ACEOF
 
11137
/* end confdefs.h.  */
 
11138
 
 
11139
/* Override any gcc2 internal prototype to avoid an error.  */
 
11140
#ifdef __cplusplus
 
11141
extern "C"
 
11142
#endif
 
11143
/* We use char because int might match the return type of a gcc2
 
11144
   builtin and then its argument prototype would still apply.  */
 
11145
char dld_link ();
 
11146
int
 
11147
main ()
 
11148
{
 
11149
dld_link ();
 
11150
  ;
 
11151
  return 0;
 
11152
}
 
11153
_ACEOF
 
11154
rm -f conftest.$ac_objext conftest$ac_exeext
 
11155
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11156
  (eval $ac_link) 2>conftest.er1
 
11157
  ac_status=$?
 
11158
  grep -v '^ *+' conftest.er1 >conftest.err
 
11159
  rm -f conftest.er1
 
11160
  cat conftest.err >&5
 
11161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11162
  (exit $ac_status); } &&
 
11163
         { ac_try='test -z "$ac_c_werror_flag"
 
11164
                         || test ! -s conftest.err'
 
11165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11166
  (eval $ac_try) 2>&5
 
11167
  ac_status=$?
 
11168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11169
  (exit $ac_status); }; } &&
 
11170
         { ac_try='test -s conftest$ac_exeext'
 
11171
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11172
  (eval $ac_try) 2>&5
 
11173
  ac_status=$?
 
11174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11175
  (exit $ac_status); }; }; then
 
11176
  ac_cv_lib_dld_dld_link=yes
 
11177
else
 
11178
  echo "$as_me: failed program was:" >&5
 
11179
sed 's/^/| /' conftest.$ac_ext >&5
 
11180
 
 
11181
ac_cv_lib_dld_dld_link=no
 
11182
fi
 
11183
rm -f conftest.err conftest.$ac_objext \
 
11184
      conftest$ac_exeext conftest.$ac_ext
 
11185
LIBS=$ac_check_lib_save_LIBS
 
11186
fi
 
11187
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
11188
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
11189
if test $ac_cv_lib_dld_dld_link = yes; then
 
11190
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
11191
fi
 
11192
 
 
11193
 
 
11194
fi
 
11195
 
 
11196
 
 
11197
fi
 
11198
 
 
11199
 
 
11200
fi
 
11201
 
 
11202
 
 
11203
fi
 
11204
 
 
11205
 
 
11206
fi
 
11207
 
 
11208
    ;;
 
11209
  esac
 
11210
 
 
11211
  if test "x$lt_cv_dlopen" != xno; then
 
11212
    enable_dlopen=yes
 
11213
  else
 
11214
    enable_dlopen=no
 
11215
  fi
 
11216
 
 
11217
  case $lt_cv_dlopen in
 
11218
  dlopen)
 
11219
    save_CPPFLAGS="$CPPFLAGS"
 
11220
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11221
 
 
11222
    save_LDFLAGS="$LDFLAGS"
 
11223
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11224
 
 
11225
    save_LIBS="$LIBS"
 
11226
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11227
 
 
11228
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
11229
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
11230
if test "${lt_cv_dlopen_self+set}" = set; then
 
11231
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11232
else
 
11233
          if test "$cross_compiling" = yes; then :
 
11234
  lt_cv_dlopen_self=cross
 
11235
else
 
11236
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11237
  lt_status=$lt_dlunknown
 
11238
  cat > conftest.$ac_ext <<EOF
 
11239
#line 11239 "configure"
 
11240
#include "confdefs.h"
 
11241
 
 
11242
#if HAVE_DLFCN_H
 
11243
#include <dlfcn.h>
 
11244
#endif
 
11245
 
 
11246
#include <stdio.h>
 
11247
 
 
11248
#ifdef RTLD_GLOBAL
 
11249
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11250
#else
 
11251
#  ifdef DL_GLOBAL
 
11252
#    define LT_DLGLOBAL         DL_GLOBAL
 
11253
#  else
 
11254
#    define LT_DLGLOBAL         0
 
11255
#  endif
 
11256
#endif
 
11257
 
 
11258
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11259
   find out it does not work in some platform. */
 
11260
#ifndef LT_DLLAZY_OR_NOW
 
11261
#  ifdef RTLD_LAZY
 
11262
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11263
#  else
 
11264
#    ifdef DL_LAZY
 
11265
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11266
#    else
 
11267
#      ifdef RTLD_NOW
 
11268
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11269
#      else
 
11270
#        ifdef DL_NOW
 
11271
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11272
#        else
 
11273
#          define LT_DLLAZY_OR_NOW      0
 
11274
#        endif
 
11275
#      endif
 
11276
#    endif
 
11277
#  endif
 
11278
#endif
 
11279
 
 
11280
#ifdef __cplusplus
 
11281
extern "C" void exit (int);
 
11282
#endif
 
11283
 
 
11284
void fnord() { int i=42;}
 
11285
int main ()
 
11286
{
 
11287
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11288
  int status = $lt_dlunknown;
 
11289
 
 
11290
  if (self)
 
11291
    {
 
11292
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11293
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11294
      /* dlclose (self); */
 
11295
    }
 
11296
 
 
11297
    exit (status);
 
11298
}
 
11299
EOF
 
11300
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11301
  (eval $ac_link) 2>&5
 
11302
  ac_status=$?
 
11303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11304
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11305
    (./conftest; exit; ) 2>/dev/null
 
11306
    lt_status=$?
 
11307
    case x$lt_status in
 
11308
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11309
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11310
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
11311
    esac
 
11312
  else :
 
11313
    # compilation failed
 
11314
    lt_cv_dlopen_self=no
 
11315
  fi
 
11316
fi
 
11317
rm -fr conftest*
 
11318
 
 
11319
 
 
11320
fi
 
11321
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
11322
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
11323
 
 
11324
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11325
      LDFLAGS="$LDFLAGS $link_static_flag"
 
11326
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
11327
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
11328
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
11329
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11330
else
 
11331
          if test "$cross_compiling" = yes; then :
 
11332
  lt_cv_dlopen_self_static=cross
 
11333
else
 
11334
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11335
  lt_status=$lt_dlunknown
 
11336
  cat > conftest.$ac_ext <<EOF
 
11337
#line 11337 "configure"
 
11338
#include "confdefs.h"
 
11339
 
 
11340
#if HAVE_DLFCN_H
 
11341
#include <dlfcn.h>
 
11342
#endif
 
11343
 
 
11344
#include <stdio.h>
 
11345
 
 
11346
#ifdef RTLD_GLOBAL
 
11347
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11348
#else
 
11349
#  ifdef DL_GLOBAL
 
11350
#    define LT_DLGLOBAL         DL_GLOBAL
 
11351
#  else
 
11352
#    define LT_DLGLOBAL         0
 
11353
#  endif
 
11354
#endif
 
11355
 
 
11356
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11357
   find out it does not work in some platform. */
 
11358
#ifndef LT_DLLAZY_OR_NOW
 
11359
#  ifdef RTLD_LAZY
 
11360
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11361
#  else
 
11362
#    ifdef DL_LAZY
 
11363
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11364
#    else
 
11365
#      ifdef RTLD_NOW
 
11366
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11367
#      else
 
11368
#        ifdef DL_NOW
 
11369
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11370
#        else
 
11371
#          define LT_DLLAZY_OR_NOW      0
 
11372
#        endif
 
11373
#      endif
 
11374
#    endif
 
11375
#  endif
 
11376
#endif
 
11377
 
 
11378
#ifdef __cplusplus
 
11379
extern "C" void exit (int);
 
11380
#endif
 
11381
 
 
11382
void fnord() { int i=42;}
 
11383
int main ()
 
11384
{
 
11385
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11386
  int status = $lt_dlunknown;
 
11387
 
 
11388
  if (self)
 
11389
    {
 
11390
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11391
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11392
      /* dlclose (self); */
 
11393
    }
 
11394
 
 
11395
    exit (status);
 
11396
}
 
11397
EOF
 
11398
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11399
  (eval $ac_link) 2>&5
 
11400
  ac_status=$?
 
11401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11402
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11403
    (./conftest; exit; ) 2>/dev/null
 
11404
    lt_status=$?
 
11405
    case x$lt_status in
 
11406
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11407
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11408
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
11409
    esac
 
11410
  else :
 
11411
    # compilation failed
 
11412
    lt_cv_dlopen_self_static=no
 
11413
  fi
 
11414
fi
 
11415
rm -fr conftest*
 
11416
 
 
11417
 
 
11418
fi
 
11419
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
11420
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
11421
    fi
 
11422
 
 
11423
    CPPFLAGS="$save_CPPFLAGS"
 
11424
    LDFLAGS="$save_LDFLAGS"
 
11425
    LIBS="$save_LIBS"
 
11426
    ;;
 
11427
  esac
 
11428
 
 
11429
  case $lt_cv_dlopen_self in
 
11430
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11431
  *) enable_dlopen_self=unknown ;;
 
11432
  esac
 
11433
 
 
11434
  case $lt_cv_dlopen_self_static in
 
11435
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11436
  *) enable_dlopen_self_static=unknown ;;
 
11437
  esac
 
11438
fi
 
11439
 
 
11440
 
 
11441
# Report which librarie types wil actually be built
 
11442
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
11443
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
11444
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
11445
echo "${ECHO_T}$can_build_shared" >&6
 
11446
 
 
11447
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
11448
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
11449
test "$can_build_shared" = "no" && enable_shared=no
 
11450
 
 
11451
# On AIX, shared libraries and static libraries use the same namespace, and
 
11452
# are all built from PIC.
 
11453
case "$host_os" in
 
11454
aix3*)
 
11455
  test "$enable_shared" = yes && enable_static=no
 
11456
  if test -n "$RANLIB"; then
 
11457
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11458
    postinstall_cmds='$RANLIB $lib'
 
11459
  fi
 
11460
  ;;
 
11461
 
 
11462
aix4*)
 
11463
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11464
    test "$enable_shared" = yes && enable_static=no
 
11465
  fi
 
11466
  ;;
 
11467
  darwin* | rhapsody*)
 
11468
  if test "$GCC" = yes; then
 
11469
    archive_cmds_need_lc=no
 
11470
    case "$host_os" in
 
11471
    rhapsody* | darwin1.[012])
 
11472
      allow_undefined_flag='-undefined suppress'
 
11473
      ;;
 
11474
    *) # Darwin 1.3 on
 
11475
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
 
11476
      ;;
 
11477
    esac
 
11478
    output_verbose_link_cmd='echo'
 
11479
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
11480
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11481
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
11482
    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11483
    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11484
    hardcode_direct=no
 
11485
    hardcode_automatic=yes
 
11486
    hardcode_shlibpath_var=unsupported
 
11487
    whole_archive_flag_spec='-all_load $convenience'
 
11488
    link_all_deplibs=yes
 
11489
  else
 
11490
    ld_shlibs=no
 
11491
  fi
 
11492
    ;;
 
11493
esac
 
11494
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
11495
echo "${ECHO_T}$enable_shared" >&6
 
11496
 
 
11497
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
11498
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
11499
# Make sure either enable_shared or enable_static is yes.
 
11500
test "$enable_shared" = yes || enable_static=yes
 
11501
echo "$as_me:$LINENO: result: $enable_static" >&5
 
11502
echo "${ECHO_T}$enable_static" >&6
 
11503
 
 
11504
# The else clause should only fire when bootstrapping the
 
11505
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
11506
# with your package, and you will get complaints that there are
 
11507
# no rules to generate ltmain.sh.
 
11508
if test -f "$ltmain"; then
 
11509
  # See if we are running on zsh, and set the options which allow our commands through
 
11510
  # without removal of \ escapes.
 
11511
  if test -n "${ZSH_VERSION+set}" ; then
 
11512
    setopt NO_GLOB_SUBST
 
11513
  fi
 
11514
  # Now quote all the things that may contain metacharacters while being
 
11515
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
11516
  # variables and quote the copies for generation of the libtool script.
 
11517
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
11518
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
11519
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
11520
    deplibs_check_method reload_flag reload_cmds need_locks \
 
11521
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
11522
    lt_cv_sys_global_symbol_to_c_name_address \
 
11523
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
11524
    old_postinstall_cmds old_postuninstall_cmds \
 
11525
    compiler \
 
11526
    CC \
 
11527
    LD \
 
11528
    lt_prog_compiler_wl \
 
11529
    lt_prog_compiler_pic \
 
11530
    lt_prog_compiler_static \
 
11531
    lt_prog_compiler_no_builtin_flag \
 
11532
    export_dynamic_flag_spec \
 
11533
    thread_safe_flag_spec \
 
11534
    whole_archive_flag_spec \
 
11535
    enable_shared_with_static_runtimes \
 
11536
    old_archive_cmds \
 
11537
    old_archive_from_new_cmds \
 
11538
    predep_objects \
 
11539
    postdep_objects \
 
11540
    predeps \
 
11541
    postdeps \
 
11542
    compiler_lib_search_path \
 
11543
    archive_cmds \
 
11544
    archive_expsym_cmds \
 
11545
    postinstall_cmds \
 
11546
    postuninstall_cmds \
 
11547
    old_archive_from_expsyms_cmds \
 
11548
    allow_undefined_flag \
 
11549
    no_undefined_flag \
 
11550
    export_symbols_cmds \
 
11551
    hardcode_libdir_flag_spec \
 
11552
    hardcode_libdir_flag_spec_ld \
 
11553
    hardcode_libdir_separator \
 
11554
    hardcode_automatic \
 
11555
    module_cmds \
 
11556
    module_expsym_cmds \
 
11557
    lt_cv_prog_compiler_c_o \
 
11558
    exclude_expsyms \
 
11559
    include_expsyms; do
 
11560
 
 
11561
    case $var in
 
11562
    old_archive_cmds | \
 
11563
    old_archive_from_new_cmds | \
 
11564
    archive_cmds | \
 
11565
    archive_expsym_cmds | \
 
11566
    module_cmds | \
 
11567
    module_expsym_cmds | \
 
11568
    old_archive_from_expsyms_cmds | \
 
11569
    export_symbols_cmds | \
 
11570
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
11571
    postinstall_cmds | postuninstall_cmds | \
 
11572
    old_postinstall_cmds | old_postuninstall_cmds | \
 
11573
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
11574
      # Double-quote double-evaled strings.
 
11575
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
11576
      ;;
 
11577
    *)
 
11578
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
11579
      ;;
 
11580
    esac
 
11581
  done
 
11582
 
 
11583
  case $lt_echo in
 
11584
  *'\$0 --fallback-echo"')
 
11585
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
11586
    ;;
 
11587
  esac
 
11588
 
 
11589
cfgfile="${ofile}T"
 
11590
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
11591
  $rm -f "$cfgfile"
 
11592
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
11593
echo "$as_me: creating $ofile" >&6;}
 
11594
 
 
11595
  cat <<__EOF__ >> "$cfgfile"
 
11596
#! $SHELL
 
11597
 
 
11598
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
11599
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
11600
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
11601
#
 
11602
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
11603
# Free Software Foundation, Inc.
 
11604
#
 
11605
# This file is part of GNU Libtool:
 
11606
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
11607
#
 
11608
# This program is free software; you can redistribute it and/or modify
 
11609
# it under the terms of the GNU General Public License as published by
 
11610
# the Free Software Foundation; either version 2 of the License, or
 
11611
# (at your option) any later version.
 
11612
#
 
11613
# This program is distributed in the hope that it will be useful, but
 
11614
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
11615
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11616
# General Public License for more details.
 
11617
#
 
11618
# You should have received a copy of the GNU General Public License
 
11619
# along with this program; if not, write to the Free Software
 
11620
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
11621
#
 
11622
# As a special exception to the GNU General Public License, if you
 
11623
# distribute this file as part of a program that contains a
 
11624
# configuration script generated by Autoconf, you may include it under
 
11625
# the same distribution terms that you use for the rest of that program.
 
11626
 
 
11627
# A sed program that does not truncate output.
 
11628
SED=$lt_SED
 
11629
 
 
11630
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
11631
Xsed="$SED -e s/^X//"
 
11632
 
 
11633
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
11634
# if CDPATH is set.
 
11635
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
11636
 
 
11637
# The names of the tagged configurations supported by this script.
 
11638
available_tags=
 
11639
 
 
11640
# ### BEGIN LIBTOOL CONFIG
 
11641
 
 
11642
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
11643
 
 
11644
# Shell to use when invoking shell scripts.
 
11645
SHELL=$lt_SHELL
 
11646
 
 
11647
# Whether or not to build shared libraries.
 
11648
build_libtool_libs=$enable_shared
 
11649
 
 
11650
# Whether or not to build static libraries.
 
11651
build_old_libs=$enable_static
 
11652
 
 
11653
# Whether or not to add -lc for building shared libraries.
 
11654
build_libtool_need_lc=$archive_cmds_need_lc
 
11655
 
 
11656
# Whether or not to disallow shared libs when runtime libs are static
 
11657
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
11658
 
 
11659
# Whether or not to optimize for fast installation.
 
11660
fast_install=$enable_fast_install
 
11661
 
 
11662
# The host system.
 
11663
host_alias=$host_alias
 
11664
host=$host
 
11665
 
 
11666
# An echo program that does not interpret backslashes.
 
11667
echo=$lt_echo
 
11668
 
 
11669
# The archiver.
 
11670
AR=$lt_AR
 
11671
AR_FLAGS=$lt_AR_FLAGS
 
11672
 
 
11673
# A C compiler.
 
11674
LTCC=$lt_LTCC
 
11675
 
 
11676
# A language-specific compiler.
 
11677
CC=$lt_compiler
 
11678
 
 
11679
# Is the compiler the GNU C compiler?
 
11680
with_gcc=$GCC
 
11681
 
 
11682
# An ERE matcher.
 
11683
EGREP=$lt_EGREP
 
11684
 
 
11685
# The linker used to build libraries.
 
11686
LD=$lt_LD
 
11687
 
 
11688
# Whether we need hard or soft links.
 
11689
LN_S=$lt_LN_S
 
11690
 
 
11691
# A BSD-compatible nm program.
 
11692
NM=$lt_NM
 
11693
 
 
11694
# A symbol stripping program
 
11695
STRIP=$STRIP
 
11696
 
 
11697
# Used to examine libraries when file_magic_cmd begins "file"
 
11698
MAGIC_CMD=$MAGIC_CMD
 
11699
 
 
11700
# Used on cygwin: DLL creation program.
 
11701
DLLTOOL="$DLLTOOL"
 
11702
 
 
11703
# Used on cygwin: object dumper.
 
11704
OBJDUMP="$OBJDUMP"
 
11705
 
 
11706
# Used on cygwin: assembler.
 
11707
AS="$AS"
 
11708
 
 
11709
# The name of the directory that contains temporary libtool files.
 
11710
objdir=$objdir
 
11711
 
 
11712
# How to create reloadable object files.
 
11713
reload_flag=$lt_reload_flag
 
11714
reload_cmds=$lt_reload_cmds
 
11715
 
 
11716
# How to pass a linker flag through the compiler.
 
11717
wl=$lt_lt_prog_compiler_wl
 
11718
 
 
11719
# Object file suffix (normally "o").
 
11720
objext="$ac_objext"
 
11721
 
 
11722
# Old archive suffix (normally "a").
 
11723
libext="$libext"
 
11724
 
 
11725
# Shared library suffix (normally ".so").
 
11726
shrext='$shrext'
 
11727
 
 
11728
# Executable file suffix (normally "").
 
11729
exeext="$exeext"
 
11730
 
 
11731
# Additional compiler flags for building library objects.
 
11732
pic_flag=$lt_lt_prog_compiler_pic
 
11733
pic_mode=$pic_mode
 
11734
 
 
11735
# What is the maximum length of a command?
 
11736
max_cmd_len=$lt_cv_sys_max_cmd_len
 
11737
 
 
11738
# Does compiler simultaneously support -c and -o options?
 
11739
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
11740
 
 
11741
# Must we lock files when doing compilation ?
 
11742
need_locks=$lt_need_locks
 
11743
 
 
11744
# Do we need the lib prefix for modules?
 
11745
need_lib_prefix=$need_lib_prefix
 
11746
 
 
11747
# Do we need a version for libraries?
 
11748
need_version=$need_version
 
11749
 
 
11750
# Whether dlopen is supported.
 
11751
dlopen_support=$enable_dlopen
 
11752
 
 
11753
# Whether dlopen of programs is supported.
 
11754
dlopen_self=$enable_dlopen_self
 
11755
 
 
11756
# Whether dlopen of statically linked programs is supported.
 
11757
dlopen_self_static=$enable_dlopen_self_static
 
11758
 
 
11759
# Compiler flag to prevent dynamic linking.
 
11760
link_static_flag=$lt_lt_prog_compiler_static
 
11761
 
 
11762
# Compiler flag to turn off builtin functions.
 
11763
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
11764
 
 
11765
# Compiler flag to allow reflexive dlopens.
 
11766
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
11767
 
 
11768
# Compiler flag to generate shared objects directly from archives.
 
11769
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
11770
 
 
11771
# Compiler flag to generate thread-safe objects.
 
11772
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
11773
 
 
11774
# Library versioning type.
 
11775
version_type=$version_type
 
11776
 
 
11777
# Format of library name prefix.
 
11778
libname_spec=$lt_libname_spec
 
11779
 
 
11780
# List of archive names.  First name is the real one, the rest are links.
 
11781
# The last name is the one that the linker finds with -lNAME.
 
11782
library_names_spec=$lt_library_names_spec
 
11783
 
 
11784
# The coded name of the library, if different from the real name.
 
11785
soname_spec=$lt_soname_spec
 
11786
 
 
11787
# Commands used to build and install an old-style archive.
 
11788
RANLIB=$lt_RANLIB
 
11789
old_archive_cmds=$lt_old_archive_cmds
 
11790
old_postinstall_cmds=$lt_old_postinstall_cmds
 
11791
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
11792
 
 
11793
# Create an old-style archive from a shared archive.
 
11794
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
11795
 
 
11796
# Create a temporary old-style archive to link instead of a shared archive.
 
11797
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
11798
 
 
11799
# Commands used to build and install a shared archive.
 
11800
archive_cmds=$lt_archive_cmds
 
11801
archive_expsym_cmds=$lt_archive_expsym_cmds
 
11802
postinstall_cmds=$lt_postinstall_cmds
 
11803
postuninstall_cmds=$lt_postuninstall_cmds
 
11804
 
 
11805
# Commands used to build a loadable module (assumed same as above if empty)
 
11806
module_cmds=$lt_module_cmds
 
11807
module_expsym_cmds=$lt_module_expsym_cmds
 
11808
 
 
11809
# Commands to strip libraries.
 
11810
old_striplib=$lt_old_striplib
 
11811
striplib=$lt_striplib
 
11812
 
 
11813
# Dependencies to place before the objects being linked to create a
 
11814
# shared library.
 
11815
predep_objects=$lt_predep_objects
 
11816
 
 
11817
# Dependencies to place after the objects being linked to create a
 
11818
# shared library.
 
11819
postdep_objects=$lt_postdep_objects
 
11820
 
 
11821
# Dependencies to place before the objects being linked to create a
 
11822
# shared library.
 
11823
predeps=$lt_predeps
 
11824
 
 
11825
# Dependencies to place after the objects being linked to create a
 
11826
# shared library.
 
11827
postdeps=$lt_postdeps
 
11828
 
 
11829
# The library search path used internally by the compiler when linking
 
11830
# a shared library.
 
11831
compiler_lib_search_path=$lt_compiler_lib_search_path
 
11832
 
 
11833
# Method to check whether dependent libraries are shared objects.
 
11834
deplibs_check_method=$lt_deplibs_check_method
 
11835
 
 
11836
# Command to use when deplibs_check_method == file_magic.
 
11837
file_magic_cmd=$lt_file_magic_cmd
 
11838
 
 
11839
# Flag that allows shared libraries with undefined symbols to be built.
 
11840
allow_undefined_flag=$lt_allow_undefined_flag
 
11841
 
 
11842
# Flag that forces no undefined symbols.
 
11843
no_undefined_flag=$lt_no_undefined_flag
 
11844
 
 
11845
# Commands used to finish a libtool library installation in a directory.
 
11846
finish_cmds=$lt_finish_cmds
 
11847
 
 
11848
# Same as above, but a single script fragment to be evaled but not shown.
 
11849
finish_eval=$lt_finish_eval
 
11850
 
 
11851
# Take the output of nm and produce a listing of raw symbols and C names.
 
11852
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
11853
 
 
11854
# Transform the output of nm in a proper C declaration
 
11855
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
11856
 
 
11857
# Transform the output of nm in a C name address pair
 
11858
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
11859
 
 
11860
# This is the shared library runtime path variable.
 
11861
runpath_var=$runpath_var
 
11862
 
 
11863
# This is the shared library path variable.
 
11864
shlibpath_var=$shlibpath_var
 
11865
 
 
11866
# Is shlibpath searched before the hard-coded library search path?
 
11867
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
11868
 
 
11869
# How to hardcode a shared library path into an executable.
 
11870
hardcode_action=$hardcode_action
 
11871
 
 
11872
# Whether we should hardcode library paths into libraries.
 
11873
hardcode_into_libs=$hardcode_into_libs
 
11874
 
 
11875
# Flag to hardcode \$libdir into a binary during linking.
 
11876
# This must work even if \$libdir does not exist.
 
11877
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
11878
 
 
11879
# If ld is used when linking, flag to hardcode \$libdir into
 
11880
# a binary during linking. This must work even if \$libdir does
 
11881
# not exist.
 
11882
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11883
 
 
11884
# Whether we need a single -rpath flag with a separated argument.
 
11885
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
11886
 
 
11887
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
11888
# resulting binary.
 
11889
hardcode_direct=$hardcode_direct
 
11890
 
 
11891
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
11892
# resulting binary.
 
11893
hardcode_minus_L=$hardcode_minus_L
 
11894
 
 
11895
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
11896
# the resulting binary.
 
11897
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
11898
 
 
11899
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11900
# and all subsequent libraries and executables linked against it.
 
11901
hardcode_automatic=$hardcode_automatic
 
11902
 
 
11903
# Variables whose values should be saved in libtool wrapper scripts and
 
11904
# restored at relink time.
 
11905
variables_saved_for_relink="$variables_saved_for_relink"
 
11906
 
 
11907
# Whether libtool must link a program against all its dependency libraries.
 
11908
link_all_deplibs=$link_all_deplibs
 
11909
 
 
11910
# Compile-time system search path for libraries
 
11911
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
11912
 
 
11913
# Run-time system search path for libraries
 
11914
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
11915
 
 
11916
# Fix the shell variable \$srcfile for the compiler.
 
11917
fix_srcfile_path="$fix_srcfile_path"
 
11918
 
 
11919
# Set to yes if exported symbols are required.
 
11920
always_export_symbols=$always_export_symbols
 
11921
 
 
11922
# The commands to list exported symbols.
 
11923
export_symbols_cmds=$lt_export_symbols_cmds
 
11924
 
 
11925
# The commands to extract the exported symbol list from a shared archive.
 
11926
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
11927
 
 
11928
# Symbols that should not be listed in the preloaded symbols.
 
11929
exclude_expsyms=$lt_exclude_expsyms
 
11930
 
 
11931
# Symbols that must always be exported.
 
11932
include_expsyms=$lt_include_expsyms
 
11933
 
 
11934
# ### END LIBTOOL CONFIG
 
11935
 
 
11936
__EOF__
 
11937
 
 
11938
 
 
11939
  case $host_os in
 
11940
  aix3*)
 
11941
    cat <<\EOF >> "$cfgfile"
 
11942
 
 
11943
# AIX sometimes has problems with the GCC collect2 program.  For some
 
11944
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
11945
# vanish in a puff of smoke.
 
11946
if test "X${COLLECT_NAMES+set}" != Xset; then
 
11947
  COLLECT_NAMES=
 
11948
  export COLLECT_NAMES
 
11949
fi
 
11950
EOF
 
11951
    ;;
 
11952
  esac
 
11953
 
 
11954
  # We use sed instead of cat because bash on DJGPP gets confused if
 
11955
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
11956
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
11957
  # is reportedly fixed, but why not run on old versions too?
 
11958
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
11959
 
 
11960
  mv -f "$cfgfile" "$ofile" || \
 
11961
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
11962
  chmod +x "$ofile"
 
11963
 
 
11964
else
 
11965
  # If there is no Makefile yet, we rely on a make rule to execute
 
11966
  # `config.status --recheck' to rerun these tests and create the
 
11967
  # libtool script then.
 
11968
  test -f Makefile && make "$ltmain"
 
11969
fi
 
11970
 
 
11971
 
 
11972
ac_ext=c
 
11973
ac_cpp='$CPP $CPPFLAGS'
 
11974
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11975
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11976
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11977
 
 
11978
CC="$lt_save_CC"
 
11979
 
 
11980
 
 
11981
# Check whether --with-tags or --without-tags was given.
 
11982
if test "${with_tags+set}" = set; then
 
11983
  withval="$with_tags"
 
11984
  tagnames="$withval"
 
11985
fi;
 
11986
 
 
11987
if test -f "$ltmain" && test -n "$tagnames"; then
 
11988
  if test ! -f "${ofile}"; then
 
11989
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11990
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11991
  fi
 
11992
 
 
11993
  if test -z "$LTCC"; then
 
11994
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11995
    if test -z "$LTCC"; then
 
11996
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11997
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11998
    else
 
11999
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
12000
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
12001
    fi
 
12002
  fi
 
12003
 
 
12004
  # Extract list of available tagged configurations in $ofile.
 
12005
  # Note that this assumes the entire list is on one line.
 
12006
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
12007
 
 
12008
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
12009
  for tagname in $tagnames; do
 
12010
    IFS="$lt_save_ifs"
 
12011
    # Check whether tagname contains only valid characters
 
12012
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
12013
    "") ;;
 
12014
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
12015
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
12016
   { (exit 1); exit 1; }; }
 
12017
        ;;
 
12018
    esac
 
12019
 
 
12020
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
12021
    then
 
12022
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
12023
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
12024
   { (exit 1); exit 1; }; }
 
12025
    fi
 
12026
 
 
12027
    # Update the list of available tags.
 
12028
    if test -n "$tagname"; then
 
12029
      echo appending configuration tag \"$tagname\" to $ofile
 
12030
 
 
12031
      case $tagname in
 
12032
      CXX)
 
12033
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
12034
          ac_ext=cc
 
12035
ac_cpp='$CXXCPP $CPPFLAGS'
 
12036
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12037
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12038
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12039
 
 
12040
 
 
12041
 
 
12042
 
 
12043
archive_cmds_need_lc_CXX=no
 
12044
allow_undefined_flag_CXX=
 
12045
always_export_symbols_CXX=no
 
12046
archive_expsym_cmds_CXX=
 
12047
export_dynamic_flag_spec_CXX=
 
12048
hardcode_direct_CXX=no
 
12049
hardcode_libdir_flag_spec_CXX=
 
12050
hardcode_libdir_flag_spec_ld_CXX=
 
12051
hardcode_libdir_separator_CXX=
 
12052
hardcode_minus_L_CXX=no
 
12053
hardcode_automatic_CXX=no
 
12054
module_cmds_CXX=
 
12055
module_expsym_cmds_CXX=
 
12056
link_all_deplibs_CXX=unknown
 
12057
old_archive_cmds_CXX=$old_archive_cmds
 
12058
no_undefined_flag_CXX=
 
12059
whole_archive_flag_spec_CXX=
 
12060
enable_shared_with_static_runtimes_CXX=no
 
12061
 
 
12062
# Dependencies to place before and after the object being linked:
 
12063
predep_objects_CXX=
 
12064
postdep_objects_CXX=
 
12065
predeps_CXX=
 
12066
postdeps_CXX=
 
12067
compiler_lib_search_path_CXX=
 
12068
 
 
12069
# Source file extension for C++ test sources.
 
12070
ac_ext=cc
 
12071
 
 
12072
# Object file extension for compiled C++ test sources.
 
12073
objext=o
 
12074
objext_CXX=$objext
 
12075
 
 
12076
# Code to be used in simple compile tests
 
12077
lt_simple_compile_test_code="int some_variable = 0;\n"
 
12078
 
 
12079
# Code to be used in simple link tests
 
12080
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
12081
 
 
12082
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12083
 
 
12084
# If no C compiler was specified, use CC.
 
12085
LTCC=${LTCC-"$CC"}
 
12086
 
 
12087
# Allow CC to be a program name with arguments.
 
12088
compiler=$CC
 
12089
 
 
12090
 
 
12091
# Allow CC to be a program name with arguments.
 
12092
lt_save_CC=$CC
 
12093
lt_save_LD=$LD
 
12094
lt_save_GCC=$GCC
 
12095
GCC=$GXX
 
12096
lt_save_with_gnu_ld=$with_gnu_ld
 
12097
lt_save_path_LD=$lt_cv_path_LD
 
12098
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
12099
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
12100
else
 
12101
  unset lt_cv_prog_gnu_ld
 
12102
fi
 
12103
if test -n "${lt_cv_path_LDCXX+set}"; then
 
12104
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
12105
else
 
12106
  unset lt_cv_path_LD
 
12107
fi
 
12108
test -z "${LDCXX+set}" || LD=$LDCXX
 
12109
CC=${CXX-"c++"}
 
12110
compiler=$CC
 
12111
compiler_CXX=$CC
 
12112
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
12113
 
 
12114
# We don't want -fno-exception wen compiling C++ code, so set the
 
12115
# no_builtin_flag separately
 
12116
if test "$GXX" = yes; then
 
12117
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
12118
else
 
12119
  lt_prog_compiler_no_builtin_flag_CXX=
 
12120
fi
 
12121
 
 
12122
if test "$GXX" = yes; then
 
12123
  # Set up default GNU C++ configuration
 
12124
 
 
12125
 
 
12126
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
12127
if test "${with_gnu_ld+set}" = set; then
 
12128
  withval="$with_gnu_ld"
 
12129
  test "$withval" = no || with_gnu_ld=yes
 
12130
else
 
12131
  with_gnu_ld=no
 
12132
fi;
 
12133
ac_prog=ld
 
12134
if test "$GCC" = yes; then
 
12135
  # Check if gcc -print-prog-name=ld gives a path.
 
12136
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
12137
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
12138
  case $host in
 
12139
  *-*-mingw*)
 
12140
    # gcc leaves a trailing carriage return which upsets mingw
 
12141
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12142
  *)
 
12143
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12144
  esac
 
12145
  case $ac_prog in
 
12146
    # Accept absolute paths.
 
12147
    [\\/]* | ?:[\\/]*)
 
12148
      re_direlt='/[^/][^/]*/\.\./'
 
12149
      # Canonicalize the pathname of ld
 
12150
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
12151
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
12152
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
12153
      done
 
12154
      test -z "$LD" && LD="$ac_prog"
 
12155
      ;;
 
12156
  "")
 
12157
    # If it fails, then pretend we aren't using GCC.
 
12158
    ac_prog=ld
 
12159
    ;;
 
12160
  *)
 
12161
    # If it is relative, then search for the first ld in PATH.
 
12162
    with_gnu_ld=unknown
 
12163
    ;;
 
12164
  esac
 
12165
elif test "$with_gnu_ld" = yes; then
 
12166
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
12167
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
12168
else
 
12169
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
12170
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
12171
fi
 
12172
if test "${lt_cv_path_LD+set}" = set; then
 
12173
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12174
else
 
12175
  if test -z "$LD"; then
 
12176
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
12177
  for ac_dir in $PATH; do
 
12178
    IFS="$lt_save_ifs"
 
12179
    test -z "$ac_dir" && ac_dir=.
 
12180
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12181
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
12182
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12183
      # but apparently some GNU ld's only accept -v.
 
12184
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12185
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
12186
      *GNU* | *'with BFD'*)
 
12187
        test "$with_gnu_ld" != no && break
 
12188
        ;;
 
12189
      *)
 
12190
        test "$with_gnu_ld" != yes && break
 
12191
        ;;
 
12192
      esac
 
12193
    fi
 
12194
  done
 
12195
  IFS="$lt_save_ifs"
 
12196
else
 
12197
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
12198
fi
 
12199
fi
 
12200
 
 
12201
LD="$lt_cv_path_LD"
 
12202
if test -n "$LD"; then
 
12203
  echo "$as_me:$LINENO: result: $LD" >&5
 
12204
echo "${ECHO_T}$LD" >&6
 
12205
else
 
12206
  echo "$as_me:$LINENO: result: no" >&5
 
12207
echo "${ECHO_T}no" >&6
 
12208
fi
 
12209
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
12210
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
12211
   { (exit 1); exit 1; }; }
 
12212
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
12213
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
12214
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
12215
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12216
else
 
12217
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
12218
case `$LD -v 2>&1 </dev/null` in
 
12219
*GNU* | *'with BFD'*)
 
12220
  lt_cv_prog_gnu_ld=yes
 
12221
  ;;
 
12222
*)
 
12223
  lt_cv_prog_gnu_ld=no
 
12224
  ;;
 
12225
esac
 
12226
fi
 
12227
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
12228
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
12229
with_gnu_ld=$lt_cv_prog_gnu_ld
 
12230
 
 
12231
 
 
12232
 
 
12233
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
12234
  # archiving commands below assume that GNU ld is being used.
 
12235
  if test "$with_gnu_ld" = yes; then
 
12236
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12237
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12238
 
 
12239
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12240
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12241
 
 
12242
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
12243
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
12244
    #     investigate it a little bit more. (MM)
 
12245
    wlarc='${wl}'
 
12246
 
 
12247
    # ancient GNU ld didn't support --whole-archive et. al.
 
12248
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
12249
        grep 'no-whole-archive' > /dev/null; then
 
12250
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12251
    else
 
12252
      whole_archive_flag_spec_CXX=
 
12253
    fi
 
12254
  else
 
12255
    with_gnu_ld=no
 
12256
    wlarc=
 
12257
 
 
12258
    # A generic and very simple default shared library creation
 
12259
    # command for GNU C++ for the case where it uses the native
 
12260
    # linker, instead of GNU ld.  If possible, this setting should
 
12261
    # overridden to take advantage of the native linker features on
 
12262
    # the platform it is being used on.
 
12263
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12264
  fi
 
12265
 
 
12266
  # Commands to make compiler produce verbose output that lists
 
12267
  # what "hidden" libraries, object files and flags are used when
 
12268
  # linking a shared library.
 
12269
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12270
 
 
12271
else
 
12272
  GXX=no
 
12273
  with_gnu_ld=no
 
12274
  wlarc=
 
12275
fi
 
12276
 
 
12277
# PORTME: fill in a description of your system's C++ link characteristics
 
12278
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12279
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
12280
ld_shlibs_CXX=yes
 
12281
case $host_os in
 
12282
  aix3*)
 
12283
    # FIXME: insert proper C++ library support
 
12284
    ld_shlibs_CXX=no
 
12285
    ;;
 
12286
  aix4* | aix5*)
 
12287
    if test "$host_cpu" = ia64; then
 
12288
      # On IA64, the linker does run time linking by default, so we don't
 
12289
      # have to do anything special.
 
12290
      aix_use_runtimelinking=no
 
12291
      exp_sym_flag='-Bexport'
 
12292
      no_entry_flag=""
 
12293
    else
 
12294
      # KDE requires run time linking.  Make it the default.
 
12295
      aix_use_runtimelinking=yes
 
12296
      exp_sym_flag='-bexport'
 
12297
      no_entry_flag='-bnoentry'
 
12298
    fi
 
12299
 
 
12300
    # When large executables or shared objects are built, AIX ld can
 
12301
    # have problems creating the table of contents.  If linking a library
 
12302
    # or program results in "error TOC overflow" add -mminimal-toc to
 
12303
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
12304
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
12305
 
 
12306
    archive_cmds_CXX=''
 
12307
    hardcode_direct_CXX=yes
 
12308
    hardcode_libdir_separator_CXX=':'
 
12309
    link_all_deplibs_CXX=yes
 
12310
 
 
12311
    if test "$GXX" = yes; then
 
12312
      case $host_os in aix4.012|aix4.012.*)
 
12313
      # We only want to do this on AIX 4.2 and lower, the check
 
12314
      # below for broken collect2 doesn't work under 4.3+
 
12315
        collect2name=`${CC} -print-prog-name=collect2`
 
12316
        if test -f "$collect2name" && \
 
12317
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
12318
        then
 
12319
          # We have reworked collect2
 
12320
          hardcode_direct_CXX=yes
 
12321
        else
 
12322
          # We have old collect2
 
12323
          hardcode_direct_CXX=unsupported
 
12324
          # It fails to find uninstalled libraries when the uninstalled
 
12325
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
12326
          # to unsupported forces relinking
 
12327
          hardcode_minus_L_CXX=yes
 
12328
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12329
          hardcode_libdir_separator_CXX=
 
12330
        fi
 
12331
      esac
 
12332
      shared_flag='-shared'
 
12333
    else
 
12334
      # not using gcc
 
12335
      if test "$host_cpu" = ia64; then
 
12336
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
12337
        # chokes on -Wl,-G. The following line is correct:
 
12338
        shared_flag='-G'
 
12339
      else
 
12340
        if test "$aix_use_runtimelinking" = yes; then
 
12341
          shared_flag='-qmkshrobj ${wl}-G'
 
12342
        else
 
12343
          shared_flag='-qmkshrobj'
 
12344
        fi
 
12345
      fi
 
12346
    fi
 
12347
 
 
12348
    # Let the compiler handle the export list.
 
12349
    always_export_symbols_CXX=no
 
12350
    if test "$aix_use_runtimelinking" = yes; then
 
12351
      # Warning - without using the other runtime loading flags (-brtl),
 
12352
      # -berok will link without error, but may produce a broken library.
 
12353
      allow_undefined_flag_CXX='-berok'
 
12354
      # Determine the default libpath from the value encoded in an empty executable.
 
12355
      cat >conftest.$ac_ext <<_ACEOF
 
12356
/* confdefs.h.  */
 
12357
_ACEOF
 
12358
cat confdefs.h >>conftest.$ac_ext
 
12359
cat >>conftest.$ac_ext <<_ACEOF
 
12360
/* end confdefs.h.  */
 
12361
 
 
12362
int
 
12363
main ()
 
12364
{
 
12365
 
 
12366
  ;
 
12367
  return 0;
 
12368
}
 
12369
_ACEOF
 
12370
rm -f conftest.$ac_objext conftest$ac_exeext
 
12371
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12372
  (eval $ac_link) 2>conftest.er1
 
12373
  ac_status=$?
 
12374
  grep -v '^ *+' conftest.er1 >conftest.err
 
12375
  rm -f conftest.er1
 
12376
  cat conftest.err >&5
 
12377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12378
  (exit $ac_status); } &&
 
12379
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12380
                         || test ! -s conftest.err'
 
12381
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12382
  (eval $ac_try) 2>&5
 
12383
  ac_status=$?
 
12384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12385
  (exit $ac_status); }; } &&
 
12386
         { ac_try='test -s conftest$ac_exeext'
 
12387
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12388
  (eval $ac_try) 2>&5
 
12389
  ac_status=$?
 
12390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12391
  (exit $ac_status); }; }; then
 
12392
 
 
12393
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
12394
}'`
 
12395
# Check for a 64-bit object if we didn't find anything.
 
12396
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; }
 
12397
}'`; fi
 
12398
else
 
12399
  echo "$as_me: failed program was:" >&5
 
12400
sed 's/^/| /' conftest.$ac_ext >&5
 
12401
 
 
12402
fi
 
12403
rm -f conftest.err conftest.$ac_objext \
 
12404
      conftest$ac_exeext conftest.$ac_ext
 
12405
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12406
 
 
12407
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12408
 
 
12409
      archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
 
12410
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
12411
     else
 
12412
      if test "$host_cpu" = ia64; then
 
12413
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
12414
        allow_undefined_flag_CXX="-z nodefs"
 
12415
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
12416
      else
 
12417
        # Determine the default libpath from the value encoded in an empty executable.
 
12418
        cat >conftest.$ac_ext <<_ACEOF
 
12419
/* confdefs.h.  */
 
12420
_ACEOF
 
12421
cat confdefs.h >>conftest.$ac_ext
 
12422
cat >>conftest.$ac_ext <<_ACEOF
 
12423
/* end confdefs.h.  */
 
12424
 
 
12425
int
 
12426
main ()
 
12427
{
 
12428
 
 
12429
  ;
 
12430
  return 0;
 
12431
}
 
12432
_ACEOF
 
12433
rm -f conftest.$ac_objext conftest$ac_exeext
 
12434
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12435
  (eval $ac_link) 2>conftest.er1
 
12436
  ac_status=$?
 
12437
  grep -v '^ *+' conftest.er1 >conftest.err
 
12438
  rm -f conftest.er1
 
12439
  cat conftest.err >&5
 
12440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12441
  (exit $ac_status); } &&
 
12442
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12443
                         || test ! -s conftest.err'
 
12444
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12445
  (eval $ac_try) 2>&5
 
12446
  ac_status=$?
 
12447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12448
  (exit $ac_status); }; } &&
 
12449
         { ac_try='test -s conftest$ac_exeext'
 
12450
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12451
  (eval $ac_try) 2>&5
 
12452
  ac_status=$?
 
12453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12454
  (exit $ac_status); }; }; then
 
12455
 
 
12456
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
12457
}'`
 
12458
# Check for a 64-bit object if we didn't find anything.
 
12459
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; }
 
12460
}'`; fi
 
12461
else
 
12462
  echo "$as_me: failed program was:" >&5
 
12463
sed 's/^/| /' conftest.$ac_ext >&5
 
12464
 
 
12465
fi
 
12466
rm -f conftest.err conftest.$ac_objext \
 
12467
      conftest$ac_exeext conftest.$ac_ext
 
12468
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12469
 
 
12470
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12471
        # Warning - without using the other run time loading flags,
 
12472
        # -berok will link without error, but may produce a broken library.
 
12473
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
12474
        allow_undefined_flag_CXX=' ${wl}-berok'
 
12475
        # -bexpall does not export symbols beginning with underscore (_)
 
12476
        always_export_symbols_CXX=yes
 
12477
        # Exported symbols can be pulled into shared objects from archives
 
12478
        whole_archive_flag_spec_CXX=' '
 
12479
        archive_cmds_need_lc_CXX=yes
 
12480
        # This is similar to how AIX traditionally builds it's shared libraries.
 
12481
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
12482
      fi
 
12483
    fi
 
12484
    ;;
 
12485
  chorus*)
 
12486
    case $cc_basename in
 
12487
      *)
 
12488
        # FIXME: insert proper C++ library support
 
12489
        ld_shlibs_CXX=no
 
12490
        ;;
 
12491
    esac
 
12492
    ;;
 
12493
 
 
12494
  cygwin* | mingw* | pw32*)
 
12495
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12496
    # as there is no search path for DLLs.
 
12497
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12498
    allow_undefined_flag_CXX=no
 
12499
    always_export_symbols_CXX=no
 
12500
    enable_shared_with_static_runtimes_CXX=yes
 
12501
 
 
12502
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
12503
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
12504
      # If the export-symbols file already is a .def file (1st line
 
12505
      # is EXPORTS), use it as is; otherwise, prepend...
 
12506
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12507
        cp $export_symbols $output_objdir/$soname.def;
 
12508
      else
 
12509
        echo EXPORTS > $output_objdir/$soname.def;
 
12510
        cat $export_symbols >> $output_objdir/$soname.def;
 
12511
      fi~
 
12512
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
12513
    else
 
12514
      ld_shlibs_CXX=no
 
12515
    fi
 
12516
  ;;
 
12517
 
 
12518
  darwin* | rhapsody*)
 
12519
  if test "$GXX" = yes; then
 
12520
    archive_cmds_need_lc_CXX=no
 
12521
    case "$host_os" in
 
12522
    rhapsody* | darwin1.[012])
 
12523
      allow_undefined_flag_CXX='-undefined suppress'
 
12524
      ;;
 
12525
    *) # Darwin 1.3 on
 
12526
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
12527
      ;;
 
12528
    esac
 
12529
    lt_int_apple_cc_single_mod=no
 
12530
    output_verbose_link_cmd='echo'
 
12531
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
12532
      lt_int_apple_cc_single_mod=yes
 
12533
    fi
 
12534
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12535
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
12536
    else
 
12537
      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 $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
12538
    fi
 
12539
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
12540
 
 
12541
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
12542
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12543
      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 $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12544
    else
 
12545
      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 $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12546
    fi
 
12547
    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 $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12548
    hardcode_direct_CXX=no
 
12549
    hardcode_automatic_CXX=yes
 
12550
    hardcode_shlibpath_var_CXX=unsupported
 
12551
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
12552
    link_all_deplibs_CXX=yes
 
12553
  else
 
12554
    ld_shlibs_CXX=no
 
12555
  fi
 
12556
    ;;
 
12557
 
 
12558
  dgux*)
 
12559
    case $cc_basename in
 
12560
      ec++)
 
12561
        # FIXME: insert proper C++ library support
 
12562
        ld_shlibs_CXX=no
 
12563
        ;;
 
12564
      ghcx)
 
12565
        # Green Hills C++ Compiler
 
12566
        # FIXME: insert proper C++ library support
 
12567
        ld_shlibs_CXX=no
 
12568
        ;;
 
12569
      *)
 
12570
        # FIXME: insert proper C++ library support
 
12571
        ld_shlibs_CXX=no
 
12572
        ;;
 
12573
    esac
 
12574
    ;;
 
12575
  freebsd12*)
 
12576
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
12577
    ld_shlibs_CXX=no
 
12578
    ;;
 
12579
  freebsd-elf*)
 
12580
    archive_cmds_need_lc_CXX=no
 
12581
    ;;
 
12582
  freebsd*)
 
12583
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12584
    # conventions
 
12585
    ld_shlibs_CXX=yes
 
12586
    ;;
 
12587
  gnu*)
 
12588
    ;;
 
12589
  hpux9*)
 
12590
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12591
    hardcode_libdir_separator_CXX=:
 
12592
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12593
    hardcode_direct_CXX=yes
 
12594
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12595
                                # but as the default
 
12596
                                # location of the library.
 
12597
 
 
12598
    case $cc_basename in
 
12599
    CC)
 
12600
      # FIXME: insert proper C++ library support
 
12601
      ld_shlibs_CXX=no
 
12602
      ;;
 
12603
    aCC)
 
12604
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
12605
      # Commands to make compiler produce verbose output that lists
 
12606
      # what "hidden" libraries, object files and flags are used when
 
12607
      # linking a shared library.
 
12608
      #
 
12609
      # There doesn't appear to be a way to prevent this compiler from
 
12610
      # explicitly linking system object files so we need to strip them
 
12611
      # from the output so that they don't get included in the library
 
12612
      # dependencies.
 
12613
      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'
 
12614
      ;;
 
12615
    *)
 
12616
      if test "$GXX" = yes; then
 
12617
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
12618
      else
 
12619
        # FIXME: insert proper C++ library support
 
12620
        ld_shlibs_CXX=no
 
12621
      fi
 
12622
      ;;
 
12623
    esac
 
12624
    ;;
 
12625
  hpux10*|hpux11*)
 
12626
    if test $with_gnu_ld = no; then
 
12627
      case "$host_cpu" in
 
12628
      hppa*64*)
 
12629
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12630
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
12631
        hardcode_libdir_separator_CXX=:
 
12632
        ;;
 
12633
      ia64*)
 
12634
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12635
        ;;
 
12636
      *)
 
12637
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12638
        hardcode_libdir_separator_CXX=:
 
12639
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12640
        ;;
 
12641
      esac
 
12642
    fi
 
12643
    case "$host_cpu" in
 
12644
    hppa*64*)
 
12645
      hardcode_direct_CXX=no
 
12646
      hardcode_shlibpath_var_CXX=no
 
12647
      ;;
 
12648
    ia64*)
 
12649
      hardcode_direct_CXX=no
 
12650
      hardcode_shlibpath_var_CXX=no
 
12651
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12652
                                              # but as the default
 
12653
                                              # location of the library.
 
12654
      ;;
 
12655
    *)
 
12656
      hardcode_direct_CXX=yes
 
12657
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12658
                                              # but as the default
 
12659
                                              # location of the library.
 
12660
      ;;
 
12661
    esac
 
12662
 
 
12663
    case $cc_basename in
 
12664
      CC)
 
12665
        # FIXME: insert proper C++ library support
 
12666
        ld_shlibs_CXX=no
 
12667
        ;;
 
12668
      aCC)
 
12669
        case "$host_cpu" in
 
12670
        hppa*64*|ia64*)
 
12671
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
12672
          ;;
 
12673
        *)
 
12674
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12675
          ;;
 
12676
        esac
 
12677
        # Commands to make compiler produce verbose output that lists
 
12678
        # what "hidden" libraries, object files and flags are used when
 
12679
        # linking a shared library.
 
12680
        #
 
12681
        # There doesn't appear to be a way to prevent this compiler from
 
12682
        # explicitly linking system object files so we need to strip them
 
12683
        # from the output so that they don't get included in the library
 
12684
        # dependencies.
 
12685
        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'
 
12686
        ;;
 
12687
      *)
 
12688
        if test "$GXX" = yes; then
 
12689
          if test $with_gnu_ld = no; then
 
12690
            case "$host_cpu" in
 
12691
            ia64*|hppa*64*)
 
12692
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
12693
              ;;
 
12694
            *)
 
12695
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12696
              ;;
 
12697
            esac
 
12698
          fi
 
12699
        else
 
12700
          # FIXME: insert proper C++ library support
 
12701
          ld_shlibs_CXX=no
 
12702
        fi
 
12703
        ;;
 
12704
    esac
 
12705
    ;;
 
12706
  irix5* | irix6*)
 
12707
    case $cc_basename in
 
12708
      CC)
 
12709
        # SGI C++
 
12710
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
12711
 
 
12712
        # Archives containing C++ object files must be created using
 
12713
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12714
        # necessary to make sure instantiated templates are included
 
12715
        # in the archive.
 
12716
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12717
        ;;
 
12718
      *)
 
12719
        if test "$GXX" = yes; then
 
12720
          if test "$with_gnu_ld" = no; then
 
12721
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
12722
          else
 
12723
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
12724
          fi
 
12725
        fi
 
12726
        link_all_deplibs_CXX=yes
 
12727
        ;;
 
12728
    esac
 
12729
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12730
    hardcode_libdir_separator_CXX=:
 
12731
    ;;
 
12732
  linux*)
 
12733
    case $cc_basename in
 
12734
      KCC)
 
12735
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12736
 
 
12737
        # KCC will only create a shared library if the output file
 
12738
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12739
        # to its proper name (with version) after linking.
 
12740
        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 $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
12741
        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 $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
12742
        # Commands to make compiler produce verbose output that lists
 
12743
        # what "hidden" libraries, object files and flags are used when
 
12744
        # linking a shared library.
 
12745
        #
 
12746
        # There doesn't appear to be a way to prevent this compiler from
 
12747
        # explicitly linking system object files so we need to strip them
 
12748
        # from the output so that they don't get included in the library
 
12749
        # dependencies.
 
12750
        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'
 
12751
 
 
12752
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
12753
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12754
 
 
12755
        # Archives containing C++ object files must be created using
 
12756
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12757
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12758
        ;;
 
12759
      icpc)
 
12760
        # Intel C++
 
12761
        with_gnu_ld=yes
 
12762
        archive_cmds_need_lc_CXX=no
 
12763
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12764
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12765
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12766
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12767
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12768
        ;;
 
12769
      cxx)
 
12770
        # Compaq C++
 
12771
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12772
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
12773
 
 
12774
        runpath_var=LD_RUN_PATH
 
12775
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12776
        hardcode_libdir_separator_CXX=:
 
12777
 
 
12778
        # Commands to make compiler produce verbose output that lists
 
12779
        # what "hidden" libraries, object files and flags are used when
 
12780
        # linking a shared library.
 
12781
        #
 
12782
        # There doesn't appear to be a way to prevent this compiler from
 
12783
        # explicitly linking system object files so we need to strip them
 
12784
        # from the output so that they don't get included in the library
 
12785
        # dependencies.
 
12786
        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'
 
12787
        ;;
 
12788
    esac
 
12789
    ;;
 
12790
  lynxos*)
 
12791
    # FIXME: insert proper C++ library support
 
12792
    ld_shlibs_CXX=no
 
12793
    ;;
 
12794
  m88k*)
 
12795
    # FIXME: insert proper C++ library support
 
12796
    ld_shlibs_CXX=no
 
12797
    ;;
 
12798
  mvs*)
 
12799
    case $cc_basename in
 
12800
      cxx)
 
12801
        # FIXME: insert proper C++ library support
 
12802
        ld_shlibs_CXX=no
 
12803
        ;;
 
12804
      *)
 
12805
        # FIXME: insert proper C++ library support
 
12806
        ld_shlibs_CXX=no
 
12807
        ;;
 
12808
    esac
 
12809
    ;;
 
12810
  netbsd*)
 
12811
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12812
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12813
      wlarc=
 
12814
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12815
      hardcode_direct_CXX=yes
 
12816
      hardcode_shlibpath_var_CXX=no
 
12817
    fi
 
12818
    # Workaround some broken pre-1.5 toolchains
 
12819
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12820
    ;;
 
12821
  osf3*)
 
12822
    case $cc_basename in
 
12823
      KCC)
 
12824
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12825
 
 
12826
        # KCC will only create a shared library if the output file
 
12827
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12828
        # to its proper name (with version) after linking.
 
12829
        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 $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
12830
 
 
12831
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12832
        hardcode_libdir_separator_CXX=:
 
12833
 
 
12834
        # Archives containing C++ object files must be created using
 
12835
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12836
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12837
 
 
12838
        ;;
 
12839
      RCC)
 
12840
        # Rational C++ 2.4.1
 
12841
        # FIXME: insert proper C++ library support
 
12842
        ld_shlibs_CXX=no
 
12843
        ;;
 
12844
      cxx)
 
12845
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12846
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
12847
 
 
12848
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12849
        hardcode_libdir_separator_CXX=:
 
12850
 
 
12851
        # Commands to make compiler produce verbose output that lists
 
12852
        # what "hidden" libraries, object files and flags are used when
 
12853
        # linking a shared library.
 
12854
        #
 
12855
        # There doesn't appear to be a way to prevent this compiler from
 
12856
        # explicitly linking system object files so we need to strip them
 
12857
        # from the output so that they don't get included in the library
 
12858
        # dependencies.
 
12859
        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'
 
12860
        ;;
 
12861
      *)
 
12862
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12863
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12864
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
12865
 
 
12866
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12867
          hardcode_libdir_separator_CXX=:
 
12868
 
 
12869
          # Commands to make compiler produce verbose output that lists
 
12870
          # what "hidden" libraries, object files and flags are used when
 
12871
          # linking a shared library.
 
12872
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12873
 
 
12874
        else
 
12875
          # FIXME: insert proper C++ library support
 
12876
          ld_shlibs_CXX=no
 
12877
        fi
 
12878
        ;;
 
12879
    esac
 
12880
    ;;
 
12881
  osf4* | osf5*)
 
12882
    case $cc_basename in
 
12883
      KCC)
 
12884
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12885
 
 
12886
        # KCC will only create a shared library if the output file
 
12887
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12888
        # to its proper name (with version) after linking.
 
12889
        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 $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
12890
 
 
12891
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12892
        hardcode_libdir_separator_CXX=:
 
12893
 
 
12894
        # Archives containing C++ object files must be created using
 
12895
        # the KAI C++ compiler.
 
12896
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12897
        ;;
 
12898
      RCC)
 
12899
        # Rational C++ 2.4.1
 
12900
        # FIXME: insert proper C++ library support
 
12901
        ld_shlibs_CXX=no
 
12902
        ;;
 
12903
      cxx)
 
12904
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12905
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
12906
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12907
          echo "-hidden">> $lib.exp~
 
12908
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
12909
          $rm $lib.exp'
 
12910
 
 
12911
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12912
        hardcode_libdir_separator_CXX=:
 
12913
 
 
12914
        # Commands to make compiler produce verbose output that lists
 
12915
        # what "hidden" libraries, object files and flags are used when
 
12916
        # linking a shared library.
 
12917
        #
 
12918
        # There doesn't appear to be a way to prevent this compiler from
 
12919
        # explicitly linking system object files so we need to strip them
 
12920
        # from the output so that they don't get included in the library
 
12921
        # dependencies.
 
12922
        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'
 
12923
        ;;
 
12924
      *)
 
12925
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12926
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12927
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
12928
 
 
12929
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12930
          hardcode_libdir_separator_CXX=:
 
12931
 
 
12932
          # Commands to make compiler produce verbose output that lists
 
12933
          # what "hidden" libraries, object files and flags are used when
 
12934
          # linking a shared library.
 
12935
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12936
 
 
12937
        else
 
12938
          # FIXME: insert proper C++ library support
 
12939
          ld_shlibs_CXX=no
 
12940
        fi
 
12941
        ;;
 
12942
    esac
 
12943
    ;;
 
12944
  psos*)
 
12945
    # FIXME: insert proper C++ library support
 
12946
    ld_shlibs_CXX=no
 
12947
    ;;
 
12948
  sco*)
 
12949
    archive_cmds_need_lc_CXX=no
 
12950
    case $cc_basename in
 
12951
      CC)
 
12952
        # FIXME: insert proper C++ library support
 
12953
        ld_shlibs_CXX=no
 
12954
        ;;
 
12955
      *)
 
12956
        # FIXME: insert proper C++ library support
 
12957
        ld_shlibs_CXX=no
 
12958
        ;;
 
12959
    esac
 
12960
    ;;
 
12961
  sunos4*)
 
12962
    case $cc_basename in
 
12963
      CC)
 
12964
        # Sun C++ 4.x
 
12965
        # FIXME: insert proper C++ library support
 
12966
        ld_shlibs_CXX=no
 
12967
        ;;
 
12968
      lcc)
 
12969
        # Lucid
 
12970
        # FIXME: insert proper C++ library support
 
12971
        ld_shlibs_CXX=no
 
12972
        ;;
 
12973
      *)
 
12974
        # FIXME: insert proper C++ library support
 
12975
        ld_shlibs_CXX=no
 
12976
        ;;
 
12977
    esac
 
12978
    ;;
 
12979
  solaris*)
 
12980
    case $cc_basename in
 
12981
      CC)
 
12982
        # Sun C++ 4.2, 5.x and Centerline C++
 
12983
        no_undefined_flag_CXX=' -zdefs'
 
12984
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12985
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12986
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12987
 
 
12988
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12989
        hardcode_shlibpath_var_CXX=no
 
12990
        case $host_os in
 
12991
          solaris2.0-5 | solaris2.0-5.*) ;;
 
12992
          *)
 
12993
            # The C++ compiler is used as linker so we must use $wl
 
12994
            # flag to pass the commands to the underlying system
 
12995
            # linker.
 
12996
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12997
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12998
            ;;
 
12999
        esac
 
13000
        link_all_deplibs_CXX=yes
 
13001
 
 
13002
        # Commands to make compiler produce verbose output that lists
 
13003
        # what "hidden" libraries, object files and flags are used when
 
13004
        # linking a shared library.
 
13005
        #
 
13006
        # There doesn't appear to be a way to prevent this compiler from
 
13007
        # explicitly linking system object files so we need to strip them
 
13008
        # from the output so that they don't get included in the library
 
13009
        # dependencies.
 
13010
        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'
 
13011
 
 
13012
        # Archives containing C++ object files must be created using
 
13013
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13014
        # necessary to make sure instantiated templates are included
 
13015
        # in the archive.
 
13016
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13017
        ;;
 
13018
      gcx)
 
13019
        # Green Hills C++ Compiler
 
13020
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13021
 
 
13022
        # The C++ compiler must be used to create the archive.
 
13023
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
13024
        ;;
 
13025
      *)
 
13026
        # GNU C++ compiler with Solaris linker
 
13027
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13028
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
13029
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
13030
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13031
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13032
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
13033
 
 
13034
            # Commands to make compiler produce verbose output that lists
 
13035
            # what "hidden" libraries, object files and flags are used when
 
13036
            # linking a shared library.
 
13037
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
13038
          else
 
13039
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
13040
            # platform.
 
13041
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13042
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13043
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
13044
 
 
13045
            # Commands to make compiler produce verbose output that lists
 
13046
            # what "hidden" libraries, object files and flags are used when
 
13047
            # linking a shared library.
 
13048
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
13049
          fi
 
13050
 
 
13051
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
13052
        fi
 
13053
        ;;
 
13054
    esac
 
13055
    ;;
 
13056
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
13057
    archive_cmds_need_lc_CXX=no
 
13058
    ;;
 
13059
  tandem*)
 
13060
    case $cc_basename in
 
13061
      NCC)
 
13062
        # NonStop-UX NCC 3.20
 
13063
        # FIXME: insert proper C++ library support
 
13064
        ld_shlibs_CXX=no
 
13065
        ;;
 
13066
      *)
 
13067
        # FIXME: insert proper C++ library support
 
13068
        ld_shlibs_CXX=no
 
13069
        ;;
 
13070
    esac
 
13071
    ;;
 
13072
  vxworks*)
 
13073
    # FIXME: insert proper C++ library support
 
13074
    ld_shlibs_CXX=no
 
13075
    ;;
 
13076
  *)
 
13077
    # FIXME: insert proper C++ library support
 
13078
    ld_shlibs_CXX=no
 
13079
    ;;
 
13080
esac
 
13081
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13082
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
13083
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13084
 
 
13085
GCC_CXX="$GXX"
 
13086
LD_CXX="$LD"
 
13087
 
 
13088
## CAVEAT EMPTOR:
 
13089
## There is no encapsulation within the following macros, do not change
 
13090
## the running order or otherwise move them around unless you know exactly
 
13091
## what you are doing...
 
13092
 
 
13093
cat > conftest.$ac_ext <<EOF
 
13094
class Foo
 
13095
{
 
13096
public:
 
13097
  Foo (void) { a = 0; }
 
13098
private:
 
13099
  int a;
 
13100
};
 
13101
EOF
 
13102
 
 
13103
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13104
  (eval $ac_compile) 2>&5
 
13105
  ac_status=$?
 
13106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13107
  (exit $ac_status); }; then
 
13108
  # Parse the compiler output and extract the necessary
 
13109
  # objects, libraries and library flags.
 
13110
 
 
13111
  # Sentinel used to keep track of whether or not we are before
 
13112
  # the conftest object file.
 
13113
  pre_test_object_deps_done=no
 
13114
 
 
13115
  # The `*' in the case matches for architectures that use `case' in
 
13116
  # $output_verbose_cmd can trigger glob expansion during the loop
 
13117
  # eval without this substitution.
 
13118
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
13119
 
 
13120
  for p in `eval $output_verbose_link_cmd`; do
 
13121
    case $p in
 
13122
 
 
13123
    -L* | -R* | -l*)
 
13124
       # Some compilers place space between "-{L,R}" and the path.
 
13125
       # Remove the space.
 
13126
       if test $p = "-L" \
 
13127
          || test $p = "-R"; then
 
13128
         prev=$p
 
13129
         continue
 
13130
       else
 
13131
         prev=
 
13132
       fi
 
13133
 
 
13134
       if test "$pre_test_object_deps_done" = no; then
 
13135
         case $p in
 
13136
         -L* | -R*)
 
13137
           # Internal compiler library paths should come after those
 
13138
           # provided the user.  The postdeps already come after the
 
13139
           # user supplied libs so there is no need to process them.
 
13140
           if test -z "$compiler_lib_search_path_CXX"; then
 
13141
             compiler_lib_search_path_CXX="${prev}${p}"
 
13142
           else
 
13143
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
13144
           fi
 
13145
           ;;
 
13146
         # The "-l" case would never come before the object being
 
13147
         # linked, so don't bother handling this case.
 
13148
         esac
 
13149
       else
 
13150
         if test -z "$postdeps_CXX"; then
 
13151
           postdeps_CXX="${prev}${p}"
 
13152
         else
 
13153
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
13154
         fi
 
13155
       fi
 
13156
       ;;
 
13157
 
 
13158
    *.$objext|*.$libext)
 
13159
       # This assumes that the test object file only shows up
 
13160
       # once in the compiler output.
 
13161
       if test "$p" = "conftest.$objext"; then
 
13162
         pre_test_object_deps_done=yes
 
13163
         continue
 
13164
       fi
 
13165
 
 
13166
       if test "$pre_test_object_deps_done" = no; then
 
13167
         if test -z "$predep_objects_CXX"; then
 
13168
           predep_objects_CXX="$p"
 
13169
         else
 
13170
           predep_objects_CXX="$predep_objects_CXX $p"
 
13171
         fi
 
13172
       else
 
13173
         if test -z "$postdep_objects_CXX"; then
 
13174
           postdep_objects_CXX="$p"
 
13175
         else
 
13176
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
13177
         fi
 
13178
       fi
 
13179
       ;;
 
13180
 
 
13181
    *) ;; # Ignore the rest.
 
13182
 
 
13183
    esac
 
13184
  done
 
13185
 
 
13186
  # Clean up.
 
13187
  rm -f a.out a.exe
 
13188
else
 
13189
  echo "libtool.m4: error: problem compiling CXX test program"
 
13190
fi
 
13191
 
 
13192
$rm -f confest.$objext
 
13193
 
 
13194
case " $postdeps_CXX " in
 
13195
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
13196
esac
 
13197
 
 
13198
lt_prog_compiler_wl_CXX=
 
13199
lt_prog_compiler_pic_CXX=
 
13200
lt_prog_compiler_static_CXX=
 
13201
 
 
13202
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13203
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13204
 
 
13205
  # C++ specific cases for pic, static, wl, etc.
 
13206
  if test "$GXX" = yes; then
 
13207
    lt_prog_compiler_wl_CXX='-Wl,'
 
13208
    lt_prog_compiler_static_CXX='-static'
 
13209
 
 
13210
    case $host_os in
 
13211
    aix*)
 
13212
      # All AIX code is PIC.
 
13213
      if test "$host_cpu" = ia64; then
 
13214
        # AIX 5 now supports IA64 processor
 
13215
        lt_prog_compiler_static_CXX='-Bstatic'
 
13216
      fi
 
13217
      ;;
 
13218
    amigaos*)
 
13219
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13220
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13221
      # like `-m68040'.
 
13222
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
13223
      ;;
 
13224
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13225
      # PIC is the default for these OSes.
 
13226
      ;;
 
13227
    mingw* | os2* | pw32*)
 
13228
      # This hack is so that the source file can tell whether it is being
 
13229
      # built for inclusion in a dll (and should export symbols for example).
 
13230
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
13231
      ;;
 
13232
    darwin* | rhapsody*)
 
13233
      # PIC is the default on this platform
 
13234
      # Common symbols not allowed in MH_DYLIB files
 
13235
      lt_prog_compiler_pic_CXX='-fno-common'
 
13236
      ;;
 
13237
    *djgpp*)
 
13238
      # DJGPP does not support shared libraries at all
 
13239
      lt_prog_compiler_pic_CXX=
 
13240
      ;;
 
13241
    sysv4*MP*)
 
13242
      if test -d /usr/nec; then
 
13243
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
13244
      fi
 
13245
      ;;
 
13246
    hpux*)
 
13247
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13248
      # not for PA HP-UX.
 
13249
      case "$host_cpu" in
 
13250
      hppa*64*|ia64*)
 
13251
        ;;
 
13252
      *)
 
13253
        lt_prog_compiler_pic_CXX='-fPIC'
 
13254
        ;;
 
13255
      esac
 
13256
      ;;
 
13257
    *)
 
13258
      lt_prog_compiler_pic_CXX='-fPIC'
 
13259
      ;;
 
13260
    esac
 
13261
  else
 
13262
    case $host_os in
 
13263
      aix4* | aix5*)
 
13264
        # All AIX code is PIC.
 
13265
        if test "$host_cpu" = ia64; then
 
13266
          # AIX 5 now supports IA64 processor
 
13267
          lt_prog_compiler_static_CXX='-Bstatic'
 
13268
        else
 
13269
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
13270
        fi
 
13271
        ;;
 
13272
      chorus*)
 
13273
        case $cc_basename in
 
13274
        cxch68)
 
13275
          # Green Hills C++ Compiler
 
13276
          # _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"
 
13277
          ;;
 
13278
        esac
 
13279
        ;;
 
13280
      dgux*)
 
13281
        case $cc_basename in
 
13282
          ec++)
 
13283
            lt_prog_compiler_pic_CXX='-KPIC'
 
13284
            ;;
 
13285
          ghcx)
 
13286
            # Green Hills C++ Compiler
 
13287
            lt_prog_compiler_pic_CXX='-pic'
 
13288
            ;;
 
13289
          *)
 
13290
            ;;
 
13291
        esac
 
13292
        ;;
 
13293
      freebsd*)
 
13294
        # FreeBSD uses GNU C++
 
13295
        ;;
 
13296
      hpux9* | hpux10* | hpux11*)
 
13297
        case $cc_basename in
 
13298
          CC)
 
13299
            lt_prog_compiler_wl_CXX='-Wl,'
 
13300
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
13301
            if test "$host_cpu" != ia64; then
 
13302
              lt_prog_compiler_pic_CXX='+Z'
 
13303
            fi
 
13304
            ;;
 
13305
          aCC)
 
13306
            lt_prog_compiler_wl_CXX='-Wl,'
 
13307
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
13308
            case "$host_cpu" in
 
13309
            hppa*64*|ia64*)
 
13310
              # +Z the default
 
13311
              ;;
 
13312
            *)
 
13313
              lt_prog_compiler_pic_CXX='+Z'
 
13314
              ;;
 
13315
            esac
 
13316
            ;;
 
13317
          *)
 
13318
            ;;
 
13319
        esac
 
13320
        ;;
 
13321
      irix5* | irix6* | nonstopux*)
 
13322
        case $cc_basename in
 
13323
          CC)
 
13324
            lt_prog_compiler_wl_CXX='-Wl,'
 
13325
            lt_prog_compiler_static_CXX='-non_shared'
 
13326
            # CC pic flag -KPIC is the default.
 
13327
            ;;
 
13328
          *)
 
13329
            ;;
 
13330
        esac
 
13331
        ;;
 
13332
      linux*)
 
13333
        case $cc_basename in
 
13334
          KCC)
 
13335
            # KAI C++ Compiler
 
13336
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13337
            lt_prog_compiler_pic_CXX='-fPIC'
 
13338
            ;;
 
13339
          icpc)
 
13340
            # Intel C++
 
13341
            lt_prog_compiler_wl_CXX='-Wl,'
 
13342
            lt_prog_compiler_pic_CXX='-KPIC'
 
13343
            lt_prog_compiler_static_CXX='-static'
 
13344
            ;;
 
13345
          cxx)
 
13346
            # Compaq C++
 
13347
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13348
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13349
            lt_prog_compiler_pic_CXX=
 
13350
            lt_prog_compiler_static_CXX='-non_shared'
 
13351
            ;;
 
13352
          *)
 
13353
            ;;
 
13354
        esac
 
13355
        ;;
 
13356
      lynxos*)
 
13357
        ;;
 
13358
      m88k*)
 
13359
        ;;
 
13360
      mvs*)
 
13361
        case $cc_basename in
 
13362
          cxx)
 
13363
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13364
            ;;
 
13365
          *)
 
13366
            ;;
 
13367
        esac
 
13368
        ;;
 
13369
      netbsd*)
 
13370
        ;;
 
13371
      osf3* | osf4* | osf5*)
 
13372
        case $cc_basename in
 
13373
          KCC)
 
13374
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13375
            ;;
 
13376
          RCC)
 
13377
            # Rational C++ 2.4.1
 
13378
            lt_prog_compiler_pic_CXX='-pic'
 
13379
            ;;
 
13380
          cxx)
 
13381
            # Digital/Compaq C++
 
13382
            lt_prog_compiler_wl_CXX='-Wl,'
 
13383
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13384
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13385
            lt_prog_compiler_pic_CXX=
 
13386
            lt_prog_compiler_static_CXX='-non_shared'
 
13387
            ;;
 
13388
          *)
 
13389
            ;;
 
13390
        esac
 
13391
        ;;
 
13392
      psos*)
 
13393
        ;;
 
13394
      sco*)
 
13395
        case $cc_basename in
 
13396
          CC)
 
13397
            lt_prog_compiler_pic_CXX='-fPIC'
 
13398
            ;;
 
13399
          *)
 
13400
            ;;
 
13401
        esac
 
13402
        ;;
 
13403
      solaris*)
 
13404
        case $cc_basename in
 
13405
          CC)
 
13406
            # Sun C++ 4.2, 5.x and Centerline C++
 
13407
            lt_prog_compiler_pic_CXX='-KPIC'
 
13408
            lt_prog_compiler_static_CXX='-Bstatic'
 
13409
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13410
            ;;
 
13411
          gcx)
 
13412
            # Green Hills C++ Compiler
 
13413
            lt_prog_compiler_pic_CXX='-PIC'
 
13414
            ;;
 
13415
          *)
 
13416
            ;;
 
13417
        esac
 
13418
        ;;
 
13419
      sunos4*)
 
13420
        case $cc_basename in
 
13421
          CC)
 
13422
            # Sun C++ 4.x
 
13423
            lt_prog_compiler_pic_CXX='-pic'
 
13424
            lt_prog_compiler_static_CXX='-Bstatic'
 
13425
            ;;
 
13426
          lcc)
 
13427
            # Lucid
 
13428
            lt_prog_compiler_pic_CXX='-pic'
 
13429
            ;;
 
13430
          *)
 
13431
            ;;
 
13432
        esac
 
13433
        ;;
 
13434
      tandem*)
 
13435
        case $cc_basename in
 
13436
          NCC)
 
13437
            # NonStop-UX NCC 3.20
 
13438
            lt_prog_compiler_pic_CXX='-KPIC'
 
13439
            ;;
 
13440
          *)
 
13441
            ;;
 
13442
        esac
 
13443
        ;;
 
13444
      unixware*)
 
13445
        ;;
 
13446
      vxworks*)
 
13447
        ;;
 
13448
      *)
 
13449
        lt_prog_compiler_can_build_shared_CXX=no
 
13450
        ;;
 
13451
    esac
 
13452
  fi
 
13453
 
 
13454
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
13455
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
13456
 
 
13457
#
 
13458
# Check to make sure the PIC flag actually works.
 
13459
#
 
13460
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13461
 
 
13462
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13463
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
13464
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
13465
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13466
else
 
13467
  lt_prog_compiler_pic_works_CXX=no
 
13468
  ac_outfile=conftest.$ac_objext
 
13469
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13470
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13471
   # Insert the option either (1) after the last *FLAGS variable, or
 
13472
   # (2) before a word containing "conftest.", or (3) at the end.
 
13473
   # Note that $ac_compile itself does not contain backslashes and begins
 
13474
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13475
   # The option is referenced via a variable to avoid confusing sed.
 
13476
   lt_compile=`echo "$ac_compile" | $SED \
 
13477
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13478
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13479
   -e 's:$: $lt_compiler_flag:'`
 
13480
   (eval echo "\"\$as_me:13480: $lt_compile\"" >&5)
 
13481
   (eval "$lt_compile" 2>conftest.err)
 
13482
   ac_status=$?
 
13483
   cat conftest.err >&5
 
13484
   echo "$as_me:13484: \$? = $ac_status" >&5
 
13485
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13486
     # The compiler can only warn and ignore the option if not recognized
 
13487
     # So say no if there are warnings
 
13488
     if test ! -s conftest.err; then
 
13489
       lt_prog_compiler_pic_works_CXX=yes
 
13490
     fi
 
13491
   fi
 
13492
   $rm conftest*
 
13493
 
 
13494
fi
 
13495
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
13496
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
13497
 
 
13498
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
13499
    case $lt_prog_compiler_pic_CXX in
 
13500
     "" | " "*) ;;
 
13501
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13502
     esac
 
13503
else
 
13504
    lt_prog_compiler_pic_CXX=
 
13505
     lt_prog_compiler_can_build_shared_CXX=no
 
13506
fi
 
13507
 
 
13508
fi
 
13509
case "$host_os" in
 
13510
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13511
  *djgpp*)
 
13512
    lt_prog_compiler_pic_CXX=
 
13513
    ;;
 
13514
  *)
 
13515
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13516
    ;;
 
13517
esac
 
13518
 
 
13519
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13520
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13521
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13522
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13523
else
 
13524
  lt_cv_prog_compiler_c_o_CXX=no
 
13525
   $rm -r conftest 2>/dev/null
 
13526
   mkdir conftest
 
13527
   cd conftest
 
13528
   mkdir out
 
13529
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13530
 
 
13531
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
13532
   # that will create temporary files in the current directory regardless of
 
13533
   # the output directory.  Thus, making CWD read-only will cause this test
 
13534
   # to fail, enabling locking or at least warning the user not to do parallel
 
13535
   # builds.
 
13536
   chmod -w .
 
13537
 
 
13538
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13539
   # Insert the option either (1) after the last *FLAGS variable, or
 
13540
   # (2) before a word containing "conftest.", or (3) at the end.
 
13541
   # Note that $ac_compile itself does not contain backslashes and begins
 
13542
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13543
   lt_compile=`echo "$ac_compile" | $SED \
 
13544
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13545
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13546
   -e 's:$: $lt_compiler_flag:'`
 
13547
   (eval echo "\"\$as_me:13547: $lt_compile\"" >&5)
 
13548
   (eval "$lt_compile" 2>out/conftest.err)
 
13549
   ac_status=$?
 
13550
   cat out/conftest.err >&5
 
13551
   echo "$as_me:13551: \$? = $ac_status" >&5
 
13552
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13553
   then
 
13554
     # The compiler can only warn and ignore the option if not recognized
 
13555
     # So say no if there are warnings
 
13556
     if test ! -s out/conftest.err; then
 
13557
       lt_cv_prog_compiler_c_o_CXX=yes
 
13558
     fi
 
13559
   fi
 
13560
   chmod u+w .
 
13561
   $rm conftest* out/*
 
13562
   rmdir out
 
13563
   cd ..
 
13564
   rmdir conftest
 
13565
   $rm conftest*
 
13566
 
 
13567
fi
 
13568
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13569
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
13570
 
 
13571
 
 
13572
hard_links="nottested"
 
13573
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13574
  # do not overwrite the value of need_locks provided by the user
 
13575
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13576
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13577
  hard_links=yes
 
13578
  $rm conftest*
 
13579
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13580
  touch conftest.a
 
13581
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13582
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13583
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13584
echo "${ECHO_T}$hard_links" >&6
 
13585
  if test "$hard_links" = no; then
 
13586
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13587
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13588
    need_locks=warn
 
13589
  fi
 
13590
else
 
13591
  need_locks=no
 
13592
fi
 
13593
 
 
13594
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13595
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13596
 
 
13597
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13598
  case $host_os in
 
13599
  aix4* | aix5*)
 
13600
    # If we're using GNU nm, then we don't want the "-C" option.
 
13601
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13602
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13603
      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'
 
13604
    else
 
13605
      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'
 
13606
    fi
 
13607
    ;;
 
13608
  pw32*)
 
13609
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13610
  ;;
 
13611
  cygwin* | mingw*)
 
13612
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13613
  ;;
 
13614
  *)
 
13615
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13616
  ;;
 
13617
  esac
 
13618
 
 
13619
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13620
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
13621
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13622
 
 
13623
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13624
if test "$GCC" = yes; then
 
13625
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13626
fi
 
13627
 
 
13628
#
 
13629
# Do we need to explicitly link libc?
 
13630
#
 
13631
case "x$archive_cmds_need_lc_CXX" in
 
13632
x|xyes)
 
13633
  # Assume -lc should be added
 
13634
  archive_cmds_need_lc_CXX=yes
 
13635
 
 
13636
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13637
    case $archive_cmds_CXX in
 
13638
    *'~'*)
 
13639
      # FIXME: we may have to deal with multi-command sequences.
 
13640
      ;;
 
13641
    '$CC '*)
 
13642
      # Test whether the compiler implicitly links with -lc since on some
 
13643
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13644
      # to ld, don't add -lc before -lgcc.
 
13645
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13646
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
13647
      $rm conftest*
 
13648
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13649
 
 
13650
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13651
  (eval $ac_compile) 2>&5
 
13652
  ac_status=$?
 
13653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13654
  (exit $ac_status); } 2>conftest.err; then
 
13655
        soname=conftest
 
13656
        lib=conftest
 
13657
        libobjs=conftest.$ac_objext
 
13658
        deplibs=
 
13659
        wl=$lt_prog_compiler_wl_CXX
 
13660
        compiler_flags=-v
 
13661
        linker_flags=-v
 
13662
        verstring=
 
13663
        output_objdir=.
 
13664
        libname=conftest
 
13665
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13666
        allow_undefined_flag_CXX=
 
13667
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13668
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13669
  ac_status=$?
 
13670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13671
  (exit $ac_status); }
 
13672
        then
 
13673
          archive_cmds_need_lc_CXX=no
 
13674
        else
 
13675
          archive_cmds_need_lc_CXX=yes
 
13676
        fi
 
13677
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13678
      else
 
13679
        cat conftest.err 1>&5
 
13680
      fi
 
13681
      $rm conftest*
 
13682
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13683
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
13684
      ;;
 
13685
    esac
 
13686
  fi
 
13687
  ;;
 
13688
esac
 
13689
 
 
13690
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13691
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
13692
library_names_spec=
 
13693
libname_spec='lib$name'
 
13694
soname_spec=
 
13695
shrext=".so"
 
13696
postinstall_cmds=
 
13697
postuninstall_cmds=
 
13698
finish_cmds=
 
13699
finish_eval=
 
13700
shlibpath_var=
 
13701
shlibpath_overrides_runpath=unknown
 
13702
version_type=none
 
13703
dynamic_linker="$host_os ld.so"
 
13704
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13705
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
13706
need_lib_prefix=unknown
 
13707
hardcode_into_libs=no
 
13708
 
 
13709
# when you set need_version to no, make sure it does not cause -set_version
 
13710
# flags to be left without arguments
 
13711
need_version=unknown
 
13712
 
 
13713
case $host_os in
 
13714
aix3*)
 
13715
  version_type=linux
 
13716
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13717
  shlibpath_var=LIBPATH
 
13718
 
 
13719
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13720
  soname_spec='${libname}${release}${shared_ext}$major'
 
13721
  ;;
 
13722
 
 
13723
aix4* | aix5*)
 
13724
  version_type=linux
 
13725
  need_lib_prefix=no
 
13726
  need_version=no
 
13727
  hardcode_into_libs=yes
 
13728
  if test "$host_cpu" = ia64; then
 
13729
    # AIX 5 supports IA64
 
13730
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13731
    shlibpath_var=LD_LIBRARY_PATH
 
13732
  else
 
13733
    # With GCC up to 2.95.x, collect2 would create an import file
 
13734
    # for dependence libraries.  The import file would start with
 
13735
    # the line `#! .'.  This would cause the generated library to
 
13736
    # depend on `.', always an invalid library.  This was fixed in
 
13737
    # development snapshots of GCC prior to 3.0.
 
13738
    case $host_os in
 
13739
      aix4 | aix4.[01] | aix4.[01].*)
 
13740
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13741
           echo ' yes '
 
13742
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13743
        :
 
13744
      else
 
13745
        can_build_shared=no
 
13746
      fi
 
13747
      ;;
 
13748
    esac
 
13749
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13750
    # soname into executable. Probably we can add versioning support to
 
13751
    # collect2, so additional links can be useful in future.
 
13752
    if test "$aix_use_runtimelinking" = yes; then
 
13753
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13754
      # instead of lib<name>.a to let people know that these are not
 
13755
      # typical AIX shared libraries.
 
13756
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13757
    else
 
13758
      # We preserve .a as extension for shared libraries through AIX4.2
 
13759
      # and later when we are not doing run time linking.
 
13760
      library_names_spec='${libname}${release}.a $libname.a'
 
13761
      soname_spec='${libname}${release}${shared_ext}$major'
 
13762
    fi
 
13763
    shlibpath_var=LIBPATH
 
13764
  fi
 
13765
  ;;
 
13766
 
 
13767
amigaos*)
 
13768
  library_names_spec='$libname.ixlibrary $libname.a'
 
13769
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13770
  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'
 
13771
  ;;
 
13772
 
 
13773
beos*)
 
13774
  library_names_spec='${libname}${shared_ext}'
 
13775
  dynamic_linker="$host_os ld.so"
 
13776
  shlibpath_var=LIBRARY_PATH
 
13777
  ;;
 
13778
 
 
13779
bsdi4*)
 
13780
  version_type=linux
 
13781
  need_version=no
 
13782
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13783
  soname_spec='${libname}${release}${shared_ext}$major'
 
13784
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13785
  shlibpath_var=LD_LIBRARY_PATH
 
13786
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13787
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13788
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13789
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13790
  # libtool to hard-code these into programs
 
13791
  ;;
 
13792
 
 
13793
cygwin* | mingw* | pw32*)
 
13794
  version_type=windows
 
13795
  shrext=".dll"
 
13796
  need_version=no
 
13797
  need_lib_prefix=no
 
13798
 
 
13799
  case $GCC,$host_os in
 
13800
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13801
    library_names_spec='$libname.dll.a'
 
13802
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13803
    postinstall_cmds='base_file=`basename \${file}`~
 
13804
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13805
      dldir=$destdir/`dirname \$dlpath`~
 
13806
      test -d \$dldir || mkdir -p \$dldir~
 
13807
      $install_prog $dir/$dlname \$dldir/$dlname'
 
13808
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13809
      dlpath=$dir/\$dldll~
 
13810
       $rm \$dlpath'
 
13811
    shlibpath_overrides_runpath=yes
 
13812
 
 
13813
    case $host_os in
 
13814
    cygwin*)
 
13815
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13816
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13817
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13818
      ;;
 
13819
    mingw*)
 
13820
      # MinGW DLLs use traditional 'lib' prefix
 
13821
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13822
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13823
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13824
        # It is most probably a Windows format PATH printed by
 
13825
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13826
        # path with ; separators, and with drive letters. We can handle the
 
13827
        # drive letters (cygwin fileutils understands them), so leave them,
 
13828
        # especially as we might pass files found there to a mingw objdump,
 
13829
        # which wouldn't understand a cygwinified path. Ahh.
 
13830
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13831
      else
 
13832
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13833
      fi
 
13834
      ;;
 
13835
    pw32*)
 
13836
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13837
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
13838
      ;;
 
13839
    esac
 
13840
    ;;
 
13841
 
 
13842
  *)
 
13843
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13844
    ;;
 
13845
  esac
 
13846
  dynamic_linker='Win32 ld.exe'
 
13847
  # FIXME: first we should search . and the directory the executable is in
 
13848
  shlibpath_var=PATH
 
13849
  ;;
 
13850
 
 
13851
darwin* | rhapsody*)
 
13852
  dynamic_linker="$host_os dyld"
 
13853
  version_type=darwin
 
13854
  need_lib_prefix=no
 
13855
  need_version=no
 
13856
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13857
  soname_spec='${libname}${release}${major}$shared_ext'
 
13858
  shlibpath_overrides_runpath=yes
 
13859
  shlibpath_var=DYLD_LIBRARY_PATH
 
13860
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
13861
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
13862
  if test "$GCC" = yes; then
 
13863
    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"`
 
13864
  else
 
13865
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
13866
  fi
 
13867
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13868
  ;;
 
13869
 
 
13870
dgux*)
 
13871
  version_type=linux
 
13872
  need_lib_prefix=no
 
13873
  need_version=no
 
13874
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13875
  soname_spec='${libname}${release}${shared_ext}$major'
 
13876
  shlibpath_var=LD_LIBRARY_PATH
 
13877
  ;;
 
13878
 
 
13879
freebsd1*)
 
13880
  dynamic_linker=no
 
13881
  ;;
 
13882
 
 
13883
freebsd*-gnu*)
 
13884
  version_type=linux
 
13885
  need_lib_prefix=no
 
13886
  need_version=no
 
13887
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13888
  soname_spec='${libname}${release}${shared_ext}$major'
 
13889
  shlibpath_var=LD_LIBRARY_PATH
 
13890
  shlibpath_overrides_runpath=no
 
13891
  hardcode_into_libs=yes
 
13892
  dynamic_linker='GNU ld.so'
 
13893
  ;;
 
13894
 
 
13895
freebsd*)
 
13896
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
13897
  version_type=freebsd-$objformat
 
13898
  case $version_type in
 
13899
    freebsd-elf*)
 
13900
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13901
      need_version=no
 
13902
      need_lib_prefix=no
 
13903
      ;;
 
13904
    freebsd-*)
 
13905
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13906
      need_version=yes
 
13907
      ;;
 
13908
  esac
 
13909
  shlibpath_var=LD_LIBRARY_PATH
 
13910
  case $host_os in
 
13911
  freebsd2*)
 
13912
    shlibpath_overrides_runpath=yes
 
13913
    ;;
 
13914
  freebsd3.01* | freebsdelf3.01*)
 
13915
    shlibpath_overrides_runpath=yes
 
13916
    hardcode_into_libs=yes
 
13917
    ;;
 
13918
  *) # from 3.2 on
 
13919
    shlibpath_overrides_runpath=no
 
13920
    hardcode_into_libs=yes
 
13921
    ;;
 
13922
  esac
 
13923
  ;;
 
13924
 
 
13925
gnu*)
 
13926
  version_type=linux
 
13927
  need_lib_prefix=no
 
13928
  need_version=no
 
13929
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13930
  soname_spec='${libname}${release}${shared_ext}$major'
 
13931
  shlibpath_var=LD_LIBRARY_PATH
 
13932
  hardcode_into_libs=yes
 
13933
  ;;
 
13934
 
 
13935
hpux9* | hpux10* | hpux11*)
 
13936
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13937
  # link against other versions.
 
13938
  version_type=sunos
 
13939
  need_lib_prefix=no
 
13940
  need_version=no
 
13941
  case "$host_cpu" in
 
13942
  ia64*)
 
13943
    shrext='.so'
 
13944
    hardcode_into_libs=yes
 
13945
    dynamic_linker="$host_os dld.so"
 
13946
    shlibpath_var=LD_LIBRARY_PATH
 
13947
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13948
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13949
    soname_spec='${libname}${release}${shared_ext}$major'
 
13950
    if test "X$HPUX_IA64_MODE" = X32; then
 
13951
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13952
    else
 
13953
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13954
    fi
 
13955
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13956
    ;;
 
13957
   hppa*64*)
 
13958
     shrext='.sl'
 
13959
     hardcode_into_libs=yes
 
13960
     dynamic_linker="$host_os dld.sl"
 
13961
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13962
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13963
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13964
     soname_spec='${libname}${release}${shared_ext}$major'
 
13965
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13966
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13967
     ;;
 
13968
   *)
 
13969
    shrext='.sl'
 
13970
    dynamic_linker="$host_os dld.sl"
 
13971
    shlibpath_var=SHLIB_PATH
 
13972
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13973
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13974
    soname_spec='${libname}${release}${shared_ext}$major'
 
13975
    ;;
 
13976
  esac
 
13977
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13978
  postinstall_cmds='chmod 555 $lib'
 
13979
  ;;
 
13980
 
 
13981
irix5* | irix6* | nonstopux*)
 
13982
  case $host_os in
 
13983
    nonstopux*) version_type=nonstopux ;;
 
13984
    *)
 
13985
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13986
                version_type=linux
 
13987
        else
 
13988
                version_type=irix
 
13989
        fi ;;
 
13990
  esac
 
13991
  need_lib_prefix=no
 
13992
  need_version=no
 
13993
  soname_spec='${libname}${release}${shared_ext}$major'
 
13994
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13995
  case $host_os in
 
13996
  irix5* | nonstopux*)
 
13997
    libsuff= shlibsuff=
 
13998
    ;;
 
13999
  *)
 
14000
    case $LD in # libtool.m4 will add one of these switches to LD
 
14001
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14002
      libsuff= shlibsuff= libmagic=32-bit;;
 
14003
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14004
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14005
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14006
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14007
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14008
    esac
 
14009
    ;;
 
14010
  esac
 
14011
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14012
  shlibpath_overrides_runpath=no
 
14013
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14014
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14015
  hardcode_into_libs=yes
 
14016
  ;;
 
14017
 
 
14018
# No shared lib support for Linux oldld, aout, or coff.
 
14019
linux*oldld* | linux*aout* | linux*coff*)
 
14020
  dynamic_linker=no
 
14021
  ;;
 
14022
 
 
14023
# This must be Linux ELF.
 
14024
linux*)
 
14025
  version_type=linux
 
14026
  need_lib_prefix=no
 
14027
  need_version=no
 
14028
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14029
  soname_spec='${libname}${release}${shared_ext}$major'
 
14030
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14031
  libsuff=
 
14032
  if test "x$LINUX_64_MODE" = x64; then
 
14033
    # Some platforms are per default 64-bit, so there's no /lib64
 
14034
    if test -d /lib64; then
 
14035
      libsuff=64
 
14036
    fi
 
14037
  fi
 
14038
  shlibpath_var=LD_LIBRARY_PATH
 
14039
  shlibpath_overrides_runpath=no
 
14040
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
14041
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
14042
  # This implies no fast_install, which is unacceptable.
 
14043
  # Some rework will be needed to allow for fast_install
 
14044
  # before this can be enabled.
 
14045
  hardcode_into_libs=yes
 
14046
 
 
14047
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14048
  # powerpc, because MkLinux only supported shared libraries with the
 
14049
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14050
  # most powerpc-linux boxes support dynamic linking these days and
 
14051
  # people can always --disable-shared, the test was removed, and we
 
14052
  # assume the GNU/Linux dynamic linker is in use.
 
14053
  dynamic_linker='GNU/Linux ld.so'
 
14054
  ;;
 
14055
 
 
14056
netbsd*)
 
14057
  version_type=sunos
 
14058
  need_lib_prefix=no
 
14059
  need_version=no
 
14060
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14061
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14062
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14063
    dynamic_linker='NetBSD (a.out) ld.so'
 
14064
  else
 
14065
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
14066
    soname_spec='${libname}${release}${shared_ext}$major'
 
14067
    dynamic_linker='NetBSD ld.elf_so'
 
14068
  fi
 
14069
  shlibpath_var=LD_LIBRARY_PATH
 
14070
  shlibpath_overrides_runpath=yes
 
14071
  hardcode_into_libs=yes
 
14072
  ;;
 
14073
 
 
14074
newsos6)
 
14075
  version_type=linux
 
14076
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14077
  shlibpath_var=LD_LIBRARY_PATH
 
14078
  shlibpath_overrides_runpath=yes
 
14079
  ;;
 
14080
 
 
14081
nto-qnx*)
 
14082
  version_type=linux
 
14083
  need_lib_prefix=no
 
14084
  need_version=no
 
14085
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14086
  soname_spec='${libname}${release}${shared_ext}$major'
 
14087
  shlibpath_var=LD_LIBRARY_PATH
 
14088
  shlibpath_overrides_runpath=yes
 
14089
  ;;
 
14090
 
 
14091
openbsd*)
 
14092
  version_type=sunos
 
14093
  need_lib_prefix=no
 
14094
  need_version=no
 
14095
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14096
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14097
  shlibpath_var=LD_LIBRARY_PATH
 
14098
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14099
    case $host_os in
 
14100
      openbsd2.[89] | openbsd2.[89].*)
 
14101
        shlibpath_overrides_runpath=no
 
14102
        ;;
 
14103
      *)
 
14104
        shlibpath_overrides_runpath=yes
 
14105
        ;;
 
14106
      esac
 
14107
  else
 
14108
    shlibpath_overrides_runpath=yes
 
14109
  fi
 
14110
  ;;
 
14111
 
 
14112
os2*)
 
14113
  libname_spec='$name'
 
14114
  shrext=".dll"
 
14115
  need_lib_prefix=no
 
14116
  library_names_spec='$libname${shared_ext} $libname.a'
 
14117
  dynamic_linker='OS/2 ld.exe'
 
14118
  shlibpath_var=LIBPATH
 
14119
  ;;
 
14120
 
 
14121
osf3* | osf4* | osf5*)
 
14122
  version_type=osf
 
14123
  need_lib_prefix=no
 
14124
  need_version=no
 
14125
  soname_spec='${libname}${release}${shared_ext}$major'
 
14126
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14127
  shlibpath_var=LD_LIBRARY_PATH
 
14128
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14129
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14130
  ;;
 
14131
 
 
14132
sco3.2v5*)
 
14133
  version_type=osf
 
14134
  soname_spec='${libname}${release}${shared_ext}$major'
 
14135
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14136
  shlibpath_var=LD_LIBRARY_PATH
 
14137
  ;;
 
14138
 
 
14139
solaris*)
 
14140
  version_type=linux
 
14141
  need_lib_prefix=no
 
14142
  need_version=no
 
14143
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14144
  soname_spec='${libname}${release}${shared_ext}$major'
 
14145
  shlibpath_var=LD_LIBRARY_PATH
 
14146
  shlibpath_overrides_runpath=yes
 
14147
  hardcode_into_libs=yes
 
14148
  # ldd complains unless libraries are executable
 
14149
  postinstall_cmds='chmod +x $lib'
 
14150
  ;;
 
14151
 
 
14152
sunos4*)
 
14153
  version_type=sunos
 
14154
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14155
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14156
  shlibpath_var=LD_LIBRARY_PATH
 
14157
  shlibpath_overrides_runpath=yes
 
14158
  if test "$with_gnu_ld" = yes; then
 
14159
    need_lib_prefix=no
 
14160
  fi
 
14161
  need_version=yes
 
14162
  ;;
 
14163
 
 
14164
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14165
  version_type=linux
 
14166
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14167
  soname_spec='${libname}${release}${shared_ext}$major'
 
14168
  shlibpath_var=LD_LIBRARY_PATH
 
14169
  case $host_vendor in
 
14170
    sni)
 
14171
      shlibpath_overrides_runpath=no
 
14172
      need_lib_prefix=no
 
14173
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14174
      runpath_var=LD_RUN_PATH
 
14175
      ;;
 
14176
    siemens)
 
14177
      need_lib_prefix=no
 
14178
      ;;
 
14179
    motorola)
 
14180
      need_lib_prefix=no
 
14181
      need_version=no
 
14182
      shlibpath_overrides_runpath=no
 
14183
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14184
      ;;
 
14185
  esac
 
14186
  ;;
 
14187
 
 
14188
sysv4*MP*)
 
14189
  if test -d /usr/nec ;then
 
14190
    version_type=linux
 
14191
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14192
    soname_spec='$libname${shared_ext}.$major'
 
14193
    shlibpath_var=LD_LIBRARY_PATH
 
14194
  fi
 
14195
  ;;
 
14196
 
 
14197
uts4*)
 
14198
  version_type=linux
 
14199
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14200
  soname_spec='${libname}${release}${shared_ext}$major'
 
14201
  shlibpath_var=LD_LIBRARY_PATH
 
14202
  ;;
 
14203
 
 
14204
*)
 
14205
  dynamic_linker=no
 
14206
  ;;
 
14207
esac
 
14208
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14209
echo "${ECHO_T}$dynamic_linker" >&6
 
14210
test "$dynamic_linker" = no && can_build_shared=no
 
14211
 
 
14212
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14213
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
14214
hardcode_action_CXX=
 
14215
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
14216
   test -n "$runpath_var CXX" || \
 
14217
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
14218
 
 
14219
  # We can hardcode non-existant directories.
 
14220
  if test "$hardcode_direct_CXX" != no &&
 
14221
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14222
     # have to relink, otherwise we might link with an installed library
 
14223
     # when we should be linking with a yet-to-be-installed one
 
14224
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
14225
     test "$hardcode_minus_L_CXX" != no; then
 
14226
    # Linking always hardcodes the temporary library directory.
 
14227
    hardcode_action_CXX=relink
 
14228
  else
 
14229
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14230
    hardcode_action_CXX=immediate
 
14231
  fi
 
14232
else
 
14233
  # We cannot hardcode anything, or else we can only hardcode existing
 
14234
  # directories.
 
14235
  hardcode_action_CXX=unsupported
 
14236
fi
 
14237
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
14238
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
14239
 
 
14240
if test "$hardcode_action_CXX" = relink; then
 
14241
  # Fast installation is not supported
 
14242
  enable_fast_install=no
 
14243
elif test "$shlibpath_overrides_runpath" = yes ||
 
14244
     test "$enable_shared" = no; then
 
14245
  # Fast installation is not necessary
 
14246
  enable_fast_install=needless
 
14247
fi
 
14248
 
 
14249
striplib=
 
14250
old_striplib=
 
14251
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
14252
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
14253
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
14254
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
14255
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
14256
  echo "$as_me:$LINENO: result: yes" >&5
 
14257
echo "${ECHO_T}yes" >&6
 
14258
else
 
14259
# FIXME - insert some real tests, host_os isn't really good enough
 
14260
  case $host_os in
 
14261
   darwin*)
 
14262
       if test -n "$STRIP" ; then
 
14263
         striplib="$STRIP -x"
 
14264
         echo "$as_me:$LINENO: result: yes" >&5
 
14265
echo "${ECHO_T}yes" >&6
 
14266
       else
 
14267
  echo "$as_me:$LINENO: result: no" >&5
 
14268
echo "${ECHO_T}no" >&6
 
14269
fi
 
14270
       ;;
 
14271
   *)
 
14272
  echo "$as_me:$LINENO: result: no" >&5
 
14273
echo "${ECHO_T}no" >&6
 
14274
    ;;
 
14275
  esac
 
14276
fi
 
14277
 
 
14278
if test "x$enable_dlopen" != xyes; then
 
14279
  enable_dlopen=unknown
 
14280
  enable_dlopen_self=unknown
 
14281
  enable_dlopen_self_static=unknown
 
14282
else
 
14283
  lt_cv_dlopen=no
 
14284
  lt_cv_dlopen_libs=
 
14285
 
 
14286
  case $host_os in
 
14287
  beos*)
 
14288
    lt_cv_dlopen="load_add_on"
 
14289
    lt_cv_dlopen_libs=
 
14290
    lt_cv_dlopen_self=yes
 
14291
    ;;
 
14292
 
 
14293
  mingw* | pw32*)
 
14294
    lt_cv_dlopen="LoadLibrary"
 
14295
    lt_cv_dlopen_libs=
 
14296
   ;;
 
14297
 
 
14298
  cygwin*)
 
14299
    lt_cv_dlopen="dlopen"
 
14300
    lt_cv_dlopen_libs=
 
14301
   ;;
 
14302
 
 
14303
  darwin*)
 
14304
  # if libdl is installed we need to link against it
 
14305
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
14306
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
14307
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
14308
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14309
else
 
14310
  ac_check_lib_save_LIBS=$LIBS
 
14311
LIBS="-ldl  $LIBS"
 
14312
cat >conftest.$ac_ext <<_ACEOF
 
14313
/* confdefs.h.  */
 
14314
_ACEOF
 
14315
cat confdefs.h >>conftest.$ac_ext
 
14316
cat >>conftest.$ac_ext <<_ACEOF
 
14317
/* end confdefs.h.  */
 
14318
 
 
14319
/* Override any gcc2 internal prototype to avoid an error.  */
 
14320
#ifdef __cplusplus
 
14321
extern "C"
 
14322
#endif
 
14323
/* We use char because int might match the return type of a gcc2
 
14324
   builtin and then its argument prototype would still apply.  */
 
14325
char dlopen ();
 
14326
int
 
14327
main ()
 
14328
{
 
14329
dlopen ();
 
14330
  ;
 
14331
  return 0;
 
14332
}
 
14333
_ACEOF
 
14334
rm -f conftest.$ac_objext conftest$ac_exeext
 
14335
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14336
  (eval $ac_link) 2>conftest.er1
 
14337
  ac_status=$?
 
14338
  grep -v '^ *+' conftest.er1 >conftest.err
 
14339
  rm -f conftest.er1
 
14340
  cat conftest.err >&5
 
14341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14342
  (exit $ac_status); } &&
 
14343
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14344
                         || test ! -s conftest.err'
 
14345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14346
  (eval $ac_try) 2>&5
 
14347
  ac_status=$?
 
14348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14349
  (exit $ac_status); }; } &&
 
14350
         { ac_try='test -s conftest$ac_exeext'
 
14351
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14352
  (eval $ac_try) 2>&5
 
14353
  ac_status=$?
 
14354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14355
  (exit $ac_status); }; }; then
 
14356
  ac_cv_lib_dl_dlopen=yes
 
14357
else
 
14358
  echo "$as_me: failed program was:" >&5
 
14359
sed 's/^/| /' conftest.$ac_ext >&5
 
14360
 
 
14361
ac_cv_lib_dl_dlopen=no
 
14362
fi
 
14363
rm -f conftest.err conftest.$ac_objext \
 
14364
      conftest$ac_exeext conftest.$ac_ext
 
14365
LIBS=$ac_check_lib_save_LIBS
 
14366
fi
 
14367
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
14368
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
14369
if test $ac_cv_lib_dl_dlopen = yes; then
 
14370
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
14371
else
 
14372
 
 
14373
    lt_cv_dlopen="dyld"
 
14374
    lt_cv_dlopen_libs=
 
14375
    lt_cv_dlopen_self=yes
 
14376
 
 
14377
fi
 
14378
 
 
14379
   ;;
 
14380
 
 
14381
  *)
 
14382
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
14383
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
14384
if test "${ac_cv_func_shl_load+set}" = set; then
 
14385
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14386
else
 
14387
  cat >conftest.$ac_ext <<_ACEOF
 
14388
/* confdefs.h.  */
 
14389
_ACEOF
 
14390
cat confdefs.h >>conftest.$ac_ext
 
14391
cat >>conftest.$ac_ext <<_ACEOF
 
14392
/* end confdefs.h.  */
 
14393
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
14394
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14395
#define shl_load innocuous_shl_load
 
14396
 
 
14397
/* System header to define __stub macros and hopefully few prototypes,
 
14398
    which can conflict with char shl_load (); below.
 
14399
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14400
    <limits.h> exists even on freestanding compilers.  */
 
14401
 
 
14402
#ifdef __STDC__
 
14403
# include <limits.h>
 
14404
#else
 
14405
# include <assert.h>
 
14406
#endif
 
14407
 
 
14408
#undef shl_load
 
14409
 
 
14410
/* Override any gcc2 internal prototype to avoid an error.  */
 
14411
#ifdef __cplusplus
 
14412
extern "C"
 
14413
{
 
14414
#endif
 
14415
/* We use char because int might match the return type of a gcc2
 
14416
   builtin and then its argument prototype would still apply.  */
 
14417
char shl_load ();
 
14418
/* The GNU C library defines this for functions which it implements
 
14419
    to always fail with ENOSYS.  Some functions are actually named
 
14420
    something starting with __ and the normal name is an alias.  */
 
14421
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
14422
choke me
 
14423
#else
 
14424
char (*f) () = shl_load;
 
14425
#endif
 
14426
#ifdef __cplusplus
 
14427
}
 
14428
#endif
 
14429
 
 
14430
int
 
14431
main ()
 
14432
{
 
14433
return f != shl_load;
 
14434
  ;
 
14435
  return 0;
 
14436
}
 
14437
_ACEOF
 
14438
rm -f conftest.$ac_objext conftest$ac_exeext
 
14439
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14440
  (eval $ac_link) 2>conftest.er1
 
14441
  ac_status=$?
 
14442
  grep -v '^ *+' conftest.er1 >conftest.err
 
14443
  rm -f conftest.er1
 
14444
  cat conftest.err >&5
 
14445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14446
  (exit $ac_status); } &&
 
14447
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14448
                         || test ! -s conftest.err'
 
14449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14450
  (eval $ac_try) 2>&5
 
14451
  ac_status=$?
 
14452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14453
  (exit $ac_status); }; } &&
 
14454
         { ac_try='test -s conftest$ac_exeext'
 
14455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14456
  (eval $ac_try) 2>&5
 
14457
  ac_status=$?
 
14458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14459
  (exit $ac_status); }; }; then
 
14460
  ac_cv_func_shl_load=yes
 
14461
else
 
14462
  echo "$as_me: failed program was:" >&5
 
14463
sed 's/^/| /' conftest.$ac_ext >&5
 
14464
 
 
14465
ac_cv_func_shl_load=no
 
14466
fi
 
14467
rm -f conftest.err conftest.$ac_objext \
 
14468
      conftest$ac_exeext conftest.$ac_ext
 
14469
fi
 
14470
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
14471
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
14472
if test $ac_cv_func_shl_load = yes; then
 
14473
  lt_cv_dlopen="shl_load"
 
14474
else
 
14475
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
14476
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
14477
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
14478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14479
else
 
14480
  ac_check_lib_save_LIBS=$LIBS
 
14481
LIBS="-ldld  $LIBS"
 
14482
cat >conftest.$ac_ext <<_ACEOF
 
14483
/* confdefs.h.  */
 
14484
_ACEOF
 
14485
cat confdefs.h >>conftest.$ac_ext
 
14486
cat >>conftest.$ac_ext <<_ACEOF
 
14487
/* end confdefs.h.  */
 
14488
 
 
14489
/* Override any gcc2 internal prototype to avoid an error.  */
 
14490
#ifdef __cplusplus
 
14491
extern "C"
 
14492
#endif
 
14493
/* We use char because int might match the return type of a gcc2
 
14494
   builtin and then its argument prototype would still apply.  */
 
14495
char shl_load ();
 
14496
int
 
14497
main ()
 
14498
{
 
14499
shl_load ();
 
14500
  ;
 
14501
  return 0;
 
14502
}
 
14503
_ACEOF
 
14504
rm -f conftest.$ac_objext conftest$ac_exeext
 
14505
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14506
  (eval $ac_link) 2>conftest.er1
 
14507
  ac_status=$?
 
14508
  grep -v '^ *+' conftest.er1 >conftest.err
 
14509
  rm -f conftest.er1
 
14510
  cat conftest.err >&5
 
14511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14512
  (exit $ac_status); } &&
 
14513
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14514
                         || test ! -s conftest.err'
 
14515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14516
  (eval $ac_try) 2>&5
 
14517
  ac_status=$?
 
14518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14519
  (exit $ac_status); }; } &&
 
14520
         { ac_try='test -s conftest$ac_exeext'
 
14521
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14522
  (eval $ac_try) 2>&5
 
14523
  ac_status=$?
 
14524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14525
  (exit $ac_status); }; }; then
 
14526
  ac_cv_lib_dld_shl_load=yes
 
14527
else
 
14528
  echo "$as_me: failed program was:" >&5
 
14529
sed 's/^/| /' conftest.$ac_ext >&5
 
14530
 
 
14531
ac_cv_lib_dld_shl_load=no
 
14532
fi
 
14533
rm -f conftest.err conftest.$ac_objext \
 
14534
      conftest$ac_exeext conftest.$ac_ext
 
14535
LIBS=$ac_check_lib_save_LIBS
 
14536
fi
 
14537
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
14538
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
14539
if test $ac_cv_lib_dld_shl_load = yes; then
 
14540
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
14541
else
 
14542
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
14543
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
14544
if test "${ac_cv_func_dlopen+set}" = set; then
 
14545
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14546
else
 
14547
  cat >conftest.$ac_ext <<_ACEOF
 
14548
/* confdefs.h.  */
 
14549
_ACEOF
 
14550
cat confdefs.h >>conftest.$ac_ext
 
14551
cat >>conftest.$ac_ext <<_ACEOF
 
14552
/* end confdefs.h.  */
 
14553
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
14554
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14555
#define dlopen innocuous_dlopen
 
14556
 
 
14557
/* System header to define __stub macros and hopefully few prototypes,
 
14558
    which can conflict with char dlopen (); below.
 
14559
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14560
    <limits.h> exists even on freestanding compilers.  */
 
14561
 
 
14562
#ifdef __STDC__
 
14563
# include <limits.h>
 
14564
#else
 
14565
# include <assert.h>
 
14566
#endif
 
14567
 
 
14568
#undef dlopen
 
14569
 
 
14570
/* Override any gcc2 internal prototype to avoid an error.  */
 
14571
#ifdef __cplusplus
 
14572
extern "C"
 
14573
{
 
14574
#endif
 
14575
/* We use char because int might match the return type of a gcc2
 
14576
   builtin and then its argument prototype would still apply.  */
 
14577
char dlopen ();
 
14578
/* The GNU C library defines this for functions which it implements
 
14579
    to always fail with ENOSYS.  Some functions are actually named
 
14580
    something starting with __ and the normal name is an alias.  */
 
14581
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
14582
choke me
 
14583
#else
 
14584
char (*f) () = dlopen;
 
14585
#endif
 
14586
#ifdef __cplusplus
 
14587
}
 
14588
#endif
 
14589
 
 
14590
int
 
14591
main ()
 
14592
{
 
14593
return f != dlopen;
 
14594
  ;
 
14595
  return 0;
 
14596
}
 
14597
_ACEOF
 
14598
rm -f conftest.$ac_objext conftest$ac_exeext
 
14599
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14600
  (eval $ac_link) 2>conftest.er1
 
14601
  ac_status=$?
 
14602
  grep -v '^ *+' conftest.er1 >conftest.err
 
14603
  rm -f conftest.er1
 
14604
  cat conftest.err >&5
 
14605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14606
  (exit $ac_status); } &&
 
14607
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14608
                         || test ! -s conftest.err'
 
14609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14610
  (eval $ac_try) 2>&5
 
14611
  ac_status=$?
 
14612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14613
  (exit $ac_status); }; } &&
 
14614
         { ac_try='test -s conftest$ac_exeext'
 
14615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14616
  (eval $ac_try) 2>&5
 
14617
  ac_status=$?
 
14618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14619
  (exit $ac_status); }; }; then
 
14620
  ac_cv_func_dlopen=yes
 
14621
else
 
14622
  echo "$as_me: failed program was:" >&5
 
14623
sed 's/^/| /' conftest.$ac_ext >&5
 
14624
 
 
14625
ac_cv_func_dlopen=no
 
14626
fi
 
14627
rm -f conftest.err conftest.$ac_objext \
 
14628
      conftest$ac_exeext conftest.$ac_ext
 
14629
fi
 
14630
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
14631
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
14632
if test $ac_cv_func_dlopen = yes; then
 
14633
  lt_cv_dlopen="dlopen"
 
14634
else
 
14635
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
14636
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
14637
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
14638
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14639
else
 
14640
  ac_check_lib_save_LIBS=$LIBS
 
14641
LIBS="-ldl  $LIBS"
 
14642
cat >conftest.$ac_ext <<_ACEOF
 
14643
/* confdefs.h.  */
 
14644
_ACEOF
 
14645
cat confdefs.h >>conftest.$ac_ext
 
14646
cat >>conftest.$ac_ext <<_ACEOF
 
14647
/* end confdefs.h.  */
 
14648
 
 
14649
/* Override any gcc2 internal prototype to avoid an error.  */
 
14650
#ifdef __cplusplus
 
14651
extern "C"
 
14652
#endif
 
14653
/* We use char because int might match the return type of a gcc2
 
14654
   builtin and then its argument prototype would still apply.  */
 
14655
char dlopen ();
 
14656
int
 
14657
main ()
 
14658
{
 
14659
dlopen ();
 
14660
  ;
 
14661
  return 0;
 
14662
}
 
14663
_ACEOF
 
14664
rm -f conftest.$ac_objext conftest$ac_exeext
 
14665
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14666
  (eval $ac_link) 2>conftest.er1
 
14667
  ac_status=$?
 
14668
  grep -v '^ *+' conftest.er1 >conftest.err
 
14669
  rm -f conftest.er1
 
14670
  cat conftest.err >&5
 
14671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14672
  (exit $ac_status); } &&
 
14673
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14674
                         || test ! -s conftest.err'
 
14675
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14676
  (eval $ac_try) 2>&5
 
14677
  ac_status=$?
 
14678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14679
  (exit $ac_status); }; } &&
 
14680
         { ac_try='test -s conftest$ac_exeext'
 
14681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14682
  (eval $ac_try) 2>&5
 
14683
  ac_status=$?
 
14684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14685
  (exit $ac_status); }; }; then
 
14686
  ac_cv_lib_dl_dlopen=yes
 
14687
else
 
14688
  echo "$as_me: failed program was:" >&5
 
14689
sed 's/^/| /' conftest.$ac_ext >&5
 
14690
 
 
14691
ac_cv_lib_dl_dlopen=no
 
14692
fi
 
14693
rm -f conftest.err conftest.$ac_objext \
 
14694
      conftest$ac_exeext conftest.$ac_ext
 
14695
LIBS=$ac_check_lib_save_LIBS
 
14696
fi
 
14697
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
14698
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
14699
if test $ac_cv_lib_dl_dlopen = yes; then
 
14700
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
14701
else
 
14702
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
14703
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
14704
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
14705
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14706
else
 
14707
  ac_check_lib_save_LIBS=$LIBS
 
14708
LIBS="-lsvld  $LIBS"
 
14709
cat >conftest.$ac_ext <<_ACEOF
 
14710
/* confdefs.h.  */
 
14711
_ACEOF
 
14712
cat confdefs.h >>conftest.$ac_ext
 
14713
cat >>conftest.$ac_ext <<_ACEOF
 
14714
/* end confdefs.h.  */
 
14715
 
 
14716
/* Override any gcc2 internal prototype to avoid an error.  */
 
14717
#ifdef __cplusplus
 
14718
extern "C"
 
14719
#endif
 
14720
/* We use char because int might match the return type of a gcc2
 
14721
   builtin and then its argument prototype would still apply.  */
 
14722
char dlopen ();
 
14723
int
 
14724
main ()
 
14725
{
 
14726
dlopen ();
 
14727
  ;
 
14728
  return 0;
 
14729
}
 
14730
_ACEOF
 
14731
rm -f conftest.$ac_objext conftest$ac_exeext
 
14732
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14733
  (eval $ac_link) 2>conftest.er1
 
14734
  ac_status=$?
 
14735
  grep -v '^ *+' conftest.er1 >conftest.err
 
14736
  rm -f conftest.er1
 
14737
  cat conftest.err >&5
 
14738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14739
  (exit $ac_status); } &&
 
14740
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14741
                         || test ! -s conftest.err'
 
14742
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14743
  (eval $ac_try) 2>&5
 
14744
  ac_status=$?
 
14745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14746
  (exit $ac_status); }; } &&
 
14747
         { ac_try='test -s conftest$ac_exeext'
 
14748
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14749
  (eval $ac_try) 2>&5
 
14750
  ac_status=$?
 
14751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14752
  (exit $ac_status); }; }; then
 
14753
  ac_cv_lib_svld_dlopen=yes
 
14754
else
 
14755
  echo "$as_me: failed program was:" >&5
 
14756
sed 's/^/| /' conftest.$ac_ext >&5
 
14757
 
 
14758
ac_cv_lib_svld_dlopen=no
 
14759
fi
 
14760
rm -f conftest.err conftest.$ac_objext \
 
14761
      conftest$ac_exeext conftest.$ac_ext
 
14762
LIBS=$ac_check_lib_save_LIBS
 
14763
fi
 
14764
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
14765
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
14766
if test $ac_cv_lib_svld_dlopen = yes; then
 
14767
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
14768
else
 
14769
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
14770
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
14771
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
14772
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14773
else
 
14774
  ac_check_lib_save_LIBS=$LIBS
 
14775
LIBS="-ldld  $LIBS"
 
14776
cat >conftest.$ac_ext <<_ACEOF
 
14777
/* confdefs.h.  */
 
14778
_ACEOF
 
14779
cat confdefs.h >>conftest.$ac_ext
 
14780
cat >>conftest.$ac_ext <<_ACEOF
 
14781
/* end confdefs.h.  */
 
14782
 
 
14783
/* Override any gcc2 internal prototype to avoid an error.  */
 
14784
#ifdef __cplusplus
 
14785
extern "C"
 
14786
#endif
 
14787
/* We use char because int might match the return type of a gcc2
 
14788
   builtin and then its argument prototype would still apply.  */
 
14789
char dld_link ();
 
14790
int
 
14791
main ()
 
14792
{
 
14793
dld_link ();
 
14794
  ;
 
14795
  return 0;
 
14796
}
 
14797
_ACEOF
 
14798
rm -f conftest.$ac_objext conftest$ac_exeext
 
14799
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14800
  (eval $ac_link) 2>conftest.er1
 
14801
  ac_status=$?
 
14802
  grep -v '^ *+' conftest.er1 >conftest.err
 
14803
  rm -f conftest.er1
 
14804
  cat conftest.err >&5
 
14805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14806
  (exit $ac_status); } &&
 
14807
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14808
                         || test ! -s conftest.err'
 
14809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14810
  (eval $ac_try) 2>&5
 
14811
  ac_status=$?
 
14812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14813
  (exit $ac_status); }; } &&
 
14814
         { ac_try='test -s conftest$ac_exeext'
 
14815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14816
  (eval $ac_try) 2>&5
 
14817
  ac_status=$?
 
14818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14819
  (exit $ac_status); }; }; then
 
14820
  ac_cv_lib_dld_dld_link=yes
 
14821
else
 
14822
  echo "$as_me: failed program was:" >&5
 
14823
sed 's/^/| /' conftest.$ac_ext >&5
 
14824
 
 
14825
ac_cv_lib_dld_dld_link=no
 
14826
fi
 
14827
rm -f conftest.err conftest.$ac_objext \
 
14828
      conftest$ac_exeext conftest.$ac_ext
 
14829
LIBS=$ac_check_lib_save_LIBS
 
14830
fi
 
14831
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
14832
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
14833
if test $ac_cv_lib_dld_dld_link = yes; then
 
14834
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
14835
fi
 
14836
 
 
14837
 
 
14838
fi
 
14839
 
 
14840
 
 
14841
fi
 
14842
 
 
14843
 
 
14844
fi
 
14845
 
 
14846
 
 
14847
fi
 
14848
 
 
14849
 
 
14850
fi
 
14851
 
 
14852
    ;;
 
14853
  esac
 
14854
 
 
14855
  if test "x$lt_cv_dlopen" != xno; then
 
14856
    enable_dlopen=yes
 
14857
  else
 
14858
    enable_dlopen=no
 
14859
  fi
 
14860
 
 
14861
  case $lt_cv_dlopen in
 
14862
  dlopen)
 
14863
    save_CPPFLAGS="$CPPFLAGS"
 
14864
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
14865
 
 
14866
    save_LDFLAGS="$LDFLAGS"
 
14867
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
14868
 
 
14869
    save_LIBS="$LIBS"
 
14870
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
14871
 
 
14872
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
14873
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
14874
if test "${lt_cv_dlopen_self+set}" = set; then
 
14875
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14876
else
 
14877
          if test "$cross_compiling" = yes; then :
 
14878
  lt_cv_dlopen_self=cross
 
14879
else
 
14880
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
14881
  lt_status=$lt_dlunknown
 
14882
  cat > conftest.$ac_ext <<EOF
 
14883
#line 14883 "configure"
 
14884
#include "confdefs.h"
 
14885
 
 
14886
#if HAVE_DLFCN_H
 
14887
#include <dlfcn.h>
 
14888
#endif
 
14889
 
 
14890
#include <stdio.h>
 
14891
 
 
14892
#ifdef RTLD_GLOBAL
 
14893
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
14894
#else
 
14895
#  ifdef DL_GLOBAL
 
14896
#    define LT_DLGLOBAL         DL_GLOBAL
 
14897
#  else
 
14898
#    define LT_DLGLOBAL         0
 
14899
#  endif
 
14900
#endif
 
14901
 
 
14902
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
14903
   find out it does not work in some platform. */
 
14904
#ifndef LT_DLLAZY_OR_NOW
 
14905
#  ifdef RTLD_LAZY
 
14906
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
14907
#  else
 
14908
#    ifdef DL_LAZY
 
14909
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
14910
#    else
 
14911
#      ifdef RTLD_NOW
 
14912
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
14913
#      else
 
14914
#        ifdef DL_NOW
 
14915
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
14916
#        else
 
14917
#          define LT_DLLAZY_OR_NOW      0
 
14918
#        endif
 
14919
#      endif
 
14920
#    endif
 
14921
#  endif
 
14922
#endif
 
14923
 
 
14924
#ifdef __cplusplus
 
14925
extern "C" void exit (int);
 
14926
#endif
 
14927
 
 
14928
void fnord() { int i=42;}
 
14929
int main ()
 
14930
{
 
14931
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
14932
  int status = $lt_dlunknown;
 
14933
 
 
14934
  if (self)
 
14935
    {
 
14936
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
14937
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
14938
      /* dlclose (self); */
 
14939
    }
 
14940
 
 
14941
    exit (status);
 
14942
}
 
14943
EOF
 
14944
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14945
  (eval $ac_link) 2>&5
 
14946
  ac_status=$?
 
14947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14948
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
14949
    (./conftest; exit; ) 2>/dev/null
 
14950
    lt_status=$?
 
14951
    case x$lt_status in
 
14952
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
14953
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
14954
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
14955
    esac
 
14956
  else :
 
14957
    # compilation failed
 
14958
    lt_cv_dlopen_self=no
 
14959
  fi
 
14960
fi
 
14961
rm -fr conftest*
 
14962
 
 
14963
 
 
14964
fi
 
14965
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
14966
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
14967
 
 
14968
    if test "x$lt_cv_dlopen_self" = xyes; then
 
14969
      LDFLAGS="$LDFLAGS $link_static_flag"
 
14970
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
14971
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
14972
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
14973
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14974
else
 
14975
          if test "$cross_compiling" = yes; then :
 
14976
  lt_cv_dlopen_self_static=cross
 
14977
else
 
14978
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
14979
  lt_status=$lt_dlunknown
 
14980
  cat > conftest.$ac_ext <<EOF
 
14981
#line 14981 "configure"
 
14982
#include "confdefs.h"
 
14983
 
 
14984
#if HAVE_DLFCN_H
 
14985
#include <dlfcn.h>
 
14986
#endif
 
14987
 
 
14988
#include <stdio.h>
 
14989
 
 
14990
#ifdef RTLD_GLOBAL
 
14991
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
14992
#else
 
14993
#  ifdef DL_GLOBAL
 
14994
#    define LT_DLGLOBAL         DL_GLOBAL
 
14995
#  else
 
14996
#    define LT_DLGLOBAL         0
 
14997
#  endif
 
14998
#endif
 
14999
 
 
15000
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
15001
   find out it does not work in some platform. */
 
15002
#ifndef LT_DLLAZY_OR_NOW
 
15003
#  ifdef RTLD_LAZY
 
15004
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
15005
#  else
 
15006
#    ifdef DL_LAZY
 
15007
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
15008
#    else
 
15009
#      ifdef RTLD_NOW
 
15010
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
15011
#      else
 
15012
#        ifdef DL_NOW
 
15013
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
15014
#        else
 
15015
#          define LT_DLLAZY_OR_NOW      0
 
15016
#        endif
 
15017
#      endif
 
15018
#    endif
 
15019
#  endif
 
15020
#endif
 
15021
 
 
15022
#ifdef __cplusplus
 
15023
extern "C" void exit (int);
 
15024
#endif
 
15025
 
 
15026
void fnord() { int i=42;}
 
15027
int main ()
 
15028
{
 
15029
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
15030
  int status = $lt_dlunknown;
 
15031
 
 
15032
  if (self)
 
15033
    {
 
15034
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
15035
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
15036
      /* dlclose (self); */
 
15037
    }
 
15038
 
 
15039
    exit (status);
 
15040
}
 
15041
EOF
 
15042
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15043
  (eval $ac_link) 2>&5
 
15044
  ac_status=$?
 
15045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15046
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
15047
    (./conftest; exit; ) 2>/dev/null
 
15048
    lt_status=$?
 
15049
    case x$lt_status in
 
15050
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
15051
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
15052
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
15053
    esac
 
15054
  else :
 
15055
    # compilation failed
 
15056
    lt_cv_dlopen_self_static=no
 
15057
  fi
 
15058
fi
 
15059
rm -fr conftest*
 
15060
 
 
15061
 
 
15062
fi
 
15063
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
15064
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
15065
    fi
 
15066
 
 
15067
    CPPFLAGS="$save_CPPFLAGS"
 
15068
    LDFLAGS="$save_LDFLAGS"
 
15069
    LIBS="$save_LIBS"
 
15070
    ;;
 
15071
  esac
 
15072
 
 
15073
  case $lt_cv_dlopen_self in
 
15074
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
15075
  *) enable_dlopen_self=unknown ;;
 
15076
  esac
 
15077
 
 
15078
  case $lt_cv_dlopen_self_static in
 
15079
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
15080
  *) enable_dlopen_self_static=unknown ;;
 
15081
  esac
 
15082
fi
 
15083
 
 
15084
 
 
15085
# The else clause should only fire when bootstrapping the
 
15086
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15087
# with your package, and you will get complaints that there are
 
15088
# no rules to generate ltmain.sh.
 
15089
if test -f "$ltmain"; then
 
15090
  # See if we are running on zsh, and set the options which allow our commands through
 
15091
  # without removal of \ escapes.
 
15092
  if test -n "${ZSH_VERSION+set}" ; then
 
15093
    setopt NO_GLOB_SUBST
 
15094
  fi
 
15095
  # Now quote all the things that may contain metacharacters while being
 
15096
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15097
  # variables and quote the copies for generation of the libtool script.
 
15098
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
15099
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15100
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15101
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15102
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15103
    lt_cv_sys_global_symbol_to_c_name_address \
 
15104
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15105
    old_postinstall_cmds old_postuninstall_cmds \
 
15106
    compiler_CXX \
 
15107
    CC_CXX \
 
15108
    LD_CXX \
 
15109
    lt_prog_compiler_wl_CXX \
 
15110
    lt_prog_compiler_pic_CXX \
 
15111
    lt_prog_compiler_static_CXX \
 
15112
    lt_prog_compiler_no_builtin_flag_CXX \
 
15113
    export_dynamic_flag_spec_CXX \
 
15114
    thread_safe_flag_spec_CXX \
 
15115
    whole_archive_flag_spec_CXX \
 
15116
    enable_shared_with_static_runtimes_CXX \
 
15117
    old_archive_cmds_CXX \
 
15118
    old_archive_from_new_cmds_CXX \
 
15119
    predep_objects_CXX \
 
15120
    postdep_objects_CXX \
 
15121
    predeps_CXX \
 
15122
    postdeps_CXX \
 
15123
    compiler_lib_search_path_CXX \
 
15124
    archive_cmds_CXX \
 
15125
    archive_expsym_cmds_CXX \
 
15126
    postinstall_cmds_CXX \
 
15127
    postuninstall_cmds_CXX \
 
15128
    old_archive_from_expsyms_cmds_CXX \
 
15129
    allow_undefined_flag_CXX \
 
15130
    no_undefined_flag_CXX \
 
15131
    export_symbols_cmds_CXX \
 
15132
    hardcode_libdir_flag_spec_CXX \
 
15133
    hardcode_libdir_flag_spec_ld_CXX \
 
15134
    hardcode_libdir_separator_CXX \
 
15135
    hardcode_automatic_CXX \
 
15136
    module_cmds_CXX \
 
15137
    module_expsym_cmds_CXX \
 
15138
    lt_cv_prog_compiler_c_o_CXX \
 
15139
    exclude_expsyms_CXX \
 
15140
    include_expsyms_CXX; do
 
15141
 
 
15142
    case $var in
 
15143
    old_archive_cmds_CXX | \
 
15144
    old_archive_from_new_cmds_CXX | \
 
15145
    archive_cmds_CXX | \
 
15146
    archive_expsym_cmds_CXX | \
 
15147
    module_cmds_CXX | \
 
15148
    module_expsym_cmds_CXX | \
 
15149
    old_archive_from_expsyms_cmds_CXX | \
 
15150
    export_symbols_cmds_CXX | \
 
15151
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15152
    postinstall_cmds | postuninstall_cmds | \
 
15153
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15154
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15155
      # Double-quote double-evaled strings.
 
15156
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15157
      ;;
 
15158
    *)
 
15159
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15160
      ;;
 
15161
    esac
 
15162
  done
 
15163
 
 
15164
  case $lt_echo in
 
15165
  *'\$0 --fallback-echo"')
 
15166
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15167
    ;;
 
15168
  esac
 
15169
 
 
15170
cfgfile="$ofile"
 
15171
 
 
15172
  cat <<__EOF__ >> "$cfgfile"
 
15173
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15174
 
 
15175
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15176
 
 
15177
# Shell to use when invoking shell scripts.
 
15178
SHELL=$lt_SHELL
 
15179
 
 
15180
# Whether or not to build shared libraries.
 
15181
build_libtool_libs=$enable_shared
 
15182
 
 
15183
# Whether or not to build static libraries.
 
15184
build_old_libs=$enable_static
 
15185
 
 
15186
# Whether or not to add -lc for building shared libraries.
 
15187
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
15188
 
 
15189
# Whether or not to disallow shared libs when runtime libs are static
 
15190
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
15191
 
 
15192
# Whether or not to optimize for fast installation.
 
15193
fast_install=$enable_fast_install
 
15194
 
 
15195
# The host system.
 
15196
host_alias=$host_alias
 
15197
host=$host
 
15198
 
 
15199
# An echo program that does not interpret backslashes.
 
15200
echo=$lt_echo
 
15201
 
 
15202
# The archiver.
 
15203
AR=$lt_AR
 
15204
AR_FLAGS=$lt_AR_FLAGS
 
15205
 
 
15206
# A C compiler.
 
15207
LTCC=$lt_LTCC
 
15208
 
 
15209
# A language-specific compiler.
 
15210
CC=$lt_compiler_CXX
 
15211
 
 
15212
# Is the compiler the GNU C compiler?
 
15213
with_gcc=$GCC_CXX
 
15214
 
 
15215
# An ERE matcher.
 
15216
EGREP=$lt_EGREP
 
15217
 
 
15218
# The linker used to build libraries.
 
15219
LD=$lt_LD_CXX
 
15220
 
 
15221
# Whether we need hard or soft links.
 
15222
LN_S=$lt_LN_S
 
15223
 
 
15224
# A BSD-compatible nm program.
 
15225
NM=$lt_NM
 
15226
 
 
15227
# A symbol stripping program
 
15228
STRIP=$STRIP
 
15229
 
 
15230
# Used to examine libraries when file_magic_cmd begins "file"
 
15231
MAGIC_CMD=$MAGIC_CMD
 
15232
 
 
15233
# Used on cygwin: DLL creation program.
 
15234
DLLTOOL="$DLLTOOL"
 
15235
 
 
15236
# Used on cygwin: object dumper.
 
15237
OBJDUMP="$OBJDUMP"
 
15238
 
 
15239
# Used on cygwin: assembler.
 
15240
AS="$AS"
 
15241
 
 
15242
# The name of the directory that contains temporary libtool files.
 
15243
objdir=$objdir
 
15244
 
 
15245
# How to create reloadable object files.
 
15246
reload_flag=$lt_reload_flag
 
15247
reload_cmds=$lt_reload_cmds
 
15248
 
 
15249
# How to pass a linker flag through the compiler.
 
15250
wl=$lt_lt_prog_compiler_wl_CXX
 
15251
 
 
15252
# Object file suffix (normally "o").
 
15253
objext="$ac_objext"
 
15254
 
 
15255
# Old archive suffix (normally "a").
 
15256
libext="$libext"
 
15257
 
 
15258
# Shared library suffix (normally ".so").
 
15259
shrext='$shrext'
 
15260
 
 
15261
# Executable file suffix (normally "").
 
15262
exeext="$exeext"
 
15263
 
 
15264
# Additional compiler flags for building library objects.
 
15265
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
15266
pic_mode=$pic_mode
 
15267
 
 
15268
# What is the maximum length of a command?
 
15269
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15270
 
 
15271
# Does compiler simultaneously support -c and -o options?
 
15272
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
15273
 
 
15274
# Must we lock files when doing compilation ?
 
15275
need_locks=$lt_need_locks
 
15276
 
 
15277
# Do we need the lib prefix for modules?
 
15278
need_lib_prefix=$need_lib_prefix
 
15279
 
 
15280
# Do we need a version for libraries?
 
15281
need_version=$need_version
 
15282
 
 
15283
# Whether dlopen is supported.
 
15284
dlopen_support=$enable_dlopen
 
15285
 
 
15286
# Whether dlopen of programs is supported.
 
15287
dlopen_self=$enable_dlopen_self
 
15288
 
 
15289
# Whether dlopen of statically linked programs is supported.
 
15290
dlopen_self_static=$enable_dlopen_self_static
 
15291
 
 
15292
# Compiler flag to prevent dynamic linking.
 
15293
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
15294
 
 
15295
# Compiler flag to turn off builtin functions.
 
15296
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
15297
 
 
15298
# Compiler flag to allow reflexive dlopens.
 
15299
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
15300
 
 
15301
# Compiler flag to generate shared objects directly from archives.
 
15302
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
15303
 
 
15304
# Compiler flag to generate thread-safe objects.
 
15305
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
15306
 
 
15307
# Library versioning type.
 
15308
version_type=$version_type
 
15309
 
 
15310
# Format of library name prefix.
 
15311
libname_spec=$lt_libname_spec
 
15312
 
 
15313
# List of archive names.  First name is the real one, the rest are links.
 
15314
# The last name is the one that the linker finds with -lNAME.
 
15315
library_names_spec=$lt_library_names_spec
 
15316
 
 
15317
# The coded name of the library, if different from the real name.
 
15318
soname_spec=$lt_soname_spec
 
15319
 
 
15320
# Commands used to build and install an old-style archive.
 
15321
RANLIB=$lt_RANLIB
 
15322
old_archive_cmds=$lt_old_archive_cmds_CXX
 
15323
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15324
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15325
 
 
15326
# Create an old-style archive from a shared archive.
 
15327
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
15328
 
 
15329
# Create a temporary old-style archive to link instead of a shared archive.
 
15330
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
15331
 
 
15332
# Commands used to build and install a shared archive.
 
15333
archive_cmds=$lt_archive_cmds_CXX
 
15334
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
15335
postinstall_cmds=$lt_postinstall_cmds
 
15336
postuninstall_cmds=$lt_postuninstall_cmds
 
15337
 
 
15338
# Commands used to build a loadable module (assumed same as above if empty)
 
15339
module_cmds=$lt_module_cmds_CXX
 
15340
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
15341
 
 
15342
# Commands to strip libraries.
 
15343
old_striplib=$lt_old_striplib
 
15344
striplib=$lt_striplib
 
15345
 
 
15346
# Dependencies to place before the objects being linked to create a
 
15347
# shared library.
 
15348
predep_objects=$lt_predep_objects_CXX
 
15349
 
 
15350
# Dependencies to place after the objects being linked to create a
 
15351
# shared library.
 
15352
postdep_objects=$lt_postdep_objects_CXX
 
15353
 
 
15354
# Dependencies to place before the objects being linked to create a
 
15355
# shared library.
 
15356
predeps=$lt_predeps_CXX
 
15357
 
 
15358
# Dependencies to place after the objects being linked to create a
 
15359
# shared library.
 
15360
postdeps=$lt_postdeps_CXX
 
15361
 
 
15362
# The library search path used internally by the compiler when linking
 
15363
# a shared library.
 
15364
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
15365
 
 
15366
# Method to check whether dependent libraries are shared objects.
 
15367
deplibs_check_method=$lt_deplibs_check_method
 
15368
 
 
15369
# Command to use when deplibs_check_method == file_magic.
 
15370
file_magic_cmd=$lt_file_magic_cmd
 
15371
 
 
15372
# Flag that allows shared libraries with undefined symbols to be built.
 
15373
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
15374
 
 
15375
# Flag that forces no undefined symbols.
 
15376
no_undefined_flag=$lt_no_undefined_flag_CXX
 
15377
 
 
15378
# Commands used to finish a libtool library installation in a directory.
 
15379
finish_cmds=$lt_finish_cmds
 
15380
 
 
15381
# Same as above, but a single script fragment to be evaled but not shown.
 
15382
finish_eval=$lt_finish_eval
 
15383
 
 
15384
# Take the output of nm and produce a listing of raw symbols and C names.
 
15385
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15386
 
 
15387
# Transform the output of nm in a proper C declaration
 
15388
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15389
 
 
15390
# Transform the output of nm in a C name address pair
 
15391
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15392
 
 
15393
# This is the shared library runtime path variable.
 
15394
runpath_var=$runpath_var
 
15395
 
 
15396
# This is the shared library path variable.
 
15397
shlibpath_var=$shlibpath_var
 
15398
 
 
15399
# Is shlibpath searched before the hard-coded library search path?
 
15400
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15401
 
 
15402
# How to hardcode a shared library path into an executable.
 
15403
hardcode_action=$hardcode_action_CXX
 
15404
 
 
15405
# Whether we should hardcode library paths into libraries.
 
15406
hardcode_into_libs=$hardcode_into_libs
 
15407
 
 
15408
# Flag to hardcode \$libdir into a binary during linking.
 
15409
# This must work even if \$libdir does not exist.
 
15410
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
15411
 
 
15412
# If ld is used when linking, flag to hardcode \$libdir into
 
15413
# a binary during linking. This must work even if \$libdir does
 
15414
# not exist.
 
15415
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
15416
 
 
15417
# Whether we need a single -rpath flag with a separated argument.
 
15418
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
15419
 
 
15420
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15421
# resulting binary.
 
15422
hardcode_direct=$hardcode_direct_CXX
 
15423
 
 
15424
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15425
# resulting binary.
 
15426
hardcode_minus_L=$hardcode_minus_L_CXX
 
15427
 
 
15428
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15429
# the resulting binary.
 
15430
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
15431
 
 
15432
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15433
# and all subsequent libraries and executables linked against it.
 
15434
hardcode_automatic=$hardcode_automatic_CXX
 
15435
 
 
15436
# Variables whose values should be saved in libtool wrapper scripts and
 
15437
# restored at relink time.
 
15438
variables_saved_for_relink="$variables_saved_for_relink"
 
15439
 
 
15440
# Whether libtool must link a program against all its dependency libraries.
 
15441
link_all_deplibs=$link_all_deplibs_CXX
 
15442
 
 
15443
# Compile-time system search path for libraries
 
15444
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15445
 
 
15446
# Run-time system search path for libraries
 
15447
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15448
 
 
15449
# Fix the shell variable \$srcfile for the compiler.
 
15450
fix_srcfile_path="$fix_srcfile_path_CXX"
 
15451
 
 
15452
# Set to yes if exported symbols are required.
 
15453
always_export_symbols=$always_export_symbols_CXX
 
15454
 
 
15455
# The commands to list exported symbols.
 
15456
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
15457
 
 
15458
# The commands to extract the exported symbol list from a shared archive.
 
15459
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15460
 
 
15461
# Symbols that should not be listed in the preloaded symbols.
 
15462
exclude_expsyms=$lt_exclude_expsyms_CXX
 
15463
 
 
15464
# Symbols that must always be exported.
 
15465
include_expsyms=$lt_include_expsyms_CXX
 
15466
 
 
15467
# ### END LIBTOOL TAG CONFIG: $tagname
 
15468
 
 
15469
__EOF__
 
15470
 
 
15471
 
 
15472
else
 
15473
  # If there is no Makefile yet, we rely on a make rule to execute
 
15474
  # `config.status --recheck' to rerun these tests and create the
 
15475
  # libtool script then.
 
15476
  test -f Makefile && make "$ltmain"
 
15477
fi
 
15478
 
 
15479
 
 
15480
ac_ext=c
 
15481
ac_cpp='$CPP $CPPFLAGS'
 
15482
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15483
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15484
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15485
 
 
15486
CC=$lt_save_CC
 
15487
LDCXX=$LD
 
15488
LD=$lt_save_LD
 
15489
GCC=$lt_save_GCC
 
15490
with_gnu_ldcxx=$with_gnu_ld
 
15491
with_gnu_ld=$lt_save_with_gnu_ld
 
15492
lt_cv_path_LDCXX=$lt_cv_path_LD
 
15493
lt_cv_path_LD=$lt_save_path_LD
 
15494
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15495
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15496
 
 
15497
        else
 
15498
          tagname=""
 
15499
        fi
 
15500
        ;;
 
15501
 
 
15502
      F77)
 
15503
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
15504
 
 
15505
ac_ext=f
 
15506
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
15507
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15508
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
15509
 
 
15510
 
 
15511
archive_cmds_need_lc_F77=no
 
15512
allow_undefined_flag_F77=
 
15513
always_export_symbols_F77=no
 
15514
archive_expsym_cmds_F77=
 
15515
export_dynamic_flag_spec_F77=
 
15516
hardcode_direct_F77=no
 
15517
hardcode_libdir_flag_spec_F77=
 
15518
hardcode_libdir_flag_spec_ld_F77=
 
15519
hardcode_libdir_separator_F77=
 
15520
hardcode_minus_L_F77=no
 
15521
hardcode_automatic_F77=no
 
15522
module_cmds_F77=
 
15523
module_expsym_cmds_F77=
 
15524
link_all_deplibs_F77=unknown
 
15525
old_archive_cmds_F77=$old_archive_cmds
 
15526
no_undefined_flag_F77=
 
15527
whole_archive_flag_spec_F77=
 
15528
enable_shared_with_static_runtimes_F77=no
 
15529
 
 
15530
# Source file extension for f77 test sources.
 
15531
ac_ext=f
 
15532
 
 
15533
# Object file extension for compiled f77 test sources.
 
15534
objext=o
 
15535
objext_F77=$objext
 
15536
 
 
15537
# Code to be used in simple compile tests
 
15538
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
15539
 
 
15540
# Code to be used in simple link tests
 
15541
lt_simple_link_test_code="      program t\n      end\n"
 
15542
 
 
15543
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15544
 
 
15545
# If no C compiler was specified, use CC.
 
15546
LTCC=${LTCC-"$CC"}
 
15547
 
 
15548
# Allow CC to be a program name with arguments.
 
15549
compiler=$CC
 
15550
 
 
15551
 
 
15552
# Allow CC to be a program name with arguments.
 
15553
lt_save_CC="$CC"
 
15554
CC=${F77-"f77"}
 
15555
compiler=$CC
 
15556
compiler_F77=$CC
 
15557
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
15558
 
 
15559
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
15560
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
15561
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
15562
echo "${ECHO_T}$can_build_shared" >&6
 
15563
 
 
15564
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
15565
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
15566
test "$can_build_shared" = "no" && enable_shared=no
 
15567
 
 
15568
# On AIX, shared libraries and static libraries use the same namespace, and
 
15569
# are all built from PIC.
 
15570
case "$host_os" in
 
15571
aix3*)
 
15572
  test "$enable_shared" = yes && enable_static=no
 
15573
  if test -n "$RANLIB"; then
 
15574
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
15575
    postinstall_cmds='$RANLIB $lib'
 
15576
  fi
 
15577
  ;;
 
15578
aix4*)
 
15579
  test "$enable_shared" = yes && enable_static=no
 
15580
  ;;
 
15581
esac
 
15582
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
15583
echo "${ECHO_T}$enable_shared" >&6
 
15584
 
 
15585
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
15586
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
15587
# Make sure either enable_shared or enable_static is yes.
 
15588
test "$enable_shared" = yes || enable_static=yes
 
15589
echo "$as_me:$LINENO: result: $enable_static" >&5
 
15590
echo "${ECHO_T}$enable_static" >&6
 
15591
 
 
15592
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15593
 
 
15594
GCC_F77="$G77"
 
15595
LD_F77="$LD"
 
15596
 
 
15597
lt_prog_compiler_wl_F77=
 
15598
lt_prog_compiler_pic_F77=
 
15599
lt_prog_compiler_static_F77=
 
15600
 
 
15601
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15602
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15603
 
 
15604
  if test "$GCC" = yes; then
 
15605
    lt_prog_compiler_wl_F77='-Wl,'
 
15606
    lt_prog_compiler_static_F77='-static'
 
15607
 
 
15608
    case $host_os in
 
15609
      aix*)
 
15610
      # All AIX code is PIC.
 
15611
      if test "$host_cpu" = ia64; then
 
15612
        # AIX 5 now supports IA64 processor
 
15613
        lt_prog_compiler_static_F77='-Bstatic'
 
15614
      fi
 
15615
      ;;
 
15616
 
 
15617
    amigaos*)
 
15618
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15619
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15620
      # like `-m68040'.
 
15621
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
15622
      ;;
 
15623
 
 
15624
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15625
      # PIC is the default for these OSes.
 
15626
      ;;
 
15627
 
 
15628
    mingw* | pw32* | os2*)
 
15629
      # This hack is so that the source file can tell whether it is being
 
15630
      # built for inclusion in a dll (and should export symbols for example).
 
15631
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
15632
      ;;
 
15633
 
 
15634
    darwin* | rhapsody*)
 
15635
      # PIC is the default on this platform
 
15636
      # Common symbols not allowed in MH_DYLIB files
 
15637
      lt_prog_compiler_pic_F77='-fno-common'
 
15638
      ;;
 
15639
 
 
15640
    msdosdjgpp*)
 
15641
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15642
      # on systems that don't support them.
 
15643
      lt_prog_compiler_can_build_shared_F77=no
 
15644
      enable_shared=no
 
15645
      ;;
 
15646
 
 
15647
    sysv4*MP*)
 
15648
      if test -d /usr/nec; then
 
15649
        lt_prog_compiler_pic_F77=-Kconform_pic
 
15650
      fi
 
15651
      ;;
 
15652
 
 
15653
    hpux*)
 
15654
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15655
      # not for PA HP-UX.
 
15656
      case "$host_cpu" in
 
15657
      hppa*64*|ia64*)
 
15658
        # +Z the default
 
15659
        ;;
 
15660
      *)
 
15661
        lt_prog_compiler_pic_F77='-fPIC'
 
15662
        ;;
 
15663
      esac
 
15664
      ;;
 
15665
 
 
15666
    *)
 
15667
      lt_prog_compiler_pic_F77='-fPIC'
 
15668
      ;;
 
15669
    esac
 
15670
  else
 
15671
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15672
    case $host_os in
 
15673
    aix*)
 
15674
      lt_prog_compiler_wl_F77='-Wl,'
 
15675
      if test "$host_cpu" = ia64; then
 
15676
        # AIX 5 now supports IA64 processor
 
15677
        lt_prog_compiler_static_F77='-Bstatic'
 
15678
      else
 
15679
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
15680
      fi
 
15681
      ;;
 
15682
 
 
15683
    mingw* | pw32* | os2*)
 
15684
      # This hack is so that the source file can tell whether it is being
 
15685
      # built for inclusion in a dll (and should export symbols for example).
 
15686
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
15687
      ;;
 
15688
 
 
15689
    hpux9* | hpux10* | hpux11*)
 
15690
      lt_prog_compiler_wl_F77='-Wl,'
 
15691
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15692
      # not for PA HP-UX.
 
15693
      case "$host_cpu" in
 
15694
      hppa*64*|ia64*)
 
15695
        # +Z the default
 
15696
        ;;
 
15697
      *)
 
15698
        lt_prog_compiler_pic_F77='+Z'
 
15699
        ;;
 
15700
      esac
 
15701
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15702
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
15703
      ;;
 
15704
 
 
15705
    irix5* | irix6* | nonstopux*)
 
15706
      lt_prog_compiler_wl_F77='-Wl,'
 
15707
      # PIC (with -KPIC) is the default.
 
15708
      lt_prog_compiler_static_F77='-non_shared'
 
15709
      ;;
 
15710
 
 
15711
    newsos6)
 
15712
      lt_prog_compiler_pic_F77='-KPIC'
 
15713
      lt_prog_compiler_static_F77='-Bstatic'
 
15714
      ;;
 
15715
 
 
15716
    linux*)
 
15717
      case $CC in
 
15718
      icc* | ecc*)
 
15719
        lt_prog_compiler_wl_F77='-Wl,'
 
15720
        lt_prog_compiler_pic_F77='-KPIC'
 
15721
        lt_prog_compiler_static_F77='-static'
 
15722
        ;;
 
15723
      ccc*)
 
15724
        lt_prog_compiler_wl_F77='-Wl,'
 
15725
        # All Alpha code is PIC.
 
15726
        lt_prog_compiler_static_F77='-non_shared'
 
15727
        ;;
 
15728
      esac
 
15729
      ;;
 
15730
 
 
15731
    osf3* | osf4* | osf5*)
 
15732
      lt_prog_compiler_wl_F77='-Wl,'
 
15733
      # All OSF/1 code is PIC.
 
15734
      lt_prog_compiler_static_F77='-non_shared'
 
15735
      ;;
 
15736
 
 
15737
    sco3.2v5*)
 
15738
      lt_prog_compiler_pic_F77='-Kpic'
 
15739
      lt_prog_compiler_static_F77='-dn'
 
15740
      ;;
 
15741
 
 
15742
    solaris*)
 
15743
      lt_prog_compiler_wl_F77='-Wl,'
 
15744
      lt_prog_compiler_pic_F77='-KPIC'
 
15745
      lt_prog_compiler_static_F77='-Bstatic'
 
15746
      ;;
 
15747
 
 
15748
    sunos4*)
 
15749
      lt_prog_compiler_wl_F77='-Qoption ld '
 
15750
      lt_prog_compiler_pic_F77='-PIC'
 
15751
      lt_prog_compiler_static_F77='-Bstatic'
 
15752
      ;;
 
15753
 
 
15754
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15755
      lt_prog_compiler_wl_F77='-Wl,'
 
15756
      lt_prog_compiler_pic_F77='-KPIC'
 
15757
      lt_prog_compiler_static_F77='-Bstatic'
 
15758
      ;;
 
15759
 
 
15760
    sysv4*MP*)
 
15761
      if test -d /usr/nec ;then
 
15762
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
15763
        lt_prog_compiler_static_F77='-Bstatic'
 
15764
      fi
 
15765
      ;;
 
15766
 
 
15767
    uts4*)
 
15768
      lt_prog_compiler_pic_F77='-pic'
 
15769
      lt_prog_compiler_static_F77='-Bstatic'
 
15770
      ;;
 
15771
 
 
15772
    *)
 
15773
      lt_prog_compiler_can_build_shared_F77=no
 
15774
      ;;
 
15775
    esac
 
15776
  fi
 
15777
 
 
15778
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
15779
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
15780
 
 
15781
#
 
15782
# Check to make sure the PIC flag actually works.
 
15783
#
 
15784
if test -n "$lt_prog_compiler_pic_F77"; then
 
15785
 
 
15786
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
15787
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
15788
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
15789
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15790
else
 
15791
  lt_prog_compiler_pic_works_F77=no
 
15792
  ac_outfile=conftest.$ac_objext
 
15793
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15794
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
15795
   # Insert the option either (1) after the last *FLAGS variable, or
 
15796
   # (2) before a word containing "conftest.", or (3) at the end.
 
15797
   # Note that $ac_compile itself does not contain backslashes and begins
 
15798
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15799
   # The option is referenced via a variable to avoid confusing sed.
 
15800
   lt_compile=`echo "$ac_compile" | $SED \
 
15801
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15802
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15803
   -e 's:$: $lt_compiler_flag:'`
 
15804
   (eval echo "\"\$as_me:15804: $lt_compile\"" >&5)
 
15805
   (eval "$lt_compile" 2>conftest.err)
 
15806
   ac_status=$?
 
15807
   cat conftest.err >&5
 
15808
   echo "$as_me:15808: \$? = $ac_status" >&5
 
15809
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15810
     # The compiler can only warn and ignore the option if not recognized
 
15811
     # So say no if there are warnings
 
15812
     if test ! -s conftest.err; then
 
15813
       lt_prog_compiler_pic_works_F77=yes
 
15814
     fi
 
15815
   fi
 
15816
   $rm conftest*
 
15817
 
 
15818
fi
 
15819
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
15820
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
15821
 
 
15822
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
15823
    case $lt_prog_compiler_pic_F77 in
 
15824
     "" | " "*) ;;
 
15825
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
15826
     esac
 
15827
else
 
15828
    lt_prog_compiler_pic_F77=
 
15829
     lt_prog_compiler_can_build_shared_F77=no
 
15830
fi
 
15831
 
 
15832
fi
 
15833
case "$host_os" in
 
15834
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15835
  *djgpp*)
 
15836
    lt_prog_compiler_pic_F77=
 
15837
    ;;
 
15838
  *)
 
15839
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
15840
    ;;
 
15841
esac
 
15842
 
 
15843
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15844
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15845
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
15846
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15847
else
 
15848
  lt_cv_prog_compiler_c_o_F77=no
 
15849
   $rm -r conftest 2>/dev/null
 
15850
   mkdir conftest
 
15851
   cd conftest
 
15852
   mkdir out
 
15853
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15854
 
 
15855
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
15856
   # that will create temporary files in the current directory regardless of
 
15857
   # the output directory.  Thus, making CWD read-only will cause this test
 
15858
   # to fail, enabling locking or at least warning the user not to do parallel
 
15859
   # builds.
 
15860
   chmod -w .
 
15861
 
 
15862
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15863
   # Insert the option either (1) after the last *FLAGS variable, or
 
15864
   # (2) before a word containing "conftest.", or (3) at the end.
 
15865
   # Note that $ac_compile itself does not contain backslashes and begins
 
15866
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15867
   lt_compile=`echo "$ac_compile" | $SED \
 
15868
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15869
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15870
   -e 's:$: $lt_compiler_flag:'`
 
15871
   (eval echo "\"\$as_me:15871: $lt_compile\"" >&5)
 
15872
   (eval "$lt_compile" 2>out/conftest.err)
 
15873
   ac_status=$?
 
15874
   cat out/conftest.err >&5
 
15875
   echo "$as_me:15875: \$? = $ac_status" >&5
 
15876
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15877
   then
 
15878
     # The compiler can only warn and ignore the option if not recognized
 
15879
     # So say no if there are warnings
 
15880
     if test ! -s out/conftest.err; then
 
15881
       lt_cv_prog_compiler_c_o_F77=yes
 
15882
     fi
 
15883
   fi
 
15884
   chmod u+w .
 
15885
   $rm conftest* out/*
 
15886
   rmdir out
 
15887
   cd ..
 
15888
   rmdir conftest
 
15889
   $rm conftest*
 
15890
 
 
15891
fi
 
15892
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
15893
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
15894
 
 
15895
 
 
15896
hard_links="nottested"
 
15897
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
15898
  # do not overwrite the value of need_locks provided by the user
 
15899
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15900
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15901
  hard_links=yes
 
15902
  $rm conftest*
 
15903
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15904
  touch conftest.a
 
15905
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15906
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15907
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15908
echo "${ECHO_T}$hard_links" >&6
 
15909
  if test "$hard_links" = no; then
 
15910
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15911
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15912
    need_locks=warn
 
15913
  fi
 
15914
else
 
15915
  need_locks=no
 
15916
fi
 
15917
 
 
15918
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15919
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15920
 
 
15921
  runpath_var=
 
15922
  allow_undefined_flag_F77=
 
15923
  enable_shared_with_static_runtimes_F77=no
 
15924
  archive_cmds_F77=
 
15925
  archive_expsym_cmds_F77=
 
15926
  old_archive_From_new_cmds_F77=
 
15927
  old_archive_from_expsyms_cmds_F77=
 
15928
  export_dynamic_flag_spec_F77=
 
15929
  whole_archive_flag_spec_F77=
 
15930
  thread_safe_flag_spec_F77=
 
15931
  hardcode_libdir_flag_spec_F77=
 
15932
  hardcode_libdir_flag_spec_ld_F77=
 
15933
  hardcode_libdir_separator_F77=
 
15934
  hardcode_direct_F77=no
 
15935
  hardcode_minus_L_F77=no
 
15936
  hardcode_shlibpath_var_F77=unsupported
 
15937
  link_all_deplibs_F77=unknown
 
15938
  hardcode_automatic_F77=no
 
15939
  module_cmds_F77=
 
15940
  module_expsym_cmds_F77=
 
15941
  always_export_symbols_F77=no
 
15942
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15943
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15944
  # included in the symbol list
 
15945
  include_expsyms_F77=
 
15946
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15947
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15948
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15949
  # as well as any symbol that contains `d'.
 
15950
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
15951
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15952
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15953
  # the symbol is explicitly referenced.  Since portable code cannot
 
15954
  # rely on this symbol name, it's probably fine to never include it in
 
15955
  # preloaded symbol tables.
 
15956
  extract_expsyms_cmds=
 
15957
 
 
15958
  case $host_os in
 
15959
  cygwin* | mingw* | pw32*)
 
15960
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15961
    # When not using gcc, we currently assume that we are using
 
15962
    # Microsoft Visual C++.
 
15963
    if test "$GCC" != yes; then
 
15964
      with_gnu_ld=no
 
15965
    fi
 
15966
    ;;
 
15967
  openbsd*)
 
15968
    with_gnu_ld=no
 
15969
    ;;
 
15970
  esac
 
15971
 
 
15972
  ld_shlibs_F77=yes
 
15973
  if test "$with_gnu_ld" = yes; then
 
15974
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15975
    wlarc='${wl}'
 
15976
 
 
15977
    # See if GNU ld supports shared libraries.
 
15978
    case $host_os in
 
15979
    aix3* | aix4* | aix5*)
 
15980
      # On AIX/PPC, the GNU linker is very broken
 
15981
      if test "$host_cpu" != ia64; then
 
15982
        ld_shlibs_F77=no
 
15983
        cat <<EOF 1>&2
 
15984
 
 
15985
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15986
*** to be unable to reliably create shared libraries on AIX.
 
15987
*** Therefore, libtool is disabling shared libraries support.  If you
 
15988
*** really care for shared libraries, you may want to modify your PATH
 
15989
*** so that a non-GNU linker is found, and then restart.
 
15990
 
 
15991
EOF
 
15992
      fi
 
15993
      ;;
 
15994
 
 
15995
    amigaos*)
 
15996
      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)'
 
15997
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15998
      hardcode_minus_L_F77=yes
 
15999
 
 
16000
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16001
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16002
      # to version 4, is to share data among multiple programs linked
 
16003
      # with the same dynamic library.  Since this doesn't match the
 
16004
      # behavior of shared libraries on other platforms, we can't use
 
16005
      # them.
 
16006
      ld_shlibs_F77=no
 
16007
      ;;
 
16008
 
 
16009
    beos*)
 
16010
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16011
        allow_undefined_flag_F77=unsupported
 
16012
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16013
        # support --undefined.  This deserves some investigation.  FIXME
 
16014
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16015
      else
 
16016
        ld_shlibs_F77=no
 
16017
      fi
 
16018
      ;;
 
16019
 
 
16020
    cygwin* | mingw* | pw32*)
 
16021
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
16022
      # as there is no search path for DLLs.
 
16023
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16024
      allow_undefined_flag_F77=no
 
16025
      always_export_symbols_F77=no
 
16026
      enable_shared_with_static_runtimes_F77=yes
 
16027
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16028
 
 
16029
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16030
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16031
        # If the export-symbols file already is a .def file (1st line
 
16032
        # is EXPORTS), use it as is; otherwise, prepend...
 
16033
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16034
          cp $export_symbols $output_objdir/$soname.def;
 
16035
        else
 
16036
          echo EXPORTS > $output_objdir/$soname.def;
 
16037
          cat $export_symbols >> $output_objdir/$soname.def;
 
16038
        fi~
 
16039
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
16040
      else
 
16041
        ld_shlibs=no
 
16042
      fi
 
16043
      ;;
 
16044
 
 
16045
    netbsd*)
 
16046
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16047
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16048
        wlarc=
 
16049
      else
 
16050
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16051
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16052
      fi
 
16053
      ;;
 
16054
 
 
16055
    solaris* | sysv5*)
 
16056
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16057
        ld_shlibs_F77=no
 
16058
        cat <<EOF 1>&2
 
16059
 
 
16060
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16061
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16062
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16063
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16064
*** your PATH or compiler configuration so that the native linker is
 
16065
*** used, and then restart.
 
16066
 
 
16067
EOF
 
16068
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16069
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16070
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16071
      else
 
16072
        ld_shlibs_F77=no
 
16073
      fi
 
16074
      ;;
 
16075
 
 
16076
    sunos4*)
 
16077
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16078
      wlarc=
 
16079
      hardcode_direct_F77=yes
 
16080
      hardcode_shlibpath_var_F77=no
 
16081
      ;;
 
16082
 
 
16083
    *)
 
16084
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16085
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16086
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16087
      else
 
16088
        ld_shlibs_F77=no
 
16089
      fi
 
16090
      ;;
 
16091
    esac
 
16092
 
 
16093
    if test "$ld_shlibs_F77" = yes; then
 
16094
      runpath_var=LD_RUN_PATH
 
16095
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
16096
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
16097
      # ancient GNU ld didn't support --whole-archive et. al.
 
16098
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16099
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16100
      else
 
16101
        whole_archive_flag_spec_F77=
 
16102
      fi
 
16103
    fi
 
16104
  else
 
16105
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16106
    case $host_os in
 
16107
    aix3*)
 
16108
      allow_undefined_flag_F77=unsupported
 
16109
      always_export_symbols_F77=yes
 
16110
      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'
 
16111
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16112
      # are no directories specified by -L.
 
16113
      hardcode_minus_L_F77=yes
 
16114
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16115
        # Neither direct hardcoding nor static linking is supported with a
 
16116
        # broken collect2.
 
16117
        hardcode_direct_F77=unsupported
 
16118
      fi
 
16119
      ;;
 
16120
 
 
16121
    aix4* | aix5*)
 
16122
      if test "$host_cpu" = ia64; then
 
16123
        # On IA64, the linker does run time linking by default, so we don't
 
16124
        # have to do anything special.
 
16125
        aix_use_runtimelinking=no
 
16126
        exp_sym_flag='-Bexport'
 
16127
        no_entry_flag=""
 
16128
      else
 
16129
        # If we're using GNU nm, then we don't want the "-C" option.
 
16130
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16131
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16132
          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'
 
16133
        else
 
16134
          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'
 
16135
        fi
 
16136
 
 
16137
        # KDE requires run time linking.  Make it the default.
 
16138
        aix_use_runtimelinking=yes
 
16139
        exp_sym_flag='-bexport'
 
16140
        no_entry_flag='-bnoentry'
 
16141
      fi
 
16142
 
 
16143
      # When large executables or shared objects are built, AIX ld can
 
16144
      # have problems creating the table of contents.  If linking a library
 
16145
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16146
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16147
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16148
 
 
16149
      archive_cmds_F77=''
 
16150
      hardcode_direct_F77=yes
 
16151
      hardcode_libdir_separator_F77=':'
 
16152
      link_all_deplibs_F77=yes
 
16153
 
 
16154
      if test "$GCC" = yes; then
 
16155
        case $host_os in aix4.012|aix4.012.*)
 
16156
        # We only want to do this on AIX 4.2 and lower, the check
 
16157
        # below for broken collect2 doesn't work under 4.3+
 
16158
          collect2name=`${CC} -print-prog-name=collect2`
 
16159
          if test -f "$collect2name" && \
 
16160
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16161
          then
 
16162
          # We have reworked collect2
 
16163
          hardcode_direct_F77=yes
 
16164
          else
 
16165
          # We have old collect2
 
16166
          hardcode_direct_F77=unsupported
 
16167
          # It fails to find uninstalled libraries when the uninstalled
 
16168
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16169
          # to unsupported forces relinking
 
16170
          hardcode_minus_L_F77=yes
 
16171
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
16172
          hardcode_libdir_separator_F77=
 
16173
          fi
 
16174
        esac
 
16175
        shared_flag='-shared'
 
16176
      else
 
16177
        # not using gcc
 
16178
        if test "$host_cpu" = ia64; then
 
16179
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16180
        # chokes on -Wl,-G. The following line is correct:
 
16181
          shared_flag='-G'
 
16182
        else
 
16183
        if test "$aix_use_runtimelinking" = yes; then
 
16184
            shared_flag='-qmkshrobj ${wl}-G'
 
16185
          else
 
16186
            shared_flag='-qmkshrobj'
 
16187
        fi
 
16188
        fi
 
16189
      fi
 
16190
 
 
16191
      # Let the compiler handle the export list.
 
16192
      always_export_symbols_F77=no
 
16193
      if test "$aix_use_runtimelinking" = yes; then
 
16194
        # Warning - without using the other runtime loading flags (-brtl),
 
16195
        # -berok will link without error, but may produce a broken library.
 
16196
        allow_undefined_flag_F77='-berok'
 
16197
       # Determine the default libpath from the value encoded in an empty executable.
 
16198
        cat >conftest.$ac_ext <<_ACEOF
 
16199
      program main
 
16200
 
 
16201
      end
 
16202
_ACEOF
 
16203
rm -f conftest.$ac_objext conftest$ac_exeext
 
16204
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16205
  (eval $ac_link) 2>conftest.er1
 
16206
  ac_status=$?
 
16207
  grep -v '^ *+' conftest.er1 >conftest.err
 
16208
  rm -f conftest.er1
 
16209
  cat conftest.err >&5
 
16210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16211
  (exit $ac_status); } &&
 
16212
         { ac_try='test -z "$ac_f77_werror_flag"
 
16213
                         || test ! -s conftest.err'
 
16214
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16215
  (eval $ac_try) 2>&5
 
16216
  ac_status=$?
 
16217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16218
  (exit $ac_status); }; } &&
 
16219
         { ac_try='test -s conftest$ac_exeext'
 
16220
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16221
  (eval $ac_try) 2>&5
 
16222
  ac_status=$?
 
16223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16224
  (exit $ac_status); }; }; then
 
16225
 
 
16226
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16227
}'`
 
16228
# Check for a 64-bit object if we didn't find anything.
 
16229
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; }
 
16230
}'`; fi
 
16231
else
 
16232
  echo "$as_me: failed program was:" >&5
 
16233
sed 's/^/| /' conftest.$ac_ext >&5
 
16234
 
 
16235
fi
 
16236
rm -f conftest.err conftest.$ac_objext \
 
16237
      conftest$ac_exeext conftest.$ac_ext
 
16238
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16239
 
 
16240
        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16241
        archive_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
 
16242
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
16243
       else
 
16244
        if test "$host_cpu" = ia64; then
 
16245
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
16246
          allow_undefined_flag_F77="-z nodefs"
 
16247
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
16248
        else
 
16249
         # Determine the default libpath from the value encoded in an empty executable.
 
16250
         cat >conftest.$ac_ext <<_ACEOF
 
16251
      program main
 
16252
 
 
16253
      end
 
16254
_ACEOF
 
16255
rm -f conftest.$ac_objext conftest$ac_exeext
 
16256
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16257
  (eval $ac_link) 2>conftest.er1
 
16258
  ac_status=$?
 
16259
  grep -v '^ *+' conftest.er1 >conftest.err
 
16260
  rm -f conftest.er1
 
16261
  cat conftest.err >&5
 
16262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16263
  (exit $ac_status); } &&
 
16264
         { ac_try='test -z "$ac_f77_werror_flag"
 
16265
                         || test ! -s conftest.err'
 
16266
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16267
  (eval $ac_try) 2>&5
 
16268
  ac_status=$?
 
16269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16270
  (exit $ac_status); }; } &&
 
16271
         { ac_try='test -s conftest$ac_exeext'
 
16272
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16273
  (eval $ac_try) 2>&5
 
16274
  ac_status=$?
 
16275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16276
  (exit $ac_status); }; }; then
 
16277
 
 
16278
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16279
}'`
 
16280
# Check for a 64-bit object if we didn't find anything.
 
16281
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; }
 
16282
}'`; fi
 
16283
else
 
16284
  echo "$as_me: failed program was:" >&5
 
16285
sed 's/^/| /' conftest.$ac_ext >&5
 
16286
 
 
16287
fi
 
16288
rm -f conftest.err conftest.$ac_objext \
 
16289
      conftest$ac_exeext conftest.$ac_ext
 
16290
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16291
 
 
16292
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16293
          # Warning - without using the other run time loading flags,
 
16294
          # -berok will link without error, but may produce a broken library.
 
16295
          no_undefined_flag_F77=' ${wl}-bernotok'
 
16296
          allow_undefined_flag_F77=' ${wl}-berok'
 
16297
          # -bexpall does not export symbols beginning with underscore (_)
 
16298
          always_export_symbols_F77=yes
 
16299
          # Exported symbols can be pulled into shared objects from archives
 
16300
          whole_archive_flag_spec_F77=' '
 
16301
          archive_cmds_need_lc_F77=yes
 
16302
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16303
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
16304
        fi
 
16305
      fi
 
16306
      ;;
 
16307
 
 
16308
    amigaos*)
 
16309
      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)'
 
16310
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16311
      hardcode_minus_L_F77=yes
 
16312
      # see comment about different semantics on the GNU ld section
 
16313
      ld_shlibs_F77=no
 
16314
      ;;
 
16315
 
 
16316
    bsdi4*)
 
16317
      export_dynamic_flag_spec_F77=-rdynamic
 
16318
      ;;
 
16319
 
 
16320
    cygwin* | mingw* | pw32*)
 
16321
      # When not using gcc, we currently assume that we are using
 
16322
      # Microsoft Visual C++.
 
16323
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16324
      # no search path for DLLs.
 
16325
      hardcode_libdir_flag_spec_F77=' '
 
16326
      allow_undefined_flag_F77=no
 
16327
      # Tell ltmain to make .lib files, not .a files.
 
16328
      libext=lib
 
16329
      # Tell ltmain to make .dll files, not .so files.
 
16330
      shrext=".dll"
 
16331
      # FIXME: Setting linknames here is a bad hack.
 
16332
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16333
      # The linker will automatically build a .lib file if we build a DLL.
 
16334
      old_archive_From_new_cmds_F77='true'
 
16335
      # FIXME: Should let the user specify the lib program.
 
16336
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16337
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16338
      enable_shared_with_static_runtimes_F77=yes
 
16339
      ;;
 
16340
 
 
16341
    darwin* | rhapsody*)
 
16342
    if test "$GXX" = yes ; then
 
16343
      archive_cmds_need_lc_F77=no
 
16344
      case "$host_os" in
 
16345
      rhapsody* | darwin1.[012])
 
16346
        allow_undefined_flag_F77='-undefined suppress'
 
16347
        ;;
 
16348
      *) # Darwin 1.3 on
 
16349
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
16350
        ;;
 
16351
      esac
 
16352
        lt_int_apple_cc_single_mod=no
 
16353
        output_verbose_link_cmd='echo'
 
16354
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
16355
          lt_int_apple_cc_single_mod=yes
 
16356
        fi
 
16357
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16358
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16359
        else
 
16360
        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 $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16361
      fi
 
16362
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16363
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16364
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16365
          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 $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16366
        else
 
16367
          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 $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16368
        fi
 
16369
          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 $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16370
      hardcode_direct_F77=no
 
16371
      hardcode_automatic_F77=yes
 
16372
      hardcode_shlibpath_var_F77=unsupported
 
16373
      whole_archive_flag_spec_F77='-all_load $convenience'
 
16374
      link_all_deplibs_F77=yes
 
16375
    else
 
16376
      ld_shlibs_F77=no
 
16377
    fi
 
16378
      ;;
 
16379
 
 
16380
    dgux*)
 
16381
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16382
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16383
      hardcode_shlibpath_var_F77=no
 
16384
      ;;
 
16385
 
 
16386
    freebsd1*)
 
16387
      ld_shlibs_F77=no
 
16388
      ;;
 
16389
 
 
16390
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16391
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16392
    # does not break anything, and helps significantly (at the cost of a little
 
16393
    # extra space).
 
16394
    freebsd2.2*)
 
16395
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16396
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16397
      hardcode_direct_F77=yes
 
16398
      hardcode_shlibpath_var_F77=no
 
16399
      ;;
 
16400
 
 
16401
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16402
    freebsd2*)
 
16403
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16404
      hardcode_direct_F77=yes
 
16405
      hardcode_minus_L_F77=yes
 
16406
      hardcode_shlibpath_var_F77=no
 
16407
      ;;
 
16408
 
 
16409
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16410
    freebsd*)
 
16411
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16412
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16413
      hardcode_direct_F77=yes
 
16414
      hardcode_shlibpath_var_F77=no
 
16415
      ;;
 
16416
 
 
16417
    hpux9*)
 
16418
      if test "$GCC" = yes; then
 
16419
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
16420
      else
 
16421
        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'
 
16422
      fi
 
16423
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16424
      hardcode_libdir_separator_F77=:
 
16425
      hardcode_direct_F77=yes
 
16426
 
 
16427
      # hardcode_minus_L: Not really in the search PATH,
 
16428
      # but as the default location of the library.
 
16429
      hardcode_minus_L_F77=yes
 
16430
      export_dynamic_flag_spec_F77='${wl}-E'
 
16431
      ;;
 
16432
 
 
16433
    hpux10* | hpux11*)
 
16434
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16435
        case "$host_cpu" in
 
16436
        hppa*64*|ia64*)
 
16437
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16438
          ;;
 
16439
        *)
 
16440
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16441
          ;;
 
16442
        esac
 
16443
      else
 
16444
        case "$host_cpu" in
 
16445
        hppa*64*|ia64*)
 
16446
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16447
          ;;
 
16448
        *)
 
16449
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16450
          ;;
 
16451
        esac
 
16452
      fi
 
16453
      if test "$with_gnu_ld" = no; then
 
16454
        case "$host_cpu" in
 
16455
        hppa*64*)
 
16456
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16457
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
16458
          hardcode_libdir_separator_F77=:
 
16459
          hardcode_direct_F77=no
 
16460
          hardcode_shlibpath_var_F77=no
 
16461
          ;;
 
16462
        ia64*)
 
16463
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
16464
          hardcode_direct_F77=no
 
16465
          hardcode_shlibpath_var_F77=no
 
16466
 
 
16467
          # hardcode_minus_L: Not really in the search PATH,
 
16468
          # but as the default location of the library.
 
16469
          hardcode_minus_L_F77=yes
 
16470
          ;;
 
16471
        *)
 
16472
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16473
          hardcode_libdir_separator_F77=:
 
16474
          hardcode_direct_F77=yes
 
16475
          export_dynamic_flag_spec_F77='${wl}-E'
 
16476
 
 
16477
          # hardcode_minus_L: Not really in the search PATH,
 
16478
          # but as the default location of the library.
 
16479
          hardcode_minus_L_F77=yes
 
16480
          ;;
 
16481
        esac
 
16482
      fi
 
16483
      ;;
 
16484
 
 
16485
    irix5* | irix6* | nonstopux*)
 
16486
      if test "$GCC" = yes; then
 
16487
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
16488
      else
 
16489
        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'
 
16490
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
16491
      fi
 
16492
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16493
      hardcode_libdir_separator_F77=:
 
16494
      link_all_deplibs_F77=yes
 
16495
      ;;
 
16496
 
 
16497
    netbsd*)
 
16498
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16499
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16500
      else
 
16501
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16502
      fi
 
16503
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16504
      hardcode_direct_F77=yes
 
16505
      hardcode_shlibpath_var_F77=no
 
16506
      ;;
 
16507
 
 
16508
    newsos6)
 
16509
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16510
      hardcode_direct_F77=yes
 
16511
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16512
      hardcode_libdir_separator_F77=:
 
16513
      hardcode_shlibpath_var_F77=no
 
16514
      ;;
 
16515
 
 
16516
    openbsd*)
 
16517
      hardcode_direct_F77=yes
 
16518
      hardcode_shlibpath_var_F77=no
 
16519
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16520
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16521
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16522
        export_dynamic_flag_spec_F77='${wl}-E'
 
16523
      else
 
16524
       case $host_os in
 
16525
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16526
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16527
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
16528
           ;;
 
16529
         *)
 
16530
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16531
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16532
           ;;
 
16533
       esac
 
16534
      fi
 
16535
      ;;
 
16536
 
 
16537
    os2*)
 
16538
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16539
      hardcode_minus_L_F77=yes
 
16540
      allow_undefined_flag_F77=unsupported
 
16541
      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 $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
16542
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16543
      ;;
 
16544
 
 
16545
    osf3*)
 
16546
      if test "$GCC" = yes; then
 
16547
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16548
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
16549
      else
 
16550
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16551
        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'
 
16552
      fi
 
16553
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16554
      hardcode_libdir_separator_F77=:
 
16555
      ;;
 
16556
 
 
16557
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16558
      if test "$GCC" = yes; then
 
16559
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16560
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${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'
 
16561
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16562
      else
 
16563
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16564
        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'
 
16565
        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~
 
16566
        $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'
 
16567
 
 
16568
        # Both c and cxx compiler support -rpath directly
 
16569
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
16570
      fi
 
16571
      hardcode_libdir_separator_F77=:
 
16572
      ;;
 
16573
 
 
16574
    sco3.2v5*)
 
16575
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16576
      hardcode_shlibpath_var_F77=no
 
16577
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
16578
      runpath_var=LD_RUN_PATH
 
16579
      hardcode_runpath_var=yes
 
16580
      ;;
 
16581
 
 
16582
    solaris*)
 
16583
      no_undefined_flag_F77=' -z text'
 
16584
      if test "$GCC" = yes; then
 
16585
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16586
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16587
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16588
      else
 
16589
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16590
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16591
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16592
      fi
 
16593
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16594
      hardcode_shlibpath_var_F77=no
 
16595
      case $host_os in
 
16596
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16597
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16598
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
16599
      esac
 
16600
      link_all_deplibs_F77=yes
 
16601
      ;;
 
16602
 
 
16603
    sunos4*)
 
16604
      if test "x$host_vendor" = xsequent; then
 
16605
        # Use $CC to link under sequent, because it throws in some extra .o
 
16606
        # files that make .init and .fini sections work.
 
16607
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16608
      else
 
16609
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16610
      fi
 
16611
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16612
      hardcode_direct_F77=yes
 
16613
      hardcode_minus_L_F77=yes
 
16614
      hardcode_shlibpath_var_F77=no
 
16615
      ;;
 
16616
 
 
16617
    sysv4)
 
16618
      case $host_vendor in
 
16619
        sni)
 
16620
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16621
          hardcode_direct_F77=yes # is this really true???
 
16622
        ;;
 
16623
        siemens)
 
16624
          ## LD is ld it makes a PLAMLIB
 
16625
          ## CC just makes a GrossModule.
 
16626
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16627
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
16628
          hardcode_direct_F77=no
 
16629
        ;;
 
16630
        motorola)
 
16631
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16632
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
16633
        ;;
 
16634
      esac
 
16635
      runpath_var='LD_RUN_PATH'
 
16636
      hardcode_shlibpath_var_F77=no
 
16637
      ;;
 
16638
 
 
16639
    sysv4.3*)
 
16640
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16641
      hardcode_shlibpath_var_F77=no
 
16642
      export_dynamic_flag_spec_F77='-Bexport'
 
16643
      ;;
 
16644
 
 
16645
    sysv4*MP*)
 
16646
      if test -d /usr/nec; then
 
16647
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16648
        hardcode_shlibpath_var_F77=no
 
16649
        runpath_var=LD_RUN_PATH
 
16650
        hardcode_runpath_var=yes
 
16651
        ld_shlibs_F77=yes
 
16652
      fi
 
16653
      ;;
 
16654
 
 
16655
    sysv4.2uw2*)
 
16656
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16657
      hardcode_direct_F77=yes
 
16658
      hardcode_minus_L_F77=no
 
16659
      hardcode_shlibpath_var_F77=no
 
16660
      hardcode_runpath_var=yes
 
16661
      runpath_var=LD_RUN_PATH
 
16662
      ;;
 
16663
 
 
16664
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
16665
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
16666
      if test "$GCC" = yes; then
 
16667
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16668
      else
 
16669
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16670
      fi
 
16671
      runpath_var='LD_RUN_PATH'
 
16672
      hardcode_shlibpath_var_F77=no
 
16673
      ;;
 
16674
 
 
16675
    sysv5*)
 
16676
      no_undefined_flag_F77=' -z text'
 
16677
      # $CC -shared without GNU ld will not create a library from C++
 
16678
      # object files and a static libstdc++, better avoid it by now
 
16679
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16680
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16681
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16682
      hardcode_libdir_flag_spec_F77=
 
16683
      hardcode_shlibpath_var_F77=no
 
16684
      runpath_var='LD_RUN_PATH'
 
16685
      ;;
 
16686
 
 
16687
    uts4*)
 
16688
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16689
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16690
      hardcode_shlibpath_var_F77=no
 
16691
      ;;
 
16692
 
 
16693
    *)
 
16694
      ld_shlibs_F77=no
 
16695
      ;;
 
16696
    esac
 
16697
  fi
 
16698
 
 
16699
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
16700
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
16701
test "$ld_shlibs_F77" = no && can_build_shared=no
 
16702
 
 
16703
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16704
if test "$GCC" = yes; then
 
16705
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16706
fi
 
16707
 
 
16708
#
 
16709
# Do we need to explicitly link libc?
 
16710
#
 
16711
case "x$archive_cmds_need_lc_F77" in
 
16712
x|xyes)
 
16713
  # Assume -lc should be added
 
16714
  archive_cmds_need_lc_F77=yes
 
16715
 
 
16716
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16717
    case $archive_cmds_F77 in
 
16718
    *'~'*)
 
16719
      # FIXME: we may have to deal with multi-command sequences.
 
16720
      ;;
 
16721
    '$CC '*)
 
16722
      # Test whether the compiler implicitly links with -lc since on some
 
16723
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16724
      # to ld, don't add -lc before -lgcc.
 
16725
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16726
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16727
      $rm conftest*
 
16728
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16729
 
 
16730
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16731
  (eval $ac_compile) 2>&5
 
16732
  ac_status=$?
 
16733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16734
  (exit $ac_status); } 2>conftest.err; then
 
16735
        soname=conftest
 
16736
        lib=conftest
 
16737
        libobjs=conftest.$ac_objext
 
16738
        deplibs=
 
16739
        wl=$lt_prog_compiler_wl_F77
 
16740
        compiler_flags=-v
 
16741
        linker_flags=-v
 
16742
        verstring=
 
16743
        output_objdir=.
 
16744
        libname=conftest
 
16745
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
16746
        allow_undefined_flag_F77=
 
16747
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16748
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16749
  ac_status=$?
 
16750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16751
  (exit $ac_status); }
 
16752
        then
 
16753
          archive_cmds_need_lc_F77=no
 
16754
        else
 
16755
          archive_cmds_need_lc_F77=yes
 
16756
        fi
 
16757
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
16758
      else
 
16759
        cat conftest.err 1>&5
 
16760
      fi
 
16761
      $rm conftest*
 
16762
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
16763
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
16764
      ;;
 
16765
    esac
 
16766
  fi
 
16767
  ;;
 
16768
esac
 
16769
 
 
16770
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16771
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
16772
library_names_spec=
 
16773
libname_spec='lib$name'
 
16774
soname_spec=
 
16775
shrext=".so"
 
16776
postinstall_cmds=
 
16777
postuninstall_cmds=
 
16778
finish_cmds=
 
16779
finish_eval=
 
16780
shlibpath_var=
 
16781
shlibpath_overrides_runpath=unknown
 
16782
version_type=none
 
16783
dynamic_linker="$host_os ld.so"
 
16784
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16785
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16786
need_lib_prefix=unknown
 
16787
hardcode_into_libs=no
 
16788
 
 
16789
# when you set need_version to no, make sure it does not cause -set_version
 
16790
# flags to be left without arguments
 
16791
need_version=unknown
 
16792
 
 
16793
case $host_os in
 
16794
aix3*)
 
16795
  version_type=linux
 
16796
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16797
  shlibpath_var=LIBPATH
 
16798
 
 
16799
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16800
  soname_spec='${libname}${release}${shared_ext}$major'
 
16801
  ;;
 
16802
 
 
16803
aix4* | aix5*)
 
16804
  version_type=linux
 
16805
  need_lib_prefix=no
 
16806
  need_version=no
 
16807
  hardcode_into_libs=yes
 
16808
  if test "$host_cpu" = ia64; then
 
16809
    # AIX 5 supports IA64
 
16810
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16811
    shlibpath_var=LD_LIBRARY_PATH
 
16812
  else
 
16813
    # With GCC up to 2.95.x, collect2 would create an import file
 
16814
    # for dependence libraries.  The import file would start with
 
16815
    # the line `#! .'.  This would cause the generated library to
 
16816
    # depend on `.', always an invalid library.  This was fixed in
 
16817
    # development snapshots of GCC prior to 3.0.
 
16818
    case $host_os in
 
16819
      aix4 | aix4.[01] | aix4.[01].*)
 
16820
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16821
           echo ' yes '
 
16822
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16823
        :
 
16824
      else
 
16825
        can_build_shared=no
 
16826
      fi
 
16827
      ;;
 
16828
    esac
 
16829
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16830
    # soname into executable. Probably we can add versioning support to
 
16831
    # collect2, so additional links can be useful in future.
 
16832
    if test "$aix_use_runtimelinking" = yes; then
 
16833
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16834
      # instead of lib<name>.a to let people know that these are not
 
16835
      # typical AIX shared libraries.
 
16836
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16837
    else
 
16838
      # We preserve .a as extension for shared libraries through AIX4.2
 
16839
      # and later when we are not doing run time linking.
 
16840
      library_names_spec='${libname}${release}.a $libname.a'
 
16841
      soname_spec='${libname}${release}${shared_ext}$major'
 
16842
    fi
 
16843
    shlibpath_var=LIBPATH
 
16844
  fi
 
16845
  ;;
 
16846
 
 
16847
amigaos*)
 
16848
  library_names_spec='$libname.ixlibrary $libname.a'
 
16849
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16850
  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'
 
16851
  ;;
 
16852
 
 
16853
beos*)
 
16854
  library_names_spec='${libname}${shared_ext}'
 
16855
  dynamic_linker="$host_os ld.so"
 
16856
  shlibpath_var=LIBRARY_PATH
 
16857
  ;;
 
16858
 
 
16859
bsdi4*)
 
16860
  version_type=linux
 
16861
  need_version=no
 
16862
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16863
  soname_spec='${libname}${release}${shared_ext}$major'
 
16864
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16865
  shlibpath_var=LD_LIBRARY_PATH
 
16866
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16867
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16868
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16869
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16870
  # libtool to hard-code these into programs
 
16871
  ;;
 
16872
 
 
16873
cygwin* | mingw* | pw32*)
 
16874
  version_type=windows
 
16875
  shrext=".dll"
 
16876
  need_version=no
 
16877
  need_lib_prefix=no
 
16878
 
 
16879
  case $GCC,$host_os in
 
16880
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16881
    library_names_spec='$libname.dll.a'
 
16882
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16883
    postinstall_cmds='base_file=`basename \${file}`~
 
16884
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16885
      dldir=$destdir/`dirname \$dlpath`~
 
16886
      test -d \$dldir || mkdir -p \$dldir~
 
16887
      $install_prog $dir/$dlname \$dldir/$dlname'
 
16888
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16889
      dlpath=$dir/\$dldll~
 
16890
       $rm \$dlpath'
 
16891
    shlibpath_overrides_runpath=yes
 
16892
 
 
16893
    case $host_os in
 
16894
    cygwin*)
 
16895
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16896
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16897
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16898
      ;;
 
16899
    mingw*)
 
16900
      # MinGW DLLs use traditional 'lib' prefix
 
16901
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16902
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16903
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16904
        # It is most probably a Windows format PATH printed by
 
16905
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16906
        # path with ; separators, and with drive letters. We can handle the
 
16907
        # drive letters (cygwin fileutils understands them), so leave them,
 
16908
        # especially as we might pass files found there to a mingw objdump,
 
16909
        # which wouldn't understand a cygwinified path. Ahh.
 
16910
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16911
      else
 
16912
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16913
      fi
 
16914
      ;;
 
16915
    pw32*)
 
16916
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16917
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
16918
      ;;
 
16919
    esac
 
16920
    ;;
 
16921
 
 
16922
  *)
 
16923
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16924
    ;;
 
16925
  esac
 
16926
  dynamic_linker='Win32 ld.exe'
 
16927
  # FIXME: first we should search . and the directory the executable is in
 
16928
  shlibpath_var=PATH
 
16929
  ;;
 
16930
 
 
16931
darwin* | rhapsody*)
 
16932
  dynamic_linker="$host_os dyld"
 
16933
  version_type=darwin
 
16934
  need_lib_prefix=no
 
16935
  need_version=no
 
16936
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16937
  soname_spec='${libname}${release}${major}$shared_ext'
 
16938
  shlibpath_overrides_runpath=yes
 
16939
  shlibpath_var=DYLD_LIBRARY_PATH
 
16940
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
16941
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16942
  if test "$GCC" = yes; then
 
16943
    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"`
 
16944
  else
 
16945
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
16946
  fi
 
16947
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16948
  ;;
 
16949
 
 
16950
dgux*)
 
16951
  version_type=linux
 
16952
  need_lib_prefix=no
 
16953
  need_version=no
 
16954
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16955
  soname_spec='${libname}${release}${shared_ext}$major'
 
16956
  shlibpath_var=LD_LIBRARY_PATH
 
16957
  ;;
 
16958
 
 
16959
freebsd1*)
 
16960
  dynamic_linker=no
 
16961
  ;;
 
16962
 
 
16963
freebsd*-gnu*)
 
16964
  version_type=linux
 
16965
  need_lib_prefix=no
 
16966
  need_version=no
 
16967
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16968
  soname_spec='${libname}${release}${shared_ext}$major'
 
16969
  shlibpath_var=LD_LIBRARY_PATH
 
16970
  shlibpath_overrides_runpath=no
 
16971
  hardcode_into_libs=yes
 
16972
  dynamic_linker='GNU ld.so'
 
16973
  ;;
 
16974
 
 
16975
freebsd*)
 
16976
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
16977
  version_type=freebsd-$objformat
 
16978
  case $version_type in
 
16979
    freebsd-elf*)
 
16980
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16981
      need_version=no
 
16982
      need_lib_prefix=no
 
16983
      ;;
 
16984
    freebsd-*)
 
16985
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16986
      need_version=yes
 
16987
      ;;
 
16988
  esac
 
16989
  shlibpath_var=LD_LIBRARY_PATH
 
16990
  case $host_os in
 
16991
  freebsd2*)
 
16992
    shlibpath_overrides_runpath=yes
 
16993
    ;;
 
16994
  freebsd3.01* | freebsdelf3.01*)
 
16995
    shlibpath_overrides_runpath=yes
 
16996
    hardcode_into_libs=yes
 
16997
    ;;
 
16998
  *) # from 3.2 on
 
16999
    shlibpath_overrides_runpath=no
 
17000
    hardcode_into_libs=yes
 
17001
    ;;
 
17002
  esac
 
17003
  ;;
 
17004
 
 
17005
gnu*)
 
17006
  version_type=linux
 
17007
  need_lib_prefix=no
 
17008
  need_version=no
 
17009
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17010
  soname_spec='${libname}${release}${shared_ext}$major'
 
17011
  shlibpath_var=LD_LIBRARY_PATH
 
17012
  hardcode_into_libs=yes
 
17013
  ;;
 
17014
 
 
17015
hpux9* | hpux10* | hpux11*)
 
17016
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17017
  # link against other versions.
 
17018
  version_type=sunos
 
17019
  need_lib_prefix=no
 
17020
  need_version=no
 
17021
  case "$host_cpu" in
 
17022
  ia64*)
 
17023
    shrext='.so'
 
17024
    hardcode_into_libs=yes
 
17025
    dynamic_linker="$host_os dld.so"
 
17026
    shlibpath_var=LD_LIBRARY_PATH
 
17027
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17028
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17029
    soname_spec='${libname}${release}${shared_ext}$major'
 
17030
    if test "X$HPUX_IA64_MODE" = X32; then
 
17031
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17032
    else
 
17033
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17034
    fi
 
17035
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17036
    ;;
 
17037
   hppa*64*)
 
17038
     shrext='.sl'
 
17039
     hardcode_into_libs=yes
 
17040
     dynamic_linker="$host_os dld.sl"
 
17041
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17042
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17043
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17044
     soname_spec='${libname}${release}${shared_ext}$major'
 
17045
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17046
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17047
     ;;
 
17048
   *)
 
17049
    shrext='.sl'
 
17050
    dynamic_linker="$host_os dld.sl"
 
17051
    shlibpath_var=SHLIB_PATH
 
17052
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17053
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17054
    soname_spec='${libname}${release}${shared_ext}$major'
 
17055
    ;;
 
17056
  esac
 
17057
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17058
  postinstall_cmds='chmod 555 $lib'
 
17059
  ;;
 
17060
 
 
17061
irix5* | irix6* | nonstopux*)
 
17062
  case $host_os in
 
17063
    nonstopux*) version_type=nonstopux ;;
 
17064
    *)
 
17065
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17066
                version_type=linux
 
17067
        else
 
17068
                version_type=irix
 
17069
        fi ;;
 
17070
  esac
 
17071
  need_lib_prefix=no
 
17072
  need_version=no
 
17073
  soname_spec='${libname}${release}${shared_ext}$major'
 
17074
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17075
  case $host_os in
 
17076
  irix5* | nonstopux*)
 
17077
    libsuff= shlibsuff=
 
17078
    ;;
 
17079
  *)
 
17080
    case $LD in # libtool.m4 will add one of these switches to LD
 
17081
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17082
      libsuff= shlibsuff= libmagic=32-bit;;
 
17083
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17084
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17085
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17086
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17087
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17088
    esac
 
17089
    ;;
 
17090
  esac
 
17091
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17092
  shlibpath_overrides_runpath=no
 
17093
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17094
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17095
  hardcode_into_libs=yes
 
17096
  ;;
 
17097
 
 
17098
# No shared lib support for Linux oldld, aout, or coff.
 
17099
linux*oldld* | linux*aout* | linux*coff*)
 
17100
  dynamic_linker=no
 
17101
  ;;
 
17102
 
 
17103
# This must be Linux ELF.
 
17104
linux*)
 
17105
  version_type=linux
 
17106
  need_lib_prefix=no
 
17107
  need_version=no
 
17108
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17109
  soname_spec='${libname}${release}${shared_ext}$major'
 
17110
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17111
  libsuff=
 
17112
  if test "x$LINUX_64_MODE" = x64; then
 
17113
    # Some platforms are per default 64-bit, so there's no /lib64
 
17114
    if test -d /lib64; then
 
17115
      libsuff=64
 
17116
    fi
 
17117
  fi
 
17118
  shlibpath_var=LD_LIBRARY_PATH
 
17119
  shlibpath_overrides_runpath=no
 
17120
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
17121
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
17122
  # This implies no fast_install, which is unacceptable.
 
17123
  # Some rework will be needed to allow for fast_install
 
17124
  # before this can be enabled.
 
17125
  hardcode_into_libs=yes
 
17126
 
 
17127
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17128
  # powerpc, because MkLinux only supported shared libraries with the
 
17129
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17130
  # most powerpc-linux boxes support dynamic linking these days and
 
17131
  # people can always --disable-shared, the test was removed, and we
 
17132
  # assume the GNU/Linux dynamic linker is in use.
 
17133
  dynamic_linker='GNU/Linux ld.so'
 
17134
  ;;
 
17135
 
 
17136
netbsd*)
 
17137
  version_type=sunos
 
17138
  need_lib_prefix=no
 
17139
  need_version=no
 
17140
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17141
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17142
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17143
    dynamic_linker='NetBSD (a.out) ld.so'
 
17144
  else
 
17145
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
17146
    soname_spec='${libname}${release}${shared_ext}$major'
 
17147
    dynamic_linker='NetBSD ld.elf_so'
 
17148
  fi
 
17149
  shlibpath_var=LD_LIBRARY_PATH
 
17150
  shlibpath_overrides_runpath=yes
 
17151
  hardcode_into_libs=yes
 
17152
  ;;
 
17153
 
 
17154
newsos6)
 
17155
  version_type=linux
 
17156
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17157
  shlibpath_var=LD_LIBRARY_PATH
 
17158
  shlibpath_overrides_runpath=yes
 
17159
  ;;
 
17160
 
 
17161
nto-qnx*)
 
17162
  version_type=linux
 
17163
  need_lib_prefix=no
 
17164
  need_version=no
 
17165
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17166
  soname_spec='${libname}${release}${shared_ext}$major'
 
17167
  shlibpath_var=LD_LIBRARY_PATH
 
17168
  shlibpath_overrides_runpath=yes
 
17169
  ;;
 
17170
 
 
17171
openbsd*)
 
17172
  version_type=sunos
 
17173
  need_lib_prefix=no
 
17174
  need_version=no
 
17175
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17176
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17177
  shlibpath_var=LD_LIBRARY_PATH
 
17178
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17179
    case $host_os in
 
17180
      openbsd2.[89] | openbsd2.[89].*)
 
17181
        shlibpath_overrides_runpath=no
 
17182
        ;;
 
17183
      *)
 
17184
        shlibpath_overrides_runpath=yes
 
17185
        ;;
 
17186
      esac
 
17187
  else
 
17188
    shlibpath_overrides_runpath=yes
 
17189
  fi
 
17190
  ;;
 
17191
 
 
17192
os2*)
 
17193
  libname_spec='$name'
 
17194
  shrext=".dll"
 
17195
  need_lib_prefix=no
 
17196
  library_names_spec='$libname${shared_ext} $libname.a'
 
17197
  dynamic_linker='OS/2 ld.exe'
 
17198
  shlibpath_var=LIBPATH
 
17199
  ;;
 
17200
 
 
17201
osf3* | osf4* | osf5*)
 
17202
  version_type=osf
 
17203
  need_lib_prefix=no
 
17204
  need_version=no
 
17205
  soname_spec='${libname}${release}${shared_ext}$major'
 
17206
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17207
  shlibpath_var=LD_LIBRARY_PATH
 
17208
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17209
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17210
  ;;
 
17211
 
 
17212
sco3.2v5*)
 
17213
  version_type=osf
 
17214
  soname_spec='${libname}${release}${shared_ext}$major'
 
17215
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17216
  shlibpath_var=LD_LIBRARY_PATH
 
17217
  ;;
 
17218
 
 
17219
solaris*)
 
17220
  version_type=linux
 
17221
  need_lib_prefix=no
 
17222
  need_version=no
 
17223
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17224
  soname_spec='${libname}${release}${shared_ext}$major'
 
17225
  shlibpath_var=LD_LIBRARY_PATH
 
17226
  shlibpath_overrides_runpath=yes
 
17227
  hardcode_into_libs=yes
 
17228
  # ldd complains unless libraries are executable
 
17229
  postinstall_cmds='chmod +x $lib'
 
17230
  ;;
 
17231
 
 
17232
sunos4*)
 
17233
  version_type=sunos
 
17234
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17235
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17236
  shlibpath_var=LD_LIBRARY_PATH
 
17237
  shlibpath_overrides_runpath=yes
 
17238
  if test "$with_gnu_ld" = yes; then
 
17239
    need_lib_prefix=no
 
17240
  fi
 
17241
  need_version=yes
 
17242
  ;;
 
17243
 
 
17244
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17245
  version_type=linux
 
17246
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17247
  soname_spec='${libname}${release}${shared_ext}$major'
 
17248
  shlibpath_var=LD_LIBRARY_PATH
 
17249
  case $host_vendor in
 
17250
    sni)
 
17251
      shlibpath_overrides_runpath=no
 
17252
      need_lib_prefix=no
 
17253
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17254
      runpath_var=LD_RUN_PATH
 
17255
      ;;
 
17256
    siemens)
 
17257
      need_lib_prefix=no
 
17258
      ;;
 
17259
    motorola)
 
17260
      need_lib_prefix=no
 
17261
      need_version=no
 
17262
      shlibpath_overrides_runpath=no
 
17263
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17264
      ;;
 
17265
  esac
 
17266
  ;;
 
17267
 
 
17268
sysv4*MP*)
 
17269
  if test -d /usr/nec ;then
 
17270
    version_type=linux
 
17271
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17272
    soname_spec='$libname${shared_ext}.$major'
 
17273
    shlibpath_var=LD_LIBRARY_PATH
 
17274
  fi
 
17275
  ;;
 
17276
 
 
17277
uts4*)
 
17278
  version_type=linux
 
17279
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17280
  soname_spec='${libname}${release}${shared_ext}$major'
 
17281
  shlibpath_var=LD_LIBRARY_PATH
 
17282
  ;;
 
17283
 
 
17284
*)
 
17285
  dynamic_linker=no
 
17286
  ;;
 
17287
esac
 
17288
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17289
echo "${ECHO_T}$dynamic_linker" >&6
 
17290
test "$dynamic_linker" = no && can_build_shared=no
 
17291
 
 
17292
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17293
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17294
hardcode_action_F77=
 
17295
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
17296
   test -n "$runpath_var F77" || \
 
17297
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
17298
 
 
17299
  # We can hardcode non-existant directories.
 
17300
  if test "$hardcode_direct_F77" != no &&
 
17301
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17302
     # have to relink, otherwise we might link with an installed library
 
17303
     # when we should be linking with a yet-to-be-installed one
 
17304
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
17305
     test "$hardcode_minus_L_F77" != no; then
 
17306
    # Linking always hardcodes the temporary library directory.
 
17307
    hardcode_action_F77=relink
 
17308
  else
 
17309
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17310
    hardcode_action_F77=immediate
 
17311
  fi
 
17312
else
 
17313
  # We cannot hardcode anything, or else we can only hardcode existing
 
17314
  # directories.
 
17315
  hardcode_action_F77=unsupported
 
17316
fi
 
17317
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
17318
echo "${ECHO_T}$hardcode_action_F77" >&6
 
17319
 
 
17320
if test "$hardcode_action_F77" = relink; then
 
17321
  # Fast installation is not supported
 
17322
  enable_fast_install=no
 
17323
elif test "$shlibpath_overrides_runpath" = yes ||
 
17324
     test "$enable_shared" = no; then
 
17325
  # Fast installation is not necessary
 
17326
  enable_fast_install=needless
 
17327
fi
 
17328
 
 
17329
striplib=
 
17330
old_striplib=
 
17331
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17332
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17333
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17334
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17335
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17336
  echo "$as_me:$LINENO: result: yes" >&5
 
17337
echo "${ECHO_T}yes" >&6
 
17338
else
 
17339
# FIXME - insert some real tests, host_os isn't really good enough
 
17340
  case $host_os in
 
17341
   darwin*)
 
17342
       if test -n "$STRIP" ; then
 
17343
         striplib="$STRIP -x"
 
17344
         echo "$as_me:$LINENO: result: yes" >&5
 
17345
echo "${ECHO_T}yes" >&6
 
17346
       else
 
17347
  echo "$as_me:$LINENO: result: no" >&5
 
17348
echo "${ECHO_T}no" >&6
 
17349
fi
 
17350
       ;;
 
17351
   *)
 
17352
  echo "$as_me:$LINENO: result: no" >&5
 
17353
echo "${ECHO_T}no" >&6
 
17354
    ;;
 
17355
  esac
 
17356
fi
 
17357
 
 
17358
 
 
17359
 
 
17360
# The else clause should only fire when bootstrapping the
 
17361
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17362
# with your package, and you will get complaints that there are
 
17363
# no rules to generate ltmain.sh.
 
17364
if test -f "$ltmain"; then
 
17365
  # See if we are running on zsh, and set the options which allow our commands through
 
17366
  # without removal of \ escapes.
 
17367
  if test -n "${ZSH_VERSION+set}" ; then
 
17368
    setopt NO_GLOB_SUBST
 
17369
  fi
 
17370
  # Now quote all the things that may contain metacharacters while being
 
17371
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17372
  # variables and quote the copies for generation of the libtool script.
 
17373
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
17374
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17375
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17376
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17377
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17378
    lt_cv_sys_global_symbol_to_c_name_address \
 
17379
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17380
    old_postinstall_cmds old_postuninstall_cmds \
 
17381
    compiler_F77 \
 
17382
    CC_F77 \
 
17383
    LD_F77 \
 
17384
    lt_prog_compiler_wl_F77 \
 
17385
    lt_prog_compiler_pic_F77 \
 
17386
    lt_prog_compiler_static_F77 \
 
17387
    lt_prog_compiler_no_builtin_flag_F77 \
 
17388
    export_dynamic_flag_spec_F77 \
 
17389
    thread_safe_flag_spec_F77 \
 
17390
    whole_archive_flag_spec_F77 \
 
17391
    enable_shared_with_static_runtimes_F77 \
 
17392
    old_archive_cmds_F77 \
 
17393
    old_archive_from_new_cmds_F77 \
 
17394
    predep_objects_F77 \
 
17395
    postdep_objects_F77 \
 
17396
    predeps_F77 \
 
17397
    postdeps_F77 \
 
17398
    compiler_lib_search_path_F77 \
 
17399
    archive_cmds_F77 \
 
17400
    archive_expsym_cmds_F77 \
 
17401
    postinstall_cmds_F77 \
 
17402
    postuninstall_cmds_F77 \
 
17403
    old_archive_from_expsyms_cmds_F77 \
 
17404
    allow_undefined_flag_F77 \
 
17405
    no_undefined_flag_F77 \
 
17406
    export_symbols_cmds_F77 \
 
17407
    hardcode_libdir_flag_spec_F77 \
 
17408
    hardcode_libdir_flag_spec_ld_F77 \
 
17409
    hardcode_libdir_separator_F77 \
 
17410
    hardcode_automatic_F77 \
 
17411
    module_cmds_F77 \
 
17412
    module_expsym_cmds_F77 \
 
17413
    lt_cv_prog_compiler_c_o_F77 \
 
17414
    exclude_expsyms_F77 \
 
17415
    include_expsyms_F77; do
 
17416
 
 
17417
    case $var in
 
17418
    old_archive_cmds_F77 | \
 
17419
    old_archive_from_new_cmds_F77 | \
 
17420
    archive_cmds_F77 | \
 
17421
    archive_expsym_cmds_F77 | \
 
17422
    module_cmds_F77 | \
 
17423
    module_expsym_cmds_F77 | \
 
17424
    old_archive_from_expsyms_cmds_F77 | \
 
17425
    export_symbols_cmds_F77 | \
 
17426
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17427
    postinstall_cmds | postuninstall_cmds | \
 
17428
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17429
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17430
      # Double-quote double-evaled strings.
 
17431
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17432
      ;;
 
17433
    *)
 
17434
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17435
      ;;
 
17436
    esac
 
17437
  done
 
17438
 
 
17439
  case $lt_echo in
 
17440
  *'\$0 --fallback-echo"')
 
17441
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17442
    ;;
 
17443
  esac
 
17444
 
 
17445
cfgfile="$ofile"
 
17446
 
 
17447
  cat <<__EOF__ >> "$cfgfile"
 
17448
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17449
 
 
17450
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17451
 
 
17452
# Shell to use when invoking shell scripts.
 
17453
SHELL=$lt_SHELL
 
17454
 
 
17455
# Whether or not to build shared libraries.
 
17456
build_libtool_libs=$enable_shared
 
17457
 
 
17458
# Whether or not to build static libraries.
 
17459
build_old_libs=$enable_static
 
17460
 
 
17461
# Whether or not to add -lc for building shared libraries.
 
17462
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
17463
 
 
17464
# Whether or not to disallow shared libs when runtime libs are static
 
17465
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
17466
 
 
17467
# Whether or not to optimize for fast installation.
 
17468
fast_install=$enable_fast_install
 
17469
 
 
17470
# The host system.
 
17471
host_alias=$host_alias
 
17472
host=$host
 
17473
 
 
17474
# An echo program that does not interpret backslashes.
 
17475
echo=$lt_echo
 
17476
 
 
17477
# The archiver.
 
17478
AR=$lt_AR
 
17479
AR_FLAGS=$lt_AR_FLAGS
 
17480
 
 
17481
# A C compiler.
 
17482
LTCC=$lt_LTCC
 
17483
 
 
17484
# A language-specific compiler.
 
17485
CC=$lt_compiler_F77
 
17486
 
 
17487
# Is the compiler the GNU C compiler?
 
17488
with_gcc=$GCC_F77
 
17489
 
 
17490
# An ERE matcher.
 
17491
EGREP=$lt_EGREP
 
17492
 
 
17493
# The linker used to build libraries.
 
17494
LD=$lt_LD_F77
 
17495
 
 
17496
# Whether we need hard or soft links.
 
17497
LN_S=$lt_LN_S
 
17498
 
 
17499
# A BSD-compatible nm program.
 
17500
NM=$lt_NM
 
17501
 
 
17502
# A symbol stripping program
 
17503
STRIP=$STRIP
 
17504
 
 
17505
# Used to examine libraries when file_magic_cmd begins "file"
 
17506
MAGIC_CMD=$MAGIC_CMD
 
17507
 
 
17508
# Used on cygwin: DLL creation program.
 
17509
DLLTOOL="$DLLTOOL"
 
17510
 
 
17511
# Used on cygwin: object dumper.
 
17512
OBJDUMP="$OBJDUMP"
 
17513
 
 
17514
# Used on cygwin: assembler.
 
17515
AS="$AS"
 
17516
 
 
17517
# The name of the directory that contains temporary libtool files.
 
17518
objdir=$objdir
 
17519
 
 
17520
# How to create reloadable object files.
 
17521
reload_flag=$lt_reload_flag
 
17522
reload_cmds=$lt_reload_cmds
 
17523
 
 
17524
# How to pass a linker flag through the compiler.
 
17525
wl=$lt_lt_prog_compiler_wl_F77
 
17526
 
 
17527
# Object file suffix (normally "o").
 
17528
objext="$ac_objext"
 
17529
 
 
17530
# Old archive suffix (normally "a").
 
17531
libext="$libext"
 
17532
 
 
17533
# Shared library suffix (normally ".so").
 
17534
shrext='$shrext'
 
17535
 
 
17536
# Executable file suffix (normally "").
 
17537
exeext="$exeext"
 
17538
 
 
17539
# Additional compiler flags for building library objects.
 
17540
pic_flag=$lt_lt_prog_compiler_pic_F77
 
17541
pic_mode=$pic_mode
 
17542
 
 
17543
# What is the maximum length of a command?
 
17544
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17545
 
 
17546
# Does compiler simultaneously support -c and -o options?
 
17547
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
17548
 
 
17549
# Must we lock files when doing compilation ?
 
17550
need_locks=$lt_need_locks
 
17551
 
 
17552
# Do we need the lib prefix for modules?
 
17553
need_lib_prefix=$need_lib_prefix
 
17554
 
 
17555
# Do we need a version for libraries?
 
17556
need_version=$need_version
 
17557
 
 
17558
# Whether dlopen is supported.
 
17559
dlopen_support=$enable_dlopen
 
17560
 
 
17561
# Whether dlopen of programs is supported.
 
17562
dlopen_self=$enable_dlopen_self
 
17563
 
 
17564
# Whether dlopen of statically linked programs is supported.
 
17565
dlopen_self_static=$enable_dlopen_self_static
 
17566
 
 
17567
# Compiler flag to prevent dynamic linking.
 
17568
link_static_flag=$lt_lt_prog_compiler_static_F77
 
17569
 
 
17570
# Compiler flag to turn off builtin functions.
 
17571
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
17572
 
 
17573
# Compiler flag to allow reflexive dlopens.
 
17574
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
17575
 
 
17576
# Compiler flag to generate shared objects directly from archives.
 
17577
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
17578
 
 
17579
# Compiler flag to generate thread-safe objects.
 
17580
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
17581
 
 
17582
# Library versioning type.
 
17583
version_type=$version_type
 
17584
 
 
17585
# Format of library name prefix.
 
17586
libname_spec=$lt_libname_spec
 
17587
 
 
17588
# List of archive names.  First name is the real one, the rest are links.
 
17589
# The last name is the one that the linker finds with -lNAME.
 
17590
library_names_spec=$lt_library_names_spec
 
17591
 
 
17592
# The coded name of the library, if different from the real name.
 
17593
soname_spec=$lt_soname_spec
 
17594
 
 
17595
# Commands used to build and install an old-style archive.
 
17596
RANLIB=$lt_RANLIB
 
17597
old_archive_cmds=$lt_old_archive_cmds_F77
 
17598
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17599
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17600
 
 
17601
# Create an old-style archive from a shared archive.
 
17602
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
17603
 
 
17604
# Create a temporary old-style archive to link instead of a shared archive.
 
17605
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
17606
 
 
17607
# Commands used to build and install a shared archive.
 
17608
archive_cmds=$lt_archive_cmds_F77
 
17609
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
17610
postinstall_cmds=$lt_postinstall_cmds
 
17611
postuninstall_cmds=$lt_postuninstall_cmds
 
17612
 
 
17613
# Commands used to build a loadable module (assumed same as above if empty)
 
17614
module_cmds=$lt_module_cmds_F77
 
17615
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
17616
 
 
17617
# Commands to strip libraries.
 
17618
old_striplib=$lt_old_striplib
 
17619
striplib=$lt_striplib
 
17620
 
 
17621
# Dependencies to place before the objects being linked to create a
 
17622
# shared library.
 
17623
predep_objects=$lt_predep_objects_F77
 
17624
 
 
17625
# Dependencies to place after the objects being linked to create a
 
17626
# shared library.
 
17627
postdep_objects=$lt_postdep_objects_F77
 
17628
 
 
17629
# Dependencies to place before the objects being linked to create a
 
17630
# shared library.
 
17631
predeps=$lt_predeps_F77
 
17632
 
 
17633
# Dependencies to place after the objects being linked to create a
 
17634
# shared library.
 
17635
postdeps=$lt_postdeps_F77
 
17636
 
 
17637
# The library search path used internally by the compiler when linking
 
17638
# a shared library.
 
17639
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
17640
 
 
17641
# Method to check whether dependent libraries are shared objects.
 
17642
deplibs_check_method=$lt_deplibs_check_method
 
17643
 
 
17644
# Command to use when deplibs_check_method == file_magic.
 
17645
file_magic_cmd=$lt_file_magic_cmd
 
17646
 
 
17647
# Flag that allows shared libraries with undefined symbols to be built.
 
17648
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
17649
 
 
17650
# Flag that forces no undefined symbols.
 
17651
no_undefined_flag=$lt_no_undefined_flag_F77
 
17652
 
 
17653
# Commands used to finish a libtool library installation in a directory.
 
17654
finish_cmds=$lt_finish_cmds
 
17655
 
 
17656
# Same as above, but a single script fragment to be evaled but not shown.
 
17657
finish_eval=$lt_finish_eval
 
17658
 
 
17659
# Take the output of nm and produce a listing of raw symbols and C names.
 
17660
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17661
 
 
17662
# Transform the output of nm in a proper C declaration
 
17663
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17664
 
 
17665
# Transform the output of nm in a C name address pair
 
17666
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17667
 
 
17668
# This is the shared library runtime path variable.
 
17669
runpath_var=$runpath_var
 
17670
 
 
17671
# This is the shared library path variable.
 
17672
shlibpath_var=$shlibpath_var
 
17673
 
 
17674
# Is shlibpath searched before the hard-coded library search path?
 
17675
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17676
 
 
17677
# How to hardcode a shared library path into an executable.
 
17678
hardcode_action=$hardcode_action_F77
 
17679
 
 
17680
# Whether we should hardcode library paths into libraries.
 
17681
hardcode_into_libs=$hardcode_into_libs
 
17682
 
 
17683
# Flag to hardcode \$libdir into a binary during linking.
 
17684
# This must work even if \$libdir does not exist.
 
17685
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
17686
 
 
17687
# If ld is used when linking, flag to hardcode \$libdir into
 
17688
# a binary during linking. This must work even if \$libdir does
 
17689
# not exist.
 
17690
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
17691
 
 
17692
# Whether we need a single -rpath flag with a separated argument.
 
17693
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
17694
 
 
17695
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17696
# resulting binary.
 
17697
hardcode_direct=$hardcode_direct_F77
 
17698
 
 
17699
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17700
# resulting binary.
 
17701
hardcode_minus_L=$hardcode_minus_L_F77
 
17702
 
 
17703
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
17704
# the resulting binary.
 
17705
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
17706
 
 
17707
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
17708
# and all subsequent libraries and executables linked against it.
 
17709
hardcode_automatic=$hardcode_automatic_F77
 
17710
 
 
17711
# Variables whose values should be saved in libtool wrapper scripts and
 
17712
# restored at relink time.
 
17713
variables_saved_for_relink="$variables_saved_for_relink"
 
17714
 
 
17715
# Whether libtool must link a program against all its dependency libraries.
 
17716
link_all_deplibs=$link_all_deplibs_F77
 
17717
 
 
17718
# Compile-time system search path for libraries
 
17719
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17720
 
 
17721
# Run-time system search path for libraries
 
17722
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17723
 
 
17724
# Fix the shell variable \$srcfile for the compiler.
 
17725
fix_srcfile_path="$fix_srcfile_path_F77"
 
17726
 
 
17727
# Set to yes if exported symbols are required.
 
17728
always_export_symbols=$always_export_symbols_F77
 
17729
 
 
17730
# The commands to list exported symbols.
 
17731
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
17732
 
 
17733
# The commands to extract the exported symbol list from a shared archive.
 
17734
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17735
 
 
17736
# Symbols that should not be listed in the preloaded symbols.
 
17737
exclude_expsyms=$lt_exclude_expsyms_F77
 
17738
 
 
17739
# Symbols that must always be exported.
 
17740
include_expsyms=$lt_include_expsyms_F77
 
17741
 
 
17742
# ### END LIBTOOL TAG CONFIG: $tagname
 
17743
 
 
17744
__EOF__
 
17745
 
 
17746
 
 
17747
else
 
17748
  # If there is no Makefile yet, we rely on a make rule to execute
 
17749
  # `config.status --recheck' to rerun these tests and create the
 
17750
  # libtool script then.
 
17751
  test -f Makefile && make "$ltmain"
 
17752
fi
 
17753
 
 
17754
 
 
17755
ac_ext=c
 
17756
ac_cpp='$CPP $CPPFLAGS'
 
17757
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17758
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17759
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17760
 
 
17761
CC="$lt_save_CC"
 
17762
 
 
17763
        else
 
17764
          tagname=""
 
17765
        fi
 
17766
        ;;
 
17767
 
 
17768
      GCJ)
 
17769
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
17770
 
 
17771
 
 
17772
 
 
17773
# Source file extension for Java test sources.
 
17774
ac_ext=java
 
17775
 
 
17776
# Object file extension for compiled Java test sources.
 
17777
objext=o
 
17778
objext_GCJ=$objext
 
17779
 
 
17780
# Code to be used in simple compile tests
 
17781
lt_simple_compile_test_code="class foo {}\n"
 
17782
 
 
17783
# Code to be used in simple link tests
 
17784
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
17785
 
 
17786
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
17787
 
 
17788
# If no C compiler was specified, use CC.
 
17789
LTCC=${LTCC-"$CC"}
 
17790
 
 
17791
# Allow CC to be a program name with arguments.
 
17792
compiler=$CC
 
17793
 
 
17794
 
 
17795
# Allow CC to be a program name with arguments.
 
17796
lt_save_CC="$CC"
 
17797
CC=${GCJ-"gcj"}
 
17798
compiler=$CC
 
17799
compiler_GCJ=$CC
 
17800
 
 
17801
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
17802
archive_cmds_need_lc_GCJ=no
 
17803
 
 
17804
## CAVEAT EMPTOR:
 
17805
## There is no encapsulation within the following macros, do not change
 
17806
## the running order or otherwise move them around unless you know exactly
 
17807
## what you are doing...
 
17808
 
 
17809
lt_prog_compiler_no_builtin_flag_GCJ=
 
17810
 
 
17811
if test "$GCC" = yes; then
 
17812
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
17813
 
 
17814
 
 
17815
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17816
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
17817
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
17818
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17819
else
 
17820
  lt_cv_prog_compiler_rtti_exceptions=no
 
17821
  ac_outfile=conftest.$ac_objext
 
17822
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17823
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
17824
   # Insert the option either (1) after the last *FLAGS variable, or
 
17825
   # (2) before a word containing "conftest.", or (3) at the end.
 
17826
   # Note that $ac_compile itself does not contain backslashes and begins
 
17827
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17828
   # The option is referenced via a variable to avoid confusing sed.
 
17829
   lt_compile=`echo "$ac_compile" | $SED \
 
17830
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17831
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17832
   -e 's:$: $lt_compiler_flag:'`
 
17833
   (eval echo "\"\$as_me:17833: $lt_compile\"" >&5)
 
17834
   (eval "$lt_compile" 2>conftest.err)
 
17835
   ac_status=$?
 
17836
   cat conftest.err >&5
 
17837
   echo "$as_me:17837: \$? = $ac_status" >&5
 
17838
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17839
     # The compiler can only warn and ignore the option if not recognized
 
17840
     # So say no if there are warnings
 
17841
     if test ! -s conftest.err; then
 
17842
       lt_cv_prog_compiler_rtti_exceptions=yes
 
17843
     fi
 
17844
   fi
 
17845
   $rm conftest*
 
17846
 
 
17847
fi
 
17848
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
17849
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
17850
 
 
17851
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
17852
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
17853
else
 
17854
    :
 
17855
fi
 
17856
 
 
17857
fi
 
17858
 
 
17859
lt_prog_compiler_wl_GCJ=
 
17860
lt_prog_compiler_pic_GCJ=
 
17861
lt_prog_compiler_static_GCJ=
 
17862
 
 
17863
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
17864
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
17865
 
 
17866
  if test "$GCC" = yes; then
 
17867
    lt_prog_compiler_wl_GCJ='-Wl,'
 
17868
    lt_prog_compiler_static_GCJ='-static'
 
17869
 
 
17870
    case $host_os in
 
17871
      aix*)
 
17872
      # All AIX code is PIC.
 
17873
      if test "$host_cpu" = ia64; then
 
17874
        # AIX 5 now supports IA64 processor
 
17875
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17876
      fi
 
17877
      ;;
 
17878
 
 
17879
    amigaos*)
 
17880
      # FIXME: we need at least 68020 code to build shared libraries, but
 
17881
      # adding the `-m68020' flag to GCC prevents building anything better,
 
17882
      # like `-m68040'.
 
17883
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
17884
      ;;
 
17885
 
 
17886
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17887
      # PIC is the default for these OSes.
 
17888
      ;;
 
17889
 
 
17890
    mingw* | pw32* | os2*)
 
17891
      # This hack is so that the source file can tell whether it is being
 
17892
      # built for inclusion in a dll (and should export symbols for example).
 
17893
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17894
      ;;
 
17895
 
 
17896
    darwin* | rhapsody*)
 
17897
      # PIC is the default on this platform
 
17898
      # Common symbols not allowed in MH_DYLIB files
 
17899
      lt_prog_compiler_pic_GCJ='-fno-common'
 
17900
      ;;
 
17901
 
 
17902
    msdosdjgpp*)
 
17903
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
17904
      # on systems that don't support them.
 
17905
      lt_prog_compiler_can_build_shared_GCJ=no
 
17906
      enable_shared=no
 
17907
      ;;
 
17908
 
 
17909
    sysv4*MP*)
 
17910
      if test -d /usr/nec; then
 
17911
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
17912
      fi
 
17913
      ;;
 
17914
 
 
17915
    hpux*)
 
17916
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17917
      # not for PA HP-UX.
 
17918
      case "$host_cpu" in
 
17919
      hppa*64*|ia64*)
 
17920
        # +Z the default
 
17921
        ;;
 
17922
      *)
 
17923
        lt_prog_compiler_pic_GCJ='-fPIC'
 
17924
        ;;
 
17925
      esac
 
17926
      ;;
 
17927
 
 
17928
    *)
 
17929
      lt_prog_compiler_pic_GCJ='-fPIC'
 
17930
      ;;
 
17931
    esac
 
17932
  else
 
17933
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17934
    case $host_os in
 
17935
    aix*)
 
17936
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17937
      if test "$host_cpu" = ia64; then
 
17938
        # AIX 5 now supports IA64 processor
 
17939
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17940
      else
 
17941
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17942
      fi
 
17943
      ;;
 
17944
 
 
17945
    mingw* | pw32* | os2*)
 
17946
      # This hack is so that the source file can tell whether it is being
 
17947
      # built for inclusion in a dll (and should export symbols for example).
 
17948
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17949
      ;;
 
17950
 
 
17951
    hpux9* | hpux10* | hpux11*)
 
17952
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17953
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17954
      # not for PA HP-UX.
 
17955
      case "$host_cpu" in
 
17956
      hppa*64*|ia64*)
 
17957
        # +Z the default
 
17958
        ;;
 
17959
      *)
 
17960
        lt_prog_compiler_pic_GCJ='+Z'
 
17961
        ;;
 
17962
      esac
 
17963
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17964
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17965
      ;;
 
17966
 
 
17967
    irix5* | irix6* | nonstopux*)
 
17968
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17969
      # PIC (with -KPIC) is the default.
 
17970
      lt_prog_compiler_static_GCJ='-non_shared'
 
17971
      ;;
 
17972
 
 
17973
    newsos6)
 
17974
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17975
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17976
      ;;
 
17977
 
 
17978
    linux*)
 
17979
      case $CC in
 
17980
      icc* | ecc*)
 
17981
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17982
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17983
        lt_prog_compiler_static_GCJ='-static'
 
17984
        ;;
 
17985
      ccc*)
 
17986
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17987
        # All Alpha code is PIC.
 
17988
        lt_prog_compiler_static_GCJ='-non_shared'
 
17989
        ;;
 
17990
      esac
 
17991
      ;;
 
17992
 
 
17993
    osf3* | osf4* | osf5*)
 
17994
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17995
      # All OSF/1 code is PIC.
 
17996
      lt_prog_compiler_static_GCJ='-non_shared'
 
17997
      ;;
 
17998
 
 
17999
    sco3.2v5*)
 
18000
      lt_prog_compiler_pic_GCJ='-Kpic'
 
18001
      lt_prog_compiler_static_GCJ='-dn'
 
18002
      ;;
 
18003
 
 
18004
    solaris*)
 
18005
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18006
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18007
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18008
      ;;
 
18009
 
 
18010
    sunos4*)
 
18011
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
18012
      lt_prog_compiler_pic_GCJ='-PIC'
 
18013
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18014
      ;;
 
18015
 
 
18016
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18017
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18018
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18019
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18020
      ;;
 
18021
 
 
18022
    sysv4*MP*)
 
18023
      if test -d /usr/nec ;then
 
18024
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
18025
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18026
      fi
 
18027
      ;;
 
18028
 
 
18029
    uts4*)
 
18030
      lt_prog_compiler_pic_GCJ='-pic'
 
18031
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18032
      ;;
 
18033
 
 
18034
    *)
 
18035
      lt_prog_compiler_can_build_shared_GCJ=no
 
18036
      ;;
 
18037
    esac
 
18038
  fi
 
18039
 
 
18040
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
18041
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
18042
 
 
18043
#
 
18044
# Check to make sure the PIC flag actually works.
 
18045
#
 
18046
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
18047
 
 
18048
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
18049
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
18050
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
18051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18052
else
 
18053
  lt_prog_compiler_pic_works_GCJ=no
 
18054
  ac_outfile=conftest.$ac_objext
 
18055
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18056
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
18057
   # Insert the option either (1) after the last *FLAGS variable, or
 
18058
   # (2) before a word containing "conftest.", or (3) at the end.
 
18059
   # Note that $ac_compile itself does not contain backslashes and begins
 
18060
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18061
   # The option is referenced via a variable to avoid confusing sed.
 
18062
   lt_compile=`echo "$ac_compile" | $SED \
 
18063
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
18064
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18065
   -e 's:$: $lt_compiler_flag:'`
 
18066
   (eval echo "\"\$as_me:18066: $lt_compile\"" >&5)
 
18067
   (eval "$lt_compile" 2>conftest.err)
 
18068
   ac_status=$?
 
18069
   cat conftest.err >&5
 
18070
   echo "$as_me:18070: \$? = $ac_status" >&5
 
18071
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
18072
     # The compiler can only warn and ignore the option if not recognized
 
18073
     # So say no if there are warnings
 
18074
     if test ! -s conftest.err; then
 
18075
       lt_prog_compiler_pic_works_GCJ=yes
 
18076
     fi
 
18077
   fi
 
18078
   $rm conftest*
 
18079
 
 
18080
fi
 
18081
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
18082
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
18083
 
 
18084
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
18085
    case $lt_prog_compiler_pic_GCJ in
 
18086
     "" | " "*) ;;
 
18087
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
18088
     esac
 
18089
else
 
18090
    lt_prog_compiler_pic_GCJ=
 
18091
     lt_prog_compiler_can_build_shared_GCJ=no
 
18092
fi
 
18093
 
 
18094
fi
 
18095
case "$host_os" in
 
18096
  # For platforms which do not support PIC, -DPIC is meaningless:
 
18097
  *djgpp*)
 
18098
    lt_prog_compiler_pic_GCJ=
 
18099
    ;;
 
18100
  *)
 
18101
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
18102
    ;;
 
18103
esac
 
18104
 
 
18105
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
18106
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
18107
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
18108
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18109
else
 
18110
  lt_cv_prog_compiler_c_o_GCJ=no
 
18111
   $rm -r conftest 2>/dev/null
 
18112
   mkdir conftest
 
18113
   cd conftest
 
18114
   mkdir out
 
18115
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18116
 
 
18117
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
18118
   # that will create temporary files in the current directory regardless of
 
18119
   # the output directory.  Thus, making CWD read-only will cause this test
 
18120
   # to fail, enabling locking or at least warning the user not to do parallel
 
18121
   # builds.
 
18122
   chmod -w .
 
18123
 
 
18124
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
18125
   # Insert the option either (1) after the last *FLAGS variable, or
 
18126
   # (2) before a word containing "conftest.", or (3) at the end.
 
18127
   # Note that $ac_compile itself does not contain backslashes and begins
 
18128
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18129
   lt_compile=`echo "$ac_compile" | $SED \
 
18130
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
18131
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18132
   -e 's:$: $lt_compiler_flag:'`
 
18133
   (eval echo "\"\$as_me:18133: $lt_compile\"" >&5)
 
18134
   (eval "$lt_compile" 2>out/conftest.err)
 
18135
   ac_status=$?
 
18136
   cat out/conftest.err >&5
 
18137
   echo "$as_me:18137: \$? = $ac_status" >&5
 
18138
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
18139
   then
 
18140
     # The compiler can only warn and ignore the option if not recognized
 
18141
     # So say no if there are warnings
 
18142
     if test ! -s out/conftest.err; then
 
18143
       lt_cv_prog_compiler_c_o_GCJ=yes
 
18144
     fi
 
18145
   fi
 
18146
   chmod u+w .
 
18147
   $rm conftest* out/*
 
18148
   rmdir out
 
18149
   cd ..
 
18150
   rmdir conftest
 
18151
   $rm conftest*
 
18152
 
 
18153
fi
 
18154
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
18155
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
18156
 
 
18157
 
 
18158
hard_links="nottested"
 
18159
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
18160
  # do not overwrite the value of need_locks provided by the user
 
18161
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
18162
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
18163
  hard_links=yes
 
18164
  $rm conftest*
 
18165
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
18166
  touch conftest.a
 
18167
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
18168
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
18169
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
18170
echo "${ECHO_T}$hard_links" >&6
 
18171
  if test "$hard_links" = no; then
 
18172
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
18173
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
18174
    need_locks=warn
 
18175
  fi
 
18176
else
 
18177
  need_locks=no
 
18178
fi
 
18179
 
 
18180
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
18181
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
18182
 
 
18183
  runpath_var=
 
18184
  allow_undefined_flag_GCJ=
 
18185
  enable_shared_with_static_runtimes_GCJ=no
 
18186
  archive_cmds_GCJ=
 
18187
  archive_expsym_cmds_GCJ=
 
18188
  old_archive_From_new_cmds_GCJ=
 
18189
  old_archive_from_expsyms_cmds_GCJ=
 
18190
  export_dynamic_flag_spec_GCJ=
 
18191
  whole_archive_flag_spec_GCJ=
 
18192
  thread_safe_flag_spec_GCJ=
 
18193
  hardcode_libdir_flag_spec_GCJ=
 
18194
  hardcode_libdir_flag_spec_ld_GCJ=
 
18195
  hardcode_libdir_separator_GCJ=
 
18196
  hardcode_direct_GCJ=no
 
18197
  hardcode_minus_L_GCJ=no
 
18198
  hardcode_shlibpath_var_GCJ=unsupported
 
18199
  link_all_deplibs_GCJ=unknown
 
18200
  hardcode_automatic_GCJ=no
 
18201
  module_cmds_GCJ=
 
18202
  module_expsym_cmds_GCJ=
 
18203
  always_export_symbols_GCJ=no
 
18204
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
18205
  # include_expsyms should be a list of space-separated symbols to be *always*
 
18206
  # included in the symbol list
 
18207
  include_expsyms_GCJ=
 
18208
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
18209
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
18210
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
18211
  # as well as any symbol that contains `d'.
 
18212
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
18213
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
18214
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
18215
  # the symbol is explicitly referenced.  Since portable code cannot
 
18216
  # rely on this symbol name, it's probably fine to never include it in
 
18217
  # preloaded symbol tables.
 
18218
  extract_expsyms_cmds=
 
18219
 
 
18220
  case $host_os in
 
18221
  cygwin* | mingw* | pw32*)
 
18222
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
18223
    # When not using gcc, we currently assume that we are using
 
18224
    # Microsoft Visual C++.
 
18225
    if test "$GCC" != yes; then
 
18226
      with_gnu_ld=no
 
18227
    fi
 
18228
    ;;
 
18229
  openbsd*)
 
18230
    with_gnu_ld=no
 
18231
    ;;
 
18232
  esac
 
18233
 
 
18234
  ld_shlibs_GCJ=yes
 
18235
  if test "$with_gnu_ld" = yes; then
 
18236
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
18237
    wlarc='${wl}'
 
18238
 
 
18239
    # See if GNU ld supports shared libraries.
 
18240
    case $host_os in
 
18241
    aix3* | aix4* | aix5*)
 
18242
      # On AIX/PPC, the GNU linker is very broken
 
18243
      if test "$host_cpu" != ia64; then
 
18244
        ld_shlibs_GCJ=no
 
18245
        cat <<EOF 1>&2
 
18246
 
 
18247
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
18248
*** to be unable to reliably create shared libraries on AIX.
 
18249
*** Therefore, libtool is disabling shared libraries support.  If you
 
18250
*** really care for shared libraries, you may want to modify your PATH
 
18251
*** so that a non-GNU linker is found, and then restart.
 
18252
 
 
18253
EOF
 
18254
      fi
 
18255
      ;;
 
18256
 
 
18257
    amigaos*)
 
18258
      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)'
 
18259
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18260
      hardcode_minus_L_GCJ=yes
 
18261
 
 
18262
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
18263
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
18264
      # to version 4, is to share data among multiple programs linked
 
18265
      # with the same dynamic library.  Since this doesn't match the
 
18266
      # behavior of shared libraries on other platforms, we can't use
 
18267
      # them.
 
18268
      ld_shlibs_GCJ=no
 
18269
      ;;
 
18270
 
 
18271
    beos*)
 
18272
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18273
        allow_undefined_flag_GCJ=unsupported
 
18274
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
18275
        # support --undefined.  This deserves some investigation.  FIXME
 
18276
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18277
      else
 
18278
        ld_shlibs_GCJ=no
 
18279
      fi
 
18280
      ;;
 
18281
 
 
18282
    cygwin* | mingw* | pw32*)
 
18283
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
18284
      # as there is no search path for DLLs.
 
18285
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18286
      allow_undefined_flag_GCJ=no
 
18287
      always_export_symbols_GCJ=no
 
18288
      enable_shared_with_static_runtimes_GCJ=yes
 
18289
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
18290
 
 
18291
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
18292
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
18293
        # If the export-symbols file already is a .def file (1st line
 
18294
        # is EXPORTS), use it as is; otherwise, prepend...
 
18295
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
18296
          cp $export_symbols $output_objdir/$soname.def;
 
18297
        else
 
18298
          echo EXPORTS > $output_objdir/$soname.def;
 
18299
          cat $export_symbols >> $output_objdir/$soname.def;
 
18300
        fi~
 
18301
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
18302
      else
 
18303
        ld_shlibs=no
 
18304
      fi
 
18305
      ;;
 
18306
 
 
18307
    netbsd*)
 
18308
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18309
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
18310
        wlarc=
 
18311
      else
 
18312
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18313
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18314
      fi
 
18315
      ;;
 
18316
 
 
18317
    solaris* | sysv5*)
 
18318
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
18319
        ld_shlibs_GCJ=no
 
18320
        cat <<EOF 1>&2
 
18321
 
 
18322
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
18323
*** create shared libraries on Solaris systems.  Therefore, libtool
 
18324
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
18325
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
18326
*** your PATH or compiler configuration so that the native linker is
 
18327
*** used, and then restart.
 
18328
 
 
18329
EOF
 
18330
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18331
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18332
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18333
      else
 
18334
        ld_shlibs_GCJ=no
 
18335
      fi
 
18336
      ;;
 
18337
 
 
18338
    sunos4*)
 
18339
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18340
      wlarc=
 
18341
      hardcode_direct_GCJ=yes
 
18342
      hardcode_shlibpath_var_GCJ=no
 
18343
      ;;
 
18344
 
 
18345
    *)
 
18346
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18347
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18348
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18349
      else
 
18350
        ld_shlibs_GCJ=no
 
18351
      fi
 
18352
      ;;
 
18353
    esac
 
18354
 
 
18355
    if test "$ld_shlibs_GCJ" = yes; then
 
18356
      runpath_var=LD_RUN_PATH
 
18357
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
18358
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
18359
      # ancient GNU ld didn't support --whole-archive et. al.
 
18360
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
18361
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
18362
      else
 
18363
        whole_archive_flag_spec_GCJ=
 
18364
      fi
 
18365
    fi
 
18366
  else
 
18367
    # PORTME fill in a description of your system's linker (not GNU ld)
 
18368
    case $host_os in
 
18369
    aix3*)
 
18370
      allow_undefined_flag_GCJ=unsupported
 
18371
      always_export_symbols_GCJ=yes
 
18372
      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'
 
18373
      # Note: this linker hardcodes the directories in LIBPATH if there
 
18374
      # are no directories specified by -L.
 
18375
      hardcode_minus_L_GCJ=yes
 
18376
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
18377
        # Neither direct hardcoding nor static linking is supported with a
 
18378
        # broken collect2.
 
18379
        hardcode_direct_GCJ=unsupported
 
18380
      fi
 
18381
      ;;
 
18382
 
 
18383
    aix4* | aix5*)
 
18384
      if test "$host_cpu" = ia64; then
 
18385
        # On IA64, the linker does run time linking by default, so we don't
 
18386
        # have to do anything special.
 
18387
        aix_use_runtimelinking=no
 
18388
        exp_sym_flag='-Bexport'
 
18389
        no_entry_flag=""
 
18390
      else
 
18391
        # If we're using GNU nm, then we don't want the "-C" option.
 
18392
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
18393
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
18394
          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'
 
18395
        else
 
18396
          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'
 
18397
        fi
 
18398
 
 
18399
        # KDE requires run time linking.  Make it the default.
 
18400
        aix_use_runtimelinking=yes
 
18401
        exp_sym_flag='-bexport'
 
18402
        no_entry_flag='-bnoentry'
 
18403
      fi
 
18404
 
 
18405
      # When large executables or shared objects are built, AIX ld can
 
18406
      # have problems creating the table of contents.  If linking a library
 
18407
      # or program results in "error TOC overflow" add -mminimal-toc to
 
18408
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
18409
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
18410
 
 
18411
      archive_cmds_GCJ=''
 
18412
      hardcode_direct_GCJ=yes
 
18413
      hardcode_libdir_separator_GCJ=':'
 
18414
      link_all_deplibs_GCJ=yes
 
18415
 
 
18416
      if test "$GCC" = yes; then
 
18417
        case $host_os in aix4.012|aix4.012.*)
 
18418
        # We only want to do this on AIX 4.2 and lower, the check
 
18419
        # below for broken collect2 doesn't work under 4.3+
 
18420
          collect2name=`${CC} -print-prog-name=collect2`
 
18421
          if test -f "$collect2name" && \
 
18422
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
18423
          then
 
18424
          # We have reworked collect2
 
18425
          hardcode_direct_GCJ=yes
 
18426
          else
 
18427
          # We have old collect2
 
18428
          hardcode_direct_GCJ=unsupported
 
18429
          # It fails to find uninstalled libraries when the uninstalled
 
18430
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
18431
          # to unsupported forces relinking
 
18432
          hardcode_minus_L_GCJ=yes
 
18433
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18434
          hardcode_libdir_separator_GCJ=
 
18435
          fi
 
18436
        esac
 
18437
        shared_flag='-shared'
 
18438
      else
 
18439
        # not using gcc
 
18440
        if test "$host_cpu" = ia64; then
 
18441
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
18442
        # chokes on -Wl,-G. The following line is correct:
 
18443
          shared_flag='-G'
 
18444
        else
 
18445
        if test "$aix_use_runtimelinking" = yes; then
 
18446
            shared_flag='-qmkshrobj ${wl}-G'
 
18447
          else
 
18448
            shared_flag='-qmkshrobj'
 
18449
        fi
 
18450
        fi
 
18451
      fi
 
18452
 
 
18453
      # Let the compiler handle the export list.
 
18454
      always_export_symbols_GCJ=no
 
18455
      if test "$aix_use_runtimelinking" = yes; then
 
18456
        # Warning - without using the other runtime loading flags (-brtl),
 
18457
        # -berok will link without error, but may produce a broken library.
 
18458
        allow_undefined_flag_GCJ='-berok'
 
18459
       # Determine the default libpath from the value encoded in an empty executable.
 
18460
        cat >conftest.$ac_ext <<_ACEOF
 
18461
/* confdefs.h.  */
 
18462
_ACEOF
 
18463
cat confdefs.h >>conftest.$ac_ext
 
18464
cat >>conftest.$ac_ext <<_ACEOF
 
18465
/* end confdefs.h.  */
 
18466
 
 
18467
int
 
18468
main ()
 
18469
{
 
18470
 
 
18471
  ;
 
18472
  return 0;
 
18473
}
 
18474
_ACEOF
 
18475
rm -f conftest.$ac_objext conftest$ac_exeext
 
18476
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18477
  (eval $ac_link) 2>conftest.er1
 
18478
  ac_status=$?
 
18479
  grep -v '^ *+' conftest.er1 >conftest.err
 
18480
  rm -f conftest.er1
 
18481
  cat conftest.err >&5
 
18482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18483
  (exit $ac_status); } &&
 
18484
         { ac_try='test -z "$ac_c_werror_flag"
 
18485
                         || test ! -s conftest.err'
 
18486
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18487
  (eval $ac_try) 2>&5
 
18488
  ac_status=$?
 
18489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18490
  (exit $ac_status); }; } &&
 
18491
         { ac_try='test -s conftest$ac_exeext'
 
18492
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18493
  (eval $ac_try) 2>&5
 
18494
  ac_status=$?
 
18495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18496
  (exit $ac_status); }; }; then
 
18497
 
 
18498
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18499
}'`
 
18500
# Check for a 64-bit object if we didn't find anything.
 
18501
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; }
 
18502
}'`; fi
 
18503
else
 
18504
  echo "$as_me: failed program was:" >&5
 
18505
sed 's/^/| /' conftest.$ac_ext >&5
 
18506
 
 
18507
fi
 
18508
rm -f conftest.err conftest.$ac_objext \
 
18509
      conftest$ac_exeext conftest.$ac_ext
 
18510
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18511
 
 
18512
        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18513
        archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
 
18514
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
18515
       else
 
18516
        if test "$host_cpu" = ia64; then
 
18517
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
18518
          allow_undefined_flag_GCJ="-z nodefs"
 
18519
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
18520
        else
 
18521
         # Determine the default libpath from the value encoded in an empty executable.
 
18522
         cat >conftest.$ac_ext <<_ACEOF
 
18523
/* confdefs.h.  */
 
18524
_ACEOF
 
18525
cat confdefs.h >>conftest.$ac_ext
 
18526
cat >>conftest.$ac_ext <<_ACEOF
 
18527
/* end confdefs.h.  */
 
18528
 
 
18529
int
 
18530
main ()
 
18531
{
 
18532
 
 
18533
  ;
 
18534
  return 0;
 
18535
}
 
18536
_ACEOF
 
18537
rm -f conftest.$ac_objext conftest$ac_exeext
 
18538
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18539
  (eval $ac_link) 2>conftest.er1
 
18540
  ac_status=$?
 
18541
  grep -v '^ *+' conftest.er1 >conftest.err
 
18542
  rm -f conftest.er1
 
18543
  cat conftest.err >&5
 
18544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18545
  (exit $ac_status); } &&
 
18546
         { ac_try='test -z "$ac_c_werror_flag"
 
18547
                         || test ! -s conftest.err'
 
18548
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18549
  (eval $ac_try) 2>&5
 
18550
  ac_status=$?
 
18551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18552
  (exit $ac_status); }; } &&
 
18553
         { ac_try='test -s conftest$ac_exeext'
 
18554
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18555
  (eval $ac_try) 2>&5
 
18556
  ac_status=$?
 
18557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18558
  (exit $ac_status); }; }; then
 
18559
 
 
18560
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18561
}'`
 
18562
# Check for a 64-bit object if we didn't find anything.
 
18563
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; }
 
18564
}'`; fi
 
18565
else
 
18566
  echo "$as_me: failed program was:" >&5
 
18567
sed 's/^/| /' conftest.$ac_ext >&5
 
18568
 
 
18569
fi
 
18570
rm -f conftest.err conftest.$ac_objext \
 
18571
      conftest$ac_exeext conftest.$ac_ext
 
18572
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18573
 
 
18574
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18575
          # Warning - without using the other run time loading flags,
 
18576
          # -berok will link without error, but may produce a broken library.
 
18577
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
18578
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
18579
          # -bexpall does not export symbols beginning with underscore (_)
 
18580
          always_export_symbols_GCJ=yes
 
18581
          # Exported symbols can be pulled into shared objects from archives
 
18582
          whole_archive_flag_spec_GCJ=' '
 
18583
          archive_cmds_need_lc_GCJ=yes
 
18584
          # This is similar to how AIX traditionally builds it's shared libraries.
 
18585
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
18586
        fi
 
18587
      fi
 
18588
      ;;
 
18589
 
 
18590
    amigaos*)
 
18591
      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)'
 
18592
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18593
      hardcode_minus_L_GCJ=yes
 
18594
      # see comment about different semantics on the GNU ld section
 
18595
      ld_shlibs_GCJ=no
 
18596
      ;;
 
18597
 
 
18598
    bsdi4*)
 
18599
      export_dynamic_flag_spec_GCJ=-rdynamic
 
18600
      ;;
 
18601
 
 
18602
    cygwin* | mingw* | pw32*)
 
18603
      # When not using gcc, we currently assume that we are using
 
18604
      # Microsoft Visual C++.
 
18605
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
18606
      # no search path for DLLs.
 
18607
      hardcode_libdir_flag_spec_GCJ=' '
 
18608
      allow_undefined_flag_GCJ=no
 
18609
      # Tell ltmain to make .lib files, not .a files.
 
18610
      libext=lib
 
18611
      # Tell ltmain to make .dll files, not .so files.
 
18612
      shrext=".dll"
 
18613
      # FIXME: Setting linknames here is a bad hack.
 
18614
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18615
      # The linker will automatically build a .lib file if we build a DLL.
 
18616
      old_archive_From_new_cmds_GCJ='true'
 
18617
      # FIXME: Should let the user specify the lib program.
 
18618
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
18619
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
18620
      enable_shared_with_static_runtimes_GCJ=yes
 
18621
      ;;
 
18622
 
 
18623
    darwin* | rhapsody*)
 
18624
    if test "$GXX" = yes ; then
 
18625
      archive_cmds_need_lc_GCJ=no
 
18626
      case "$host_os" in
 
18627
      rhapsody* | darwin1.[012])
 
18628
        allow_undefined_flag_GCJ='-undefined suppress'
 
18629
        ;;
 
18630
      *) # Darwin 1.3 on
 
18631
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
18632
        ;;
 
18633
      esac
 
18634
        lt_int_apple_cc_single_mod=no
 
18635
        output_verbose_link_cmd='echo'
 
18636
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
18637
          lt_int_apple_cc_single_mod=yes
 
18638
        fi
 
18639
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
18640
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
18641
        else
 
18642
        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 $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
18643
      fi
 
18644
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18645
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
18646
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
18647
          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 $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18648
        else
 
18649
          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 $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18650
        fi
 
18651
          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 $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18652
      hardcode_direct_GCJ=no
 
18653
      hardcode_automatic_GCJ=yes
 
18654
      hardcode_shlibpath_var_GCJ=unsupported
 
18655
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
18656
      link_all_deplibs_GCJ=yes
 
18657
    else
 
18658
      ld_shlibs_GCJ=no
 
18659
    fi
 
18660
      ;;
 
18661
 
 
18662
    dgux*)
 
18663
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18664
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18665
      hardcode_shlibpath_var_GCJ=no
 
18666
      ;;
 
18667
 
 
18668
    freebsd1*)
 
18669
      ld_shlibs_GCJ=no
 
18670
      ;;
 
18671
 
 
18672
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
18673
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
18674
    # does not break anything, and helps significantly (at the cost of a little
 
18675
    # extra space).
 
18676
    freebsd2.2*)
 
18677
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
18678
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18679
      hardcode_direct_GCJ=yes
 
18680
      hardcode_shlibpath_var_GCJ=no
 
18681
      ;;
 
18682
 
 
18683
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
18684
    freebsd2*)
 
18685
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18686
      hardcode_direct_GCJ=yes
 
18687
      hardcode_minus_L_GCJ=yes
 
18688
      hardcode_shlibpath_var_GCJ=no
 
18689
      ;;
 
18690
 
 
18691
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18692
    freebsd*)
 
18693
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18694
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18695
      hardcode_direct_GCJ=yes
 
18696
      hardcode_shlibpath_var_GCJ=no
 
18697
      ;;
 
18698
 
 
18699
    hpux9*)
 
18700
      if test "$GCC" = yes; then
 
18701
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
18702
      else
 
18703
        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'
 
18704
      fi
 
18705
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18706
      hardcode_libdir_separator_GCJ=:
 
18707
      hardcode_direct_GCJ=yes
 
18708
 
 
18709
      # hardcode_minus_L: Not really in the search PATH,
 
18710
      # but as the default location of the library.
 
18711
      hardcode_minus_L_GCJ=yes
 
18712
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18713
      ;;
 
18714
 
 
18715
    hpux10* | hpux11*)
 
18716
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18717
        case "$host_cpu" in
 
18718
        hppa*64*|ia64*)
 
18719
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18720
          ;;
 
18721
        *)
 
18722
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18723
          ;;
 
18724
        esac
 
18725
      else
 
18726
        case "$host_cpu" in
 
18727
        hppa*64*|ia64*)
 
18728
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18729
          ;;
 
18730
        *)
 
18731
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18732
          ;;
 
18733
        esac
 
18734
      fi
 
18735
      if test "$with_gnu_ld" = no; then
 
18736
        case "$host_cpu" in
 
18737
        hppa*64*)
 
18738
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18739
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18740
          hardcode_libdir_separator_GCJ=:
 
18741
          hardcode_direct_GCJ=no
 
18742
          hardcode_shlibpath_var_GCJ=no
 
18743
          ;;
 
18744
        ia64*)
 
18745
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18746
          hardcode_direct_GCJ=no
 
18747
          hardcode_shlibpath_var_GCJ=no
 
18748
 
 
18749
          # hardcode_minus_L: Not really in the search PATH,
 
18750
          # but as the default location of the library.
 
18751
          hardcode_minus_L_GCJ=yes
 
18752
          ;;
 
18753
        *)
 
18754
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18755
          hardcode_libdir_separator_GCJ=:
 
18756
          hardcode_direct_GCJ=yes
 
18757
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18758
 
 
18759
          # hardcode_minus_L: Not really in the search PATH,
 
18760
          # but as the default location of the library.
 
18761
          hardcode_minus_L_GCJ=yes
 
18762
          ;;
 
18763
        esac
 
18764
      fi
 
18765
      ;;
 
18766
 
 
18767
    irix5* | irix6* | nonstopux*)
 
18768
      if test "$GCC" = yes; then
 
18769
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18770
      else
 
18771
        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'
 
18772
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18773
      fi
 
18774
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18775
      hardcode_libdir_separator_GCJ=:
 
18776
      link_all_deplibs_GCJ=yes
 
18777
      ;;
 
18778
 
 
18779
    netbsd*)
 
18780
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18781
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18782
      else
 
18783
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18784
      fi
 
18785
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18786
      hardcode_direct_GCJ=yes
 
18787
      hardcode_shlibpath_var_GCJ=no
 
18788
      ;;
 
18789
 
 
18790
    newsos6)
 
18791
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18792
      hardcode_direct_GCJ=yes
 
18793
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18794
      hardcode_libdir_separator_GCJ=:
 
18795
      hardcode_shlibpath_var_GCJ=no
 
18796
      ;;
 
18797
 
 
18798
    openbsd*)
 
18799
      hardcode_direct_GCJ=yes
 
18800
      hardcode_shlibpath_var_GCJ=no
 
18801
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18802
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18803
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18804
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18805
      else
 
18806
       case $host_os in
 
18807
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18808
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18809
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18810
           ;;
 
18811
         *)
 
18812
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18813
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18814
           ;;
 
18815
       esac
 
18816
      fi
 
18817
      ;;
 
18818
 
 
18819
    os2*)
 
18820
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18821
      hardcode_minus_L_GCJ=yes
 
18822
      allow_undefined_flag_GCJ=unsupported
 
18823
      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 $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
18824
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18825
      ;;
 
18826
 
 
18827
    osf3*)
 
18828
      if test "$GCC" = yes; then
 
18829
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18830
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18831
      else
 
18832
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18833
        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'
 
18834
      fi
 
18835
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18836
      hardcode_libdir_separator_GCJ=:
 
18837
      ;;
 
18838
 
 
18839
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18840
      if test "$GCC" = yes; then
 
18841
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18842
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${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'
 
18843
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18844
      else
 
18845
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18846
        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'
 
18847
        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~
 
18848
        $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'
 
18849
 
 
18850
        # Both c and cxx compiler support -rpath directly
 
18851
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18852
      fi
 
18853
      hardcode_libdir_separator_GCJ=:
 
18854
      ;;
 
18855
 
 
18856
    sco3.2v5*)
 
18857
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18858
      hardcode_shlibpath_var_GCJ=no
 
18859
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18860
      runpath_var=LD_RUN_PATH
 
18861
      hardcode_runpath_var=yes
 
18862
      ;;
 
18863
 
 
18864
    solaris*)
 
18865
      no_undefined_flag_GCJ=' -z text'
 
18866
      if test "$GCC" = yes; then
 
18867
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18868
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18869
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18870
      else
 
18871
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18872
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18873
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18874
      fi
 
18875
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18876
      hardcode_shlibpath_var_GCJ=no
 
18877
      case $host_os in
 
18878
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18879
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18880
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
18881
      esac
 
18882
      link_all_deplibs_GCJ=yes
 
18883
      ;;
 
18884
 
 
18885
    sunos4*)
 
18886
      if test "x$host_vendor" = xsequent; then
 
18887
        # Use $CC to link under sequent, because it throws in some extra .o
 
18888
        # files that make .init and .fini sections work.
 
18889
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18890
      else
 
18891
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18892
      fi
 
18893
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18894
      hardcode_direct_GCJ=yes
 
18895
      hardcode_minus_L_GCJ=yes
 
18896
      hardcode_shlibpath_var_GCJ=no
 
18897
      ;;
 
18898
 
 
18899
    sysv4)
 
18900
      case $host_vendor in
 
18901
        sni)
 
18902
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18903
          hardcode_direct_GCJ=yes # is this really true???
 
18904
        ;;
 
18905
        siemens)
 
18906
          ## LD is ld it makes a PLAMLIB
 
18907
          ## CC just makes a GrossModule.
 
18908
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18909
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18910
          hardcode_direct_GCJ=no
 
18911
        ;;
 
18912
        motorola)
 
18913
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18914
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18915
        ;;
 
18916
      esac
 
18917
      runpath_var='LD_RUN_PATH'
 
18918
      hardcode_shlibpath_var_GCJ=no
 
18919
      ;;
 
18920
 
 
18921
    sysv4.3*)
 
18922
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18923
      hardcode_shlibpath_var_GCJ=no
 
18924
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18925
      ;;
 
18926
 
 
18927
    sysv4*MP*)
 
18928
      if test -d /usr/nec; then
 
18929
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18930
        hardcode_shlibpath_var_GCJ=no
 
18931
        runpath_var=LD_RUN_PATH
 
18932
        hardcode_runpath_var=yes
 
18933
        ld_shlibs_GCJ=yes
 
18934
      fi
 
18935
      ;;
 
18936
 
 
18937
    sysv4.2uw2*)
 
18938
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18939
      hardcode_direct_GCJ=yes
 
18940
      hardcode_minus_L_GCJ=no
 
18941
      hardcode_shlibpath_var_GCJ=no
 
18942
      hardcode_runpath_var=yes
 
18943
      runpath_var=LD_RUN_PATH
 
18944
      ;;
 
18945
 
 
18946
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
18947
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
18948
      if test "$GCC" = yes; then
 
18949
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18950
      else
 
18951
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18952
      fi
 
18953
      runpath_var='LD_RUN_PATH'
 
18954
      hardcode_shlibpath_var_GCJ=no
 
18955
      ;;
 
18956
 
 
18957
    sysv5*)
 
18958
      no_undefined_flag_GCJ=' -z text'
 
18959
      # $CC -shared without GNU ld will not create a library from C++
 
18960
      # object files and a static libstdc++, better avoid it by now
 
18961
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18962
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18963
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18964
      hardcode_libdir_flag_spec_GCJ=
 
18965
      hardcode_shlibpath_var_GCJ=no
 
18966
      runpath_var='LD_RUN_PATH'
 
18967
      ;;
 
18968
 
 
18969
    uts4*)
 
18970
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18971
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18972
      hardcode_shlibpath_var_GCJ=no
 
18973
      ;;
 
18974
 
 
18975
    *)
 
18976
      ld_shlibs_GCJ=no
 
18977
      ;;
 
18978
    esac
 
18979
  fi
 
18980
 
 
18981
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18982
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
18983
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18984
 
 
18985
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18986
if test "$GCC" = yes; then
 
18987
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18988
fi
 
18989
 
 
18990
#
 
18991
# Do we need to explicitly link libc?
 
18992
#
 
18993
case "x$archive_cmds_need_lc_GCJ" in
 
18994
x|xyes)
 
18995
  # Assume -lc should be added
 
18996
  archive_cmds_need_lc_GCJ=yes
 
18997
 
 
18998
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18999
    case $archive_cmds_GCJ in
 
19000
    *'~'*)
 
19001
      # FIXME: we may have to deal with multi-command sequences.
 
19002
      ;;
 
19003
    '$CC '*)
 
19004
      # Test whether the compiler implicitly links with -lc since on some
 
19005
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
19006
      # to ld, don't add -lc before -lgcc.
 
19007
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
19008
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
19009
      $rm conftest*
 
19010
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
19011
 
 
19012
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19013
  (eval $ac_compile) 2>&5
 
19014
  ac_status=$?
 
19015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19016
  (exit $ac_status); } 2>conftest.err; then
 
19017
        soname=conftest
 
19018
        lib=conftest
 
19019
        libobjs=conftest.$ac_objext
 
19020
        deplibs=
 
19021
        wl=$lt_prog_compiler_wl_GCJ
 
19022
        compiler_flags=-v
 
19023
        linker_flags=-v
 
19024
        verstring=
 
19025
        output_objdir=.
 
19026
        libname=conftest
 
19027
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
19028
        allow_undefined_flag_GCJ=
 
19029
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
19030
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
19031
  ac_status=$?
 
19032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19033
  (exit $ac_status); }
 
19034
        then
 
19035
          archive_cmds_need_lc_GCJ=no
 
19036
        else
 
19037
          archive_cmds_need_lc_GCJ=yes
 
19038
        fi
 
19039
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
19040
      else
 
19041
        cat conftest.err 1>&5
 
19042
      fi
 
19043
      $rm conftest*
 
19044
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
19045
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
19046
      ;;
 
19047
    esac
 
19048
  fi
 
19049
  ;;
 
19050
esac
 
19051
 
 
19052
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
19053
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
19054
library_names_spec=
 
19055
libname_spec='lib$name'
 
19056
soname_spec=
 
19057
shrext=".so"
 
19058
postinstall_cmds=
 
19059
postuninstall_cmds=
 
19060
finish_cmds=
 
19061
finish_eval=
 
19062
shlibpath_var=
 
19063
shlibpath_overrides_runpath=unknown
 
19064
version_type=none
 
19065
dynamic_linker="$host_os ld.so"
 
19066
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
19067
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
19068
need_lib_prefix=unknown
 
19069
hardcode_into_libs=no
 
19070
 
 
19071
# when you set need_version to no, make sure it does not cause -set_version
 
19072
# flags to be left without arguments
 
19073
need_version=unknown
 
19074
 
 
19075
case $host_os in
 
19076
aix3*)
 
19077
  version_type=linux
 
19078
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
19079
  shlibpath_var=LIBPATH
 
19080
 
 
19081
  # AIX 3 has no versioning support, so we append a major version to the name.
 
19082
  soname_spec='${libname}${release}${shared_ext}$major'
 
19083
  ;;
 
19084
 
 
19085
aix4* | aix5*)
 
19086
  version_type=linux
 
19087
  need_lib_prefix=no
 
19088
  need_version=no
 
19089
  hardcode_into_libs=yes
 
19090
  if test "$host_cpu" = ia64; then
 
19091
    # AIX 5 supports IA64
 
19092
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
19093
    shlibpath_var=LD_LIBRARY_PATH
 
19094
  else
 
19095
    # With GCC up to 2.95.x, collect2 would create an import file
 
19096
    # for dependence libraries.  The import file would start with
 
19097
    # the line `#! .'.  This would cause the generated library to
 
19098
    # depend on `.', always an invalid library.  This was fixed in
 
19099
    # development snapshots of GCC prior to 3.0.
 
19100
    case $host_os in
 
19101
      aix4 | aix4.[01] | aix4.[01].*)
 
19102
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
19103
           echo ' yes '
 
19104
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
19105
        :
 
19106
      else
 
19107
        can_build_shared=no
 
19108
      fi
 
19109
      ;;
 
19110
    esac
 
19111
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
19112
    # soname into executable. Probably we can add versioning support to
 
19113
    # collect2, so additional links can be useful in future.
 
19114
    if test "$aix_use_runtimelinking" = yes; then
 
19115
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
19116
      # instead of lib<name>.a to let people know that these are not
 
19117
      # typical AIX shared libraries.
 
19118
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19119
    else
 
19120
      # We preserve .a as extension for shared libraries through AIX4.2
 
19121
      # and later when we are not doing run time linking.
 
19122
      library_names_spec='${libname}${release}.a $libname.a'
 
19123
      soname_spec='${libname}${release}${shared_ext}$major'
 
19124
    fi
 
19125
    shlibpath_var=LIBPATH
 
19126
  fi
 
19127
  ;;
 
19128
 
 
19129
amigaos*)
 
19130
  library_names_spec='$libname.ixlibrary $libname.a'
 
19131
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
19132
  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'
 
19133
  ;;
 
19134
 
 
19135
beos*)
 
19136
  library_names_spec='${libname}${shared_ext}'
 
19137
  dynamic_linker="$host_os ld.so"
 
19138
  shlibpath_var=LIBRARY_PATH
 
19139
  ;;
 
19140
 
 
19141
bsdi4*)
 
19142
  version_type=linux
 
19143
  need_version=no
 
19144
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19145
  soname_spec='${libname}${release}${shared_ext}$major'
 
19146
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
19147
  shlibpath_var=LD_LIBRARY_PATH
 
19148
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
19149
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
19150
  # the default ld.so.conf also contains /usr/contrib/lib and
 
19151
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
19152
  # libtool to hard-code these into programs
 
19153
  ;;
 
19154
 
 
19155
cygwin* | mingw* | pw32*)
 
19156
  version_type=windows
 
19157
  shrext=".dll"
 
19158
  need_version=no
 
19159
  need_lib_prefix=no
 
19160
 
 
19161
  case $GCC,$host_os in
 
19162
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
19163
    library_names_spec='$libname.dll.a'
 
19164
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
19165
    postinstall_cmds='base_file=`basename \${file}`~
 
19166
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
19167
      dldir=$destdir/`dirname \$dlpath`~
 
19168
      test -d \$dldir || mkdir -p \$dldir~
 
19169
      $install_prog $dir/$dlname \$dldir/$dlname'
 
19170
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
19171
      dlpath=$dir/\$dldll~
 
19172
       $rm \$dlpath'
 
19173
    shlibpath_overrides_runpath=yes
 
19174
 
 
19175
    case $host_os in
 
19176
    cygwin*)
 
19177
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
19178
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19179
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
19180
      ;;
 
19181
    mingw*)
 
19182
      # MinGW DLLs use traditional 'lib' prefix
 
19183
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19184
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
19185
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
19186
        # It is most probably a Windows format PATH printed by
 
19187
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
19188
        # path with ; separators, and with drive letters. We can handle the
 
19189
        # drive letters (cygwin fileutils understands them), so leave them,
 
19190
        # especially as we might pass files found there to a mingw objdump,
 
19191
        # which wouldn't understand a cygwinified path. Ahh.
 
19192
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
19193
      else
 
19194
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
19195
      fi
 
19196
      ;;
 
19197
    pw32*)
 
19198
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
19199
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
19200
      ;;
 
19201
    esac
 
19202
    ;;
 
19203
 
 
19204
  *)
 
19205
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
19206
    ;;
 
19207
  esac
 
19208
  dynamic_linker='Win32 ld.exe'
 
19209
  # FIXME: first we should search . and the directory the executable is in
 
19210
  shlibpath_var=PATH
 
19211
  ;;
 
19212
 
 
19213
darwin* | rhapsody*)
 
19214
  dynamic_linker="$host_os dyld"
 
19215
  version_type=darwin
 
19216
  need_lib_prefix=no
 
19217
  need_version=no
 
19218
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
19219
  soname_spec='${libname}${release}${major}$shared_ext'
 
19220
  shlibpath_overrides_runpath=yes
 
19221
  shlibpath_var=DYLD_LIBRARY_PATH
 
19222
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
19223
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
19224
  if test "$GCC" = yes; then
 
19225
    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"`
 
19226
  else
 
19227
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
19228
  fi
 
19229
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
19230
  ;;
 
19231
 
 
19232
dgux*)
 
19233
  version_type=linux
 
19234
  need_lib_prefix=no
 
19235
  need_version=no
 
19236
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
19237
  soname_spec='${libname}${release}${shared_ext}$major'
 
19238
  shlibpath_var=LD_LIBRARY_PATH
 
19239
  ;;
 
19240
 
 
19241
freebsd1*)
 
19242
  dynamic_linker=no
 
19243
  ;;
 
19244
 
 
19245
freebsd*-gnu*)
 
19246
  version_type=linux
 
19247
  need_lib_prefix=no
 
19248
  need_version=no
 
19249
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19250
  soname_spec='${libname}${release}${shared_ext}$major'
 
19251
  shlibpath_var=LD_LIBRARY_PATH
 
19252
  shlibpath_overrides_runpath=no
 
19253
  hardcode_into_libs=yes
 
19254
  dynamic_linker='GNU ld.so'
 
19255
  ;;
 
19256
 
 
19257
freebsd*)
 
19258
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
19259
  version_type=freebsd-$objformat
 
19260
  case $version_type in
 
19261
    freebsd-elf*)
 
19262
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19263
      need_version=no
 
19264
      need_lib_prefix=no
 
19265
      ;;
 
19266
    freebsd-*)
 
19267
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
19268
      need_version=yes
 
19269
      ;;
 
19270
  esac
 
19271
  shlibpath_var=LD_LIBRARY_PATH
 
19272
  case $host_os in
 
19273
  freebsd2*)
 
19274
    shlibpath_overrides_runpath=yes
 
19275
    ;;
 
19276
  freebsd3.01* | freebsdelf3.01*)
 
19277
    shlibpath_overrides_runpath=yes
 
19278
    hardcode_into_libs=yes
 
19279
    ;;
 
19280
  *) # from 3.2 on
 
19281
    shlibpath_overrides_runpath=no
 
19282
    hardcode_into_libs=yes
 
19283
    ;;
 
19284
  esac
 
19285
  ;;
 
19286
 
 
19287
gnu*)
 
19288
  version_type=linux
 
19289
  need_lib_prefix=no
 
19290
  need_version=no
 
19291
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
19292
  soname_spec='${libname}${release}${shared_ext}$major'
 
19293
  shlibpath_var=LD_LIBRARY_PATH
 
19294
  hardcode_into_libs=yes
 
19295
  ;;
 
19296
 
 
19297
hpux9* | hpux10* | hpux11*)
 
19298
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
19299
  # link against other versions.
 
19300
  version_type=sunos
 
19301
  need_lib_prefix=no
 
19302
  need_version=no
 
19303
  case "$host_cpu" in
 
19304
  ia64*)
 
19305
    shrext='.so'
 
19306
    hardcode_into_libs=yes
 
19307
    dynamic_linker="$host_os dld.so"
 
19308
    shlibpath_var=LD_LIBRARY_PATH
 
19309
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19310
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19311
    soname_spec='${libname}${release}${shared_ext}$major'
 
19312
    if test "X$HPUX_IA64_MODE" = X32; then
 
19313
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
19314
    else
 
19315
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
19316
    fi
 
19317
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19318
    ;;
 
19319
   hppa*64*)
 
19320
     shrext='.sl'
 
19321
     hardcode_into_libs=yes
 
19322
     dynamic_linker="$host_os dld.sl"
 
19323
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
19324
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19325
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19326
     soname_spec='${libname}${release}${shared_ext}$major'
 
19327
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
19328
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19329
     ;;
 
19330
   *)
 
19331
    shrext='.sl'
 
19332
    dynamic_linker="$host_os dld.sl"
 
19333
    shlibpath_var=SHLIB_PATH
 
19334
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
19335
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19336
    soname_spec='${libname}${release}${shared_ext}$major'
 
19337
    ;;
 
19338
  esac
 
19339
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
19340
  postinstall_cmds='chmod 555 $lib'
 
19341
  ;;
 
19342
 
 
19343
irix5* | irix6* | nonstopux*)
 
19344
  case $host_os in
 
19345
    nonstopux*) version_type=nonstopux ;;
 
19346
    *)
 
19347
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
19348
                version_type=linux
 
19349
        else
 
19350
                version_type=irix
 
19351
        fi ;;
 
19352
  esac
 
19353
  need_lib_prefix=no
 
19354
  need_version=no
 
19355
  soname_spec='${libname}${release}${shared_ext}$major'
 
19356
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19357
  case $host_os in
 
19358
  irix5* | nonstopux*)
 
19359
    libsuff= shlibsuff=
 
19360
    ;;
 
19361
  *)
 
19362
    case $LD in # libtool.m4 will add one of these switches to LD
 
19363
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
19364
      libsuff= shlibsuff= libmagic=32-bit;;
 
19365
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
19366
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
19367
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
19368
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
19369
    *) libsuff= shlibsuff= libmagic=never-match;;
 
19370
    esac
 
19371
    ;;
 
19372
  esac
 
19373
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
19374
  shlibpath_overrides_runpath=no
 
19375
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19376
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19377
  hardcode_into_libs=yes
 
19378
  ;;
 
19379
 
 
19380
# No shared lib support for Linux oldld, aout, or coff.
 
19381
linux*oldld* | linux*aout* | linux*coff*)
 
19382
  dynamic_linker=no
 
19383
  ;;
 
19384
 
 
19385
# This must be Linux ELF.
 
19386
linux*)
 
19387
  version_type=linux
 
19388
  need_lib_prefix=no
 
19389
  need_version=no
 
19390
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19391
  soname_spec='${libname}${release}${shared_ext}$major'
 
19392
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
19393
  libsuff=
 
19394
  if test "x$LINUX_64_MODE" = x64; then
 
19395
    # Some platforms are per default 64-bit, so there's no /lib64
 
19396
    if test -d /lib64; then
 
19397
      libsuff=64
 
19398
    fi
 
19399
  fi
 
19400
  shlibpath_var=LD_LIBRARY_PATH
 
19401
  shlibpath_overrides_runpath=no
 
19402
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
19403
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
19404
  # This implies no fast_install, which is unacceptable.
 
19405
  # Some rework will be needed to allow for fast_install
 
19406
  # before this can be enabled.
 
19407
  hardcode_into_libs=yes
 
19408
 
 
19409
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
19410
  # powerpc, because MkLinux only supported shared libraries with the
 
19411
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
19412
  # most powerpc-linux boxes support dynamic linking these days and
 
19413
  # people can always --disable-shared, the test was removed, and we
 
19414
  # assume the GNU/Linux dynamic linker is in use.
 
19415
  dynamic_linker='GNU/Linux ld.so'
 
19416
  ;;
 
19417
 
 
19418
netbsd*)
 
19419
  version_type=sunos
 
19420
  need_lib_prefix=no
 
19421
  need_version=no
 
19422
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19423
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19424
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19425
    dynamic_linker='NetBSD (a.out) ld.so'
 
19426
  else
 
19427
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
19428
    soname_spec='${libname}${release}${shared_ext}$major'
 
19429
    dynamic_linker='NetBSD ld.elf_so'
 
19430
  fi
 
19431
  shlibpath_var=LD_LIBRARY_PATH
 
19432
  shlibpath_overrides_runpath=yes
 
19433
  hardcode_into_libs=yes
 
19434
  ;;
 
19435
 
 
19436
newsos6)
 
19437
  version_type=linux
 
19438
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19439
  shlibpath_var=LD_LIBRARY_PATH
 
19440
  shlibpath_overrides_runpath=yes
 
19441
  ;;
 
19442
 
 
19443
nto-qnx*)
 
19444
  version_type=linux
 
19445
  need_lib_prefix=no
 
19446
  need_version=no
 
19447
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19448
  soname_spec='${libname}${release}${shared_ext}$major'
 
19449
  shlibpath_var=LD_LIBRARY_PATH
 
19450
  shlibpath_overrides_runpath=yes
 
19451
  ;;
 
19452
 
 
19453
openbsd*)
 
19454
  version_type=sunos
 
19455
  need_lib_prefix=no
 
19456
  need_version=no
 
19457
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19458
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19459
  shlibpath_var=LD_LIBRARY_PATH
 
19460
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19461
    case $host_os in
 
19462
      openbsd2.[89] | openbsd2.[89].*)
 
19463
        shlibpath_overrides_runpath=no
 
19464
        ;;
 
19465
      *)
 
19466
        shlibpath_overrides_runpath=yes
 
19467
        ;;
 
19468
      esac
 
19469
  else
 
19470
    shlibpath_overrides_runpath=yes
 
19471
  fi
 
19472
  ;;
 
19473
 
 
19474
os2*)
 
19475
  libname_spec='$name'
 
19476
  shrext=".dll"
 
19477
  need_lib_prefix=no
 
19478
  library_names_spec='$libname${shared_ext} $libname.a'
 
19479
  dynamic_linker='OS/2 ld.exe'
 
19480
  shlibpath_var=LIBPATH
 
19481
  ;;
 
19482
 
 
19483
osf3* | osf4* | osf5*)
 
19484
  version_type=osf
 
19485
  need_lib_prefix=no
 
19486
  need_version=no
 
19487
  soname_spec='${libname}${release}${shared_ext}$major'
 
19488
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19489
  shlibpath_var=LD_LIBRARY_PATH
 
19490
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19491
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19492
  ;;
 
19493
 
 
19494
sco3.2v5*)
 
19495
  version_type=osf
 
19496
  soname_spec='${libname}${release}${shared_ext}$major'
 
19497
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19498
  shlibpath_var=LD_LIBRARY_PATH
 
19499
  ;;
 
19500
 
 
19501
solaris*)
 
19502
  version_type=linux
 
19503
  need_lib_prefix=no
 
19504
  need_version=no
 
19505
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19506
  soname_spec='${libname}${release}${shared_ext}$major'
 
19507
  shlibpath_var=LD_LIBRARY_PATH
 
19508
  shlibpath_overrides_runpath=yes
 
19509
  hardcode_into_libs=yes
 
19510
  # ldd complains unless libraries are executable
 
19511
  postinstall_cmds='chmod +x $lib'
 
19512
  ;;
 
19513
 
 
19514
sunos4*)
 
19515
  version_type=sunos
 
19516
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19517
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
19518
  shlibpath_var=LD_LIBRARY_PATH
 
19519
  shlibpath_overrides_runpath=yes
 
19520
  if test "$with_gnu_ld" = yes; then
 
19521
    need_lib_prefix=no
 
19522
  fi
 
19523
  need_version=yes
 
19524
  ;;
 
19525
 
 
19526
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
19527
  version_type=linux
 
19528
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19529
  soname_spec='${libname}${release}${shared_ext}$major'
 
19530
  shlibpath_var=LD_LIBRARY_PATH
 
19531
  case $host_vendor in
 
19532
    sni)
 
19533
      shlibpath_overrides_runpath=no
 
19534
      need_lib_prefix=no
 
19535
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19536
      runpath_var=LD_RUN_PATH
 
19537
      ;;
 
19538
    siemens)
 
19539
      need_lib_prefix=no
 
19540
      ;;
 
19541
    motorola)
 
19542
      need_lib_prefix=no
 
19543
      need_version=no
 
19544
      shlibpath_overrides_runpath=no
 
19545
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19546
      ;;
 
19547
  esac
 
19548
  ;;
 
19549
 
 
19550
sysv4*MP*)
 
19551
  if test -d /usr/nec ;then
 
19552
    version_type=linux
 
19553
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19554
    soname_spec='$libname${shared_ext}.$major'
 
19555
    shlibpath_var=LD_LIBRARY_PATH
 
19556
  fi
 
19557
  ;;
 
19558
 
 
19559
uts4*)
 
19560
  version_type=linux
 
19561
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19562
  soname_spec='${libname}${release}${shared_ext}$major'
 
19563
  shlibpath_var=LD_LIBRARY_PATH
 
19564
  ;;
 
19565
 
 
19566
*)
 
19567
  dynamic_linker=no
 
19568
  ;;
 
19569
esac
 
19570
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19571
echo "${ECHO_T}$dynamic_linker" >&6
 
19572
test "$dynamic_linker" = no && can_build_shared=no
 
19573
 
 
19574
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
19575
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
19576
hardcode_action_GCJ=
 
19577
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
19578
   test -n "$runpath_var GCJ" || \
 
19579
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
19580
 
 
19581
  # We can hardcode non-existant directories.
 
19582
  if test "$hardcode_direct_GCJ" != no &&
 
19583
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
19584
     # have to relink, otherwise we might link with an installed library
 
19585
     # when we should be linking with a yet-to-be-installed one
 
19586
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
19587
     test "$hardcode_minus_L_GCJ" != no; then
 
19588
    # Linking always hardcodes the temporary library directory.
 
19589
    hardcode_action_GCJ=relink
 
19590
  else
 
19591
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
19592
    hardcode_action_GCJ=immediate
 
19593
  fi
 
19594
else
 
19595
  # We cannot hardcode anything, or else we can only hardcode existing
 
19596
  # directories.
 
19597
  hardcode_action_GCJ=unsupported
 
19598
fi
 
19599
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
19600
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
19601
 
 
19602
if test "$hardcode_action_GCJ" = relink; then
 
19603
  # Fast installation is not supported
 
19604
  enable_fast_install=no
 
19605
elif test "$shlibpath_overrides_runpath" = yes ||
 
19606
     test "$enable_shared" = no; then
 
19607
  # Fast installation is not necessary
 
19608
  enable_fast_install=needless
 
19609
fi
 
19610
 
 
19611
striplib=
 
19612
old_striplib=
 
19613
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
19614
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
19615
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
19616
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
19617
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
19618
  echo "$as_me:$LINENO: result: yes" >&5
 
19619
echo "${ECHO_T}yes" >&6
 
19620
else
 
19621
# FIXME - insert some real tests, host_os isn't really good enough
 
19622
  case $host_os in
 
19623
   darwin*)
 
19624
       if test -n "$STRIP" ; then
 
19625
         striplib="$STRIP -x"
 
19626
         echo "$as_me:$LINENO: result: yes" >&5
 
19627
echo "${ECHO_T}yes" >&6
 
19628
       else
 
19629
  echo "$as_me:$LINENO: result: no" >&5
 
19630
echo "${ECHO_T}no" >&6
 
19631
fi
 
19632
       ;;
 
19633
   *)
 
19634
  echo "$as_me:$LINENO: result: no" >&5
 
19635
echo "${ECHO_T}no" >&6
 
19636
    ;;
 
19637
  esac
 
19638
fi
 
19639
 
 
19640
if test "x$enable_dlopen" != xyes; then
 
19641
  enable_dlopen=unknown
 
19642
  enable_dlopen_self=unknown
 
19643
  enable_dlopen_self_static=unknown
 
19644
else
 
19645
  lt_cv_dlopen=no
 
19646
  lt_cv_dlopen_libs=
 
19647
 
 
19648
  case $host_os in
 
19649
  beos*)
 
19650
    lt_cv_dlopen="load_add_on"
 
19651
    lt_cv_dlopen_libs=
 
19652
    lt_cv_dlopen_self=yes
 
19653
    ;;
 
19654
 
 
19655
  mingw* | pw32*)
 
19656
    lt_cv_dlopen="LoadLibrary"
 
19657
    lt_cv_dlopen_libs=
 
19658
   ;;
 
19659
 
 
19660
  cygwin*)
 
19661
    lt_cv_dlopen="dlopen"
 
19662
    lt_cv_dlopen_libs=
 
19663
   ;;
 
19664
 
 
19665
  darwin*)
 
19666
  # if libdl is installed we need to link against it
 
19667
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
19668
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
19669
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
19670
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19671
else
 
19672
  ac_check_lib_save_LIBS=$LIBS
 
19673
LIBS="-ldl  $LIBS"
 
19674
cat >conftest.$ac_ext <<_ACEOF
 
19675
/* confdefs.h.  */
 
19676
_ACEOF
 
19677
cat confdefs.h >>conftest.$ac_ext
 
19678
cat >>conftest.$ac_ext <<_ACEOF
 
19679
/* end confdefs.h.  */
 
19680
 
 
19681
/* Override any gcc2 internal prototype to avoid an error.  */
 
19682
#ifdef __cplusplus
 
19683
extern "C"
 
19684
#endif
 
19685
/* We use char because int might match the return type of a gcc2
 
19686
   builtin and then its argument prototype would still apply.  */
 
19687
char dlopen ();
 
19688
int
 
19689
main ()
 
19690
{
 
19691
dlopen ();
 
19692
  ;
 
19693
  return 0;
 
19694
}
 
19695
_ACEOF
 
19696
rm -f conftest.$ac_objext conftest$ac_exeext
 
19697
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19698
  (eval $ac_link) 2>conftest.er1
 
19699
  ac_status=$?
 
19700
  grep -v '^ *+' conftest.er1 >conftest.err
 
19701
  rm -f conftest.er1
 
19702
  cat conftest.err >&5
 
19703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19704
  (exit $ac_status); } &&
 
19705
         { ac_try='test -z "$ac_c_werror_flag"
 
19706
                         || test ! -s conftest.err'
 
19707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19708
  (eval $ac_try) 2>&5
 
19709
  ac_status=$?
 
19710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19711
  (exit $ac_status); }; } &&
 
19712
         { ac_try='test -s conftest$ac_exeext'
 
19713
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19714
  (eval $ac_try) 2>&5
 
19715
  ac_status=$?
 
19716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19717
  (exit $ac_status); }; }; then
 
19718
  ac_cv_lib_dl_dlopen=yes
 
19719
else
 
19720
  echo "$as_me: failed program was:" >&5
 
19721
sed 's/^/| /' conftest.$ac_ext >&5
 
19722
 
 
19723
ac_cv_lib_dl_dlopen=no
 
19724
fi
 
19725
rm -f conftest.err conftest.$ac_objext \
 
19726
      conftest$ac_exeext conftest.$ac_ext
 
19727
LIBS=$ac_check_lib_save_LIBS
 
19728
fi
 
19729
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19730
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19731
if test $ac_cv_lib_dl_dlopen = yes; then
 
19732
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19733
else
 
19734
 
 
19735
    lt_cv_dlopen="dyld"
 
19736
    lt_cv_dlopen_libs=
 
19737
    lt_cv_dlopen_self=yes
 
19738
 
 
19739
fi
 
19740
 
 
19741
   ;;
 
19742
 
 
19743
  *)
 
19744
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
19745
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
19746
if test "${ac_cv_func_shl_load+set}" = set; then
 
19747
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19748
else
 
19749
  cat >conftest.$ac_ext <<_ACEOF
 
19750
/* confdefs.h.  */
 
19751
_ACEOF
 
19752
cat confdefs.h >>conftest.$ac_ext
 
19753
cat >>conftest.$ac_ext <<_ACEOF
 
19754
/* end confdefs.h.  */
 
19755
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
19756
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19757
#define shl_load innocuous_shl_load
 
19758
 
 
19759
/* System header to define __stub macros and hopefully few prototypes,
 
19760
    which can conflict with char shl_load (); below.
 
19761
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19762
    <limits.h> exists even on freestanding compilers.  */
 
19763
 
 
19764
#ifdef __STDC__
 
19765
# include <limits.h>
 
19766
#else
 
19767
# include <assert.h>
 
19768
#endif
 
19769
 
 
19770
#undef shl_load
 
19771
 
 
19772
/* Override any gcc2 internal prototype to avoid an error.  */
 
19773
#ifdef __cplusplus
 
19774
extern "C"
 
19775
{
 
19776
#endif
 
19777
/* We use char because int might match the return type of a gcc2
 
19778
   builtin and then its argument prototype would still apply.  */
 
19779
char shl_load ();
 
19780
/* The GNU C library defines this for functions which it implements
 
19781
    to always fail with ENOSYS.  Some functions are actually named
 
19782
    something starting with __ and the normal name is an alias.  */
 
19783
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
19784
choke me
 
19785
#else
 
19786
char (*f) () = shl_load;
 
19787
#endif
 
19788
#ifdef __cplusplus
 
19789
}
 
19790
#endif
 
19791
 
 
19792
int
 
19793
main ()
 
19794
{
 
19795
return f != shl_load;
 
19796
  ;
 
19797
  return 0;
 
19798
}
 
19799
_ACEOF
 
19800
rm -f conftest.$ac_objext conftest$ac_exeext
 
19801
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19802
  (eval $ac_link) 2>conftest.er1
 
19803
  ac_status=$?
 
19804
  grep -v '^ *+' conftest.er1 >conftest.err
 
19805
  rm -f conftest.er1
 
19806
  cat conftest.err >&5
 
19807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19808
  (exit $ac_status); } &&
 
19809
         { ac_try='test -z "$ac_c_werror_flag"
 
19810
                         || test ! -s conftest.err'
 
19811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19812
  (eval $ac_try) 2>&5
 
19813
  ac_status=$?
 
19814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19815
  (exit $ac_status); }; } &&
 
19816
         { ac_try='test -s conftest$ac_exeext'
 
19817
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19818
  (eval $ac_try) 2>&5
 
19819
  ac_status=$?
 
19820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19821
  (exit $ac_status); }; }; then
 
19822
  ac_cv_func_shl_load=yes
 
19823
else
 
19824
  echo "$as_me: failed program was:" >&5
 
19825
sed 's/^/| /' conftest.$ac_ext >&5
 
19826
 
 
19827
ac_cv_func_shl_load=no
 
19828
fi
 
19829
rm -f conftest.err conftest.$ac_objext \
 
19830
      conftest$ac_exeext conftest.$ac_ext
 
19831
fi
 
19832
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
19833
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
19834
if test $ac_cv_func_shl_load = yes; then
 
19835
  lt_cv_dlopen="shl_load"
 
19836
else
 
19837
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
19838
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
19839
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
19840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19841
else
 
19842
  ac_check_lib_save_LIBS=$LIBS
 
19843
LIBS="-ldld  $LIBS"
 
19844
cat >conftest.$ac_ext <<_ACEOF
 
19845
/* confdefs.h.  */
 
19846
_ACEOF
 
19847
cat confdefs.h >>conftest.$ac_ext
 
19848
cat >>conftest.$ac_ext <<_ACEOF
 
19849
/* end confdefs.h.  */
 
19850
 
 
19851
/* Override any gcc2 internal prototype to avoid an error.  */
 
19852
#ifdef __cplusplus
 
19853
extern "C"
 
19854
#endif
 
19855
/* We use char because int might match the return type of a gcc2
 
19856
   builtin and then its argument prototype would still apply.  */
 
19857
char shl_load ();
 
19858
int
 
19859
main ()
 
19860
{
 
19861
shl_load ();
 
19862
  ;
 
19863
  return 0;
 
19864
}
 
19865
_ACEOF
 
19866
rm -f conftest.$ac_objext conftest$ac_exeext
 
19867
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19868
  (eval $ac_link) 2>conftest.er1
 
19869
  ac_status=$?
 
19870
  grep -v '^ *+' conftest.er1 >conftest.err
 
19871
  rm -f conftest.er1
 
19872
  cat conftest.err >&5
 
19873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19874
  (exit $ac_status); } &&
 
19875
         { ac_try='test -z "$ac_c_werror_flag"
 
19876
                         || test ! -s conftest.err'
 
19877
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19878
  (eval $ac_try) 2>&5
 
19879
  ac_status=$?
 
19880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19881
  (exit $ac_status); }; } &&
 
19882
         { ac_try='test -s conftest$ac_exeext'
 
19883
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19884
  (eval $ac_try) 2>&5
 
19885
  ac_status=$?
 
19886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19887
  (exit $ac_status); }; }; then
 
19888
  ac_cv_lib_dld_shl_load=yes
 
19889
else
 
19890
  echo "$as_me: failed program was:" >&5
 
19891
sed 's/^/| /' conftest.$ac_ext >&5
 
19892
 
 
19893
ac_cv_lib_dld_shl_load=no
 
19894
fi
 
19895
rm -f conftest.err conftest.$ac_objext \
 
19896
      conftest$ac_exeext conftest.$ac_ext
 
19897
LIBS=$ac_check_lib_save_LIBS
 
19898
fi
 
19899
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
19900
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
19901
if test $ac_cv_lib_dld_shl_load = yes; then
 
19902
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
19903
else
 
19904
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
19905
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
19906
if test "${ac_cv_func_dlopen+set}" = set; then
 
19907
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19908
else
 
19909
  cat >conftest.$ac_ext <<_ACEOF
 
19910
/* confdefs.h.  */
 
19911
_ACEOF
 
19912
cat confdefs.h >>conftest.$ac_ext
 
19913
cat >>conftest.$ac_ext <<_ACEOF
 
19914
/* end confdefs.h.  */
 
19915
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
19916
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19917
#define dlopen innocuous_dlopen
 
19918
 
 
19919
/* System header to define __stub macros and hopefully few prototypes,
 
19920
    which can conflict with char dlopen (); below.
 
19921
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19922
    <limits.h> exists even on freestanding compilers.  */
 
19923
 
 
19924
#ifdef __STDC__
 
19925
# include <limits.h>
 
19926
#else
 
19927
# include <assert.h>
 
19928
#endif
 
19929
 
 
19930
#undef dlopen
 
19931
 
 
19932
/* Override any gcc2 internal prototype to avoid an error.  */
 
19933
#ifdef __cplusplus
 
19934
extern "C"
 
19935
{
 
19936
#endif
 
19937
/* We use char because int might match the return type of a gcc2
 
19938
   builtin and then its argument prototype would still apply.  */
 
19939
char dlopen ();
 
19940
/* The GNU C library defines this for functions which it implements
 
19941
    to always fail with ENOSYS.  Some functions are actually named
 
19942
    something starting with __ and the normal name is an alias.  */
 
19943
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
19944
choke me
 
19945
#else
 
19946
char (*f) () = dlopen;
 
19947
#endif
 
19948
#ifdef __cplusplus
 
19949
}
 
19950
#endif
 
19951
 
 
19952
int
 
19953
main ()
 
19954
{
 
19955
return f != dlopen;
 
19956
  ;
 
19957
  return 0;
 
19958
}
 
19959
_ACEOF
 
19960
rm -f conftest.$ac_objext conftest$ac_exeext
 
19961
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19962
  (eval $ac_link) 2>conftest.er1
 
19963
  ac_status=$?
 
19964
  grep -v '^ *+' conftest.er1 >conftest.err
 
19965
  rm -f conftest.er1
 
19966
  cat conftest.err >&5
 
19967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19968
  (exit $ac_status); } &&
 
19969
         { ac_try='test -z "$ac_c_werror_flag"
 
19970
                         || test ! -s conftest.err'
 
19971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19972
  (eval $ac_try) 2>&5
 
19973
  ac_status=$?
 
19974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19975
  (exit $ac_status); }; } &&
 
19976
         { ac_try='test -s conftest$ac_exeext'
 
19977
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19978
  (eval $ac_try) 2>&5
 
19979
  ac_status=$?
 
19980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19981
  (exit $ac_status); }; }; then
 
19982
  ac_cv_func_dlopen=yes
 
19983
else
 
19984
  echo "$as_me: failed program was:" >&5
 
19985
sed 's/^/| /' conftest.$ac_ext >&5
 
19986
 
 
19987
ac_cv_func_dlopen=no
 
19988
fi
 
19989
rm -f conftest.err conftest.$ac_objext \
 
19990
      conftest$ac_exeext conftest.$ac_ext
 
19991
fi
 
19992
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
19993
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
19994
if test $ac_cv_func_dlopen = yes; then
 
19995
  lt_cv_dlopen="dlopen"
 
19996
else
 
19997
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
19998
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
19999
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
20000
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20001
else
 
20002
  ac_check_lib_save_LIBS=$LIBS
 
20003
LIBS="-ldl  $LIBS"
 
20004
cat >conftest.$ac_ext <<_ACEOF
 
20005
/* confdefs.h.  */
 
20006
_ACEOF
 
20007
cat confdefs.h >>conftest.$ac_ext
 
20008
cat >>conftest.$ac_ext <<_ACEOF
 
20009
/* end confdefs.h.  */
 
20010
 
 
20011
/* Override any gcc2 internal prototype to avoid an error.  */
 
20012
#ifdef __cplusplus
 
20013
extern "C"
 
20014
#endif
 
20015
/* We use char because int might match the return type of a gcc2
 
20016
   builtin and then its argument prototype would still apply.  */
 
20017
char dlopen ();
 
20018
int
 
20019
main ()
 
20020
{
 
20021
dlopen ();
 
20022
  ;
 
20023
  return 0;
 
20024
}
 
20025
_ACEOF
 
20026
rm -f conftest.$ac_objext conftest$ac_exeext
 
20027
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20028
  (eval $ac_link) 2>conftest.er1
 
20029
  ac_status=$?
 
20030
  grep -v '^ *+' conftest.er1 >conftest.err
 
20031
  rm -f conftest.er1
 
20032
  cat conftest.err >&5
 
20033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20034
  (exit $ac_status); } &&
 
20035
         { ac_try='test -z "$ac_c_werror_flag"
 
20036
                         || test ! -s conftest.err'
 
20037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20038
  (eval $ac_try) 2>&5
 
20039
  ac_status=$?
 
20040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20041
  (exit $ac_status); }; } &&
 
20042
         { ac_try='test -s conftest$ac_exeext'
 
20043
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20044
  (eval $ac_try) 2>&5
 
20045
  ac_status=$?
 
20046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20047
  (exit $ac_status); }; }; then
 
20048
  ac_cv_lib_dl_dlopen=yes
 
20049
else
 
20050
  echo "$as_me: failed program was:" >&5
 
20051
sed 's/^/| /' conftest.$ac_ext >&5
 
20052
 
 
20053
ac_cv_lib_dl_dlopen=no
 
20054
fi
 
20055
rm -f conftest.err conftest.$ac_objext \
 
20056
      conftest$ac_exeext conftest.$ac_ext
 
20057
LIBS=$ac_check_lib_save_LIBS
 
20058
fi
 
20059
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
20060
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
20061
if test $ac_cv_lib_dl_dlopen = yes; then
 
20062
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
20063
else
 
20064
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
20065
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
20066
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
20067
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20068
else
 
20069
  ac_check_lib_save_LIBS=$LIBS
 
20070
LIBS="-lsvld  $LIBS"
 
20071
cat >conftest.$ac_ext <<_ACEOF
 
20072
/* confdefs.h.  */
 
20073
_ACEOF
 
20074
cat confdefs.h >>conftest.$ac_ext
 
20075
cat >>conftest.$ac_ext <<_ACEOF
 
20076
/* end confdefs.h.  */
 
20077
 
 
20078
/* Override any gcc2 internal prototype to avoid an error.  */
 
20079
#ifdef __cplusplus
 
20080
extern "C"
 
20081
#endif
 
20082
/* We use char because int might match the return type of a gcc2
 
20083
   builtin and then its argument prototype would still apply.  */
 
20084
char dlopen ();
 
20085
int
 
20086
main ()
 
20087
{
 
20088
dlopen ();
 
20089
  ;
 
20090
  return 0;
 
20091
}
 
20092
_ACEOF
 
20093
rm -f conftest.$ac_objext conftest$ac_exeext
 
20094
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20095
  (eval $ac_link) 2>conftest.er1
 
20096
  ac_status=$?
 
20097
  grep -v '^ *+' conftest.er1 >conftest.err
 
20098
  rm -f conftest.er1
 
20099
  cat conftest.err >&5
 
20100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20101
  (exit $ac_status); } &&
 
20102
         { ac_try='test -z "$ac_c_werror_flag"
 
20103
                         || test ! -s conftest.err'
 
20104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20105
  (eval $ac_try) 2>&5
 
20106
  ac_status=$?
 
20107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20108
  (exit $ac_status); }; } &&
 
20109
         { ac_try='test -s conftest$ac_exeext'
 
20110
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20111
  (eval $ac_try) 2>&5
 
20112
  ac_status=$?
 
20113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20114
  (exit $ac_status); }; }; then
 
20115
  ac_cv_lib_svld_dlopen=yes
 
20116
else
 
20117
  echo "$as_me: failed program was:" >&5
 
20118
sed 's/^/| /' conftest.$ac_ext >&5
 
20119
 
 
20120
ac_cv_lib_svld_dlopen=no
 
20121
fi
 
20122
rm -f conftest.err conftest.$ac_objext \
 
20123
      conftest$ac_exeext conftest.$ac_ext
 
20124
LIBS=$ac_check_lib_save_LIBS
 
20125
fi
 
20126
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
20127
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
20128
if test $ac_cv_lib_svld_dlopen = yes; then
 
20129
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
20130
else
 
20131
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
20132
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
20133
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
20134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20135
else
 
20136
  ac_check_lib_save_LIBS=$LIBS
 
20137
LIBS="-ldld  $LIBS"
 
20138
cat >conftest.$ac_ext <<_ACEOF
 
20139
/* confdefs.h.  */
 
20140
_ACEOF
 
20141
cat confdefs.h >>conftest.$ac_ext
 
20142
cat >>conftest.$ac_ext <<_ACEOF
 
20143
/* end confdefs.h.  */
 
20144
 
 
20145
/* Override any gcc2 internal prototype to avoid an error.  */
 
20146
#ifdef __cplusplus
 
20147
extern "C"
 
20148
#endif
 
20149
/* We use char because int might match the return type of a gcc2
 
20150
   builtin and then its argument prototype would still apply.  */
 
20151
char dld_link ();
 
20152
int
 
20153
main ()
 
20154
{
 
20155
dld_link ();
 
20156
  ;
 
20157
  return 0;
 
20158
}
 
20159
_ACEOF
 
20160
rm -f conftest.$ac_objext conftest$ac_exeext
 
20161
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20162
  (eval $ac_link) 2>conftest.er1
 
20163
  ac_status=$?
 
20164
  grep -v '^ *+' conftest.er1 >conftest.err
 
20165
  rm -f conftest.er1
 
20166
  cat conftest.err >&5
 
20167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20168
  (exit $ac_status); } &&
 
20169
         { ac_try='test -z "$ac_c_werror_flag"
 
20170
                         || test ! -s conftest.err'
 
20171
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20172
  (eval $ac_try) 2>&5
 
20173
  ac_status=$?
 
20174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20175
  (exit $ac_status); }; } &&
 
20176
         { ac_try='test -s conftest$ac_exeext'
 
20177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20178
  (eval $ac_try) 2>&5
 
20179
  ac_status=$?
 
20180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20181
  (exit $ac_status); }; }; then
 
20182
  ac_cv_lib_dld_dld_link=yes
 
20183
else
 
20184
  echo "$as_me: failed program was:" >&5
 
20185
sed 's/^/| /' conftest.$ac_ext >&5
 
20186
 
 
20187
ac_cv_lib_dld_dld_link=no
 
20188
fi
 
20189
rm -f conftest.err conftest.$ac_objext \
 
20190
      conftest$ac_exeext conftest.$ac_ext
 
20191
LIBS=$ac_check_lib_save_LIBS
 
20192
fi
 
20193
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
20194
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
20195
if test $ac_cv_lib_dld_dld_link = yes; then
 
20196
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
20197
fi
 
20198
 
 
20199
 
 
20200
fi
 
20201
 
 
20202
 
 
20203
fi
 
20204
 
 
20205
 
 
20206
fi
 
20207
 
 
20208
 
 
20209
fi
 
20210
 
 
20211
 
 
20212
fi
 
20213
 
 
20214
    ;;
 
20215
  esac
 
20216
 
 
20217
  if test "x$lt_cv_dlopen" != xno; then
 
20218
    enable_dlopen=yes
 
20219
  else
 
20220
    enable_dlopen=no
 
20221
  fi
 
20222
 
 
20223
  case $lt_cv_dlopen in
 
20224
  dlopen)
 
20225
    save_CPPFLAGS="$CPPFLAGS"
 
20226
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
20227
 
 
20228
    save_LDFLAGS="$LDFLAGS"
 
20229
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
20230
 
 
20231
    save_LIBS="$LIBS"
 
20232
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
20233
 
 
20234
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
20235
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
20236
if test "${lt_cv_dlopen_self+set}" = set; then
 
20237
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20238
else
 
20239
          if test "$cross_compiling" = yes; then :
 
20240
  lt_cv_dlopen_self=cross
 
20241
else
 
20242
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
20243
  lt_status=$lt_dlunknown
 
20244
  cat > conftest.$ac_ext <<EOF
 
20245
#line 20245 "configure"
 
20246
#include "confdefs.h"
 
20247
 
 
20248
#if HAVE_DLFCN_H
 
20249
#include <dlfcn.h>
 
20250
#endif
 
20251
 
 
20252
#include <stdio.h>
 
20253
 
 
20254
#ifdef RTLD_GLOBAL
 
20255
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
20256
#else
 
20257
#  ifdef DL_GLOBAL
 
20258
#    define LT_DLGLOBAL         DL_GLOBAL
 
20259
#  else
 
20260
#    define LT_DLGLOBAL         0
 
20261
#  endif
 
20262
#endif
 
20263
 
 
20264
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
20265
   find out it does not work in some platform. */
 
20266
#ifndef LT_DLLAZY_OR_NOW
 
20267
#  ifdef RTLD_LAZY
 
20268
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
20269
#  else
 
20270
#    ifdef DL_LAZY
 
20271
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
20272
#    else
 
20273
#      ifdef RTLD_NOW
 
20274
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
20275
#      else
 
20276
#        ifdef DL_NOW
 
20277
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
20278
#        else
 
20279
#          define LT_DLLAZY_OR_NOW      0
 
20280
#        endif
 
20281
#      endif
 
20282
#    endif
 
20283
#  endif
 
20284
#endif
 
20285
 
 
20286
#ifdef __cplusplus
 
20287
extern "C" void exit (int);
 
20288
#endif
 
20289
 
 
20290
void fnord() { int i=42;}
 
20291
int main ()
 
20292
{
 
20293
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
20294
  int status = $lt_dlunknown;
 
20295
 
 
20296
  if (self)
 
20297
    {
 
20298
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
20299
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
20300
      /* dlclose (self); */
 
20301
    }
 
20302
 
 
20303
    exit (status);
 
20304
}
 
20305
EOF
 
20306
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20307
  (eval $ac_link) 2>&5
 
20308
  ac_status=$?
 
20309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20310
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
20311
    (./conftest; exit; ) 2>/dev/null
 
20312
    lt_status=$?
 
20313
    case x$lt_status in
 
20314
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
20315
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
20316
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
20317
    esac
 
20318
  else :
 
20319
    # compilation failed
 
20320
    lt_cv_dlopen_self=no
 
20321
  fi
 
20322
fi
 
20323
rm -fr conftest*
 
20324
 
 
20325
 
 
20326
fi
 
20327
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
20328
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
20329
 
 
20330
    if test "x$lt_cv_dlopen_self" = xyes; then
 
20331
      LDFLAGS="$LDFLAGS $link_static_flag"
 
20332
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
20333
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
20334
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
20335
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20336
else
 
20337
          if test "$cross_compiling" = yes; then :
 
20338
  lt_cv_dlopen_self_static=cross
 
20339
else
 
20340
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
20341
  lt_status=$lt_dlunknown
 
20342
  cat > conftest.$ac_ext <<EOF
 
20343
#line 20343 "configure"
 
20344
#include "confdefs.h"
 
20345
 
 
20346
#if HAVE_DLFCN_H
 
20347
#include <dlfcn.h>
 
20348
#endif
 
20349
 
 
20350
#include <stdio.h>
 
20351
 
 
20352
#ifdef RTLD_GLOBAL
 
20353
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
20354
#else
 
20355
#  ifdef DL_GLOBAL
 
20356
#    define LT_DLGLOBAL         DL_GLOBAL
 
20357
#  else
 
20358
#    define LT_DLGLOBAL         0
 
20359
#  endif
 
20360
#endif
 
20361
 
 
20362
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
20363
   find out it does not work in some platform. */
 
20364
#ifndef LT_DLLAZY_OR_NOW
 
20365
#  ifdef RTLD_LAZY
 
20366
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
20367
#  else
 
20368
#    ifdef DL_LAZY
 
20369
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
20370
#    else
 
20371
#      ifdef RTLD_NOW
 
20372
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
20373
#      else
 
20374
#        ifdef DL_NOW
 
20375
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
20376
#        else
 
20377
#          define LT_DLLAZY_OR_NOW      0
 
20378
#        endif
 
20379
#      endif
 
20380
#    endif
 
20381
#  endif
 
20382
#endif
 
20383
 
 
20384
#ifdef __cplusplus
 
20385
extern "C" void exit (int);
 
20386
#endif
 
20387
 
 
20388
void fnord() { int i=42;}
 
20389
int main ()
 
20390
{
 
20391
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
20392
  int status = $lt_dlunknown;
 
20393
 
 
20394
  if (self)
 
20395
    {
 
20396
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
20397
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
20398
      /* dlclose (self); */
 
20399
    }
 
20400
 
 
20401
    exit (status);
 
20402
}
 
20403
EOF
 
20404
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20405
  (eval $ac_link) 2>&5
 
20406
  ac_status=$?
 
20407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20408
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
20409
    (./conftest; exit; ) 2>/dev/null
 
20410
    lt_status=$?
 
20411
    case x$lt_status in
 
20412
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
20413
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
20414
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
20415
    esac
 
20416
  else :
 
20417
    # compilation failed
 
20418
    lt_cv_dlopen_self_static=no
 
20419
  fi
 
20420
fi
 
20421
rm -fr conftest*
 
20422
 
 
20423
 
 
20424
fi
 
20425
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
20426
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
20427
    fi
 
20428
 
 
20429
    CPPFLAGS="$save_CPPFLAGS"
 
20430
    LDFLAGS="$save_LDFLAGS"
 
20431
    LIBS="$save_LIBS"
 
20432
    ;;
 
20433
  esac
 
20434
 
 
20435
  case $lt_cv_dlopen_self in
 
20436
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
20437
  *) enable_dlopen_self=unknown ;;
 
20438
  esac
 
20439
 
 
20440
  case $lt_cv_dlopen_self_static in
 
20441
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
20442
  *) enable_dlopen_self_static=unknown ;;
 
20443
  esac
 
20444
fi
 
20445
 
 
20446
 
 
20447
# The else clause should only fire when bootstrapping the
 
20448
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
20449
# with your package, and you will get complaints that there are
 
20450
# no rules to generate ltmain.sh.
 
20451
if test -f "$ltmain"; then
 
20452
  # See if we are running on zsh, and set the options which allow our commands through
 
20453
  # without removal of \ escapes.
 
20454
  if test -n "${ZSH_VERSION+set}" ; then
 
20455
    setopt NO_GLOB_SUBST
 
20456
  fi
 
20457
  # Now quote all the things that may contain metacharacters while being
 
20458
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
20459
  # variables and quote the copies for generation of the libtool script.
 
20460
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
20461
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
20462
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
20463
    deplibs_check_method reload_flag reload_cmds need_locks \
 
20464
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
20465
    lt_cv_sys_global_symbol_to_c_name_address \
 
20466
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
20467
    old_postinstall_cmds old_postuninstall_cmds \
 
20468
    compiler_GCJ \
 
20469
    CC_GCJ \
 
20470
    LD_GCJ \
 
20471
    lt_prog_compiler_wl_GCJ \
 
20472
    lt_prog_compiler_pic_GCJ \
 
20473
    lt_prog_compiler_static_GCJ \
 
20474
    lt_prog_compiler_no_builtin_flag_GCJ \
 
20475
    export_dynamic_flag_spec_GCJ \
 
20476
    thread_safe_flag_spec_GCJ \
 
20477
    whole_archive_flag_spec_GCJ \
 
20478
    enable_shared_with_static_runtimes_GCJ \
 
20479
    old_archive_cmds_GCJ \
 
20480
    old_archive_from_new_cmds_GCJ \
 
20481
    predep_objects_GCJ \
 
20482
    postdep_objects_GCJ \
 
20483
    predeps_GCJ \
 
20484
    postdeps_GCJ \
 
20485
    compiler_lib_search_path_GCJ \
 
20486
    archive_cmds_GCJ \
 
20487
    archive_expsym_cmds_GCJ \
 
20488
    postinstall_cmds_GCJ \
 
20489
    postuninstall_cmds_GCJ \
 
20490
    old_archive_from_expsyms_cmds_GCJ \
 
20491
    allow_undefined_flag_GCJ \
 
20492
    no_undefined_flag_GCJ \
 
20493
    export_symbols_cmds_GCJ \
 
20494
    hardcode_libdir_flag_spec_GCJ \
 
20495
    hardcode_libdir_flag_spec_ld_GCJ \
 
20496
    hardcode_libdir_separator_GCJ \
 
20497
    hardcode_automatic_GCJ \
 
20498
    module_cmds_GCJ \
 
20499
    module_expsym_cmds_GCJ \
 
20500
    lt_cv_prog_compiler_c_o_GCJ \
 
20501
    exclude_expsyms_GCJ \
 
20502
    include_expsyms_GCJ; do
 
20503
 
 
20504
    case $var in
 
20505
    old_archive_cmds_GCJ | \
 
20506
    old_archive_from_new_cmds_GCJ | \
 
20507
    archive_cmds_GCJ | \
 
20508
    archive_expsym_cmds_GCJ | \
 
20509
    module_cmds_GCJ | \
 
20510
    module_expsym_cmds_GCJ | \
 
20511
    old_archive_from_expsyms_cmds_GCJ | \
 
20512
    export_symbols_cmds_GCJ | \
 
20513
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
20514
    postinstall_cmds | postuninstall_cmds | \
 
20515
    old_postinstall_cmds | old_postuninstall_cmds | \
 
20516
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
20517
      # Double-quote double-evaled strings.
 
20518
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
20519
      ;;
 
20520
    *)
 
20521
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
20522
      ;;
 
20523
    esac
 
20524
  done
 
20525
 
 
20526
  case $lt_echo in
 
20527
  *'\$0 --fallback-echo"')
 
20528
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
20529
    ;;
 
20530
  esac
 
20531
 
 
20532
cfgfile="$ofile"
 
20533
 
 
20534
  cat <<__EOF__ >> "$cfgfile"
 
20535
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
20536
 
 
20537
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
20538
 
 
20539
# Shell to use when invoking shell scripts.
 
20540
SHELL=$lt_SHELL
 
20541
 
 
20542
# Whether or not to build shared libraries.
 
20543
build_libtool_libs=$enable_shared
 
20544
 
 
20545
# Whether or not to build static libraries.
 
20546
build_old_libs=$enable_static
 
20547
 
 
20548
# Whether or not to add -lc for building shared libraries.
 
20549
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
20550
 
 
20551
# Whether or not to disallow shared libs when runtime libs are static
 
20552
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
20553
 
 
20554
# Whether or not to optimize for fast installation.
 
20555
fast_install=$enable_fast_install
 
20556
 
 
20557
# The host system.
 
20558
host_alias=$host_alias
 
20559
host=$host
 
20560
 
 
20561
# An echo program that does not interpret backslashes.
 
20562
echo=$lt_echo
 
20563
 
 
20564
# The archiver.
 
20565
AR=$lt_AR
 
20566
AR_FLAGS=$lt_AR_FLAGS
 
20567
 
 
20568
# A C compiler.
 
20569
LTCC=$lt_LTCC
 
20570
 
 
20571
# A language-specific compiler.
 
20572
CC=$lt_compiler_GCJ
 
20573
 
 
20574
# Is the compiler the GNU C compiler?
 
20575
with_gcc=$GCC_GCJ
 
20576
 
 
20577
# An ERE matcher.
 
20578
EGREP=$lt_EGREP
 
20579
 
 
20580
# The linker used to build libraries.
 
20581
LD=$lt_LD_GCJ
 
20582
 
 
20583
# Whether we need hard or soft links.
 
20584
LN_S=$lt_LN_S
 
20585
 
 
20586
# A BSD-compatible nm program.
 
20587
NM=$lt_NM
 
20588
 
 
20589
# A symbol stripping program
 
20590
STRIP=$STRIP
 
20591
 
 
20592
# Used to examine libraries when file_magic_cmd begins "file"
 
20593
MAGIC_CMD=$MAGIC_CMD
 
20594
 
 
20595
# Used on cygwin: DLL creation program.
 
20596
DLLTOOL="$DLLTOOL"
 
20597
 
 
20598
# Used on cygwin: object dumper.
 
20599
OBJDUMP="$OBJDUMP"
 
20600
 
 
20601
# Used on cygwin: assembler.
 
20602
AS="$AS"
 
20603
 
 
20604
# The name of the directory that contains temporary libtool files.
 
20605
objdir=$objdir
 
20606
 
 
20607
# How to create reloadable object files.
 
20608
reload_flag=$lt_reload_flag
 
20609
reload_cmds=$lt_reload_cmds
 
20610
 
 
20611
# How to pass a linker flag through the compiler.
 
20612
wl=$lt_lt_prog_compiler_wl_GCJ
 
20613
 
 
20614
# Object file suffix (normally "o").
 
20615
objext="$ac_objext"
 
20616
 
 
20617
# Old archive suffix (normally "a").
 
20618
libext="$libext"
 
20619
 
 
20620
# Shared library suffix (normally ".so").
 
20621
shrext='$shrext'
 
20622
 
 
20623
# Executable file suffix (normally "").
 
20624
exeext="$exeext"
 
20625
 
 
20626
# Additional compiler flags for building library objects.
 
20627
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
20628
pic_mode=$pic_mode
 
20629
 
 
20630
# What is the maximum length of a command?
 
20631
max_cmd_len=$lt_cv_sys_max_cmd_len
 
20632
 
 
20633
# Does compiler simultaneously support -c and -o options?
 
20634
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
20635
 
 
20636
# Must we lock files when doing compilation ?
 
20637
need_locks=$lt_need_locks
 
20638
 
 
20639
# Do we need the lib prefix for modules?
 
20640
need_lib_prefix=$need_lib_prefix
 
20641
 
 
20642
# Do we need a version for libraries?
 
20643
need_version=$need_version
 
20644
 
 
20645
# Whether dlopen is supported.
 
20646
dlopen_support=$enable_dlopen
 
20647
 
 
20648
# Whether dlopen of programs is supported.
 
20649
dlopen_self=$enable_dlopen_self
 
20650
 
 
20651
# Whether dlopen of statically linked programs is supported.
 
20652
dlopen_self_static=$enable_dlopen_self_static
 
20653
 
 
20654
# Compiler flag to prevent dynamic linking.
 
20655
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
20656
 
 
20657
# Compiler flag to turn off builtin functions.
 
20658
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
20659
 
 
20660
# Compiler flag to allow reflexive dlopens.
 
20661
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
20662
 
 
20663
# Compiler flag to generate shared objects directly from archives.
 
20664
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
20665
 
 
20666
# Compiler flag to generate thread-safe objects.
 
20667
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
20668
 
 
20669
# Library versioning type.
 
20670
version_type=$version_type
 
20671
 
 
20672
# Format of library name prefix.
 
20673
libname_spec=$lt_libname_spec
 
20674
 
 
20675
# List of archive names.  First name is the real one, the rest are links.
 
20676
# The last name is the one that the linker finds with -lNAME.
 
20677
library_names_spec=$lt_library_names_spec
 
20678
 
 
20679
# The coded name of the library, if different from the real name.
 
20680
soname_spec=$lt_soname_spec
 
20681
 
 
20682
# Commands used to build and install an old-style archive.
 
20683
RANLIB=$lt_RANLIB
 
20684
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
20685
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20686
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20687
 
 
20688
# Create an old-style archive from a shared archive.
 
20689
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
20690
 
 
20691
# Create a temporary old-style archive to link instead of a shared archive.
 
20692
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
20693
 
 
20694
# Commands used to build and install a shared archive.
 
20695
archive_cmds=$lt_archive_cmds_GCJ
 
20696
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
20697
postinstall_cmds=$lt_postinstall_cmds
 
20698
postuninstall_cmds=$lt_postuninstall_cmds
 
20699
 
 
20700
# Commands used to build a loadable module (assumed same as above if empty)
 
20701
module_cmds=$lt_module_cmds_GCJ
 
20702
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
20703
 
 
20704
# Commands to strip libraries.
 
20705
old_striplib=$lt_old_striplib
 
20706
striplib=$lt_striplib
 
20707
 
 
20708
# Dependencies to place before the objects being linked to create a
 
20709
# shared library.
 
20710
predep_objects=$lt_predep_objects_GCJ
 
20711
 
 
20712
# Dependencies to place after the objects being linked to create a
 
20713
# shared library.
 
20714
postdep_objects=$lt_postdep_objects_GCJ
 
20715
 
 
20716
# Dependencies to place before the objects being linked to create a
 
20717
# shared library.
 
20718
predeps=$lt_predeps_GCJ
 
20719
 
 
20720
# Dependencies to place after the objects being linked to create a
 
20721
# shared library.
 
20722
postdeps=$lt_postdeps_GCJ
 
20723
 
 
20724
# The library search path used internally by the compiler when linking
 
20725
# a shared library.
 
20726
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
20727
 
 
20728
# Method to check whether dependent libraries are shared objects.
 
20729
deplibs_check_method=$lt_deplibs_check_method
 
20730
 
 
20731
# Command to use when deplibs_check_method == file_magic.
 
20732
file_magic_cmd=$lt_file_magic_cmd
 
20733
 
 
20734
# Flag that allows shared libraries with undefined symbols to be built.
 
20735
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
20736
 
 
20737
# Flag that forces no undefined symbols.
 
20738
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
20739
 
 
20740
# Commands used to finish a libtool library installation in a directory.
 
20741
finish_cmds=$lt_finish_cmds
 
20742
 
 
20743
# Same as above, but a single script fragment to be evaled but not shown.
 
20744
finish_eval=$lt_finish_eval
 
20745
 
 
20746
# Take the output of nm and produce a listing of raw symbols and C names.
 
20747
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20748
 
 
20749
# Transform the output of nm in a proper C declaration
 
20750
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20751
 
 
20752
# Transform the output of nm in a C name address pair
 
20753
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20754
 
 
20755
# This is the shared library runtime path variable.
 
20756
runpath_var=$runpath_var
 
20757
 
 
20758
# This is the shared library path variable.
 
20759
shlibpath_var=$shlibpath_var
 
20760
 
 
20761
# Is shlibpath searched before the hard-coded library search path?
 
20762
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20763
 
 
20764
# How to hardcode a shared library path into an executable.
 
20765
hardcode_action=$hardcode_action_GCJ
 
20766
 
 
20767
# Whether we should hardcode library paths into libraries.
 
20768
hardcode_into_libs=$hardcode_into_libs
 
20769
 
 
20770
# Flag to hardcode \$libdir into a binary during linking.
 
20771
# This must work even if \$libdir does not exist.
 
20772
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
20773
 
 
20774
# If ld is used when linking, flag to hardcode \$libdir into
 
20775
# a binary during linking. This must work even if \$libdir does
 
20776
# not exist.
 
20777
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
20778
 
 
20779
# Whether we need a single -rpath flag with a separated argument.
 
20780
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
20781
 
 
20782
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20783
# resulting binary.
 
20784
hardcode_direct=$hardcode_direct_GCJ
 
20785
 
 
20786
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20787
# resulting binary.
 
20788
hardcode_minus_L=$hardcode_minus_L_GCJ
 
20789
 
 
20790
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20791
# the resulting binary.
 
20792
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
20793
 
 
20794
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20795
# and all subsequent libraries and executables linked against it.
 
20796
hardcode_automatic=$hardcode_automatic_GCJ
 
20797
 
 
20798
# Variables whose values should be saved in libtool wrapper scripts and
 
20799
# restored at relink time.
 
20800
variables_saved_for_relink="$variables_saved_for_relink"
 
20801
 
 
20802
# Whether libtool must link a program against all its dependency libraries.
 
20803
link_all_deplibs=$link_all_deplibs_GCJ
 
20804
 
 
20805
# Compile-time system search path for libraries
 
20806
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20807
 
 
20808
# Run-time system search path for libraries
 
20809
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20810
 
 
20811
# Fix the shell variable \$srcfile for the compiler.
 
20812
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
20813
 
 
20814
# Set to yes if exported symbols are required.
 
20815
always_export_symbols=$always_export_symbols_GCJ
 
20816
 
 
20817
# The commands to list exported symbols.
 
20818
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
20819
 
 
20820
# The commands to extract the exported symbol list from a shared archive.
 
20821
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20822
 
 
20823
# Symbols that should not be listed in the preloaded symbols.
 
20824
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
20825
 
 
20826
# Symbols that must always be exported.
 
20827
include_expsyms=$lt_include_expsyms_GCJ
 
20828
 
 
20829
# ### END LIBTOOL TAG CONFIG: $tagname
 
20830
 
 
20831
__EOF__
 
20832
 
 
20833
 
 
20834
else
 
20835
  # If there is no Makefile yet, we rely on a make rule to execute
 
20836
  # `config.status --recheck' to rerun these tests and create the
 
20837
  # libtool script then.
 
20838
  test -f Makefile && make "$ltmain"
 
20839
fi
 
20840
 
 
20841
 
 
20842
ac_ext=c
 
20843
ac_cpp='$CPP $CPPFLAGS'
 
20844
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20845
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20846
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20847
 
 
20848
CC="$lt_save_CC"
 
20849
 
 
20850
        else
 
20851
          tagname=""
 
20852
        fi
 
20853
        ;;
 
20854
 
 
20855
      RC)
 
20856
 
 
20857
 
 
20858
 
 
20859
# Source file extension for RC test sources.
 
20860
ac_ext=rc
 
20861
 
 
20862
# Object file extension for compiled RC test sources.
 
20863
objext=o
 
20864
objext_RC=$objext
 
20865
 
 
20866
# Code to be used in simple compile tests
 
20867
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
20868
 
 
20869
# Code to be used in simple link tests
 
20870
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
20871
 
 
20872
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
20873
 
 
20874
# If no C compiler was specified, use CC.
 
20875
LTCC=${LTCC-"$CC"}
 
20876
 
 
20877
# Allow CC to be a program name with arguments.
 
20878
compiler=$CC
 
20879
 
 
20880
 
 
20881
# Allow CC to be a program name with arguments.
 
20882
lt_save_CC="$CC"
 
20883
CC=${RC-"windres"}
 
20884
compiler=$CC
 
20885
compiler_RC=$CC
 
20886
lt_cv_prog_compiler_c_o_RC=yes
 
20887
 
 
20888
# The else clause should only fire when bootstrapping the
 
20889
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
20890
# with your package, and you will get complaints that there are
 
20891
# no rules to generate ltmain.sh.
 
20892
if test -f "$ltmain"; then
 
20893
  # See if we are running on zsh, and set the options which allow our commands through
 
20894
  # without removal of \ escapes.
 
20895
  if test -n "${ZSH_VERSION+set}" ; then
 
20896
    setopt NO_GLOB_SUBST
 
20897
  fi
 
20898
  # Now quote all the things that may contain metacharacters while being
 
20899
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
20900
  # variables and quote the copies for generation of the libtool script.
 
20901
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
20902
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
20903
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
20904
    deplibs_check_method reload_flag reload_cmds need_locks \
 
20905
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
20906
    lt_cv_sys_global_symbol_to_c_name_address \
 
20907
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
20908
    old_postinstall_cmds old_postuninstall_cmds \
 
20909
    compiler_RC \
 
20910
    CC_RC \
 
20911
    LD_RC \
 
20912
    lt_prog_compiler_wl_RC \
 
20913
    lt_prog_compiler_pic_RC \
 
20914
    lt_prog_compiler_static_RC \
 
20915
    lt_prog_compiler_no_builtin_flag_RC \
 
20916
    export_dynamic_flag_spec_RC \
 
20917
    thread_safe_flag_spec_RC \
 
20918
    whole_archive_flag_spec_RC \
 
20919
    enable_shared_with_static_runtimes_RC \
 
20920
    old_archive_cmds_RC \
 
20921
    old_archive_from_new_cmds_RC \
 
20922
    predep_objects_RC \
 
20923
    postdep_objects_RC \
 
20924
    predeps_RC \
 
20925
    postdeps_RC \
 
20926
    compiler_lib_search_path_RC \
 
20927
    archive_cmds_RC \
 
20928
    archive_expsym_cmds_RC \
 
20929
    postinstall_cmds_RC \
 
20930
    postuninstall_cmds_RC \
 
20931
    old_archive_from_expsyms_cmds_RC \
 
20932
    allow_undefined_flag_RC \
 
20933
    no_undefined_flag_RC \
 
20934
    export_symbols_cmds_RC \
 
20935
    hardcode_libdir_flag_spec_RC \
 
20936
    hardcode_libdir_flag_spec_ld_RC \
 
20937
    hardcode_libdir_separator_RC \
 
20938
    hardcode_automatic_RC \
 
20939
    module_cmds_RC \
 
20940
    module_expsym_cmds_RC \
 
20941
    lt_cv_prog_compiler_c_o_RC \
 
20942
    exclude_expsyms_RC \
 
20943
    include_expsyms_RC; do
 
20944
 
 
20945
    case $var in
 
20946
    old_archive_cmds_RC | \
 
20947
    old_archive_from_new_cmds_RC | \
 
20948
    archive_cmds_RC | \
 
20949
    archive_expsym_cmds_RC | \
 
20950
    module_cmds_RC | \
 
20951
    module_expsym_cmds_RC | \
 
20952
    old_archive_from_expsyms_cmds_RC | \
 
20953
    export_symbols_cmds_RC | \
 
20954
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
20955
    postinstall_cmds | postuninstall_cmds | \
 
20956
    old_postinstall_cmds | old_postuninstall_cmds | \
 
20957
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
20958
      # Double-quote double-evaled strings.
 
20959
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
20960
      ;;
 
20961
    *)
 
20962
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
20963
      ;;
 
20964
    esac
 
20965
  done
 
20966
 
 
20967
  case $lt_echo in
 
20968
  *'\$0 --fallback-echo"')
 
20969
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
20970
    ;;
 
20971
  esac
 
20972
 
 
20973
cfgfile="$ofile"
 
20974
 
 
20975
  cat <<__EOF__ >> "$cfgfile"
 
20976
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
20977
 
 
20978
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
20979
 
 
20980
# Shell to use when invoking shell scripts.
 
20981
SHELL=$lt_SHELL
 
20982
 
 
20983
# Whether or not to build shared libraries.
 
20984
build_libtool_libs=$enable_shared
 
20985
 
 
20986
# Whether or not to build static libraries.
 
20987
build_old_libs=$enable_static
 
20988
 
 
20989
# Whether or not to add -lc for building shared libraries.
 
20990
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
20991
 
 
20992
# Whether or not to disallow shared libs when runtime libs are static
 
20993
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
20994
 
 
20995
# Whether or not to optimize for fast installation.
 
20996
fast_install=$enable_fast_install
 
20997
 
 
20998
# The host system.
 
20999
host_alias=$host_alias
 
21000
host=$host
 
21001
 
 
21002
# An echo program that does not interpret backslashes.
 
21003
echo=$lt_echo
 
21004
 
 
21005
# The archiver.
 
21006
AR=$lt_AR
 
21007
AR_FLAGS=$lt_AR_FLAGS
 
21008
 
 
21009
# A C compiler.
 
21010
LTCC=$lt_LTCC
 
21011
 
 
21012
# A language-specific compiler.
 
21013
CC=$lt_compiler_RC
 
21014
 
 
21015
# Is the compiler the GNU C compiler?
 
21016
with_gcc=$GCC_RC
 
21017
 
 
21018
# An ERE matcher.
 
21019
EGREP=$lt_EGREP
 
21020
 
 
21021
# The linker used to build libraries.
 
21022
LD=$lt_LD_RC
 
21023
 
 
21024
# Whether we need hard or soft links.
 
21025
LN_S=$lt_LN_S
 
21026
 
 
21027
# A BSD-compatible nm program.
 
21028
NM=$lt_NM
 
21029
 
 
21030
# A symbol stripping program
 
21031
STRIP=$STRIP
 
21032
 
 
21033
# Used to examine libraries when file_magic_cmd begins "file"
 
21034
MAGIC_CMD=$MAGIC_CMD
 
21035
 
 
21036
# Used on cygwin: DLL creation program.
 
21037
DLLTOOL="$DLLTOOL"
 
21038
 
 
21039
# Used on cygwin: object dumper.
 
21040
OBJDUMP="$OBJDUMP"
 
21041
 
 
21042
# Used on cygwin: assembler.
 
21043
AS="$AS"
 
21044
 
 
21045
# The name of the directory that contains temporary libtool files.
 
21046
objdir=$objdir
 
21047
 
 
21048
# How to create reloadable object files.
 
21049
reload_flag=$lt_reload_flag
 
21050
reload_cmds=$lt_reload_cmds
 
21051
 
 
21052
# How to pass a linker flag through the compiler.
 
21053
wl=$lt_lt_prog_compiler_wl_RC
 
21054
 
 
21055
# Object file suffix (normally "o").
 
21056
objext="$ac_objext"
 
21057
 
 
21058
# Old archive suffix (normally "a").
 
21059
libext="$libext"
 
21060
 
 
21061
# Shared library suffix (normally ".so").
 
21062
shrext='$shrext'
 
21063
 
 
21064
# Executable file suffix (normally "").
 
21065
exeext="$exeext"
 
21066
 
 
21067
# Additional compiler flags for building library objects.
 
21068
pic_flag=$lt_lt_prog_compiler_pic_RC
 
21069
pic_mode=$pic_mode
 
21070
 
 
21071
# What is the maximum length of a command?
 
21072
max_cmd_len=$lt_cv_sys_max_cmd_len
 
21073
 
 
21074
# Does compiler simultaneously support -c and -o options?
 
21075
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
21076
 
 
21077
# Must we lock files when doing compilation ?
 
21078
need_locks=$lt_need_locks
 
21079
 
 
21080
# Do we need the lib prefix for modules?
 
21081
need_lib_prefix=$need_lib_prefix
 
21082
 
 
21083
# Do we need a version for libraries?
 
21084
need_version=$need_version
 
21085
 
 
21086
# Whether dlopen is supported.
 
21087
dlopen_support=$enable_dlopen
 
21088
 
 
21089
# Whether dlopen of programs is supported.
 
21090
dlopen_self=$enable_dlopen_self
 
21091
 
 
21092
# Whether dlopen of statically linked programs is supported.
 
21093
dlopen_self_static=$enable_dlopen_self_static
 
21094
 
 
21095
# Compiler flag to prevent dynamic linking.
 
21096
link_static_flag=$lt_lt_prog_compiler_static_RC
 
21097
 
 
21098
# Compiler flag to turn off builtin functions.
 
21099
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
21100
 
 
21101
# Compiler flag to allow reflexive dlopens.
 
21102
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
21103
 
 
21104
# Compiler flag to generate shared objects directly from archives.
 
21105
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
21106
 
 
21107
# Compiler flag to generate thread-safe objects.
 
21108
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
21109
 
 
21110
# Library versioning type.
 
21111
version_type=$version_type
 
21112
 
 
21113
# Format of library name prefix.
 
21114
libname_spec=$lt_libname_spec
 
21115
 
 
21116
# List of archive names.  First name is the real one, the rest are links.
 
21117
# The last name is the one that the linker finds with -lNAME.
 
21118
library_names_spec=$lt_library_names_spec
 
21119
 
 
21120
# The coded name of the library, if different from the real name.
 
21121
soname_spec=$lt_soname_spec
 
21122
 
 
21123
# Commands used to build and install an old-style archive.
 
21124
RANLIB=$lt_RANLIB
 
21125
old_archive_cmds=$lt_old_archive_cmds_RC
 
21126
old_postinstall_cmds=$lt_old_postinstall_cmds
 
21127
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
21128
 
 
21129
# Create an old-style archive from a shared archive.
 
21130
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
21131
 
 
21132
# Create a temporary old-style archive to link instead of a shared archive.
 
21133
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
21134
 
 
21135
# Commands used to build and install a shared archive.
 
21136
archive_cmds=$lt_archive_cmds_RC
 
21137
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
21138
postinstall_cmds=$lt_postinstall_cmds
 
21139
postuninstall_cmds=$lt_postuninstall_cmds
 
21140
 
 
21141
# Commands used to build a loadable module (assumed same as above if empty)
 
21142
module_cmds=$lt_module_cmds_RC
 
21143
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
21144
 
 
21145
# Commands to strip libraries.
 
21146
old_striplib=$lt_old_striplib
 
21147
striplib=$lt_striplib
 
21148
 
 
21149
# Dependencies to place before the objects being linked to create a
 
21150
# shared library.
 
21151
predep_objects=$lt_predep_objects_RC
 
21152
 
 
21153
# Dependencies to place after the objects being linked to create a
 
21154
# shared library.
 
21155
postdep_objects=$lt_postdep_objects_RC
 
21156
 
 
21157
# Dependencies to place before the objects being linked to create a
 
21158
# shared library.
 
21159
predeps=$lt_predeps_RC
 
21160
 
 
21161
# Dependencies to place after the objects being linked to create a
 
21162
# shared library.
 
21163
postdeps=$lt_postdeps_RC
 
21164
 
 
21165
# The library search path used internally by the compiler when linking
 
21166
# a shared library.
 
21167
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
21168
 
 
21169
# Method to check whether dependent libraries are shared objects.
 
21170
deplibs_check_method=$lt_deplibs_check_method
 
21171
 
 
21172
# Command to use when deplibs_check_method == file_magic.
 
21173
file_magic_cmd=$lt_file_magic_cmd
 
21174
 
 
21175
# Flag that allows shared libraries with undefined symbols to be built.
 
21176
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
21177
 
 
21178
# Flag that forces no undefined symbols.
 
21179
no_undefined_flag=$lt_no_undefined_flag_RC
 
21180
 
 
21181
# Commands used to finish a libtool library installation in a directory.
 
21182
finish_cmds=$lt_finish_cmds
 
21183
 
 
21184
# Same as above, but a single script fragment to be evaled but not shown.
 
21185
finish_eval=$lt_finish_eval
 
21186
 
 
21187
# Take the output of nm and produce a listing of raw symbols and C names.
 
21188
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
21189
 
 
21190
# Transform the output of nm in a proper C declaration
 
21191
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
21192
 
 
21193
# Transform the output of nm in a C name address pair
 
21194
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
21195
 
 
21196
# This is the shared library runtime path variable.
 
21197
runpath_var=$runpath_var
 
21198
 
 
21199
# This is the shared library path variable.
 
21200
shlibpath_var=$shlibpath_var
 
21201
 
 
21202
# Is shlibpath searched before the hard-coded library search path?
 
21203
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
21204
 
 
21205
# How to hardcode a shared library path into an executable.
 
21206
hardcode_action=$hardcode_action_RC
 
21207
 
 
21208
# Whether we should hardcode library paths into libraries.
 
21209
hardcode_into_libs=$hardcode_into_libs
 
21210
 
 
21211
# Flag to hardcode \$libdir into a binary during linking.
 
21212
# This must work even if \$libdir does not exist.
 
21213
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
21214
 
 
21215
# If ld is used when linking, flag to hardcode \$libdir into
 
21216
# a binary during linking. This must work even if \$libdir does
 
21217
# not exist.
 
21218
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
21219
 
 
21220
# Whether we need a single -rpath flag with a separated argument.
 
21221
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
21222
 
 
21223
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
21224
# resulting binary.
 
21225
hardcode_direct=$hardcode_direct_RC
 
21226
 
 
21227
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
21228
# resulting binary.
 
21229
hardcode_minus_L=$hardcode_minus_L_RC
 
21230
 
 
21231
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
21232
# the resulting binary.
 
21233
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
21234
 
 
21235
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
21236
# and all subsequent libraries and executables linked against it.
 
21237
hardcode_automatic=$hardcode_automatic_RC
 
21238
 
 
21239
# Variables whose values should be saved in libtool wrapper scripts and
 
21240
# restored at relink time.
 
21241
variables_saved_for_relink="$variables_saved_for_relink"
 
21242
 
 
21243
# Whether libtool must link a program against all its dependency libraries.
 
21244
link_all_deplibs=$link_all_deplibs_RC
 
21245
 
 
21246
# Compile-time system search path for libraries
 
21247
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
21248
 
 
21249
# Run-time system search path for libraries
 
21250
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
21251
 
 
21252
# Fix the shell variable \$srcfile for the compiler.
 
21253
fix_srcfile_path="$fix_srcfile_path_RC"
 
21254
 
 
21255
# Set to yes if exported symbols are required.
 
21256
always_export_symbols=$always_export_symbols_RC
 
21257
 
 
21258
# The commands to list exported symbols.
 
21259
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
21260
 
 
21261
# The commands to extract the exported symbol list from a shared archive.
 
21262
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
21263
 
 
21264
# Symbols that should not be listed in the preloaded symbols.
 
21265
exclude_expsyms=$lt_exclude_expsyms_RC
 
21266
 
 
21267
# Symbols that must always be exported.
 
21268
include_expsyms=$lt_include_expsyms_RC
 
21269
 
 
21270
# ### END LIBTOOL TAG CONFIG: $tagname
 
21271
 
 
21272
__EOF__
 
21273
 
 
21274
 
 
21275
else
 
21276
  # If there is no Makefile yet, we rely on a make rule to execute
 
21277
  # `config.status --recheck' to rerun these tests and create the
 
21278
  # libtool script then.
 
21279
  test -f Makefile && make "$ltmain"
 
21280
fi
 
21281
 
 
21282
 
 
21283
ac_ext=c
 
21284
ac_cpp='$CPP $CPPFLAGS'
 
21285
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21286
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21287
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21288
 
 
21289
CC="$lt_save_CC"
 
21290
 
 
21291
        ;;
 
21292
 
 
21293
      *)
 
21294
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
21295
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
21296
   { (exit 1); exit 1; }; }
 
21297
        ;;
 
21298
      esac
 
21299
 
 
21300
      # Append the new tag name to the list of available tags.
 
21301
      if test -n "$tagname" ; then
 
21302
      available_tags="$available_tags $tagname"
 
21303
    fi
 
21304
    fi
 
21305
  done
 
21306
  IFS="$lt_save_ifs"
 
21307
 
 
21308
  # Now substitute the updated list of available tags.
 
21309
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
21310
    mv "${ofile}T" "$ofile"
 
21311
    chmod +x "$ofile"
 
21312
  else
 
21313
    rm -f "${ofile}T"
 
21314
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
21315
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
21316
   { (exit 1); exit 1; }; }
 
21317
  fi
 
21318
fi
 
21319
 
 
21320
 
 
21321
 
 
21322
# This can be used to rebuild libtool when needed
 
21323
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
21324
 
 
21325
# Always use our own libtool.
 
21326
LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
 
21327
 
 
21328
# Prevent multiple expansion
 
21329
 
 
21330
 
 
21331
 
 
21332
 
 
21333
 
 
21334
 
 
21335
 
 
21336
 
 
21337
 
 
21338
 
 
21339
 
 
21340
 
 
21341
 
 
21342
 
 
21343
 
 
21344
 
 
21345
 
 
21346
 
 
21347
 
 
21348
 
 
21349
 
 
21350
 
 
21351
 
 
21352
 
 
21353
 
 
21354
 
 
21355
 
 
21356
 
 
21357
 
 
21358
 
 
21359
 
 
21360
 
 
21361
 
 
21362
 
 
21363
LIBTOOL_SHELL="/bin/sh ./libtool"
 
21364
#  LIBTOOL="$LIBTOOL --silent"
 
21365
KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
 
21366
 
 
21367
 
 
21368
# we patch configure quite some so we better keep that consistent for incremental runs
 
21369
AUTOCONF='$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure'
 
21370
 
 
21371
 
 
21372
 
 
21373
 
 
21374
 
 
21375
    # Extract the first word of "msgfmt", so it can be a program name with args.
 
21376
set dummy msgfmt; ac_word=$2
 
21377
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21378
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21379
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
21380
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21381
else
 
21382
  case "$MSGFMT" in
 
21383
  /*)
 
21384
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
21385
  ;;
 
21386
  *)
 
21387
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
21388
  for ac_dir in $PATH; do
 
21389
    test -z "$ac_dir" && ac_dir=.
 
21390
    if test -f $ac_dir/$ac_word; then
 
21391
      if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
 
21392
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
21393
        break
 
21394
      fi
 
21395
    fi
 
21396
  done
 
21397
  IFS="$ac_save_ifs"
 
21398
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
 
21399
  ;;
 
21400
esac
 
21401
fi
 
21402
MSGFMT="$ac_cv_path_MSGFMT"
 
21403
if test -n "$MSGFMT"; then
 
21404
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
21405
echo "${ECHO_T}$MSGFMT" >&6
 
21406
else
 
21407
  echo "$as_me:$LINENO: result: no" >&5
 
21408
echo "${ECHO_T}no" >&6
 
21409
fi
 
21410
 
 
21411
    # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
21412
set dummy gmsgfmt; ac_word=$2
 
21413
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21414
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21415
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
21416
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21417
else
 
21418
  case $GMSGFMT in
 
21419
  [\\/]* | ?:[\\/]*)
 
21420
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
21421
  ;;
 
21422
  *)
 
21423
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21424
for as_dir in $PATH
 
21425
do
 
21426
  IFS=$as_save_IFS
 
21427
  test -z "$as_dir" && as_dir=.
 
21428
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21429
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21430
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
21431
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21432
    break 2
 
21433
  fi
 
21434
done
 
21435
done
 
21436
 
 
21437
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
21438
  ;;
 
21439
esac
 
21440
fi
 
21441
GMSGFMT=$ac_cv_path_GMSGFMT
 
21442
 
 
21443
if test -n "$GMSGFMT"; then
 
21444
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
21445
echo "${ECHO_T}$GMSGFMT" >&6
 
21446
else
 
21447
  echo "$as_me:$LINENO: result: no" >&5
 
21448
echo "${ECHO_T}no" >&6
 
21449
fi
 
21450
 
 
21451
 
 
21452
     if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
 
21453
        echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
 
21454
echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
 
21455
        GMSGFMT=":"
 
21456
      fi
 
21457
      MSGFMT=$GMSGFMT
 
21458
 
 
21459
 
 
21460
 
 
21461
      # Extract the first word of "xgettext", so it can be a program name with args.
 
21462
set dummy xgettext; ac_word=$2
 
21463
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21464
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21465
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
21466
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21467
else
 
21468
  case "$XGETTEXT" in
 
21469
  /*)
 
21470
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
21471
  ;;
 
21472
  *)
 
21473
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
21474
  for ac_dir in $PATH; do
 
21475
    test -z "$ac_dir" && ac_dir=.
 
21476
    if test -f $ac_dir/$ac_word; then
 
21477
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
21478
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
21479
        break
 
21480
      fi
 
21481
    fi
 
21482
  done
 
21483
  IFS="$ac_save_ifs"
 
21484
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
21485
  ;;
 
21486
esac
 
21487
fi
 
21488
XGETTEXT="$ac_cv_path_XGETTEXT"
 
21489
if test -n "$XGETTEXT"; then
 
21490
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
21491
echo "${ECHO_T}$XGETTEXT" >&6
 
21492
else
 
21493
  echo "$as_me:$LINENO: result: no" >&5
 
21494
echo "${ECHO_T}no" >&6
 
21495
fi
 
21496
 
 
21497
 
 
21498
            if test "$XGETTEXT" != ":"; then
 
21499
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
21500
          : ;
 
21501
        else
 
21502
          echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
 
21503
echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
 
21504
          XGETTEXT=":"
 
21505
        fi
 
21506
      fi
 
21507
 
 
21508
 
 
21509
 
 
21510
 
 
21511
 
 
21512
if test -z "3.0.0"; then
 
21513
  # Current default Qt version: 3.3
 
21514
  kde_qtver=3
 
21515
  kde_qtsubver=3
 
21516
else
 
21517
  kde_qtsubver=`echo "3.0.0" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
 
21518
  # following is the check if subversion isnt found in passed argument
 
21519
  if test "$kde_qtsubver" = "3.0.0"; then
 
21520
    kde_qtsubver=1
 
21521
  fi
 
21522
  kde_qtver=`echo "3.0.0" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
 
21523
  if test "$kde_qtver" = "1"; then
 
21524
    kde_qtsubver=42
 
21525
  fi
 
21526
fi
 
21527
 
 
21528
if test -z ""; then
 
21529
  if test "$kde_qtver" = "2"; then
 
21530
    if test $kde_qtsubver -gt 0; then
 
21531
      kde_qt_minversion=">= Qt 2.2.2"
 
21532
    else
 
21533
      kde_qt_minversion=">= Qt 2.0.2"
 
21534
    fi
 
21535
  fi
 
21536
  if test "$kde_qtver" = "3"; then
 
21537
    if test $kde_qtsubver -gt 0; then
 
21538
         if test $kde_qtsubver -gt 1; then
 
21539
            if test $kde_qtsubver -gt 2; then
 
21540
                kde_qt_minversion=">= Qt 3.3"
 
21541
            else
 
21542
                kde_qt_minversion=">= Qt 3.2"
 
21543
            fi
 
21544
         else
 
21545
            kde_qt_minversion=">= Qt 3.1 (20021021)"
 
21546
         fi
 
21547
    else
 
21548
      kde_qt_minversion=">= Qt 3.0"
 
21549
    fi
 
21550
  fi
 
21551
  if test "$kde_qtver" = "1"; then
 
21552
    kde_qt_minversion=">= 1.42 and < 2.0"
 
21553
  fi
 
21554
else
 
21555
   kde_qt_minversion=""
 
21556
fi
 
21557
 
 
21558
if test -z ""; then
 
21559
   if test $kde_qtver = 3; then
 
21560
     if test $kde_qtsubver -gt 0; then
 
21561
       kde_qt_verstring="QT_VERSION >= 0x03@VER@00"
 
21562
       qtsubver=`echo "00$kde_qtsubver" | sed -e 's,.*\(..\)$,\1,'`
 
21563
       kde_qt_verstring=`echo $kde_qt_verstring | sed -e "s,@VER@,$qtsubver,"`
 
21564
     else
 
21565
       kde_qt_verstring="QT_VERSION >= 300"
 
21566
     fi
 
21567
   fi
 
21568
   if test $kde_qtver = 2; then
 
21569
     if test $kde_qtsubver -gt 0; then
 
21570
       kde_qt_verstring="QT_VERSION >= 222"
 
21571
     else
 
21572
       kde_qt_verstring="QT_VERSION >= 200"
 
21573
     fi
 
21574
   fi
 
21575
   if test $kde_qtver = 1; then
 
21576
    kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
 
21577
   fi
 
21578
else
 
21579
   kde_qt_verstring=""
 
21580
fi
 
21581
 
 
21582
if test $kde_qtver = 3; then
 
21583
  kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3"
 
21584
fi
 
21585
if test $kde_qtver = 2; then
 
21586
   kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
 
21587
fi
 
21588
if test $kde_qtver = 1; then
 
21589
   kde_qt_dirs="$QTDIR /usr/lib/qt"
 
21590
fi
 
21591
 
 
21592
 
 
21593
 
 
21594
 
 
21595
     ac_ext=cc
 
21596
ac_cpp='$CXXCPP $CPPFLAGS'
 
21597
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21598
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21599
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
21600
 
 
21601
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
21602
 
 
21603
 
 
21604
    ac_save_CXXFLAGS="$CXXFLAGS"
 
21605
    CXXFLAGS="`echo $CXXFLAGS | sed s/-fno-exceptions//`"
 
21606
 
 
21607
    echo "$as_me:$LINENO: checking if C++ programs can be compiled" >&5
 
21608
echo $ECHO_N "checking if C++ programs can be compiled... $ECHO_C" >&6
 
21609
    if test "${kde_cv_stl_works+set}" = set; then
 
21610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21611
else
 
21612
 
 
21613
      cat >conftest.$ac_ext <<_ACEOF
 
21614
/* confdefs.h.  */
 
21615
_ACEOF
 
21616
cat confdefs.h >>conftest.$ac_ext
 
21617
cat >>conftest.$ac_ext <<_ACEOF
 
21618
/* end confdefs.h.  */
 
21619
 
 
21620
#include <string>
 
21621
using namespace std;
 
21622
 
 
21623
int
 
21624
main ()
 
21625
{
 
21626
 
 
21627
  string astring="Hallo Welt.";
 
21628
  astring.erase(0, 6); // now astring is "Welt"
 
21629
  return 0;
 
21630
 
 
21631
  ;
 
21632
  return 0;
 
21633
}
 
21634
_ACEOF
 
21635
rm -f conftest.$ac_objext
 
21636
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21637
  (eval $ac_compile) 2>conftest.er1
 
21638
  ac_status=$?
 
21639
  grep -v '^ *+' conftest.er1 >conftest.err
 
21640
  rm -f conftest.er1
 
21641
  cat conftest.err >&5
 
21642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21643
  (exit $ac_status); } &&
 
21644
         { ac_try='test -z "$ac_cxx_werror_flag"
 
21645
                         || test ! -s conftest.err'
 
21646
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21647
  (eval $ac_try) 2>&5
 
21648
  ac_status=$?
 
21649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21650
  (exit $ac_status); }; } &&
 
21651
         { ac_try='test -s conftest.$ac_objext'
 
21652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21653
  (eval $ac_try) 2>&5
 
21654
  ac_status=$?
 
21655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21656
  (exit $ac_status); }; }; then
 
21657
  kde_cv_stl_works=yes
 
21658
else
 
21659
  echo "$as_me: failed program was:" >&5
 
21660
sed 's/^/| /' conftest.$ac_ext >&5
 
21661
 
 
21662
kde_cv_stl_works=no
 
21663
fi
 
21664
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21665
 
 
21666
fi
 
21667
 
 
21668
 
 
21669
   echo "$as_me:$LINENO: result: $kde_cv_stl_works" >&5
 
21670
echo "${ECHO_T}$kde_cv_stl_works" >&6
 
21671
 
 
21672
   if test "$kde_cv_stl_works" = "yes"; then
 
21673
     # back compatible
 
21674
 
 
21675
cat >>confdefs.h <<_ACEOF
 
21676
#define HAVE_SGI_STL 1
 
21677
_ACEOF
 
21678
 
 
21679
   else
 
21680
         { { echo "$as_me:$LINENO: error: Your Installation isn't able to compile simple C++ programs.
 
21681
Check config.log for details - if you're using a Linux distribution you might miss
 
21682
a package named similiar to libstd++-dev." >&5
 
21683
echo "$as_me: error: Your Installation isn't able to compile simple C++ programs.
 
21684
Check config.log for details - if you're using a Linux distribution you might miss
 
21685
a package named similiar to libstd++-dev." >&2;}
 
21686
   { (exit 1); exit 1; }; }
 
21687
   fi
 
21688
 
 
21689
   CXXFLAGS="$ac_save_CXXFLAGS"
 
21690
   ac_ext=c
 
21691
ac_cpp='$CPP $CPPFLAGS'
 
21692
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21693
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21694
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21695
 
 
21696
 
 
21697
 
 
21698
 
 
21699
echo "$as_me:$LINENO: checking for strlcat" >&5
 
21700
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
 
21701
if test "${kde_cv_func_strlcat+set}" = set; then
 
21702
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21703
else
 
21704
 
 
21705
 
 
21706
 
 
21707
 ac_ext=cc
 
21708
ac_cpp='$CXXCPP $CPPFLAGS'
 
21709
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21710
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21711
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
21712
 
 
21713
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
21714
 
 
21715
 
 
21716
save_CXXFLAGS="$CXXFLAGS"
 
21717
kde_safe_LIBS="$LIBS"
 
21718
LIBS="$LIBS $X_EXTRA_LIBS"
 
21719
if test "$GXX" = "yes"; then
 
21720
CXXFLAGS="$CXXFLAGS -pedantic-errors"
 
21721
fi
 
21722
cat >conftest.$ac_ext <<_ACEOF
 
21723
/* confdefs.h.  */
 
21724
_ACEOF
 
21725
cat confdefs.h >>conftest.$ac_ext
 
21726
cat >>conftest.$ac_ext <<_ACEOF
 
21727
/* end confdefs.h.  */
 
21728
 
 
21729
 
 
21730
#include <string.h>
 
21731
 
 
21732
 
 
21733
int
 
21734
main ()
 
21735
{
 
21736
 
 
21737
 char buf[20];
 
21738
  buf[0]='\0';
 
21739
  strlcat(buf, "KDE function test", sizeof(buf));
 
21740
 
 
21741
 
 
21742
  ;
 
21743
  return 0;
 
21744
}
 
21745
_ACEOF
 
21746
rm -f conftest.$ac_objext
 
21747
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21748
  (eval $ac_compile) 2>conftest.er1
 
21749
  ac_status=$?
 
21750
  grep -v '^ *+' conftest.er1 >conftest.err
 
21751
  rm -f conftest.er1
 
21752
  cat conftest.err >&5
 
21753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21754
  (exit $ac_status); } &&
 
21755
         { ac_try='test -z "$ac_cxx_werror_flag"
 
21756
                         || test ! -s conftest.err'
 
21757
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21758
  (eval $ac_try) 2>&5
 
21759
  ac_status=$?
 
21760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21761
  (exit $ac_status); }; } &&
 
21762
         { ac_try='test -s conftest.$ac_objext'
 
21763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21764
  (eval $ac_try) 2>&5
 
21765
  ac_status=$?
 
21766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21767
  (exit $ac_status); }; }; then
 
21768
  kde_cv_func_strlcat=yes
 
21769
else
 
21770
  echo "$as_me: failed program was:" >&5
 
21771
sed 's/^/| /' conftest.$ac_ext >&5
 
21772
 
 
21773
kde_cv_func_strlcat=no
 
21774
fi
 
21775
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21776
CXXFLAGS="$save_CXXFLAGS"
 
21777
LIBS="$kde_safe_LIBS"
 
21778
ac_ext=c
 
21779
ac_cpp='$CPP $CPPFLAGS'
 
21780
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21781
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21782
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21783
 
 
21784
 
 
21785
fi
 
21786
 
 
21787
 
 
21788
echo "$as_me:$LINENO: result: $kde_cv_func_strlcat" >&5
 
21789
echo "${ECHO_T}$kde_cv_func_strlcat" >&6
 
21790
 
 
21791
echo "$as_me:$LINENO: checking if strlcat needs custom prototype" >&5
 
21792
echo $ECHO_N "checking if strlcat needs custom prototype... $ECHO_C" >&6
 
21793
if test "${kde_cv_proto_strlcat+set}" = set; then
 
21794
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21795
else
 
21796
 
 
21797
if test "x$kde_cv_func_strlcat" = xyes; then
 
21798
  kde_cv_proto_strlcat=no
 
21799
else
 
21800
  case "strlcat" in
 
21801
        setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
 
21802
                kde_cv_proto_strlcat="yes - in libkdefakes"
 
21803
                ;;
 
21804
        *)
 
21805
                kde_cv_proto_strlcat=unknown
 
21806
                ;;
 
21807
  esac
 
21808
fi
 
21809
 
 
21810
if test "x$kde_cv_proto_strlcat" = xunknown; then
 
21811
 
 
21812
 
 
21813
 
 
21814
 ac_ext=cc
 
21815
ac_cpp='$CXXCPP $CPPFLAGS'
 
21816
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21817
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21818
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
21819
 
 
21820
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
21821
 
 
21822
 
 
21823
  kde_safe_libs=$LIBS
 
21824
  LIBS="$LIBS $X_EXTRA_LIBS"
 
21825
  cat >conftest.$ac_ext <<_ACEOF
 
21826
/* confdefs.h.  */
 
21827
_ACEOF
 
21828
cat confdefs.h >>conftest.$ac_ext
 
21829
cat >>conftest.$ac_ext <<_ACEOF
 
21830
/* end confdefs.h.  */
 
21831
 
 
21832
 
 
21833
#include <string.h>
 
21834
 
 
21835
 
 
21836
extern "C" unsigned long strlcat(char*, const char*, unsigned long);
 
21837
 
 
21838
int
 
21839
main ()
 
21840
{
 
21841
 
 
21842
 char buf[20];
 
21843
  buf[0]='\0';
 
21844
  strlcat(buf, "KDE function test", sizeof(buf));
 
21845
 
 
21846
 
 
21847
  ;
 
21848
  return 0;
 
21849
}
 
21850
_ACEOF
 
21851
rm -f conftest.$ac_objext conftest$ac_exeext
 
21852
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21853
  (eval $ac_link) 2>conftest.er1
 
21854
  ac_status=$?
 
21855
  grep -v '^ *+' conftest.er1 >conftest.err
 
21856
  rm -f conftest.er1
 
21857
  cat conftest.err >&5
 
21858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21859
  (exit $ac_status); } &&
 
21860
         { ac_try='test -z "$ac_cxx_werror_flag"
 
21861
                         || test ! -s conftest.err'
 
21862
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21863
  (eval $ac_try) 2>&5
 
21864
  ac_status=$?
 
21865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21866
  (exit $ac_status); }; } &&
 
21867
         { ac_try='test -s conftest$ac_exeext'
 
21868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21869
  (eval $ac_try) 2>&5
 
21870
  ac_status=$?
 
21871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21872
  (exit $ac_status); }; }; then
 
21873
   kde_cv_func_strlcat=yes
 
21874
  kde_cv_proto_strlcat=yes
 
21875
else
 
21876
  echo "$as_me: failed program was:" >&5
 
21877
sed 's/^/| /' conftest.$ac_ext >&5
 
21878
 
 
21879
kde_cv_proto_strlcat="strlcat unavailable"
 
21880
 
 
21881
fi
 
21882
rm -f conftest.err conftest.$ac_objext \
 
21883
      conftest$ac_exeext conftest.$ac_ext
 
21884
LIBS=$kde_safe_libs
 
21885
ac_ext=c
 
21886
ac_cpp='$CPP $CPPFLAGS'
 
21887
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21888
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21889
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21890
 
 
21891
fi
 
21892
 
 
21893
fi
 
21894
 
 
21895
echo "$as_me:$LINENO: result: $kde_cv_proto_strlcat" >&5
 
21896
echo "${ECHO_T}$kde_cv_proto_strlcat" >&6
 
21897
 
 
21898
if test "x$kde_cv_func_strlcat" = xyes; then
 
21899
 
 
21900
cat >>confdefs.h <<\_ACEOF
 
21901
#define HAVE_STRLCAT 1
 
21902
_ACEOF
 
21903
 
 
21904
 
 
21905
fi
 
21906
if test "x$kde_cv_proto_strlcat" = xno; then
 
21907
 
 
21908
cat >>confdefs.h <<\_ACEOF
 
21909
#define HAVE_STRLCAT_PROTO 1
 
21910
_ACEOF
 
21911
 
 
21912
fi
 
21913
 
 
21914
 
 
21915
 
 
21916
 
 
21917
 
 
21918
 
 
21919
 
 
21920
echo "$as_me:$LINENO: checking for strlcpy" >&5
 
21921
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
 
21922
if test "${kde_cv_func_strlcpy+set}" = set; then
 
21923
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21924
else
 
21925
 
 
21926
 
 
21927
 
 
21928
 ac_ext=cc
 
21929
ac_cpp='$CXXCPP $CPPFLAGS'
 
21930
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21931
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21932
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
21933
 
 
21934
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
21935
 
 
21936
 
 
21937
save_CXXFLAGS="$CXXFLAGS"
 
21938
kde_safe_LIBS="$LIBS"
 
21939
LIBS="$LIBS $X_EXTRA_LIBS"
 
21940
if test "$GXX" = "yes"; then
 
21941
CXXFLAGS="$CXXFLAGS -pedantic-errors"
 
21942
fi
 
21943
cat >conftest.$ac_ext <<_ACEOF
 
21944
/* confdefs.h.  */
 
21945
_ACEOF
 
21946
cat confdefs.h >>conftest.$ac_ext
 
21947
cat >>conftest.$ac_ext <<_ACEOF
 
21948
/* end confdefs.h.  */
 
21949
 
 
21950
 
 
21951
#include <string.h>
 
21952
 
 
21953
 
 
21954
int
 
21955
main ()
 
21956
{
 
21957
 
 
21958
 char buf[20];
 
21959
  strlcpy(buf, "KDE function test", sizeof(buf));
 
21960
 
 
21961
 
 
21962
  ;
 
21963
  return 0;
 
21964
}
 
21965
_ACEOF
 
21966
rm -f conftest.$ac_objext
 
21967
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21968
  (eval $ac_compile) 2>conftest.er1
 
21969
  ac_status=$?
 
21970
  grep -v '^ *+' conftest.er1 >conftest.err
 
21971
  rm -f conftest.er1
 
21972
  cat conftest.err >&5
 
21973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21974
  (exit $ac_status); } &&
 
21975
         { ac_try='test -z "$ac_cxx_werror_flag"
 
21976
                         || test ! -s conftest.err'
 
21977
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21978
  (eval $ac_try) 2>&5
 
21979
  ac_status=$?
 
21980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21981
  (exit $ac_status); }; } &&
 
21982
         { ac_try='test -s conftest.$ac_objext'
 
21983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21984
  (eval $ac_try) 2>&5
 
21985
  ac_status=$?
 
21986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21987
  (exit $ac_status); }; }; then
 
21988
  kde_cv_func_strlcpy=yes
 
21989
else
 
21990
  echo "$as_me: failed program was:" >&5
 
21991
sed 's/^/| /' conftest.$ac_ext >&5
 
21992
 
 
21993
kde_cv_func_strlcpy=no
 
21994
fi
 
21995
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21996
CXXFLAGS="$save_CXXFLAGS"
 
21997
LIBS="$kde_safe_LIBS"
 
21998
ac_ext=c
 
21999
ac_cpp='$CPP $CPPFLAGS'
 
22000
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22001
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22002
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22003
 
 
22004
 
 
22005
fi
 
22006
 
 
22007
 
 
22008
echo "$as_me:$LINENO: result: $kde_cv_func_strlcpy" >&5
 
22009
echo "${ECHO_T}$kde_cv_func_strlcpy" >&6
 
22010
 
 
22011
echo "$as_me:$LINENO: checking if strlcpy needs custom prototype" >&5
 
22012
echo $ECHO_N "checking if strlcpy needs custom prototype... $ECHO_C" >&6
 
22013
if test "${kde_cv_proto_strlcpy+set}" = set; then
 
22014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22015
else
 
22016
 
 
22017
if test "x$kde_cv_func_strlcpy" = xyes; then
 
22018
  kde_cv_proto_strlcpy=no
 
22019
else
 
22020
  case "strlcpy" in
 
22021
        setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
 
22022
                kde_cv_proto_strlcpy="yes - in libkdefakes"
 
22023
                ;;
 
22024
        *)
 
22025
                kde_cv_proto_strlcpy=unknown
 
22026
                ;;
 
22027
  esac
 
22028
fi
 
22029
 
 
22030
if test "x$kde_cv_proto_strlcpy" = xunknown; then
 
22031
 
 
22032
 
 
22033
 
 
22034
 ac_ext=cc
 
22035
ac_cpp='$CXXCPP $CPPFLAGS'
 
22036
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22037
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22038
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22039
 
 
22040
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
22041
 
 
22042
 
 
22043
  kde_safe_libs=$LIBS
 
22044
  LIBS="$LIBS $X_EXTRA_LIBS"
 
22045
  cat >conftest.$ac_ext <<_ACEOF
 
22046
/* confdefs.h.  */
 
22047
_ACEOF
 
22048
cat confdefs.h >>conftest.$ac_ext
 
22049
cat >>conftest.$ac_ext <<_ACEOF
 
22050
/* end confdefs.h.  */
 
22051
 
 
22052
 
 
22053
#include <string.h>
 
22054
 
 
22055
 
 
22056
extern "C" unsigned long strlcpy(char*, const char*, unsigned long);
 
22057
 
 
22058
int
 
22059
main ()
 
22060
{
 
22061
 
 
22062
 char buf[20];
 
22063
  strlcpy(buf, "KDE function test", sizeof(buf));
 
22064
 
 
22065
 
 
22066
  ;
 
22067
  return 0;
 
22068
}
 
22069
_ACEOF
 
22070
rm -f conftest.$ac_objext conftest$ac_exeext
 
22071
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22072
  (eval $ac_link) 2>conftest.er1
 
22073
  ac_status=$?
 
22074
  grep -v '^ *+' conftest.er1 >conftest.err
 
22075
  rm -f conftest.er1
 
22076
  cat conftest.err >&5
 
22077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22078
  (exit $ac_status); } &&
 
22079
         { ac_try='test -z "$ac_cxx_werror_flag"
 
22080
                         || test ! -s conftest.err'
 
22081
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22082
  (eval $ac_try) 2>&5
 
22083
  ac_status=$?
 
22084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22085
  (exit $ac_status); }; } &&
 
22086
         { ac_try='test -s conftest$ac_exeext'
 
22087
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22088
  (eval $ac_try) 2>&5
 
22089
  ac_status=$?
 
22090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22091
  (exit $ac_status); }; }; then
 
22092
   kde_cv_func_strlcpy=yes
 
22093
  kde_cv_proto_strlcpy=yes
 
22094
else
 
22095
  echo "$as_me: failed program was:" >&5
 
22096
sed 's/^/| /' conftest.$ac_ext >&5
 
22097
 
 
22098
kde_cv_proto_strlcpy="strlcpy unavailable"
 
22099
 
 
22100
fi
 
22101
rm -f conftest.err conftest.$ac_objext \
 
22102
      conftest$ac_exeext conftest.$ac_ext
 
22103
LIBS=$kde_safe_libs
 
22104
ac_ext=c
 
22105
ac_cpp='$CPP $CPPFLAGS'
 
22106
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22107
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22108
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22109
 
 
22110
fi
 
22111
 
 
22112
fi
 
22113
 
 
22114
echo "$as_me:$LINENO: result: $kde_cv_proto_strlcpy" >&5
 
22115
echo "${ECHO_T}$kde_cv_proto_strlcpy" >&6
 
22116
 
 
22117
if test "x$kde_cv_func_strlcpy" = xyes; then
 
22118
 
 
22119
cat >>confdefs.h <<\_ACEOF
 
22120
#define HAVE_STRLCPY 1
 
22121
_ACEOF
 
22122
 
 
22123
 
 
22124
fi
 
22125
if test "x$kde_cv_proto_strlcpy" = xno; then
 
22126
 
 
22127
cat >>confdefs.h <<\_ACEOF
 
22128
#define HAVE_STRLCPY_PROTO 1
 
22129
_ACEOF
 
22130
 
 
22131
fi
 
22132
 
 
22133
 
 
22134
 
 
22135
 
 
22136
 
 
22137
 
 
22138
      echo "$as_me:$LINENO: checking for main in -lutil" >&5
 
22139
echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6
 
22140
if test "${ac_cv_lib_util_main+set}" = set; then
 
22141
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22142
else
 
22143
  ac_check_lib_save_LIBS=$LIBS
 
22144
LIBS="-lutil  $LIBS"
 
22145
cat >conftest.$ac_ext <<_ACEOF
 
22146
/* confdefs.h.  */
 
22147
_ACEOF
 
22148
cat confdefs.h >>conftest.$ac_ext
 
22149
cat >>conftest.$ac_ext <<_ACEOF
 
22150
/* end confdefs.h.  */
 
22151
 
 
22152
 
 
22153
int
 
22154
main ()
 
22155
{
 
22156
main ();
 
22157
  ;
 
22158
  return 0;
 
22159
}
 
22160
_ACEOF
 
22161
rm -f conftest.$ac_objext conftest$ac_exeext
 
22162
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22163
  (eval $ac_link) 2>conftest.er1
 
22164
  ac_status=$?
 
22165
  grep -v '^ *+' conftest.er1 >conftest.err
 
22166
  rm -f conftest.er1
 
22167
  cat conftest.err >&5
 
22168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22169
  (exit $ac_status); } &&
 
22170
         { ac_try='test -z "$ac_c_werror_flag"
 
22171
                         || test ! -s conftest.err'
 
22172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22173
  (eval $ac_try) 2>&5
 
22174
  ac_status=$?
 
22175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22176
  (exit $ac_status); }; } &&
 
22177
         { ac_try='test -s conftest$ac_exeext'
 
22178
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22179
  (eval $ac_try) 2>&5
 
22180
  ac_status=$?
 
22181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22182
  (exit $ac_status); }; }; then
 
22183
  ac_cv_lib_util_main=yes
 
22184
else
 
22185
  echo "$as_me: failed program was:" >&5
 
22186
sed 's/^/| /' conftest.$ac_ext >&5
 
22187
 
 
22188
ac_cv_lib_util_main=no
 
22189
fi
 
22190
rm -f conftest.err conftest.$ac_objext \
 
22191
      conftest$ac_exeext conftest.$ac_ext
 
22192
LIBS=$ac_check_lib_save_LIBS
 
22193
fi
 
22194
echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
 
22195
echo "${ECHO_T}$ac_cv_lib_util_main" >&6
 
22196
if test $ac_cv_lib_util_main = yes; then
 
22197
  LIBUTIL="-lutil"
 
22198
fi
 
22199
 
 
22200
   echo "$as_me:$LINENO: checking for main in -lcompat" >&5
 
22201
echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
 
22202
if test "${ac_cv_lib_compat_main+set}" = set; then
 
22203
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22204
else
 
22205
  ac_check_lib_save_LIBS=$LIBS
 
22206
LIBS="-lcompat  $LIBS"
 
22207
cat >conftest.$ac_ext <<_ACEOF
 
22208
/* confdefs.h.  */
 
22209
_ACEOF
 
22210
cat confdefs.h >>conftest.$ac_ext
 
22211
cat >>conftest.$ac_ext <<_ACEOF
 
22212
/* end confdefs.h.  */
 
22213
 
 
22214
 
 
22215
int
 
22216
main ()
 
22217
{
 
22218
main ();
 
22219
  ;
 
22220
  return 0;
 
22221
}
 
22222
_ACEOF
 
22223
rm -f conftest.$ac_objext conftest$ac_exeext
 
22224
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22225
  (eval $ac_link) 2>conftest.er1
 
22226
  ac_status=$?
 
22227
  grep -v '^ *+' conftest.er1 >conftest.err
 
22228
  rm -f conftest.er1
 
22229
  cat conftest.err >&5
 
22230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22231
  (exit $ac_status); } &&
 
22232
         { ac_try='test -z "$ac_c_werror_flag"
 
22233
                         || test ! -s conftest.err'
 
22234
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22235
  (eval $ac_try) 2>&5
 
22236
  ac_status=$?
 
22237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22238
  (exit $ac_status); }; } &&
 
22239
         { ac_try='test -s conftest$ac_exeext'
 
22240
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22241
  (eval $ac_try) 2>&5
 
22242
  ac_status=$?
 
22243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22244
  (exit $ac_status); }; }; then
 
22245
  ac_cv_lib_compat_main=yes
 
22246
else
 
22247
  echo "$as_me: failed program was:" >&5
 
22248
sed 's/^/| /' conftest.$ac_ext >&5
 
22249
 
 
22250
ac_cv_lib_compat_main=no
 
22251
fi
 
22252
rm -f conftest.err conftest.$ac_objext \
 
22253
      conftest$ac_exeext conftest.$ac_ext
 
22254
LIBS=$ac_check_lib_save_LIBS
 
22255
fi
 
22256
echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
 
22257
echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
 
22258
if test $ac_cv_lib_compat_main = yes; then
 
22259
  LIBCOMPAT="-lcompat"
 
22260
fi
 
22261
 
 
22262
   kde_have_crypt=
 
22263
   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
 
22264
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
 
22265
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
 
22266
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22267
else
 
22268
  ac_check_lib_save_LIBS=$LIBS
 
22269
LIBS="-lcrypt  $LIBS"
 
22270
cat >conftest.$ac_ext <<_ACEOF
 
22271
/* confdefs.h.  */
 
22272
_ACEOF
 
22273
cat confdefs.h >>conftest.$ac_ext
 
22274
cat >>conftest.$ac_ext <<_ACEOF
 
22275
/* end confdefs.h.  */
 
22276
 
 
22277
/* Override any gcc2 internal prototype to avoid an error.  */
 
22278
#ifdef __cplusplus
 
22279
extern "C"
 
22280
#endif
 
22281
/* We use char because int might match the return type of a gcc2
 
22282
   builtin and then its argument prototype would still apply.  */
 
22283
char crypt ();
 
22284
int
 
22285
main ()
 
22286
{
 
22287
crypt ();
 
22288
  ;
 
22289
  return 0;
 
22290
}
 
22291
_ACEOF
 
22292
rm -f conftest.$ac_objext conftest$ac_exeext
 
22293
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22294
  (eval $ac_link) 2>conftest.er1
 
22295
  ac_status=$?
 
22296
  grep -v '^ *+' conftest.er1 >conftest.err
 
22297
  rm -f conftest.er1
 
22298
  cat conftest.err >&5
 
22299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22300
  (exit $ac_status); } &&
 
22301
         { ac_try='test -z "$ac_c_werror_flag"
 
22302
                         || test ! -s conftest.err'
 
22303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22304
  (eval $ac_try) 2>&5
 
22305
  ac_status=$?
 
22306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22307
  (exit $ac_status); }; } &&
 
22308
         { ac_try='test -s conftest$ac_exeext'
 
22309
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22310
  (eval $ac_try) 2>&5
 
22311
  ac_status=$?
 
22312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22313
  (exit $ac_status); }; }; then
 
22314
  ac_cv_lib_crypt_crypt=yes
 
22315
else
 
22316
  echo "$as_me: failed program was:" >&5
 
22317
sed 's/^/| /' conftest.$ac_ext >&5
 
22318
 
 
22319
ac_cv_lib_crypt_crypt=no
 
22320
fi
 
22321
rm -f conftest.err conftest.$ac_objext \
 
22322
      conftest$ac_exeext conftest.$ac_ext
 
22323
LIBS=$ac_check_lib_save_LIBS
 
22324
fi
 
22325
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
 
22326
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
 
22327
if test $ac_cv_lib_crypt_crypt = yes; then
 
22328
  LIBCRYPT="-lcrypt"; kde_have_crypt=yes
 
22329
else
 
22330
  echo "$as_me:$LINENO: checking for crypt in -lc" >&5
 
22331
echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
 
22332
if test "${ac_cv_lib_c_crypt+set}" = set; then
 
22333
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22334
else
 
22335
  ac_check_lib_save_LIBS=$LIBS
 
22336
LIBS="-lc  $LIBS"
 
22337
cat >conftest.$ac_ext <<_ACEOF
 
22338
/* confdefs.h.  */
 
22339
_ACEOF
 
22340
cat confdefs.h >>conftest.$ac_ext
 
22341
cat >>conftest.$ac_ext <<_ACEOF
 
22342
/* end confdefs.h.  */
 
22343
 
 
22344
/* Override any gcc2 internal prototype to avoid an error.  */
 
22345
#ifdef __cplusplus
 
22346
extern "C"
 
22347
#endif
 
22348
/* We use char because int might match the return type of a gcc2
 
22349
   builtin and then its argument prototype would still apply.  */
 
22350
char crypt ();
 
22351
int
 
22352
main ()
 
22353
{
 
22354
crypt ();
 
22355
  ;
 
22356
  return 0;
 
22357
}
 
22358
_ACEOF
 
22359
rm -f conftest.$ac_objext conftest$ac_exeext
 
22360
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22361
  (eval $ac_link) 2>conftest.er1
 
22362
  ac_status=$?
 
22363
  grep -v '^ *+' conftest.er1 >conftest.err
 
22364
  rm -f conftest.er1
 
22365
  cat conftest.err >&5
 
22366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22367
  (exit $ac_status); } &&
 
22368
         { ac_try='test -z "$ac_c_werror_flag"
 
22369
                         || test ! -s conftest.err'
 
22370
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22371
  (eval $ac_try) 2>&5
 
22372
  ac_status=$?
 
22373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22374
  (exit $ac_status); }; } &&
 
22375
         { ac_try='test -s conftest$ac_exeext'
 
22376
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22377
  (eval $ac_try) 2>&5
 
22378
  ac_status=$?
 
22379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22380
  (exit $ac_status); }; }; then
 
22381
  ac_cv_lib_c_crypt=yes
 
22382
else
 
22383
  echo "$as_me: failed program was:" >&5
 
22384
sed 's/^/| /' conftest.$ac_ext >&5
 
22385
 
 
22386
ac_cv_lib_c_crypt=no
 
22387
fi
 
22388
rm -f conftest.err conftest.$ac_objext \
 
22389
      conftest$ac_exeext conftest.$ac_ext
 
22390
LIBS=$ac_check_lib_save_LIBS
 
22391
fi
 
22392
echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
 
22393
echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
 
22394
if test $ac_cv_lib_c_crypt = yes; then
 
22395
  kde_have_crypt=yes
 
22396
else
 
22397
 
 
22398
        { echo "$as_me:$LINENO: WARNING: you have no crypt in either libcrypt or libc.
 
22399
You should install libcrypt from another source or configure with PAM
 
22400
support" >&5
 
22401
echo "$as_me: WARNING: you have no crypt in either libcrypt or libc.
 
22402
You should install libcrypt from another source or configure with PAM
 
22403
support" >&2;}
 
22404
        kde_have_crypt=no
 
22405
 
 
22406
fi
 
22407
 
 
22408
fi
 
22409
 
 
22410
 
 
22411
   if test $kde_have_crypt = yes; then
 
22412
 
 
22413
cat >>confdefs.h <<_ACEOF
 
22414
#define HAVE_CRYPT 1
 
22415
_ACEOF
 
22416
 
 
22417
   fi
 
22418
 
 
22419
   echo "$as_me:$LINENO: checking for socklen_t" >&5
 
22420
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
 
22421
   if test "${kde_cv_socklen_t+set}" = set; then
 
22422
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22423
else
 
22424
 
 
22425
      ac_ext=cc
 
22426
ac_cpp='$CXXCPP $CPPFLAGS'
 
22427
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22428
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22429
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22430
 
 
22431
      kde_cv_socklen_t=no
 
22432
      cat >conftest.$ac_ext <<_ACEOF
 
22433
/* confdefs.h.  */
 
22434
_ACEOF
 
22435
cat confdefs.h >>conftest.$ac_ext
 
22436
cat >>conftest.$ac_ext <<_ACEOF
 
22437
/* end confdefs.h.  */
 
22438
 
 
22439
         #include <sys/types.h>
 
22440
         #include <sys/socket.h>
 
22441
 
 
22442
int
 
22443
main ()
 
22444
{
 
22445
 
 
22446
         socklen_t len;
 
22447
         getpeername(0,0,&len);
 
22448
 
 
22449
  ;
 
22450
  return 0;
 
22451
}
 
22452
_ACEOF
 
22453
rm -f conftest.$ac_objext
 
22454
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22455
  (eval $ac_compile) 2>conftest.er1
 
22456
  ac_status=$?
 
22457
  grep -v '^ *+' conftest.er1 >conftest.err
 
22458
  rm -f conftest.er1
 
22459
  cat conftest.err >&5
 
22460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22461
  (exit $ac_status); } &&
 
22462
         { ac_try='test -z "$ac_cxx_werror_flag"
 
22463
                         || test ! -s conftest.err'
 
22464
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22465
  (eval $ac_try) 2>&5
 
22466
  ac_status=$?
 
22467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22468
  (exit $ac_status); }; } &&
 
22469
         { ac_try='test -s conftest.$ac_objext'
 
22470
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22471
  (eval $ac_try) 2>&5
 
22472
  ac_status=$?
 
22473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22474
  (exit $ac_status); }; }; then
 
22475
 
 
22476
         kde_cv_socklen_t=yes
 
22477
         kde_cv_socklen_t_equiv=socklen_t
 
22478
 
 
22479
else
 
22480
  echo "$as_me: failed program was:" >&5
 
22481
sed 's/^/| /' conftest.$ac_ext >&5
 
22482
 
 
22483
fi
 
22484
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22485
      ac_ext=c
 
22486
ac_cpp='$CPP $CPPFLAGS'
 
22487
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22488
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22489
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22490
 
 
22491
 
 
22492
fi
 
22493
 
 
22494
   echo "$as_me:$LINENO: result: $kde_cv_socklen_t" >&5
 
22495
echo "${ECHO_T}$kde_cv_socklen_t" >&6
 
22496
   if test $kde_cv_socklen_t = no; then
 
22497
      echo "$as_me:$LINENO: checking for socklen_t equivalent for socket functions" >&5
 
22498
echo $ECHO_N "checking for socklen_t equivalent for socket functions... $ECHO_C" >&6
 
22499
      if test "${kde_cv_socklen_t_equiv+set}" = set; then
 
22500
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22501
else
 
22502
 
 
22503
         kde_cv_socklen_t_equiv=int
 
22504
         ac_ext=cc
 
22505
ac_cpp='$CXXCPP $CPPFLAGS'
 
22506
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22507
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22508
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22509
 
 
22510
         for t in int size_t unsigned long "unsigned long"; do
 
22511
            cat >conftest.$ac_ext <<_ACEOF
 
22512
/* confdefs.h.  */
 
22513
_ACEOF
 
22514
cat confdefs.h >>conftest.$ac_ext
 
22515
cat >>conftest.$ac_ext <<_ACEOF
 
22516
/* end confdefs.h.  */
 
22517
 
 
22518
               #include <sys/types.h>
 
22519
               #include <sys/socket.h>
 
22520
 
 
22521
int
 
22522
main ()
 
22523
{
 
22524
 
 
22525
               $t len;
 
22526
               getpeername(0,0,&len);
 
22527
 
 
22528
  ;
 
22529
  return 0;
 
22530
}
 
22531
_ACEOF
 
22532
rm -f conftest.$ac_objext
 
22533
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22534
  (eval $ac_compile) 2>conftest.er1
 
22535
  ac_status=$?
 
22536
  grep -v '^ *+' conftest.er1 >conftest.err
 
22537
  rm -f conftest.er1
 
22538
  cat conftest.err >&5
 
22539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22540
  (exit $ac_status); } &&
 
22541
         { ac_try='test -z "$ac_cxx_werror_flag"
 
22542
                         || test ! -s conftest.err'
 
22543
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22544
  (eval $ac_try) 2>&5
 
22545
  ac_status=$?
 
22546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22547
  (exit $ac_status); }; } &&
 
22548
         { ac_try='test -s conftest.$ac_objext'
 
22549
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22550
  (eval $ac_try) 2>&5
 
22551
  ac_status=$?
 
22552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22553
  (exit $ac_status); }; }; then
 
22554
 
 
22555
               kde_cv_socklen_t_equiv="$t"
 
22556
               break
 
22557
 
 
22558
else
 
22559
  echo "$as_me: failed program was:" >&5
 
22560
sed 's/^/| /' conftest.$ac_ext >&5
 
22561
 
 
22562
fi
 
22563
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22564
         done
 
22565
         ac_ext=c
 
22566
ac_cpp='$CPP $CPPFLAGS'
 
22567
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22568
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22569
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22570
 
 
22571
 
 
22572
fi
 
22573
 
 
22574
      echo "$as_me:$LINENO: result: $kde_cv_socklen_t_equiv" >&5
 
22575
echo "${ECHO_T}$kde_cv_socklen_t_equiv" >&6
 
22576
   fi
 
22577
 
 
22578
cat >>confdefs.h <<_ACEOF
 
22579
#define kde_socklen_t $kde_cv_socklen_t_equiv
 
22580
_ACEOF
 
22581
 
 
22582
 
 
22583
cat >>confdefs.h <<_ACEOF
 
22584
#define ksize_t $kde_cv_socklen_t_equiv
 
22585
_ACEOF
 
22586
 
 
22587
 
 
22588
   echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
 
22589
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
 
22590
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
 
22591
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22592
else
 
22593
  ac_check_lib_save_LIBS=$LIBS
 
22594
LIBS="-ldnet  $LIBS"
 
22595
cat >conftest.$ac_ext <<_ACEOF
 
22596
/* confdefs.h.  */
 
22597
_ACEOF
 
22598
cat confdefs.h >>conftest.$ac_ext
 
22599
cat >>conftest.$ac_ext <<_ACEOF
 
22600
/* end confdefs.h.  */
 
22601
 
 
22602
/* Override any gcc2 internal prototype to avoid an error.  */
 
22603
#ifdef __cplusplus
 
22604
extern "C"
 
22605
#endif
 
22606
/* We use char because int might match the return type of a gcc2
 
22607
   builtin and then its argument prototype would still apply.  */
 
22608
char dnet_ntoa ();
 
22609
int
 
22610
main ()
 
22611
{
 
22612
dnet_ntoa ();
 
22613
  ;
 
22614
  return 0;
 
22615
}
 
22616
_ACEOF
 
22617
rm -f conftest.$ac_objext conftest$ac_exeext
 
22618
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22619
  (eval $ac_link) 2>conftest.er1
 
22620
  ac_status=$?
 
22621
  grep -v '^ *+' conftest.er1 >conftest.err
 
22622
  rm -f conftest.er1
 
22623
  cat conftest.err >&5
 
22624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22625
  (exit $ac_status); } &&
 
22626
         { ac_try='test -z "$ac_c_werror_flag"
 
22627
                         || test ! -s conftest.err'
 
22628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22629
  (eval $ac_try) 2>&5
 
22630
  ac_status=$?
 
22631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22632
  (exit $ac_status); }; } &&
 
22633
         { ac_try='test -s conftest$ac_exeext'
 
22634
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22635
  (eval $ac_try) 2>&5
 
22636
  ac_status=$?
 
22637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22638
  (exit $ac_status); }; }; then
 
22639
  ac_cv_lib_dnet_dnet_ntoa=yes
 
22640
else
 
22641
  echo "$as_me: failed program was:" >&5
 
22642
sed 's/^/| /' conftest.$ac_ext >&5
 
22643
 
 
22644
ac_cv_lib_dnet_dnet_ntoa=no
 
22645
fi
 
22646
rm -f conftest.err conftest.$ac_objext \
 
22647
      conftest$ac_exeext conftest.$ac_ext
 
22648
LIBS=$ac_check_lib_save_LIBS
 
22649
fi
 
22650
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
22651
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
 
22652
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
 
22653
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 
22654
fi
 
22655
 
 
22656
   if test $ac_cv_lib_dnet_dnet_ntoa = no; then
 
22657
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
 
22658
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
 
22659
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
 
22660
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22661
else
 
22662
  ac_check_lib_save_LIBS=$LIBS
 
22663
LIBS="-ldnet_stub  $LIBS"
 
22664
cat >conftest.$ac_ext <<_ACEOF
 
22665
/* confdefs.h.  */
 
22666
_ACEOF
 
22667
cat confdefs.h >>conftest.$ac_ext
 
22668
cat >>conftest.$ac_ext <<_ACEOF
 
22669
/* end confdefs.h.  */
 
22670
 
 
22671
/* Override any gcc2 internal prototype to avoid an error.  */
 
22672
#ifdef __cplusplus
 
22673
extern "C"
 
22674
#endif
 
22675
/* We use char because int might match the return type of a gcc2
 
22676
   builtin and then its argument prototype would still apply.  */
 
22677
char dnet_ntoa ();
 
22678
int
 
22679
main ()
 
22680
{
 
22681
dnet_ntoa ();
 
22682
  ;
 
22683
  return 0;
 
22684
}
 
22685
_ACEOF
 
22686
rm -f conftest.$ac_objext conftest$ac_exeext
 
22687
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22688
  (eval $ac_link) 2>conftest.er1
 
22689
  ac_status=$?
 
22690
  grep -v '^ *+' conftest.er1 >conftest.err
 
22691
  rm -f conftest.er1
 
22692
  cat conftest.err >&5
 
22693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22694
  (exit $ac_status); } &&
 
22695
         { ac_try='test -z "$ac_c_werror_flag"
 
22696
                         || test ! -s conftest.err'
 
22697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22698
  (eval $ac_try) 2>&5
 
22699
  ac_status=$?
 
22700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22701
  (exit $ac_status); }; } &&
 
22702
         { ac_try='test -s conftest$ac_exeext'
 
22703
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22704
  (eval $ac_try) 2>&5
 
22705
  ac_status=$?
 
22706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22707
  (exit $ac_status); }; }; then
 
22708
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 
22709
else
 
22710
  echo "$as_me: failed program was:" >&5
 
22711
sed 's/^/| /' conftest.$ac_ext >&5
 
22712
 
 
22713
ac_cv_lib_dnet_stub_dnet_ntoa=no
 
22714
fi
 
22715
rm -f conftest.err conftest.$ac_objext \
 
22716
      conftest$ac_exeext conftest.$ac_ext
 
22717
LIBS=$ac_check_lib_save_LIBS
 
22718
fi
 
22719
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
22720
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
 
22721
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
 
22722
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 
22723
fi
 
22724
 
 
22725
   fi
 
22726
   echo "$as_me:$LINENO: checking for inet_ntoa" >&5
 
22727
echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6
 
22728
if test "${ac_cv_func_inet_ntoa+set}" = set; then
 
22729
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22730
else
 
22731
  cat >conftest.$ac_ext <<_ACEOF
 
22732
/* confdefs.h.  */
 
22733
_ACEOF
 
22734
cat confdefs.h >>conftest.$ac_ext
 
22735
cat >>conftest.$ac_ext <<_ACEOF
 
22736
/* end confdefs.h.  */
 
22737
/* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa.
 
22738
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22739
#define inet_ntoa innocuous_inet_ntoa
 
22740
 
 
22741
/* System header to define __stub macros and hopefully few prototypes,
 
22742
    which can conflict with char inet_ntoa (); below.
 
22743
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22744
    <limits.h> exists even on freestanding compilers.  */
 
22745
 
 
22746
#ifdef __STDC__
 
22747
# include <limits.h>
 
22748
#else
 
22749
# include <assert.h>
 
22750
#endif
 
22751
 
 
22752
#undef inet_ntoa
 
22753
 
 
22754
/* Override any gcc2 internal prototype to avoid an error.  */
 
22755
#ifdef __cplusplus
 
22756
extern "C"
 
22757
{
 
22758
#endif
 
22759
/* We use char because int might match the return type of a gcc2
 
22760
   builtin and then its argument prototype would still apply.  */
 
22761
char inet_ntoa ();
 
22762
/* The GNU C library defines this for functions which it implements
 
22763
    to always fail with ENOSYS.  Some functions are actually named
 
22764
    something starting with __ and the normal name is an alias.  */
 
22765
#if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
 
22766
choke me
 
22767
#else
 
22768
char (*f) () = inet_ntoa;
 
22769
#endif
 
22770
#ifdef __cplusplus
 
22771
}
 
22772
#endif
 
22773
 
 
22774
int
 
22775
main ()
 
22776
{
 
22777
return f != inet_ntoa;
 
22778
  ;
 
22779
  return 0;
 
22780
}
 
22781
_ACEOF
 
22782
rm -f conftest.$ac_objext conftest$ac_exeext
 
22783
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22784
  (eval $ac_link) 2>conftest.er1
 
22785
  ac_status=$?
 
22786
  grep -v '^ *+' conftest.er1 >conftest.err
 
22787
  rm -f conftest.er1
 
22788
  cat conftest.err >&5
 
22789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22790
  (exit $ac_status); } &&
 
22791
         { ac_try='test -z "$ac_c_werror_flag"
 
22792
                         || test ! -s conftest.err'
 
22793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22794
  (eval $ac_try) 2>&5
 
22795
  ac_status=$?
 
22796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22797
  (exit $ac_status); }; } &&
 
22798
         { ac_try='test -s conftest$ac_exeext'
 
22799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22800
  (eval $ac_try) 2>&5
 
22801
  ac_status=$?
 
22802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22803
  (exit $ac_status); }; }; then
 
22804
  ac_cv_func_inet_ntoa=yes
 
22805
else
 
22806
  echo "$as_me: failed program was:" >&5
 
22807
sed 's/^/| /' conftest.$ac_ext >&5
 
22808
 
 
22809
ac_cv_func_inet_ntoa=no
 
22810
fi
 
22811
rm -f conftest.err conftest.$ac_objext \
 
22812
      conftest$ac_exeext conftest.$ac_ext
 
22813
fi
 
22814
echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
 
22815
echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6
 
22816
 
 
22817
   if test $ac_cv_func_inet_ntoa = no; then
 
22818
     echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
 
22819
echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
 
22820
if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
 
22821
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22822
else
 
22823
  ac_check_lib_save_LIBS=$LIBS
 
22824
LIBS="-lnsl  $LIBS"
 
22825
cat >conftest.$ac_ext <<_ACEOF
 
22826
/* confdefs.h.  */
 
22827
_ACEOF
 
22828
cat confdefs.h >>conftest.$ac_ext
 
22829
cat >>conftest.$ac_ext <<_ACEOF
 
22830
/* end confdefs.h.  */
 
22831
 
 
22832
/* Override any gcc2 internal prototype to avoid an error.  */
 
22833
#ifdef __cplusplus
 
22834
extern "C"
 
22835
#endif
 
22836
/* We use char because int might match the return type of a gcc2
 
22837
   builtin and then its argument prototype would still apply.  */
 
22838
char inet_ntoa ();
 
22839
int
 
22840
main ()
 
22841
{
 
22842
inet_ntoa ();
 
22843
  ;
 
22844
  return 0;
 
22845
}
 
22846
_ACEOF
 
22847
rm -f conftest.$ac_objext conftest$ac_exeext
 
22848
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22849
  (eval $ac_link) 2>conftest.er1
 
22850
  ac_status=$?
 
22851
  grep -v '^ *+' conftest.er1 >conftest.err
 
22852
  rm -f conftest.er1
 
22853
  cat conftest.err >&5
 
22854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22855
  (exit $ac_status); } &&
 
22856
         { ac_try='test -z "$ac_c_werror_flag"
 
22857
                         || test ! -s conftest.err'
 
22858
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22859
  (eval $ac_try) 2>&5
 
22860
  ac_status=$?
 
22861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22862
  (exit $ac_status); }; } &&
 
22863
         { ac_try='test -s conftest$ac_exeext'
 
22864
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22865
  (eval $ac_try) 2>&5
 
22866
  ac_status=$?
 
22867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22868
  (exit $ac_status); }; }; then
 
22869
  ac_cv_lib_nsl_inet_ntoa=yes
 
22870
else
 
22871
  echo "$as_me: failed program was:" >&5
 
22872
sed 's/^/| /' conftest.$ac_ext >&5
 
22873
 
 
22874
ac_cv_lib_nsl_inet_ntoa=no
 
22875
fi
 
22876
rm -f conftest.err conftest.$ac_objext \
 
22877
      conftest$ac_exeext conftest.$ac_ext
 
22878
LIBS=$ac_check_lib_save_LIBS
 
22879
fi
 
22880
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
 
22881
echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
 
22882
if test $ac_cv_lib_nsl_inet_ntoa = yes; then
 
22883
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 
22884
fi
 
22885
 
 
22886
   fi
 
22887
   echo "$as_me:$LINENO: checking for connect" >&5
 
22888
echo $ECHO_N "checking for connect... $ECHO_C" >&6
 
22889
if test "${ac_cv_func_connect+set}" = set; then
 
22890
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22891
else
 
22892
  cat >conftest.$ac_ext <<_ACEOF
 
22893
/* confdefs.h.  */
 
22894
_ACEOF
 
22895
cat confdefs.h >>conftest.$ac_ext
 
22896
cat >>conftest.$ac_ext <<_ACEOF
 
22897
/* end confdefs.h.  */
 
22898
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
 
22899
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22900
#define connect innocuous_connect
 
22901
 
 
22902
/* System header to define __stub macros and hopefully few prototypes,
 
22903
    which can conflict with char connect (); below.
 
22904
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22905
    <limits.h> exists even on freestanding compilers.  */
 
22906
 
 
22907
#ifdef __STDC__
 
22908
# include <limits.h>
 
22909
#else
 
22910
# include <assert.h>
 
22911
#endif
 
22912
 
 
22913
#undef connect
 
22914
 
 
22915
/* Override any gcc2 internal prototype to avoid an error.  */
 
22916
#ifdef __cplusplus
 
22917
extern "C"
 
22918
{
 
22919
#endif
 
22920
/* We use char because int might match the return type of a gcc2
 
22921
   builtin and then its argument prototype would still apply.  */
 
22922
char connect ();
 
22923
/* The GNU C library defines this for functions which it implements
 
22924
    to always fail with ENOSYS.  Some functions are actually named
 
22925
    something starting with __ and the normal name is an alias.  */
 
22926
#if defined (__stub_connect) || defined (__stub___connect)
 
22927
choke me
 
22928
#else
 
22929
char (*f) () = connect;
 
22930
#endif
 
22931
#ifdef __cplusplus
 
22932
}
 
22933
#endif
 
22934
 
 
22935
int
 
22936
main ()
 
22937
{
 
22938
return f != connect;
 
22939
  ;
 
22940
  return 0;
 
22941
}
 
22942
_ACEOF
 
22943
rm -f conftest.$ac_objext conftest$ac_exeext
 
22944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22945
  (eval $ac_link) 2>conftest.er1
 
22946
  ac_status=$?
 
22947
  grep -v '^ *+' conftest.er1 >conftest.err
 
22948
  rm -f conftest.er1
 
22949
  cat conftest.err >&5
 
22950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22951
  (exit $ac_status); } &&
 
22952
         { ac_try='test -z "$ac_c_werror_flag"
 
22953
                         || test ! -s conftest.err'
 
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); }; } &&
 
22959
         { ac_try='test -s conftest$ac_exeext'
 
22960
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22961
  (eval $ac_try) 2>&5
 
22962
  ac_status=$?
 
22963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22964
  (exit $ac_status); }; }; then
 
22965
  ac_cv_func_connect=yes
 
22966
else
 
22967
  echo "$as_me: failed program was:" >&5
 
22968
sed 's/^/| /' conftest.$ac_ext >&5
 
22969
 
 
22970
ac_cv_func_connect=no
 
22971
fi
 
22972
rm -f conftest.err conftest.$ac_objext \
 
22973
      conftest$ac_exeext conftest.$ac_ext
 
22974
fi
 
22975
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
22976
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
22977
 
 
22978
   if test $ac_cv_func_connect = no; then
 
22979
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
22980
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
 
22981
if test "${ac_cv_lib_socket_connect+set}" = set; then
 
22982
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22983
else
 
22984
  ac_check_lib_save_LIBS=$LIBS
 
22985
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 
22986
cat >conftest.$ac_ext <<_ACEOF
 
22987
/* confdefs.h.  */
 
22988
_ACEOF
 
22989
cat confdefs.h >>conftest.$ac_ext
 
22990
cat >>conftest.$ac_ext <<_ACEOF
 
22991
/* end confdefs.h.  */
 
22992
 
 
22993
/* Override any gcc2 internal prototype to avoid an error.  */
 
22994
#ifdef __cplusplus
 
22995
extern "C"
 
22996
#endif
 
22997
/* We use char because int might match the return type of a gcc2
 
22998
   builtin and then its argument prototype would still apply.  */
 
22999
char connect ();
 
23000
int
 
23001
main ()
 
23002
{
 
23003
connect ();
 
23004
  ;
 
23005
  return 0;
 
23006
}
 
23007
_ACEOF
 
23008
rm -f conftest.$ac_objext conftest$ac_exeext
 
23009
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23010
  (eval $ac_link) 2>conftest.er1
 
23011
  ac_status=$?
 
23012
  grep -v '^ *+' conftest.er1 >conftest.err
 
23013
  rm -f conftest.er1
 
23014
  cat conftest.err >&5
 
23015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23016
  (exit $ac_status); } &&
 
23017
         { ac_try='test -z "$ac_c_werror_flag"
 
23018
                         || test ! -s conftest.err'
 
23019
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23020
  (eval $ac_try) 2>&5
 
23021
  ac_status=$?
 
23022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23023
  (exit $ac_status); }; } &&
 
23024
         { ac_try='test -s conftest$ac_exeext'
 
23025
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23026
  (eval $ac_try) 2>&5
 
23027
  ac_status=$?
 
23028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23029
  (exit $ac_status); }; }; then
 
23030
  ac_cv_lib_socket_connect=yes
 
23031
else
 
23032
  echo "$as_me: failed program was:" >&5
 
23033
sed 's/^/| /' conftest.$ac_ext >&5
 
23034
 
 
23035
ac_cv_lib_socket_connect=no
 
23036
fi
 
23037
rm -f conftest.err conftest.$ac_objext \
 
23038
      conftest$ac_exeext conftest.$ac_ext
 
23039
LIBS=$ac_check_lib_save_LIBS
 
23040
fi
 
23041
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
23042
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
 
23043
if test $ac_cv_lib_socket_connect = yes; then
 
23044
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 
23045
fi
 
23046
 
 
23047
   fi
 
23048
 
 
23049
   echo "$as_me:$LINENO: checking for remove" >&5
 
23050
echo $ECHO_N "checking for remove... $ECHO_C" >&6
 
23051
if test "${ac_cv_func_remove+set}" = set; then
 
23052
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23053
else
 
23054
  cat >conftest.$ac_ext <<_ACEOF
 
23055
/* confdefs.h.  */
 
23056
_ACEOF
 
23057
cat confdefs.h >>conftest.$ac_ext
 
23058
cat >>conftest.$ac_ext <<_ACEOF
 
23059
/* end confdefs.h.  */
 
23060
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
 
23061
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23062
#define remove innocuous_remove
 
23063
 
 
23064
/* System header to define __stub macros and hopefully few prototypes,
 
23065
    which can conflict with char remove (); below.
 
23066
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23067
    <limits.h> exists even on freestanding compilers.  */
 
23068
 
 
23069
#ifdef __STDC__
 
23070
# include <limits.h>
 
23071
#else
 
23072
# include <assert.h>
 
23073
#endif
 
23074
 
 
23075
#undef remove
 
23076
 
 
23077
/* Override any gcc2 internal prototype to avoid an error.  */
 
23078
#ifdef __cplusplus
 
23079
extern "C"
 
23080
{
 
23081
#endif
 
23082
/* We use char because int might match the return type of a gcc2
 
23083
   builtin and then its argument prototype would still apply.  */
 
23084
char remove ();
 
23085
/* The GNU C library defines this for functions which it implements
 
23086
    to always fail with ENOSYS.  Some functions are actually named
 
23087
    something starting with __ and the normal name is an alias.  */
 
23088
#if defined (__stub_remove) || defined (__stub___remove)
 
23089
choke me
 
23090
#else
 
23091
char (*f) () = remove;
 
23092
#endif
 
23093
#ifdef __cplusplus
 
23094
}
 
23095
#endif
 
23096
 
 
23097
int
 
23098
main ()
 
23099
{
 
23100
return f != remove;
 
23101
  ;
 
23102
  return 0;
 
23103
}
 
23104
_ACEOF
 
23105
rm -f conftest.$ac_objext conftest$ac_exeext
 
23106
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23107
  (eval $ac_link) 2>conftest.er1
 
23108
  ac_status=$?
 
23109
  grep -v '^ *+' conftest.er1 >conftest.err
 
23110
  rm -f conftest.er1
 
23111
  cat conftest.err >&5
 
23112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23113
  (exit $ac_status); } &&
 
23114
         { ac_try='test -z "$ac_c_werror_flag"
 
23115
                         || test ! -s conftest.err'
 
23116
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23117
  (eval $ac_try) 2>&5
 
23118
  ac_status=$?
 
23119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23120
  (exit $ac_status); }; } &&
 
23121
         { ac_try='test -s conftest$ac_exeext'
 
23122
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23123
  (eval $ac_try) 2>&5
 
23124
  ac_status=$?
 
23125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23126
  (exit $ac_status); }; }; then
 
23127
  ac_cv_func_remove=yes
 
23128
else
 
23129
  echo "$as_me: failed program was:" >&5
 
23130
sed 's/^/| /' conftest.$ac_ext >&5
 
23131
 
 
23132
ac_cv_func_remove=no
 
23133
fi
 
23134
rm -f conftest.err conftest.$ac_objext \
 
23135
      conftest$ac_exeext conftest.$ac_ext
 
23136
fi
 
23137
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
23138
echo "${ECHO_T}$ac_cv_func_remove" >&6
 
23139
 
 
23140
   if test $ac_cv_func_remove = no; then
 
23141
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
 
23142
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
 
23143
if test "${ac_cv_lib_posix_remove+set}" = set; then
 
23144
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23145
else
 
23146
  ac_check_lib_save_LIBS=$LIBS
 
23147
LIBS="-lposix  $LIBS"
 
23148
cat >conftest.$ac_ext <<_ACEOF
 
23149
/* confdefs.h.  */
 
23150
_ACEOF
 
23151
cat confdefs.h >>conftest.$ac_ext
 
23152
cat >>conftest.$ac_ext <<_ACEOF
 
23153
/* end confdefs.h.  */
 
23154
 
 
23155
/* Override any gcc2 internal prototype to avoid an error.  */
 
23156
#ifdef __cplusplus
 
23157
extern "C"
 
23158
#endif
 
23159
/* We use char because int might match the return type of a gcc2
 
23160
   builtin and then its argument prototype would still apply.  */
 
23161
char remove ();
 
23162
int
 
23163
main ()
 
23164
{
 
23165
remove ();
 
23166
  ;
 
23167
  return 0;
 
23168
}
 
23169
_ACEOF
 
23170
rm -f conftest.$ac_objext conftest$ac_exeext
 
23171
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23172
  (eval $ac_link) 2>conftest.er1
 
23173
  ac_status=$?
 
23174
  grep -v '^ *+' conftest.er1 >conftest.err
 
23175
  rm -f conftest.er1
 
23176
  cat conftest.err >&5
 
23177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23178
  (exit $ac_status); } &&
 
23179
         { ac_try='test -z "$ac_c_werror_flag"
 
23180
                         || test ! -s conftest.err'
 
23181
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23182
  (eval $ac_try) 2>&5
 
23183
  ac_status=$?
 
23184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23185
  (exit $ac_status); }; } &&
 
23186
         { ac_try='test -s conftest$ac_exeext'
 
23187
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23188
  (eval $ac_try) 2>&5
 
23189
  ac_status=$?
 
23190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23191
  (exit $ac_status); }; }; then
 
23192
  ac_cv_lib_posix_remove=yes
 
23193
else
 
23194
  echo "$as_me: failed program was:" >&5
 
23195
sed 's/^/| /' conftest.$ac_ext >&5
 
23196
 
 
23197
ac_cv_lib_posix_remove=no
 
23198
fi
 
23199
rm -f conftest.err conftest.$ac_objext \
 
23200
      conftest$ac_exeext conftest.$ac_ext
 
23201
LIBS=$ac_check_lib_save_LIBS
 
23202
fi
 
23203
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
 
23204
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
 
23205
if test $ac_cv_lib_posix_remove = yes; then
 
23206
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 
23207
fi
 
23208
 
 
23209
   fi
 
23210
 
 
23211
   # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
 
23212
   echo "$as_me:$LINENO: checking for shmat" >&5
 
23213
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
 
23214
if test "${ac_cv_func_shmat+set}" = set; then
 
23215
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23216
else
 
23217
  cat >conftest.$ac_ext <<_ACEOF
 
23218
/* confdefs.h.  */
 
23219
_ACEOF
 
23220
cat confdefs.h >>conftest.$ac_ext
 
23221
cat >>conftest.$ac_ext <<_ACEOF
 
23222
/* end confdefs.h.  */
 
23223
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
 
23224
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23225
#define shmat innocuous_shmat
 
23226
 
 
23227
/* System header to define __stub macros and hopefully few prototypes,
 
23228
    which can conflict with char shmat (); below.
 
23229
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23230
    <limits.h> exists even on freestanding compilers.  */
 
23231
 
 
23232
#ifdef __STDC__
 
23233
# include <limits.h>
 
23234
#else
 
23235
# include <assert.h>
 
23236
#endif
 
23237
 
 
23238
#undef shmat
 
23239
 
 
23240
/* Override any gcc2 internal prototype to avoid an error.  */
 
23241
#ifdef __cplusplus
 
23242
extern "C"
 
23243
{
 
23244
#endif
 
23245
/* We use char because int might match the return type of a gcc2
 
23246
   builtin and then its argument prototype would still apply.  */
 
23247
char shmat ();
 
23248
/* The GNU C library defines this for functions which it implements
 
23249
    to always fail with ENOSYS.  Some functions are actually named
 
23250
    something starting with __ and the normal name is an alias.  */
 
23251
#if defined (__stub_shmat) || defined (__stub___shmat)
 
23252
choke me
 
23253
#else
 
23254
char (*f) () = shmat;
 
23255
#endif
 
23256
#ifdef __cplusplus
 
23257
}
 
23258
#endif
 
23259
 
 
23260
int
 
23261
main ()
 
23262
{
 
23263
return f != shmat;
 
23264
  ;
 
23265
  return 0;
 
23266
}
 
23267
_ACEOF
 
23268
rm -f conftest.$ac_objext conftest$ac_exeext
 
23269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23270
  (eval $ac_link) 2>conftest.er1
 
23271
  ac_status=$?
 
23272
  grep -v '^ *+' conftest.er1 >conftest.err
 
23273
  rm -f conftest.er1
 
23274
  cat conftest.err >&5
 
23275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23276
  (exit $ac_status); } &&
 
23277
         { ac_try='test -z "$ac_c_werror_flag"
 
23278
                         || test ! -s conftest.err'
 
23279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23280
  (eval $ac_try) 2>&5
 
23281
  ac_status=$?
 
23282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23283
  (exit $ac_status); }; } &&
 
23284
         { ac_try='test -s conftest$ac_exeext'
 
23285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23286
  (eval $ac_try) 2>&5
 
23287
  ac_status=$?
 
23288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23289
  (exit $ac_status); }; }; then
 
23290
  ac_cv_func_shmat=yes
 
23291
else
 
23292
  echo "$as_me: failed program was:" >&5
 
23293
sed 's/^/| /' conftest.$ac_ext >&5
 
23294
 
 
23295
ac_cv_func_shmat=no
 
23296
fi
 
23297
rm -f conftest.err conftest.$ac_objext \
 
23298
      conftest$ac_exeext conftest.$ac_ext
 
23299
fi
 
23300
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
23301
echo "${ECHO_T}$ac_cv_func_shmat" >&6
 
23302
if test $ac_cv_func_shmat = yes; then
 
23303
  :
 
23304
else
 
23305
  echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
 
23306
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
 
23307
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
 
23308
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23309
else
 
23310
  ac_check_lib_save_LIBS=$LIBS
 
23311
LIBS="-lipc  $LIBS"
 
23312
cat >conftest.$ac_ext <<_ACEOF
 
23313
/* confdefs.h.  */
 
23314
_ACEOF
 
23315
cat confdefs.h >>conftest.$ac_ext
 
23316
cat >>conftest.$ac_ext <<_ACEOF
 
23317
/* end confdefs.h.  */
 
23318
 
 
23319
/* Override any gcc2 internal prototype to avoid an error.  */
 
23320
#ifdef __cplusplus
 
23321
extern "C"
 
23322
#endif
 
23323
/* We use char because int might match the return type of a gcc2
 
23324
   builtin and then its argument prototype would still apply.  */
 
23325
char shmat ();
 
23326
int
 
23327
main ()
 
23328
{
 
23329
shmat ();
 
23330
  ;
 
23331
  return 0;
 
23332
}
 
23333
_ACEOF
 
23334
rm -f conftest.$ac_objext conftest$ac_exeext
 
23335
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23336
  (eval $ac_link) 2>conftest.er1
 
23337
  ac_status=$?
 
23338
  grep -v '^ *+' conftest.er1 >conftest.err
 
23339
  rm -f conftest.er1
 
23340
  cat conftest.err >&5
 
23341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23342
  (exit $ac_status); } &&
 
23343
         { ac_try='test -z "$ac_c_werror_flag"
 
23344
                         || test ! -s conftest.err'
 
23345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23346
  (eval $ac_try) 2>&5
 
23347
  ac_status=$?
 
23348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23349
  (exit $ac_status); }; } &&
 
23350
         { ac_try='test -s conftest$ac_exeext'
 
23351
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23352
  (eval $ac_try) 2>&5
 
23353
  ac_status=$?
 
23354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23355
  (exit $ac_status); }; }; then
 
23356
  ac_cv_lib_ipc_shmat=yes
 
23357
else
 
23358
  echo "$as_me: failed program was:" >&5
 
23359
sed 's/^/| /' conftest.$ac_ext >&5
 
23360
 
 
23361
ac_cv_lib_ipc_shmat=no
 
23362
fi
 
23363
rm -f conftest.err conftest.$ac_objext \
 
23364
      conftest$ac_exeext conftest.$ac_ext
 
23365
LIBS=$ac_check_lib_save_LIBS
 
23366
fi
 
23367
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
 
23368
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
 
23369
if test $ac_cv_lib_ipc_shmat = yes; then
 
23370
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 
23371
fi
 
23372
 
 
23373
fi
 
23374
 
 
23375
 
 
23376
   # more headers that need to be explicitly included on darwin
 
23377
 
 
23378
 
 
23379
for ac_header in sys/types.h stdint.h
 
23380
do
 
23381
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
23382
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23383
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23384
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23385
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23386
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23387
fi
 
23388
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23389
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23390
else
 
23391
  # Is the header compilable?
 
23392
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
23393
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
23394
cat >conftest.$ac_ext <<_ACEOF
 
23395
/* confdefs.h.  */
 
23396
_ACEOF
 
23397
cat confdefs.h >>conftest.$ac_ext
 
23398
cat >>conftest.$ac_ext <<_ACEOF
 
23399
/* end confdefs.h.  */
 
23400
$ac_includes_default
 
23401
#include <$ac_header>
 
23402
_ACEOF
 
23403
rm -f conftest.$ac_objext
 
23404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23405
  (eval $ac_compile) 2>conftest.er1
 
23406
  ac_status=$?
 
23407
  grep -v '^ *+' conftest.er1 >conftest.err
 
23408
  rm -f conftest.er1
 
23409
  cat conftest.err >&5
 
23410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23411
  (exit $ac_status); } &&
 
23412
         { ac_try='test -z "$ac_c_werror_flag"
 
23413
                         || test ! -s conftest.err'
 
23414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23415
  (eval $ac_try) 2>&5
 
23416
  ac_status=$?
 
23417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23418
  (exit $ac_status); }; } &&
 
23419
         { ac_try='test -s conftest.$ac_objext'
 
23420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23421
  (eval $ac_try) 2>&5
 
23422
  ac_status=$?
 
23423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23424
  (exit $ac_status); }; }; then
 
23425
  ac_header_compiler=yes
 
23426
else
 
23427
  echo "$as_me: failed program was:" >&5
 
23428
sed 's/^/| /' conftest.$ac_ext >&5
 
23429
 
 
23430
ac_header_compiler=no
 
23431
fi
 
23432
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23433
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23434
echo "${ECHO_T}$ac_header_compiler" >&6
 
23435
 
 
23436
# Is the header present?
 
23437
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23438
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
23439
cat >conftest.$ac_ext <<_ACEOF
 
23440
/* confdefs.h.  */
 
23441
_ACEOF
 
23442
cat confdefs.h >>conftest.$ac_ext
 
23443
cat >>conftest.$ac_ext <<_ACEOF
 
23444
/* end confdefs.h.  */
 
23445
#include <$ac_header>
 
23446
_ACEOF
 
23447
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
23448
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23449
  ac_status=$?
 
23450
  grep -v '^ *+' conftest.er1 >conftest.err
 
23451
  rm -f conftest.er1
 
23452
  cat conftest.err >&5
 
23453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23454
  (exit $ac_status); } >/dev/null; then
 
23455
  if test -s conftest.err; then
 
23456
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23457
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
23458
  else
 
23459
    ac_cpp_err=
 
23460
  fi
 
23461
else
 
23462
  ac_cpp_err=yes
 
23463
fi
 
23464
if test -z "$ac_cpp_err"; then
 
23465
  ac_header_preproc=yes
 
23466
else
 
23467
  echo "$as_me: failed program was:" >&5
 
23468
sed 's/^/| /' conftest.$ac_ext >&5
 
23469
 
 
23470
  ac_header_preproc=no
 
23471
fi
 
23472
rm -f conftest.err conftest.$ac_ext
 
23473
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23474
echo "${ECHO_T}$ac_header_preproc" >&6
 
23475
 
 
23476
# So?  What about this header?
 
23477
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23478
  yes:no: )
 
23479
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
23480
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23481
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23482
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23483
    ac_header_preproc=yes
 
23484
    ;;
 
23485
  no:yes:* )
 
23486
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
23487
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
23488
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23489
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23490
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23491
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23492
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23493
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23494
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
23495
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23496
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23497
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
23498
    (
 
23499
      cat <<\_ASBOX
 
23500
## ------------------------------------------ ##
 
23501
## Report this to the AC_PACKAGE_NAME lists.  ##
 
23502
## ------------------------------------------ ##
 
23503
_ASBOX
 
23504
    ) |
 
23505
      sed "s/^/$as_me: WARNING:     /" >&2
 
23506
    ;;
 
23507
esac
 
23508
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23509
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23510
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23511
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23512
else
 
23513
  eval "$as_ac_Header=\$ac_header_preproc"
 
23514
fi
 
23515
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23516
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23517
 
 
23518
fi
 
23519
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
23520
  cat >>confdefs.h <<_ACEOF
 
23521
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
23522
_ACEOF
 
23523
 
 
23524
fi
 
23525
 
 
23526
done
 
23527
 
 
23528
 
 
23529
   # sys/bitypes.h is needed for uint32_t and friends on Tru64
 
23530
 
 
23531
for ac_header in sys/bitypes.h
 
23532
do
 
23533
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
23534
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23535
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23536
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23537
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23538
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23539
fi
 
23540
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23541
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23542
else
 
23543
  # Is the header compilable?
 
23544
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
23545
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
23546
cat >conftest.$ac_ext <<_ACEOF
 
23547
/* confdefs.h.  */
 
23548
_ACEOF
 
23549
cat confdefs.h >>conftest.$ac_ext
 
23550
cat >>conftest.$ac_ext <<_ACEOF
 
23551
/* end confdefs.h.  */
 
23552
$ac_includes_default
 
23553
#include <$ac_header>
 
23554
_ACEOF
 
23555
rm -f conftest.$ac_objext
 
23556
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23557
  (eval $ac_compile) 2>conftest.er1
 
23558
  ac_status=$?
 
23559
  grep -v '^ *+' conftest.er1 >conftest.err
 
23560
  rm -f conftest.er1
 
23561
  cat conftest.err >&5
 
23562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23563
  (exit $ac_status); } &&
 
23564
         { ac_try='test -z "$ac_c_werror_flag"
 
23565
                         || test ! -s conftest.err'
 
23566
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23567
  (eval $ac_try) 2>&5
 
23568
  ac_status=$?
 
23569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23570
  (exit $ac_status); }; } &&
 
23571
         { ac_try='test -s conftest.$ac_objext'
 
23572
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23573
  (eval $ac_try) 2>&5
 
23574
  ac_status=$?
 
23575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23576
  (exit $ac_status); }; }; then
 
23577
  ac_header_compiler=yes
 
23578
else
 
23579
  echo "$as_me: failed program was:" >&5
 
23580
sed 's/^/| /' conftest.$ac_ext >&5
 
23581
 
 
23582
ac_header_compiler=no
 
23583
fi
 
23584
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23585
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23586
echo "${ECHO_T}$ac_header_compiler" >&6
 
23587
 
 
23588
# Is the header present?
 
23589
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23590
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
23591
cat >conftest.$ac_ext <<_ACEOF
 
23592
/* confdefs.h.  */
 
23593
_ACEOF
 
23594
cat confdefs.h >>conftest.$ac_ext
 
23595
cat >>conftest.$ac_ext <<_ACEOF
 
23596
/* end confdefs.h.  */
 
23597
#include <$ac_header>
 
23598
_ACEOF
 
23599
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
23600
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23601
  ac_status=$?
 
23602
  grep -v '^ *+' conftest.er1 >conftest.err
 
23603
  rm -f conftest.er1
 
23604
  cat conftest.err >&5
 
23605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23606
  (exit $ac_status); } >/dev/null; then
 
23607
  if test -s conftest.err; then
 
23608
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23609
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
23610
  else
 
23611
    ac_cpp_err=
 
23612
  fi
 
23613
else
 
23614
  ac_cpp_err=yes
 
23615
fi
 
23616
if test -z "$ac_cpp_err"; then
 
23617
  ac_header_preproc=yes
 
23618
else
 
23619
  echo "$as_me: failed program was:" >&5
 
23620
sed 's/^/| /' conftest.$ac_ext >&5
 
23621
 
 
23622
  ac_header_preproc=no
 
23623
fi
 
23624
rm -f conftest.err conftest.$ac_ext
 
23625
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23626
echo "${ECHO_T}$ac_header_preproc" >&6
 
23627
 
 
23628
# So?  What about this header?
 
23629
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23630
  yes:no: )
 
23631
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
23632
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23633
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23634
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23635
    ac_header_preproc=yes
 
23636
    ;;
 
23637
  no:yes:* )
 
23638
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
23639
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
23640
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23641
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23642
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23643
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23644
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23645
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23646
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
23647
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23648
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23649
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
23650
    (
 
23651
      cat <<\_ASBOX
 
23652
## ------------------------------------------ ##
 
23653
## Report this to the AC_PACKAGE_NAME lists.  ##
 
23654
## ------------------------------------------ ##
 
23655
_ASBOX
 
23656
    ) |
 
23657
      sed "s/^/$as_me: WARNING:     /" >&2
 
23658
    ;;
 
23659
esac
 
23660
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23661
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23662
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23663
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23664
else
 
23665
  eval "$as_ac_Header=\$ac_header_preproc"
 
23666
fi
 
23667
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23668
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23669
 
 
23670
fi
 
23671
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
23672
  cat >>confdefs.h <<_ACEOF
 
23673
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
23674
_ACEOF
 
23675
 
 
23676
fi
 
23677
 
 
23678
done
 
23679
 
 
23680
 
 
23681
   # darwin requires a poll emulation library
 
23682
   echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
 
23683
echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
 
23684
if test "${ac_cv_lib_poll_poll+set}" = set; then
 
23685
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23686
else
 
23687
  ac_check_lib_save_LIBS=$LIBS
 
23688
LIBS="-lpoll  $LIBS"
 
23689
cat >conftest.$ac_ext <<_ACEOF
 
23690
/* confdefs.h.  */
 
23691
_ACEOF
 
23692
cat confdefs.h >>conftest.$ac_ext
 
23693
cat >>conftest.$ac_ext <<_ACEOF
 
23694
/* end confdefs.h.  */
 
23695
 
 
23696
/* Override any gcc2 internal prototype to avoid an error.  */
 
23697
#ifdef __cplusplus
 
23698
extern "C"
 
23699
#endif
 
23700
/* We use char because int might match the return type of a gcc2
 
23701
   builtin and then its argument prototype would still apply.  */
 
23702
char poll ();
 
23703
int
 
23704
main ()
 
23705
{
 
23706
poll ();
 
23707
  ;
 
23708
  return 0;
 
23709
}
 
23710
_ACEOF
 
23711
rm -f conftest.$ac_objext conftest$ac_exeext
 
23712
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23713
  (eval $ac_link) 2>conftest.er1
 
23714
  ac_status=$?
 
23715
  grep -v '^ *+' conftest.er1 >conftest.err
 
23716
  rm -f conftest.er1
 
23717
  cat conftest.err >&5
 
23718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23719
  (exit $ac_status); } &&
 
23720
         { ac_try='test -z "$ac_c_werror_flag"
 
23721
                         || test ! -s conftest.err'
 
23722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23723
  (eval $ac_try) 2>&5
 
23724
  ac_status=$?
 
23725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23726
  (exit $ac_status); }; } &&
 
23727
         { ac_try='test -s conftest$ac_exeext'
 
23728
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23729
  (eval $ac_try) 2>&5
 
23730
  ac_status=$?
 
23731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23732
  (exit $ac_status); }; }; then
 
23733
  ac_cv_lib_poll_poll=yes
 
23734
else
 
23735
  echo "$as_me: failed program was:" >&5
 
23736
sed 's/^/| /' conftest.$ac_ext >&5
 
23737
 
 
23738
ac_cv_lib_poll_poll=no
 
23739
fi
 
23740
rm -f conftest.err conftest.$ac_objext \
 
23741
      conftest$ac_exeext conftest.$ac_ext
 
23742
LIBS=$ac_check_lib_save_LIBS
 
23743
fi
 
23744
echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
 
23745
echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
 
23746
if test $ac_cv_lib_poll_poll = yes; then
 
23747
  LIB_POLL="-lpoll"
 
23748
fi
 
23749
 
 
23750
 
 
23751
   # CoreAudio framework
 
23752
   if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 
23753
  echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 
23754
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
 
23755
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 
23756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23757
fi
 
23758
echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 
23759
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
 
23760
else
 
23761
  # Is the header compilable?
 
23762
echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
 
23763
echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
 
23764
cat >conftest.$ac_ext <<_ACEOF
 
23765
/* confdefs.h.  */
 
23766
_ACEOF
 
23767
cat confdefs.h >>conftest.$ac_ext
 
23768
cat >>conftest.$ac_ext <<_ACEOF
 
23769
/* end confdefs.h.  */
 
23770
$ac_includes_default
 
23771
#include <CoreAudio/CoreAudio.h>
 
23772
_ACEOF
 
23773
rm -f conftest.$ac_objext
 
23774
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23775
  (eval $ac_compile) 2>conftest.er1
 
23776
  ac_status=$?
 
23777
  grep -v '^ *+' conftest.er1 >conftest.err
 
23778
  rm -f conftest.er1
 
23779
  cat conftest.err >&5
 
23780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23781
  (exit $ac_status); } &&
 
23782
         { ac_try='test -z "$ac_c_werror_flag"
 
23783
                         || test ! -s conftest.err'
 
23784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23785
  (eval $ac_try) 2>&5
 
23786
  ac_status=$?
 
23787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23788
  (exit $ac_status); }; } &&
 
23789
         { ac_try='test -s conftest.$ac_objext'
 
23790
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23791
  (eval $ac_try) 2>&5
 
23792
  ac_status=$?
 
23793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23794
  (exit $ac_status); }; }; then
 
23795
  ac_header_compiler=yes
 
23796
else
 
23797
  echo "$as_me: failed program was:" >&5
 
23798
sed 's/^/| /' conftest.$ac_ext >&5
 
23799
 
 
23800
ac_header_compiler=no
 
23801
fi
 
23802
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23803
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23804
echo "${ECHO_T}$ac_header_compiler" >&6
 
23805
 
 
23806
# Is the header present?
 
23807
echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
 
23808
echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
 
23809
cat >conftest.$ac_ext <<_ACEOF
 
23810
/* confdefs.h.  */
 
23811
_ACEOF
 
23812
cat confdefs.h >>conftest.$ac_ext
 
23813
cat >>conftest.$ac_ext <<_ACEOF
 
23814
/* end confdefs.h.  */
 
23815
#include <CoreAudio/CoreAudio.h>
 
23816
_ACEOF
 
23817
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
23818
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23819
  ac_status=$?
 
23820
  grep -v '^ *+' conftest.er1 >conftest.err
 
23821
  rm -f conftest.er1
 
23822
  cat conftest.err >&5
 
23823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23824
  (exit $ac_status); } >/dev/null; then
 
23825
  if test -s conftest.err; then
 
23826
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23827
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
23828
  else
 
23829
    ac_cpp_err=
 
23830
  fi
 
23831
else
 
23832
  ac_cpp_err=yes
 
23833
fi
 
23834
if test -z "$ac_cpp_err"; then
 
23835
  ac_header_preproc=yes
 
23836
else
 
23837
  echo "$as_me: failed program was:" >&5
 
23838
sed 's/^/| /' conftest.$ac_ext >&5
 
23839
 
 
23840
  ac_header_preproc=no
 
23841
fi
 
23842
rm -f conftest.err conftest.$ac_ext
 
23843
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23844
echo "${ECHO_T}$ac_header_preproc" >&6
 
23845
 
 
23846
# So?  What about this header?
 
23847
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23848
  yes:no: )
 
23849
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
23850
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23851
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
 
23852
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
 
23853
    ac_header_preproc=yes
 
23854
    ;;
 
23855
  no:yes:* )
 
23856
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
 
23857
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
 
23858
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
 
23859
echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
 
23860
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
 
23861
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
 
23862
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
 
23863
echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23864
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
 
23865
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
 
23866
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
 
23867
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
 
23868
    (
 
23869
      cat <<\_ASBOX
 
23870
## ------------------------------------------ ##
 
23871
## Report this to the AC_PACKAGE_NAME lists.  ##
 
23872
## ------------------------------------------ ##
 
23873
_ASBOX
 
23874
    ) |
 
23875
      sed "s/^/$as_me: WARNING:     /" >&2
 
23876
    ;;
 
23877
esac
 
23878
echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 
23879
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
 
23880
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 
23881
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23882
else
 
23883
  ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
 
23884
fi
 
23885
echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 
23886
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
 
23887
 
 
23888
fi
 
23889
if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
 
23890
 
 
23891
 
 
23892
cat >>confdefs.h <<\_ACEOF
 
23893
#define HAVE_COREAUDIO 1
 
23894
_ACEOF
 
23895
 
 
23896
     FRAMEWORK_COREAUDIO="-Xlinker -framework -Xlinker CoreAudio"
 
23897
 
 
23898
fi
 
23899
 
 
23900
 
 
23901
 
 
23902
 
 
23903
  echo "$as_me:$LINENO: checking if res_init needs -lresolv" >&5
 
23904
echo $ECHO_N "checking if res_init needs -lresolv... $ECHO_C" >&6
 
23905
  kde_libs_safe="$LIBS"
 
23906
  LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
 
23907
  cat >conftest.$ac_ext <<_ACEOF
 
23908
/* confdefs.h.  */
 
23909
_ACEOF
 
23910
cat confdefs.h >>conftest.$ac_ext
 
23911
cat >>conftest.$ac_ext <<_ACEOF
 
23912
/* end confdefs.h.  */
 
23913
 
 
23914
#include <sys/types.h>
 
23915
#include <netinet/in.h>
 
23916
#include <arpa/nameser.h>
 
23917
#include <resolv.h>
 
23918
 
 
23919
int
 
23920
main ()
 
23921
{
 
23922
 
 
23923
      res_init();
 
23924
 
 
23925
  ;
 
23926
  return 0;
 
23927
}
 
23928
_ACEOF
 
23929
rm -f conftest.$ac_objext conftest$ac_exeext
 
23930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23931
  (eval $ac_link) 2>conftest.er1
 
23932
  ac_status=$?
 
23933
  grep -v '^ *+' conftest.er1 >conftest.err
 
23934
  rm -f conftest.er1
 
23935
  cat conftest.err >&5
 
23936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23937
  (exit $ac_status); } &&
 
23938
         { ac_try='test -z "$ac_c_werror_flag"
 
23939
                         || test ! -s conftest.err'
 
23940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23941
  (eval $ac_try) 2>&5
 
23942
  ac_status=$?
 
23943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23944
  (exit $ac_status); }; } &&
 
23945
         { ac_try='test -s conftest$ac_exeext'
 
23946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23947
  (eval $ac_try) 2>&5
 
23948
  ac_status=$?
 
23949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23950
  (exit $ac_status); }; }; then
 
23951
 
 
23952
      LIBRESOLV="-lresolv"
 
23953
      echo "$as_me:$LINENO: result: yes" >&5
 
23954
echo "${ECHO_T}yes" >&6
 
23955
 
 
23956
cat >>confdefs.h <<\_ACEOF
 
23957
#define HAVE_RES_INIT 1
 
23958
_ACEOF
 
23959
 
 
23960
 
 
23961
else
 
23962
  echo "$as_me: failed program was:" >&5
 
23963
sed 's/^/| /' conftest.$ac_ext >&5
 
23964
 
 
23965
 echo "$as_me:$LINENO: result: no" >&5
 
23966
echo "${ECHO_T}no" >&6
 
23967
 
 
23968
fi
 
23969
rm -f conftest.err conftest.$ac_objext \
 
23970
      conftest$ac_exeext conftest.$ac_ext
 
23971
  LIBS=$kde_libs_safe
 
23972
 
 
23973
 
 
23974
 
 
23975
echo "$as_me:$LINENO: checking for res_init" >&5
 
23976
echo $ECHO_N "checking for res_init... $ECHO_C" >&6
 
23977
if test "${kde_cv_func_res_init+set}" = set; then
 
23978
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23979
else
 
23980
 
 
23981
 
 
23982
 
 
23983
 ac_ext=cc
 
23984
ac_cpp='$CXXCPP $CPPFLAGS'
 
23985
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23986
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23987
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
23988
 
 
23989
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
23990
 
 
23991
 
 
23992
save_CXXFLAGS="$CXXFLAGS"
 
23993
kde_safe_LIBS="$LIBS"
 
23994
LIBS="$LIBS $X_EXTRA_LIBS"
 
23995
if test "$GXX" = "yes"; then
 
23996
CXXFLAGS="$CXXFLAGS -pedantic-errors"
 
23997
fi
 
23998
cat >conftest.$ac_ext <<_ACEOF
 
23999
/* confdefs.h.  */
 
24000
_ACEOF
 
24001
cat confdefs.h >>conftest.$ac_ext
 
24002
cat >>conftest.$ac_ext <<_ACEOF
 
24003
/* end confdefs.h.  */
 
24004
 
 
24005
 
 
24006
#include <sys/types.h>
 
24007
#include <netinet/in.h>
 
24008
#include <arpa/nameser.h>
 
24009
#include <resolv.h>
 
24010
 
 
24011
 
 
24012
int
 
24013
main ()
 
24014
{
 
24015
 
 
24016
res_init()
 
24017
 
 
24018
  ;
 
24019
  return 0;
 
24020
}
 
24021
_ACEOF
 
24022
rm -f conftest.$ac_objext
 
24023
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24024
  (eval $ac_compile) 2>conftest.er1
 
24025
  ac_status=$?
 
24026
  grep -v '^ *+' conftest.er1 >conftest.err
 
24027
  rm -f conftest.er1
 
24028
  cat conftest.err >&5
 
24029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24030
  (exit $ac_status); } &&
 
24031
         { ac_try='test -z "$ac_cxx_werror_flag"
 
24032
                         || test ! -s conftest.err'
 
24033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24034
  (eval $ac_try) 2>&5
 
24035
  ac_status=$?
 
24036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24037
  (exit $ac_status); }; } &&
 
24038
         { ac_try='test -s conftest.$ac_objext'
 
24039
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24040
  (eval $ac_try) 2>&5
 
24041
  ac_status=$?
 
24042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24043
  (exit $ac_status); }; }; then
 
24044
  kde_cv_func_res_init=yes
 
24045
else
 
24046
  echo "$as_me: failed program was:" >&5
 
24047
sed 's/^/| /' conftest.$ac_ext >&5
 
24048
 
 
24049
kde_cv_func_res_init=no
 
24050
fi
 
24051
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24052
CXXFLAGS="$save_CXXFLAGS"
 
24053
LIBS="$kde_safe_LIBS"
 
24054
ac_ext=c
 
24055
ac_cpp='$CPP $CPPFLAGS'
 
24056
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
24057
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
24058
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
24059
 
 
24060
 
 
24061
fi
 
24062
 
 
24063
 
 
24064
echo "$as_me:$LINENO: result: $kde_cv_func_res_init" >&5
 
24065
echo "${ECHO_T}$kde_cv_func_res_init" >&6
 
24066
 
 
24067
echo "$as_me:$LINENO: checking if res_init needs custom prototype" >&5
 
24068
echo $ECHO_N "checking if res_init needs custom prototype... $ECHO_C" >&6
 
24069
if test "${kde_cv_proto_res_init+set}" = set; then
 
24070
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24071
else
 
24072
 
 
24073
if test "x$kde_cv_func_res_init" = xyes; then
 
24074
  kde_cv_proto_res_init=no
 
24075
else
 
24076
  case "res_init" in
 
24077
        setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
 
24078
                kde_cv_proto_res_init="yes - in libkdefakes"
 
24079
                ;;
 
24080
        *)
 
24081
                kde_cv_proto_res_init=unknown
 
24082
                ;;
 
24083
  esac
 
24084
fi
 
24085
 
 
24086
if test "x$kde_cv_proto_res_init" = xunknown; then
 
24087
 
 
24088
 
 
24089
 
 
24090
 ac_ext=cc
 
24091
ac_cpp='$CXXCPP $CPPFLAGS'
 
24092
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
24093
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
24094
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
24095
 
 
24096
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
24097
 
 
24098
 
 
24099
  kde_safe_libs=$LIBS
 
24100
  LIBS="$LIBS $X_EXTRA_LIBS"
 
24101
  cat >conftest.$ac_ext <<_ACEOF
 
24102
/* confdefs.h.  */
 
24103
_ACEOF
 
24104
cat confdefs.h >>conftest.$ac_ext
 
24105
cat >>conftest.$ac_ext <<_ACEOF
 
24106
/* end confdefs.h.  */
 
24107
 
 
24108
 
 
24109
#include <sys/types.h>
 
24110
#include <netinet/in.h>
 
24111
#include <arpa/nameser.h>
 
24112
#include <resolv.h>
 
24113
 
 
24114
 
 
24115
extern "C" int res_init(void);
 
24116
 
 
24117
int
 
24118
main ()
 
24119
{
 
24120
 
 
24121
res_init()
 
24122
 
 
24123
  ;
 
24124
  return 0;
 
24125
}
 
24126
_ACEOF
 
24127
rm -f conftest.$ac_objext conftest$ac_exeext
 
24128
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24129
  (eval $ac_link) 2>conftest.er1
 
24130
  ac_status=$?
 
24131
  grep -v '^ *+' conftest.er1 >conftest.err
 
24132
  rm -f conftest.er1
 
24133
  cat conftest.err >&5
 
24134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24135
  (exit $ac_status); } &&
 
24136
         { ac_try='test -z "$ac_cxx_werror_flag"
 
24137
                         || test ! -s conftest.err'
 
24138
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24139
  (eval $ac_try) 2>&5
 
24140
  ac_status=$?
 
24141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24142
  (exit $ac_status); }; } &&
 
24143
         { ac_try='test -s conftest$ac_exeext'
 
24144
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24145
  (eval $ac_try) 2>&5
 
24146
  ac_status=$?
 
24147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24148
  (exit $ac_status); }; }; then
 
24149
   kde_cv_func_res_init=yes
 
24150
  kde_cv_proto_res_init=yes
 
24151
else
 
24152
  echo "$as_me: failed program was:" >&5
 
24153
sed 's/^/| /' conftest.$ac_ext >&5
 
24154
 
 
24155
kde_cv_proto_res_init="res_init unavailable"
 
24156
 
 
24157
fi
 
24158
rm -f conftest.err conftest.$ac_objext \
 
24159
      conftest$ac_exeext conftest.$ac_ext
 
24160
LIBS=$kde_safe_libs
 
24161
ac_ext=c
 
24162
ac_cpp='$CPP $CPPFLAGS'
 
24163
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
24164
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
24165
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
24166
 
 
24167
fi
 
24168
 
 
24169
fi
 
24170
 
 
24171
echo "$as_me:$LINENO: result: $kde_cv_proto_res_init" >&5
 
24172
echo "${ECHO_T}$kde_cv_proto_res_init" >&6
 
24173
 
 
24174
if test "x$kde_cv_func_res_init" = xyes; then
 
24175
 
 
24176
cat >>confdefs.h <<\_ACEOF
 
24177
#define HAVE_RES_INIT 1
 
24178
_ACEOF
 
24179
 
 
24180
 
 
24181
fi
 
24182
if test "x$kde_cv_proto_res_init" = xno; then
 
24183
 
 
24184
cat >>confdefs.h <<\_ACEOF
 
24185
#define HAVE_RES_INIT_PROTO 1
 
24186
_ACEOF
 
24187
 
 
24188
fi
 
24189
 
 
24190
 
 
24191
 
 
24192
 
 
24193
 
 
24194
 
 
24195
 
 
24196
   LIBSOCKET="$X_EXTRA_LIBS"
 
24197
 
 
24198
 
 
24199
   echo "$as_me:$LINENO: checking for killpg in -lucb" >&5
 
24200
echo $ECHO_N "checking for killpg in -lucb... $ECHO_C" >&6
 
24201
if test "${ac_cv_lib_ucb_killpg+set}" = set; then
 
24202
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24203
else
 
24204
  ac_check_lib_save_LIBS=$LIBS
 
24205
LIBS="-lucb  $LIBS"
 
24206
cat >conftest.$ac_ext <<_ACEOF
 
24207
/* confdefs.h.  */
 
24208
_ACEOF
 
24209
cat confdefs.h >>conftest.$ac_ext
 
24210
cat >>conftest.$ac_ext <<_ACEOF
 
24211
/* end confdefs.h.  */
 
24212
 
 
24213
/* Override any gcc2 internal prototype to avoid an error.  */
 
24214
#ifdef __cplusplus
 
24215
extern "C"
 
24216
#endif
 
24217
/* We use char because int might match the return type of a gcc2
 
24218
   builtin and then its argument prototype would still apply.  */
 
24219
char killpg ();
 
24220
int
 
24221
main ()
 
24222
{
 
24223
killpg ();
 
24224
  ;
 
24225
  return 0;
 
24226
}
 
24227
_ACEOF
 
24228
rm -f conftest.$ac_objext conftest$ac_exeext
 
24229
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24230
  (eval $ac_link) 2>conftest.er1
 
24231
  ac_status=$?
 
24232
  grep -v '^ *+' conftest.er1 >conftest.err
 
24233
  rm -f conftest.er1
 
24234
  cat conftest.err >&5
 
24235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24236
  (exit $ac_status); } &&
 
24237
         { ac_try='test -z "$ac_c_werror_flag"
 
24238
                         || test ! -s conftest.err'
 
24239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24240
  (eval $ac_try) 2>&5
 
24241
  ac_status=$?
 
24242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24243
  (exit $ac_status); }; } &&
 
24244
         { ac_try='test -s conftest$ac_exeext'
 
24245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24246
  (eval $ac_try) 2>&5
 
24247
  ac_status=$?
 
24248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24249
  (exit $ac_status); }; }; then
 
24250
  ac_cv_lib_ucb_killpg=yes
 
24251
else
 
24252
  echo "$as_me: failed program was:" >&5
 
24253
sed 's/^/| /' conftest.$ac_ext >&5
 
24254
 
 
24255
ac_cv_lib_ucb_killpg=no
 
24256
fi
 
24257
rm -f conftest.err conftest.$ac_objext \
 
24258
      conftest$ac_exeext conftest.$ac_ext
 
24259
LIBS=$ac_check_lib_save_LIBS
 
24260
fi
 
24261
echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5
 
24262
echo "${ECHO_T}$ac_cv_lib_ucb_killpg" >&6
 
24263
if test $ac_cv_lib_ucb_killpg = yes; then
 
24264
  LIBUCB="-lucb"
 
24265
fi
 
24266
 
 
24267
 
 
24268
   case $host in     *-*-lynxos* )
 
24269
        echo "$as_me:$LINENO: checking LynxOS header file wrappers" >&5
 
24270
echo $ECHO_N "checking LynxOS header file wrappers... $ECHO_C" >&6
 
24271
        CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
 
24272
        echo "$as_me:$LINENO: result: disabled" >&5
 
24273
echo "${ECHO_T}disabled" >&6
 
24274
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
 
24275
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
 
24276
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
 
24277
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24278
else
 
24279
  ac_check_lib_save_LIBS=$LIBS
 
24280
LIBS="-lbsd  $LIBS"
 
24281
cat >conftest.$ac_ext <<_ACEOF
 
24282
/* confdefs.h.  */
 
24283
_ACEOF
 
24284
cat confdefs.h >>conftest.$ac_ext
 
24285
cat >>conftest.$ac_ext <<_ACEOF
 
24286
/* end confdefs.h.  */
 
24287
 
 
24288
/* Override any gcc2 internal prototype to avoid an error.  */
 
24289
#ifdef __cplusplus
 
24290
extern "C"
 
24291
#endif
 
24292
/* We use char because int might match the return type of a gcc2
 
24293
   builtin and then its argument prototype would still apply.  */
 
24294
char gethostbyname ();
 
24295
int
 
24296
main ()
 
24297
{
 
24298
gethostbyname ();
 
24299
  ;
 
24300
  return 0;
 
24301
}
 
24302
_ACEOF
 
24303
rm -f conftest.$ac_objext conftest$ac_exeext
 
24304
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24305
  (eval $ac_link) 2>conftest.er1
 
24306
  ac_status=$?
 
24307
  grep -v '^ *+' conftest.er1 >conftest.err
 
24308
  rm -f conftest.er1
 
24309
  cat conftest.err >&5
 
24310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24311
  (exit $ac_status); } &&
 
24312
         { ac_try='test -z "$ac_c_werror_flag"
 
24313
                         || test ! -s conftest.err'
 
24314
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24315
  (eval $ac_try) 2>&5
 
24316
  ac_status=$?
 
24317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24318
  (exit $ac_status); }; } &&
 
24319
         { ac_try='test -s conftest$ac_exeext'
 
24320
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24321
  (eval $ac_try) 2>&5
 
24322
  ac_status=$?
 
24323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24324
  (exit $ac_status); }; }; then
 
24325
  ac_cv_lib_bsd_gethostbyname=yes
 
24326
else
 
24327
  echo "$as_me: failed program was:" >&5
 
24328
sed 's/^/| /' conftest.$ac_ext >&5
 
24329
 
 
24330
ac_cv_lib_bsd_gethostbyname=no
 
24331
fi
 
24332
rm -f conftest.err conftest.$ac_objext \
 
24333
      conftest$ac_exeext conftest.$ac_ext
 
24334
LIBS=$ac_check_lib_save_LIBS
 
24335
fi
 
24336
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
24337
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
 
24338
if test $ac_cv_lib_bsd_gethostbyname = yes; then
 
24339
  LIBSOCKET="-lbsd"
 
24340
fi
 
24341
          ;;
 
24342
    esac
 
24343
 
 
24344
     echo "$as_me:$LINENO: checking for int" >&5
 
24345
echo $ECHO_N "checking for int... $ECHO_C" >&6
 
24346
if test "${ac_cv_type_int+set}" = set; then
 
24347
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24348
else
 
24349
  cat >conftest.$ac_ext <<_ACEOF
 
24350
/* confdefs.h.  */
 
24351
_ACEOF
 
24352
cat confdefs.h >>conftest.$ac_ext
 
24353
cat >>conftest.$ac_ext <<_ACEOF
 
24354
/* end confdefs.h.  */
 
24355
$ac_includes_default
 
24356
int
 
24357
main ()
 
24358
{
 
24359
if ((int *) 0)
 
24360
  return 0;
 
24361
if (sizeof (int))
 
24362
  return 0;
 
24363
  ;
 
24364
  return 0;
 
24365
}
 
24366
_ACEOF
 
24367
rm -f conftest.$ac_objext
 
24368
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24369
  (eval $ac_compile) 2>conftest.er1
 
24370
  ac_status=$?
 
24371
  grep -v '^ *+' conftest.er1 >conftest.err
 
24372
  rm -f conftest.er1
 
24373
  cat conftest.err >&5
 
24374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24375
  (exit $ac_status); } &&
 
24376
         { ac_try='test -z "$ac_c_werror_flag"
 
24377
                         || test ! -s conftest.err'
 
24378
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24379
  (eval $ac_try) 2>&5
 
24380
  ac_status=$?
 
24381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24382
  (exit $ac_status); }; } &&
 
24383
         { ac_try='test -s conftest.$ac_objext'
 
24384
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24385
  (eval $ac_try) 2>&5
 
24386
  ac_status=$?
 
24387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24388
  (exit $ac_status); }; }; then
 
24389
  ac_cv_type_int=yes
 
24390
else
 
24391
  echo "$as_me: failed program was:" >&5
 
24392
sed 's/^/| /' conftest.$ac_ext >&5
 
24393
 
 
24394
ac_cv_type_int=no
 
24395
fi
 
24396
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24397
fi
 
24398
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
24399
echo "${ECHO_T}$ac_cv_type_int" >&6
 
24400
 
 
24401
echo "$as_me:$LINENO: checking size of int" >&5
 
24402
echo $ECHO_N "checking size of int... $ECHO_C" >&6
 
24403
if test "${ac_cv_sizeof_int+set}" = set; then
 
24404
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24405
else
 
24406
  if test "$ac_cv_type_int" = yes; then
 
24407
  # The cast to unsigned long works around a bug in the HP C Compiler
 
24408
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
24409
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
24410
  # This bug is HP SR number 8606223364.
 
24411
  if test "$cross_compiling" = yes; then
 
24412
  # Depending upon the size, compute the lo and hi bounds.
 
24413
cat >conftest.$ac_ext <<_ACEOF
 
24414
/* confdefs.h.  */
 
24415
_ACEOF
 
24416
cat confdefs.h >>conftest.$ac_ext
 
24417
cat >>conftest.$ac_ext <<_ACEOF
 
24418
/* end confdefs.h.  */
 
24419
$ac_includes_default
 
24420
int
 
24421
main ()
 
24422
{
 
24423
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
 
24424
test_array [0] = 0
 
24425
 
 
24426
  ;
 
24427
  return 0;
 
24428
}
 
24429
_ACEOF
 
24430
rm -f conftest.$ac_objext
 
24431
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24432
  (eval $ac_compile) 2>conftest.er1
 
24433
  ac_status=$?
 
24434
  grep -v '^ *+' conftest.er1 >conftest.err
 
24435
  rm -f conftest.er1
 
24436
  cat conftest.err >&5
 
24437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24438
  (exit $ac_status); } &&
 
24439
         { ac_try='test -z "$ac_c_werror_flag"
 
24440
                         || test ! -s conftest.err'
 
24441
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24442
  (eval $ac_try) 2>&5
 
24443
  ac_status=$?
 
24444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24445
  (exit $ac_status); }; } &&
 
24446
         { ac_try='test -s conftest.$ac_objext'
 
24447
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24448
  (eval $ac_try) 2>&5
 
24449
  ac_status=$?
 
24450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24451
  (exit $ac_status); }; }; then
 
24452
  ac_lo=0 ac_mid=0
 
24453
  while :; do
 
24454
    cat >conftest.$ac_ext <<_ACEOF
 
24455
/* confdefs.h.  */
 
24456
_ACEOF
 
24457
cat confdefs.h >>conftest.$ac_ext
 
24458
cat >>conftest.$ac_ext <<_ACEOF
 
24459
/* end confdefs.h.  */
 
24460
$ac_includes_default
 
24461
int
 
24462
main ()
 
24463
{
 
24464
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
24465
test_array [0] = 0
 
24466
 
 
24467
  ;
 
24468
  return 0;
 
24469
}
 
24470
_ACEOF
 
24471
rm -f conftest.$ac_objext
 
24472
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24473
  (eval $ac_compile) 2>conftest.er1
 
24474
  ac_status=$?
 
24475
  grep -v '^ *+' conftest.er1 >conftest.err
 
24476
  rm -f conftest.er1
 
24477
  cat conftest.err >&5
 
24478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24479
  (exit $ac_status); } &&
 
24480
         { ac_try='test -z "$ac_c_werror_flag"
 
24481
                         || test ! -s conftest.err'
 
24482
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24483
  (eval $ac_try) 2>&5
 
24484
  ac_status=$?
 
24485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24486
  (exit $ac_status); }; } &&
 
24487
         { ac_try='test -s conftest.$ac_objext'
 
24488
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24489
  (eval $ac_try) 2>&5
 
24490
  ac_status=$?
 
24491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24492
  (exit $ac_status); }; }; then
 
24493
  ac_hi=$ac_mid; break
 
24494
else
 
24495
  echo "$as_me: failed program was:" >&5
 
24496
sed 's/^/| /' conftest.$ac_ext >&5
 
24497
 
 
24498
ac_lo=`expr $ac_mid + 1`
 
24499
                    if test $ac_lo -le $ac_mid; then
 
24500
                      ac_lo= ac_hi=
 
24501
                      break
 
24502
                    fi
 
24503
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
24504
fi
 
24505
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24506
  done
 
24507
else
 
24508
  echo "$as_me: failed program was:" >&5
 
24509
sed 's/^/| /' conftest.$ac_ext >&5
 
24510
 
 
24511
cat >conftest.$ac_ext <<_ACEOF
 
24512
/* confdefs.h.  */
 
24513
_ACEOF
 
24514
cat confdefs.h >>conftest.$ac_ext
 
24515
cat >>conftest.$ac_ext <<_ACEOF
 
24516
/* end confdefs.h.  */
 
24517
$ac_includes_default
 
24518
int
 
24519
main ()
 
24520
{
 
24521
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
 
24522
test_array [0] = 0
 
24523
 
 
24524
  ;
 
24525
  return 0;
 
24526
}
 
24527
_ACEOF
 
24528
rm -f conftest.$ac_objext
 
24529
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24530
  (eval $ac_compile) 2>conftest.er1
 
24531
  ac_status=$?
 
24532
  grep -v '^ *+' conftest.er1 >conftest.err
 
24533
  rm -f conftest.er1
 
24534
  cat conftest.err >&5
 
24535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24536
  (exit $ac_status); } &&
 
24537
         { ac_try='test -z "$ac_c_werror_flag"
 
24538
                         || test ! -s conftest.err'
 
24539
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24540
  (eval $ac_try) 2>&5
 
24541
  ac_status=$?
 
24542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24543
  (exit $ac_status); }; } &&
 
24544
         { ac_try='test -s conftest.$ac_objext'
 
24545
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24546
  (eval $ac_try) 2>&5
 
24547
  ac_status=$?
 
24548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24549
  (exit $ac_status); }; }; then
 
24550
  ac_hi=-1 ac_mid=-1
 
24551
  while :; do
 
24552
    cat >conftest.$ac_ext <<_ACEOF
 
24553
/* confdefs.h.  */
 
24554
_ACEOF
 
24555
cat confdefs.h >>conftest.$ac_ext
 
24556
cat >>conftest.$ac_ext <<_ACEOF
 
24557
/* end confdefs.h.  */
 
24558
$ac_includes_default
 
24559
int
 
24560
main ()
 
24561
{
 
24562
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
 
24563
test_array [0] = 0
 
24564
 
 
24565
  ;
 
24566
  return 0;
 
24567
}
 
24568
_ACEOF
 
24569
rm -f conftest.$ac_objext
 
24570
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24571
  (eval $ac_compile) 2>conftest.er1
 
24572
  ac_status=$?
 
24573
  grep -v '^ *+' conftest.er1 >conftest.err
 
24574
  rm -f conftest.er1
 
24575
  cat conftest.err >&5
 
24576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24577
  (exit $ac_status); } &&
 
24578
         { ac_try='test -z "$ac_c_werror_flag"
 
24579
                         || test ! -s conftest.err'
 
24580
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24581
  (eval $ac_try) 2>&5
 
24582
  ac_status=$?
 
24583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24584
  (exit $ac_status); }; } &&
 
24585
         { ac_try='test -s conftest.$ac_objext'
 
24586
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24587
  (eval $ac_try) 2>&5
 
24588
  ac_status=$?
 
24589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24590
  (exit $ac_status); }; }; then
 
24591
  ac_lo=$ac_mid; break
 
24592
else
 
24593
  echo "$as_me: failed program was:" >&5
 
24594
sed 's/^/| /' conftest.$ac_ext >&5
 
24595
 
 
24596
ac_hi=`expr '(' $ac_mid ')' - 1`
 
24597
                       if test $ac_mid -le $ac_hi; then
 
24598
                         ac_lo= ac_hi=
 
24599
                         break
 
24600
                       fi
 
24601
                       ac_mid=`expr 2 '*' $ac_mid`
 
24602
fi
 
24603
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24604
  done
 
24605
else
 
24606
  echo "$as_me: failed program was:" >&5
 
24607
sed 's/^/| /' conftest.$ac_ext >&5
 
24608
 
 
24609
ac_lo= ac_hi=
 
24610
fi
 
24611
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24612
fi
 
24613
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24614
# Binary search between lo and hi bounds.
 
24615
while test "x$ac_lo" != "x$ac_hi"; do
 
24616
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
24617
  cat >conftest.$ac_ext <<_ACEOF
 
24618
/* confdefs.h.  */
 
24619
_ACEOF
 
24620
cat confdefs.h >>conftest.$ac_ext
 
24621
cat >>conftest.$ac_ext <<_ACEOF
 
24622
/* end confdefs.h.  */
 
24623
$ac_includes_default
 
24624
int
 
24625
main ()
 
24626
{
 
24627
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
24628
test_array [0] = 0
 
24629
 
 
24630
  ;
 
24631
  return 0;
 
24632
}
 
24633
_ACEOF
 
24634
rm -f conftest.$ac_objext
 
24635
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24636
  (eval $ac_compile) 2>conftest.er1
 
24637
  ac_status=$?
 
24638
  grep -v '^ *+' conftest.er1 >conftest.err
 
24639
  rm -f conftest.er1
 
24640
  cat conftest.err >&5
 
24641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24642
  (exit $ac_status); } &&
 
24643
         { ac_try='test -z "$ac_c_werror_flag"
 
24644
                         || test ! -s conftest.err'
 
24645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24646
  (eval $ac_try) 2>&5
 
24647
  ac_status=$?
 
24648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24649
  (exit $ac_status); }; } &&
 
24650
         { ac_try='test -s conftest.$ac_objext'
 
24651
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24652
  (eval $ac_try) 2>&5
 
24653
  ac_status=$?
 
24654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24655
  (exit $ac_status); }; }; then
 
24656
  ac_hi=$ac_mid
 
24657
else
 
24658
  echo "$as_me: failed program was:" >&5
 
24659
sed 's/^/| /' conftest.$ac_ext >&5
 
24660
 
 
24661
ac_lo=`expr '(' $ac_mid ')' + 1`
 
24662
fi
 
24663
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24664
done
 
24665
case $ac_lo in
 
24666
?*) ac_cv_sizeof_int=$ac_lo;;
 
24667
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
24668
See \`config.log' for more details." >&5
 
24669
echo "$as_me: error: cannot compute sizeof (int), 77
 
24670
See \`config.log' for more details." >&2;}
 
24671
   { (exit 1); exit 1; }; } ;;
 
24672
esac
 
24673
else
 
24674
  if test "$cross_compiling" = yes; then
 
24675
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
24676
See \`config.log' for more details." >&5
 
24677
echo "$as_me: error: cannot run test program while cross compiling
 
24678
See \`config.log' for more details." >&2;}
 
24679
   { (exit 1); exit 1; }; }
 
24680
else
 
24681
  cat >conftest.$ac_ext <<_ACEOF
 
24682
/* confdefs.h.  */
 
24683
_ACEOF
 
24684
cat confdefs.h >>conftest.$ac_ext
 
24685
cat >>conftest.$ac_ext <<_ACEOF
 
24686
/* end confdefs.h.  */
 
24687
$ac_includes_default
 
24688
long longval () { return (long) (sizeof (int)); }
 
24689
unsigned long ulongval () { return (long) (sizeof (int)); }
 
24690
#include <stdio.h>
 
24691
#include <stdlib.h>
 
24692
int
 
24693
main ()
 
24694
{
 
24695
 
 
24696
  FILE *f = fopen ("conftest.val", "w");
 
24697
  if (! f)
 
24698
    exit (1);
 
24699
  if (((long) (sizeof (int))) < 0)
 
24700
    {
 
24701
      long i = longval ();
 
24702
      if (i != ((long) (sizeof (int))))
 
24703
        exit (1);
 
24704
      fprintf (f, "%ld\n", i);
 
24705
    }
 
24706
  else
 
24707
    {
 
24708
      unsigned long i = ulongval ();
 
24709
      if (i != ((long) (sizeof (int))))
 
24710
        exit (1);
 
24711
      fprintf (f, "%lu\n", i);
 
24712
    }
 
24713
  exit (ferror (f) || fclose (f) != 0);
 
24714
 
 
24715
  ;
 
24716
  return 0;
 
24717
}
 
24718
_ACEOF
 
24719
rm -f conftest$ac_exeext
 
24720
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24721
  (eval $ac_link) 2>&5
 
24722
  ac_status=$?
 
24723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24724
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24726
  (eval $ac_try) 2>&5
 
24727
  ac_status=$?
 
24728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24729
  (exit $ac_status); }; }; then
 
24730
  ac_cv_sizeof_int=`cat conftest.val`
 
24731
else
 
24732
  echo "$as_me: program exited with status $ac_status" >&5
 
24733
echo "$as_me: failed program was:" >&5
 
24734
sed 's/^/| /' conftest.$ac_ext >&5
 
24735
 
 
24736
( exit $ac_status )
 
24737
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
24738
See \`config.log' for more details." >&5
 
24739
echo "$as_me: error: cannot compute sizeof (int), 77
 
24740
See \`config.log' for more details." >&2;}
 
24741
   { (exit 1); exit 1; }; }
 
24742
fi
 
24743
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24744
fi
 
24745
fi
 
24746
rm -f conftest.val
 
24747
else
 
24748
  ac_cv_sizeof_int=0
 
24749
fi
 
24750
fi
 
24751
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
24752
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
 
24753
cat >>confdefs.h <<_ACEOF
 
24754
#define SIZEOF_INT $ac_cv_sizeof_int
 
24755
_ACEOF
 
24756
 
 
24757
   echo "$as_me:$LINENO: checking for short" >&5
 
24758
echo $ECHO_N "checking for short... $ECHO_C" >&6
 
24759
if test "${ac_cv_type_short+set}" = set; then
 
24760
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24761
else
 
24762
  cat >conftest.$ac_ext <<_ACEOF
 
24763
/* confdefs.h.  */
 
24764
_ACEOF
 
24765
cat confdefs.h >>conftest.$ac_ext
 
24766
cat >>conftest.$ac_ext <<_ACEOF
 
24767
/* end confdefs.h.  */
 
24768
$ac_includes_default
 
24769
int
 
24770
main ()
 
24771
{
 
24772
if ((short *) 0)
 
24773
  return 0;
 
24774
if (sizeof (short))
 
24775
  return 0;
 
24776
  ;
 
24777
  return 0;
 
24778
}
 
24779
_ACEOF
 
24780
rm -f conftest.$ac_objext
 
24781
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24782
  (eval $ac_compile) 2>conftest.er1
 
24783
  ac_status=$?
 
24784
  grep -v '^ *+' conftest.er1 >conftest.err
 
24785
  rm -f conftest.er1
 
24786
  cat conftest.err >&5
 
24787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24788
  (exit $ac_status); } &&
 
24789
         { ac_try='test -z "$ac_c_werror_flag"
 
24790
                         || test ! -s conftest.err'
 
24791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24792
  (eval $ac_try) 2>&5
 
24793
  ac_status=$?
 
24794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24795
  (exit $ac_status); }; } &&
 
24796
         { ac_try='test -s conftest.$ac_objext'
 
24797
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24798
  (eval $ac_try) 2>&5
 
24799
  ac_status=$?
 
24800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24801
  (exit $ac_status); }; }; then
 
24802
  ac_cv_type_short=yes
 
24803
else
 
24804
  echo "$as_me: failed program was:" >&5
 
24805
sed 's/^/| /' conftest.$ac_ext >&5
 
24806
 
 
24807
ac_cv_type_short=no
 
24808
fi
 
24809
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24810
fi
 
24811
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
 
24812
echo "${ECHO_T}$ac_cv_type_short" >&6
 
24813
 
 
24814
echo "$as_me:$LINENO: checking size of short" >&5
 
24815
echo $ECHO_N "checking size of short... $ECHO_C" >&6
 
24816
if test "${ac_cv_sizeof_short+set}" = set; then
 
24817
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24818
else
 
24819
  if test "$ac_cv_type_short" = yes; then
 
24820
  # The cast to unsigned long works around a bug in the HP C Compiler
 
24821
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
24822
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
24823
  # This bug is HP SR number 8606223364.
 
24824
  if test "$cross_compiling" = yes; then
 
24825
  # Depending upon the size, compute the lo and hi bounds.
 
24826
cat >conftest.$ac_ext <<_ACEOF
 
24827
/* confdefs.h.  */
 
24828
_ACEOF
 
24829
cat confdefs.h >>conftest.$ac_ext
 
24830
cat >>conftest.$ac_ext <<_ACEOF
 
24831
/* end confdefs.h.  */
 
24832
$ac_includes_default
 
24833
int
 
24834
main ()
 
24835
{
 
24836
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
 
24837
test_array [0] = 0
 
24838
 
 
24839
  ;
 
24840
  return 0;
 
24841
}
 
24842
_ACEOF
 
24843
rm -f conftest.$ac_objext
 
24844
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24845
  (eval $ac_compile) 2>conftest.er1
 
24846
  ac_status=$?
 
24847
  grep -v '^ *+' conftest.er1 >conftest.err
 
24848
  rm -f conftest.er1
 
24849
  cat conftest.err >&5
 
24850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24851
  (exit $ac_status); } &&
 
24852
         { ac_try='test -z "$ac_c_werror_flag"
 
24853
                         || test ! -s conftest.err'
 
24854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24855
  (eval $ac_try) 2>&5
 
24856
  ac_status=$?
 
24857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24858
  (exit $ac_status); }; } &&
 
24859
         { ac_try='test -s conftest.$ac_objext'
 
24860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24861
  (eval $ac_try) 2>&5
 
24862
  ac_status=$?
 
24863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24864
  (exit $ac_status); }; }; then
 
24865
  ac_lo=0 ac_mid=0
 
24866
  while :; do
 
24867
    cat >conftest.$ac_ext <<_ACEOF
 
24868
/* confdefs.h.  */
 
24869
_ACEOF
 
24870
cat confdefs.h >>conftest.$ac_ext
 
24871
cat >>conftest.$ac_ext <<_ACEOF
 
24872
/* end confdefs.h.  */
 
24873
$ac_includes_default
 
24874
int
 
24875
main ()
 
24876
{
 
24877
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
24878
test_array [0] = 0
 
24879
 
 
24880
  ;
 
24881
  return 0;
 
24882
}
 
24883
_ACEOF
 
24884
rm -f conftest.$ac_objext
 
24885
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24886
  (eval $ac_compile) 2>conftest.er1
 
24887
  ac_status=$?
 
24888
  grep -v '^ *+' conftest.er1 >conftest.err
 
24889
  rm -f conftest.er1
 
24890
  cat conftest.err >&5
 
24891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24892
  (exit $ac_status); } &&
 
24893
         { ac_try='test -z "$ac_c_werror_flag"
 
24894
                         || test ! -s conftest.err'
 
24895
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24896
  (eval $ac_try) 2>&5
 
24897
  ac_status=$?
 
24898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24899
  (exit $ac_status); }; } &&
 
24900
         { ac_try='test -s conftest.$ac_objext'
 
24901
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24902
  (eval $ac_try) 2>&5
 
24903
  ac_status=$?
 
24904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24905
  (exit $ac_status); }; }; then
 
24906
  ac_hi=$ac_mid; break
 
24907
else
 
24908
  echo "$as_me: failed program was:" >&5
 
24909
sed 's/^/| /' conftest.$ac_ext >&5
 
24910
 
 
24911
ac_lo=`expr $ac_mid + 1`
 
24912
                    if test $ac_lo -le $ac_mid; then
 
24913
                      ac_lo= ac_hi=
 
24914
                      break
 
24915
                    fi
 
24916
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
24917
fi
 
24918
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24919
  done
 
24920
else
 
24921
  echo "$as_me: failed program was:" >&5
 
24922
sed 's/^/| /' conftest.$ac_ext >&5
 
24923
 
 
24924
cat >conftest.$ac_ext <<_ACEOF
 
24925
/* confdefs.h.  */
 
24926
_ACEOF
 
24927
cat confdefs.h >>conftest.$ac_ext
 
24928
cat >>conftest.$ac_ext <<_ACEOF
 
24929
/* end confdefs.h.  */
 
24930
$ac_includes_default
 
24931
int
 
24932
main ()
 
24933
{
 
24934
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
 
24935
test_array [0] = 0
 
24936
 
 
24937
  ;
 
24938
  return 0;
 
24939
}
 
24940
_ACEOF
 
24941
rm -f conftest.$ac_objext
 
24942
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24943
  (eval $ac_compile) 2>conftest.er1
 
24944
  ac_status=$?
 
24945
  grep -v '^ *+' conftest.er1 >conftest.err
 
24946
  rm -f conftest.er1
 
24947
  cat conftest.err >&5
 
24948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24949
  (exit $ac_status); } &&
 
24950
         { ac_try='test -z "$ac_c_werror_flag"
 
24951
                         || test ! -s conftest.err'
 
24952
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24953
  (eval $ac_try) 2>&5
 
24954
  ac_status=$?
 
24955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24956
  (exit $ac_status); }; } &&
 
24957
         { ac_try='test -s conftest.$ac_objext'
 
24958
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24959
  (eval $ac_try) 2>&5
 
24960
  ac_status=$?
 
24961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24962
  (exit $ac_status); }; }; then
 
24963
  ac_hi=-1 ac_mid=-1
 
24964
  while :; do
 
24965
    cat >conftest.$ac_ext <<_ACEOF
 
24966
/* confdefs.h.  */
 
24967
_ACEOF
 
24968
cat confdefs.h >>conftest.$ac_ext
 
24969
cat >>conftest.$ac_ext <<_ACEOF
 
24970
/* end confdefs.h.  */
 
24971
$ac_includes_default
 
24972
int
 
24973
main ()
 
24974
{
 
24975
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
 
24976
test_array [0] = 0
 
24977
 
 
24978
  ;
 
24979
  return 0;
 
24980
}
 
24981
_ACEOF
 
24982
rm -f conftest.$ac_objext
 
24983
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24984
  (eval $ac_compile) 2>conftest.er1
 
24985
  ac_status=$?
 
24986
  grep -v '^ *+' conftest.er1 >conftest.err
 
24987
  rm -f conftest.er1
 
24988
  cat conftest.err >&5
 
24989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24990
  (exit $ac_status); } &&
 
24991
         { ac_try='test -z "$ac_c_werror_flag"
 
24992
                         || test ! -s conftest.err'
 
24993
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24994
  (eval $ac_try) 2>&5
 
24995
  ac_status=$?
 
24996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24997
  (exit $ac_status); }; } &&
 
24998
         { ac_try='test -s conftest.$ac_objext'
 
24999
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25000
  (eval $ac_try) 2>&5
 
25001
  ac_status=$?
 
25002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25003
  (exit $ac_status); }; }; then
 
25004
  ac_lo=$ac_mid; break
 
25005
else
 
25006
  echo "$as_me: failed program was:" >&5
 
25007
sed 's/^/| /' conftest.$ac_ext >&5
 
25008
 
 
25009
ac_hi=`expr '(' $ac_mid ')' - 1`
 
25010
                       if test $ac_mid -le $ac_hi; then
 
25011
                         ac_lo= ac_hi=
 
25012
                         break
 
25013
                       fi
 
25014
                       ac_mid=`expr 2 '*' $ac_mid`
 
25015
fi
 
25016
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25017
  done
 
25018
else
 
25019
  echo "$as_me: failed program was:" >&5
 
25020
sed 's/^/| /' conftest.$ac_ext >&5
 
25021
 
 
25022
ac_lo= ac_hi=
 
25023
fi
 
25024
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25025
fi
 
25026
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25027
# Binary search between lo and hi bounds.
 
25028
while test "x$ac_lo" != "x$ac_hi"; do
 
25029
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
25030
  cat >conftest.$ac_ext <<_ACEOF
 
25031
/* confdefs.h.  */
 
25032
_ACEOF
 
25033
cat confdefs.h >>conftest.$ac_ext
 
25034
cat >>conftest.$ac_ext <<_ACEOF
 
25035
/* end confdefs.h.  */
 
25036
$ac_includes_default
 
25037
int
 
25038
main ()
 
25039
{
 
25040
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
25041
test_array [0] = 0
 
25042
 
 
25043
  ;
 
25044
  return 0;
 
25045
}
 
25046
_ACEOF
 
25047
rm -f conftest.$ac_objext
 
25048
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25049
  (eval $ac_compile) 2>conftest.er1
 
25050
  ac_status=$?
 
25051
  grep -v '^ *+' conftest.er1 >conftest.err
 
25052
  rm -f conftest.er1
 
25053
  cat conftest.err >&5
 
25054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25055
  (exit $ac_status); } &&
 
25056
         { ac_try='test -z "$ac_c_werror_flag"
 
25057
                         || test ! -s conftest.err'
 
25058
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25059
  (eval $ac_try) 2>&5
 
25060
  ac_status=$?
 
25061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25062
  (exit $ac_status); }; } &&
 
25063
         { ac_try='test -s conftest.$ac_objext'
 
25064
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25065
  (eval $ac_try) 2>&5
 
25066
  ac_status=$?
 
25067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25068
  (exit $ac_status); }; }; then
 
25069
  ac_hi=$ac_mid
 
25070
else
 
25071
  echo "$as_me: failed program was:" >&5
 
25072
sed 's/^/| /' conftest.$ac_ext >&5
 
25073
 
 
25074
ac_lo=`expr '(' $ac_mid ')' + 1`
 
25075
fi
 
25076
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25077
done
 
25078
case $ac_lo in
 
25079
?*) ac_cv_sizeof_short=$ac_lo;;
 
25080
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
25081
See \`config.log' for more details." >&5
 
25082
echo "$as_me: error: cannot compute sizeof (short), 77
 
25083
See \`config.log' for more details." >&2;}
 
25084
   { (exit 1); exit 1; }; } ;;
 
25085
esac
 
25086
else
 
25087
  if test "$cross_compiling" = yes; then
 
25088
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
25089
See \`config.log' for more details." >&5
 
25090
echo "$as_me: error: cannot run test program while cross compiling
 
25091
See \`config.log' for more details." >&2;}
 
25092
   { (exit 1); exit 1; }; }
 
25093
else
 
25094
  cat >conftest.$ac_ext <<_ACEOF
 
25095
/* confdefs.h.  */
 
25096
_ACEOF
 
25097
cat confdefs.h >>conftest.$ac_ext
 
25098
cat >>conftest.$ac_ext <<_ACEOF
 
25099
/* end confdefs.h.  */
 
25100
$ac_includes_default
 
25101
long longval () { return (long) (sizeof (short)); }
 
25102
unsigned long ulongval () { return (long) (sizeof (short)); }
 
25103
#include <stdio.h>
 
25104
#include <stdlib.h>
 
25105
int
 
25106
main ()
 
25107
{
 
25108
 
 
25109
  FILE *f = fopen ("conftest.val", "w");
 
25110
  if (! f)
 
25111
    exit (1);
 
25112
  if (((long) (sizeof (short))) < 0)
 
25113
    {
 
25114
      long i = longval ();
 
25115
      if (i != ((long) (sizeof (short))))
 
25116
        exit (1);
 
25117
      fprintf (f, "%ld\n", i);
 
25118
    }
 
25119
  else
 
25120
    {
 
25121
      unsigned long i = ulongval ();
 
25122
      if (i != ((long) (sizeof (short))))
 
25123
        exit (1);
 
25124
      fprintf (f, "%lu\n", i);
 
25125
    }
 
25126
  exit (ferror (f) || fclose (f) != 0);
 
25127
 
 
25128
  ;
 
25129
  return 0;
 
25130
}
 
25131
_ACEOF
 
25132
rm -f conftest$ac_exeext
 
25133
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25134
  (eval $ac_link) 2>&5
 
25135
  ac_status=$?
 
25136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25137
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
25138
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25139
  (eval $ac_try) 2>&5
 
25140
  ac_status=$?
 
25141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25142
  (exit $ac_status); }; }; then
 
25143
  ac_cv_sizeof_short=`cat conftest.val`
 
25144
else
 
25145
  echo "$as_me: program exited with status $ac_status" >&5
 
25146
echo "$as_me: failed program was:" >&5
 
25147
sed 's/^/| /' conftest.$ac_ext >&5
 
25148
 
 
25149
( exit $ac_status )
 
25150
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
25151
See \`config.log' for more details." >&5
 
25152
echo "$as_me: error: cannot compute sizeof (short), 77
 
25153
See \`config.log' for more details." >&2;}
 
25154
   { (exit 1); exit 1; }; }
 
25155
fi
 
25156
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
25157
fi
 
25158
fi
 
25159
rm -f conftest.val
 
25160
else
 
25161
  ac_cv_sizeof_short=0
 
25162
fi
 
25163
fi
 
25164
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
25165
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
 
25166
cat >>confdefs.h <<_ACEOF
 
25167
#define SIZEOF_SHORT $ac_cv_sizeof_short
 
25168
_ACEOF
 
25169
 
 
25170
  echo "$as_me:$LINENO: checking for long" >&5
 
25171
echo $ECHO_N "checking for long... $ECHO_C" >&6
 
25172
if test "${ac_cv_type_long+set}" = set; then
 
25173
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25174
else
 
25175
  cat >conftest.$ac_ext <<_ACEOF
 
25176
/* confdefs.h.  */
 
25177
_ACEOF
 
25178
cat confdefs.h >>conftest.$ac_ext
 
25179
cat >>conftest.$ac_ext <<_ACEOF
 
25180
/* end confdefs.h.  */
 
25181
$ac_includes_default
 
25182
int
 
25183
main ()
 
25184
{
 
25185
if ((long *) 0)
 
25186
  return 0;
 
25187
if (sizeof (long))
 
25188
  return 0;
 
25189
  ;
 
25190
  return 0;
 
25191
}
 
25192
_ACEOF
 
25193
rm -f conftest.$ac_objext
 
25194
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25195
  (eval $ac_compile) 2>conftest.er1
 
25196
  ac_status=$?
 
25197
  grep -v '^ *+' conftest.er1 >conftest.err
 
25198
  rm -f conftest.er1
 
25199
  cat conftest.err >&5
 
25200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25201
  (exit $ac_status); } &&
 
25202
         { ac_try='test -z "$ac_c_werror_flag"
 
25203
                         || test ! -s conftest.err'
 
25204
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25205
  (eval $ac_try) 2>&5
 
25206
  ac_status=$?
 
25207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25208
  (exit $ac_status); }; } &&
 
25209
         { ac_try='test -s conftest.$ac_objext'
 
25210
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25211
  (eval $ac_try) 2>&5
 
25212
  ac_status=$?
 
25213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25214
  (exit $ac_status); }; }; then
 
25215
  ac_cv_type_long=yes
 
25216
else
 
25217
  echo "$as_me: failed program was:" >&5
 
25218
sed 's/^/| /' conftest.$ac_ext >&5
 
25219
 
 
25220
ac_cv_type_long=no
 
25221
fi
 
25222
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25223
fi
 
25224
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
25225
echo "${ECHO_T}$ac_cv_type_long" >&6
 
25226
 
 
25227
echo "$as_me:$LINENO: checking size of long" >&5
 
25228
echo $ECHO_N "checking size of long... $ECHO_C" >&6
 
25229
if test "${ac_cv_sizeof_long+set}" = set; then
 
25230
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25231
else
 
25232
  if test "$ac_cv_type_long" = yes; then
 
25233
  # The cast to unsigned long works around a bug in the HP C Compiler
 
25234
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
25235
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
25236
  # This bug is HP SR number 8606223364.
 
25237
  if test "$cross_compiling" = yes; then
 
25238
  # Depending upon the size, compute the lo and hi bounds.
 
25239
cat >conftest.$ac_ext <<_ACEOF
 
25240
/* confdefs.h.  */
 
25241
_ACEOF
 
25242
cat confdefs.h >>conftest.$ac_ext
 
25243
cat >>conftest.$ac_ext <<_ACEOF
 
25244
/* end confdefs.h.  */
 
25245
$ac_includes_default
 
25246
int
 
25247
main ()
 
25248
{
 
25249
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
 
25250
test_array [0] = 0
 
25251
 
 
25252
  ;
 
25253
  return 0;
 
25254
}
 
25255
_ACEOF
 
25256
rm -f conftest.$ac_objext
 
25257
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25258
  (eval $ac_compile) 2>conftest.er1
 
25259
  ac_status=$?
 
25260
  grep -v '^ *+' conftest.er1 >conftest.err
 
25261
  rm -f conftest.er1
 
25262
  cat conftest.err >&5
 
25263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25264
  (exit $ac_status); } &&
 
25265
         { ac_try='test -z "$ac_c_werror_flag"
 
25266
                         || test ! -s conftest.err'
 
25267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25268
  (eval $ac_try) 2>&5
 
25269
  ac_status=$?
 
25270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25271
  (exit $ac_status); }; } &&
 
25272
         { ac_try='test -s conftest.$ac_objext'
 
25273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25274
  (eval $ac_try) 2>&5
 
25275
  ac_status=$?
 
25276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25277
  (exit $ac_status); }; }; then
 
25278
  ac_lo=0 ac_mid=0
 
25279
  while :; do
 
25280
    cat >conftest.$ac_ext <<_ACEOF
 
25281
/* confdefs.h.  */
 
25282
_ACEOF
 
25283
cat confdefs.h >>conftest.$ac_ext
 
25284
cat >>conftest.$ac_ext <<_ACEOF
 
25285
/* end confdefs.h.  */
 
25286
$ac_includes_default
 
25287
int
 
25288
main ()
 
25289
{
 
25290
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
25291
test_array [0] = 0
 
25292
 
 
25293
  ;
 
25294
  return 0;
 
25295
}
 
25296
_ACEOF
 
25297
rm -f conftest.$ac_objext
 
25298
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25299
  (eval $ac_compile) 2>conftest.er1
 
25300
  ac_status=$?
 
25301
  grep -v '^ *+' conftest.er1 >conftest.err
 
25302
  rm -f conftest.er1
 
25303
  cat conftest.err >&5
 
25304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25305
  (exit $ac_status); } &&
 
25306
         { ac_try='test -z "$ac_c_werror_flag"
 
25307
                         || test ! -s conftest.err'
 
25308
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25309
  (eval $ac_try) 2>&5
 
25310
  ac_status=$?
 
25311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25312
  (exit $ac_status); }; } &&
 
25313
         { ac_try='test -s conftest.$ac_objext'
 
25314
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25315
  (eval $ac_try) 2>&5
 
25316
  ac_status=$?
 
25317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25318
  (exit $ac_status); }; }; then
 
25319
  ac_hi=$ac_mid; break
 
25320
else
 
25321
  echo "$as_me: failed program was:" >&5
 
25322
sed 's/^/| /' conftest.$ac_ext >&5
 
25323
 
 
25324
ac_lo=`expr $ac_mid + 1`
 
25325
                    if test $ac_lo -le $ac_mid; then
 
25326
                      ac_lo= ac_hi=
 
25327
                      break
 
25328
                    fi
 
25329
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
25330
fi
 
25331
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25332
  done
 
25333
else
 
25334
  echo "$as_me: failed program was:" >&5
 
25335
sed 's/^/| /' conftest.$ac_ext >&5
 
25336
 
 
25337
cat >conftest.$ac_ext <<_ACEOF
 
25338
/* confdefs.h.  */
 
25339
_ACEOF
 
25340
cat confdefs.h >>conftest.$ac_ext
 
25341
cat >>conftest.$ac_ext <<_ACEOF
 
25342
/* end confdefs.h.  */
 
25343
$ac_includes_default
 
25344
int
 
25345
main ()
 
25346
{
 
25347
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
 
25348
test_array [0] = 0
 
25349
 
 
25350
  ;
 
25351
  return 0;
 
25352
}
 
25353
_ACEOF
 
25354
rm -f conftest.$ac_objext
 
25355
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25356
  (eval $ac_compile) 2>conftest.er1
 
25357
  ac_status=$?
 
25358
  grep -v '^ *+' conftest.er1 >conftest.err
 
25359
  rm -f conftest.er1
 
25360
  cat conftest.err >&5
 
25361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25362
  (exit $ac_status); } &&
 
25363
         { ac_try='test -z "$ac_c_werror_flag"
 
25364
                         || test ! -s conftest.err'
 
25365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25366
  (eval $ac_try) 2>&5
 
25367
  ac_status=$?
 
25368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25369
  (exit $ac_status); }; } &&
 
25370
         { ac_try='test -s conftest.$ac_objext'
 
25371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25372
  (eval $ac_try) 2>&5
 
25373
  ac_status=$?
 
25374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25375
  (exit $ac_status); }; }; then
 
25376
  ac_hi=-1 ac_mid=-1
 
25377
  while :; do
 
25378
    cat >conftest.$ac_ext <<_ACEOF
 
25379
/* confdefs.h.  */
 
25380
_ACEOF
 
25381
cat confdefs.h >>conftest.$ac_ext
 
25382
cat >>conftest.$ac_ext <<_ACEOF
 
25383
/* end confdefs.h.  */
 
25384
$ac_includes_default
 
25385
int
 
25386
main ()
 
25387
{
 
25388
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
 
25389
test_array [0] = 0
 
25390
 
 
25391
  ;
 
25392
  return 0;
 
25393
}
 
25394
_ACEOF
 
25395
rm -f conftest.$ac_objext
 
25396
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25397
  (eval $ac_compile) 2>conftest.er1
 
25398
  ac_status=$?
 
25399
  grep -v '^ *+' conftest.er1 >conftest.err
 
25400
  rm -f conftest.er1
 
25401
  cat conftest.err >&5
 
25402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25403
  (exit $ac_status); } &&
 
25404
         { ac_try='test -z "$ac_c_werror_flag"
 
25405
                         || test ! -s conftest.err'
 
25406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25407
  (eval $ac_try) 2>&5
 
25408
  ac_status=$?
 
25409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25410
  (exit $ac_status); }; } &&
 
25411
         { ac_try='test -s conftest.$ac_objext'
 
25412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25413
  (eval $ac_try) 2>&5
 
25414
  ac_status=$?
 
25415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25416
  (exit $ac_status); }; }; then
 
25417
  ac_lo=$ac_mid; break
 
25418
else
 
25419
  echo "$as_me: failed program was:" >&5
 
25420
sed 's/^/| /' conftest.$ac_ext >&5
 
25421
 
 
25422
ac_hi=`expr '(' $ac_mid ')' - 1`
 
25423
                       if test $ac_mid -le $ac_hi; then
 
25424
                         ac_lo= ac_hi=
 
25425
                         break
 
25426
                       fi
 
25427
                       ac_mid=`expr 2 '*' $ac_mid`
 
25428
fi
 
25429
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25430
  done
 
25431
else
 
25432
  echo "$as_me: failed program was:" >&5
 
25433
sed 's/^/| /' conftest.$ac_ext >&5
 
25434
 
 
25435
ac_lo= ac_hi=
 
25436
fi
 
25437
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25438
fi
 
25439
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25440
# Binary search between lo and hi bounds.
 
25441
while test "x$ac_lo" != "x$ac_hi"; do
 
25442
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
25443
  cat >conftest.$ac_ext <<_ACEOF
 
25444
/* confdefs.h.  */
 
25445
_ACEOF
 
25446
cat confdefs.h >>conftest.$ac_ext
 
25447
cat >>conftest.$ac_ext <<_ACEOF
 
25448
/* end confdefs.h.  */
 
25449
$ac_includes_default
 
25450
int
 
25451
main ()
 
25452
{
 
25453
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
25454
test_array [0] = 0
 
25455
 
 
25456
  ;
 
25457
  return 0;
 
25458
}
 
25459
_ACEOF
 
25460
rm -f conftest.$ac_objext
 
25461
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25462
  (eval $ac_compile) 2>conftest.er1
 
25463
  ac_status=$?
 
25464
  grep -v '^ *+' conftest.er1 >conftest.err
 
25465
  rm -f conftest.er1
 
25466
  cat conftest.err >&5
 
25467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25468
  (exit $ac_status); } &&
 
25469
         { ac_try='test -z "$ac_c_werror_flag"
 
25470
                         || test ! -s conftest.err'
 
25471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25472
  (eval $ac_try) 2>&5
 
25473
  ac_status=$?
 
25474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25475
  (exit $ac_status); }; } &&
 
25476
         { ac_try='test -s conftest.$ac_objext'
 
25477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25478
  (eval $ac_try) 2>&5
 
25479
  ac_status=$?
 
25480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25481
  (exit $ac_status); }; }; then
 
25482
  ac_hi=$ac_mid
 
25483
else
 
25484
  echo "$as_me: failed program was:" >&5
 
25485
sed 's/^/| /' conftest.$ac_ext >&5
 
25486
 
 
25487
ac_lo=`expr '(' $ac_mid ')' + 1`
 
25488
fi
 
25489
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25490
done
 
25491
case $ac_lo in
 
25492
?*) ac_cv_sizeof_long=$ac_lo;;
 
25493
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
25494
See \`config.log' for more details." >&5
 
25495
echo "$as_me: error: cannot compute sizeof (long), 77
 
25496
See \`config.log' for more details." >&2;}
 
25497
   { (exit 1); exit 1; }; } ;;
 
25498
esac
 
25499
else
 
25500
  if test "$cross_compiling" = yes; then
 
25501
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
25502
See \`config.log' for more details." >&5
 
25503
echo "$as_me: error: cannot run test program while cross compiling
 
25504
See \`config.log' for more details." >&2;}
 
25505
   { (exit 1); exit 1; }; }
 
25506
else
 
25507
  cat >conftest.$ac_ext <<_ACEOF
 
25508
/* confdefs.h.  */
 
25509
_ACEOF
 
25510
cat confdefs.h >>conftest.$ac_ext
 
25511
cat >>conftest.$ac_ext <<_ACEOF
 
25512
/* end confdefs.h.  */
 
25513
$ac_includes_default
 
25514
long longval () { return (long) (sizeof (long)); }
 
25515
unsigned long ulongval () { return (long) (sizeof (long)); }
 
25516
#include <stdio.h>
 
25517
#include <stdlib.h>
 
25518
int
 
25519
main ()
 
25520
{
 
25521
 
 
25522
  FILE *f = fopen ("conftest.val", "w");
 
25523
  if (! f)
 
25524
    exit (1);
 
25525
  if (((long) (sizeof (long))) < 0)
 
25526
    {
 
25527
      long i = longval ();
 
25528
      if (i != ((long) (sizeof (long))))
 
25529
        exit (1);
 
25530
      fprintf (f, "%ld\n", i);
 
25531
    }
 
25532
  else
 
25533
    {
 
25534
      unsigned long i = ulongval ();
 
25535
      if (i != ((long) (sizeof (long))))
 
25536
        exit (1);
 
25537
      fprintf (f, "%lu\n", i);
 
25538
    }
 
25539
  exit (ferror (f) || fclose (f) != 0);
 
25540
 
 
25541
  ;
 
25542
  return 0;
 
25543
}
 
25544
_ACEOF
 
25545
rm -f conftest$ac_exeext
 
25546
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25547
  (eval $ac_link) 2>&5
 
25548
  ac_status=$?
 
25549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25550
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
25551
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25552
  (eval $ac_try) 2>&5
 
25553
  ac_status=$?
 
25554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25555
  (exit $ac_status); }; }; then
 
25556
  ac_cv_sizeof_long=`cat conftest.val`
 
25557
else
 
25558
  echo "$as_me: program exited with status $ac_status" >&5
 
25559
echo "$as_me: failed program was:" >&5
 
25560
sed 's/^/| /' conftest.$ac_ext >&5
 
25561
 
 
25562
( exit $ac_status )
 
25563
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
25564
See \`config.log' for more details." >&5
 
25565
echo "$as_me: error: cannot compute sizeof (long), 77
 
25566
See \`config.log' for more details." >&2;}
 
25567
   { (exit 1); exit 1; }; }
 
25568
fi
 
25569
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
25570
fi
 
25571
fi
 
25572
rm -f conftest.val
 
25573
else
 
25574
  ac_cv_sizeof_long=0
 
25575
fi
 
25576
fi
 
25577
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
25578
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
 
25579
cat >>confdefs.h <<_ACEOF
 
25580
#define SIZEOF_LONG $ac_cv_sizeof_long
 
25581
_ACEOF
 
25582
 
 
25583
  echo "$as_me:$LINENO: checking for char *" >&5
 
25584
echo $ECHO_N "checking for char *... $ECHO_C" >&6
 
25585
if test "${ac_cv_type_char_p+set}" = set; then
 
25586
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25587
else
 
25588
  cat >conftest.$ac_ext <<_ACEOF
 
25589
/* confdefs.h.  */
 
25590
_ACEOF
 
25591
cat confdefs.h >>conftest.$ac_ext
 
25592
cat >>conftest.$ac_ext <<_ACEOF
 
25593
/* end confdefs.h.  */
 
25594
$ac_includes_default
 
25595
int
 
25596
main ()
 
25597
{
 
25598
if ((char * *) 0)
 
25599
  return 0;
 
25600
if (sizeof (char *))
 
25601
  return 0;
 
25602
  ;
 
25603
  return 0;
 
25604
}
 
25605
_ACEOF
 
25606
rm -f conftest.$ac_objext
 
25607
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25608
  (eval $ac_compile) 2>conftest.er1
 
25609
  ac_status=$?
 
25610
  grep -v '^ *+' conftest.er1 >conftest.err
 
25611
  rm -f conftest.er1
 
25612
  cat conftest.err >&5
 
25613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25614
  (exit $ac_status); } &&
 
25615
         { ac_try='test -z "$ac_c_werror_flag"
 
25616
                         || test ! -s conftest.err'
 
25617
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25618
  (eval $ac_try) 2>&5
 
25619
  ac_status=$?
 
25620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25621
  (exit $ac_status); }; } &&
 
25622
         { ac_try='test -s conftest.$ac_objext'
 
25623
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25624
  (eval $ac_try) 2>&5
 
25625
  ac_status=$?
 
25626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25627
  (exit $ac_status); }; }; then
 
25628
  ac_cv_type_char_p=yes
 
25629
else
 
25630
  echo "$as_me: failed program was:" >&5
 
25631
sed 's/^/| /' conftest.$ac_ext >&5
 
25632
 
 
25633
ac_cv_type_char_p=no
 
25634
fi
 
25635
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25636
fi
 
25637
echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
 
25638
echo "${ECHO_T}$ac_cv_type_char_p" >&6
 
25639
 
 
25640
echo "$as_me:$LINENO: checking size of char *" >&5
 
25641
echo $ECHO_N "checking size of char *... $ECHO_C" >&6
 
25642
if test "${ac_cv_sizeof_char_p+set}" = set; then
 
25643
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25644
else
 
25645
  if test "$ac_cv_type_char_p" = yes; then
 
25646
  # The cast to unsigned long works around a bug in the HP C Compiler
 
25647
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
25648
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
25649
  # This bug is HP SR number 8606223364.
 
25650
  if test "$cross_compiling" = yes; then
 
25651
  # Depending upon the size, compute the lo and hi bounds.
 
25652
cat >conftest.$ac_ext <<_ACEOF
 
25653
/* confdefs.h.  */
 
25654
_ACEOF
 
25655
cat confdefs.h >>conftest.$ac_ext
 
25656
cat >>conftest.$ac_ext <<_ACEOF
 
25657
/* end confdefs.h.  */
 
25658
$ac_includes_default
 
25659
int
 
25660
main ()
 
25661
{
 
25662
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
 
25663
test_array [0] = 0
 
25664
 
 
25665
  ;
 
25666
  return 0;
 
25667
}
 
25668
_ACEOF
 
25669
rm -f conftest.$ac_objext
 
25670
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25671
  (eval $ac_compile) 2>conftest.er1
 
25672
  ac_status=$?
 
25673
  grep -v '^ *+' conftest.er1 >conftest.err
 
25674
  rm -f conftest.er1
 
25675
  cat conftest.err >&5
 
25676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25677
  (exit $ac_status); } &&
 
25678
         { ac_try='test -z "$ac_c_werror_flag"
 
25679
                         || test ! -s conftest.err'
 
25680
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25681
  (eval $ac_try) 2>&5
 
25682
  ac_status=$?
 
25683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25684
  (exit $ac_status); }; } &&
 
25685
         { ac_try='test -s conftest.$ac_objext'
 
25686
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25687
  (eval $ac_try) 2>&5
 
25688
  ac_status=$?
 
25689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25690
  (exit $ac_status); }; }; then
 
25691
  ac_lo=0 ac_mid=0
 
25692
  while :; do
 
25693
    cat >conftest.$ac_ext <<_ACEOF
 
25694
/* confdefs.h.  */
 
25695
_ACEOF
 
25696
cat confdefs.h >>conftest.$ac_ext
 
25697
cat >>conftest.$ac_ext <<_ACEOF
 
25698
/* end confdefs.h.  */
 
25699
$ac_includes_default
 
25700
int
 
25701
main ()
 
25702
{
 
25703
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
 
25704
test_array [0] = 0
 
25705
 
 
25706
  ;
 
25707
  return 0;
 
25708
}
 
25709
_ACEOF
 
25710
rm -f conftest.$ac_objext
 
25711
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25712
  (eval $ac_compile) 2>conftest.er1
 
25713
  ac_status=$?
 
25714
  grep -v '^ *+' conftest.er1 >conftest.err
 
25715
  rm -f conftest.er1
 
25716
  cat conftest.err >&5
 
25717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25718
  (exit $ac_status); } &&
 
25719
         { ac_try='test -z "$ac_c_werror_flag"
 
25720
                         || test ! -s conftest.err'
 
25721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25722
  (eval $ac_try) 2>&5
 
25723
  ac_status=$?
 
25724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25725
  (exit $ac_status); }; } &&
 
25726
         { ac_try='test -s conftest.$ac_objext'
 
25727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25728
  (eval $ac_try) 2>&5
 
25729
  ac_status=$?
 
25730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25731
  (exit $ac_status); }; }; then
 
25732
  ac_hi=$ac_mid; break
 
25733
else
 
25734
  echo "$as_me: failed program was:" >&5
 
25735
sed 's/^/| /' conftest.$ac_ext >&5
 
25736
 
 
25737
ac_lo=`expr $ac_mid + 1`
 
25738
                    if test $ac_lo -le $ac_mid; then
 
25739
                      ac_lo= ac_hi=
 
25740
                      break
 
25741
                    fi
 
25742
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
25743
fi
 
25744
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25745
  done
 
25746
else
 
25747
  echo "$as_me: failed program was:" >&5
 
25748
sed 's/^/| /' conftest.$ac_ext >&5
 
25749
 
 
25750
cat >conftest.$ac_ext <<_ACEOF
 
25751
/* confdefs.h.  */
 
25752
_ACEOF
 
25753
cat confdefs.h >>conftest.$ac_ext
 
25754
cat >>conftest.$ac_ext <<_ACEOF
 
25755
/* end confdefs.h.  */
 
25756
$ac_includes_default
 
25757
int
 
25758
main ()
 
25759
{
 
25760
static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
 
25761
test_array [0] = 0
 
25762
 
 
25763
  ;
 
25764
  return 0;
 
25765
}
 
25766
_ACEOF
 
25767
rm -f conftest.$ac_objext
 
25768
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25769
  (eval $ac_compile) 2>conftest.er1
 
25770
  ac_status=$?
 
25771
  grep -v '^ *+' conftest.er1 >conftest.err
 
25772
  rm -f conftest.er1
 
25773
  cat conftest.err >&5
 
25774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25775
  (exit $ac_status); } &&
 
25776
         { ac_try='test -z "$ac_c_werror_flag"
 
25777
                         || test ! -s conftest.err'
 
25778
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25779
  (eval $ac_try) 2>&5
 
25780
  ac_status=$?
 
25781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25782
  (exit $ac_status); }; } &&
 
25783
         { ac_try='test -s conftest.$ac_objext'
 
25784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25785
  (eval $ac_try) 2>&5
 
25786
  ac_status=$?
 
25787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25788
  (exit $ac_status); }; }; then
 
25789
  ac_hi=-1 ac_mid=-1
 
25790
  while :; do
 
25791
    cat >conftest.$ac_ext <<_ACEOF
 
25792
/* confdefs.h.  */
 
25793
_ACEOF
 
25794
cat confdefs.h >>conftest.$ac_ext
 
25795
cat >>conftest.$ac_ext <<_ACEOF
 
25796
/* end confdefs.h.  */
 
25797
$ac_includes_default
 
25798
int
 
25799
main ()
 
25800
{
 
25801
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
 
25802
test_array [0] = 0
 
25803
 
 
25804
  ;
 
25805
  return 0;
 
25806
}
 
25807
_ACEOF
 
25808
rm -f conftest.$ac_objext
 
25809
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25810
  (eval $ac_compile) 2>conftest.er1
 
25811
  ac_status=$?
 
25812
  grep -v '^ *+' conftest.er1 >conftest.err
 
25813
  rm -f conftest.er1
 
25814
  cat conftest.err >&5
 
25815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25816
  (exit $ac_status); } &&
 
25817
         { ac_try='test -z "$ac_c_werror_flag"
 
25818
                         || test ! -s conftest.err'
 
25819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25820
  (eval $ac_try) 2>&5
 
25821
  ac_status=$?
 
25822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25823
  (exit $ac_status); }; } &&
 
25824
         { ac_try='test -s conftest.$ac_objext'
 
25825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25826
  (eval $ac_try) 2>&5
 
25827
  ac_status=$?
 
25828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25829
  (exit $ac_status); }; }; then
 
25830
  ac_lo=$ac_mid; break
 
25831
else
 
25832
  echo "$as_me: failed program was:" >&5
 
25833
sed 's/^/| /' conftest.$ac_ext >&5
 
25834
 
 
25835
ac_hi=`expr '(' $ac_mid ')' - 1`
 
25836
                       if test $ac_mid -le $ac_hi; then
 
25837
                         ac_lo= ac_hi=
 
25838
                         break
 
25839
                       fi
 
25840
                       ac_mid=`expr 2 '*' $ac_mid`
 
25841
fi
 
25842
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25843
  done
 
25844
else
 
25845
  echo "$as_me: failed program was:" >&5
 
25846
sed 's/^/| /' conftest.$ac_ext >&5
 
25847
 
 
25848
ac_lo= ac_hi=
 
25849
fi
 
25850
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25851
fi
 
25852
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25853
# Binary search between lo and hi bounds.
 
25854
while test "x$ac_lo" != "x$ac_hi"; do
 
25855
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
25856
  cat >conftest.$ac_ext <<_ACEOF
 
25857
/* confdefs.h.  */
 
25858
_ACEOF
 
25859
cat confdefs.h >>conftest.$ac_ext
 
25860
cat >>conftest.$ac_ext <<_ACEOF
 
25861
/* end confdefs.h.  */
 
25862
$ac_includes_default
 
25863
int
 
25864
main ()
 
25865
{
 
25866
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
 
25867
test_array [0] = 0
 
25868
 
 
25869
  ;
 
25870
  return 0;
 
25871
}
 
25872
_ACEOF
 
25873
rm -f conftest.$ac_objext
 
25874
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25875
  (eval $ac_compile) 2>conftest.er1
 
25876
  ac_status=$?
 
25877
  grep -v '^ *+' conftest.er1 >conftest.err
 
25878
  rm -f conftest.er1
 
25879
  cat conftest.err >&5
 
25880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25881
  (exit $ac_status); } &&
 
25882
         { ac_try='test -z "$ac_c_werror_flag"
 
25883
                         || test ! -s conftest.err'
 
25884
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25885
  (eval $ac_try) 2>&5
 
25886
  ac_status=$?
 
25887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25888
  (exit $ac_status); }; } &&
 
25889
         { ac_try='test -s conftest.$ac_objext'
 
25890
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25891
  (eval $ac_try) 2>&5
 
25892
  ac_status=$?
 
25893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25894
  (exit $ac_status); }; }; then
 
25895
  ac_hi=$ac_mid
 
25896
else
 
25897
  echo "$as_me: failed program was:" >&5
 
25898
sed 's/^/| /' conftest.$ac_ext >&5
 
25899
 
 
25900
ac_lo=`expr '(' $ac_mid ')' + 1`
 
25901
fi
 
25902
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25903
done
 
25904
case $ac_lo in
 
25905
?*) ac_cv_sizeof_char_p=$ac_lo;;
 
25906
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
 
25907
See \`config.log' for more details." >&5
 
25908
echo "$as_me: error: cannot compute sizeof (char *), 77
 
25909
See \`config.log' for more details." >&2;}
 
25910
   { (exit 1); exit 1; }; } ;;
 
25911
esac
 
25912
else
 
25913
  if test "$cross_compiling" = yes; then
 
25914
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
25915
See \`config.log' for more details." >&5
 
25916
echo "$as_me: error: cannot run test program while cross compiling
 
25917
See \`config.log' for more details." >&2;}
 
25918
   { (exit 1); exit 1; }; }
 
25919
else
 
25920
  cat >conftest.$ac_ext <<_ACEOF
 
25921
/* confdefs.h.  */
 
25922
_ACEOF
 
25923
cat confdefs.h >>conftest.$ac_ext
 
25924
cat >>conftest.$ac_ext <<_ACEOF
 
25925
/* end confdefs.h.  */
 
25926
$ac_includes_default
 
25927
long longval () { return (long) (sizeof (char *)); }
 
25928
unsigned long ulongval () { return (long) (sizeof (char *)); }
 
25929
#include <stdio.h>
 
25930
#include <stdlib.h>
 
25931
int
 
25932
main ()
 
25933
{
 
25934
 
 
25935
  FILE *f = fopen ("conftest.val", "w");
 
25936
  if (! f)
 
25937
    exit (1);
 
25938
  if (((long) (sizeof (char *))) < 0)
 
25939
    {
 
25940
      long i = longval ();
 
25941
      if (i != ((long) (sizeof (char *))))
 
25942
        exit (1);
 
25943
      fprintf (f, "%ld\n", i);
 
25944
    }
 
25945
  else
 
25946
    {
 
25947
      unsigned long i = ulongval ();
 
25948
      if (i != ((long) (sizeof (char *))))
 
25949
        exit (1);
 
25950
      fprintf (f, "%lu\n", i);
 
25951
    }
 
25952
  exit (ferror (f) || fclose (f) != 0);
 
25953
 
 
25954
  ;
 
25955
  return 0;
 
25956
}
 
25957
_ACEOF
 
25958
rm -f conftest$ac_exeext
 
25959
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25960
  (eval $ac_link) 2>&5
 
25961
  ac_status=$?
 
25962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25963
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
25964
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25965
  (eval $ac_try) 2>&5
 
25966
  ac_status=$?
 
25967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25968
  (exit $ac_status); }; }; then
 
25969
  ac_cv_sizeof_char_p=`cat conftest.val`
 
25970
else
 
25971
  echo "$as_me: program exited with status $ac_status" >&5
 
25972
echo "$as_me: failed program was:" >&5
 
25973
sed 's/^/| /' conftest.$ac_ext >&5
 
25974
 
 
25975
( exit $ac_status )
 
25976
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
 
25977
See \`config.log' for more details." >&5
 
25978
echo "$as_me: error: cannot compute sizeof (char *), 77
 
25979
See \`config.log' for more details." >&2;}
 
25980
   { (exit 1); exit 1; }; }
 
25981
fi
 
25982
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
25983
fi
 
25984
fi
 
25985
rm -f conftest.val
 
25986
else
 
25987
  ac_cv_sizeof_char_p=0
 
25988
fi
 
25989
fi
 
25990
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
 
25991
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
 
25992
cat >>confdefs.h <<_ACEOF
 
25993
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
 
25994
_ACEOF
 
25995
 
 
25996
 
 
25997
 
 
25998
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
25999
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
26000
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
26001
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26002
else
 
26003
  ac_check_lib_save_LIBS=$LIBS
 
26004
LIBS="-ldl  $LIBS"
 
26005
cat >conftest.$ac_ext <<_ACEOF
 
26006
/* confdefs.h.  */
 
26007
_ACEOF
 
26008
cat confdefs.h >>conftest.$ac_ext
 
26009
cat >>conftest.$ac_ext <<_ACEOF
 
26010
/* end confdefs.h.  */
 
26011
 
 
26012
/* Override any gcc2 internal prototype to avoid an error.  */
 
26013
#ifdef __cplusplus
 
26014
extern "C"
 
26015
#endif
 
26016
/* We use char because int might match the return type of a gcc2
 
26017
   builtin and then its argument prototype would still apply.  */
 
26018
char dlopen ();
 
26019
int
 
26020
main ()
 
26021
{
 
26022
dlopen ();
 
26023
  ;
 
26024
  return 0;
 
26025
}
 
26026
_ACEOF
 
26027
rm -f conftest.$ac_objext conftest$ac_exeext
 
26028
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26029
  (eval $ac_link) 2>conftest.er1
 
26030
  ac_status=$?
 
26031
  grep -v '^ *+' conftest.er1 >conftest.err
 
26032
  rm -f conftest.er1
 
26033
  cat conftest.err >&5
 
26034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26035
  (exit $ac_status); } &&
 
26036
         { ac_try='test -z "$ac_c_werror_flag"
 
26037
                         || test ! -s conftest.err'
 
26038
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26039
  (eval $ac_try) 2>&5
 
26040
  ac_status=$?
 
26041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26042
  (exit $ac_status); }; } &&
 
26043
         { ac_try='test -s conftest$ac_exeext'
 
26044
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26045
  (eval $ac_try) 2>&5
 
26046
  ac_status=$?
 
26047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26048
  (exit $ac_status); }; }; then
 
26049
  ac_cv_lib_dl_dlopen=yes
 
26050
else
 
26051
  echo "$as_me: failed program was:" >&5
 
26052
sed 's/^/| /' conftest.$ac_ext >&5
 
26053
 
 
26054
ac_cv_lib_dl_dlopen=no
 
26055
fi
 
26056
rm -f conftest.err conftest.$ac_objext \
 
26057
      conftest$ac_exeext conftest.$ac_ext
 
26058
LIBS=$ac_check_lib_save_LIBS
 
26059
fi
 
26060
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
26061
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
26062
if test $ac_cv_lib_dl_dlopen = yes; then
 
26063
 
 
26064
LIBDL="-ldl"
 
26065
ac_cv_have_dlfcn=yes
 
26066
 
 
26067
fi
 
26068
 
 
26069
 
 
26070
echo "$as_me:$LINENO: checking for shl_unload in -ldld" >&5
 
26071
echo $ECHO_N "checking for shl_unload in -ldld... $ECHO_C" >&6
 
26072
if test "${ac_cv_lib_dld_shl_unload+set}" = set; then
 
26073
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26074
else
 
26075
  ac_check_lib_save_LIBS=$LIBS
 
26076
LIBS="-ldld  $LIBS"
 
26077
cat >conftest.$ac_ext <<_ACEOF
 
26078
/* confdefs.h.  */
 
26079
_ACEOF
 
26080
cat confdefs.h >>conftest.$ac_ext
 
26081
cat >>conftest.$ac_ext <<_ACEOF
 
26082
/* end confdefs.h.  */
 
26083
 
 
26084
/* Override any gcc2 internal prototype to avoid an error.  */
 
26085
#ifdef __cplusplus
 
26086
extern "C"
 
26087
#endif
 
26088
/* We use char because int might match the return type of a gcc2
 
26089
   builtin and then its argument prototype would still apply.  */
 
26090
char shl_unload ();
 
26091
int
 
26092
main ()
 
26093
{
 
26094
shl_unload ();
 
26095
  ;
 
26096
  return 0;
 
26097
}
 
26098
_ACEOF
 
26099
rm -f conftest.$ac_objext conftest$ac_exeext
 
26100
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26101
  (eval $ac_link) 2>conftest.er1
 
26102
  ac_status=$?
 
26103
  grep -v '^ *+' conftest.er1 >conftest.err
 
26104
  rm -f conftest.er1
 
26105
  cat conftest.err >&5
 
26106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26107
  (exit $ac_status); } &&
 
26108
         { ac_try='test -z "$ac_c_werror_flag"
 
26109
                         || test ! -s conftest.err'
 
26110
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26111
  (eval $ac_try) 2>&5
 
26112
  ac_status=$?
 
26113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26114
  (exit $ac_status); }; } &&
 
26115
         { ac_try='test -s conftest$ac_exeext'
 
26116
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26117
  (eval $ac_try) 2>&5
 
26118
  ac_status=$?
 
26119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26120
  (exit $ac_status); }; }; then
 
26121
  ac_cv_lib_dld_shl_unload=yes
 
26122
else
 
26123
  echo "$as_me: failed program was:" >&5
 
26124
sed 's/^/| /' conftest.$ac_ext >&5
 
26125
 
 
26126
ac_cv_lib_dld_shl_unload=no
 
26127
fi
 
26128
rm -f conftest.err conftest.$ac_objext \
 
26129
      conftest$ac_exeext conftest.$ac_ext
 
26130
LIBS=$ac_check_lib_save_LIBS
 
26131
fi
 
26132
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5
 
26133
echo "${ECHO_T}$ac_cv_lib_dld_shl_unload" >&6
 
26134
if test $ac_cv_lib_dld_shl_unload = yes; then
 
26135
 
 
26136
LIBDL="-ldld"
 
26137
ac_cv_have_shload=yes
 
26138
 
 
26139
fi
 
26140
 
 
26141
 
 
26142
 
 
26143
 
 
26144
 
 
26145
 
 
26146
 
 
26147
  echo "$as_me:$LINENO: checking for size_t" >&5
 
26148
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
26149
if test "${ac_cv_type_size_t+set}" = set; then
 
26150
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26151
else
 
26152
  cat >conftest.$ac_ext <<_ACEOF
 
26153
/* confdefs.h.  */
 
26154
_ACEOF
 
26155
cat confdefs.h >>conftest.$ac_ext
 
26156
cat >>conftest.$ac_ext <<_ACEOF
 
26157
/* end confdefs.h.  */
 
26158
$ac_includes_default
 
26159
int
 
26160
main ()
 
26161
{
 
26162
if ((size_t *) 0)
 
26163
  return 0;
 
26164
if (sizeof (size_t))
 
26165
  return 0;
 
26166
  ;
 
26167
  return 0;
 
26168
}
 
26169
_ACEOF
 
26170
rm -f conftest.$ac_objext
 
26171
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26172
  (eval $ac_compile) 2>conftest.er1
 
26173
  ac_status=$?
 
26174
  grep -v '^ *+' conftest.er1 >conftest.err
 
26175
  rm -f conftest.er1
 
26176
  cat conftest.err >&5
 
26177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26178
  (exit $ac_status); } &&
 
26179
         { ac_try='test -z "$ac_c_werror_flag"
 
26180
                         || test ! -s conftest.err'
 
26181
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26182
  (eval $ac_try) 2>&5
 
26183
  ac_status=$?
 
26184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26185
  (exit $ac_status); }; } &&
 
26186
         { ac_try='test -s conftest.$ac_objext'
 
26187
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26188
  (eval $ac_try) 2>&5
 
26189
  ac_status=$?
 
26190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26191
  (exit $ac_status); }; }; then
 
26192
  ac_cv_type_size_t=yes
 
26193
else
 
26194
  echo "$as_me: failed program was:" >&5
 
26195
sed 's/^/| /' conftest.$ac_ext >&5
 
26196
 
 
26197
ac_cv_type_size_t=no
 
26198
fi
 
26199
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26200
fi
 
26201
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
26202
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
26203
 
 
26204
echo "$as_me:$LINENO: checking size of size_t" >&5
 
26205
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
 
26206
if test "${ac_cv_sizeof_size_t+set}" = set; then
 
26207
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26208
else
 
26209
  if test "$ac_cv_type_size_t" = yes; then
 
26210
  # The cast to unsigned long works around a bug in the HP C Compiler
 
26211
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
26212
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
26213
  # This bug is HP SR number 8606223364.
 
26214
  if test "$cross_compiling" = yes; then
 
26215
  # Depending upon the size, compute the lo and hi bounds.
 
26216
cat >conftest.$ac_ext <<_ACEOF
 
26217
/* confdefs.h.  */
 
26218
_ACEOF
 
26219
cat confdefs.h >>conftest.$ac_ext
 
26220
cat >>conftest.$ac_ext <<_ACEOF
 
26221
/* end confdefs.h.  */
 
26222
$ac_includes_default
 
26223
int
 
26224
main ()
 
26225
{
 
26226
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
 
26227
test_array [0] = 0
 
26228
 
 
26229
  ;
 
26230
  return 0;
 
26231
}
 
26232
_ACEOF
 
26233
rm -f conftest.$ac_objext
 
26234
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26235
  (eval $ac_compile) 2>conftest.er1
 
26236
  ac_status=$?
 
26237
  grep -v '^ *+' conftest.er1 >conftest.err
 
26238
  rm -f conftest.er1
 
26239
  cat conftest.err >&5
 
26240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26241
  (exit $ac_status); } &&
 
26242
         { ac_try='test -z "$ac_c_werror_flag"
 
26243
                         || test ! -s conftest.err'
 
26244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26245
  (eval $ac_try) 2>&5
 
26246
  ac_status=$?
 
26247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26248
  (exit $ac_status); }; } &&
 
26249
         { ac_try='test -s conftest.$ac_objext'
 
26250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26251
  (eval $ac_try) 2>&5
 
26252
  ac_status=$?
 
26253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26254
  (exit $ac_status); }; }; then
 
26255
  ac_lo=0 ac_mid=0
 
26256
  while :; do
 
26257
    cat >conftest.$ac_ext <<_ACEOF
 
26258
/* confdefs.h.  */
 
26259
_ACEOF
 
26260
cat confdefs.h >>conftest.$ac_ext
 
26261
cat >>conftest.$ac_ext <<_ACEOF
 
26262
/* end confdefs.h.  */
 
26263
$ac_includes_default
 
26264
int
 
26265
main ()
 
26266
{
 
26267
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
 
26268
test_array [0] = 0
 
26269
 
 
26270
  ;
 
26271
  return 0;
 
26272
}
 
26273
_ACEOF
 
26274
rm -f conftest.$ac_objext
 
26275
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26276
  (eval $ac_compile) 2>conftest.er1
 
26277
  ac_status=$?
 
26278
  grep -v '^ *+' conftest.er1 >conftest.err
 
26279
  rm -f conftest.er1
 
26280
  cat conftest.err >&5
 
26281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26282
  (exit $ac_status); } &&
 
26283
         { ac_try='test -z "$ac_c_werror_flag"
 
26284
                         || test ! -s conftest.err'
 
26285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26286
  (eval $ac_try) 2>&5
 
26287
  ac_status=$?
 
26288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26289
  (exit $ac_status); }; } &&
 
26290
         { ac_try='test -s conftest.$ac_objext'
 
26291
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26292
  (eval $ac_try) 2>&5
 
26293
  ac_status=$?
 
26294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26295
  (exit $ac_status); }; }; then
 
26296
  ac_hi=$ac_mid; break
 
26297
else
 
26298
  echo "$as_me: failed program was:" >&5
 
26299
sed 's/^/| /' conftest.$ac_ext >&5
 
26300
 
 
26301
ac_lo=`expr $ac_mid + 1`
 
26302
                    if test $ac_lo -le $ac_mid; then
 
26303
                      ac_lo= ac_hi=
 
26304
                      break
 
26305
                    fi
 
26306
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
26307
fi
 
26308
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26309
  done
 
26310
else
 
26311
  echo "$as_me: failed program was:" >&5
 
26312
sed 's/^/| /' conftest.$ac_ext >&5
 
26313
 
 
26314
cat >conftest.$ac_ext <<_ACEOF
 
26315
/* confdefs.h.  */
 
26316
_ACEOF
 
26317
cat confdefs.h >>conftest.$ac_ext
 
26318
cat >>conftest.$ac_ext <<_ACEOF
 
26319
/* end confdefs.h.  */
 
26320
$ac_includes_default
 
26321
int
 
26322
main ()
 
26323
{
 
26324
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
 
26325
test_array [0] = 0
 
26326
 
 
26327
  ;
 
26328
  return 0;
 
26329
}
 
26330
_ACEOF
 
26331
rm -f conftest.$ac_objext
 
26332
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26333
  (eval $ac_compile) 2>conftest.er1
 
26334
  ac_status=$?
 
26335
  grep -v '^ *+' conftest.er1 >conftest.err
 
26336
  rm -f conftest.er1
 
26337
  cat conftest.err >&5
 
26338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26339
  (exit $ac_status); } &&
 
26340
         { ac_try='test -z "$ac_c_werror_flag"
 
26341
                         || test ! -s conftest.err'
 
26342
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26343
  (eval $ac_try) 2>&5
 
26344
  ac_status=$?
 
26345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26346
  (exit $ac_status); }; } &&
 
26347
         { ac_try='test -s conftest.$ac_objext'
 
26348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26349
  (eval $ac_try) 2>&5
 
26350
  ac_status=$?
 
26351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26352
  (exit $ac_status); }; }; then
 
26353
  ac_hi=-1 ac_mid=-1
 
26354
  while :; do
 
26355
    cat >conftest.$ac_ext <<_ACEOF
 
26356
/* confdefs.h.  */
 
26357
_ACEOF
 
26358
cat confdefs.h >>conftest.$ac_ext
 
26359
cat >>conftest.$ac_ext <<_ACEOF
 
26360
/* end confdefs.h.  */
 
26361
$ac_includes_default
 
26362
int
 
26363
main ()
 
26364
{
 
26365
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
 
26366
test_array [0] = 0
 
26367
 
 
26368
  ;
 
26369
  return 0;
 
26370
}
 
26371
_ACEOF
 
26372
rm -f conftest.$ac_objext
 
26373
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26374
  (eval $ac_compile) 2>conftest.er1
 
26375
  ac_status=$?
 
26376
  grep -v '^ *+' conftest.er1 >conftest.err
 
26377
  rm -f conftest.er1
 
26378
  cat conftest.err >&5
 
26379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26380
  (exit $ac_status); } &&
 
26381
         { ac_try='test -z "$ac_c_werror_flag"
 
26382
                         || test ! -s conftest.err'
 
26383
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26384
  (eval $ac_try) 2>&5
 
26385
  ac_status=$?
 
26386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26387
  (exit $ac_status); }; } &&
 
26388
         { ac_try='test -s conftest.$ac_objext'
 
26389
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26390
  (eval $ac_try) 2>&5
 
26391
  ac_status=$?
 
26392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26393
  (exit $ac_status); }; }; then
 
26394
  ac_lo=$ac_mid; break
 
26395
else
 
26396
  echo "$as_me: failed program was:" >&5
 
26397
sed 's/^/| /' conftest.$ac_ext >&5
 
26398
 
 
26399
ac_hi=`expr '(' $ac_mid ')' - 1`
 
26400
                       if test $ac_mid -le $ac_hi; then
 
26401
                         ac_lo= ac_hi=
 
26402
                         break
 
26403
                       fi
 
26404
                       ac_mid=`expr 2 '*' $ac_mid`
 
26405
fi
 
26406
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26407
  done
 
26408
else
 
26409
  echo "$as_me: failed program was:" >&5
 
26410
sed 's/^/| /' conftest.$ac_ext >&5
 
26411
 
 
26412
ac_lo= ac_hi=
 
26413
fi
 
26414
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26415
fi
 
26416
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26417
# Binary search between lo and hi bounds.
 
26418
while test "x$ac_lo" != "x$ac_hi"; do
 
26419
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
26420
  cat >conftest.$ac_ext <<_ACEOF
 
26421
/* confdefs.h.  */
 
26422
_ACEOF
 
26423
cat confdefs.h >>conftest.$ac_ext
 
26424
cat >>conftest.$ac_ext <<_ACEOF
 
26425
/* end confdefs.h.  */
 
26426
$ac_includes_default
 
26427
int
 
26428
main ()
 
26429
{
 
26430
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
 
26431
test_array [0] = 0
 
26432
 
 
26433
  ;
 
26434
  return 0;
 
26435
}
 
26436
_ACEOF
 
26437
rm -f conftest.$ac_objext
 
26438
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26439
  (eval $ac_compile) 2>conftest.er1
 
26440
  ac_status=$?
 
26441
  grep -v '^ *+' conftest.er1 >conftest.err
 
26442
  rm -f conftest.er1
 
26443
  cat conftest.err >&5
 
26444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26445
  (exit $ac_status); } &&
 
26446
         { ac_try='test -z "$ac_c_werror_flag"
 
26447
                         || test ! -s conftest.err'
 
26448
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26449
  (eval $ac_try) 2>&5
 
26450
  ac_status=$?
 
26451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26452
  (exit $ac_status); }; } &&
 
26453
         { ac_try='test -s conftest.$ac_objext'
 
26454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26455
  (eval $ac_try) 2>&5
 
26456
  ac_status=$?
 
26457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26458
  (exit $ac_status); }; }; then
 
26459
  ac_hi=$ac_mid
 
26460
else
 
26461
  echo "$as_me: failed program was:" >&5
 
26462
sed 's/^/| /' conftest.$ac_ext >&5
 
26463
 
 
26464
ac_lo=`expr '(' $ac_mid ')' + 1`
 
26465
fi
 
26466
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26467
done
 
26468
case $ac_lo in
 
26469
?*) ac_cv_sizeof_size_t=$ac_lo;;
 
26470
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
 
26471
See \`config.log' for more details." >&5
 
26472
echo "$as_me: error: cannot compute sizeof (size_t), 77
 
26473
See \`config.log' for more details." >&2;}
 
26474
   { (exit 1); exit 1; }; } ;;
 
26475
esac
 
26476
else
 
26477
  if test "$cross_compiling" = yes; then
 
26478
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
26479
See \`config.log' for more details." >&5
 
26480
echo "$as_me: error: cannot run test program while cross compiling
 
26481
See \`config.log' for more details." >&2;}
 
26482
   { (exit 1); exit 1; }; }
 
26483
else
 
26484
  cat >conftest.$ac_ext <<_ACEOF
 
26485
/* confdefs.h.  */
 
26486
_ACEOF
 
26487
cat confdefs.h >>conftest.$ac_ext
 
26488
cat >>conftest.$ac_ext <<_ACEOF
 
26489
/* end confdefs.h.  */
 
26490
$ac_includes_default
 
26491
long longval () { return (long) (sizeof (size_t)); }
 
26492
unsigned long ulongval () { return (long) (sizeof (size_t)); }
 
26493
#include <stdio.h>
 
26494
#include <stdlib.h>
 
26495
int
 
26496
main ()
 
26497
{
 
26498
 
 
26499
  FILE *f = fopen ("conftest.val", "w");
 
26500
  if (! f)
 
26501
    exit (1);
 
26502
  if (((long) (sizeof (size_t))) < 0)
 
26503
    {
 
26504
      long i = longval ();
 
26505
      if (i != ((long) (sizeof (size_t))))
 
26506
        exit (1);
 
26507
      fprintf (f, "%ld\n", i);
 
26508
    }
 
26509
  else
 
26510
    {
 
26511
      unsigned long i = ulongval ();
 
26512
      if (i != ((long) (sizeof (size_t))))
 
26513
        exit (1);
 
26514
      fprintf (f, "%lu\n", i);
 
26515
    }
 
26516
  exit (ferror (f) || fclose (f) != 0);
 
26517
 
 
26518
  ;
 
26519
  return 0;
 
26520
}
 
26521
_ACEOF
 
26522
rm -f conftest$ac_exeext
 
26523
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26524
  (eval $ac_link) 2>&5
 
26525
  ac_status=$?
 
26526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26527
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26529
  (eval $ac_try) 2>&5
 
26530
  ac_status=$?
 
26531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26532
  (exit $ac_status); }; }; then
 
26533
  ac_cv_sizeof_size_t=`cat conftest.val`
 
26534
else
 
26535
  echo "$as_me: program exited with status $ac_status" >&5
 
26536
echo "$as_me: failed program was:" >&5
 
26537
sed 's/^/| /' conftest.$ac_ext >&5
 
26538
 
 
26539
( exit $ac_status )
 
26540
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
 
26541
See \`config.log' for more details." >&5
 
26542
echo "$as_me: error: cannot compute sizeof (size_t), 77
 
26543
See \`config.log' for more details." >&2;}
 
26544
   { (exit 1); exit 1; }; }
 
26545
fi
 
26546
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26547
fi
 
26548
fi
 
26549
rm -f conftest.val
 
26550
else
 
26551
  ac_cv_sizeof_size_t=0
 
26552
fi
 
26553
fi
 
26554
echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
 
26555
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
 
26556
cat >>confdefs.h <<_ACEOF
 
26557
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
 
26558
_ACEOF
 
26559
 
 
26560
 
 
26561
  echo "$as_me:$LINENO: checking for unsigned long" >&5
 
26562
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
 
26563
if test "${ac_cv_type_unsigned_long+set}" = set; then
 
26564
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26565
else
 
26566
  cat >conftest.$ac_ext <<_ACEOF
 
26567
/* confdefs.h.  */
 
26568
_ACEOF
 
26569
cat confdefs.h >>conftest.$ac_ext
 
26570
cat >>conftest.$ac_ext <<_ACEOF
 
26571
/* end confdefs.h.  */
 
26572
$ac_includes_default
 
26573
int
 
26574
main ()
 
26575
{
 
26576
if ((unsigned long *) 0)
 
26577
  return 0;
 
26578
if (sizeof (unsigned long))
 
26579
  return 0;
 
26580
  ;
 
26581
  return 0;
 
26582
}
 
26583
_ACEOF
 
26584
rm -f conftest.$ac_objext
 
26585
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26586
  (eval $ac_compile) 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_objext'
 
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_type_unsigned_long=yes
 
26607
else
 
26608
  echo "$as_me: failed program was:" >&5
 
26609
sed 's/^/| /' conftest.$ac_ext >&5
 
26610
 
 
26611
ac_cv_type_unsigned_long=no
 
26612
fi
 
26613
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26614
fi
 
26615
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
 
26616
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
 
26617
 
 
26618
echo "$as_me:$LINENO: checking size of unsigned long" >&5
 
26619
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
 
26620
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
 
26621
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26622
else
 
26623
  if test "$ac_cv_type_unsigned_long" = yes; then
 
26624
  # The cast to unsigned long works around a bug in the HP C Compiler
 
26625
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
26626
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
26627
  # This bug is HP SR number 8606223364.
 
26628
  if test "$cross_compiling" = yes; then
 
26629
  # Depending upon the size, compute the lo and hi bounds.
 
26630
cat >conftest.$ac_ext <<_ACEOF
 
26631
/* confdefs.h.  */
 
26632
_ACEOF
 
26633
cat confdefs.h >>conftest.$ac_ext
 
26634
cat >>conftest.$ac_ext <<_ACEOF
 
26635
/* end confdefs.h.  */
 
26636
$ac_includes_default
 
26637
int
 
26638
main ()
 
26639
{
 
26640
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
 
26641
test_array [0] = 0
 
26642
 
 
26643
  ;
 
26644
  return 0;
 
26645
}
 
26646
_ACEOF
 
26647
rm -f conftest.$ac_objext
 
26648
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26649
  (eval $ac_compile) 2>conftest.er1
 
26650
  ac_status=$?
 
26651
  grep -v '^ *+' conftest.er1 >conftest.err
 
26652
  rm -f conftest.er1
 
26653
  cat conftest.err >&5
 
26654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26655
  (exit $ac_status); } &&
 
26656
         { ac_try='test -z "$ac_c_werror_flag"
 
26657
                         || test ! -s conftest.err'
 
26658
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26659
  (eval $ac_try) 2>&5
 
26660
  ac_status=$?
 
26661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26662
  (exit $ac_status); }; } &&
 
26663
         { ac_try='test -s conftest.$ac_objext'
 
26664
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26665
  (eval $ac_try) 2>&5
 
26666
  ac_status=$?
 
26667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26668
  (exit $ac_status); }; }; then
 
26669
  ac_lo=0 ac_mid=0
 
26670
  while :; do
 
26671
    cat >conftest.$ac_ext <<_ACEOF
 
26672
/* confdefs.h.  */
 
26673
_ACEOF
 
26674
cat confdefs.h >>conftest.$ac_ext
 
26675
cat >>conftest.$ac_ext <<_ACEOF
 
26676
/* end confdefs.h.  */
 
26677
$ac_includes_default
 
26678
int
 
26679
main ()
 
26680
{
 
26681
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
 
26682
test_array [0] = 0
 
26683
 
 
26684
  ;
 
26685
  return 0;
 
26686
}
 
26687
_ACEOF
 
26688
rm -f conftest.$ac_objext
 
26689
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26690
  (eval $ac_compile) 2>conftest.er1
 
26691
  ac_status=$?
 
26692
  grep -v '^ *+' conftest.er1 >conftest.err
 
26693
  rm -f conftest.er1
 
26694
  cat conftest.err >&5
 
26695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26696
  (exit $ac_status); } &&
 
26697
         { ac_try='test -z "$ac_c_werror_flag"
 
26698
                         || test ! -s conftest.err'
 
26699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26700
  (eval $ac_try) 2>&5
 
26701
  ac_status=$?
 
26702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26703
  (exit $ac_status); }; } &&
 
26704
         { ac_try='test -s conftest.$ac_objext'
 
26705
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26706
  (eval $ac_try) 2>&5
 
26707
  ac_status=$?
 
26708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26709
  (exit $ac_status); }; }; then
 
26710
  ac_hi=$ac_mid; break
 
26711
else
 
26712
  echo "$as_me: failed program was:" >&5
 
26713
sed 's/^/| /' conftest.$ac_ext >&5
 
26714
 
 
26715
ac_lo=`expr $ac_mid + 1`
 
26716
                    if test $ac_lo -le $ac_mid; then
 
26717
                      ac_lo= ac_hi=
 
26718
                      break
 
26719
                    fi
 
26720
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
26721
fi
 
26722
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26723
  done
 
26724
else
 
26725
  echo "$as_me: failed program was:" >&5
 
26726
sed 's/^/| /' conftest.$ac_ext >&5
 
26727
 
 
26728
cat >conftest.$ac_ext <<_ACEOF
 
26729
/* confdefs.h.  */
 
26730
_ACEOF
 
26731
cat confdefs.h >>conftest.$ac_ext
 
26732
cat >>conftest.$ac_ext <<_ACEOF
 
26733
/* end confdefs.h.  */
 
26734
$ac_includes_default
 
26735
int
 
26736
main ()
 
26737
{
 
26738
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
 
26739
test_array [0] = 0
 
26740
 
 
26741
  ;
 
26742
  return 0;
 
26743
}
 
26744
_ACEOF
 
26745
rm -f conftest.$ac_objext
 
26746
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26747
  (eval $ac_compile) 2>conftest.er1
 
26748
  ac_status=$?
 
26749
  grep -v '^ *+' conftest.er1 >conftest.err
 
26750
  rm -f conftest.er1
 
26751
  cat conftest.err >&5
 
26752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26753
  (exit $ac_status); } &&
 
26754
         { ac_try='test -z "$ac_c_werror_flag"
 
26755
                         || test ! -s conftest.err'
 
26756
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26757
  (eval $ac_try) 2>&5
 
26758
  ac_status=$?
 
26759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26760
  (exit $ac_status); }; } &&
 
26761
         { ac_try='test -s conftest.$ac_objext'
 
26762
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26763
  (eval $ac_try) 2>&5
 
26764
  ac_status=$?
 
26765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26766
  (exit $ac_status); }; }; then
 
26767
  ac_hi=-1 ac_mid=-1
 
26768
  while :; do
 
26769
    cat >conftest.$ac_ext <<_ACEOF
 
26770
/* confdefs.h.  */
 
26771
_ACEOF
 
26772
cat confdefs.h >>conftest.$ac_ext
 
26773
cat >>conftest.$ac_ext <<_ACEOF
 
26774
/* end confdefs.h.  */
 
26775
$ac_includes_default
 
26776
int
 
26777
main ()
 
26778
{
 
26779
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
 
26780
test_array [0] = 0
 
26781
 
 
26782
  ;
 
26783
  return 0;
 
26784
}
 
26785
_ACEOF
 
26786
rm -f conftest.$ac_objext
 
26787
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26788
  (eval $ac_compile) 2>conftest.er1
 
26789
  ac_status=$?
 
26790
  grep -v '^ *+' conftest.er1 >conftest.err
 
26791
  rm -f conftest.er1
 
26792
  cat conftest.err >&5
 
26793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26794
  (exit $ac_status); } &&
 
26795
         { ac_try='test -z "$ac_c_werror_flag"
 
26796
                         || test ! -s conftest.err'
 
26797
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26798
  (eval $ac_try) 2>&5
 
26799
  ac_status=$?
 
26800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26801
  (exit $ac_status); }; } &&
 
26802
         { ac_try='test -s conftest.$ac_objext'
 
26803
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26804
  (eval $ac_try) 2>&5
 
26805
  ac_status=$?
 
26806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26807
  (exit $ac_status); }; }; then
 
26808
  ac_lo=$ac_mid; break
 
26809
else
 
26810
  echo "$as_me: failed program was:" >&5
 
26811
sed 's/^/| /' conftest.$ac_ext >&5
 
26812
 
 
26813
ac_hi=`expr '(' $ac_mid ')' - 1`
 
26814
                       if test $ac_mid -le $ac_hi; then
 
26815
                         ac_lo= ac_hi=
 
26816
                         break
 
26817
                       fi
 
26818
                       ac_mid=`expr 2 '*' $ac_mid`
 
26819
fi
 
26820
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26821
  done
 
26822
else
 
26823
  echo "$as_me: failed program was:" >&5
 
26824
sed 's/^/| /' conftest.$ac_ext >&5
 
26825
 
 
26826
ac_lo= ac_hi=
 
26827
fi
 
26828
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26829
fi
 
26830
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26831
# Binary search between lo and hi bounds.
 
26832
while test "x$ac_lo" != "x$ac_hi"; do
 
26833
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
26834
  cat >conftest.$ac_ext <<_ACEOF
 
26835
/* confdefs.h.  */
 
26836
_ACEOF
 
26837
cat confdefs.h >>conftest.$ac_ext
 
26838
cat >>conftest.$ac_ext <<_ACEOF
 
26839
/* end confdefs.h.  */
 
26840
$ac_includes_default
 
26841
int
 
26842
main ()
 
26843
{
 
26844
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
 
26845
test_array [0] = 0
 
26846
 
 
26847
  ;
 
26848
  return 0;
 
26849
}
 
26850
_ACEOF
 
26851
rm -f conftest.$ac_objext
 
26852
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26853
  (eval $ac_compile) 2>conftest.er1
 
26854
  ac_status=$?
 
26855
  grep -v '^ *+' conftest.er1 >conftest.err
 
26856
  rm -f conftest.er1
 
26857
  cat conftest.err >&5
 
26858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26859
  (exit $ac_status); } &&
 
26860
         { ac_try='test -z "$ac_c_werror_flag"
 
26861
                         || test ! -s conftest.err'
 
26862
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26863
  (eval $ac_try) 2>&5
 
26864
  ac_status=$?
 
26865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26866
  (exit $ac_status); }; } &&
 
26867
         { ac_try='test -s conftest.$ac_objext'
 
26868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26869
  (eval $ac_try) 2>&5
 
26870
  ac_status=$?
 
26871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26872
  (exit $ac_status); }; }; then
 
26873
  ac_hi=$ac_mid
 
26874
else
 
26875
  echo "$as_me: failed program was:" >&5
 
26876
sed 's/^/| /' conftest.$ac_ext >&5
 
26877
 
 
26878
ac_lo=`expr '(' $ac_mid ')' + 1`
 
26879
fi
 
26880
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26881
done
 
26882
case $ac_lo in
 
26883
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
 
26884
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
 
26885
See \`config.log' for more details." >&5
 
26886
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
 
26887
See \`config.log' for more details." >&2;}
 
26888
   { (exit 1); exit 1; }; } ;;
 
26889
esac
 
26890
else
 
26891
  if test "$cross_compiling" = yes; then
 
26892
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
26893
See \`config.log' for more details." >&5
 
26894
echo "$as_me: error: cannot run test program while cross compiling
 
26895
See \`config.log' for more details." >&2;}
 
26896
   { (exit 1); exit 1; }; }
 
26897
else
 
26898
  cat >conftest.$ac_ext <<_ACEOF
 
26899
/* confdefs.h.  */
 
26900
_ACEOF
 
26901
cat confdefs.h >>conftest.$ac_ext
 
26902
cat >>conftest.$ac_ext <<_ACEOF
 
26903
/* end confdefs.h.  */
 
26904
$ac_includes_default
 
26905
long longval () { return (long) (sizeof (unsigned long)); }
 
26906
unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
 
26907
#include <stdio.h>
 
26908
#include <stdlib.h>
 
26909
int
 
26910
main ()
 
26911
{
 
26912
 
 
26913
  FILE *f = fopen ("conftest.val", "w");
 
26914
  if (! f)
 
26915
    exit (1);
 
26916
  if (((long) (sizeof (unsigned long))) < 0)
 
26917
    {
 
26918
      long i = longval ();
 
26919
      if (i != ((long) (sizeof (unsigned long))))
 
26920
        exit (1);
 
26921
      fprintf (f, "%ld\n", i);
 
26922
    }
 
26923
  else
 
26924
    {
 
26925
      unsigned long i = ulongval ();
 
26926
      if (i != ((long) (sizeof (unsigned long))))
 
26927
        exit (1);
 
26928
      fprintf (f, "%lu\n", i);
 
26929
    }
 
26930
  exit (ferror (f) || fclose (f) != 0);
 
26931
 
 
26932
  ;
 
26933
  return 0;
 
26934
}
 
26935
_ACEOF
 
26936
rm -f conftest$ac_exeext
 
26937
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26938
  (eval $ac_link) 2>&5
 
26939
  ac_status=$?
 
26940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26941
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26943
  (eval $ac_try) 2>&5
 
26944
  ac_status=$?
 
26945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26946
  (exit $ac_status); }; }; then
 
26947
  ac_cv_sizeof_unsigned_long=`cat conftest.val`
 
26948
else
 
26949
  echo "$as_me: program exited with status $ac_status" >&5
 
26950
echo "$as_me: failed program was:" >&5
 
26951
sed 's/^/| /' conftest.$ac_ext >&5
 
26952
 
 
26953
( exit $ac_status )
 
26954
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
 
26955
See \`config.log' for more details." >&5
 
26956
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
 
26957
See \`config.log' for more details." >&2;}
 
26958
   { (exit 1); exit 1; }; }
 
26959
fi
 
26960
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26961
fi
 
26962
fi
 
26963
rm -f conftest.val
 
26964
else
 
26965
  ac_cv_sizeof_unsigned_long=0
 
26966
fi
 
26967
fi
 
26968
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
 
26969
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
 
26970
cat >>confdefs.h <<_ACEOF
 
26971
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
 
26972
_ACEOF
 
26973
 
 
26974
 
 
26975
 
 
26976
  echo "$as_me:$LINENO: checking sizeof size_t == sizeof unsigned long" >&5
 
26977
echo $ECHO_N "checking sizeof size_t == sizeof unsigned long... $ECHO_C" >&6
 
26978
  cat >conftest.$ac_ext <<_ACEOF
 
26979
/* confdefs.h.  */
 
26980
_ACEOF
 
26981
cat confdefs.h >>conftest.$ac_ext
 
26982
cat >>conftest.$ac_ext <<_ACEOF
 
26983
/* end confdefs.h.  */
 
26984
 
 
26985
int
 
26986
main ()
 
26987
{
 
26988
 
 
26989
    #if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG
 
26990
       choke me
 
26991
    #endif
 
26992
 
 
26993
  ;
 
26994
  return 0;
 
26995
}
 
26996
_ACEOF
 
26997
rm -f conftest.$ac_objext
 
26998
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26999
  (eval $ac_compile) 2>conftest.er1
 
27000
  ac_status=$?
 
27001
  grep -v '^ *+' conftest.er1 >conftest.err
 
27002
  rm -f conftest.er1
 
27003
  cat conftest.err >&5
 
27004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27005
  (exit $ac_status); } &&
 
27006
         { ac_try='test -z "$ac_c_werror_flag"
 
27007
                         || test ! -s conftest.err'
 
27008
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27009
  (eval $ac_try) 2>&5
 
27010
  ac_status=$?
 
27011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27012
  (exit $ac_status); }; } &&
 
27013
         { ac_try='test -s conftest.$ac_objext'
 
27014
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27015
  (eval $ac_try) 2>&5
 
27016
  ac_status=$?
 
27017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27018
  (exit $ac_status); }; }; then
 
27019
  echo "$as_me:$LINENO: result: yes" >&5
 
27020
echo "${ECHO_T}yes" >&6
 
27021
else
 
27022
  echo "$as_me: failed program was:" >&5
 
27023
sed 's/^/| /' conftest.$ac_ext >&5
 
27024
 
 
27025
 
 
27026
      echo "$as_me:$LINENO: result: no" >&5
 
27027
echo "${ECHO_T}no" >&6
 
27028
      { { echo "$as_me:$LINENO: error:
 
27029
       Apparently on your system our assumption sizeof size_t == sizeof unsigned long
 
27030
       does not apply. Please mail kde-devel@kde.org with a description of your system!
 
27031
      " >&5
 
27032
echo "$as_me: error:
 
27033
       Apparently on your system our assumption sizeof size_t == sizeof unsigned long
 
27034
       does not apply. Please mail kde-devel@kde.org with a description of your system!
 
27035
      " >&2;}
 
27036
   { (exit 1); exit 1; }; }
 
27037
 
 
27038
fi
 
27039
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27040
 
 
27041
 
 
27042
# darwin needs this to initialize the environment
 
27043
 
 
27044
for ac_header in crt_externs.h
 
27045
do
 
27046
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
27047
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
27048
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
27049
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
27050
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
27051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27052
fi
 
27053
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
27054
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
27055
else
 
27056
  # Is the header compilable?
 
27057
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
27058
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
27059
cat >conftest.$ac_ext <<_ACEOF
 
27060
/* confdefs.h.  */
 
27061
_ACEOF
 
27062
cat confdefs.h >>conftest.$ac_ext
 
27063
cat >>conftest.$ac_ext <<_ACEOF
 
27064
/* end confdefs.h.  */
 
27065
$ac_includes_default
 
27066
#include <$ac_header>
 
27067
_ACEOF
 
27068
rm -f conftest.$ac_objext
 
27069
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27070
  (eval $ac_compile) 2>conftest.er1
 
27071
  ac_status=$?
 
27072
  grep -v '^ *+' conftest.er1 >conftest.err
 
27073
  rm -f conftest.er1
 
27074
  cat conftest.err >&5
 
27075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27076
  (exit $ac_status); } &&
 
27077
         { ac_try='test -z "$ac_c_werror_flag"
 
27078
                         || test ! -s conftest.err'
 
27079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27080
  (eval $ac_try) 2>&5
 
27081
  ac_status=$?
 
27082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27083
  (exit $ac_status); }; } &&
 
27084
         { ac_try='test -s conftest.$ac_objext'
 
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_header_compiler=yes
 
27091
else
 
27092
  echo "$as_me: failed program was:" >&5
 
27093
sed 's/^/| /' conftest.$ac_ext >&5
 
27094
 
 
27095
ac_header_compiler=no
 
27096
fi
 
27097
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27098
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
27099
echo "${ECHO_T}$ac_header_compiler" >&6
 
27100
 
 
27101
# Is the header present?
 
27102
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
27103
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
27104
cat >conftest.$ac_ext <<_ACEOF
 
27105
/* confdefs.h.  */
 
27106
_ACEOF
 
27107
cat confdefs.h >>conftest.$ac_ext
 
27108
cat >>conftest.$ac_ext <<_ACEOF
 
27109
/* end confdefs.h.  */
 
27110
#include <$ac_header>
 
27111
_ACEOF
 
27112
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
27113
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
27114
  ac_status=$?
 
27115
  grep -v '^ *+' conftest.er1 >conftest.err
 
27116
  rm -f conftest.er1
 
27117
  cat conftest.err >&5
 
27118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27119
  (exit $ac_status); } >/dev/null; then
 
27120
  if test -s conftest.err; then
 
27121
    ac_cpp_err=$ac_c_preproc_warn_flag
 
27122
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
27123
  else
 
27124
    ac_cpp_err=
 
27125
  fi
 
27126
else
 
27127
  ac_cpp_err=yes
 
27128
fi
 
27129
if test -z "$ac_cpp_err"; then
 
27130
  ac_header_preproc=yes
 
27131
else
 
27132
  echo "$as_me: failed program was:" >&5
 
27133
sed 's/^/| /' conftest.$ac_ext >&5
 
27134
 
 
27135
  ac_header_preproc=no
 
27136
fi
 
27137
rm -f conftest.err conftest.$ac_ext
 
27138
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
27139
echo "${ECHO_T}$ac_header_preproc" >&6
 
27140
 
 
27141
# So?  What about this header?
 
27142
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
27143
  yes:no: )
 
27144
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
27145
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
27146
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
27147
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
27148
    ac_header_preproc=yes
 
27149
    ;;
 
27150
  no:yes:* )
 
27151
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
27152
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
27153
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
27154
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
27155
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
27156
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
27157
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
27158
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
27159
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
27160
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
27161
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
27162
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
27163
    (
 
27164
      cat <<\_ASBOX
 
27165
## ------------------------------------------ ##
 
27166
## Report this to the AC_PACKAGE_NAME lists.  ##
 
27167
## ------------------------------------------ ##
 
27168
_ASBOX
 
27169
    ) |
 
27170
      sed "s/^/$as_me: WARNING:     /" >&2
 
27171
    ;;
 
27172
esac
 
27173
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
27174
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
27175
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
27176
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27177
else
 
27178
  eval "$as_ac_Header=\$ac_header_preproc"
 
27179
fi
 
27180
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
27181
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
27182
 
 
27183
fi
 
27184
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
27185
  cat >>confdefs.h <<_ACEOF
 
27186
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
27187
_ACEOF
 
27188
 
 
27189
fi
 
27190
 
 
27191
done
 
27192
 
 
27193
echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
 
27194
echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6
 
27195
if test "${ac_cv_func__NSGetEnviron+set}" = set; then
 
27196
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27197
else
 
27198
  cat >conftest.$ac_ext <<_ACEOF
 
27199
/* confdefs.h.  */
 
27200
_ACEOF
 
27201
cat confdefs.h >>conftest.$ac_ext
 
27202
cat >>conftest.$ac_ext <<_ACEOF
 
27203
/* end confdefs.h.  */
 
27204
/* Define _NSGetEnviron to an innocuous variant, in case <limits.h> declares _NSGetEnviron.
 
27205
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
27206
#define _NSGetEnviron innocuous__NSGetEnviron
 
27207
 
 
27208
/* System header to define __stub macros and hopefully few prototypes,
 
27209
    which can conflict with char _NSGetEnviron (); below.
 
27210
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
27211
    <limits.h> exists even on freestanding compilers.  */
 
27212
 
 
27213
#ifdef __STDC__
 
27214
# include <limits.h>
 
27215
#else
 
27216
# include <assert.h>
 
27217
#endif
 
27218
 
 
27219
#undef _NSGetEnviron
 
27220
 
 
27221
/* Override any gcc2 internal prototype to avoid an error.  */
 
27222
#ifdef __cplusplus
 
27223
extern "C"
 
27224
{
 
27225
#endif
 
27226
/* We use char because int might match the return type of a gcc2
 
27227
   builtin and then its argument prototype would still apply.  */
 
27228
char _NSGetEnviron ();
 
27229
/* The GNU C library defines this for functions which it implements
 
27230
    to always fail with ENOSYS.  Some functions are actually named
 
27231
    something starting with __ and the normal name is an alias.  */
 
27232
#if defined (__stub__NSGetEnviron) || defined (__stub____NSGetEnviron)
 
27233
choke me
 
27234
#else
 
27235
char (*f) () = _NSGetEnviron;
 
27236
#endif
 
27237
#ifdef __cplusplus
 
27238
}
 
27239
#endif
 
27240
 
 
27241
int
 
27242
main ()
 
27243
{
 
27244
return f != _NSGetEnviron;
 
27245
  ;
 
27246
  return 0;
 
27247
}
 
27248
_ACEOF
 
27249
rm -f conftest.$ac_objext conftest$ac_exeext
 
27250
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27251
  (eval $ac_link) 2>conftest.er1
 
27252
  ac_status=$?
 
27253
  grep -v '^ *+' conftest.er1 >conftest.err
 
27254
  rm -f conftest.er1
 
27255
  cat conftest.err >&5
 
27256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27257
  (exit $ac_status); } &&
 
27258
         { ac_try='test -z "$ac_c_werror_flag"
 
27259
                         || test ! -s conftest.err'
 
27260
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27261
  (eval $ac_try) 2>&5
 
27262
  ac_status=$?
 
27263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27264
  (exit $ac_status); }; } &&
 
27265
         { ac_try='test -s conftest$ac_exeext'
 
27266
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27267
  (eval $ac_try) 2>&5
 
27268
  ac_status=$?
 
27269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27270
  (exit $ac_status); }; }; then
 
27271
  ac_cv_func__NSGetEnviron=yes
 
27272
else
 
27273
  echo "$as_me: failed program was:" >&5
 
27274
sed 's/^/| /' conftest.$ac_ext >&5
 
27275
 
 
27276
ac_cv_func__NSGetEnviron=no
 
27277
fi
 
27278
rm -f conftest.err conftest.$ac_objext \
 
27279
      conftest$ac_exeext conftest.$ac_ext
 
27280
fi
 
27281
echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
 
27282
echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6
 
27283
if test $ac_cv_func__NSGetEnviron = yes; then
 
27284
 
 
27285
cat >>confdefs.h <<\_ACEOF
 
27286
#define HAVE_NSGETENVIRON 1
 
27287
_ACEOF
 
27288
 
 
27289
fi
 
27290
 
 
27291
 
 
27292
 
 
27293
 
 
27294
 
 
27295
 
 
27296
 
 
27297
 
 
27298
 
 
27299
 
 
27300
for ac_func in vsnprintf snprintf
 
27301
do
 
27302
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
27303
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
27304
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
27305
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
27306
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27307
else
 
27308
  cat >conftest.$ac_ext <<_ACEOF
 
27309
/* confdefs.h.  */
 
27310
_ACEOF
 
27311
cat confdefs.h >>conftest.$ac_ext
 
27312
cat >>conftest.$ac_ext <<_ACEOF
 
27313
/* end confdefs.h.  */
 
27314
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
27315
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
27316
#define $ac_func innocuous_$ac_func
 
27317
 
 
27318
/* System header to define __stub macros and hopefully few prototypes,
 
27319
    which can conflict with char $ac_func (); below.
 
27320
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
27321
    <limits.h> exists even on freestanding compilers.  */
 
27322
 
 
27323
#ifdef __STDC__
 
27324
# include <limits.h>
 
27325
#else
 
27326
# include <assert.h>
 
27327
#endif
 
27328
 
 
27329
#undef $ac_func
 
27330
 
 
27331
/* Override any gcc2 internal prototype to avoid an error.  */
 
27332
#ifdef __cplusplus
 
27333
extern "C"
 
27334
{
 
27335
#endif
 
27336
/* We use char because int might match the return type of a gcc2
 
27337
   builtin and then its argument prototype would still apply.  */
 
27338
char $ac_func ();
 
27339
/* The GNU C library defines this for functions which it implements
 
27340
    to always fail with ENOSYS.  Some functions are actually named
 
27341
    something starting with __ and the normal name is an alias.  */
 
27342
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
27343
choke me
 
27344
#else
 
27345
char (*f) () = $ac_func;
 
27346
#endif
 
27347
#ifdef __cplusplus
 
27348
}
 
27349
#endif
 
27350
 
 
27351
int
 
27352
main ()
 
27353
{
 
27354
return f != $ac_func;
 
27355
  ;
 
27356
  return 0;
 
27357
}
 
27358
_ACEOF
 
27359
rm -f conftest.$ac_objext conftest$ac_exeext
 
27360
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27361
  (eval $ac_link) 2>conftest.er1
 
27362
  ac_status=$?
 
27363
  grep -v '^ *+' conftest.er1 >conftest.err
 
27364
  rm -f conftest.er1
 
27365
  cat conftest.err >&5
 
27366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27367
  (exit $ac_status); } &&
 
27368
         { ac_try='test -z "$ac_c_werror_flag"
 
27369
                         || test ! -s conftest.err'
 
27370
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27371
  (eval $ac_try) 2>&5
 
27372
  ac_status=$?
 
27373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27374
  (exit $ac_status); }; } &&
 
27375
         { ac_try='test -s conftest$ac_exeext'
 
27376
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27377
  (eval $ac_try) 2>&5
 
27378
  ac_status=$?
 
27379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27380
  (exit $ac_status); }; }; then
 
27381
  eval "$as_ac_var=yes"
 
27382
else
 
27383
  echo "$as_me: failed program was:" >&5
 
27384
sed 's/^/| /' conftest.$ac_ext >&5
 
27385
 
 
27386
eval "$as_ac_var=no"
 
27387
fi
 
27388
rm -f conftest.err conftest.$ac_objext \
 
27389
      conftest$ac_exeext conftest.$ac_ext
 
27390
fi
 
27391
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
27392
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
27393
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
27394
  cat >>confdefs.h <<_ACEOF
 
27395
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
27396
_ACEOF
 
27397
 
 
27398
fi
 
27399
done
 
27400
 
 
27401
 
 
27402
 
 
27403
 
 
27404
 
 
27405
 
 
27406
 
 
27407
 
 
27408
 
 
27409
# Check whether --enable-embedded or --disable-embedded was given.
 
27410
if test "${enable_embedded+set}" = set; then
 
27411
  enableval="$enable_embedded"
 
27412
  kde_use_qt_emb=$enableval
 
27413
else
 
27414
  kde_use_qt_emb=no
 
27415
 
 
27416
fi;
 
27417
 
 
27418
# Check whether --enable-qtopia or --disable-qtopia was given.
 
27419
if test "${enable_qtopia+set}" = set; then
 
27420
  enableval="$enable_qtopia"
 
27421
  kde_use_qt_emb_palm=$enableval
 
27422
else
 
27423
  kde_use_qt_emb_palm=no
 
27424
 
 
27425
fi;
 
27426
 
 
27427
# Check whether --enable-mac or --disable-mac was given.
 
27428
if test "${enable_mac+set}" = set; then
 
27429
  enableval="$enable_mac"
 
27430
  kde_use_qt_mac=$enableval
 
27431
else
 
27432
  kde_use_qt_mac=no
 
27433
 
 
27434
fi;
 
27435
 
 
27436
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
 
27437
 
 
27438
echo "$as_me:$LINENO: checking for X" >&5
 
27439
echo $ECHO_N "checking for X... $ECHO_C" >&6
 
27440
 
 
27441
if test "${kde_cv_have_x+set}" = set; then
 
27442
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27443
else
 
27444
  # One or both of the vars are not set, and there is no cached value.
 
27445
if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
 
27446
   kde_x_includes=NO
 
27447
else
 
27448
   kde_x_includes=$x_includes
 
27449
fi
 
27450
if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
 
27451
   kde_x_libraries=NO
 
27452
else
 
27453
   kde_x_libraries=$x_libraries
 
27454
fi
 
27455
 
 
27456
# below we use the standard autoconf calls
 
27457
ac_x_libraries=$kde_x_libraries
 
27458
ac_x_includes=$kde_x_includes
 
27459
 
 
27460
 
 
27461
 
 
27462
 
 
27463
if test "$ac_x_includes" = NO; then
 
27464
  # Guess where to find include files, by looking for this one X11 .h file.
 
27465
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
 
27466
 
 
27467
  # First, try using that file with no special directory specified.
 
27468
cat >conftest.$ac_ext <<_ACEOF
 
27469
/* confdefs.h.  */
 
27470
_ACEOF
 
27471
cat confdefs.h >>conftest.$ac_ext
 
27472
cat >>conftest.$ac_ext <<_ACEOF
 
27473
/* end confdefs.h.  */
 
27474
#include <$x_direct_test_include>
 
27475
_ACEOF
 
27476
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
27477
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
27478
  ac_status=$?
 
27479
  grep -v '^ *+' conftest.er1 >conftest.err
 
27480
  rm -f conftest.er1
 
27481
  cat conftest.err >&5
 
27482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27483
  (exit $ac_status); } >/dev/null; then
 
27484
  if test -s conftest.err; then
 
27485
    ac_cpp_err=$ac_c_preproc_warn_flag
 
27486
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
27487
  else
 
27488
    ac_cpp_err=
 
27489
  fi
 
27490
else
 
27491
  ac_cpp_err=yes
 
27492
fi
 
27493
if test -z "$ac_cpp_err"; then
 
27494
  # We can compile using X headers with no special include directory.
 
27495
ac_x_includes=
 
27496
else
 
27497
  echo "$as_me: failed program was:" >&5
 
27498
sed 's/^/| /' conftest.$ac_ext >&5
 
27499
 
 
27500
  # Look for the header file in a standard set of common directories.
 
27501
# Check X11 before X11Rn because it is often a symlink to the current release.
 
27502
  for ac_dir in               \
 
27503
    /usr/X11/include          \
 
27504
    /usr/X11R6/include        \
 
27505
    /usr/X11R5/include        \
 
27506
    /usr/X11R4/include        \
 
27507
                              \
 
27508
    /usr/include/X11          \
 
27509
    /usr/include/X11R6        \
 
27510
    /usr/include/X11R5        \
 
27511
    /usr/include/X11R4        \
 
27512
                              \
 
27513
    /usr/local/X11/include    \
 
27514
    /usr/local/X11R6/include  \
 
27515
    /usr/local/X11R5/include  \
 
27516
    /usr/local/X11R4/include  \
 
27517
                              \
 
27518
    /usr/local/include/X11    \
 
27519
    /usr/local/include/X11R6  \
 
27520
    /usr/local/include/X11R5  \
 
27521
    /usr/local/include/X11R4  \
 
27522
                              \
 
27523
    /usr/X386/include         \
 
27524
    /usr/x386/include         \
 
27525
    /usr/XFree86/include/X11  \
 
27526
                              \
 
27527
    /usr/include              \
 
27528
    /usr/local/include        \
 
27529
    /usr/unsupported/include  \
 
27530
    /usr/athena/include       \
 
27531
    /usr/local/x11r5/include  \
 
27532
    /usr/lpp/Xamples/include  \
 
27533
                              \
 
27534
    /usr/openwin/include      \
 
27535
    /usr/openwin/share/include \
 
27536
    ; \
 
27537
  do
 
27538
    if test -r "$ac_dir/$x_direct_test_include"; then
 
27539
      ac_x_includes=$ac_dir
 
27540
      break
 
27541
    fi
 
27542
  done
 
27543
fi
 
27544
rm -f conftest.err conftest.$ac_ext
 
27545
fi # $ac_x_includes = NO
 
27546
 
 
27547
if test "$ac_x_libraries" = NO; then
 
27548
  # Check for the libraries.
 
27549
 
 
27550
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
 
27551
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
 
27552
 
 
27553
  # See if we find them without any special options.
 
27554
  # Don't add to $LIBS permanently.
 
27555
  ac_save_LIBS="$LIBS"
 
27556
  LIBS="-l$x_direct_test_library $LIBS"
 
27557
cat >conftest.$ac_ext <<_ACEOF
 
27558
/* confdefs.h.  */
 
27559
_ACEOF
 
27560
cat confdefs.h >>conftest.$ac_ext
 
27561
cat >>conftest.$ac_ext <<_ACEOF
 
27562
/* end confdefs.h.  */
 
27563
 
 
27564
int
 
27565
main ()
 
27566
{
 
27567
${x_direct_test_function}()
 
27568
  ;
 
27569
  return 0;
 
27570
}
 
27571
_ACEOF
 
27572
rm -f conftest.$ac_objext conftest$ac_exeext
 
27573
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27574
  (eval $ac_link) 2>conftest.er1
 
27575
  ac_status=$?
 
27576
  grep -v '^ *+' conftest.er1 >conftest.err
 
27577
  rm -f conftest.er1
 
27578
  cat conftest.err >&5
 
27579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27580
  (exit $ac_status); } &&
 
27581
         { ac_try='test -z "$ac_c_werror_flag"
 
27582
                         || test ! -s conftest.err'
 
27583
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27584
  (eval $ac_try) 2>&5
 
27585
  ac_status=$?
 
27586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27587
  (exit $ac_status); }; } &&
 
27588
         { ac_try='test -s conftest$ac_exeext'
 
27589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27590
  (eval $ac_try) 2>&5
 
27591
  ac_status=$?
 
27592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27593
  (exit $ac_status); }; }; then
 
27594
  LIBS="$ac_save_LIBS"
 
27595
# We can link X programs with no special library path.
 
27596
ac_x_libraries=
 
27597
else
 
27598
  echo "$as_me: failed program was:" >&5
 
27599
sed 's/^/| /' conftest.$ac_ext >&5
 
27600
 
 
27601
LIBS="$ac_save_LIBS"
 
27602
# First see if replacing the include by lib works.
 
27603
# Check X11 before X11Rn because it is often a symlink to the current release.
 
27604
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib${kdelibsuff}/` \
 
27605
    /usr/X11/lib${kdelibsuff}           \
 
27606
    /usr/X11R6/lib${kdelibsuff}         \
 
27607
    /usr/X11R5/lib${kdelibsuff}         \
 
27608
    /usr/X11R4/lib${kdelibsuff}         \
 
27609
                                        \
 
27610
    /usr/lib${kdelibsuff}/X11           \
 
27611
    /usr/lib${kdelibsuff}/X11R6         \
 
27612
    /usr/lib${kdelibsuff}/X11R5         \
 
27613
    /usr/lib${kdelibsuff}/X11R4         \
 
27614
                                        \
 
27615
    /usr/local/X11/lib${kdelibsuff}     \
 
27616
    /usr/local/X11R6/lib${kdelibsuff}   \
 
27617
    /usr/local/X11R5/lib${kdelibsuff}   \
 
27618
    /usr/local/X11R4/lib${kdelibsuff}   \
 
27619
                                        \
 
27620
    /usr/local/lib${kdelibsuff}/X11     \
 
27621
    /usr/local/lib${kdelibsuff}/X11R6   \
 
27622
    /usr/local/lib${kdelibsuff}/X11R5   \
 
27623
    /usr/local/lib${kdelibsuff}/X11R4   \
 
27624
                                        \
 
27625
    /usr/X386/lib${kdelibsuff}          \
 
27626
    /usr/x386/lib${kdelibsuff}          \
 
27627
    /usr/XFree86/lib${kdelibsuff}/X11   \
 
27628
                                        \
 
27629
    /usr/lib${kdelibsuff}               \
 
27630
    /usr/local/lib${kdelibsuff}         \
 
27631
    /usr/unsupported/lib${kdelibsuff}   \
 
27632
    /usr/athena/lib${kdelibsuff}        \
 
27633
    /usr/local/x11r5/lib${kdelibsuff}   \
 
27634
    /usr/lpp/Xamples/lib${kdelibsuff}   \
 
27635
    /lib/usr/lib${kdelibsuff}/X11       \
 
27636
                                        \
 
27637
    /usr/openwin/lib${kdelibsuff}       \
 
27638
    /usr/openwin/share/lib${kdelibsuff} \
 
27639
    ; \
 
27640
do
 
27641
  for ac_extension in a so sl; do
 
27642
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
 
27643
      ac_x_libraries=$ac_dir
 
27644
      break 2
 
27645
    fi
 
27646
  done
 
27647
done
 
27648
fi
 
27649
rm -f conftest.err conftest.$ac_objext \
 
27650
      conftest$ac_exeext conftest.$ac_ext
 
27651
fi # $ac_x_libraries = NO
 
27652
 
 
27653
case "$host" in
 
27654
mips-sgi-irix6*)
 
27655
  ;;
 
27656
*-*-solaris*)
 
27657
  ;;
 
27658
*)
 
27659
  rm -fr conftest.dir
 
27660
if mkdir conftest.dir; then
 
27661
  cd conftest.dir
 
27662
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 
27663
  cat >Imakefile <<'_ACEOF'
 
27664
acfindx:
 
27665
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
27666
_ACEOF
 
27667
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
27668
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
27669
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
27670
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 
27671
    for ac_extension in a so sl; do
 
27672
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
 
27673
         test -f $ac_im_libdir/libX11.$ac_extension; then
 
27674
        ac_im_usrlibdir=$ac_im_libdir; break
 
27675
      fi
 
27676
    done
 
27677
    # Screen out bogus values from the imake configuration.  They are
 
27678
    # bogus both because they are the default anyway, and because
 
27679
    # using them would break gcc on systems where it needs fixed includes.
 
27680
    case $ac_im_incroot in
 
27681
        /usr/include) ;;
 
27682
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
27683
    esac
 
27684
    case $ac_im_usrlibdir in
 
27685
        /usr/lib | /lib) ;;
 
27686
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
27687
    esac
 
27688
  fi
 
27689
  cd ..
 
27690
  rm -fr conftest.dir
 
27691
fi
 
27692
 
 
27693
  if test -z "$ac_x_includes"; then
 
27694
    ac_x_includes="."
 
27695
  fi
 
27696
  if test -z "$ac_x_libraries"; then
 
27697
    ac_x_libraries="/usr/lib${kdelibsuff}"
 
27698
  fi
 
27699
esac
 
27700
#from now on we use our own again
 
27701
 
 
27702
# when the user already gave --x-includes, we ignore
 
27703
# what the standard autoconf macros told us.
 
27704
if test "$kde_x_includes" = NO; then
 
27705
  kde_x_includes=$ac_x_includes
 
27706
fi
 
27707
 
 
27708
# for --x-libraries too
 
27709
if test "$kde_x_libraries" = NO; then
 
27710
  kde_x_libraries=$ac_x_libraries
 
27711
fi
 
27712
 
 
27713
if test "$kde_x_includes" = NO; then
 
27714
  { { echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and add the correct paths!" >&5
 
27715
echo "$as_me: error: Can't find X includes. Please check your installation and add the correct paths!" >&2;}
 
27716
   { (exit 1); exit 1; }; }
 
27717
fi
 
27718
 
 
27719
if test "$kde_x_libraries" = NO; then
 
27720
  { { echo "$as_me:$LINENO: error: Can't find X libraries. Please check your installation and add the correct paths!" >&5
 
27721
echo "$as_me: error: Can't find X libraries. Please check your installation and add the correct paths!" >&2;}
 
27722
   { (exit 1); exit 1; }; }
 
27723
fi
 
27724
 
 
27725
# Record where we found X for the cache.
 
27726
kde_cv_have_x="have_x=yes \
 
27727
         kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
 
27728
 
 
27729
fi
 
27730
 
 
27731
eval "$kde_cv_have_x"
 
27732
 
 
27733
if test "$have_x" != yes; then
 
27734
  echo "$as_me:$LINENO: result: $have_x" >&5
 
27735
echo "${ECHO_T}$have_x" >&6
 
27736
  no_x=yes
 
27737
else
 
27738
  echo "$as_me:$LINENO: result: libraries $kde_x_libraries, headers $kde_x_includes" >&5
 
27739
echo "${ECHO_T}libraries $kde_x_libraries, headers $kde_x_includes" >&6
 
27740
fi
 
27741
 
 
27742
if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
 
27743
  X_INCLUDES=""
 
27744
  x_includes=".";  else
 
27745
  x_includes=$kde_x_includes
 
27746
  X_INCLUDES="-I$x_includes"
 
27747
fi
 
27748
 
 
27749
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
 
27750
  X_LDFLAGS=""
 
27751
  x_libraries="/usr/lib";  else
 
27752
  x_libraries=$kde_x_libraries
 
27753
  X_LDFLAGS="-L$x_libraries"
 
27754
fi
 
27755
all_includes="$X_INCLUDES"
 
27756
all_libraries="$X_LDFLAGS"
 
27757
 
 
27758
# Check for libraries that X11R6 Xt/Xaw programs need.
 
27759
ac_save_LDFLAGS="$LDFLAGS"
 
27760
LDFLAGS="$LDFLAGS $X_LDFLAGS"
 
27761
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
 
27762
# check for ICE first), but we must link in the order -lSM -lICE or
 
27763
# we get undefined symbols.  So assume we have SM if we have ICE.
 
27764
# These have to be linked with before -lX11, unlike the other
 
27765
# libraries we check for below, so use a different variable.
 
27766
#  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
 
27767
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
 
27768
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
 
27769
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
 
27770
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27771
else
 
27772
  ac_check_lib_save_LIBS=$LIBS
 
27773
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 
27774
cat >conftest.$ac_ext <<_ACEOF
 
27775
/* confdefs.h.  */
 
27776
_ACEOF
 
27777
cat confdefs.h >>conftest.$ac_ext
 
27778
cat >>conftest.$ac_ext <<_ACEOF
 
27779
/* end confdefs.h.  */
 
27780
 
 
27781
/* Override any gcc2 internal prototype to avoid an error.  */
 
27782
#ifdef __cplusplus
 
27783
extern "C"
 
27784
#endif
 
27785
/* We use char because int might match the return type of a gcc2
 
27786
   builtin and then its argument prototype would still apply.  */
 
27787
char IceConnectionNumber ();
 
27788
int
 
27789
main ()
 
27790
{
 
27791
IceConnectionNumber ();
 
27792
  ;
 
27793
  return 0;
 
27794
}
 
27795
_ACEOF
 
27796
rm -f conftest.$ac_objext conftest$ac_exeext
 
27797
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27798
  (eval $ac_link) 2>conftest.er1
 
27799
  ac_status=$?
 
27800
  grep -v '^ *+' conftest.er1 >conftest.err
 
27801
  rm -f conftest.er1
 
27802
  cat conftest.err >&5
 
27803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27804
  (exit $ac_status); } &&
 
27805
         { ac_try='test -z "$ac_c_werror_flag"
 
27806
                         || test ! -s conftest.err'
 
27807
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27808
  (eval $ac_try) 2>&5
 
27809
  ac_status=$?
 
27810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27811
  (exit $ac_status); }; } &&
 
27812
         { ac_try='test -s conftest$ac_exeext'
 
27813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27814
  (eval $ac_try) 2>&5
 
27815
  ac_status=$?
 
27816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27817
  (exit $ac_status); }; }; then
 
27818
  ac_cv_lib_ICE_IceConnectionNumber=yes
 
27819
else
 
27820
  echo "$as_me: failed program was:" >&5
 
27821
sed 's/^/| /' conftest.$ac_ext >&5
 
27822
 
 
27823
ac_cv_lib_ICE_IceConnectionNumber=no
 
27824
fi
 
27825
rm -f conftest.err conftest.$ac_objext \
 
27826
      conftest$ac_exeext conftest.$ac_ext
 
27827
LIBS=$ac_check_lib_save_LIBS
 
27828
fi
 
27829
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
27830
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
 
27831
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
 
27832
  LIBSM="-lSM -lICE"
 
27833
fi
 
27834
 
 
27835
LDFLAGS="$ac_save_LDFLAGS"
 
27836
 
 
27837
LIB_X11='-lX11 $(LIBSOCKET)'
 
27838
 
 
27839
echo "$as_me:$LINENO: checking for libXext" >&5
 
27840
echo $ECHO_N "checking for libXext... $ECHO_C" >&6
 
27841
if test "${kde_cv_have_libXext+set}" = set; then
 
27842
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27843
else
 
27844
 
 
27845
kde_ldflags_safe="$LDFLAGS"
 
27846
kde_libs_safe="$LIBS"
 
27847
 
 
27848
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
 
27849
LIBS="-lXext -lX11 $LIBSOCKET"
 
27850
 
 
27851
cat >conftest.$ac_ext <<_ACEOF
 
27852
/* confdefs.h.  */
 
27853
_ACEOF
 
27854
cat confdefs.h >>conftest.$ac_ext
 
27855
cat >>conftest.$ac_ext <<_ACEOF
 
27856
/* end confdefs.h.  */
 
27857
 
 
27858
#include <stdio.h>
 
27859
#ifdef STDC_HEADERS
 
27860
# include <stdlib.h>
 
27861
#endif
 
27862
 
 
27863
int
 
27864
main ()
 
27865
{
 
27866
 
 
27867
printf("hello Xext\n");
 
27868
 
 
27869
  ;
 
27870
  return 0;
 
27871
}
 
27872
_ACEOF
 
27873
rm -f conftest.$ac_objext conftest$ac_exeext
 
27874
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27875
  (eval $ac_link) 2>conftest.er1
 
27876
  ac_status=$?
 
27877
  grep -v '^ *+' conftest.er1 >conftest.err
 
27878
  rm -f conftest.er1
 
27879
  cat conftest.err >&5
 
27880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27881
  (exit $ac_status); } &&
 
27882
         { ac_try='test -z "$ac_c_werror_flag"
 
27883
                         || test ! -s conftest.err'
 
27884
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27885
  (eval $ac_try) 2>&5
 
27886
  ac_status=$?
 
27887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27888
  (exit $ac_status); }; } &&
 
27889
         { ac_try='test -s conftest$ac_exeext'
 
27890
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27891
  (eval $ac_try) 2>&5
 
27892
  ac_status=$?
 
27893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27894
  (exit $ac_status); }; }; then
 
27895
  kde_cv_have_libXext=yes
 
27896
else
 
27897
  echo "$as_me: failed program was:" >&5
 
27898
sed 's/^/| /' conftest.$ac_ext >&5
 
27899
 
 
27900
kde_cv_have_libXext=no
 
27901
 
 
27902
fi
 
27903
rm -f conftest.err conftest.$ac_objext \
 
27904
      conftest$ac_exeext conftest.$ac_ext
 
27905
 
 
27906
LDFLAGS=$kde_ldflags_safe
 
27907
LIBS=$kde_libs_safe
 
27908
 
 
27909
fi
 
27910
 
 
27911
 
 
27912
echo "$as_me:$LINENO: result: $kde_cv_have_libXext" >&5
 
27913
echo "${ECHO_T}$kde_cv_have_libXext" >&6
 
27914
 
 
27915
if test "$kde_cv_have_libXext" = "no"; then
 
27916
  { { echo "$as_me:$LINENO: error: We need a working libXext to proceed. Since configure
 
27917
can't find it itself, we stop here assuming that make wouldn't find
 
27918
them either." >&5
 
27919
echo "$as_me: error: We need a working libXext to proceed. Since configure
 
27920
can't find it itself, we stop here assuming that make wouldn't find
 
27921
them either." >&2;}
 
27922
   { (exit 1); exit 1; }; }
 
27923
fi
 
27924
 
 
27925
LIB_XEXT="-lXext"
 
27926
QTE_NORTTI=""
 
27927
 
 
27928
elif test "$kde_use_qt_emb" = "yes"; then
 
27929
    CPPFLAGS=-DQWS
 
27930
  CXXFLAGS="$CXXFLAGS -fno-rtti"
 
27931
  QTE_NORTTI="-fno-rtti -DQWS"
 
27932
  X_PRE_LIBS=""
 
27933
  LIB_X11=""
 
27934
  LIB_XEXT=""
 
27935
  LIB_XRENDER=""
 
27936
  LIBSM=""
 
27937
  X_INCLUDES=""
 
27938
  X_LDFLAGS=""
 
27939
  x_includes=""
 
27940
  x_libraries=""
 
27941
elif test "$kde_use_qt_mac" = "yes"; then
 
27942
      CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp"
 
27943
  CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp"
 
27944
  X_PRE_LIBS=""
 
27945
  LIB_X11=""
 
27946
  LIB_XEXT=""
 
27947
  LIB_XRENDER=""
 
27948
  LIBSM=""
 
27949
  X_INCLUDES=""
 
27950
  X_LDFLAGS=""
 
27951
  x_includes=""
 
27952
  x_libraries=""
 
27953
fi
 
27954
 
 
27955
 
 
27956
 
 
27957
 
 
27958
 
 
27959
 
 
27960
 
 
27961
 
 
27962
 
 
27963
 
 
27964
 
 
27965
 
 
27966
 
 
27967
  echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
27968
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
 
27969
  kde_safe_libs=$LIBS
 
27970
  LIBS="$LIBS -lpthread"
 
27971
  cat >conftest.$ac_ext <<_ACEOF
 
27972
/* confdefs.h.  */
 
27973
_ACEOF
 
27974
cat confdefs.h >>conftest.$ac_ext
 
27975
cat >>conftest.$ac_ext <<_ACEOF
 
27976
/* end confdefs.h.  */
 
27977
#include <pthread.h>
 
27978
int
 
27979
main ()
 
27980
{
 
27981
(void)pthread_create(0,0,0,0);
 
27982
  ;
 
27983
  return 0;
 
27984
}
 
27985
_ACEOF
 
27986
rm -f conftest.$ac_objext conftest$ac_exeext
 
27987
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27988
  (eval $ac_link) 2>conftest.er1
 
27989
  ac_status=$?
 
27990
  grep -v '^ *+' conftest.er1 >conftest.err
 
27991
  rm -f conftest.er1
 
27992
  cat conftest.err >&5
 
27993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27994
  (exit $ac_status); } &&
 
27995
         { ac_try='test -z "$ac_c_werror_flag"
 
27996
                         || test ! -s conftest.err'
 
27997
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27998
  (eval $ac_try) 2>&5
 
27999
  ac_status=$?
 
28000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28001
  (exit $ac_status); }; } &&
 
28002
         { ac_try='test -s conftest$ac_exeext'
 
28003
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28004
  (eval $ac_try) 2>&5
 
28005
  ac_status=$?
 
28006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28007
  (exit $ac_status); }; }; then
 
28008
 
 
28009
      echo "$as_me:$LINENO: result: yes" >&5
 
28010
echo "${ECHO_T}yes" >&6
 
28011
      LIBPTHREAD="-lpthread"
 
28012
else
 
28013
  echo "$as_me: failed program was:" >&5
 
28014
sed 's/^/| /' conftest.$ac_ext >&5
 
28015
 
 
28016
 
 
28017
      echo "$as_me:$LINENO: result: no" >&5
 
28018
echo "${ECHO_T}no" >&6
 
28019
fi
 
28020
rm -f conftest.err conftest.$ac_objext \
 
28021
      conftest$ac_exeext conftest.$ac_ext
 
28022
  LIBS=$kde_safe_libs
 
28023
 
 
28024
 
 
28025
 
 
28026
 
 
28027
      USE_THREADS=""
 
28028
      if test -z "$LIBPTHREAD"; then
 
28029
 
 
28030
echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
 
28031
echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6
 
28032
kde_cache=`echo pthread | sed 'y% .=/+-,%____p__%'`
 
28033
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
28034
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28035
else
 
28036
 
 
28037
 
 
28038
 
 
28039
   ac_ext=cc
 
28040
ac_cpp='$CXXCPP $CPPFLAGS'
 
28041
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
28042
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
28043
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
28044
 
 
28045
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
28046
 
 
28047
 
 
28048
  save_CXXFLAGS="$CXXFLAGS"
 
28049
  CXXFLAGS="$CXXFLAGS -pthread"
 
28050
  cat >conftest.$ac_ext <<_ACEOF
 
28051
/* confdefs.h.  */
 
28052
_ACEOF
 
28053
cat confdefs.h >>conftest.$ac_ext
 
28054
cat >>conftest.$ac_ext <<_ACEOF
 
28055
/* end confdefs.h.  */
 
28056
 
 
28057
int
 
28058
main ()
 
28059
{
 
28060
 return 0;
 
28061
  ;
 
28062
  return 0;
 
28063
}
 
28064
_ACEOF
 
28065
rm -f conftest.$ac_objext conftest$ac_exeext
 
28066
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28067
  (eval $ac_link) 2>conftest.er1
 
28068
  ac_status=$?
 
28069
  grep -v '^ *+' conftest.er1 >conftest.err
 
28070
  rm -f conftest.er1
 
28071
  cat conftest.err >&5
 
28072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28073
  (exit $ac_status); } &&
 
28074
         { ac_try='test -z "$ac_cxx_werror_flag"
 
28075
                         || test ! -s conftest.err'
 
28076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28077
  (eval $ac_try) 2>&5
 
28078
  ac_status=$?
 
28079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28080
  (exit $ac_status); }; } &&
 
28081
         { ac_try='test -s conftest$ac_exeext'
 
28082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28083
  (eval $ac_try) 2>&5
 
28084
  ac_status=$?
 
28085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28086
  (exit $ac_status); }; }; then
 
28087
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
28088
else
 
28089
  echo "$as_me: failed program was:" >&5
 
28090
sed 's/^/| /' conftest.$ac_ext >&5
 
28091
 
 
28092
fi
 
28093
rm -f conftest.err conftest.$ac_objext \
 
28094
      conftest$ac_exeext conftest.$ac_ext
 
28095
  CXXFLAGS="$save_CXXFLAGS"
 
28096
  ac_ext=c
 
28097
ac_cpp='$CPP $CPPFLAGS'
 
28098
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
28099
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
28100
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
28101
 
 
28102
 
 
28103
fi
 
28104
 
 
28105
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
28106
 echo "$as_me:$LINENO: result: yes" >&5
 
28107
echo "${ECHO_T}yes" >&6
 
28108
 :
 
28109
 USE_THREADS="-D_THREAD_SAFE -pthread"
 
28110
else
 
28111
 echo "$as_me:$LINENO: result: no" >&5
 
28112
echo "${ECHO_T}no" >&6
 
28113
 :
 
28114
 
 
28115
fi
 
28116
 
 
28117
      fi
 
28118
 
 
28119
 
 
28120
 
 
28121
    case $host_os in
 
28122
        solaris*)
 
28123
 
 
28124
echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
 
28125
echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6
 
28126
kde_cache=`echo mt | sed 'y% .=/+-,%____p__%'`
 
28127
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
28128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28129
else
 
28130
 
 
28131
 
 
28132
 
 
28133
   ac_ext=cc
 
28134
ac_cpp='$CXXCPP $CPPFLAGS'
 
28135
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
28136
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
28137
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
28138
 
 
28139
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
28140
 
 
28141
 
 
28142
  save_CXXFLAGS="$CXXFLAGS"
 
28143
  CXXFLAGS="$CXXFLAGS -mt"
 
28144
  cat >conftest.$ac_ext <<_ACEOF
 
28145
/* confdefs.h.  */
 
28146
_ACEOF
 
28147
cat confdefs.h >>conftest.$ac_ext
 
28148
cat >>conftest.$ac_ext <<_ACEOF
 
28149
/* end confdefs.h.  */
 
28150
 
 
28151
int
 
28152
main ()
 
28153
{
 
28154
 return 0;
 
28155
  ;
 
28156
  return 0;
 
28157
}
 
28158
_ACEOF
 
28159
rm -f conftest.$ac_objext conftest$ac_exeext
 
28160
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28161
  (eval $ac_link) 2>conftest.er1
 
28162
  ac_status=$?
 
28163
  grep -v '^ *+' conftest.er1 >conftest.err
 
28164
  rm -f conftest.er1
 
28165
  cat conftest.err >&5
 
28166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28167
  (exit $ac_status); } &&
 
28168
         { ac_try='test -z "$ac_cxx_werror_flag"
 
28169
                         || test ! -s conftest.err'
 
28170
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28171
  (eval $ac_try) 2>&5
 
28172
  ac_status=$?
 
28173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28174
  (exit $ac_status); }; } &&
 
28175
         { ac_try='test -s conftest$ac_exeext'
 
28176
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28177
  (eval $ac_try) 2>&5
 
28178
  ac_status=$?
 
28179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28180
  (exit $ac_status); }; }; then
 
28181
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
28182
else
 
28183
  echo "$as_me: failed program was:" >&5
 
28184
sed 's/^/| /' conftest.$ac_ext >&5
 
28185
 
 
28186
fi
 
28187
rm -f conftest.err conftest.$ac_objext \
 
28188
      conftest$ac_exeext conftest.$ac_ext
 
28189
  CXXFLAGS="$save_CXXFLAGS"
 
28190
  ac_ext=c
 
28191
ac_cpp='$CPP $CPPFLAGS'
 
28192
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
28193
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
28194
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
28195
 
 
28196
 
 
28197
fi
 
28198
 
 
28199
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
28200
 echo "$as_me:$LINENO: result: yes" >&5
 
28201
echo "${ECHO_T}yes" >&6
 
28202
 :
 
28203
 USE_THREADS="-mt"
 
28204
else
 
28205
 echo "$as_me:$LINENO: result: no" >&5
 
28206
echo "${ECHO_T}no" >&6
 
28207
 :
 
28208
 
 
28209
fi
 
28210
 
 
28211
                CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
 
28212
                ;;
 
28213
        freebsd*)
 
28214
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE $PTHREAD_CFLAGS"
 
28215
                ;;
 
28216
        aix*)
 
28217
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
 
28218
                LIBPTHREAD="$LIBPTHREAD -lc_r"
 
28219
                ;;
 
28220
        linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
 
28221
                if test "$CXX" = "KCC"; then
 
28222
                  CXXFLAGS="$CXXFLAGS --thread_safe"
 
28223
                  NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe"
 
28224
                fi
 
28225
                ;;
 
28226
        *)
 
28227
                ;;
 
28228
    esac
 
28229
 
 
28230
 
 
28231
 
 
28232
 
 
28233
echo "$as_me:$LINENO: checking for extra includes" >&5
 
28234
echo $ECHO_N "checking for extra includes... $ECHO_C" >&6
 
28235
 
 
28236
# Check whether --with-extra-includes or --without-extra-includes was given.
 
28237
if test "${with_extra_includes+set}" = set; then
 
28238
  withval="$with_extra_includes"
 
28239
  kde_use_extra_includes="$withval"
 
28240
else
 
28241
  kde_use_extra_includes=NONE
 
28242
 
 
28243
fi;
 
28244
kde_extra_includes=
 
28245
if test -n "$kde_use_extra_includes" && \
 
28246
   test "$kde_use_extra_includes" != "NONE"; then
 
28247
 
 
28248
   ac_save_ifs=$IFS
 
28249
   IFS=':'
 
28250
   for dir in $kde_use_extra_includes; do
 
28251
     kde_extra_includes="$kde_extra_includes $dir"
 
28252
     USER_INCLUDES="$USER_INCLUDES -I$dir"
 
28253
   done
 
28254
   IFS=$ac_save_ifs
 
28255
   kde_use_extra_includes="added"
 
28256
else
 
28257
   kde_use_extra_includes="no"
 
28258
fi
 
28259
 
 
28260
 
 
28261
echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
 
28262
echo "${ECHO_T}$kde_use_extra_includes" >&6
 
28263
 
 
28264
kde_extra_libs=
 
28265
echo "$as_me:$LINENO: checking for extra libs" >&5
 
28266
echo $ECHO_N "checking for extra libs... $ECHO_C" >&6
 
28267
 
 
28268
# Check whether --with-extra-libs or --without-extra-libs was given.
 
28269
if test "${with_extra_libs+set}" = set; then
 
28270
  withval="$with_extra_libs"
 
28271
  kde_use_extra_libs=$withval
 
28272
else
 
28273
  kde_use_extra_libs=NONE
 
28274
 
 
28275
fi;
 
28276
if test -n "$kde_use_extra_libs" && \
 
28277
   test "$kde_use_extra_libs" != "NONE"; then
 
28278
 
 
28279
   ac_save_ifs=$IFS
 
28280
   IFS=':'
 
28281
   for dir in $kde_use_extra_libs; do
 
28282
     kde_extra_libs="$kde_extra_libs $dir"
 
28283
     KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
 
28284
     USER_LDFLAGS="$USER_LDFLAGS -L$dir"
 
28285
   done
 
28286
   IFS=$ac_save_ifs
 
28287
   kde_use_extra_libs="added"
 
28288
else
 
28289
   kde_use_extra_libs="no"
 
28290
fi
 
28291
 
 
28292
 
 
28293
 
 
28294
echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
 
28295
echo "${ECHO_T}$kde_use_extra_libs" >&6
 
28296
 
 
28297
 
 
28298
 
 
28299
 
 
28300
echo "$as_me:$LINENO: checking for libz" >&5
 
28301
echo $ECHO_N "checking for libz... $ECHO_C" >&6
 
28302
if test "${ac_cv_lib_z+set}" = set; then
 
28303
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28304
else
 
28305
 
 
28306
kde_save_LIBS="$LIBS"
 
28307
LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
 
28308
kde_save_CFLAGS="$CFLAGS"
 
28309
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
28310
cat >conftest.$ac_ext <<_ACEOF
 
28311
/* confdefs.h.  */
 
28312
_ACEOF
 
28313
cat confdefs.h >>conftest.$ac_ext
 
28314
cat >>conftest.$ac_ext <<_ACEOF
 
28315
/* end confdefs.h.  */
 
28316
 
 
28317
#include<zlib.h>
 
28318
 
 
28319
int
 
28320
main ()
 
28321
{
 
28322
 
 
28323
  char buf[42];
 
28324
  gzFile f = (gzFile) 0;
 
28325
  /* this would segfault.. but we only link, don't run */
 
28326
  (void) gzgets(f, buf, sizeof(buf));
 
28327
 
 
28328
  return (zlibVersion() == ZLIB_VERSION);
 
28329
 
 
28330
  ;
 
28331
  return 0;
 
28332
}
 
28333
_ACEOF
 
28334
rm -f conftest.$ac_objext conftest$ac_exeext
 
28335
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28336
  (eval $ac_link) 2>conftest.er1
 
28337
  ac_status=$?
 
28338
  grep -v '^ *+' conftest.er1 >conftest.err
 
28339
  rm -f conftest.er1
 
28340
  cat conftest.err >&5
 
28341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28342
  (exit $ac_status); } &&
 
28343
         { ac_try='test -z "$ac_c_werror_flag"
 
28344
                         || test ! -s conftest.err'
 
28345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28346
  (eval $ac_try) 2>&5
 
28347
  ac_status=$?
 
28348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28349
  (exit $ac_status); }; } &&
 
28350
         { ac_try='test -s conftest$ac_exeext'
 
28351
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28352
  (eval $ac_try) 2>&5
 
28353
  ac_status=$?
 
28354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28355
  (exit $ac_status); }; }; then
 
28356
  eval "ac_cv_lib_z='-lz'"
 
28357
else
 
28358
  echo "$as_me: failed program was:" >&5
 
28359
sed 's/^/| /' conftest.$ac_ext >&5
 
28360
 
 
28361
eval "ac_cv_lib_z=no"
 
28362
fi
 
28363
rm -f conftest.err conftest.$ac_objext \
 
28364
      conftest$ac_exeext conftest.$ac_ext
 
28365
LIBS="$kde_save_LIBS"
 
28366
CFLAGS="$kde_save_CFLAGS"
 
28367
 
 
28368
fi
 
28369
if test ! "$ac_cv_lib_z" = no; then
 
28370
 
 
28371
cat >>confdefs.h <<_ACEOF
 
28372
#define HAVE_LIBZ 1
 
28373
_ACEOF
 
28374
 
 
28375
  LIBZ="$ac_cv_lib_z"
 
28376
  echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
 
28377
echo "${ECHO_T}$ac_cv_lib_z" >&6
 
28378
else
 
28379
  { { echo "$as_me:$LINENO: error: not found.
 
28380
          Possibly configure picks up an outdated version
 
28381
          installed by XFree86. Remove it from your system.
 
28382
 
 
28383
          Check your installation and look into config.log" >&5
 
28384
echo "$as_me: error: not found.
 
28385
          Possibly configure picks up an outdated version
 
28386
          installed by XFree86. Remove it from your system.
 
28387
 
 
28388
          Check your installation and look into config.log" >&2;}
 
28389
   { (exit 1); exit 1; }; }
 
28390
  LIBZ=""
 
28391
fi
 
28392
 
 
28393
 
 
28394
 
 
28395
 
 
28396
 
 
28397
echo "$as_me:$LINENO: checking for libpng" >&5
 
28398
echo $ECHO_N "checking for libpng... $ECHO_C" >&6
 
28399
if test "${ac_cv_lib_png+set}" = set; then
 
28400
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28401
else
 
28402
 
 
28403
kde_save_LIBS="$LIBS"
 
28404
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
 
28405
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
 
28406
else
 
28407
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
 
28408
fi
 
28409
kde_save_CFLAGS="$CFLAGS"
 
28410
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
28411
 
 
28412
cat >conftest.$ac_ext <<_ACEOF
 
28413
/* confdefs.h.  */
 
28414
_ACEOF
 
28415
cat confdefs.h >>conftest.$ac_ext
 
28416
cat >>conftest.$ac_ext <<_ACEOF
 
28417
/* end confdefs.h.  */
 
28418
 
 
28419
    #include<png.h>
 
28420
 
 
28421
int
 
28422
main ()
 
28423
{
 
28424
 
 
28425
    png_structp png_ptr = png_create_read_struct(  /* image ptr */
 
28426
                PNG_LIBPNG_VER_STRING, 0, 0, 0 );
 
28427
    return( png_ptr != 0 );
 
28428
 
 
28429
  ;
 
28430
  return 0;
 
28431
}
 
28432
_ACEOF
 
28433
rm -f conftest.$ac_objext conftest$ac_exeext
 
28434
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28435
  (eval $ac_link) 2>conftest.er1
 
28436
  ac_status=$?
 
28437
  grep -v '^ *+' conftest.er1 >conftest.err
 
28438
  rm -f conftest.er1
 
28439
  cat conftest.err >&5
 
28440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28441
  (exit $ac_status); } &&
 
28442
         { ac_try='test -z "$ac_c_werror_flag"
 
28443
                         || test ! -s conftest.err'
 
28444
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28445
  (eval $ac_try) 2>&5
 
28446
  ac_status=$?
 
28447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28448
  (exit $ac_status); }; } &&
 
28449
         { ac_try='test -s conftest$ac_exeext'
 
28450
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28451
  (eval $ac_try) 2>&5
 
28452
  ac_status=$?
 
28453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28454
  (exit $ac_status); }; }; then
 
28455
  eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
 
28456
else
 
28457
  echo "$as_me: failed program was:" >&5
 
28458
sed 's/^/| /' conftest.$ac_ext >&5
 
28459
 
 
28460
eval "ac_cv_lib_png=no"
 
28461
 
 
28462
fi
 
28463
rm -f conftest.err conftest.$ac_objext \
 
28464
      conftest$ac_exeext conftest.$ac_ext
 
28465
LIBS="$kde_save_LIBS"
 
28466
CFLAGS="$kde_save_CFLAGS"
 
28467
 
 
28468
fi
 
28469
if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
 
28470
 
 
28471
cat >>confdefs.h <<_ACEOF
 
28472
#define HAVE_LIBPNG 1
 
28473
_ACEOF
 
28474
 
 
28475
  LIBPNG="$ac_cv_lib_png"
 
28476
 
 
28477
  echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5
 
28478
echo "${ECHO_T}$ac_cv_lib_png" >&6
 
28479
else
 
28480
  echo "$as_me:$LINENO: result: no" >&5
 
28481
echo "${ECHO_T}no" >&6
 
28482
  LIBPNG=""
 
28483
 
 
28484
fi
 
28485
 
 
28486
 
 
28487
 
 
28488
echo "$as_me:$LINENO: checking for libjpeg6b" >&5
 
28489
echo $ECHO_N "checking for libjpeg6b... $ECHO_C" >&6
 
28490
if test "${ac_cv_lib_jpeg_6b+set}" = set; then
 
28491
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28492
else
 
28493
 
 
28494
ac_save_LIBS="$LIBS"
 
28495
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
 
28496
ac_save_CFLAGS="$CFLAGS"
 
28497
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
28498
cat >conftest.$ac_ext <<_ACEOF
 
28499
/* confdefs.h.  */
 
28500
_ACEOF
 
28501
cat confdefs.h >>conftest.$ac_ext
 
28502
cat >>conftest.$ac_ext <<_ACEOF
 
28503
/* end confdefs.h.  */
 
28504
/* Override any gcc2 internal prototype to avoid an error.  */
 
28505
struct jpeg_decompress_struct;
 
28506
typedef struct jpeg_decompress_struct * j_decompress_ptr;
 
28507
typedef int size_t;
 
28508
#ifdef __cplusplus
 
28509
extern "C" {
 
28510
#endif
 
28511
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
 
28512
                                    int version, size_t structsize);
 
28513
#ifdef __cplusplus
 
28514
}
 
28515
#endif
 
28516
/* We use char because int might match the return type of a gcc2
 
28517
    builtin and then its argument prototype would still apply.  */
 
28518
 
 
28519
int
 
28520
main ()
 
28521
{
 
28522
jpeg_CreateDecompress(0L, 0, 0);
 
28523
  ;
 
28524
  return 0;
 
28525
}
 
28526
_ACEOF
 
28527
rm -f conftest.$ac_objext conftest$ac_exeext
 
28528
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28529
  (eval $ac_link) 2>conftest.er1
 
28530
  ac_status=$?
 
28531
  grep -v '^ *+' conftest.er1 >conftest.err
 
28532
  rm -f conftest.er1
 
28533
  cat conftest.err >&5
 
28534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28535
  (exit $ac_status); } &&
 
28536
         { ac_try='test -z "$ac_c_werror_flag"
 
28537
                         || test ! -s conftest.err'
 
28538
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28539
  (eval $ac_try) 2>&5
 
28540
  ac_status=$?
 
28541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28542
  (exit $ac_status); }; } &&
 
28543
         { ac_try='test -s conftest$ac_exeext'
 
28544
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28545
  (eval $ac_try) 2>&5
 
28546
  ac_status=$?
 
28547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28548
  (exit $ac_status); }; }; then
 
28549
  eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
 
28550
else
 
28551
  echo "$as_me: failed program was:" >&5
 
28552
sed 's/^/| /' conftest.$ac_ext >&5
 
28553
 
 
28554
eval "ac_cv_lib_jpeg_6b=no"
 
28555
fi
 
28556
rm -f conftest.err conftest.$ac_objext \
 
28557
      conftest$ac_exeext conftest.$ac_ext
 
28558
LIBS="$ac_save_LIBS"
 
28559
CFLAGS="$ac_save_CFLAGS"
 
28560
 
 
28561
fi
 
28562
 
 
28563
 
 
28564
if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
 
28565
  LIBJPEG="$ac_cv_lib_jpeg_6b"
 
28566
  echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5
 
28567
echo "${ECHO_T}$ac_cv_lib_jpeg_6b" >&6
 
28568
else
 
28569
  echo "$as_me:$LINENO: result: no" >&5
 
28570
echo "${ECHO_T}no" >&6
 
28571
 
 
28572
echo "$as_me:$LINENO: checking for libjpeg" >&5
 
28573
echo $ECHO_N "checking for libjpeg... $ECHO_C" >&6
 
28574
if test "${ac_cv_lib_jpeg_normal+set}" = set; then
 
28575
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28576
else
 
28577
 
 
28578
ac_save_LIBS="$LIBS"
 
28579
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
 
28580
ac_save_CFLAGS="$CFLAGS"
 
28581
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
28582
cat >conftest.$ac_ext <<_ACEOF
 
28583
/* confdefs.h.  */
 
28584
_ACEOF
 
28585
cat confdefs.h >>conftest.$ac_ext
 
28586
cat >>conftest.$ac_ext <<_ACEOF
 
28587
/* end confdefs.h.  */
 
28588
/* Override any gcc2 internal prototype to avoid an error.  */
 
28589
struct jpeg_decompress_struct;
 
28590
typedef struct jpeg_decompress_struct * j_decompress_ptr;
 
28591
typedef int size_t;
 
28592
#ifdef __cplusplus
 
28593
extern "C" {
 
28594
#endif
 
28595
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
 
28596
                                    int version, size_t structsize);
 
28597
#ifdef __cplusplus
 
28598
}
 
28599
#endif
 
28600
/* We use char because int might match the return type of a gcc2
 
28601
    builtin and then its argument prototype would still apply.  */
 
28602
 
 
28603
int
 
28604
main ()
 
28605
{
 
28606
jpeg_CreateDecompress(0L, 0, 0);
 
28607
  ;
 
28608
  return 0;
 
28609
}
 
28610
_ACEOF
 
28611
rm -f conftest.$ac_objext conftest$ac_exeext
 
28612
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28613
  (eval $ac_link) 2>conftest.er1
 
28614
  ac_status=$?
 
28615
  grep -v '^ *+' conftest.er1 >conftest.err
 
28616
  rm -f conftest.er1
 
28617
  cat conftest.err >&5
 
28618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28619
  (exit $ac_status); } &&
 
28620
         { ac_try='test -z "$ac_c_werror_flag"
 
28621
                         || test ! -s conftest.err'
 
28622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28623
  (eval $ac_try) 2>&5
 
28624
  ac_status=$?
 
28625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28626
  (exit $ac_status); }; } &&
 
28627
         { ac_try='test -s conftest$ac_exeext'
 
28628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28629
  (eval $ac_try) 2>&5
 
28630
  ac_status=$?
 
28631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28632
  (exit $ac_status); }; }; then
 
28633
  eval "ac_cv_lib_jpeg_normal=-ljpeg"
 
28634
else
 
28635
  echo "$as_me: failed program was:" >&5
 
28636
sed 's/^/| /' conftest.$ac_ext >&5
 
28637
 
 
28638
eval "ac_cv_lib_jpeg_normal=no"
 
28639
fi
 
28640
rm -f conftest.err conftest.$ac_objext \
 
28641
      conftest$ac_exeext conftest.$ac_ext
 
28642
LIBS="$ac_save_LIBS"
 
28643
CFLAGS="$ac_save_CFLAGS"
 
28644
 
 
28645
fi
 
28646
 
 
28647
 
 
28648
if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
 
28649
  LIBJPEG="$ac_cv_lib_jpeg_normal"
 
28650
  echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5
 
28651
echo "${ECHO_T}$ac_cv_lib_jpeg_normal" >&6
 
28652
else
 
28653
  echo "$as_me:$LINENO: result: no" >&5
 
28654
echo "${ECHO_T}no" >&6
 
28655
 
 
28656
       LIBJPEG=
 
28657
 
 
28658
 
 
28659
fi
 
28660
 
 
28661
 
 
28662
 
 
28663
fi
 
28664
 
 
28665
 
 
28666
 
 
28667
jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes"
 
28668
 
 
28669
jpeg_incdir=NO
 
28670
for i in $jpeg_incdirs;
 
28671
do
 
28672
  for j in jpeglib.h;
 
28673
  do
 
28674
    echo "configure: 28674: $i/$j" >&5
 
28675
    if test -r "$i/$j"; then
 
28676
      echo "taking that" >&5
 
28677
      jpeg_incdir=$i
 
28678
      break 2
 
28679
    fi
 
28680
  done
 
28681
done
 
28682
 
 
28683
test "x$jpeg_incdir" = xNO && jpeg_incdir=
 
28684
 
 
28685
if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
 
28686
 
 
28687
cat >>confdefs.h <<_ACEOF
 
28688
#define HAVE_LIBJPEG 1
 
28689
_ACEOF
 
28690
 
 
28691
else
 
28692
  if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
 
28693
    { echo "$as_me:$LINENO: WARNING:
 
28694
There is an installation error in jpeg support. You seem to have only one
 
28695
of either the headers _or_ the libraries installed. You may need to either
 
28696
provide correct --with-extra-... options, or the development package of
 
28697
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
 
28698
Disabling JPEG support.
 
28699
" >&5
 
28700
echo "$as_me: WARNING:
 
28701
There is an installation error in jpeg support. You seem to have only one
 
28702
of either the headers _or_ the libraries installed. You may need to either
 
28703
provide correct --with-extra-... options, or the development package of
 
28704
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
 
28705
Disabling JPEG support.
 
28706
" >&2;}
 
28707
  else
 
28708
    { echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5
 
28709
echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
 
28710
  fi
 
28711
  jpeg_incdir=
 
28712
  LIBJPEG=
 
28713
fi
 
28714
 
 
28715
 
 
28716
 
 
28717
 
 
28718
 
 
28719
 
 
28720
 
 
28721
   echo "$as_me:$LINENO: checking for perl" >&5
 
28722
echo $ECHO_N "checking for perl... $ECHO_C" >&6
 
28723
   if test -n "$PERL"; then
 
28724
        kde_cv_path="$PERL";
 
28725
   else
 
28726
        kde_cache=`echo perl | sed 'y%./+-%__p_%'`
 
28727
 
 
28728
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
28729
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28730
else
 
28731
 
 
28732
        kde_cv_path="NONE"
 
28733
        kde_save_IFS=$IFS
 
28734
        IFS=':'
 
28735
        dirs=""
 
28736
        for dir in $PATH; do
 
28737
          dirs="$dirs $dir"
 
28738
        done
 
28739
        if test -z ""; then       dirs="$bindir $exec_prefix/bin $prefix/bin $dirs"
 
28740
        else      dirs="$dirs $bindir $exec_prefix/bin $prefix/bin"
 
28741
        fi
 
28742
        IFS=$kde_save_IFS
 
28743
 
 
28744
        for dir in $dirs; do
 
28745
          if test -x "$dir/perl"; then
 
28746
            if test -n ""
 
28747
            then
 
28748
              evalstr="$dir/perl  2>&1 "
 
28749
              if eval $evalstr; then
 
28750
                kde_cv_path="$dir/perl"
 
28751
                break
 
28752
              fi
 
28753
            else
 
28754
                kde_cv_path="$dir/perl"
 
28755
                break
 
28756
            fi
 
28757
          fi
 
28758
        done
 
28759
 
 
28760
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
28761
 
 
28762
 
 
28763
fi
 
28764
 
 
28765
 
 
28766
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
28767
 
 
28768
   fi
 
28769
 
 
28770
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
28771
      echo "$as_me:$LINENO: result: not found" >&5
 
28772
echo "${ECHO_T}not found" >&6
 
28773
 
 
28774
                    { { echo "$as_me:$LINENO: error: No Perl found in your $PATH.
 
28775
We need perl to generate some code." >&5
 
28776
echo "$as_me: error: No Perl found in your $PATH.
 
28777
We need perl to generate some code." >&2;}
 
28778
   { (exit 1); exit 1; }; }
 
28779
 
 
28780
   else
 
28781
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
28782
echo "${ECHO_T}$kde_cv_path" >&6
 
28783
      PERL=$kde_cv_path
 
28784
 
 
28785
   fi
 
28786
 
 
28787
 
 
28788
 
 
28789
 
 
28790
 
 
28791
 
 
28792
 
 
28793
 
 
28794
 
 
28795
 
 
28796
# Check whether --enable-mt or --disable-mt was given.
 
28797
if test "${enable_mt+set}" = set; then
 
28798
  enableval="$enable_mt"
 
28799
  kde_use_qt_mt=$enableval
 
28800
else
 
28801
 
 
28802
    if test $kde_qtver = 3; then
 
28803
      kde_use_qt_mt=yes
 
28804
    else
 
28805
      kde_use_qt_mt=no
 
28806
    fi
 
28807
 
 
28808
 
 
28809
fi;
 
28810
 
 
28811
USING_QT_MT=""
 
28812
 
 
28813
 
 
28814
KDE_MT_LDFLAGS=
 
28815
KDE_MT_LIBS=
 
28816
if test "x$kde_use_qt_mt" = "xyes"; then
 
28817
 
 
28818
 
 
28819
 
 
28820
    if test -z "$LIBPTHREAD"; then
 
28821
    if test -z "$USE_THREADS"; then
 
28822
      kde_check_threading_default=no
 
28823
    else
 
28824
      kde_check_threading_default=yes
 
28825
    fi
 
28826
  else
 
28827
    kde_check_threading_default=yes
 
28828
  fi
 
28829
  # Check whether --enable-threading or --disable-threading was given.
 
28830
if test "${enable_threading+set}" = set; then
 
28831
  enableval="$enable_threading"
 
28832
  kde_use_threading=$enableval
 
28833
else
 
28834
  kde_use_threading=$kde_check_threading_default
 
28835
fi;
 
28836
  if test "x$kde_use_threading" = "xyes"; then
 
28837
 
 
28838
cat >>confdefs.h <<\_ACEOF
 
28839
#define HAVE_LIBPTHREAD 1
 
28840
_ACEOF
 
28841
 
 
28842
  fi
 
28843
 
 
28844
  if test "x$kde_use_threading" = "xyes"; then
 
28845
    CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
 
28846
    KDE_MT_LDFLAGS="$USE_THREADS"
 
28847
    KDE_MT_LIBS="$LIBPTHREAD"
 
28848
  else
 
28849
    kde_use_qt_mt=no
 
28850
  fi
 
28851
fi
 
28852
 
 
28853
 
 
28854
 
 
28855
kde_qt_was_given=yes
 
28856
 
 
28857
if test -z "$LIBQT_GLOB"; then
 
28858
  if test "x$kde_use_qt_emb" = "xyes"; then
 
28859
    LIBQT_GLOB="libqte.*"
 
28860
  else
 
28861
    LIBQT_GLOB="libqt.*"
 
28862
  fi
 
28863
fi
 
28864
 
 
28865
if test -z "$LIBQT"; then
 
28866
  if test "x$kde_use_qt_emb" = "xyes"; then
 
28867
    qtlib="qte"
 
28868
  else
 
28869
    qtlib="qt"
 
28870
  fi
 
28871
 
 
28872
  kde_int_qt="-l$qtlib"
 
28873
else
 
28874
  kde_int_qt="$LIBQT"
 
28875
  kde_lib_qt_set=yes
 
28876
fi
 
28877
 
 
28878
if test -z "$LIBQPE"; then
 
28879
  if test "x$kde_use_qt_emb" = "xyes"; then
 
28880
    if test "x$kde_use_qt_emb_palm" = "xyes"; then
 
28881
      LIB_QPE="-lqpe"
 
28882
    else
 
28883
      LIB_QPE=""
 
28884
    fi
 
28885
  else
 
28886
    LIB_QPE=""
 
28887
  fi
 
28888
fi
 
28889
 
 
28890
 
 
28891
if test "x$kde_use_qt_mt" = "xyes"; then
 
28892
  if test -z "$LIBQT"; then
 
28893
    LIBQT="-l$qtlib-mt"
 
28894
    kde_int_qt="-l$qtlib-mt"
 
28895
  else
 
28896
    LIBQT="$qtlib-mt"
 
28897
    kde_int_qt="$qtlib-mt"
 
28898
  fi
 
28899
  LIBQT_GLOB="lib$qtlib-mt.*"
 
28900
  USING_QT_MT="using -mt"
 
28901
else
 
28902
  LIBQT="-l$qtlib"
 
28903
fi
 
28904
 
 
28905
if test $kde_qtver != 1; then
 
28906
 
 
28907
 
 
28908
 
 
28909
  LIBQT="$LIBQT $LIBPNG $LIBJPEG"
 
28910
fi
 
28911
 
 
28912
if test $kde_qtver = 3; then
 
28913
 
 
28914
  LIBQT="$LIBQT $LIBDL"
 
28915
fi
 
28916
 
 
28917
echo "$as_me:$LINENO: checking for Qt" >&5
 
28918
echo $ECHO_N "checking for Qt... $ECHO_C" >&6
 
28919
 
 
28920
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
 
28921
LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
 
28922
fi
 
28923
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
 
28924
qt_libraries=""
 
28925
qt_includes=""
 
28926
 
 
28927
# Check whether --with-qt-dir or --without-qt-dir was given.
 
28928
if test "${with_qt_dir+set}" = set; then
 
28929
  withval="$with_qt_dir"
 
28930
    ac_qt_includes="$withval"/include
 
28931
       ac_qt_libraries="$withval"/lib${kdelibsuff}
 
28932
       ac_qt_bindir="$withval"/bin
 
28933
 
 
28934
fi;
 
28935
 
 
28936
 
 
28937
# Check whether --with-qt-includes or --without-qt-includes was given.
 
28938
if test "${with_qt_includes+set}" = set; then
 
28939
  withval="$with_qt_includes"
 
28940
 
 
28941
       ac_qt_includes="$withval"
 
28942
 
 
28943
fi;
 
28944
 
 
28945
kde_qt_libs_given=no
 
28946
 
 
28947
 
 
28948
# Check whether --with-qt-libraries or --without-qt-libraries was given.
 
28949
if test "${with_qt_libraries+set}" = set; then
 
28950
  withval="$with_qt_libraries"
 
28951
    ac_qt_libraries="$withval"
 
28952
       kde_qt_libs_given=yes
 
28953
 
 
28954
fi;
 
28955
 
 
28956
if test "${ac_cv_have_qt+set}" = set; then
 
28957
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28958
else
 
28959
  #try to guess Qt locations
 
28960
 
 
28961
qt_incdirs=""
 
28962
for dir in $kde_qt_dirs; do
 
28963
   qt_incdirs="$qt_incdirs $dir/include $dir"
 
28964
done
 
28965
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"
 
28966
if test ! "$ac_qt_includes" = "NO"; then
 
28967
   qt_incdirs="$ac_qt_includes $qt_incdirs"
 
28968
fi
 
28969
 
 
28970
if test "$kde_qtver" != "1"; then
 
28971
  kde_qt_header=qstyle.h
 
28972
else
 
28973
  kde_qt_header=qglobal.h
 
28974
fi
 
28975
 
 
28976
 
 
28977
qt_incdir=NO
 
28978
for i in $qt_incdirs;
 
28979
do
 
28980
  for j in $kde_qt_header;
 
28981
  do
 
28982
    echo "configure: 28982: $i/$j" >&5
 
28983
    if test -r "$i/$j"; then
 
28984
      echo "taking that" >&5
 
28985
      qt_incdir=$i
 
28986
      break 2
 
28987
    fi
 
28988
  done
 
28989
done
 
28990
 
 
28991
ac_qt_includes="$qt_incdir"
 
28992
 
 
28993
qt_libdirs=""
 
28994
for dir in $kde_qt_dirs; do
 
28995
   qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir"
 
28996
done
 
28997
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
 
28998
if test ! "$ac_qt_libraries" = "NO"; then
 
28999
  qt_libdir=$ac_qt_libraries
 
29000
else
 
29001
  qt_libdirs="$ac_qt_libraries $qt_libdirs"
 
29002
  # if the Qt was given, the chance is too big that libqt.* doesn't exist
 
29003
  qt_libdir=NONE
 
29004
  for dir in $qt_libdirs; do
 
29005
    try="ls -1 $dir/${LIBQT_GLOB}"
 
29006
    if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
 
29007
  done
 
29008
fi
 
29009
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
 
29010
  if test -e "$a"; then
 
29011
    LIBQT="$LIBQT ${kde_int_qt}_incremental"
 
29012
    break
 
29013
  fi
 
29014
done
 
29015
 
 
29016
ac_qt_libraries="$qt_libdir"
 
29017
 
 
29018
 
 
29019
 
 
29020
 ac_ext=cc
 
29021
ac_cpp='$CXXCPP $CPPFLAGS'
 
29022
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29023
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29024
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
29025
 
 
29026
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
29027
 
 
29028
 
 
29029
 
 
29030
ac_cxxflags_safe="$CXXFLAGS"
 
29031
ac_ldflags_safe="$LDFLAGS"
 
29032
ac_libs_safe="$LIBS"
 
29033
 
 
29034
CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
 
29035
LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
 
29036
LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
 
29037
 
 
29038
 
 
29039
 
 
29040
cat > conftest.$ac_ext <<EOF
 
29041
#include "confdefs.h"
 
29042
#include <qglobal.h>
 
29043
#include <qapplication.h>
 
29044
EOF
 
29045
if test "$kde_qtver" = "2"; then
 
29046
cat >> conftest.$ac_ext <<EOF
 
29047
#include <qevent.h>
 
29048
#include <qstring.h>
 
29049
#include <qstyle.h>
 
29050
EOF
 
29051
 
 
29052
if test $kde_qtsubver -gt 0; then
 
29053
cat >> conftest.$ac_ext <<EOF
 
29054
#if QT_VERSION < 210
 
29055
#error 1
 
29056
#endif
 
29057
EOF
 
29058
fi
 
29059
fi
 
29060
 
 
29061
if test "$kde_qtver" = "3"; then
 
29062
cat >> conftest.$ac_ext <<EOF
 
29063
#include <qcursor.h>
 
29064
#include <qstylefactory.h>
 
29065
#include <private/qucomextra_p.h>
 
29066
EOF
 
29067
fi
 
29068
 
 
29069
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
 
29070
cat >> conftest.$ac_ext <<EOF
 
29071
#error 1
 
29072
#endif
 
29073
 
 
29074
int main() {
 
29075
EOF
 
29076
if test "$kde_qtver" = "2"; then
 
29077
cat >> conftest.$ac_ext <<EOF
 
29078
    QStringList *t = new QStringList();
 
29079
    Q_UNUSED(t);
 
29080
EOF
 
29081
if test $kde_qtsubver -gt 0; then
 
29082
cat >> conftest.$ac_ext <<EOF
 
29083
    QString s;
 
29084
    s.setLatin1("Elvis is alive", 14);
 
29085
EOF
 
29086
fi
 
29087
fi
 
29088
if test "$kde_qtver" = "3"; then
 
29089
cat >> conftest.$ac_ext <<EOF
 
29090
    (void)QStyleFactory::create(QString::null);
 
29091
    QCursor c(Qt::WhatsThisCursor);
 
29092
EOF
 
29093
fi
 
29094
cat >> conftest.$ac_ext <<EOF
 
29095
    return 0;
 
29096
}
 
29097
EOF
 
29098
 
 
29099
 
 
29100
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29101
  (eval $ac_link) 2>&5
 
29102
  ac_status=$?
 
29103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29104
  (exit $ac_status); } && test -s conftest; then
 
29105
  rm -f conftest*
 
29106
else
 
29107
  echo "configure: failed program was:" >&5
 
29108
  cat conftest.$ac_ext >&5
 
29109
  ac_qt_libraries="NO"
 
29110
fi
 
29111
rm -f conftest*
 
29112
CXXFLAGS="$ac_cxxflags_safe"
 
29113
LDFLAGS="$ac_ldflags_safe"
 
29114
LIBS="$ac_libs_safe"
 
29115
 
 
29116
ac_ext=c
 
29117
ac_cpp='$CPP $CPPFLAGS'
 
29118
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29119
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29120
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
29121
 
 
29122
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
 
29123
  ac_cv_have_qt="have_qt=no"
 
29124
  ac_qt_notfound=""
 
29125
  missing_qt_mt=""
 
29126
  if test "$ac_qt_includes" = NO; then
 
29127
    if test "$ac_qt_libraries" = NO; then
 
29128
      ac_qt_notfound="(headers and libraries)";
 
29129
    else
 
29130
      ac_qt_notfound="(headers)";
 
29131
    fi
 
29132
  else
 
29133
    if test "x$kde_use_qt_mt" = "xyes"; then
 
29134
       missing_qt_mt="
 
29135
Make sure that you have compiled Qt with thread support!"
 
29136
       ac_qt_notfound="(library $qtlib-mt)";
 
29137
    else
 
29138
       ac_qt_notfound="(library $qtlib)";
 
29139
    fi
 
29140
  fi
 
29141
 
 
29142
  { { echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
 
29143
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
 
29144
echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
 
29145
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
 
29146
   { (exit 1); exit 1; }; }
 
29147
else
 
29148
  have_qt="yes"
 
29149
fi
 
29150
 
 
29151
fi
 
29152
 
 
29153
 
 
29154
eval "$ac_cv_have_qt"
 
29155
 
 
29156
if test "$have_qt" != yes; then
 
29157
  echo "$as_me:$LINENO: result: $have_qt" >&5
 
29158
echo "${ECHO_T}$have_qt" >&6;
 
29159
else
 
29160
  ac_cv_have_qt="have_qt=yes \
 
29161
    ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
 
29162
  echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
 
29163
echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6
 
29164
 
 
29165
  qt_libraries="$ac_qt_libraries"
 
29166
  qt_includes="$ac_qt_includes"
 
29167
fi
 
29168
 
 
29169
if test ! "$kde_qt_libs_given" = "yes" && test ! "$kde_qtver" = 3; then
 
29170
 
 
29171
 
 
29172
echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
 
29173
echo $ECHO_N "checking if Qt compiles without flags... $ECHO_C" >&6
 
29174
if test "${kde_cv_qt_direct+set}" = set; then
 
29175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29176
else
 
29177
 
 
29178
 
 
29179
 
 
29180
 ac_ext=cc
 
29181
ac_cpp='$CXXCPP $CPPFLAGS'
 
29182
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29183
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29184
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
29185
 
 
29186
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
29187
 
 
29188
 
 
29189
ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
 
29190
ac_LIBRARY_PATH="$LIBRARY_PATH"
 
29191
ac_cxxflags_safe="$CXXFLAGS"
 
29192
ac_ldflags_safe="$LDFLAGS"
 
29193
ac_libs_safe="$LIBS"
 
29194
 
 
29195
CXXFLAGS="$CXXFLAGS -I$qt_includes"
 
29196
LDFLAGS="$LDFLAGS $X_LDFLAGS"
 
29197
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
 
29198
LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
 
29199
else
 
29200
LIBS="$LIBQT $LIBSOCKET"
 
29201
fi
 
29202
LD_LIBRARY_PATH=
 
29203
export LD_LIBRARY_PATH
 
29204
LIBRARY_PATH=
 
29205
export LIBRARY_PATH
 
29206
 
 
29207
 
 
29208
 
 
29209
cat > conftest.$ac_ext <<EOF
 
29210
#include "confdefs.h"
 
29211
#include <qglobal.h>
 
29212
#include <qapplication.h>
 
29213
EOF
 
29214
if test "$kde_qtver" = "2"; then
 
29215
cat >> conftest.$ac_ext <<EOF
 
29216
#include <qevent.h>
 
29217
#include <qstring.h>
 
29218
#include <qstyle.h>
 
29219
EOF
 
29220
 
 
29221
if test $kde_qtsubver -gt 0; then
 
29222
cat >> conftest.$ac_ext <<EOF
 
29223
#if QT_VERSION < 210
 
29224
#error 1
 
29225
#endif
 
29226
EOF
 
29227
fi
 
29228
fi
 
29229
 
 
29230
if test "$kde_qtver" = "3"; then
 
29231
cat >> conftest.$ac_ext <<EOF
 
29232
#include <qcursor.h>
 
29233
#include <qstylefactory.h>
 
29234
#include <private/qucomextra_p.h>
 
29235
EOF
 
29236
fi
 
29237
 
 
29238
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
 
29239
cat >> conftest.$ac_ext <<EOF
 
29240
#error 1
 
29241
#endif
 
29242
 
 
29243
int main() {
 
29244
EOF
 
29245
if test "$kde_qtver" = "2"; then
 
29246
cat >> conftest.$ac_ext <<EOF
 
29247
    QStringList *t = new QStringList();
 
29248
    Q_UNUSED(t);
 
29249
EOF
 
29250
if test $kde_qtsubver -gt 0; then
 
29251
cat >> conftest.$ac_ext <<EOF
 
29252
    QString s;
 
29253
    s.setLatin1("Elvis is alive", 14);
 
29254
EOF
 
29255
fi
 
29256
fi
 
29257
if test "$kde_qtver" = "3"; then
 
29258
cat >> conftest.$ac_ext <<EOF
 
29259
    (void)QStyleFactory::create(QString::null);
 
29260
    QCursor c(Qt::WhatsThisCursor);
 
29261
EOF
 
29262
fi
 
29263
cat >> conftest.$ac_ext <<EOF
 
29264
    return 0;
 
29265
}
 
29266
EOF
 
29267
 
 
29268
 
 
29269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29270
  (eval $ac_link) 2>&5
 
29271
  ac_status=$?
 
29272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29273
  (exit $ac_status); } && test -s conftest; then
 
29274
  kde_cv_qt_direct="yes"
 
29275
else
 
29276
  kde_cv_qt_direct="no"
 
29277
  echo "configure: failed program was:" >&5
 
29278
  cat conftest.$ac_ext >&5
 
29279
fi
 
29280
 
 
29281
rm -f conftest*
 
29282
CXXFLAGS="$ac_cxxflags_safe"
 
29283
LDFLAGS="$ac_ldflags_safe"
 
29284
LIBS="$ac_libs_safe"
 
29285
 
 
29286
LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
 
29287
export LD_LIBRARY_PATH
 
29288
LIBRARY_PATH="$ac_LIBRARY_PATH"
 
29289
export LIBRARY_PATH
 
29290
ac_ext=c
 
29291
ac_cpp='$CPP $CPPFLAGS'
 
29292
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29293
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29294
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
29295
 
 
29296
 
 
29297
fi
 
29298
 
 
29299
 
 
29300
if test "$kde_cv_qt_direct" = "yes"; then
 
29301
  echo "$as_me:$LINENO: result: yes" >&5
 
29302
echo "${ECHO_T}yes" >&6
 
29303
  qt_libraries=
 
29304
else
 
29305
  echo "$as_me:$LINENO: result: no" >&5
 
29306
echo "${ECHO_T}no" >&6
 
29307
 
 
29308
fi
 
29309
 
 
29310
fi
 
29311
 
 
29312
 
 
29313
 
 
29314
 
 
29315
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
 
29316
 QT_INCLUDES=""
 
29317
else
 
29318
 QT_INCLUDES="-I$qt_includes"
 
29319
 all_includes="$QT_INCLUDES $all_includes"
 
29320
fi
 
29321
 
 
29322
if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
 
29323
 QT_LDFLAGS=""
 
29324
else
 
29325
 QT_LDFLAGS="-L$qt_libraries"
 
29326
 all_libraries="$all_libraries $QT_LDFLAGS"
 
29327
fi
 
29328
test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
 
29329
 
 
29330
 
 
29331
 
 
29332
 
 
29333
 
 
29334
   qt_bindirs=""
 
29335
   for dir in $kde_qt_dirs; do
 
29336
      qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
 
29337
   done
 
29338
   qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
 
29339
   if test ! "$ac_qt_bindir" = "NO"; then
 
29340
      qt_bindirs="$ac_qt_bindir $qt_bindirs"
 
29341
   fi
 
29342
 
 
29343
 
 
29344
   echo "$as_me:$LINENO: checking for moc" >&5
 
29345
echo $ECHO_N "checking for moc... $ECHO_C" >&6
 
29346
   if test -n "$MOC"; then
 
29347
        kde_cv_path="$MOC";
 
29348
   else
 
29349
        kde_cache=`echo moc | sed 'y%./+-%__p_%'`
 
29350
 
 
29351
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
29352
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29353
else
 
29354
 
 
29355
        kde_cv_path="NONE"
 
29356
        kde_save_IFS=$IFS
 
29357
        IFS=':'
 
29358
        dirs=""
 
29359
        for dir in $PATH; do
 
29360
          dirs="$dirs $dir"
 
29361
        done
 
29362
        if test -z ""; then       dirs="$qt_bindirs $dirs"
 
29363
        else      dirs="$dirs $qt_bindirs"
 
29364
        fi
 
29365
        IFS=$kde_save_IFS
 
29366
 
 
29367
        for dir in $dirs; do
 
29368
          if test -x "$dir/moc"; then
 
29369
            if test -n ""
 
29370
            then
 
29371
              evalstr="$dir/moc  2>&1 "
 
29372
              if eval $evalstr; then
 
29373
                kde_cv_path="$dir/moc"
 
29374
                break
 
29375
              fi
 
29376
            else
 
29377
                kde_cv_path="$dir/moc"
 
29378
                break
 
29379
            fi
 
29380
          fi
 
29381
        done
 
29382
 
 
29383
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
29384
 
 
29385
 
 
29386
fi
 
29387
 
 
29388
 
 
29389
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
29390
 
 
29391
   fi
 
29392
 
 
29393
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
29394
      echo "$as_me:$LINENO: result: not found" >&5
 
29395
echo "${ECHO_T}not found" >&6
 
29396
 
 
29397
    { { echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
 
29398
Please check whether you installed Qt correctly.
 
29399
You need to have a running moc binary.
 
29400
configure tried to run $ac_cv_path_moc and the test didn't
 
29401
succeed. If configure shouldn't have tried this one, set
 
29402
the environment variable MOC to the right one before running
 
29403
configure.
 
29404
" >&5
 
29405
echo "$as_me: error: No Qt meta object compiler (moc) found!
 
29406
Please check whether you installed Qt correctly.
 
29407
You need to have a running moc binary.
 
29408
configure tried to run $ac_cv_path_moc and the test didn't
 
29409
succeed. If configure shouldn't have tried this one, set
 
29410
the environment variable MOC to the right one before running
 
29411
configure.
 
29412
" >&2;}
 
29413
   { (exit 1); exit 1; }; }
 
29414
 
 
29415
   else
 
29416
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
29417
echo "${ECHO_T}$kde_cv_path" >&6
 
29418
      MOC=$kde_cv_path
 
29419
 
 
29420
   fi
 
29421
 
 
29422
   if test -z "$UIC_NOT_NEEDED"; then
 
29423
 
 
29424
   echo "$as_me:$LINENO: checking for uic" >&5
 
29425
echo $ECHO_N "checking for uic... $ECHO_C" >&6
 
29426
   if test -n "$UIC_PATH"; then
 
29427
        kde_cv_path="$UIC_PATH";
 
29428
   else
 
29429
        kde_cache=`echo uic | sed 'y%./+-%__p_%'`
 
29430
 
 
29431
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
29432
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29433
else
 
29434
 
 
29435
        kde_cv_path="NONE"
 
29436
        kde_save_IFS=$IFS
 
29437
        IFS=':'
 
29438
        dirs=""
 
29439
        for dir in $PATH; do
 
29440
          dirs="$dirs $dir"
 
29441
        done
 
29442
        if test -z ""; then       dirs="$qt_bindirs $dirs"
 
29443
        else      dirs="$dirs $qt_bindirs"
 
29444
        fi
 
29445
        IFS=$kde_save_IFS
 
29446
 
 
29447
        for dir in $dirs; do
 
29448
          if test -x "$dir/uic"; then
 
29449
            if test -n ""
 
29450
            then
 
29451
              evalstr="$dir/uic  2>&1 "
 
29452
              if eval $evalstr; then
 
29453
                kde_cv_path="$dir/uic"
 
29454
                break
 
29455
              fi
 
29456
            else
 
29457
                kde_cv_path="$dir/uic"
 
29458
                break
 
29459
            fi
 
29460
          fi
 
29461
        done
 
29462
 
 
29463
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
29464
 
 
29465
 
 
29466
fi
 
29467
 
 
29468
 
 
29469
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
29470
 
 
29471
   fi
 
29472
 
 
29473
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
29474
      echo "$as_me:$LINENO: result: not found" >&5
 
29475
echo "${ECHO_T}not found" >&6
 
29476
      UIC_PATH=""
 
29477
   else
 
29478
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
29479
echo "${ECHO_T}$kde_cv_path" >&6
 
29480
      UIC_PATH=$kde_cv_path
 
29481
 
 
29482
   fi
 
29483
 
 
29484
     if test -z "$UIC_PATH" ; then
 
29485
 
 
29486
    { echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found!
 
29487
Please check whether you installed Qt correctly.
 
29488
You need to have a running uic binary.
 
29489
configure tried to run $ac_cv_path_uic and the test didn't
 
29490
succeed. If configure shouldn't have tried this one, set
 
29491
the environment variable UIC to the right one before running
 
29492
configure.
 
29493
" >&5
 
29494
echo "$as_me: WARNING: No Qt ui compiler (uic) found!
 
29495
Please check whether you installed Qt correctly.
 
29496
You need to have a running uic binary.
 
29497
configure tried to run $ac_cv_path_uic and the test didn't
 
29498
succeed. If configure shouldn't have tried this one, set
 
29499
the environment variable UIC to the right one before running
 
29500
configure.
 
29501
" >&2;}
 
29502
 
 
29503
       exit 1
 
29504
     else
 
29505
       UIC=$UIC_PATH
 
29506
 
 
29507
       if test $kde_qtver = 3; then
 
29508
 
 
29509
    echo "$as_me:$LINENO: checking whether uic supports -L " >&5
 
29510
echo $ECHO_N "checking whether uic supports -L ... $ECHO_C" >&6
 
29511
    kde_cache=`echo L | sed 'y% .=/+-%____p_%'`
 
29512
    if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
 
29513
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29514
else
 
29515
 
 
29516
        cat >conftest.ui <<EOT
 
29517
        <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
 
29518
EOT
 
29519
        ac_uic_testrun="$UIC_PATH -L /nonexistent conftest.ui >/dev/null"
 
29520
        if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
 
29521
  (eval $ac_uic_testrun) 2>&5
 
29522
  ac_status=$?
 
29523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29524
  (exit $ac_status); }; then
 
29525
            eval "kde_cv_prog_uic_$kde_cache=yes"
 
29526
        else
 
29527
            eval "kde_cv_prog_uic_$kde_cache=no"
 
29528
        fi
 
29529
        rm -f conftest*
 
29530
 
 
29531
fi
 
29532
 
 
29533
 
 
29534
    if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
 
29535
        echo "$as_me:$LINENO: result: yes" >&5
 
29536
echo "${ECHO_T}yes" >&6
 
29537
        :
 
29538
        ac_uic_supports_libpath=yes
 
29539
    else
 
29540
        echo "$as_me:$LINENO: result: no" >&5
 
29541
echo "${ECHO_T}no" >&6
 
29542
        :
 
29543
        ac_uic_supports_libpath=no
 
29544
    fi
 
29545
 
 
29546
 
 
29547
    echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5
 
29548
echo $ECHO_N "checking whether uic supports -nounload ... $ECHO_C" >&6
 
29549
    kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'`
 
29550
    if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
 
29551
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29552
else
 
29553
 
 
29554
        cat >conftest.ui <<EOT
 
29555
        <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
 
29556
EOT
 
29557
        ac_uic_testrun="$UIC_PATH -nounload  conftest.ui >/dev/null"
 
29558
        if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
 
29559
  (eval $ac_uic_testrun) 2>&5
 
29560
  ac_status=$?
 
29561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29562
  (exit $ac_status); }; then
 
29563
            eval "kde_cv_prog_uic_$kde_cache=yes"
 
29564
        else
 
29565
            eval "kde_cv_prog_uic_$kde_cache=no"
 
29566
        fi
 
29567
        rm -f conftest*
 
29568
 
 
29569
fi
 
29570
 
 
29571
 
 
29572
    if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
 
29573
        echo "$as_me:$LINENO: result: yes" >&5
 
29574
echo "${ECHO_T}yes" >&6
 
29575
        :
 
29576
        ac_uic_supports_nounload=yes
 
29577
    else
 
29578
        echo "$as_me:$LINENO: result: no" >&5
 
29579
echo "${ECHO_T}no" >&6
 
29580
        :
 
29581
        ac_uic_supports_nounload=no
 
29582
    fi
 
29583
 
 
29584
 
 
29585
         if test x$ac_uic_supports_libpath = xyes; then
 
29586
             UIC="$UIC -L \$(kde_widgetdir)"
 
29587
         fi
 
29588
         if test x$ac_uic_supports_nounload = xyes; then
 
29589
             UIC="$UIC -nounload"
 
29590
         fi
 
29591
       fi
 
29592
     fi
 
29593
   else
 
29594
     UIC="echo uic not available: "
 
29595
   fi
 
29596
 
 
29597
 
 
29598
 
 
29599
 
 
29600
   UIC_TR="i18n"
 
29601
   if test $kde_qtver = 3; then
 
29602
     UIC_TR="tr2i18n"
 
29603
   fi
 
29604
 
 
29605
 
 
29606
 
 
29607
 
 
29608
 
 
29609
if test -n "$LIBJPEG"; then
 
29610
echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
 
29611
echo $ECHO_N "checking if Qt needs $LIBJPEG... $ECHO_C" >&6
 
29612
if test "${kde_cv_qt_jpeg+set}" = set; then
 
29613
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29614
else
 
29615
 
 
29616
 
 
29617
 
 
29618
 ac_ext=cc
 
29619
ac_cpp='$CXXCPP $CPPFLAGS'
 
29620
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29621
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29622
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
29623
 
 
29624
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
29625
 
 
29626
 
 
29627
ac_save_LIBS="$LIBS"
 
29628
LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
 
29629
LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
 
29630
ac_save_CXXFLAGS="$CXXFLAGS"
 
29631
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
 
29632
cat >conftest.$ac_ext <<_ACEOF
 
29633
/* confdefs.h.  */
 
29634
_ACEOF
 
29635
cat confdefs.h >>conftest.$ac_ext
 
29636
cat >>conftest.$ac_ext <<_ACEOF
 
29637
/* end confdefs.h.  */
 
29638
#include <qapplication.h>
 
29639
int
 
29640
main ()
 
29641
{
 
29642
 
 
29643
            int argc;
 
29644
            char** argv;
 
29645
            QApplication app(argc, argv);
 
29646
  ;
 
29647
  return 0;
 
29648
}
 
29649
_ACEOF
 
29650
rm -f conftest.$ac_objext conftest$ac_exeext
 
29651
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29652
  (eval $ac_link) 2>conftest.er1
 
29653
  ac_status=$?
 
29654
  grep -v '^ *+' conftest.er1 >conftest.err
 
29655
  rm -f conftest.er1
 
29656
  cat conftest.err >&5
 
29657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29658
  (exit $ac_status); } &&
 
29659
         { ac_try='test -z "$ac_cxx_werror_flag"
 
29660
                         || test ! -s conftest.err'
 
29661
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29662
  (eval $ac_try) 2>&5
 
29663
  ac_status=$?
 
29664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29665
  (exit $ac_status); }; } &&
 
29666
         { ac_try='test -s conftest$ac_exeext'
 
29667
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29668
  (eval $ac_try) 2>&5
 
29669
  ac_status=$?
 
29670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29671
  (exit $ac_status); }; }; then
 
29672
  eval "kde_cv_qt_jpeg=no"
 
29673
else
 
29674
  echo "$as_me: failed program was:" >&5
 
29675
sed 's/^/| /' conftest.$ac_ext >&5
 
29676
 
 
29677
eval "kde_cv_qt_jpeg=yes"
 
29678
fi
 
29679
rm -f conftest.err conftest.$ac_objext \
 
29680
      conftest$ac_exeext conftest.$ac_ext
 
29681
LIBS="$ac_save_LIBS"
 
29682
CXXFLAGS="$ac_save_CXXFLAGS"
 
29683
ac_ext=c
 
29684
ac_cpp='$CPP $CPPFLAGS'
 
29685
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29686
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29687
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
29688
 
 
29689
fi
 
29690
 
 
29691
fi
 
29692
 
 
29693
 
 
29694
if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then
 
29695
  echo "$as_me:$LINENO: result: yes" >&5
 
29696
echo "${ECHO_T}yes" >&6
 
29697
  LIBJPEG_QT='$(LIBJPEG)'
 
29698
else
 
29699
  echo "$as_me:$LINENO: result: no" >&5
 
29700
echo "${ECHO_T}no" >&6
 
29701
  LIBJPEG_QT=
 
29702
fi
 
29703
 
 
29704
 
 
29705
 
 
29706
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
 
29707
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
 
29708
else
 
29709
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG)'
 
29710
fi
 
29711
test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
 
29712
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
 
29713
  if test -e "$a"; then
 
29714
     LIB_QT="$LIB_QT ${kde_int_qt}_incremental"
 
29715
     break
 
29716
  fi
 
29717
done
 
29718
 
 
29719
 
 
29720
 
 
29721
 
 
29722
 
 
29723
 
 
29724
 
 
29725
 
 
29726
 
 
29727
 
 
29728
 
 
29729
 
 
29730
 
 
29731
echo "$as_me:$LINENO: checking for rpath" >&5
 
29732
echo $ECHO_N "checking for rpath... $ECHO_C" >&6
 
29733
# Check whether --enable-rpath or --disable-rpath was given.
 
29734
if test "${enable_rpath+set}" = set; then
 
29735
  enableval="$enable_rpath"
 
29736
  USE_RPATH=$enableval
 
29737
else
 
29738
  USE_RPATH=yes
 
29739
fi;
 
29740
 
 
29741
if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
 
29742
 
 
29743
  KDE_RPATH="-R \$(kde_libraries)"
 
29744
 
 
29745
  if test -n "$qt_libraries"; then
 
29746
    KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
 
29747
  fi
 
29748
    if test -n "$X_LDFLAGS"; then
 
29749
    X_RPATH="-R \$(x_libraries)"
 
29750
    KDE_RPATH="$KDE_RPATH $X_RPATH"
 
29751
  fi
 
29752
  if test -n "$KDE_EXTRA_RPATH"; then
 
29753
    KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)"
 
29754
  fi
 
29755
fi
 
29756
 
 
29757
 
 
29758
 
 
29759
echo "$as_me:$LINENO: result: $USE_RPATH" >&5
 
29760
echo "${ECHO_T}$USE_RPATH" >&6
 
29761
 
 
29762
echo "$as_me:$LINENO: checking for KDE" >&5
 
29763
echo $ECHO_N "checking for KDE... $ECHO_C" >&6
 
29764
 
 
29765
if test "${prefix}" != NONE; then
 
29766
  kde_includes=${includedir}
 
29767
 
 
29768
savex=$exec_prefix
 
29769
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
29770
tmp=$includedir
 
29771
while ac_kde_includes=`eval echo "$tmp"`; test "x$ac_kde_includes" != "x$tmp"; do tmp=$ac_kde_includes; done
 
29772
exec_prefix=$savex
 
29773
 
 
29774
 
 
29775
  kde_libraries=${libdir}
 
29776
 
 
29777
savex=$exec_prefix
 
29778
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
29779
tmp=$libdir
 
29780
while ac_kde_libraries=`eval echo "$tmp"`; test "x$ac_kde_libraries" != "x$tmp"; do tmp=$ac_kde_libraries; done
 
29781
exec_prefix=$savex
 
29782
 
 
29783
 
 
29784
else
 
29785
  ac_kde_includes=
 
29786
  ac_kde_libraries=
 
29787
  kde_libraries=""
 
29788
  kde_includes=""
 
29789
fi
 
29790
 
 
29791
if test "${ac_cv_have_kde+set}" = set; then
 
29792
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29793
else
 
29794
  #try to guess kde locations
 
29795
 
 
29796
if test "$kde_qtver" = 1; then
 
29797
  kde_check_header="ksock.h"
 
29798
  kde_check_lib="libkdecore.la"
 
29799
else
 
29800
  kde_check_header="ksharedptr.h"
 
29801
  kde_check_lib="libkio.la"
 
29802
fi
 
29803
 
 
29804
if test -z ""; then
 
29805
 
 
29806
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"
 
29807
test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
 
29808
kde_incdirs="$ac_kde_includes $kde_incdirs"
 
29809
 
 
29810
kde_incdir=NO
 
29811
for i in $kde_incdirs;
 
29812
do
 
29813
  for j in $kde_check_header;
 
29814
  do
 
29815
    echo "configure: 29815: $i/$j" >&5
 
29816
    if test -r "$i/$j"; then
 
29817
      echo "taking that" >&5
 
29818
      kde_incdir=$i
 
29819
      break 2
 
29820
    fi
 
29821
  done
 
29822
done
 
29823
 
 
29824
ac_kde_includes="$kde_incdir"
 
29825
 
 
29826
if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
 
29827
  { { echo "$as_me:$LINENO: error:
 
29828
in the prefix, you've chosen, are no KDE headers installed. This will fail.
 
29829
So, check this please and use another prefix!" >&5
 
29830
echo "$as_me: error:
 
29831
in the prefix, you've chosen, are no KDE headers installed. This will fail.
 
29832
So, check this please and use another prefix!" >&2;}
 
29833
   { (exit 1); exit 1; }; }
 
29834
fi
 
29835
 
 
29836
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}"
 
29837
test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs"
 
29838
kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs"
 
29839
 
 
29840
kde_libdir=NO
 
29841
for i in $kde_libdirs;
 
29842
do
 
29843
  for j in $kde_check_lib;
 
29844
  do
 
29845
    echo "configure: 29845: $i/$j" >&5
 
29846
    if test -r "$i/$j"; then
 
29847
      echo "taking that" >&5
 
29848
      kde_libdir=$i
 
29849
      break 2
 
29850
    fi
 
29851
  done
 
29852
done
 
29853
 
 
29854
ac_kde_libraries="$kde_libdir"
 
29855
 
 
29856
kde_widgetdir=NO
 
29857
 
 
29858
kde_widgetdir=NO
 
29859
for i in $kde_libdirs;
 
29860
do
 
29861
  for j in "kde3/plugins/designer/kdewidgets.la";
 
29862
  do
 
29863
    echo "configure: 29863: $i/$j" >&5
 
29864
    if test -r "$i/$j"; then
 
29865
      echo "taking that" >&5
 
29866
      kde_widgetdir=$i
 
29867
      break 2
 
29868
    fi
 
29869
  done
 
29870
done
 
29871
 
 
29872
 
 
29873
if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
 
29874
{ { echo "$as_me:$LINENO: error:
 
29875
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
 
29876
So, check this please and use another prefix!" >&5
 
29877
echo "$as_me: error:
 
29878
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
 
29879
So, check this please and use another prefix!" >&2;}
 
29880
   { (exit 1); exit 1; }; }
 
29881
fi
 
29882
 
 
29883
if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then
 
29884
{ { echo "$as_me:$LINENO: error:
 
29885
I can't find the designer plugins. These are required and should have been installed
 
29886
by kdelibs" >&5
 
29887
echo "$as_me: error:
 
29888
I can't find the designer plugins. These are required and should have been installed
 
29889
by kdelibs" >&2;}
 
29890
   { (exit 1); exit 1; }; }
 
29891
fi
 
29892
 
 
29893
if test -n "$kde_widgetdir"; then
 
29894
    kde_widgetdir="$kde_widgetdir/kde3/plugins/designer"
 
29895
fi
 
29896
 
 
29897
 
 
29898
if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO || test "$kde_widgetdir" = NO; then
 
29899
  ac_cv_have_kde="have_kde=no"
 
29900
else
 
29901
  ac_cv_have_kde="have_kde=yes \
 
29902
    ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
 
29903
fi
 
29904
 
 
29905
else
 
29906
  ac_cv_have_kde="have_kde=no"
 
29907
 
 
29908
fi
 
29909
 
 
29910
fi
 
29911
 
 
29912
eval "$ac_cv_have_kde"
 
29913
 
 
29914
if test "$have_kde" != "yes"; then
 
29915
 if test "${prefix}" = NONE; then
 
29916
  ac_kde_prefix="$ac_default_prefix"
 
29917
 else
 
29918
  ac_kde_prefix="$prefix"
 
29919
 fi
 
29920
 if test "$exec_prefix" = NONE; then
 
29921
  ac_kde_exec_prefix="$ac_kde_prefix"
 
29922
  echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix" >&5
 
29923
echo "${ECHO_T}will be installed in $ac_kde_prefix" >&6
 
29924
 else
 
29925
  ac_kde_exec_prefix="$exec_prefix"
 
29926
  echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&5
 
29927
echo "${ECHO_T}will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&6
 
29928
 fi
 
29929
 
 
29930
 kde_libraries="${libdir}"
 
29931
 kde_includes="${includedir}"
 
29932
 
 
29933
else
 
29934
  ac_cv_have_kde="have_kde=yes \
 
29935
    ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
 
29936
  echo "$as_me:$LINENO: result: libraries $ac_kde_libraries, headers $ac_kde_includes" >&5
 
29937
echo "${ECHO_T}libraries $ac_kde_libraries, headers $ac_kde_includes" >&6
 
29938
 
 
29939
  kde_libraries="$ac_kde_libraries"
 
29940
  kde_includes="$ac_kde_includes"
 
29941
fi
 
29942
 
 
29943
 
 
29944
 
 
29945
if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes"  || test "$kde_includes" = "/usr/include"; then
 
29946
 KDE_INCLUDES=""
 
29947
else
 
29948
 KDE_INCLUDES="-I$kde_includes"
 
29949
 all_includes="$KDE_INCLUDES $all_includes"
 
29950
fi
 
29951
 
 
29952
KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION"
 
29953
 
 
29954
KDE_LDFLAGS="-L$kde_libraries"
 
29955
if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
 
29956
 all_libraries="$all_libraries $KDE_LDFLAGS"
 
29957
fi
 
29958
 
 
29959
 
 
29960
 
 
29961
 
 
29962
 
 
29963
 
 
29964
all_libraries="$all_libraries $USER_LDFLAGS"
 
29965
all_includes="$all_includes $USER_INCLUDES"
 
29966
 
 
29967
 
 
29968
 
 
29969
if test -z ""; then
 
29970
 
 
29971
 
 
29972
 
 
29973
if test x$ac_uic_supports_libpath = xyes; then
 
29974
 
 
29975
echo "$as_me:$LINENO: checking if UIC has KDE plugins available" >&5
 
29976
echo $ECHO_N "checking if UIC has KDE plugins available... $ECHO_C" >&6
 
29977
if test "${kde_cv_uic_plugins+set}" = set; then
 
29978
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29979
else
 
29980
 
 
29981
cat > actest.ui << EOF
 
29982
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
 
29983
<class>NewConnectionDialog</class>
 
29984
<widget class="QDialog">
 
29985
   <widget class="KLineEdit">
 
29986
        <property name="name">
 
29987
           <cstring>testInput</cstring>
 
29988
        </property>
 
29989
   </widget>
 
29990
</widget>
 
29991
</UI>
 
29992
EOF
 
29993
 
 
29994
 
 
29995
 
 
29996
kde_cv_uic_plugins=no
 
29997
kde_line="$UIC_PATH -L $kde_widgetdir"
 
29998
if test x$ac_uic_supports_nounload = xyes; then
 
29999
   kde_line="$kde_line -nounload"
 
30000
fi
 
30001
kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
 
30002
if { (eval echo "$as_me:$LINENO: \"$kde_line\"") >&5
 
30003
  (eval $kde_line) 2>&5
 
30004
  ac_status=$?
 
30005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30006
  (exit $ac_status); }; then
 
30007
        # if you're trying to debug this check and think it's incorrect,
 
30008
        # better check your installation. The check _is_ correct - your
 
30009
        # installation is not.
 
30010
        if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
 
30011
                kde_cv_uic_plugins=yes
 
30012
        fi
 
30013
fi
 
30014
rm -f actest.ui actest.cpp
 
30015
 
 
30016
fi
 
30017
 
 
30018
 
 
30019
echo "$as_me:$LINENO: result: $kde_cv_uic_plugins" >&5
 
30020
echo "${ECHO_T}$kde_cv_uic_plugins" >&6
 
30021
if test "$kde_cv_uic_plugins" != yes; then
 
30022
        { { echo "$as_me:$LINENO: error: you need to install kdelibs first." >&5
 
30023
echo "$as_me: error: you need to install kdelibs first." >&2;}
 
30024
   { (exit 1); exit 1; }; }
 
30025
fi
 
30026
fi
 
30027
 
 
30028
fi
 
30029
 
 
30030
ac_kde_libraries="$kde_libdir"
 
30031
 
 
30032
 
 
30033
 
 
30034
 
 
30035
 
 
30036
  # Check whether --enable-path-check or --disable-path-check was given.
 
30037
if test "${enable_path_check+set}" = set; then
 
30038
  enableval="$enable_path_check"
 
30039
 
 
30040
  if test "$enableval" = "no";
 
30041
    then ac_use_path_checking="default"
 
30042
    else ac_use_path_checking=""
 
30043
  fi
 
30044
 
 
30045
else
 
30046
 
 
30047
  if test "$kde_qtver" = 1;
 
30048
    then ac_use_path_checking=""
 
30049
    else ac_use_path_checking="default"
 
30050
  fi
 
30051
 
 
30052
 
 
30053
fi;
 
30054
 
 
30055
 
 
30056
 
 
30057
 
 
30058
echo "$as_me:$LINENO: checking for KDE paths" >&5
 
30059
echo $ECHO_N "checking for KDE paths... $ECHO_C" >&6
 
30060
kde_result=""
 
30061
kde_cached_paths=yes
 
30062
if test "${kde_cv_all_paths+set}" = set; then
 
30063
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30064
else
 
30065
 
 
30066
 
 
30067
if test "$ac_use_path_checking" = "default"; then
 
30068
 
 
30069
  if test -z "$kde_htmldir"; then
 
30070
    kde_htmldir='\${datadir}/doc/HTML'
 
30071
  fi
 
30072
  if test -z "$kde_appsdir"; then
 
30073
    kde_appsdir='\${datadir}/applnk'
 
30074
  fi
 
30075
  if test -z "$kde_icondir"; then
 
30076
    kde_icondir='\${datadir}/icons'
 
30077
  fi
 
30078
  if test -z "$kde_sounddir"; then
 
30079
    kde_sounddir='\${datadir}/sounds'
 
30080
  fi
 
30081
  if test -z "$kde_datadir"; then
 
30082
    kde_datadir='\${datadir}/apps'
 
30083
  fi
 
30084
  if test -z "$kde_locale"; then
 
30085
    kde_locale='\${datadir}/locale'
 
30086
  fi
 
30087
  if test -z "$kde_cgidir"; then
 
30088
    kde_cgidir='\${exec_prefix}/cgi-bin'
 
30089
  fi
 
30090
  if test -z "$kde_confdir"; then
 
30091
    kde_confdir='\${datadir}/config'
 
30092
  fi
 
30093
  if test -z "$kde_kcfgdir"; then
 
30094
    kde_kcfgdir='\${datadir}/config.kcfg'
 
30095
  fi
 
30096
  if test -z "$kde_mimedir"; then
 
30097
    kde_mimedir='\${datadir}/mimelnk'
 
30098
  fi
 
30099
  if test -z "$kde_toolbardir"; then
 
30100
    kde_toolbardir='\${datadir}/toolbar'
 
30101
  fi
 
30102
  if test -z "$kde_wallpaperdir"; then
 
30103
    kde_wallpaperdir='\${datadir}/wallpapers'
 
30104
  fi
 
30105
  if test -z "$kde_templatesdir"; then
 
30106
    kde_templatesdir='\${datadir}/templates'
 
30107
  fi
 
30108
  if test -z "$kde_bindir"; then
 
30109
    kde_bindir='\${exec_prefix}/bin'
 
30110
  fi
 
30111
  if test -z "$kde_servicesdir"; then
 
30112
    kde_servicesdir='\${datadir}/services'
 
30113
  fi
 
30114
  if test -z "$kde_servicetypesdir"; then
 
30115
    kde_servicetypesdir='\${datadir}/servicetypes'
 
30116
  fi
 
30117
  if test -z "$kde_moduledir"; then
 
30118
    if test "$kde_qtver" = "2"; then
 
30119
      kde_moduledir='\${libdir}/kde2'
 
30120
    else
 
30121
      kde_moduledir='\${libdir}/kde3'
 
30122
    fi
 
30123
  fi
 
30124
  if test -z "$kde_styledir"; then
 
30125
    kde_styledir='\${libdir}/kde3/plugins/styles'
 
30126
  fi
 
30127
  if test -z "$kde_widgetdir"; then
 
30128
    kde_widgetdir='\${libdir}/kde3/plugins/designer'
 
30129
  fi
 
30130
  if test -z "$xdg_appsdir"; then
 
30131
    xdg_appsdir='\${datadir}/applications/kde'
 
30132
  fi
 
30133
  if test -z "$xdg_menudir"; then
 
30134
    xdg_menudir='\${sysconfdir}/xdg/menus'
 
30135
  fi
 
30136
  if test -z "$xdg_directorydir"; then
 
30137
    xdg_directorydir='\${datadir}/desktop-directories'
 
30138
  fi
 
30139
 
 
30140
 
 
30141
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
 
30142
        kde_htmldir=\"$kde_htmldir\" \
 
30143
        kde_appsdir=\"$kde_appsdir\" \
 
30144
        kde_icondir=\"$kde_icondir\" \
 
30145
        kde_sounddir=\"$kde_sounddir\" \
 
30146
        kde_datadir=\"$kde_datadir\" \
 
30147
        kde_locale=\"$kde_locale\" \
 
30148
        kde_cgidir=\"$kde_cgidir\" \
 
30149
        kde_confdir=\"$kde_confdir\" \
 
30150
        kde_kcfgdir=\"$kde_kcfgdir\" \
 
30151
        kde_mimedir=\"$kde_mimedir\" \
 
30152
        kde_toolbardir=\"$kde_toolbardir\" \
 
30153
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
 
30154
        kde_templatesdir=\"$kde_templatesdir\" \
 
30155
        kde_bindir=\"$kde_bindir\" \
 
30156
        kde_servicesdir=\"$kde_servicesdir\" \
 
30157
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
 
30158
        kde_moduledir=\"$kde_moduledir\" \
 
30159
        kde_styledir=\"$kde_styledir\" \
 
30160
        kde_widgetdir=\"$kde_widgetdir\" \
 
30161
        xdg_appsdir=\"$xdg_appsdir\" \
 
30162
        xdg_menudir=\"$xdg_menudir\" \
 
30163
        xdg_directorydir=\"$xdg_directorydir\" \
 
30164
        kde_result=defaults"
 
30165
 
 
30166
 
 
30167
else
 
30168
 
 
30169
  if test $kde_qtver = 1; then
 
30170
     echo "$as_me:$LINENO: result: compiling" >&5
 
30171
echo "${ECHO_T}compiling" >&6
 
30172
 
 
30173
 
 
30174
    echo "$as_me:$LINENO: checking for KDE headers installed" >&5
 
30175
echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6
 
30176
 
 
30177
 
 
30178
     ac_ext=cc
 
30179
ac_cpp='$CXXCPP $CPPFLAGS'
 
30180
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30181
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30182
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
30183
 
 
30184
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
30185
 
 
30186
 
 
30187
cat > conftest.$ac_ext <<EOF
 
30188
#ifdef STDC_HEADERS
 
30189
# include <stdlib.h>
 
30190
#endif
 
30191
#include <stdio.h>
 
30192
#include "confdefs.h"
 
30193
#include <kapp.h>
 
30194
 
 
30195
int main() {
 
30196
    printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
 
30197
    printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
 
30198
    printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
 
30199
    printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
 
30200
    printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
 
30201
    printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
 
30202
    printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
 
30203
    printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
 
30204
    printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
 
30205
    printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
 
30206
    printf("kde_wallpaperdir=\\"%s\\"\n",
 
30207
        KApplication::kde_wallpaperdir().data());
 
30208
    printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
 
30209
    printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
 
30210
    printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
 
30211
    printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
 
30212
    printf("kde_moduledir=\\"/tmp/dummy\\"\n");
 
30213
    printf("kde_styledir=\\"/tmp/dummy\\"\n");
 
30214
    printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
 
30215
    printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
 
30216
    printf("xdg_menudir=\\"/tmp/dummy\\"\n");
 
30217
    printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
 
30218
    printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
 
30219
    return 0;
 
30220
    }
 
30221
EOF
 
30222
 
 
30223
 ac_save_CPPFLAGS=$CPPFLAGS
 
30224
 CPPFLAGS="$all_includes $CPPFLAGS"
 
30225
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30226
  (eval $ac_compile) 2>&5
 
30227
  ac_status=$?
 
30228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30229
  (exit $ac_status); }; then
 
30230
   echo "$as_me:$LINENO: result: yes" >&5
 
30231
echo "${ECHO_T}yes" >&6
 
30232
 else
 
30233
   { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
 
30234
Check, if you installed the KDE header files correctly.
 
30235
For more details about this problem, look at the end of config.log." >&5
 
30236
echo "$as_me: error: your system is not able to compile a small KDE application!
 
30237
Check, if you installed the KDE header files correctly.
 
30238
For more details about this problem, look at the end of config.log." >&2;}
 
30239
   { (exit 1); exit 1; }; }
 
30240
  fi
 
30241
  CPPFLAGS=$ac_save_CPPFLAGS
 
30242
 
 
30243
  ac_ext=c
 
30244
ac_cpp='$CPP $CPPFLAGS'
 
30245
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30246
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30247
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
30248
 
 
30249
 
 
30250
 
 
30251
  KDE_TEST_RPATH=
 
30252
 
 
30253
  if test -n "$USE_RPATH"; then
 
30254
 
 
30255
     if test -n "$kde_libraries"; then
 
30256
       KDE_TEST_RPATH="-R $kde_libraries"
 
30257
     fi
 
30258
 
 
30259
     if test -n "$qt_libraries"; then
 
30260
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
 
30261
     fi
 
30262
 
 
30263
     if test -n "$x_libraries"; then
 
30264
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
 
30265
     fi
 
30266
 
 
30267
     KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
 
30268
  fi
 
30269
 
 
30270
echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
 
30271
echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6
 
30272
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'
 
30273
 
 
30274
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30275
  (eval $ac_link) 2>&5
 
30276
  ac_status=$?
 
30277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30278
  (exit $ac_status); } && test -s conftest; then
 
30279
  echo "$as_me:$LINENO: result: yes" >&5
 
30280
echo "${ECHO_T}yes" >&6
 
30281
else
 
30282
  { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
 
30283
Check, if your compiler is installed correctly and if you have used the
 
30284
same compiler to compile Qt and kdelibs as you did use now.
 
30285
For more details about this problem, look at the end of config.log." >&5
 
30286
echo "$as_me: error: your system fails at linking a small KDE application!
 
30287
Check, if your compiler is installed correctly and if you have used the
 
30288
same compiler to compile Qt and kdelibs as you did use now.
 
30289
For more details about this problem, look at the end of config.log." >&2;}
 
30290
   { (exit 1); exit 1; }; }
 
30291
fi
 
30292
 
 
30293
if eval `KDEDIR= ./conftest 2>&5`; then
 
30294
  kde_result=done
 
30295
else
 
30296
  kde_result=problems
 
30297
fi
 
30298
 
 
30299
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
 
30300
kde_have_all_paths=yes
 
30301
 
 
30302
 
 
30303
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
 
30304
        kde_htmldir=\"$kde_htmldir\" \
 
30305
        kde_appsdir=\"$kde_appsdir\" \
 
30306
        kde_icondir=\"$kde_icondir\" \
 
30307
        kde_sounddir=\"$kde_sounddir\" \
 
30308
        kde_datadir=\"$kde_datadir\" \
 
30309
        kde_locale=\"$kde_locale\" \
 
30310
        kde_cgidir=\"$kde_cgidir\" \
 
30311
        kde_confdir=\"$kde_confdir\" \
 
30312
        kde_kcfgdir=\"$kde_kcfgdir\" \
 
30313
        kde_mimedir=\"$kde_mimedir\" \
 
30314
        kde_toolbardir=\"$kde_toolbardir\" \
 
30315
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
 
30316
        kde_templatesdir=\"$kde_templatesdir\" \
 
30317
        kde_bindir=\"$kde_bindir\" \
 
30318
        kde_servicesdir=\"$kde_servicesdir\" \
 
30319
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
 
30320
        kde_moduledir=\"$kde_moduledir\" \
 
30321
        kde_styledir=\"$kde_styledir\" \
 
30322
        kde_widgetdir=\"$kde_widgetdir\" \
 
30323
        xdg_appsdir=\"$xdg_appsdir\" \
 
30324
        xdg_menudir=\"$xdg_menudir\" \
 
30325
        xdg_directorydir=\"$xdg_directorydir\" \
 
30326
        kde_result=$kde_result"
 
30327
 
 
30328
 
 
30329
 
 
30330
  else
 
30331
     { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
 
30332
echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
 
30333
   { (exit 1); exit 1; }; }
 
30334
  fi
 
30335
 
 
30336
fi
 
30337
 
 
30338
  kde_cached_paths=no
 
30339
 
 
30340
fi
 
30341
 
 
30342
eval "$kde_cv_all_paths"
 
30343
 if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
 
30344
   test -z "$kde_icondir" || test -z "$kde_sounddir" ||
 
30345
   test -z "$kde_datadir" || test -z "$kde_locale"  ||
 
30346
   test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
 
30347
   test -z "$kde_kcfgdir" ||
 
30348
   test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
 
30349
   test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
 
30350
   test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
 
30351
   test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
 
30352
   test -z "$kde_styledir" || test -z "kde_widgetdir" ||
 
30353
   test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
 
30354
   test "x$kde_have_all_paths" != "xyes"; then
 
30355
     kde_have_all_paths=no
 
30356
  fi
 
30357
 
 
30358
if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then
 
30359
  # wrong values were cached, may be, we can set better ones
 
30360
  kde_result=
 
30361
  kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
 
30362
  kde_datadir= kde_locale=  kde_cgidir=  kde_confdir= kde_kcfgdir=
 
30363
  kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
 
30364
  kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
 
30365
  kde_have_all_paths=
 
30366
  kde_styledir=
 
30367
  kde_widgetdir=
 
30368
  xdg_appsdir = xdg_menudir= xdg_directorydir=
 
30369
 
 
30370
if test "$ac_use_path_checking" = "default"; then
 
30371
 
 
30372
  if test -z "$kde_htmldir"; then
 
30373
    kde_htmldir='\${datadir}/doc/HTML'
 
30374
  fi
 
30375
  if test -z "$kde_appsdir"; then
 
30376
    kde_appsdir='\${datadir}/applnk'
 
30377
  fi
 
30378
  if test -z "$kde_icondir"; then
 
30379
    kde_icondir='\${datadir}/icons'
 
30380
  fi
 
30381
  if test -z "$kde_sounddir"; then
 
30382
    kde_sounddir='\${datadir}/sounds'
 
30383
  fi
 
30384
  if test -z "$kde_datadir"; then
 
30385
    kde_datadir='\${datadir}/apps'
 
30386
  fi
 
30387
  if test -z "$kde_locale"; then
 
30388
    kde_locale='\${datadir}/locale'
 
30389
  fi
 
30390
  if test -z "$kde_cgidir"; then
 
30391
    kde_cgidir='\${exec_prefix}/cgi-bin'
 
30392
  fi
 
30393
  if test -z "$kde_confdir"; then
 
30394
    kde_confdir='\${datadir}/config'
 
30395
  fi
 
30396
  if test -z "$kde_kcfgdir"; then
 
30397
    kde_kcfgdir='\${datadir}/config.kcfg'
 
30398
  fi
 
30399
  if test -z "$kde_mimedir"; then
 
30400
    kde_mimedir='\${datadir}/mimelnk'
 
30401
  fi
 
30402
  if test -z "$kde_toolbardir"; then
 
30403
    kde_toolbardir='\${datadir}/toolbar'
 
30404
  fi
 
30405
  if test -z "$kde_wallpaperdir"; then
 
30406
    kde_wallpaperdir='\${datadir}/wallpapers'
 
30407
  fi
 
30408
  if test -z "$kde_templatesdir"; then
 
30409
    kde_templatesdir='\${datadir}/templates'
 
30410
  fi
 
30411
  if test -z "$kde_bindir"; then
 
30412
    kde_bindir='\${exec_prefix}/bin'
 
30413
  fi
 
30414
  if test -z "$kde_servicesdir"; then
 
30415
    kde_servicesdir='\${datadir}/services'
 
30416
  fi
 
30417
  if test -z "$kde_servicetypesdir"; then
 
30418
    kde_servicetypesdir='\${datadir}/servicetypes'
 
30419
  fi
 
30420
  if test -z "$kde_moduledir"; then
 
30421
    if test "$kde_qtver" = "2"; then
 
30422
      kde_moduledir='\${libdir}/kde2'
 
30423
    else
 
30424
      kde_moduledir='\${libdir}/kde3'
 
30425
    fi
 
30426
  fi
 
30427
  if test -z "$kde_styledir"; then
 
30428
    kde_styledir='\${libdir}/kde3/plugins/styles'
 
30429
  fi
 
30430
  if test -z "$kde_widgetdir"; then
 
30431
    kde_widgetdir='\${libdir}/kde3/plugins/designer'
 
30432
  fi
 
30433
  if test -z "$xdg_appsdir"; then
 
30434
    xdg_appsdir='\${datadir}/applications/kde'
 
30435
  fi
 
30436
  if test -z "$xdg_menudir"; then
 
30437
    xdg_menudir='\${sysconfdir}/xdg/menus'
 
30438
  fi
 
30439
  if test -z "$xdg_directorydir"; then
 
30440
    xdg_directorydir='\${datadir}/desktop-directories'
 
30441
  fi
 
30442
 
 
30443
 
 
30444
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
 
30445
        kde_htmldir=\"$kde_htmldir\" \
 
30446
        kde_appsdir=\"$kde_appsdir\" \
 
30447
        kde_icondir=\"$kde_icondir\" \
 
30448
        kde_sounddir=\"$kde_sounddir\" \
 
30449
        kde_datadir=\"$kde_datadir\" \
 
30450
        kde_locale=\"$kde_locale\" \
 
30451
        kde_cgidir=\"$kde_cgidir\" \
 
30452
        kde_confdir=\"$kde_confdir\" \
 
30453
        kde_kcfgdir=\"$kde_kcfgdir\" \
 
30454
        kde_mimedir=\"$kde_mimedir\" \
 
30455
        kde_toolbardir=\"$kde_toolbardir\" \
 
30456
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
 
30457
        kde_templatesdir=\"$kde_templatesdir\" \
 
30458
        kde_bindir=\"$kde_bindir\" \
 
30459
        kde_servicesdir=\"$kde_servicesdir\" \
 
30460
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
 
30461
        kde_moduledir=\"$kde_moduledir\" \
 
30462
        kde_styledir=\"$kde_styledir\" \
 
30463
        kde_widgetdir=\"$kde_widgetdir\" \
 
30464
        xdg_appsdir=\"$xdg_appsdir\" \
 
30465
        xdg_menudir=\"$xdg_menudir\" \
 
30466
        xdg_directorydir=\"$xdg_directorydir\" \
 
30467
        kde_result=defaults"
 
30468
 
 
30469
 
 
30470
else
 
30471
 
 
30472
  if test $kde_qtver = 1; then
 
30473
     echo "$as_me:$LINENO: result: compiling" >&5
 
30474
echo "${ECHO_T}compiling" >&6
 
30475
 
 
30476
 
 
30477
    echo "$as_me:$LINENO: checking for KDE headers installed" >&5
 
30478
echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6
 
30479
 
 
30480
 
 
30481
     ac_ext=cc
 
30482
ac_cpp='$CXXCPP $CPPFLAGS'
 
30483
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30484
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30485
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
30486
 
 
30487
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
30488
 
 
30489
 
 
30490
cat > conftest.$ac_ext <<EOF
 
30491
#ifdef STDC_HEADERS
 
30492
# include <stdlib.h>
 
30493
#endif
 
30494
#include <stdio.h>
 
30495
#include "confdefs.h"
 
30496
#include <kapp.h>
 
30497
 
 
30498
int main() {
 
30499
    printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
 
30500
    printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
 
30501
    printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
 
30502
    printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
 
30503
    printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
 
30504
    printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
 
30505
    printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
 
30506
    printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
 
30507
    printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
 
30508
    printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
 
30509
    printf("kde_wallpaperdir=\\"%s\\"\n",
 
30510
        KApplication::kde_wallpaperdir().data());
 
30511
    printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
 
30512
    printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
 
30513
    printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
 
30514
    printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
 
30515
    printf("kde_moduledir=\\"/tmp/dummy\\"\n");
 
30516
    printf("kde_styledir=\\"/tmp/dummy\\"\n");
 
30517
    printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
 
30518
    printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
 
30519
    printf("xdg_menudir=\\"/tmp/dummy\\"\n");
 
30520
    printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
 
30521
    printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
 
30522
    return 0;
 
30523
    }
 
30524
EOF
 
30525
 
 
30526
 ac_save_CPPFLAGS=$CPPFLAGS
 
30527
 CPPFLAGS="$all_includes $CPPFLAGS"
 
30528
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30529
  (eval $ac_compile) 2>&5
 
30530
  ac_status=$?
 
30531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30532
  (exit $ac_status); }; then
 
30533
   echo "$as_me:$LINENO: result: yes" >&5
 
30534
echo "${ECHO_T}yes" >&6
 
30535
 else
 
30536
   { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
 
30537
Check, if you installed the KDE header files correctly.
 
30538
For more details about this problem, look at the end of config.log." >&5
 
30539
echo "$as_me: error: your system is not able to compile a small KDE application!
 
30540
Check, if you installed the KDE header files correctly.
 
30541
For more details about this problem, look at the end of config.log." >&2;}
 
30542
   { (exit 1); exit 1; }; }
 
30543
  fi
 
30544
  CPPFLAGS=$ac_save_CPPFLAGS
 
30545
 
 
30546
  ac_ext=c
 
30547
ac_cpp='$CPP $CPPFLAGS'
 
30548
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30549
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30550
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
30551
 
 
30552
 
 
30553
 
 
30554
  KDE_TEST_RPATH=
 
30555
 
 
30556
  if test -n "$USE_RPATH"; then
 
30557
 
 
30558
     if test -n "$kde_libraries"; then
 
30559
       KDE_TEST_RPATH="-R $kde_libraries"
 
30560
     fi
 
30561
 
 
30562
     if test -n "$qt_libraries"; then
 
30563
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
 
30564
     fi
 
30565
 
 
30566
     if test -n "$x_libraries"; then
 
30567
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
 
30568
     fi
 
30569
 
 
30570
     KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
 
30571
  fi
 
30572
 
 
30573
echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
 
30574
echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6
 
30575
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'
 
30576
 
 
30577
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30578
  (eval $ac_link) 2>&5
 
30579
  ac_status=$?
 
30580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30581
  (exit $ac_status); } && test -s conftest; then
 
30582
  echo "$as_me:$LINENO: result: yes" >&5
 
30583
echo "${ECHO_T}yes" >&6
 
30584
else
 
30585
  { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
 
30586
Check, if your compiler is installed correctly and if you have used the
 
30587
same compiler to compile Qt and kdelibs as you did use now.
 
30588
For more details about this problem, look at the end of config.log." >&5
 
30589
echo "$as_me: error: your system fails at linking a small KDE application!
 
30590
Check, if your compiler is installed correctly and if you have used the
 
30591
same compiler to compile Qt and kdelibs as you did use now.
 
30592
For more details about this problem, look at the end of config.log." >&2;}
 
30593
   { (exit 1); exit 1; }; }
 
30594
fi
 
30595
 
 
30596
if eval `KDEDIR= ./conftest 2>&5`; then
 
30597
  kde_result=done
 
30598
else
 
30599
  kde_result=problems
 
30600
fi
 
30601
 
 
30602
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
 
30603
kde_have_all_paths=yes
 
30604
 
 
30605
 
 
30606
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
 
30607
        kde_htmldir=\"$kde_htmldir\" \
 
30608
        kde_appsdir=\"$kde_appsdir\" \
 
30609
        kde_icondir=\"$kde_icondir\" \
 
30610
        kde_sounddir=\"$kde_sounddir\" \
 
30611
        kde_datadir=\"$kde_datadir\" \
 
30612
        kde_locale=\"$kde_locale\" \
 
30613
        kde_cgidir=\"$kde_cgidir\" \
 
30614
        kde_confdir=\"$kde_confdir\" \
 
30615
        kde_kcfgdir=\"$kde_kcfgdir\" \
 
30616
        kde_mimedir=\"$kde_mimedir\" \
 
30617
        kde_toolbardir=\"$kde_toolbardir\" \
 
30618
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
 
30619
        kde_templatesdir=\"$kde_templatesdir\" \
 
30620
        kde_bindir=\"$kde_bindir\" \
 
30621
        kde_servicesdir=\"$kde_servicesdir\" \
 
30622
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
 
30623
        kde_moduledir=\"$kde_moduledir\" \
 
30624
        kde_styledir=\"$kde_styledir\" \
 
30625
        kde_widgetdir=\"$kde_widgetdir\" \
 
30626
        xdg_appsdir=\"$xdg_appsdir\" \
 
30627
        xdg_menudir=\"$xdg_menudir\" \
 
30628
        xdg_directorydir=\"$xdg_directorydir\" \
 
30629
        kde_result=$kde_result"
 
30630
 
 
30631
 
 
30632
 
 
30633
  else
 
30634
     { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
 
30635
echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
 
30636
   { (exit 1); exit 1; }; }
 
30637
  fi
 
30638
 
 
30639
fi
 
30640
 
 
30641
  eval "$kde_cv_all_paths"
 
30642
   if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
 
30643
   test -z "$kde_icondir" || test -z "$kde_sounddir" ||
 
30644
   test -z "$kde_datadir" || test -z "$kde_locale"  ||
 
30645
   test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
 
30646
   test -z "$kde_kcfgdir" ||
 
30647
   test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
 
30648
   test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
 
30649
   test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
 
30650
   test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
 
30651
   test -z "$kde_styledir" || test -z "kde_widgetdir" ||
 
30652
   test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
 
30653
   test "x$kde_have_all_paths" != "xyes"; then
 
30654
     kde_have_all_paths=no
 
30655
  fi
 
30656
 
 
30657
  kde_result="$kde_result (cache overridden)"
 
30658
fi
 
30659
if test "$kde_have_all_paths" = "no"; then
 
30660
  { { echo "$as_me:$LINENO: error: configure could not run a little KDE program to test the environment.
 
30661
Since it had compiled and linked before, it must be a strange problem on your system.
 
30662
Look at config.log for details. If you are not able to fix this, look at
 
30663
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
 
30664
(If you're using an egcs version on Linux, you may update binutils!)
 
30665
" >&5
 
30666
echo "$as_me: error: configure could not run a little KDE program to test the environment.
 
30667
Since it had compiled and linked before, it must be a strange problem on your system.
 
30668
Look at config.log for details. If you are not able to fix this, look at
 
30669
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
 
30670
(If you're using an egcs version on Linux, you may update binutils!)
 
30671
" >&2;}
 
30672
   { (exit 1); exit 1; }; }
 
30673
else
 
30674
  rm -f conftest*
 
30675
  echo "$as_me:$LINENO: result: $kde_result" >&5
 
30676
echo "${ECHO_T}$kde_result" >&6
 
30677
fi
 
30678
 
 
30679
bindir=$kde_bindir
 
30680
 
 
30681
 
 
30682
 
 
30683
# Check whether --with-arts or --without-arts was given.
 
30684
if test "${with_arts+set}" = set; then
 
30685
  withval="$with_arts"
 
30686
  build_arts=$withval
 
30687
else
 
30688
  build_arts=yes
 
30689
 
 
30690
fi;
 
30691
 
 
30692
 
 
30693
if test "$build_arts" '!=' "no"; then
 
30694
  include_ARTS_TRUE=
 
30695
  include_ARTS_FALSE='#'
 
30696
else
 
30697
  include_ARTS_TRUE='#'
 
30698
  include_ARTS_FALSE=
 
30699
fi
 
30700
 
 
30701
    if test "$build_arts" = "no"; then
 
30702
 
 
30703
cat >>confdefs.h <<\_ACEOF
 
30704
#define WITHOUT_ARTS 1
 
30705
_ACEOF
 
30706
 
 
30707
    fi
 
30708
 
 
30709
 
 
30710
    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"
 
30711
    test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
 
30712
    if test -n "$KDEDIRS"; then
 
30713
       kde_save_IFS=$IFS
 
30714
       IFS=:
 
30715
       for dir in $KDEDIRS; do
 
30716
            kde_default_bindirs="$dir/bin $kde_default_bindirs "
 
30717
       done
 
30718
       IFS=$kde_save_IFS
 
30719
    fi
 
30720
 
 
30721
        kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs"
 
30722
 
 
30723
   echo "$as_me:$LINENO: checking for dcopidl" >&5
 
30724
echo $ECHO_N "checking for dcopidl... $ECHO_C" >&6
 
30725
   if test -n "$DCOPIDL"; then
 
30726
        kde_cv_path="$DCOPIDL";
 
30727
   else
 
30728
        kde_cache=`echo dcopidl | sed 'y%./+-%__p_%'`
 
30729
 
 
30730
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
30731
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30732
else
 
30733
 
 
30734
        kde_cv_path="NONE"
 
30735
        kde_save_IFS=$IFS
 
30736
        IFS=':'
 
30737
        dirs=""
 
30738
        for dir in $PATH; do
 
30739
          dirs="$dirs $dir"
 
30740
        done
 
30741
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
30742
        else      dirs="$dirs $kde_default_bindirs"
 
30743
        fi
 
30744
        IFS=$kde_save_IFS
 
30745
 
 
30746
        for dir in $dirs; do
 
30747
          if test -x "$dir/dcopidl"; then
 
30748
            if test -n ""
 
30749
            then
 
30750
              evalstr="$dir/dcopidl  2>&1 "
 
30751
              if eval $evalstr; then
 
30752
                kde_cv_path="$dir/dcopidl"
 
30753
                break
 
30754
              fi
 
30755
            else
 
30756
                kde_cv_path="$dir/dcopidl"
 
30757
                break
 
30758
            fi
 
30759
          fi
 
30760
        done
 
30761
 
 
30762
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
30763
 
 
30764
 
 
30765
fi
 
30766
 
 
30767
 
 
30768
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
30769
 
 
30770
   fi
 
30771
 
 
30772
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
30773
      echo "$as_me:$LINENO: result: not found" >&5
 
30774
echo "${ECHO_T}not found" >&6
 
30775
 
 
30776
    { { echo "$as_me:$LINENO: error: The important program dcopidl was not found!
 
30777
Please check whether you installed KDE correctly.
 
30778
" >&5
 
30779
echo "$as_me: error: The important program dcopidl was not found!
 
30780
Please check whether you installed KDE correctly.
 
30781
" >&2;}
 
30782
   { (exit 1); exit 1; }; }
 
30783
 
 
30784
   else
 
30785
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
30786
echo "${ECHO_T}$kde_cv_path" >&6
 
30787
      DCOPIDL=$kde_cv_path
 
30788
 
 
30789
   fi
 
30790
 
 
30791
 
 
30792
   echo "$as_me:$LINENO: checking for dcopidl2cpp" >&5
 
30793
echo $ECHO_N "checking for dcopidl2cpp... $ECHO_C" >&6
 
30794
   if test -n "$DCOPIDL2CPP"; then
 
30795
        kde_cv_path="$DCOPIDL2CPP";
 
30796
   else
 
30797
        kde_cache=`echo dcopidl2cpp | sed 'y%./+-%__p_%'`
 
30798
 
 
30799
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
30800
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30801
else
 
30802
 
 
30803
        kde_cv_path="NONE"
 
30804
        kde_save_IFS=$IFS
 
30805
        IFS=':'
 
30806
        dirs=""
 
30807
        for dir in $PATH; do
 
30808
          dirs="$dirs $dir"
 
30809
        done
 
30810
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
30811
        else      dirs="$dirs $kde_default_bindirs"
 
30812
        fi
 
30813
        IFS=$kde_save_IFS
 
30814
 
 
30815
        for dir in $dirs; do
 
30816
          if test -x "$dir/dcopidl2cpp"; then
 
30817
            if test -n ""
 
30818
            then
 
30819
              evalstr="$dir/dcopidl2cpp  2>&1 "
 
30820
              if eval $evalstr; then
 
30821
                kde_cv_path="$dir/dcopidl2cpp"
 
30822
                break
 
30823
              fi
 
30824
            else
 
30825
                kde_cv_path="$dir/dcopidl2cpp"
 
30826
                break
 
30827
            fi
 
30828
          fi
 
30829
        done
 
30830
 
 
30831
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
30832
 
 
30833
 
 
30834
fi
 
30835
 
 
30836
 
 
30837
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
30838
 
 
30839
   fi
 
30840
 
 
30841
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
30842
      echo "$as_me:$LINENO: result: not found" >&5
 
30843
echo "${ECHO_T}not found" >&6
 
30844
 
 
30845
    { { echo "$as_me:$LINENO: error: The important program dcopidl2cpp was not found!
 
30846
Please check whether you installed KDE correctly.
 
30847
" >&5
 
30848
echo "$as_me: error: The important program dcopidl2cpp was not found!
 
30849
Please check whether you installed KDE correctly.
 
30850
" >&2;}
 
30851
   { (exit 1); exit 1; }; }
 
30852
 
 
30853
   else
 
30854
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
30855
echo "${ECHO_T}$kde_cv_path" >&6
 
30856
      DCOPIDL2CPP=$kde_cv_path
 
30857
 
 
30858
   fi
 
30859
 
 
30860
        if test "$build_arts" '!=' "no"; then
 
30861
 
 
30862
   echo "$as_me:$LINENO: checking for mcopidl" >&5
 
30863
echo $ECHO_N "checking for mcopidl... $ECHO_C" >&6
 
30864
   if test -n "$MCOPIDL"; then
 
30865
        kde_cv_path="$MCOPIDL";
 
30866
   else
 
30867
        kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'`
 
30868
 
 
30869
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
30870
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30871
else
 
30872
 
 
30873
        kde_cv_path="NONE"
 
30874
        kde_save_IFS=$IFS
 
30875
        IFS=':'
 
30876
        dirs=""
 
30877
        for dir in $PATH; do
 
30878
          dirs="$dirs $dir"
 
30879
        done
 
30880
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
30881
        else      dirs="$dirs $kde_default_bindirs"
 
30882
        fi
 
30883
        IFS=$kde_save_IFS
 
30884
 
 
30885
        for dir in $dirs; do
 
30886
          if test -x "$dir/mcopidl"; then
 
30887
            if test -n ""
 
30888
            then
 
30889
              evalstr="$dir/mcopidl  2>&1 "
 
30890
              if eval $evalstr; then
 
30891
                kde_cv_path="$dir/mcopidl"
 
30892
                break
 
30893
              fi
 
30894
            else
 
30895
                kde_cv_path="$dir/mcopidl"
 
30896
                break
 
30897
            fi
 
30898
          fi
 
30899
        done
 
30900
 
 
30901
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
30902
 
 
30903
 
 
30904
fi
 
30905
 
 
30906
 
 
30907
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
30908
 
 
30909
   fi
 
30910
 
 
30911
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
30912
      echo "$as_me:$LINENO: result: not found" >&5
 
30913
echo "${ECHO_T}not found" >&6
 
30914
 
 
30915
    { { echo "$as_me:$LINENO: error: The important program mcopidl was not found!
 
30916
Please check whether you installed aRts correctly or use
 
30917
--without-arts to compile without aRts support (this will remove functionality).
 
30918
" >&5
 
30919
echo "$as_me: error: The important program mcopidl was not found!
 
30920
Please check whether you installed aRts correctly or use
 
30921
--without-arts to compile without aRts support (this will remove functionality).
 
30922
" >&2;}
 
30923
   { (exit 1); exit 1; }; }
 
30924
 
 
30925
   else
 
30926
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
30927
echo "${ECHO_T}$kde_cv_path" >&6
 
30928
      MCOPIDL=$kde_cv_path
 
30929
 
 
30930
   fi
 
30931
 
 
30932
 
 
30933
   echo "$as_me:$LINENO: checking for artsc-config" >&5
 
30934
echo $ECHO_N "checking for artsc-config... $ECHO_C" >&6
 
30935
   if test -n "$ARTSCCONFIG"; then
 
30936
        kde_cv_path="$ARTSCCONFIG";
 
30937
   else
 
30938
        kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'`
 
30939
 
 
30940
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
30941
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30942
else
 
30943
 
 
30944
        kde_cv_path="NONE"
 
30945
        kde_save_IFS=$IFS
 
30946
        IFS=':'
 
30947
        dirs=""
 
30948
        for dir in $PATH; do
 
30949
          dirs="$dirs $dir"
 
30950
        done
 
30951
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
30952
        else      dirs="$dirs $kde_default_bindirs"
 
30953
        fi
 
30954
        IFS=$kde_save_IFS
 
30955
 
 
30956
        for dir in $dirs; do
 
30957
          if test -x "$dir/artsc-config"; then
 
30958
            if test -n ""
 
30959
            then
 
30960
              evalstr="$dir/artsc-config  2>&1 "
 
30961
              if eval $evalstr; then
 
30962
                kde_cv_path="$dir/artsc-config"
 
30963
                break
 
30964
              fi
 
30965
            else
 
30966
                kde_cv_path="$dir/artsc-config"
 
30967
                break
 
30968
            fi
 
30969
          fi
 
30970
        done
 
30971
 
 
30972
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
30973
 
 
30974
 
 
30975
fi
 
30976
 
 
30977
 
 
30978
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
30979
 
 
30980
   fi
 
30981
 
 
30982
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
30983
      echo "$as_me:$LINENO: result: not found" >&5
 
30984
echo "${ECHO_T}not found" >&6
 
30985
 
 
30986
    { { echo "$as_me:$LINENO: error: The important program artsc-config was not found!
 
30987
Please check whether you installed aRts correctly or use
 
30988
--without-arts to compile without aRts support (this will remove functionality).
 
30989
" >&5
 
30990
echo "$as_me: error: The important program artsc-config was not found!
 
30991
Please check whether you installed aRts correctly or use
 
30992
--without-arts to compile without aRts support (this will remove functionality).
 
30993
" >&2;}
 
30994
   { (exit 1); exit 1; }; }
 
30995
 
 
30996
   else
 
30997
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
30998
echo "${ECHO_T}$kde_cv_path" >&6
 
30999
      ARTSCCONFIG=$kde_cv_path
 
31000
 
 
31001
   fi
 
31002
 
 
31003
        fi
 
31004
 
 
31005
   echo "$as_me:$LINENO: checking for meinproc" >&5
 
31006
echo $ECHO_N "checking for meinproc... $ECHO_C" >&6
 
31007
   if test -n "$MEINPROC"; then
 
31008
        kde_cv_path="$MEINPROC";
 
31009
   else
 
31010
        kde_cache=`echo meinproc | sed 'y%./+-%__p_%'`
 
31011
 
 
31012
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31013
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31014
else
 
31015
 
 
31016
        kde_cv_path="NONE"
 
31017
        kde_save_IFS=$IFS
 
31018
        IFS=':'
 
31019
        dirs=""
 
31020
        for dir in $PATH; do
 
31021
          dirs="$dirs $dir"
 
31022
        done
 
31023
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31024
        else      dirs="$dirs $kde_default_bindirs"
 
31025
        fi
 
31026
        IFS=$kde_save_IFS
 
31027
 
 
31028
        for dir in $dirs; do
 
31029
          if test -x "$dir/meinproc"; then
 
31030
            if test -n ""
 
31031
            then
 
31032
              evalstr="$dir/meinproc  2>&1 "
 
31033
              if eval $evalstr; then
 
31034
                kde_cv_path="$dir/meinproc"
 
31035
                break
 
31036
              fi
 
31037
            else
 
31038
                kde_cv_path="$dir/meinproc"
 
31039
                break
 
31040
            fi
 
31041
          fi
 
31042
        done
 
31043
 
 
31044
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31045
 
 
31046
 
 
31047
fi
 
31048
 
 
31049
 
 
31050
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31051
 
 
31052
   fi
 
31053
 
 
31054
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31055
      echo "$as_me:$LINENO: result: not found" >&5
 
31056
echo "${ECHO_T}not found" >&6
 
31057
 
 
31058
   else
 
31059
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31060
echo "${ECHO_T}$kde_cv_path" >&6
 
31061
      MEINPROC=$kde_cv_path
 
31062
 
 
31063
   fi
 
31064
 
 
31065
 
 
31066
        kde32ornewer=1
 
31067
        if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
 
31068
            kde32ornewer=
 
31069
        else
 
31070
            if test "$kde_qtver" = "3" && test "$kde_qtsubver" -le 1; then
 
31071
                kde32ornewer=
 
31072
            fi
 
31073
        fi
 
31074
 
 
31075
        if test -n "$kde32ornewer"; then
 
31076
 
 
31077
   echo "$as_me:$LINENO: checking for kconfig_compiler" >&5
 
31078
echo $ECHO_N "checking for kconfig_compiler... $ECHO_C" >&6
 
31079
   if test -n "$KCONFIG_COMPILER"; then
 
31080
        kde_cv_path="$KCONFIG_COMPILER";
 
31081
   else
 
31082
        kde_cache=`echo kconfig_compiler | sed 'y%./+-%__p_%'`
 
31083
 
 
31084
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31085
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31086
else
 
31087
 
 
31088
        kde_cv_path="NONE"
 
31089
        kde_save_IFS=$IFS
 
31090
        IFS=':'
 
31091
        dirs=""
 
31092
        for dir in $PATH; do
 
31093
          dirs="$dirs $dir"
 
31094
        done
 
31095
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31096
        else      dirs="$dirs $kde_default_bindirs"
 
31097
        fi
 
31098
        IFS=$kde_save_IFS
 
31099
 
 
31100
        for dir in $dirs; do
 
31101
          if test -x "$dir/kconfig_compiler"; then
 
31102
            if test -n ""
 
31103
            then
 
31104
              evalstr="$dir/kconfig_compiler  2>&1 "
 
31105
              if eval $evalstr; then
 
31106
                kde_cv_path="$dir/kconfig_compiler"
 
31107
                break
 
31108
              fi
 
31109
            else
 
31110
                kde_cv_path="$dir/kconfig_compiler"
 
31111
                break
 
31112
            fi
 
31113
          fi
 
31114
        done
 
31115
 
 
31116
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31117
 
 
31118
 
 
31119
fi
 
31120
 
 
31121
 
 
31122
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31123
 
 
31124
   fi
 
31125
 
 
31126
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31127
      echo "$as_me:$LINENO: result: not found" >&5
 
31128
echo "${ECHO_T}not found" >&6
 
31129
 
 
31130
    { { echo "$as_me:$LINENO: error: The important program kconfig_compiler was not found!
 
31131
Please check whether you installed KDE correctly.
 
31132
" >&5
 
31133
echo "$as_me: error: The important program kconfig_compiler was not found!
 
31134
Please check whether you installed KDE correctly.
 
31135
" >&2;}
 
31136
   { (exit 1); exit 1; }; }
 
31137
 
 
31138
   else
 
31139
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31140
echo "${ECHO_T}$kde_cv_path" >&6
 
31141
      KCONFIG_COMPILER=$kde_cv_path
 
31142
 
 
31143
   fi
 
31144
 
 
31145
 
 
31146
   echo "$as_me:$LINENO: checking for dcopidlng" >&5
 
31147
echo $ECHO_N "checking for dcopidlng... $ECHO_C" >&6
 
31148
   if test -n "$DCOPIDLNG"; then
 
31149
        kde_cv_path="$DCOPIDLNG";
 
31150
   else
 
31151
        kde_cache=`echo dcopidlng | sed 'y%./+-%__p_%'`
 
31152
 
 
31153
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31154
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31155
else
 
31156
 
 
31157
        kde_cv_path="NONE"
 
31158
        kde_save_IFS=$IFS
 
31159
        IFS=':'
 
31160
        dirs=""
 
31161
        for dir in $PATH; do
 
31162
          dirs="$dirs $dir"
 
31163
        done
 
31164
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31165
        else      dirs="$dirs $kde_default_bindirs"
 
31166
        fi
 
31167
        IFS=$kde_save_IFS
 
31168
 
 
31169
        for dir in $dirs; do
 
31170
          if test -x "$dir/dcopidlng"; then
 
31171
            if test -n ""
 
31172
            then
 
31173
              evalstr="$dir/dcopidlng  2>&1 "
 
31174
              if eval $evalstr; then
 
31175
                kde_cv_path="$dir/dcopidlng"
 
31176
                break
 
31177
              fi
 
31178
            else
 
31179
                kde_cv_path="$dir/dcopidlng"
 
31180
                break
 
31181
            fi
 
31182
          fi
 
31183
        done
 
31184
 
 
31185
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31186
 
 
31187
 
 
31188
fi
 
31189
 
 
31190
 
 
31191
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31192
 
 
31193
   fi
 
31194
 
 
31195
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31196
      echo "$as_me:$LINENO: result: not found" >&5
 
31197
echo "${ECHO_T}not found" >&6
 
31198
 
 
31199
    { { echo "$as_me:$LINENO: error: The important program dcopidlng was not found!
 
31200
Please check whether you installed KDE correctly.
 
31201
" >&5
 
31202
echo "$as_me: error: The important program dcopidlng was not found!
 
31203
Please check whether you installed KDE correctly.
 
31204
" >&2;}
 
31205
   { (exit 1); exit 1; }; }
 
31206
 
 
31207
   else
 
31208
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31209
echo "${ECHO_T}$kde_cv_path" >&6
 
31210
      DCOPIDLNG=$kde_cv_path
 
31211
 
 
31212
   fi
 
31213
 
 
31214
        fi
 
31215
 
 
31216
   echo "$as_me:$LINENO: checking for xmllint" >&5
 
31217
echo $ECHO_N "checking for xmllint... $ECHO_C" >&6
 
31218
   if test -n "$XMLLINT"; then
 
31219
        kde_cv_path="$XMLLINT";
 
31220
   else
 
31221
        kde_cache=`echo xmllint | sed 'y%./+-%__p_%'`
 
31222
 
 
31223
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31224
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31225
else
 
31226
 
 
31227
        kde_cv_path="NONE"
 
31228
        kde_save_IFS=$IFS
 
31229
        IFS=':'
 
31230
        dirs=""
 
31231
        for dir in $PATH; do
 
31232
          dirs="$dirs $dir"
 
31233
        done
 
31234
        if test -z ""; then       dirs="${prefix}/bin ${exec_prefix}/bin $dirs"
 
31235
        else      dirs="$dirs ${prefix}/bin ${exec_prefix}/bin"
 
31236
        fi
 
31237
        IFS=$kde_save_IFS
 
31238
 
 
31239
        for dir in $dirs; do
 
31240
          if test -x "$dir/xmllint"; then
 
31241
            if test -n ""
 
31242
            then
 
31243
              evalstr="$dir/xmllint  2>&1 "
 
31244
              if eval $evalstr; then
 
31245
                kde_cv_path="$dir/xmllint"
 
31246
                break
 
31247
              fi
 
31248
            else
 
31249
                kde_cv_path="$dir/xmllint"
 
31250
                break
 
31251
            fi
 
31252
          fi
 
31253
        done
 
31254
 
 
31255
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31256
 
 
31257
 
 
31258
fi
 
31259
 
 
31260
 
 
31261
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31262
 
 
31263
   fi
 
31264
 
 
31265
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31266
      echo "$as_me:$LINENO: result: not found" >&5
 
31267
echo "${ECHO_T}not found" >&6
 
31268
      XMLLINT=""
 
31269
   else
 
31270
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31271
echo "${ECHO_T}$kde_cv_path" >&6
 
31272
      XMLLINT=$kde_cv_path
 
31273
 
 
31274
   fi
 
31275
 
 
31276
 
 
31277
        if test -n "$MEINPROC" && test ! "$MEINPROC" = "compiled"; then
 
31278
            kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
 
31279
            test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs"
 
31280
 
 
31281
KDE_XSL_STYLESHEET=NO
 
31282
for i in $kde_sharedirs;
 
31283
do
 
31284
  for j in apps/ksgmltools2/customization/kde-chunk.xsl;
 
31285
  do
 
31286
    echo "configure: 31286: $i/$j" >&5
 
31287
    if test -r "$i/$j"; then
 
31288
      echo "taking that" >&5
 
31289
      KDE_XSL_STYLESHEET=$i
 
31290
      break 2
 
31291
    fi
 
31292
  done
 
31293
done
 
31294
 
 
31295
            if test "$KDE_XSL_STYLESHEET" = "NO"; then
 
31296
                KDE_XSL_STYLESHEET=""
 
31297
            else
 
31298
                KDE_XSL_STYLESHEET="$KDE_XSL_STYLESHEET/apps/ksgmltools2/customization/kde-chunk.xsl"
 
31299
            fi
 
31300
        fi
 
31301
 
 
31302
        DCOP_DEPENDENCIES='$(DCOPIDL)'
 
31303
        if test -n "$kde32ornewer"; then
 
31304
            KCFG_DEPENDENCIES='$(KCONFIG_COMPILER)'
 
31305
            DCOP_DEPENDENCIES='$(DCOPIDL) $(DCOPIDLNG)'
 
31306
 
 
31307
 
 
31308
 
 
31309
        fi
 
31310
 
 
31311
 
 
31312
 
 
31313
 
 
31314
 
 
31315
 
 
31316
 
 
31317
 
 
31318
 
 
31319
 
 
31320
 
 
31321
 
 
31322
 
 
31323
 
 
31324
 
 
31325
 
 
31326
 
 
31327
 
 
31328
 
 
31329
 
 
31330
 
 
31331
 
 
31332
 
 
31333
 
 
31334
 
 
31335
 
 
31336
 
 
31337
 
 
31338
 
 
31339
 
 
31340
 
 
31341
kdeinitdir='$(kde_moduledir)'
 
31342
 
 
31343
 
 
31344
 
 
31345
if test "$kde_qtver" = 1; then
 
31346
  kde_minidir="$kde_icondir/mini"
 
31347
else
 
31348
# for KDE 1 - this breaks KDE2 apps using minidir, but
 
31349
# that's the plan ;-/
 
31350
  kde_minidir="/dev/null"
 
31351
fi
 
31352
 
 
31353
 
 
31354
 
 
31355
 
 
31356
 
 
31357
 
 
31358
if test $kde_qtver = 3; then
 
31359
   LIB_KDECORE="-lkdecore"
 
31360
 
 
31361
   LIB_KDEUI="-lkdeui"
 
31362
 
 
31363
   LIB_KIO="-lkio"
 
31364
 
 
31365
   LIB_SMB="-lsmb"
 
31366
 
 
31367
   LIB_KAB="-lkab"
 
31368
 
 
31369
   LIB_KABC="-lkabc"
 
31370
 
 
31371
   LIB_KHTML="-lkhtml"
 
31372
 
 
31373
   LIB_KSPELL="-lkspell"
 
31374
 
 
31375
   LIB_KPARTS="-lkparts"
 
31376
 
 
31377
   LIB_KDEPRINT="-lkdeprint"
 
31378
 
 
31379
   LIB_KUTILS="-lkutils"
 
31380
 
 
31381
   LIB_KDEPIM="-lkdepim"
 
31382
 
 
31383
# these are for backward compatibility
 
31384
   LIB_KSYCOCA="-lkio"
 
31385
 
 
31386
   LIB_KFILE="-lkio"
 
31387
 
 
31388
elif test $kde_qtver = 2; then
 
31389
   LIB_KDECORE="-lkdecore"
 
31390
 
 
31391
   LIB_KDEUI="-lkdeui"
 
31392
 
 
31393
   LIB_KIO="-lkio"
 
31394
 
 
31395
   LIB_KSYCOCA="-lksycoca"
 
31396
 
 
31397
   LIB_SMB="-lsmb"
 
31398
 
 
31399
   LIB_KFILE="-lkfile"
 
31400
 
 
31401
   LIB_KAB="-lkab"
 
31402
 
 
31403
   LIB_KHTML="-lkhtml"
 
31404
 
 
31405
   LIB_KSPELL="-lkspell"
 
31406
 
 
31407
   LIB_KPARTS="-lkparts"
 
31408
 
 
31409
   LIB_KDEPRINT="-lkdeprint"
 
31410
 
 
31411
else
 
31412
   LIB_KDECORE="-lkdecore -lXext $(LIB_QT)"
 
31413
 
 
31414
   LIB_KDEUI="-lkdeui $(LIB_KDECORE)"
 
31415
 
 
31416
   LIB_KFM="-lkfm $(LIB_KDECORE)"
 
31417
 
 
31418
   LIB_KFILE="-lkfile $(LIB_KFM) $(LIB_KDEUI)"
 
31419
 
 
31420
   LIB_KAB="-lkab $(LIB_KIMGIO) $(LIB_KDECORE)"
 
31421
 
 
31422
fi
 
31423
 
 
31424
 
 
31425
 
 
31426
#MIN_CONFIG(3.0.0)
 
31427
 
 
31428
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
31429
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
31430
if test "${ac_cv_c_bigendian+set}" = set; then
 
31431
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31432
else
 
31433
  # See if sys/param.h defines the BYTE_ORDER macro.
 
31434
cat >conftest.$ac_ext <<_ACEOF
 
31435
/* confdefs.h.  */
 
31436
_ACEOF
 
31437
cat confdefs.h >>conftest.$ac_ext
 
31438
cat >>conftest.$ac_ext <<_ACEOF
 
31439
/* end confdefs.h.  */
 
31440
#include <sys/types.h>
 
31441
#include <sys/param.h>
 
31442
 
 
31443
int
 
31444
main ()
 
31445
{
 
31446
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
31447
 bogus endian macros
 
31448
#endif
 
31449
 
 
31450
  ;
 
31451
  return 0;
 
31452
}
 
31453
_ACEOF
 
31454
rm -f conftest.$ac_objext
 
31455
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31456
  (eval $ac_compile) 2>conftest.er1
 
31457
  ac_status=$?
 
31458
  grep -v '^ *+' conftest.er1 >conftest.err
 
31459
  rm -f conftest.er1
 
31460
  cat conftest.err >&5
 
31461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31462
  (exit $ac_status); } &&
 
31463
         { ac_try='test -z "$ac_c_werror_flag"
 
31464
                         || test ! -s conftest.err'
 
31465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31466
  (eval $ac_try) 2>&5
 
31467
  ac_status=$?
 
31468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31469
  (exit $ac_status); }; } &&
 
31470
         { ac_try='test -s conftest.$ac_objext'
 
31471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31472
  (eval $ac_try) 2>&5
 
31473
  ac_status=$?
 
31474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31475
  (exit $ac_status); }; }; then
 
31476
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
31477
cat >conftest.$ac_ext <<_ACEOF
 
31478
/* confdefs.h.  */
 
31479
_ACEOF
 
31480
cat confdefs.h >>conftest.$ac_ext
 
31481
cat >>conftest.$ac_ext <<_ACEOF
 
31482
/* end confdefs.h.  */
 
31483
#include <sys/types.h>
 
31484
#include <sys/param.h>
 
31485
 
 
31486
int
 
31487
main ()
 
31488
{
 
31489
#if BYTE_ORDER != BIG_ENDIAN
 
31490
 not big endian
 
31491
#endif
 
31492
 
 
31493
  ;
 
31494
  return 0;
 
31495
}
 
31496
_ACEOF
 
31497
rm -f conftest.$ac_objext
 
31498
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31499
  (eval $ac_compile) 2>conftest.er1
 
31500
  ac_status=$?
 
31501
  grep -v '^ *+' conftest.er1 >conftest.err
 
31502
  rm -f conftest.er1
 
31503
  cat conftest.err >&5
 
31504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31505
  (exit $ac_status); } &&
 
31506
         { ac_try='test -z "$ac_c_werror_flag"
 
31507
                         || test ! -s conftest.err'
 
31508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31509
  (eval $ac_try) 2>&5
 
31510
  ac_status=$?
 
31511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31512
  (exit $ac_status); }; } &&
 
31513
         { ac_try='test -s conftest.$ac_objext'
 
31514
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31515
  (eval $ac_try) 2>&5
 
31516
  ac_status=$?
 
31517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31518
  (exit $ac_status); }; }; then
 
31519
  ac_cv_c_bigendian=yes
 
31520
else
 
31521
  echo "$as_me: failed program was:" >&5
 
31522
sed 's/^/| /' conftest.$ac_ext >&5
 
31523
 
 
31524
ac_cv_c_bigendian=no
 
31525
fi
 
31526
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31527
else
 
31528
  echo "$as_me: failed program was:" >&5
 
31529
sed 's/^/| /' conftest.$ac_ext >&5
 
31530
 
 
31531
# It does not; compile a test program.
 
31532
if test "$cross_compiling" = yes; then
 
31533
  # try to guess the endianness by grepping values into an object file
 
31534
  ac_cv_c_bigendian=unknown
 
31535
  cat >conftest.$ac_ext <<_ACEOF
 
31536
/* confdefs.h.  */
 
31537
_ACEOF
 
31538
cat confdefs.h >>conftest.$ac_ext
 
31539
cat >>conftest.$ac_ext <<_ACEOF
 
31540
/* end confdefs.h.  */
 
31541
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
31542
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
31543
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
31544
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
31545
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
31546
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
31547
int
 
31548
main ()
 
31549
{
 
31550
 _ascii (); _ebcdic ();
 
31551
  ;
 
31552
  return 0;
 
31553
}
 
31554
_ACEOF
 
31555
rm -f conftest.$ac_objext
 
31556
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31557
  (eval $ac_compile) 2>conftest.er1
 
31558
  ac_status=$?
 
31559
  grep -v '^ *+' conftest.er1 >conftest.err
 
31560
  rm -f conftest.er1
 
31561
  cat conftest.err >&5
 
31562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31563
  (exit $ac_status); } &&
 
31564
         { ac_try='test -z "$ac_c_werror_flag"
 
31565
                         || test ! -s conftest.err'
 
31566
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31567
  (eval $ac_try) 2>&5
 
31568
  ac_status=$?
 
31569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31570
  (exit $ac_status); }; } &&
 
31571
         { ac_try='test -s conftest.$ac_objext'
 
31572
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31573
  (eval $ac_try) 2>&5
 
31574
  ac_status=$?
 
31575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31576
  (exit $ac_status); }; }; then
 
31577
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
31578
  ac_cv_c_bigendian=yes
 
31579
fi
 
31580
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
31581
  if test "$ac_cv_c_bigendian" = unknown; then
 
31582
    ac_cv_c_bigendian=no
 
31583
  else
 
31584
    # finding both strings is unlikely to happen, but who knows?
 
31585
    ac_cv_c_bigendian=unknown
 
31586
  fi
 
31587
fi
 
31588
else
 
31589
  echo "$as_me: failed program was:" >&5
 
31590
sed 's/^/| /' conftest.$ac_ext >&5
 
31591
 
 
31592
fi
 
31593
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31594
else
 
31595
  cat >conftest.$ac_ext <<_ACEOF
 
31596
/* confdefs.h.  */
 
31597
_ACEOF
 
31598
cat confdefs.h >>conftest.$ac_ext
 
31599
cat >>conftest.$ac_ext <<_ACEOF
 
31600
/* end confdefs.h.  */
 
31601
int
 
31602
main ()
 
31603
{
 
31604
  /* Are we little or big endian?  From Harbison&Steele.  */
 
31605
  union
 
31606
  {
 
31607
    long l;
 
31608
    char c[sizeof (long)];
 
31609
  } u;
 
31610
  u.l = 1;
 
31611
  exit (u.c[sizeof (long) - 1] == 1);
 
31612
}
 
31613
_ACEOF
 
31614
rm -f conftest$ac_exeext
 
31615
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31616
  (eval $ac_link) 2>&5
 
31617
  ac_status=$?
 
31618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31619
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
31620
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31621
  (eval $ac_try) 2>&5
 
31622
  ac_status=$?
 
31623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31624
  (exit $ac_status); }; }; then
 
31625
  ac_cv_c_bigendian=no
 
31626
else
 
31627
  echo "$as_me: program exited with status $ac_status" >&5
 
31628
echo "$as_me: failed program was:" >&5
 
31629
sed 's/^/| /' conftest.$ac_ext >&5
 
31630
 
 
31631
( exit $ac_status )
 
31632
ac_cv_c_bigendian=yes
 
31633
fi
 
31634
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
31635
fi
 
31636
fi
 
31637
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31638
fi
 
31639
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
31640
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
31641
case $ac_cv_c_bigendian in
 
31642
  yes)
 
31643
 
 
31644
cat >>confdefs.h <<\_ACEOF
 
31645
#define WORDS_BIGENDIAN 1
 
31646
_ACEOF
 
31647
 ;;
 
31648
  no)
 
31649
     ;;
 
31650
  *)
 
31651
    { { echo "$as_me:$LINENO: error: unknown endianness
 
31652
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
31653
echo "$as_me: error: unknown endianness
 
31654
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
31655
   { (exit 1); exit 1; }; } ;;
 
31656
esac
 
31657
 
 
31658
 
 
31659
echo "$as_me:$LINENO: checking for MAXPATHLEN" >&5
 
31660
echo $ECHO_N "checking for MAXPATHLEN... $ECHO_C" >&6
 
31661
if test "${ac_cv_maxpathlen+set}" = set; then
 
31662
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31663
else
 
31664
 
 
31665
cat > conftest.$ac_ext <<EOF
 
31666
#ifdef STDC_HEADERS
 
31667
# include <stdlib.h>
 
31668
#endif
 
31669
#include <stdio.h>
 
31670
#include <sys/param.h>
 
31671
#ifndef MAXPATHLEN
 
31672
#define MAXPATHLEN 1024
 
31673
#endif
 
31674
 
 
31675
KDE_HELLO MAXPATHLEN
 
31676
 
 
31677
EOF
 
31678
 
 
31679
ac_try="$ac_cpp conftest.$ac_ext 2>/dev/null | grep '^KDE_HELLO' >conftest.out"
 
31680
 
 
31681
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31682
  (eval $ac_try) 2>&5
 
31683
  ac_status=$?
 
31684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31685
  (exit $ac_status); } && test -s conftest.out; then
 
31686
    ac_cv_maxpathlen=`sed 's#KDE_HELLO ##' conftest.out`
 
31687
else
 
31688
    ac_cv_maxpathlen=1024
 
31689
fi
 
31690
 
 
31691
rm conftest.*
 
31692
 
 
31693
 
 
31694
fi
 
31695
 
 
31696
echo "$as_me:$LINENO: result: $ac_cv_maxpathlen" >&5
 
31697
echo "${ECHO_T}$ac_cv_maxpathlen" >&6
 
31698
 
 
31699
cat >>confdefs.h <<_ACEOF
 
31700
#define KDEMAXPATHLEN $ac_cv_maxpathlen
 
31701
_ACEOF
 
31702
 
 
31703
 
 
31704
 
 
31705
 
 
31706
 
 
31707
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
 
31708
 
 
31709
if test ! -s $srcdir/subdirs; then
 
31710
    TOPSUBDIRS=""
 
31711
  files=`cd $srcdir && ls -1`
 
31712
  dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
 
31713
  for i in $dirs; do
 
31714
    echo $i >> $srcdir/subdirs
 
31715
  done
 
31716
fi
 
31717
 
 
31718
ac_topsubdirs=
 
31719
if test -s $srcdir/inst-apps; then
 
31720
  ac_topsubdirs="`cat $srcdir/inst-apps`"
 
31721
elif test -s $srcdir/subdirs; then
 
31722
  ac_topsubdirs="`cat $srcdir/subdirs`"
 
31723
fi
 
31724
 
 
31725
for i in $ac_topsubdirs; do
 
31726
  echo "$as_me:$LINENO: checking if $i should be compiled" >&5
 
31727
echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6
 
31728
  if test -d $srcdir/$i; then
 
31729
    install_it="yes"
 
31730
    for j in $DO_NOT_COMPILE; do
 
31731
      if test $i = $j; then
 
31732
        install_it="no"
 
31733
      fi
 
31734
    done
 
31735
  else
 
31736
    install_it="no"
 
31737
  fi
 
31738
  echo "$as_me:$LINENO: result: $install_it" >&5
 
31739
echo "${ECHO_T}$install_it" >&6
 
31740
  vari=`echo $i | sed -e 's,[-+.@],_,g'`
 
31741
  if test $install_it = "yes"; then
 
31742
    TOPSUBDIRS="$TOPSUBDIRS $i"
 
31743
    eval "$vari""_SUBDIR_included=yes"
 
31744
  else
 
31745
    eval "$vari""_SUBDIR_included=no"
 
31746
  fi
 
31747
done
 
31748
 
 
31749
 
 
31750
 
 
31751
          ac_config_files="$ac_config_files Makefile"
 
31752
 
 
31753
          ac_config_files="$ac_config_files doc/Makefile"
 
31754
 
 
31755
          ac_config_files="$ac_config_files doc/en/Makefile"
 
31756
 
 
31757
          ac_config_files="$ac_config_files po/Makefile"
 
31758
 
 
31759
          ac_config_files="$ac_config_files src/Makefile"
 
31760
 
 
31761
cat >confcache <<\_ACEOF
 
31762
# This file is a shell script that caches the results of configure
 
31763
# tests run on this system so they can be shared between configure
 
31764
# scripts and configure runs, see configure's option --config-cache.
 
31765
# It is not useful on other systems.  If it contains results you don't
 
31766
# want to keep, you may remove or edit it.
 
31767
#
 
31768
# config.status only pays attention to the cache file if you give it
 
31769
# the --recheck option to rerun configure.
 
31770
#
 
31771
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
31772
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
31773
# following values.
 
31774
 
 
31775
_ACEOF
 
31776
 
 
31777
# The following way of writing the cache mishandles newlines in values,
 
31778
# but we know of no workaround that is simple, portable, and efficient.
 
31779
# So, don't put newlines in cache variables' values.
 
31780
# Ultrix sh set writes to stderr and can't be redirected directly,
 
31781
# and sets the high bit in the cache file unless we assign to the vars.
 
31782
{
 
31783
  (set) 2>&1 |
 
31784
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
31785
    *ac_space=\ *)
 
31786
      # `set' does not quote correctly, so add quotes (double-quote
 
31787
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
31788
      sed -n \
 
31789
        "s/'/'\\\\''/g;
 
31790
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
31791
      ;;
 
31792
    *)
 
31793
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
31794
      sed -n \
 
31795
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
31796
      ;;
 
31797
    esac;
 
31798
} |
 
31799
  sed '
 
31800
     t clear
 
31801
     : clear
 
31802
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
31803
     t end
 
31804
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
31805
     : end' >>confcache
 
31806
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
31807
  if test -w $cache_file; then
 
31808
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
31809
    cat confcache >$cache_file
 
31810
  else
 
31811
    echo "not updating unwritable cache $cache_file"
 
31812
  fi
 
31813
fi
 
31814
rm -f confcache
 
31815
 
 
31816
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
31817
# Let make expand exec_prefix.
 
31818
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
31819
 
 
31820
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
31821
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
31822
# trailing colons and then remove the whole line if VPATH becomes empty
 
31823
# (actually we leave an empty line to preserve line numbers).
 
31824
if test "x$srcdir" = x.; then
 
31825
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
31826
s/:*\$(srcdir):*/:/;
 
31827
s/:*\${srcdir}:*/:/;
 
31828
s/:*@srcdir@:*/:/;
 
31829
s/^\([^=]*=[     ]*\):*/\1/;
 
31830
s/:*$//;
 
31831
s/^[^=]*=[       ]*$//;
 
31832
}'
 
31833
fi
 
31834
 
 
31835
DEFS=-DHAVE_CONFIG_H
 
31836
 
 
31837
ac_libobjs=
 
31838
ac_ltlibobjs=
 
31839
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
31840
  # 1. Remove the extension, and $U if already installed.
 
31841
  ac_i=`echo "$ac_i" |
 
31842
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
31843
  # 2. Add them.
 
31844
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
31845
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
31846
done
 
31847
LIBOBJS=$ac_libobjs
 
31848
 
 
31849
LTLIBOBJS=$ac_ltlibobjs
 
31850
 
 
31851
 
 
31852
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
31853
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
31854
Usually this means the macro was only invoked conditionally." >&5
 
31855
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
31856
Usually this means the macro was only invoked conditionally." >&2;}
 
31857
   { (exit 1); exit 1; }; }
 
31858
fi
 
31859
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
31860
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
31861
Usually this means the macro was only invoked conditionally." >&5
 
31862
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
31863
Usually this means the macro was only invoked conditionally." >&2;}
 
31864
   { (exit 1); exit 1; }; }
 
31865
fi
 
31866
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
31867
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
31868
Usually this means the macro was only invoked conditionally." >&5
 
31869
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
31870
Usually this means the macro was only invoked conditionally." >&2;}
 
31871
   { (exit 1); exit 1; }; }
 
31872
fi
 
31873
if test -z "${include_ARTS_TRUE}" && test -z "${include_ARTS_FALSE}"; then
 
31874
  { { echo "$as_me:$LINENO: error: conditional \"include_ARTS\" was never defined.
 
31875
Usually this means the macro was only invoked conditionally." >&5
 
31876
echo "$as_me: error: conditional \"include_ARTS\" was never defined.
 
31877
Usually this means the macro was only invoked conditionally." >&2;}
 
31878
   { (exit 1); exit 1; }; }
 
31879
fi
 
31880
 
 
31881
: ${CONFIG_STATUS=./config.status}
 
31882
ac_clean_files_save=$ac_clean_files
 
31883
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
31884
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
31885
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
31886
cat >$CONFIG_STATUS <<_ACEOF
 
31887
#! $SHELL
 
31888
# Generated by $as_me.
 
31889
# Run this file to recreate the current configuration.
 
31890
# Compiler output produced by configure, useful for debugging
 
31891
# configure, is in config.log if it exists.
 
31892
 
 
31893
debug=false
 
31894
ac_cs_recheck=false
 
31895
ac_cs_silent=false
 
31896
SHELL=\${CONFIG_SHELL-$SHELL}
 
31897
_ACEOF
 
31898
 
 
31899
cat >>$CONFIG_STATUS <<\_ACEOF
 
31900
## --------------------- ##
 
31901
## M4sh Initialization.  ##
 
31902
## --------------------- ##
 
31903
 
 
31904
# Be Bourne compatible
 
31905
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
31906
  emulate sh
 
31907
  NULLCMD=:
 
31908
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
31909
  # is contrary to our usage.  Disable this feature.
 
31910
  alias -g '${1+"$@"}'='"$@"'
 
31911
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
31912
  set -o posix
 
31913
fi
 
31914
DUALCASE=1; export DUALCASE # for MKS sh
 
31915
 
 
31916
# Support unset when possible.
 
31917
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
31918
  as_unset=unset
 
31919
else
 
31920
  as_unset=false
 
31921
fi
 
31922
 
 
31923
 
 
31924
# Work around bugs in pre-3.0 UWIN ksh.
 
31925
$as_unset ENV MAIL MAILPATH
 
31926
PS1='$ '
 
31927
PS2='> '
 
31928
PS4='+ '
 
31929
 
 
31930
# NLS nuisances.
 
31931
for as_var in \
 
31932
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
31933
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
31934
  LC_TELEPHONE LC_TIME
 
31935
do
 
31936
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
31937
    eval $as_var=C; export $as_var
 
31938
  else
 
31939
    $as_unset $as_var
 
31940
  fi
 
31941
done
 
31942
 
 
31943
# Required to use basename.
 
31944
if expr a : '\(a\)' >/dev/null 2>&1; then
 
31945
  as_expr=expr
 
31946
else
 
31947
  as_expr=false
 
31948
fi
 
31949
 
 
31950
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
31951
  as_basename=basename
 
31952
else
 
31953
  as_basename=false
 
31954
fi
 
31955
 
 
31956
 
 
31957
# Name of the executable.
 
31958
as_me=`$as_basename "$0" ||
 
31959
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
31960
         X"$0" : 'X\(//\)$' \| \
 
31961
         X"$0" : 'X\(/\)$' \| \
 
31962
         .     : '\(.\)' 2>/dev/null ||
 
31963
echo X/"$0" |
 
31964
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
31965
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
31966
          /^X\/\(\/\).*/{ s//\1/; q; }
 
31967
          s/.*/./; q'`
 
31968
 
 
31969
 
 
31970
# PATH needs CR, and LINENO needs CR and PATH.
 
31971
# Avoid depending upon Character Ranges.
 
31972
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
31973
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
31974
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
31975
as_cr_digits='0123456789'
 
31976
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
31977
 
 
31978
# The user is always right.
 
31979
if test "${PATH_SEPARATOR+set}" != set; then
 
31980
  echo "#! /bin/sh" >conf$$.sh
 
31981
  echo  "exit 0"   >>conf$$.sh
 
31982
  chmod +x conf$$.sh
 
31983
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
31984
    PATH_SEPARATOR=';'
 
31985
  else
 
31986
    PATH_SEPARATOR=:
 
31987
  fi
 
31988
  rm -f conf$$.sh
 
31989
fi
 
31990
 
 
31991
 
 
31992
  as_lineno_1=$LINENO
 
31993
  as_lineno_2=$LINENO
 
31994
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
31995
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
31996
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
31997
  # Find who we are.  Look in the path if we contain no path at all
 
31998
  # relative or not.
 
31999
  case $0 in
 
32000
    *[\\/]* ) as_myself=$0 ;;
 
32001
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
32002
for as_dir in $PATH
 
32003
do
 
32004
  IFS=$as_save_IFS
 
32005
  test -z "$as_dir" && as_dir=.
 
32006
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
32007
done
 
32008
 
 
32009
       ;;
 
32010
  esac
 
32011
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
32012
  # in which case we are not to be found in the path.
 
32013
  if test "x$as_myself" = x; then
 
32014
    as_myself=$0
 
32015
  fi
 
32016
  if test ! -f "$as_myself"; then
 
32017
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
32018
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
32019
   { (exit 1); exit 1; }; }
 
32020
  fi
 
32021
  case $CONFIG_SHELL in
 
32022
  '')
 
32023
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
32024
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
32025
do
 
32026
  IFS=$as_save_IFS
 
32027
  test -z "$as_dir" && as_dir=.
 
32028
  for as_base in sh bash ksh sh5; do
 
32029
         case $as_dir in
 
32030
         /*)
 
32031
           if ("$as_dir/$as_base" -c '
 
32032
  as_lineno_1=$LINENO
 
32033
  as_lineno_2=$LINENO
 
32034
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
32035
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
32036
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
32037
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
32038
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
32039
             CONFIG_SHELL=$as_dir/$as_base
 
32040
             export CONFIG_SHELL
 
32041
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
32042
           fi;;
 
32043
         esac
 
32044
       done
 
32045
done
 
32046
;;
 
32047
  esac
 
32048
 
 
32049
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
32050
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
32051
  # line-number line before each line; the second 'sed' does the real
 
32052
  # work.  The second script uses 'N' to pair each line-number line
 
32053
  # with the numbered line, and appends trailing '-' during
 
32054
  # substitution so that $LINENO is not a special case at line end.
 
32055
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
32056
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
32057
  sed '=' <$as_myself |
 
32058
    sed '
 
32059
      N
 
32060
      s,$,-,
 
32061
      : loop
 
32062
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
32063
      t loop
 
32064
      s,-$,,
 
32065
      s,^['$as_cr_digits']*\n,,
 
32066
    ' >$as_me.lineno &&
 
32067
  chmod +x $as_me.lineno ||
 
32068
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
32069
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
32070
   { (exit 1); exit 1; }; }
 
32071
 
 
32072
  # Don't try to exec as it changes $[0], causing all sort of problems
 
32073
  # (the dirname of $[0] is not the place where we might find the
 
32074
  # original and so on.  Autoconf is especially sensible to this).
 
32075
  . ./$as_me.lineno
 
32076
  # Exit status is that of the last command.
 
32077
  exit
 
32078
}
 
32079
 
 
32080
 
 
32081
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
32082
  *c*,-n*) ECHO_N= ECHO_C='
 
32083
' ECHO_T='      ' ;;
 
32084
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
32085
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
32086
esac
 
32087
 
 
32088
if expr a : '\(a\)' >/dev/null 2>&1; then
 
32089
  as_expr=expr
 
32090
else
 
32091
  as_expr=false
 
32092
fi
 
32093
 
 
32094
rm -f conf$$ conf$$.exe conf$$.file
 
32095
echo >conf$$.file
 
32096
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
32097
  # We could just check for DJGPP; but this test a) works b) is more generic
 
32098
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
32099
  if test -f conf$$.exe; then
 
32100
    # Don't use ln at all; we don't have any links
 
32101
    as_ln_s='cp -p'
 
32102
  else
 
32103
    as_ln_s='ln -s'
 
32104
  fi
 
32105
elif ln conf$$.file conf$$ 2>/dev/null; then
 
32106
  as_ln_s=ln
 
32107
else
 
32108
  as_ln_s='cp -p'
 
32109
fi
 
32110
rm -f conf$$ conf$$.exe conf$$.file
 
32111
 
 
32112
if mkdir -p . 2>/dev/null; then
 
32113
  as_mkdir_p=:
 
32114
else
 
32115
  test -d ./-p && rmdir ./-p
 
32116
  as_mkdir_p=false
 
32117
fi
 
32118
 
 
32119
as_executable_p="test -f"
 
32120
 
 
32121
# Sed expression to map a string onto a valid CPP name.
 
32122
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
32123
 
 
32124
# Sed expression to map a string onto a valid variable name.
 
32125
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
32126
 
 
32127
 
 
32128
# IFS
 
32129
# We need space, tab and new line, in precisely that order.
 
32130
as_nl='
 
32131
'
 
32132
IFS="   $as_nl"
 
32133
 
 
32134
# CDPATH.
 
32135
$as_unset CDPATH
 
32136
 
 
32137
exec 6>&1
 
32138
 
 
32139
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
32140
# report actual input values of CONFIG_FILES etc. instead of their
 
32141
# values after options handling.  Logging --version etc. is OK.
 
32142
exec 5>>config.log
 
32143
{
 
32144
  echo
 
32145
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
32146
## Running $as_me. ##
 
32147
_ASBOX
 
32148
} >&5
 
32149
cat >&5 <<_CSEOF
 
32150
 
 
32151
This file was extended by $as_me, which was
 
32152
generated by GNU Autoconf 2.59.  Invocation command line was
 
32153
 
 
32154
  CONFIG_FILES    = $CONFIG_FILES
 
32155
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
32156
  CONFIG_LINKS    = $CONFIG_LINKS
 
32157
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
32158
  $ $0 $@
 
32159
 
 
32160
_CSEOF
 
32161
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
32162
echo >&5
 
32163
_ACEOF
 
32164
 
 
32165
# Files that config.status was made for.
 
32166
if test -n "$ac_config_files"; then
 
32167
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
32168
fi
 
32169
 
 
32170
if test -n "$ac_config_headers"; then
 
32171
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
32172
fi
 
32173
 
 
32174
if test -n "$ac_config_links"; then
 
32175
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
32176
fi
 
32177
 
 
32178
if test -n "$ac_config_commands"; then
 
32179
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
32180
fi
 
32181
 
 
32182
cat >>$CONFIG_STATUS <<\_ACEOF
 
32183
 
 
32184
ac_cs_usage="\
 
32185
\`$as_me' instantiates files from templates according to the
 
32186
current configuration.
 
32187
 
 
32188
Usage: $0 [OPTIONS] [FILE]...
 
32189
 
 
32190
  -h, --help       print this help, then exit
 
32191
  -V, --version    print version number, then exit
 
32192
  -q, --quiet      do not print progress messages
 
32193
  -d, --debug      don't remove temporary files
 
32194
      --recheck    update $as_me by reconfiguring in the same conditions
 
32195
  --file=FILE[:TEMPLATE]
 
32196
                   instantiate the configuration file FILE
 
32197
  --header=FILE[:TEMPLATE]
 
32198
                   instantiate the configuration header FILE
 
32199
 
 
32200
Configuration files:
 
32201
$config_files
 
32202
 
 
32203
Configuration headers:
 
32204
$config_headers
 
32205
 
 
32206
Configuration commands:
 
32207
$config_commands
 
32208
 
 
32209
Report bugs to <bug-autoconf@gnu.org>."
 
32210
_ACEOF
 
32211
 
 
32212
cat >>$CONFIG_STATUS <<_ACEOF
 
32213
ac_cs_version="\\
 
32214
config.status
 
32215
configured by $0, generated by GNU Autoconf 2.59,
 
32216
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
32217
 
 
32218
Copyright (C) 2003 Free Software Foundation, Inc.
 
32219
This config.status script is free software; the Free Software Foundation
 
32220
gives unlimited permission to copy, distribute and modify it."
 
32221
srcdir=$srcdir
 
32222
INSTALL="$INSTALL"
 
32223
_ACEOF
 
32224
 
 
32225
cat >>$CONFIG_STATUS <<\_ACEOF
 
32226
# If no file are specified by the user, then we need to provide default
 
32227
# value.  By we need to know if files were specified by the user.
 
32228
ac_need_defaults=:
 
32229
while test $# != 0
 
32230
do
 
32231
  case $1 in
 
32232
  --*=*)
 
32233
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
32234
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
32235
    ac_shift=:
 
32236
    ;;
 
32237
  -*)
 
32238
    ac_option=$1
 
32239
    ac_optarg=$2
 
32240
    ac_shift=shift
 
32241
    ;;
 
32242
  *) # This is not an option, so the user has probably given explicit
 
32243
     # arguments.
 
32244
     ac_option=$1
 
32245
     ac_need_defaults=false;;
 
32246
  esac
 
32247
 
 
32248
  case $ac_option in
 
32249
  # Handling of the options.
 
32250
_ACEOF
 
32251
cat >>$CONFIG_STATUS <<\_ACEOF
 
32252
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
32253
    ac_cs_recheck=: ;;
 
32254
  --version | --vers* | -V )
 
32255
    echo "$ac_cs_version"; exit 0 ;;
 
32256
  --he | --h)
 
32257
    # Conflict between --help and --header
 
32258
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
32259
Try \`$0 --help' for more information." >&5
 
32260
echo "$as_me: error: ambiguous option: $1
 
32261
Try \`$0 --help' for more information." >&2;}
 
32262
   { (exit 1); exit 1; }; };;
 
32263
  --help | --hel | -h )
 
32264
    echo "$ac_cs_usage"; exit 0 ;;
 
32265
  --debug | --d* | -d )
 
32266
    debug=: ;;
 
32267
  --file | --fil | --fi | --f )
 
32268
    $ac_shift
 
32269
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
32270
    ac_need_defaults=false;;
 
32271
  --header | --heade | --head | --hea )
 
32272
    $ac_shift
 
32273
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
32274
    ac_need_defaults=false;;
 
32275
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
32276
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
32277
    ac_cs_silent=: ;;
 
32278
 
 
32279
  # This is an error.
 
32280
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
32281
Try \`$0 --help' for more information." >&5
 
32282
echo "$as_me: error: unrecognized option: $1
 
32283
Try \`$0 --help' for more information." >&2;}
 
32284
   { (exit 1); exit 1; }; } ;;
 
32285
 
 
32286
  *) ac_config_targets="$ac_config_targets $1" ;;
 
32287
 
 
32288
  esac
 
32289
  shift
 
32290
done
 
32291
 
 
32292
ac_configure_extra_args=
 
32293
 
 
32294
if $ac_cs_silent; then
 
32295
  exec 6>/dev/null
 
32296
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
32297
fi
 
32298
 
 
32299
_ACEOF
 
32300
cat >>$CONFIG_STATUS <<_ACEOF
 
32301
if \$ac_cs_recheck; then
 
32302
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
32303
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
32304
fi
 
32305
 
 
32306
_ACEOF
 
32307
 
 
32308
cat >>$CONFIG_STATUS <<_ACEOF
 
32309
#
 
32310
# INIT-COMMANDS section.
 
32311
#
 
32312
 
 
32313
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
32314
 
 
32315
_ACEOF
 
32316
 
 
32317
 
 
32318
 
 
32319
cat >>$CONFIG_STATUS <<\_ACEOF
 
32320
for ac_config_target in $ac_config_targets
 
32321
do
 
32322
  case "$ac_config_target" in
 
32323
  # Handling of arguments.
 
32324
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
32325
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
32326
  "doc/en/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/en/Makefile" ;;
 
32327
  "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
 
32328
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
32329
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
32330
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
32331
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
32332
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
32333
   { (exit 1); exit 1; }; };;
 
32334
  esac
 
32335
done
 
32336
 
 
32337
# If the user did not use the arguments to specify the items to instantiate,
 
32338
# then the envvar interface is used.  Set only those that are not.
 
32339
# We use the long form for the default assignment because of an extremely
 
32340
# bizarre bug on SunOS 4.1.3.
 
32341
if $ac_need_defaults; then
 
32342
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
32343
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
32344
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
32345
fi
 
32346
 
 
32347
# Have a temporary directory for convenience.  Make it in the build tree
 
32348
# simply because there is no reason to put it here, and in addition,
 
32349
# creating and moving files from /tmp can sometimes cause problems.
 
32350
# Create a temporary directory, and hook for its removal unless debugging.
 
32351
$debug ||
 
32352
{
 
32353
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
32354
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
32355
}
 
32356
 
 
32357
# Create a (secure) tmp directory for tmp files.
 
32358
 
 
32359
{
 
32360
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
32361
  test -n "$tmp" && test -d "$tmp"
 
32362
}  ||
 
32363
{
 
32364
  tmp=./confstat$$-$RANDOM
 
32365
  (umask 077 && mkdir $tmp)
 
32366
} ||
 
32367
{
 
32368
   echo "$me: cannot create a temporary directory in ." >&2
 
32369
   { (exit 1); exit 1; }
 
32370
}
 
32371
 
 
32372
_ACEOF
 
32373
 
 
32374
cat >>$CONFIG_STATUS <<_ACEOF
 
32375
 
 
32376
#
 
32377
# CONFIG_FILES section.
 
32378
#
 
32379
 
 
32380
# No need to generate the scripts if there are no CONFIG_FILES.
 
32381
# This happens for instance when ./config.status config.h
 
32382
if test -n "\$CONFIG_FILES"; then
 
32383
  # Protect against being on the right side of a sed subst in config.status.
 
32384
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
32385
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
32386
s,@SHELL@,$SHELL,;t t
 
32387
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
32388
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
32389
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
32390
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
32391
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
32392
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
32393
s,@exec_prefix@,$exec_prefix,;t t
 
32394
s,@prefix@,$prefix,;t t
 
32395
s,@program_transform_name@,$program_transform_name,;t t
 
32396
s,@bindir@,$bindir,;t t
 
32397
s,@sbindir@,$sbindir,;t t
 
32398
s,@libexecdir@,$libexecdir,;t t
 
32399
s,@datadir@,$datadir,;t t
 
32400
s,@sysconfdir@,$sysconfdir,;t t
 
32401
s,@sharedstatedir@,$sharedstatedir,;t t
 
32402
s,@localstatedir@,$localstatedir,;t t
 
32403
s,@libdir@,$libdir,;t t
 
32404
s,@includedir@,$includedir,;t t
 
32405
s,@oldincludedir@,$oldincludedir,;t t
 
32406
s,@infodir@,$infodir,;t t
 
32407
s,@mandir@,$mandir,;t t
 
32408
s,@build_alias@,$build_alias,;t t
 
32409
s,@host_alias@,$host_alias,;t t
 
32410
s,@target_alias@,$target_alias,;t t
 
32411
s,@DEFS@,$DEFS,;t t
 
32412
s,@ECHO_C@,$ECHO_C,;t t
 
32413
s,@ECHO_N@,$ECHO_N,;t t
 
32414
s,@ECHO_T@,$ECHO_T,;t t
 
32415
s,@LIBS@,$LIBS,;t t
 
32416
s,@build@,$build,;t t
 
32417
s,@build_cpu@,$build_cpu,;t t
 
32418
s,@build_vendor@,$build_vendor,;t t
 
32419
s,@build_os@,$build_os,;t t
 
32420
s,@host@,$host,;t t
 
32421
s,@host_cpu@,$host_cpu,;t t
 
32422
s,@host_vendor@,$host_vendor,;t t
 
32423
s,@host_os@,$host_os,;t t
 
32424
s,@target@,$target,;t t
 
32425
s,@target_cpu@,$target_cpu,;t t
 
32426
s,@target_vendor@,$target_vendor,;t t
 
32427
s,@target_os@,$target_os,;t t
 
32428
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
32429
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
32430
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
32431
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
32432
s,@PACKAGE@,$PACKAGE,;t t
 
32433
s,@VERSION@,$VERSION,;t t
 
32434
s,@ACLOCAL@,$ACLOCAL,;t t
 
32435
s,@AUTOCONF@,$AUTOCONF,;t t
 
32436
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
32437
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
32438
s,@MAKEINFO@,$MAKEINFO,;t t
 
32439
s,@install_sh@,$install_sh,;t t
 
32440
s,@STRIP@,$STRIP,;t t
 
32441
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
32442
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
32443
s,@mkdir_p@,$mkdir_p,;t t
 
32444
s,@AWK@,$AWK,;t t
 
32445
s,@SET_MAKE@,$SET_MAKE,;t t
 
32446
s,@am__leading_dot@,$am__leading_dot,;t t
 
32447
s,@AMTAR@,$AMTAR,;t t
 
32448
s,@am__tar@,$am__tar,;t t
 
32449
s,@am__untar@,$am__untar,;t t
 
32450
s,@KDECONFIG@,$KDECONFIG,;t t
 
32451
s,@kde_libs_prefix@,$kde_libs_prefix,;t t
 
32452
s,@kde_libs_htmldir@,$kde_libs_htmldir,;t t
 
32453
s,@CONF_FILES@,$CONF_FILES,;t t
 
32454
s,@CC@,$CC,;t t
 
32455
s,@CFLAGS@,$CFLAGS,;t t
 
32456
s,@LDFLAGS@,$LDFLAGS,;t t
 
32457
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
32458
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
32459
s,@EXEEXT@,$EXEEXT,;t t
 
32460
s,@OBJEXT@,$OBJEXT,;t t
 
32461
s,@DEPDIR@,$DEPDIR,;t t
 
32462
s,@am__include@,$am__include,;t t
 
32463
s,@am__quote@,$am__quote,;t t
 
32464
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
32465
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
32466
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
32467
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
32468
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
32469
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
32470
s,@CPP@,$CPP,;t t
 
32471
s,@CXX@,$CXX,;t t
 
32472
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
32473
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
32474
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
32475
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
32476
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
32477
s,@WOVERLOADED_VIRTUAL@,$WOVERLOADED_VIRTUAL,;t t
 
32478
s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t
 
32479
s,@USE_RTTI@,$USE_RTTI,;t t
 
32480
s,@CXXCPP@,$CXXCPP,;t t
 
32481
s,@NOOPT_CXXFLAGS@,$NOOPT_CXXFLAGS,;t t
 
32482
s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t
 
32483
s,@ENABLE_PERMISSIVE_FLAG@,$ENABLE_PERMISSIVE_FLAG,;t t
 
32484
s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t
 
32485
s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t
 
32486
s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t
 
32487
s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t
 
32488
s,@KDE_NO_UNDEFINED@,$KDE_NO_UNDEFINED,;t t
 
32489
s,@KDE_USE_NMCHECK_TRUE@,$KDE_USE_NMCHECK_TRUE,;t t
 
32490
s,@KDE_USE_NMCHECK_FALSE@,$KDE_USE_NMCHECK_FALSE,;t t
 
32491
s,@EGREP@,$EGREP,;t t
 
32492
s,@LN_S@,$LN_S,;t t
 
32493
s,@ECHO@,$ECHO,;t t
 
32494
s,@AR@,$AR,;t t
 
32495
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
32496
s,@RANLIB@,$RANLIB,;t t
 
32497
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
32498
s,@F77@,$F77,;t t
 
32499
s,@FFLAGS@,$FFLAGS,;t t
 
32500
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
32501
s,@LIBTOOL@,$LIBTOOL,;t t
 
32502
s,@KDE_PLUGIN@,$KDE_PLUGIN,;t t
 
32503
s,@MSGFMT@,$MSGFMT,;t t
 
32504
s,@GMSGFMT@,$GMSGFMT,;t t
 
32505
s,@XGETTEXT@,$XGETTEXT,;t t
 
32506
s,@LIBUTIL@,$LIBUTIL,;t t
 
32507
s,@LIBCOMPAT@,$LIBCOMPAT,;t t
 
32508
s,@LIBCRYPT@,$LIBCRYPT,;t t
 
32509
s,@LIBRESOLV@,$LIBRESOLV,;t t
 
32510
s,@LIB_POLL@,$LIB_POLL,;t t
 
32511
s,@FRAMEWORK_COREAUDIO@,$FRAMEWORK_COREAUDIO,;t t
 
32512
s,@LIBSOCKET@,$LIBSOCKET,;t t
 
32513
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
 
32514
s,@LIBUCB@,$LIBUCB,;t t
 
32515
s,@LIBDL@,$LIBDL,;t t
 
32516
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
 
32517
s,@LIB_X11@,$LIB_X11,;t t
 
32518
s,@LIB_XRENDER@,$LIB_XRENDER,;t t
 
32519
s,@LIBSM@,$LIBSM,;t t
 
32520
s,@X_INCLUDES@,$X_INCLUDES,;t t
 
32521
s,@X_LDFLAGS@,$X_LDFLAGS,;t t
 
32522
s,@x_includes@,$x_includes,;t t
 
32523
s,@x_libraries@,$x_libraries,;t t
 
32524
s,@QTE_NORTTI@,$QTE_NORTTI,;t t
 
32525
s,@LIB_XEXT@,$LIB_XEXT,;t t
 
32526
s,@LIBPTHREAD@,$LIBPTHREAD,;t t
 
32527
s,@USE_THREADS@,$USE_THREADS,;t t
 
32528
s,@KDE_MT_LDFLAGS@,$KDE_MT_LDFLAGS,;t t
 
32529
s,@KDE_MT_LIBS@,$KDE_MT_LIBS,;t t
 
32530
s,@USER_INCLUDES@,$USER_INCLUDES,;t t
 
32531
s,@USER_LDFLAGS@,$USER_LDFLAGS,;t t
 
32532
s,@LIBZ@,$LIBZ,;t t
 
32533
s,@LIBPNG@,$LIBPNG,;t t
 
32534
s,@LIBJPEG@,$LIBJPEG,;t t
 
32535
s,@qt_libraries@,$qt_libraries,;t t
 
32536
s,@qt_includes@,$qt_includes,;t t
 
32537
s,@QT_INCLUDES@,$QT_INCLUDES,;t t
 
32538
s,@QT_LDFLAGS@,$QT_LDFLAGS,;t t
 
32539
s,@PERL@,$PERL,;t t
 
32540
s,@MOC@,$MOC,;t t
 
32541
s,@UIC@,$UIC,;t t
 
32542
s,@UIC_TR@,$UIC_TR,;t t
 
32543
s,@LIB_QT@,$LIB_QT,;t t
 
32544
s,@LIB_QPE@,$LIB_QPE,;t t
 
32545
s,@kde_qtver@,$kde_qtver,;t t
 
32546
s,@KDE_EXTRA_RPATH@,$KDE_EXTRA_RPATH,;t t
 
32547
s,@KDE_RPATH@,$KDE_RPATH,;t t
 
32548
s,@X_RPATH@,$X_RPATH,;t t
 
32549
s,@kde_libraries@,$kde_libraries,;t t
 
32550
s,@kde_includes@,$kde_includes,;t t
 
32551
s,@KDE_LDFLAGS@,$KDE_LDFLAGS,;t t
 
32552
s,@KDE_INCLUDES@,$KDE_INCLUDES,;t t
 
32553
s,@all_includes@,$all_includes,;t t
 
32554
s,@all_libraries@,$all_libraries,;t t
 
32555
s,@AUTODIRS@,$AUTODIRS,;t t
 
32556
s,@include_ARTS_TRUE@,$include_ARTS_TRUE,;t t
 
32557
s,@include_ARTS_FALSE@,$include_ARTS_FALSE,;t t
 
32558
s,@KCONFIG_COMPILER@,$KCONFIG_COMPILER,;t t
 
32559
s,@KCFG_DEPENDENCIES@,$KCFG_DEPENDENCIES,;t t
 
32560
s,@DCOPIDLNG@,$DCOPIDLNG,;t t
 
32561
s,@DCOPIDL@,$DCOPIDL,;t t
 
32562
s,@DCOPIDL2CPP@,$DCOPIDL2CPP,;t t
 
32563
s,@DCOP_DEPENDENCIES@,$DCOP_DEPENDENCIES,;t t
 
32564
s,@MCOPIDL@,$MCOPIDL,;t t
 
32565
s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
 
32566
s,@MEINPROC@,$MEINPROC,;t t
 
32567
s,@KDE_XSL_STYLESHEET@,$KDE_XSL_STYLESHEET,;t t
 
32568
s,@XMLLINT@,$XMLLINT,;t t
 
32569
s,@kde_htmldir@,$kde_htmldir,;t t
 
32570
s,@kde_appsdir@,$kde_appsdir,;t t
 
32571
s,@kde_icondir@,$kde_icondir,;t t
 
32572
s,@kde_sounddir@,$kde_sounddir,;t t
 
32573
s,@kde_datadir@,$kde_datadir,;t t
 
32574
s,@kde_locale@,$kde_locale,;t t
 
32575
s,@kde_confdir@,$kde_confdir,;t t
 
32576
s,@kde_kcfgdir@,$kde_kcfgdir,;t t
 
32577
s,@kde_mimedir@,$kde_mimedir,;t t
 
32578
s,@kde_wallpaperdir@,$kde_wallpaperdir,;t t
 
32579
s,@kde_bindir@,$kde_bindir,;t t
 
32580
s,@xdg_appsdir@,$xdg_appsdir,;t t
 
32581
s,@xdg_menudir@,$xdg_menudir,;t t
 
32582
s,@xdg_directorydir@,$xdg_directorydir,;t t
 
32583
s,@kde_templatesdir@,$kde_templatesdir,;t t
 
32584
s,@kde_servicesdir@,$kde_servicesdir,;t t
 
32585
s,@kde_servicetypesdir@,$kde_servicetypesdir,;t t
 
32586
s,@kde_moduledir@,$kde_moduledir,;t t
 
32587
s,@kdeinitdir@,$kdeinitdir,;t t
 
32588
s,@kde_styledir@,$kde_styledir,;t t
 
32589
s,@kde_widgetdir@,$kde_widgetdir,;t t
 
32590
s,@LIB_KDECORE@,$LIB_KDECORE,;t t
 
32591
s,@LIB_KDEUI@,$LIB_KDEUI,;t t
 
32592
s,@LIB_KIO@,$LIB_KIO,;t t
 
32593
s,@LIB_SMB@,$LIB_SMB,;t t
 
32594
s,@LIB_KAB@,$LIB_KAB,;t t
 
32595
s,@LIB_KABC@,$LIB_KABC,;t t
 
32596
s,@LIB_KHTML@,$LIB_KHTML,;t t
 
32597
s,@LIB_KSPELL@,$LIB_KSPELL,;t t
 
32598
s,@LIB_KPARTS@,$LIB_KPARTS,;t t
 
32599
s,@LIB_KDEPRINT@,$LIB_KDEPRINT,;t t
 
32600
s,@LIB_KUTILS@,$LIB_KUTILS,;t t
 
32601
s,@LIB_KDEPIM@,$LIB_KDEPIM,;t t
 
32602
s,@LIB_KSYCOCA@,$LIB_KSYCOCA,;t t
 
32603
s,@LIB_KFILE@,$LIB_KFILE,;t t
 
32604
s,@LIB_KFM@,$LIB_KFM,;t t
 
32605
s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t
 
32606
s,@LIBOBJS@,$LIBOBJS,;t t
 
32607
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
32608
CEOF
 
32609
 
 
32610
_ACEOF
 
32611
 
 
32612
  cat >>$CONFIG_STATUS <<\_ACEOF
 
32613
  # Split the substitutions into bite-sized pieces for seds with
 
32614
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
32615
  ac_max_sed_lines=48
 
32616
  ac_sed_frag=1 # Number of current file.
 
32617
  ac_beg=1 # First line for current file.
 
32618
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
32619
  ac_more_lines=:
 
32620
  ac_sed_cmds=
 
32621
  while $ac_more_lines; do
 
32622
    if test $ac_beg -gt 1; then
 
32623
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
32624
    else
 
32625
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
32626
    fi
 
32627
    if test ! -s $tmp/subs.frag; then
 
32628
      ac_more_lines=false
 
32629
    else
 
32630
      # The purpose of the label and of the branching condition is to
 
32631
      # speed up the sed processing (if there are no `@' at all, there
 
32632
      # is no need to browse any of the substitutions).
 
32633
      # These are the two extra sed commands mentioned above.
 
32634
      (echo ':t
 
32635
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
32636
      if test -z "$ac_sed_cmds"; then
 
32637
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
32638
      else
 
32639
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
32640
      fi
 
32641
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
32642
      ac_beg=$ac_end
 
32643
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
32644
    fi
 
32645
  done
 
32646
  if test -z "$ac_sed_cmds"; then
 
32647
    ac_sed_cmds=cat
 
32648
  fi
 
32649
fi # test -n "$CONFIG_FILES"
 
32650
 
 
32651
_ACEOF
 
32652
cat >>$CONFIG_STATUS <<\_ACEOF
 
32653
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
32654
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
32655
  case $ac_file in
 
32656
  - | *:- | *:-:* ) # input from stdin
 
32657
        cat >$tmp/stdin
 
32658
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
32659
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
32660
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
32661
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
32662
  * )   ac_file_in=$ac_file.in ;;
 
32663
  esac
 
32664
 
 
32665
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
32666
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
32667
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
32668
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
32669
         X"$ac_file" : 'X\(//\)$' \| \
 
32670
         X"$ac_file" : 'X\(/\)' \| \
 
32671
         .     : '\(.\)' 2>/dev/null ||
 
32672
echo X"$ac_file" |
 
32673
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
32674
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
32675
          /^X\(\/\/\)$/{ s//\1/; q; }
 
32676
          /^X\(\/\).*/{ s//\1/; q; }
 
32677
          s/.*/./; q'`
 
32678
  { if $as_mkdir_p; then
 
32679
    mkdir -p "$ac_dir"
 
32680
  else
 
32681
    as_dir="$ac_dir"
 
32682
    as_dirs=
 
32683
    while test ! -d "$as_dir"; do
 
32684
      as_dirs="$as_dir $as_dirs"
 
32685
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
32686
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
32687
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
32688
         X"$as_dir" : 'X\(//\)$' \| \
 
32689
         X"$as_dir" : 'X\(/\)' \| \
 
32690
         .     : '\(.\)' 2>/dev/null ||
 
32691
echo X"$as_dir" |
 
32692
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
32693
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
32694
          /^X\(\/\/\)$/{ s//\1/; q; }
 
32695
          /^X\(\/\).*/{ s//\1/; q; }
 
32696
          s/.*/./; q'`
 
32697
    done
 
32698
    test ! -n "$as_dirs" || mkdir $as_dirs
 
32699
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
32700
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
32701
   { (exit 1); exit 1; }; }; }
 
32702
 
 
32703
  ac_builddir=.
 
32704
 
 
32705
if test "$ac_dir" != .; then
 
32706
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
32707
  # A "../" for each directory in $ac_dir_suffix.
 
32708
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
32709
else
 
32710
  ac_dir_suffix= ac_top_builddir=
 
32711
fi
 
32712
 
 
32713
case $srcdir in
 
32714
  .)  # No --srcdir option.  We are building in place.
 
32715
    ac_srcdir=.
 
32716
    if test -z "$ac_top_builddir"; then
 
32717
       ac_top_srcdir=.
 
32718
    else
 
32719
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
32720
    fi ;;
 
32721
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
32722
    ac_srcdir=$srcdir$ac_dir_suffix;
 
32723
    ac_top_srcdir=$srcdir ;;
 
32724
  *) # Relative path.
 
32725
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
32726
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
32727
esac
 
32728
 
 
32729
# Do not use `cd foo && pwd` to compute absolute paths, because
 
32730
# the directories may not exist.
 
32731
case `pwd` in
 
32732
.) ac_abs_builddir="$ac_dir";;
 
32733
*)
 
32734
  case "$ac_dir" in
 
32735
  .) ac_abs_builddir=`pwd`;;
 
32736
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
32737
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
32738
  esac;;
 
32739
esac
 
32740
case $ac_abs_builddir in
 
32741
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
32742
*)
 
32743
  case ${ac_top_builddir}. in
 
32744
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
32745
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
32746
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
32747
  esac;;
 
32748
esac
 
32749
case $ac_abs_builddir in
 
32750
.) ac_abs_srcdir=$ac_srcdir;;
 
32751
*)
 
32752
  case $ac_srcdir in
 
32753
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
32754
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
32755
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
32756
  esac;;
 
32757
esac
 
32758
case $ac_abs_builddir in
 
32759
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
32760
*)
 
32761
  case $ac_top_srcdir in
 
32762
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
32763
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
32764
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
32765
  esac;;
 
32766
esac
 
32767
 
 
32768
 
 
32769
  case $INSTALL in
 
32770
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
32771
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
32772
  esac
 
32773
 
 
32774
  if test x"$ac_file" != x-; then
 
32775
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
32776
echo "$as_me: creating $ac_file" >&6;}
 
32777
    rm -f "$ac_file"
 
32778
  fi
 
32779
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
32780
  # use $as_me), people would be surprised to read:
 
32781
  #    /* config.h.  Generated by config.status.  */
 
32782
  if test x"$ac_file" = x-; then
 
32783
    configure_input=
 
32784
  else
 
32785
    configure_input="$ac_file.  "
 
32786
  fi
 
32787
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
32788
                                     sed 's,.*/,,'` by configure."
 
32789
 
 
32790
  # First look for the input files in the build tree, otherwise in the
 
32791
  # src tree.
 
32792
  ac_file_inputs=`IFS=:
 
32793
    for f in $ac_file_in; do
 
32794
      case $f in
 
32795
      -) echo $tmp/stdin ;;
 
32796
      [\\/$]*)
 
32797
         # Absolute (can't be DOS-style, as IFS=:)
 
32798
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
32799
echo "$as_me: error: cannot find input file: $f" >&2;}
 
32800
   { (exit 1); exit 1; }; }
 
32801
         echo "$f";;
 
32802
      *) # Relative
 
32803
         if test -f "$f"; then
 
32804
           # Build tree
 
32805
           echo "$f"
 
32806
         elif test -f "$srcdir/$f"; then
 
32807
           # Source tree
 
32808
           echo "$srcdir/$f"
 
32809
         else
 
32810
           # /dev/null tree
 
32811
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
32812
echo "$as_me: error: cannot find input file: $f" >&2;}
 
32813
   { (exit 1); exit 1; }; }
 
32814
         fi;;
 
32815
      esac
 
32816
    done` || { (exit 1); exit 1; }
 
32817
_ACEOF
 
32818
cat >>$CONFIG_STATUS <<_ACEOF
 
32819
  sed "$ac_vpsub
 
32820
$extrasub
 
32821
_ACEOF
 
32822
cat >>$CONFIG_STATUS <<\_ACEOF
 
32823
:t
 
32824
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
32825
s,@configure_input@,$configure_input,;t t
 
32826
s,@srcdir@,$ac_srcdir,;t t
 
32827
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
32828
s,@top_srcdir@,$ac_top_srcdir,;t t
 
32829
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
32830
s,@builddir@,$ac_builddir,;t t
 
32831
s,@abs_builddir@,$ac_abs_builddir,;t t
 
32832
s,@top_builddir@,$ac_top_builddir,;t t
 
32833
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
32834
s,@INSTALL@,$ac_INSTALL,;t t
 
32835
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
32836
  rm -f $tmp/stdin
 
32837
  if test x"$ac_file" != x-; then
 
32838
    mv $tmp/out $ac_file
 
32839
  else
 
32840
    cat $tmp/out
 
32841
    rm -f $tmp/out
 
32842
  fi
 
32843
 
 
32844
done
 
32845
_ACEOF
 
32846
cat >>$CONFIG_STATUS <<\_ACEOF
 
32847
 
 
32848
#
 
32849
# CONFIG_HEADER section.
 
32850
#
 
32851
 
 
32852
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
32853
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
32854
#
 
32855
# ac_d sets the value in "#define NAME VALUE" lines.
 
32856
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
32857
ac_dB='[         ].*$,\1#\2'
 
32858
ac_dC=' '
 
32859
ac_dD=',;t'
 
32860
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
32861
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
32862
ac_uB='$,\1#\2define\3'
 
32863
ac_uC=' '
 
32864
ac_uD=',;t'
 
32865
 
 
32866
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
32867
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
32868
  case $ac_file in
 
32869
  - | *:- | *:-:* ) # input from stdin
 
32870
        cat >$tmp/stdin
 
32871
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
32872
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
32873
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
32874
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
32875
  * )   ac_file_in=$ac_file.in ;;
 
32876
  esac
 
32877
 
 
32878
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
32879
echo "$as_me: creating $ac_file" >&6;}
 
32880
 
 
32881
  # First look for the input files in the build tree, otherwise in the
 
32882
  # src tree.
 
32883
  ac_file_inputs=`IFS=:
 
32884
    for f in $ac_file_in; do
 
32885
      case $f in
 
32886
      -) echo $tmp/stdin ;;
 
32887
      [\\/$]*)
 
32888
         # Absolute (can't be DOS-style, as IFS=:)
 
32889
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
32890
echo "$as_me: error: cannot find input file: $f" >&2;}
 
32891
   { (exit 1); exit 1; }; }
 
32892
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
32893
         echo "$f";;
 
32894
      *) # Relative
 
32895
         if test -f "$f"; then
 
32896
           # Build tree
 
32897
           echo "$f"
 
32898
         elif test -f "$srcdir/$f"; then
 
32899
           # Source tree
 
32900
           echo "$srcdir/$f"
 
32901
         else
 
32902
           # /dev/null tree
 
32903
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
32904
echo "$as_me: error: cannot find input file: $f" >&2;}
 
32905
   { (exit 1); exit 1; }; }
 
32906
         fi;;
 
32907
      esac
 
32908
    done` || { (exit 1); exit 1; }
 
32909
  # Remove the trailing spaces.
 
32910
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
32911
 
 
32912
_ACEOF
 
32913
 
 
32914
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
32915
# `conftest.undefs', that substitutes the proper values into
 
32916
# config.h.in to produce config.h.  The first handles `#define'
 
32917
# templates, and the second `#undef' templates.
 
32918
# And first: Protect against being on the right side of a sed subst in
 
32919
# config.status.  Protect against being in an unquoted here document
 
32920
# in config.status.
 
32921
rm -f conftest.defines conftest.undefs
 
32922
# Using a here document instead of a string reduces the quoting nightmare.
 
32923
# Putting comments in sed scripts is not portable.
 
32924
#
 
32925
# `end' is used to avoid that the second main sed command (meant for
 
32926
# 0-ary CPP macros) applies to n-ary macro definitions.
 
32927
# See the Autoconf documentation for `clear'.
 
32928
cat >confdef2sed.sed <<\_ACEOF
 
32929
s/[\\&,]/\\&/g
 
32930
s,[\\$`],\\&,g
 
32931
t clear
 
32932
: clear
 
32933
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
32934
t end
 
32935
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
32936
: end
 
32937
_ACEOF
 
32938
# If some macros were called several times there might be several times
 
32939
# the same #defines, which is useless.  Nevertheless, we may not want to
 
32940
# sort them, since we want the *last* AC-DEFINE to be honored.
 
32941
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
32942
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
32943
rm -f confdef2sed.sed
 
32944
 
 
32945
# This sed command replaces #undef with comments.  This is necessary, for
 
32946
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
32947
# on some systems where configure will not decide to define it.
 
32948
cat >>conftest.undefs <<\_ACEOF
 
32949
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
32950
_ACEOF
 
32951
 
 
32952
# Break up conftest.defines because some shells have a limit on the size
 
32953
# of here documents, and old seds have small limits too (100 cmds).
 
32954
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
32955
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
32956
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
32957
echo '  :' >>$CONFIG_STATUS
 
32958
rm -f conftest.tail
 
32959
while grep . conftest.defines >/dev/null
 
32960
do
 
32961
  # Write a limited-size here document to $tmp/defines.sed.
 
32962
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
32963
  # Speed up: don't consider the non `#define' lines.
 
32964
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
32965
  # Work around the forget-to-reset-the-flag bug.
 
32966
  echo 't clr' >>$CONFIG_STATUS
 
32967
  echo ': clr' >>$CONFIG_STATUS
 
32968
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
32969
  echo 'CEOF
 
32970
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
32971
  rm -f $tmp/in
 
32972
  mv $tmp/out $tmp/in
 
32973
' >>$CONFIG_STATUS
 
32974
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
32975
  rm -f conftest.defines
 
32976
  mv conftest.tail conftest.defines
 
32977
done
 
32978
rm -f conftest.defines
 
32979
echo '  fi # grep' >>$CONFIG_STATUS
 
32980
echo >>$CONFIG_STATUS
 
32981
 
 
32982
# Break up conftest.undefs because some shells have a limit on the size
 
32983
# of here documents, and old seds have small limits too (100 cmds).
 
32984
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
32985
rm -f conftest.tail
 
32986
while grep . conftest.undefs >/dev/null
 
32987
do
 
32988
  # Write a limited-size here document to $tmp/undefs.sed.
 
32989
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
32990
  # Speed up: don't consider the non `#undef'
 
32991
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
32992
  # Work around the forget-to-reset-the-flag bug.
 
32993
  echo 't clr' >>$CONFIG_STATUS
 
32994
  echo ': clr' >>$CONFIG_STATUS
 
32995
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
32996
  echo 'CEOF
 
32997
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
32998
  rm -f $tmp/in
 
32999
  mv $tmp/out $tmp/in
 
33000
' >>$CONFIG_STATUS
 
33001
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
33002
  rm -f conftest.undefs
 
33003
  mv conftest.tail conftest.undefs
 
33004
done
 
33005
rm -f conftest.undefs
 
33006
 
 
33007
cat >>$CONFIG_STATUS <<\_ACEOF
 
33008
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
33009
  # use $as_me), people would be surprised to read:
 
33010
  #    /* config.h.  Generated by config.status.  */
 
33011
  if test x"$ac_file" = x-; then
 
33012
    echo "/* Generated by configure.  */" >$tmp/config.h
 
33013
  else
 
33014
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
33015
  fi
 
33016
  cat $tmp/in >>$tmp/config.h
 
33017
  rm -f $tmp/in
 
33018
  if test x"$ac_file" != x-; then
 
33019
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
33020
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
33021
echo "$as_me: $ac_file is unchanged" >&6;}
 
33022
    else
 
33023
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
33024
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33025
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
33026
         X"$ac_file" : 'X\(//\)$' \| \
 
33027
         X"$ac_file" : 'X\(/\)' \| \
 
33028
         .     : '\(.\)' 2>/dev/null ||
 
33029
echo X"$ac_file" |
 
33030
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33031
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33032
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33033
          /^X\(\/\).*/{ s//\1/; q; }
 
33034
          s/.*/./; q'`
 
33035
      { if $as_mkdir_p; then
 
33036
    mkdir -p "$ac_dir"
 
33037
  else
 
33038
    as_dir="$ac_dir"
 
33039
    as_dirs=
 
33040
    while test ! -d "$as_dir"; do
 
33041
      as_dirs="$as_dir $as_dirs"
 
33042
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
33043
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33044
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
33045
         X"$as_dir" : 'X\(//\)$' \| \
 
33046
         X"$as_dir" : 'X\(/\)' \| \
 
33047
         .     : '\(.\)' 2>/dev/null ||
 
33048
echo X"$as_dir" |
 
33049
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33050
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33051
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33052
          /^X\(\/\).*/{ s//\1/; q; }
 
33053
          s/.*/./; q'`
 
33054
    done
 
33055
    test ! -n "$as_dirs" || mkdir $as_dirs
 
33056
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
33057
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
33058
   { (exit 1); exit 1; }; }; }
 
33059
 
 
33060
      rm -f $ac_file
 
33061
      mv $tmp/config.h $ac_file
 
33062
    fi
 
33063
  else
 
33064
    cat $tmp/config.h
 
33065
    rm -f $tmp/config.h
 
33066
  fi
 
33067
# Compute $ac_file's index in $config_headers.
 
33068
_am_stamp_count=1
 
33069
for _am_header in $config_headers :; do
 
33070
  case $_am_header in
 
33071
    $ac_file | $ac_file:* )
 
33072
      break ;;
 
33073
    * )
 
33074
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
33075
  esac
 
33076
done
 
33077
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
33078
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33079
         X$ac_file : 'X\(//\)[^/]' \| \
 
33080
         X$ac_file : 'X\(//\)$' \| \
 
33081
         X$ac_file : 'X\(/\)' \| \
 
33082
         .     : '\(.\)' 2>/dev/null ||
 
33083
echo X$ac_file |
 
33084
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33085
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33086
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33087
          /^X\(\/\).*/{ s//\1/; q; }
 
33088
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
33089
done
 
33090
_ACEOF
 
33091
cat >>$CONFIG_STATUS <<\_ACEOF
 
33092
 
 
33093
#
 
33094
# CONFIG_COMMANDS section.
 
33095
#
 
33096
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
33097
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
33098
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
33099
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
33100
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33101
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
33102
         X"$ac_dest" : 'X\(//\)$' \| \
 
33103
         X"$ac_dest" : 'X\(/\)' \| \
 
33104
         .     : '\(.\)' 2>/dev/null ||
 
33105
echo X"$ac_dest" |
 
33106
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33107
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33108
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33109
          /^X\(\/\).*/{ s//\1/; q; }
 
33110
          s/.*/./; q'`
 
33111
  { if $as_mkdir_p; then
 
33112
    mkdir -p "$ac_dir"
 
33113
  else
 
33114
    as_dir="$ac_dir"
 
33115
    as_dirs=
 
33116
    while test ! -d "$as_dir"; do
 
33117
      as_dirs="$as_dir $as_dirs"
 
33118
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
33119
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33120
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
33121
         X"$as_dir" : 'X\(//\)$' \| \
 
33122
         X"$as_dir" : 'X\(/\)' \| \
 
33123
         .     : '\(.\)' 2>/dev/null ||
 
33124
echo X"$as_dir" |
 
33125
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33126
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33127
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33128
          /^X\(\/\).*/{ s//\1/; q; }
 
33129
          s/.*/./; q'`
 
33130
    done
 
33131
    test ! -n "$as_dirs" || mkdir $as_dirs
 
33132
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
33133
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
33134
   { (exit 1); exit 1; }; }; }
 
33135
 
 
33136
  ac_builddir=.
 
33137
 
 
33138
if test "$ac_dir" != .; then
 
33139
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
33140
  # A "../" for each directory in $ac_dir_suffix.
 
33141
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
33142
else
 
33143
  ac_dir_suffix= ac_top_builddir=
 
33144
fi
 
33145
 
 
33146
case $srcdir in
 
33147
  .)  # No --srcdir option.  We are building in place.
 
33148
    ac_srcdir=.
 
33149
    if test -z "$ac_top_builddir"; then
 
33150
       ac_top_srcdir=.
 
33151
    else
 
33152
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
33153
    fi ;;
 
33154
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
33155
    ac_srcdir=$srcdir$ac_dir_suffix;
 
33156
    ac_top_srcdir=$srcdir ;;
 
33157
  *) # Relative path.
 
33158
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
33159
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
33160
esac
 
33161
 
 
33162
# Do not use `cd foo && pwd` to compute absolute paths, because
 
33163
# the directories may not exist.
 
33164
case `pwd` in
 
33165
.) ac_abs_builddir="$ac_dir";;
 
33166
*)
 
33167
  case "$ac_dir" in
 
33168
  .) ac_abs_builddir=`pwd`;;
 
33169
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
33170
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
33171
  esac;;
 
33172
esac
 
33173
case $ac_abs_builddir in
 
33174
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
33175
*)
 
33176
  case ${ac_top_builddir}. in
 
33177
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
33178
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
33179
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
33180
  esac;;
 
33181
esac
 
33182
case $ac_abs_builddir in
 
33183
.) ac_abs_srcdir=$ac_srcdir;;
 
33184
*)
 
33185
  case $ac_srcdir in
 
33186
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
33187
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
33188
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
33189
  esac;;
 
33190
esac
 
33191
case $ac_abs_builddir in
 
33192
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
33193
*)
 
33194
  case $ac_top_srcdir in
 
33195
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
33196
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
33197
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
33198
  esac;;
 
33199
esac
 
33200
 
 
33201
 
 
33202
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
33203
echo "$as_me: executing $ac_dest commands" >&6;}
 
33204
  case $ac_dest in
 
33205
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
33206
  # Strip MF so we end up with the name of the file.
 
33207
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
33208
  # Check whether this is an Automake generated Makefile or not.
 
33209
  # We used to match only the files named `Makefile.in', but
 
33210
  # some people rename them; so instead we look at the file content.
 
33211
  # Grep'ing the first line is not enough: some people post-process
 
33212
  # each Makefile.in and add a new line on top of each file to say so.
 
33213
  # So let's grep whole file.
 
33214
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
33215
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
33216
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33217
         X"$mf" : 'X\(//\)[^/]' \| \
 
33218
         X"$mf" : 'X\(//\)$' \| \
 
33219
         X"$mf" : 'X\(/\)' \| \
 
33220
         .     : '\(.\)' 2>/dev/null ||
 
33221
echo X"$mf" |
 
33222
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33223
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33224
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33225
          /^X\(\/\).*/{ s//\1/; q; }
 
33226
          s/.*/./; q'`
 
33227
  else
 
33228
    continue
 
33229
  fi
 
33230
  # Extract the definition of DEPDIR, am__include, and am__quote
 
33231
  # from the Makefile without running `make'.
 
33232
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
33233
  test -z "$DEPDIR" && continue
 
33234
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
33235
  test -z "am__include" && continue
 
33236
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
33237
  # When using ansi2knr, U may be empty or an underscore; expand it
 
33238
  U=`sed -n 's/^U = //p' < "$mf"`
 
33239
  # Find all dependency output files, they are included files with
 
33240
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
33241
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
33242
  # expansion.
 
33243
  for file in `sed -n "
 
33244
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
33245
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
33246
    # Make sure the directory exists.
 
33247
    test -f "$dirpart/$file" && continue
 
33248
    fdir=`(dirname "$file") 2>/dev/null ||
 
33249
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33250
         X"$file" : 'X\(//\)[^/]' \| \
 
33251
         X"$file" : 'X\(//\)$' \| \
 
33252
         X"$file" : 'X\(/\)' \| \
 
33253
         .     : '\(.\)' 2>/dev/null ||
 
33254
echo X"$file" |
 
33255
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33256
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33257
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33258
          /^X\(\/\).*/{ s//\1/; q; }
 
33259
          s/.*/./; q'`
 
33260
    { if $as_mkdir_p; then
 
33261
    mkdir -p $dirpart/$fdir
 
33262
  else
 
33263
    as_dir=$dirpart/$fdir
 
33264
    as_dirs=
 
33265
    while test ! -d "$as_dir"; do
 
33266
      as_dirs="$as_dir $as_dirs"
 
33267
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
33268
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33269
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
33270
         X"$as_dir" : 'X\(//\)$' \| \
 
33271
         X"$as_dir" : 'X\(/\)' \| \
 
33272
         .     : '\(.\)' 2>/dev/null ||
 
33273
echo X"$as_dir" |
 
33274
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33275
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33276
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33277
          /^X\(\/\).*/{ s//\1/; q; }
 
33278
          s/.*/./; q'`
 
33279
    done
 
33280
    test ! -n "$as_dirs" || mkdir $as_dirs
 
33281
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
33282
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
33283
   { (exit 1); exit 1; }; }; }
 
33284
 
 
33285
    # echo "creating $dirpart/$file"
 
33286
    echo '# dummy' > "$dirpart/$file"
 
33287
  done
 
33288
done
 
33289
 ;;
 
33290
  esac
 
33291
done
 
33292
_ACEOF
 
33293
 
 
33294
cat >>$CONFIG_STATUS <<\_ACEOF
 
33295
 
 
33296
{ (exit 0); exit 0; }
 
33297
_ACEOF
 
33298
if test "x$with_fast_perl" = "xyes"; then    
 
33299
  perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS    \
 
33300
    || mv $CONFIG_STATUS.bak $CONFIG_STATUS    
 
33301
  rm -f $CONFIG_STATUS.bak
 
33302
fi    
 
33303
chmod +x $CONFIG_STATUS
 
33304
ac_clean_files=$ac_clean_files_save
 
33305
 
 
33306
 
 
33307
# configure is writing to config.log, and then calls config.status.
 
33308
# config.status does its own redirection, appending to config.log.
 
33309
# Unfortunately, on DOS this fails, as config.log is still kept open
 
33310
# by configure, so config.status won't be able to write to it; its
 
33311
# output is simply discarded.  So we exec the FD to /dev/null,
 
33312
# effectively closing config.log, so it can be properly (re)opened and
 
33313
# appended to by config.status.  When coming back to configure, we
 
33314
# need to make the FD available again.
 
33315
if test "$no_create" != yes; then
 
33316
  ac_cs_success=:
 
33317
  ac_config_status_args=
 
33318
  test "$silent" = yes &&
 
33319
    ac_config_status_args="$ac_config_status_args --quiet"
 
33320
  exec 5>/dev/null
 
33321
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
33322
  exec 5>>config.log
 
33323
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
33324
  # would make configure fail if this is the last instruction.
 
33325
  $ac_cs_success || { (exit 1); exit 1; }
 
33326
fi
 
33327
 
 
33328
# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
 
33329
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
 
33330
  # And if so, warn when they don't match
 
33331
  if test "$kde_libs_prefix" != "$given_prefix"; then
 
33332
    # And if kde doesn't know about the prefix yet
 
33333
    echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
 
33334
    if test $? -ne 0; then
 
33335
      echo ""
 
33336
      echo "Warning: you chose to install this package in $given_prefix,"
 
33337
      echo "but KDE was found in $kde_libs_prefix."
 
33338
      echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
 
33339
      echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
 
33340
      echo "Then restart KDE."
 
33341
      echo ""
 
33342
    fi
 
33343
  fi
 
33344
fi
 
33345
 
 
33346
if test "$all_tests" = "bad"; then
 
33347
  if test ! "$cache_file" = "/dev/null"; then
 
33348
    echo ""
 
33349
    echo "Please remove the file $cache_file after changing your setup"
 
33350
    echo "so that configure will find the changes next time."
 
33351
    echo ""
 
33352
  fi
 
33353
else
 
33354
  echo ""
 
33355
  echo "Good - your configure finished. Start make now"
 
33356
  echo ""
 
33357
fi