~ubuntu-branches/ubuntu/quantal/zfs-fuse/quantal

« back to all changes in this revision

Viewing changes to src/lib/libumem/configure

  • Committer: Bazaar Package Importer
  • Author(s): Mike Hommey, Mike Hommey, Seth Heeren
  • Date: 2010-06-30 18:03:52 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100630180352-d3jq25ytbcl23q3y
Tags: 0.6.9-1
* New upstream release.

[ Mike Hommey ]
* debian/control:
  - Build depend on libssl-dev and libattr1-dev, now required to build.
  - Build depend on docbook-xml to avoid xsltproc I/O error loading
    docbook DTD.
  - Add suggestions for a NFS server and kpartx.
* debian/man/*, debian/copyright, debian/rules: Remove manual pages, they
  are now shipped upstream.
* debian/copyright: Change download link.
* src/SConstruct:
  - Add an optim option to the build system.
  - Add support for DESTDIR.
  - Force debug=1 to mean optim, no strip, no debug.
  - Use -ffunction-sections, -fdata-sections, and --gc-sections flags to
    reduce the binary sizes.
* src/lib/libumem/SConscript: Cleanup src/lib/libumem when cleaning up
  build directory.
* src/cmd/*/SConscript: Don't link zfs, zpool and zdb against libssl.
* src/lib/libumem/SConscript: Only build static libumem.
* src/lib/libumem/sol_compat.h:
  - Add atomic cas support for sparc.
  - Use atomic functions from libsolcompat in libumem on unsupported
    platforms.
* debian/rules:
  - Set optimization level in build system according to DEB_BUILD_OPTIONS.
  - Build with debug=1 to have unstripped binaries ; dh_strip will do the
    right thing.
  - Don't depend on the local location of the docbook XSLT stylesheets.
    Use the catalogged url in place of the full path.
  - Don't clean src/.sconsign.dblite and src/path.pyc.
  - Set all destination directories when installing with scons.
  - Install bash completion and zfsrc files.
  - Don't use scons cache when building.
* debian/prerm: Remove /var/lib/zfs/zpool.cache in prerm.
* debian/dirs: Create /etc/bash_completion.d.
* debian/watch: Fix watch file.
* debian/rules, debian/control, debian/compat: Switch to dh.
* debian/README.Debian: Update README.Debian.
* debian/zfs-fuse.man.xml: Update zfs-fuse manual page.
* debian/zfs-fuse.init: Start sharing datasets marked as such at daemon
  startup.
* debian/rules, debian/control: Use config.guess and config.sub from
  autotools-dev.

[ Seth Heeren ]
* debian/zfs-fuse.man.xml:
  Added notes on the precedence, zfsrc, commandline, initscript vs.
  /etc/default/zfs-fuse on some systems.
* debian/zfs-fuse.init, debian/zfs-fuse.default: Deprecating DAEMON_OPTS.
* debian/zfs-fuse.init:
  - Removing import -a -f.
  - Removing the now unnecessary 'sleep 2'.
  - Extended shutdown wait to allow for zfs-fuse daemon's own shutdown
    timeouts.
  - Re-ordered dubious PATH setting.
* debian/zfs-fuse.init: Move existing zpool.cache to new location if
  possible.

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 for umem 1.0.1.
 
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
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
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='umem'
 
423
PACKAGE_TARNAME='umem'
 
424
PACKAGE_VERSION='1.0.1'
 
425
PACKAGE_STRING='umem 1.0.1'
 
426
PACKAGE_BUGREPORT=''
 
427
 
 
428
# Factoring default headers for most tests.
 
429
ac_includes_default="\
 
430
#include <stdio.h>
 
431
#if HAVE_SYS_TYPES_H
 
432
# include <sys/types.h>
 
433
#endif
 
434
#if HAVE_SYS_STAT_H
 
435
# include <sys/stat.h>
 
436
#endif
 
437
#if STDC_HEADERS
 
438
# include <stdlib.h>
 
439
# include <stddef.h>
 
440
#else
 
441
# if HAVE_STDLIB_H
 
442
#  include <stdlib.h>
 
443
# endif
 
444
#endif
 
445
#if HAVE_STRING_H
 
446
# if !STDC_HEADERS && HAVE_MEMORY_H
 
447
#  include <memory.h>
 
448
# endif
 
449
# include <string.h>
 
450
#endif
 
451
#if HAVE_STRINGS_H
 
452
# include <strings.h>
 
453
#endif
 
454
#if HAVE_INTTYPES_H
 
455
# include <inttypes.h>
 
456
#else
 
457
# if HAVE_STDINT_H
 
458
#  include <stdint.h>
 
459
# endif
 
460
#endif
 
461
#if HAVE_UNISTD_H
 
462
# include <unistd.h>
 
463
#endif"
 
464
 
 
465
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 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 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 CCAS CCASFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
 
466
ac_subst_files=''
 
467
 
 
468
# Initialize some variables set by options.
 
469
ac_init_help=
 
470
ac_init_version=false
 
471
# The variables have the same names as the options, with
 
472
# dashes changed to underlines.
 
473
cache_file=/dev/null
 
474
exec_prefix=NONE
 
475
no_create=
 
476
no_recursion=
 
477
prefix=NONE
 
478
program_prefix=NONE
 
479
program_suffix=NONE
 
480
program_transform_name=s,x,x,
 
481
silent=
 
482
site=
 
483
srcdir=
 
484
verbose=
 
485
x_includes=NONE
 
486
x_libraries=NONE
 
487
 
 
488
# Installation directory options.
 
489
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
490
# and all the variables that are supposed to be based on exec_prefix
 
491
# by default will actually change.
 
492
# Use braces instead of parens because sh, perl, etc. also accept them.
 
493
bindir='${exec_prefix}/bin'
 
494
sbindir='${exec_prefix}/sbin'
 
495
libexecdir='${exec_prefix}/libexec'
 
496
datadir='${prefix}/share'
 
497
sysconfdir='${prefix}/etc'
 
498
sharedstatedir='${prefix}/com'
 
499
localstatedir='${prefix}/var'
 
500
libdir='${exec_prefix}/lib'
 
501
includedir='${prefix}/include'
 
502
oldincludedir='/usr/include'
 
503
infodir='${prefix}/info'
 
504
mandir='${prefix}/man'
 
505
 
 
506
ac_prev=
 
507
for ac_option
 
508
do
 
509
  # If the previous option needs an argument, assign it.
 
510
  if test -n "$ac_prev"; then
 
511
    eval "$ac_prev=\$ac_option"
 
512
    ac_prev=
 
513
    continue
 
514
  fi
 
515
 
 
516
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
517
 
 
518
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
519
 
 
520
  case $ac_option in
 
521
 
 
522
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
523
    ac_prev=bindir ;;
 
524
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
525
    bindir=$ac_optarg ;;
 
526
 
 
527
  -build | --build | --buil | --bui | --bu)
 
528
    ac_prev=build_alias ;;
 
529
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
530
    build_alias=$ac_optarg ;;
 
531
 
 
532
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
533
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
534
    ac_prev=cache_file ;;
 
535
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
536
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
537
    cache_file=$ac_optarg ;;
 
538
 
 
539
  --config-cache | -C)
 
540
    cache_file=config.cache ;;
 
541
 
 
542
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
543
    ac_prev=datadir ;;
 
544
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
545
  | --da=*)
 
546
    datadir=$ac_optarg ;;
 
547
 
 
548
  -disable-* | --disable-*)
 
549
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
550
    # Reject names that are not valid shell variable names.
 
551
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
552
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
553
   { (exit 1); exit 1; }; }
 
554
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
555
    eval "enable_$ac_feature=no" ;;
 
556
 
 
557
  -enable-* | --enable-*)
 
558
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
559
    # Reject names that are not valid shell variable names.
 
560
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
561
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
562
   { (exit 1); exit 1; }; }
 
563
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
564
    case $ac_option in
 
565
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
566
      *) ac_optarg=yes ;;
 
567
    esac
 
568
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
569
 
 
570
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
571
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
572
  | --exec | --exe | --ex)
 
573
    ac_prev=exec_prefix ;;
 
574
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
575
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
576
  | --exec=* | --exe=* | --ex=*)
 
577
    exec_prefix=$ac_optarg ;;
 
578
 
 
579
  -gas | --gas | --ga | --g)
 
580
    # Obsolete; use --with-gas.
 
581
    with_gas=yes ;;
 
582
 
 
583
  -help | --help | --hel | --he | -h)
 
584
    ac_init_help=long ;;
 
585
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
586
    ac_init_help=recursive ;;
 
587
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
588
    ac_init_help=short ;;
 
589
 
 
590
  -host | --host | --hos | --ho)
 
591
    ac_prev=host_alias ;;
 
592
  -host=* | --host=* | --hos=* | --ho=*)
 
593
    host_alias=$ac_optarg ;;
 
594
 
 
595
  -includedir | --includedir | --includedi | --included | --include \
 
596
  | --includ | --inclu | --incl | --inc)
 
597
    ac_prev=includedir ;;
 
598
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
599
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
600
    includedir=$ac_optarg ;;
 
601
 
 
602
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
603
    ac_prev=infodir ;;
 
604
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
605
    infodir=$ac_optarg ;;
 
606
 
 
607
  -libdir | --libdir | --libdi | --libd)
 
608
    ac_prev=libdir ;;
 
609
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
610
    libdir=$ac_optarg ;;
 
611
 
 
612
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
613
  | --libexe | --libex | --libe)
 
614
    ac_prev=libexecdir ;;
 
615
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
616
  | --libexe=* | --libex=* | --libe=*)
 
617
    libexecdir=$ac_optarg ;;
 
618
 
 
619
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
620
  | --localstate | --localstat | --localsta | --localst \
 
621
  | --locals | --local | --loca | --loc | --lo)
 
622
    ac_prev=localstatedir ;;
 
623
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
624
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
625
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
626
    localstatedir=$ac_optarg ;;
 
627
 
 
628
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
629
    ac_prev=mandir ;;
 
630
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
631
    mandir=$ac_optarg ;;
 
632
 
 
633
  -nfp | --nfp | --nf)
 
634
    # Obsolete; use --without-fp.
 
635
    with_fp=no ;;
 
636
 
 
637
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
638
  | --no-cr | --no-c | -n)
 
639
    no_create=yes ;;
 
640
 
 
641
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
642
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
643
    no_recursion=yes ;;
 
644
 
 
645
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
646
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
647
  | --oldin | --oldi | --old | --ol | --o)
 
648
    ac_prev=oldincludedir ;;
 
649
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
650
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
651
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
652
    oldincludedir=$ac_optarg ;;
 
653
 
 
654
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
655
    ac_prev=prefix ;;
 
656
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
657
    prefix=$ac_optarg ;;
 
658
 
 
659
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
660
  | --program-pre | --program-pr | --program-p)
 
661
    ac_prev=program_prefix ;;
 
662
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
663
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
664
    program_prefix=$ac_optarg ;;
 
665
 
 
666
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
667
  | --program-suf | --program-su | --program-s)
 
668
    ac_prev=program_suffix ;;
 
669
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
670
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
671
    program_suffix=$ac_optarg ;;
 
672
 
 
673
  -program-transform-name | --program-transform-name \
 
674
  | --program-transform-nam | --program-transform-na \
 
675
  | --program-transform-n | --program-transform- \
 
676
  | --program-transform | --program-transfor \
 
677
  | --program-transfo | --program-transf \
 
678
  | --program-trans | --program-tran \
 
679
  | --progr-tra | --program-tr | --program-t)
 
680
    ac_prev=program_transform_name ;;
 
681
  -program-transform-name=* | --program-transform-name=* \
 
682
  | --program-transform-nam=* | --program-transform-na=* \
 
683
  | --program-transform-n=* | --program-transform-=* \
 
684
  | --program-transform=* | --program-transfor=* \
 
685
  | --program-transfo=* | --program-transf=* \
 
686
  | --program-trans=* | --program-tran=* \
 
687
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
688
    program_transform_name=$ac_optarg ;;
 
689
 
 
690
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
691
  | -silent | --silent | --silen | --sile | --sil)
 
692
    silent=yes ;;
 
693
 
 
694
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
695
    ac_prev=sbindir ;;
 
696
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
697
  | --sbi=* | --sb=*)
 
698
    sbindir=$ac_optarg ;;
 
699
 
 
700
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
701
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
702
  | --sharedst | --shareds | --shared | --share | --shar \
 
703
  | --sha | --sh)
 
704
    ac_prev=sharedstatedir ;;
 
705
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
706
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
707
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
708
  | --sha=* | --sh=*)
 
709
    sharedstatedir=$ac_optarg ;;
 
710
 
 
711
  -site | --site | --sit)
 
712
    ac_prev=site ;;
 
713
  -site=* | --site=* | --sit=*)
 
714
    site=$ac_optarg ;;
 
715
 
 
716
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
717
    ac_prev=srcdir ;;
 
718
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
719
    srcdir=$ac_optarg ;;
 
720
 
 
721
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
722
  | --syscon | --sysco | --sysc | --sys | --sy)
 
723
    ac_prev=sysconfdir ;;
 
724
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
725
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
726
    sysconfdir=$ac_optarg ;;
 
727
 
 
728
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
729
    ac_prev=target_alias ;;
 
730
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
731
    target_alias=$ac_optarg ;;
 
732
 
 
733
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
734
    verbose=yes ;;
 
735
 
 
736
  -version | --version | --versio | --versi | --vers | -V)
 
737
    ac_init_version=: ;;
 
738
 
 
739
  -with-* | --with-*)
 
740
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
741
    # Reject names that are not valid shell variable names.
 
742
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
743
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
744
   { (exit 1); exit 1; }; }
 
745
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
746
    case $ac_option in
 
747
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
748
      *) ac_optarg=yes ;;
 
749
    esac
 
750
    eval "with_$ac_package='$ac_optarg'" ;;
 
751
 
 
752
  -without-* | --without-*)
 
753
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
754
    # Reject names that are not valid shell variable names.
 
755
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
756
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
757
   { (exit 1); exit 1; }; }
 
758
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
759
    eval "with_$ac_package=no" ;;
 
760
 
 
761
  --x)
 
762
    # Obsolete; use --with-x.
 
763
    with_x=yes ;;
 
764
 
 
765
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
766
  | --x-incl | --x-inc | --x-in | --x-i)
 
767
    ac_prev=x_includes ;;
 
768
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
769
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
770
    x_includes=$ac_optarg ;;
 
771
 
 
772
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
773
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
774
    ac_prev=x_libraries ;;
 
775
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
776
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
777
    x_libraries=$ac_optarg ;;
 
778
 
 
779
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
780
Try \`$0 --help' for more information." >&2
 
781
   { (exit 1); exit 1; }; }
 
782
    ;;
 
783
 
 
784
  *=*)
 
785
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
786
    # Reject names that are not valid shell variable names.
 
787
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
788
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
789
   { (exit 1); exit 1; }; }
 
790
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
791
    eval "$ac_envvar='$ac_optarg'"
 
792
    export $ac_envvar ;;
 
793
 
 
794
  *)
 
795
    # FIXME: should be removed in autoconf 3.0.
 
796
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
797
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
798
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
799
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
800
    ;;
 
801
 
 
802
  esac
 
803
done
 
804
 
 
805
if test -n "$ac_prev"; then
 
806
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
807
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
808
   { (exit 1); exit 1; }; }
 
809
fi
 
810
 
 
811
# Be sure to have absolute paths.
 
812
for ac_var in exec_prefix prefix
 
813
do
 
814
  eval ac_val=$`echo $ac_var`
 
815
  case $ac_val in
 
816
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
817
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
818
   { (exit 1); exit 1; }; };;
 
819
  esac
 
820
done
 
821
 
 
822
# Be sure to have absolute paths.
 
823
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
824
              localstatedir libdir includedir oldincludedir infodir mandir
 
825
do
 
826
  eval ac_val=$`echo $ac_var`
 
827
  case $ac_val in
 
828
    [\\/$]* | ?:[\\/]* ) ;;
 
829
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
830
   { (exit 1); exit 1; }; };;
 
831
  esac
 
832
done
 
833
 
 
834
# There might be people who depend on the old broken behavior: `$host'
 
835
# used to hold the argument of --host etc.
 
836
# FIXME: To remove some day.
 
837
build=$build_alias
 
838
host=$host_alias
 
839
target=$target_alias
 
840
 
 
841
# FIXME: To remove some day.
 
842
if test "x$host_alias" != x; then
 
843
  if test "x$build_alias" = x; then
 
844
    cross_compiling=maybe
 
845
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
846
    If a cross compiler is detected then cross compile mode will be used." >&2
 
847
  elif test "x$build_alias" != "x$host_alias"; then
 
848
    cross_compiling=yes
 
849
  fi
 
850
fi
 
851
 
 
852
ac_tool_prefix=
 
853
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
854
 
 
855
test "$silent" = yes && exec 6>/dev/null
 
856
 
 
857
 
 
858
# Find the source files, if location was not specified.
 
859
if test -z "$srcdir"; then
 
860
  ac_srcdir_defaulted=yes
 
861
  # Try the directory containing this script, then its parent.
 
862
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
863
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
864
         X"$0" : 'X\(//\)[^/]' \| \
 
865
         X"$0" : 'X\(//\)$' \| \
 
866
         X"$0" : 'X\(/\)' \| \
 
867
         .     : '\(.\)' 2>/dev/null ||
 
868
echo X"$0" |
 
869
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
870
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
871
          /^X\(\/\/\)$/{ s//\1/; q; }
 
872
          /^X\(\/\).*/{ s//\1/; q; }
 
873
          s/.*/./; q'`
 
874
  srcdir=$ac_confdir
 
875
  if test ! -r $srcdir/$ac_unique_file; then
 
876
    srcdir=..
 
877
  fi
 
878
else
 
879
  ac_srcdir_defaulted=no
 
880
fi
 
881
if test ! -r $srcdir/$ac_unique_file; then
 
882
  if test "$ac_srcdir_defaulted" = yes; then
 
883
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
884
   { (exit 1); exit 1; }; }
 
885
  else
 
886
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
887
   { (exit 1); exit 1; }; }
 
888
  fi
 
889
fi
 
890
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
891
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
892
   { (exit 1); exit 1; }; }
 
893
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
894
ac_env_build_alias_set=${build_alias+set}
 
895
ac_env_build_alias_value=$build_alias
 
896
ac_cv_env_build_alias_set=${build_alias+set}
 
897
ac_cv_env_build_alias_value=$build_alias
 
898
ac_env_host_alias_set=${host_alias+set}
 
899
ac_env_host_alias_value=$host_alias
 
900
ac_cv_env_host_alias_set=${host_alias+set}
 
901
ac_cv_env_host_alias_value=$host_alias
 
902
ac_env_target_alias_set=${target_alias+set}
 
903
ac_env_target_alias_value=$target_alias
 
904
ac_cv_env_target_alias_set=${target_alias+set}
 
905
ac_cv_env_target_alias_value=$target_alias
 
906
ac_env_CC_set=${CC+set}
 
907
ac_env_CC_value=$CC
 
908
ac_cv_env_CC_set=${CC+set}
 
909
ac_cv_env_CC_value=$CC
 
910
ac_env_CFLAGS_set=${CFLAGS+set}
 
911
ac_env_CFLAGS_value=$CFLAGS
 
912
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
913
ac_cv_env_CFLAGS_value=$CFLAGS
 
914
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
915
ac_env_LDFLAGS_value=$LDFLAGS
 
916
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
917
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
918
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
919
ac_env_CPPFLAGS_value=$CPPFLAGS
 
920
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
921
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
922
ac_env_CCAS_set=${CCAS+set}
 
923
ac_env_CCAS_value=$CCAS
 
924
ac_cv_env_CCAS_set=${CCAS+set}
 
925
ac_cv_env_CCAS_value=$CCAS
 
926
ac_env_CCASFLAGS_set=${CCASFLAGS+set}
 
927
ac_env_CCASFLAGS_value=$CCASFLAGS
 
928
ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
 
929
ac_cv_env_CCASFLAGS_value=$CCASFLAGS
 
930
ac_env_CPP_set=${CPP+set}
 
931
ac_env_CPP_value=$CPP
 
932
ac_cv_env_CPP_set=${CPP+set}
 
933
ac_cv_env_CPP_value=$CPP
 
934
ac_env_CXX_set=${CXX+set}
 
935
ac_env_CXX_value=$CXX
 
936
ac_cv_env_CXX_set=${CXX+set}
 
937
ac_cv_env_CXX_value=$CXX
 
938
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
939
ac_env_CXXFLAGS_value=$CXXFLAGS
 
940
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
941
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
942
ac_env_CXXCPP_set=${CXXCPP+set}
 
943
ac_env_CXXCPP_value=$CXXCPP
 
944
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
945
ac_cv_env_CXXCPP_value=$CXXCPP
 
946
ac_env_F77_set=${F77+set}
 
947
ac_env_F77_value=$F77
 
948
ac_cv_env_F77_set=${F77+set}
 
949
ac_cv_env_F77_value=$F77
 
950
ac_env_FFLAGS_set=${FFLAGS+set}
 
951
ac_env_FFLAGS_value=$FFLAGS
 
952
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
953
ac_cv_env_FFLAGS_value=$FFLAGS
 
954
 
 
955
#
 
956
# Report the --help message.
 
957
#
 
958
if test "$ac_init_help" = "long"; then
 
959
  # Omit some internal or obsolete options to make the list less imposing.
 
960
  # This message is too long to be a string in the A/UX 3.1 sh.
 
961
  cat <<_ACEOF
 
962
\`configure' configures umem 1.0.1 to adapt to many kinds of systems.
 
963
 
 
964
Usage: $0 [OPTION]... [VAR=VALUE]...
 
965
 
 
966
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
967
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
968
 
 
969
Defaults for the options are specified in brackets.
 
970
 
 
971
Configuration:
 
972
  -h, --help              display this help and exit
 
973
      --help=short        display options specific to this package
 
974
      --help=recursive    display the short help of all the included packages
 
975
  -V, --version           display version information and exit
 
976
  -q, --quiet, --silent   do not print \`checking...' messages
 
977
      --cache-file=FILE   cache test results in FILE [disabled]
 
978
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
979
  -n, --no-create         do not create output files
 
980
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
981
 
 
982
_ACEOF
 
983
 
 
984
  cat <<_ACEOF
 
985
Installation directories:
 
986
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
987
                          [$ac_default_prefix]
 
988
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
989
                          [PREFIX]
 
990
 
 
991
By default, \`make install' will install all the files in
 
992
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
993
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
994
for instance \`--prefix=\$HOME'.
 
995
 
 
996
For better control, use the options below.
 
997
 
 
998
Fine tuning of the installation directories:
 
999
  --bindir=DIR           user executables [EPREFIX/bin]
 
1000
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1001
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1002
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
1003
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1004
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1005
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1006
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1007
  --includedir=DIR       C header files [PREFIX/include]
 
1008
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1009
  --infodir=DIR          info documentation [PREFIX/info]
 
1010
  --mandir=DIR           man documentation [PREFIX/man]
 
1011
_ACEOF
 
1012
 
 
1013
  cat <<\_ACEOF
 
1014
 
 
1015
Program names:
 
1016
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1017
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1018
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1019
 
 
1020
System types:
 
1021
  --build=BUILD     configure for building on BUILD [guessed]
 
1022
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1023
_ACEOF
 
1024
fi
 
1025
 
 
1026
if test -n "$ac_init_help"; then
 
1027
  case $ac_init_help in
 
1028
     short | recursive ) echo "Configuration of umem 1.0.1:";;
 
1029
   esac
 
1030
  cat <<\_ACEOF
 
1031
 
 
1032
Optional Features:
 
1033
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1034
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1035
  --disable-dependency-tracking  speeds up one-time build
 
1036
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1037
  --enable-shared[=PKGS]
 
1038
                          build shared libraries [default=yes]
 
1039
  --enable-static[=PKGS]
 
1040
                          build static libraries [default=yes]
 
1041
  --enable-fast-install[=PKGS]
 
1042
                          optimize for fast installation [default=yes]
 
1043
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1044
 
 
1045
Optional Packages:
 
1046
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1047
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1048
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1049
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1050
                          both]
 
1051
  --with-tags[=TAGS]
 
1052
                          include additional configurations [automatic]
 
1053
 
 
1054
Some influential environment variables:
 
1055
  CC          C compiler command
 
1056
  CFLAGS      C compiler flags
 
1057
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1058
              nonstandard directory <lib dir>
 
1059
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1060
              headers in a nonstandard directory <include dir>
 
1061
  CCAS        assembler compiler command (defaults to CC)
 
1062
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
 
1063
  CPP         C preprocessor
 
1064
  CXX         C++ compiler command
 
1065
  CXXFLAGS    C++ compiler flags
 
1066
  CXXCPP      C++ preprocessor
 
1067
  F77         Fortran 77 compiler command
 
1068
  FFLAGS      Fortran 77 compiler flags
 
1069
 
 
1070
Use these variables to override the choices made by `configure' or to help
 
1071
it to find libraries and programs with nonstandard names/locations.
 
1072
 
 
1073
_ACEOF
 
1074
fi
 
1075
 
 
1076
if test "$ac_init_help" = "recursive"; then
 
1077
  # If there are subdirs, report their specific --help.
 
1078
  ac_popdir=`pwd`
 
1079
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1080
    test -d $ac_dir || continue
 
1081
    ac_builddir=.
 
1082
 
 
1083
if test "$ac_dir" != .; then
 
1084
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1085
  # A "../" for each directory in $ac_dir_suffix.
 
1086
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1087
else
 
1088
  ac_dir_suffix= ac_top_builddir=
 
1089
fi
 
1090
 
 
1091
case $srcdir in
 
1092
  .)  # No --srcdir option.  We are building in place.
 
1093
    ac_srcdir=.
 
1094
    if test -z "$ac_top_builddir"; then
 
1095
       ac_top_srcdir=.
 
1096
    else
 
1097
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1098
    fi ;;
 
1099
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1100
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1101
    ac_top_srcdir=$srcdir ;;
 
1102
  *) # Relative path.
 
1103
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1104
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1105
esac
 
1106
 
 
1107
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1108
# the directories may not exist.
 
1109
case `pwd` in
 
1110
.) ac_abs_builddir="$ac_dir";;
 
1111
*)
 
1112
  case "$ac_dir" in
 
1113
  .) ac_abs_builddir=`pwd`;;
 
1114
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1115
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1116
  esac;;
 
1117
esac
 
1118
case $ac_abs_builddir in
 
1119
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1120
*)
 
1121
  case ${ac_top_builddir}. in
 
1122
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1123
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1124
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1125
  esac;;
 
1126
esac
 
1127
case $ac_abs_builddir in
 
1128
.) ac_abs_srcdir=$ac_srcdir;;
 
1129
*)
 
1130
  case $ac_srcdir in
 
1131
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1132
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1133
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1134
  esac;;
 
1135
esac
 
1136
case $ac_abs_builddir in
 
1137
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1138
*)
 
1139
  case $ac_top_srcdir in
 
1140
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1141
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1142
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1143
  esac;;
 
1144
esac
 
1145
 
 
1146
    cd $ac_dir
 
1147
    # Check for guested configure; otherwise get Cygnus style configure.
 
1148
    if test -f $ac_srcdir/configure.gnu; then
 
1149
      echo
 
1150
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1151
    elif test -f $ac_srcdir/configure; then
 
1152
      echo
 
1153
      $SHELL $ac_srcdir/configure  --help=recursive
 
1154
    elif test -f $ac_srcdir/configure.ac ||
 
1155
           test -f $ac_srcdir/configure.in; then
 
1156
      echo
 
1157
      $ac_configure --help
 
1158
    else
 
1159
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1160
    fi
 
1161
    cd $ac_popdir
 
1162
  done
 
1163
fi
 
1164
 
 
1165
test -n "$ac_init_help" && exit 0
 
1166
if $ac_init_version; then
 
1167
  cat <<\_ACEOF
 
1168
umem configure 1.0.1
 
1169
generated by GNU Autoconf 2.59
 
1170
 
 
1171
Copyright (C) 2003 Free Software Foundation, Inc.
 
1172
This configure script is free software; the Free Software Foundation
 
1173
gives unlimited permission to copy, distribute and modify it.
 
1174
_ACEOF
 
1175
  exit 0
 
1176
fi
 
1177
exec 5>config.log
 
1178
cat >&5 <<_ACEOF
 
1179
This file contains any messages produced by compilers while
 
1180
running configure, to aid debugging if configure makes a mistake.
 
1181
 
 
1182
It was created by umem $as_me 1.0.1, which was
 
1183
generated by GNU Autoconf 2.59.  Invocation command line was
 
1184
 
 
1185
  $ $0 $@
 
1186
 
 
1187
_ACEOF
 
1188
{
 
1189
cat <<_ASUNAME
 
1190
## --------- ##
 
1191
## Platform. ##
 
1192
## --------- ##
 
1193
 
 
1194
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1195
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1196
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1197
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1198
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1199
 
 
1200
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1201
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1202
 
 
1203
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1204
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1205
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1206
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1207
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1208
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1209
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1210
 
 
1211
_ASUNAME
 
1212
 
 
1213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1214
for as_dir in $PATH
 
1215
do
 
1216
  IFS=$as_save_IFS
 
1217
  test -z "$as_dir" && as_dir=.
 
1218
  echo "PATH: $as_dir"
 
1219
done
 
1220
 
 
1221
} >&5
 
1222
 
 
1223
cat >&5 <<_ACEOF
 
1224
 
 
1225
 
 
1226
## ----------- ##
 
1227
## Core tests. ##
 
1228
## ----------- ##
 
1229
 
 
1230
_ACEOF
 
1231
 
 
1232
 
 
1233
# Keep a trace of the command line.
 
1234
# Strip out --no-create and --no-recursion so they do not pile up.
 
1235
# Strip out --silent because we don't want to record it for future runs.
 
1236
# Also quote any args containing shell meta-characters.
 
1237
# Make two passes to allow for proper duplicate-argument suppression.
 
1238
ac_configure_args=
 
1239
ac_configure_args0=
 
1240
ac_configure_args1=
 
1241
ac_sep=
 
1242
ac_must_keep_next=false
 
1243
for ac_pass in 1 2
 
1244
do
 
1245
  for ac_arg
 
1246
  do
 
1247
    case $ac_arg in
 
1248
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1249
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1250
    | -silent | --silent | --silen | --sile | --sil)
 
1251
      continue ;;
 
1252
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1253
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1254
    esac
 
1255
    case $ac_pass in
 
1256
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1257
    2)
 
1258
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1259
      if test $ac_must_keep_next = true; then
 
1260
        ac_must_keep_next=false # Got value, back to normal.
 
1261
      else
 
1262
        case $ac_arg in
 
1263
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1264
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1265
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1266
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1267
            case "$ac_configure_args0 " in
 
1268
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1269
            esac
 
1270
            ;;
 
1271
          -* ) ac_must_keep_next=true ;;
 
1272
        esac
 
1273
      fi
 
1274
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1275
      # Get rid of the leading space.
 
1276
      ac_sep=" "
 
1277
      ;;
 
1278
    esac
 
1279
  done
 
1280
done
 
1281
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1282
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1283
 
 
1284
# When interrupted or exit'd, cleanup temporary files, and complete
 
1285
# config.log.  We remove comments because anyway the quotes in there
 
1286
# would cause problems or look ugly.
 
1287
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1288
# such as our DU 5.0 friend, will then `close' the trap.
 
1289
trap 'exit_status=$?
 
1290
  # Save into config.log some information that might help in debugging.
 
1291
  {
 
1292
    echo
 
1293
 
 
1294
    cat <<\_ASBOX
 
1295
## ---------------- ##
 
1296
## Cache variables. ##
 
1297
## ---------------- ##
 
1298
_ASBOX
 
1299
    echo
 
1300
    # The following way of writing the cache mishandles newlines in values,
 
1301
{
 
1302
  (set) 2>&1 |
 
1303
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1304
    *ac_space=\ *)
 
1305
      sed -n \
 
1306
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1307
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1308
      ;;
 
1309
    *)
 
1310
      sed -n \
 
1311
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1312
      ;;
 
1313
    esac;
 
1314
}
 
1315
    echo
 
1316
 
 
1317
    cat <<\_ASBOX
 
1318
## ----------------- ##
 
1319
## Output variables. ##
 
1320
## ----------------- ##
 
1321
_ASBOX
 
1322
    echo
 
1323
    for ac_var in $ac_subst_vars
 
1324
    do
 
1325
      eval ac_val=$`echo $ac_var`
 
1326
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1327
    done | sort
 
1328
    echo
 
1329
 
 
1330
    if test -n "$ac_subst_files"; then
 
1331
      cat <<\_ASBOX
 
1332
## ------------- ##
 
1333
## Output files. ##
 
1334
## ------------- ##
 
1335
_ASBOX
 
1336
      echo
 
1337
      for ac_var in $ac_subst_files
 
1338
      do
 
1339
        eval ac_val=$`echo $ac_var`
 
1340
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1341
      done | sort
 
1342
      echo
 
1343
    fi
 
1344
 
 
1345
    if test -s confdefs.h; then
 
1346
      cat <<\_ASBOX
 
1347
## ----------- ##
 
1348
## confdefs.h. ##
 
1349
## ----------- ##
 
1350
_ASBOX
 
1351
      echo
 
1352
      sed "/^$/d" confdefs.h | sort
 
1353
      echo
 
1354
    fi
 
1355
    test "$ac_signal" != 0 &&
 
1356
      echo "$as_me: caught signal $ac_signal"
 
1357
    echo "$as_me: exit $exit_status"
 
1358
  } >&5
 
1359
  rm -f core *.core &&
 
1360
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1361
    exit $exit_status
 
1362
     ' 0
 
1363
for ac_signal in 1 2 13 15; do
 
1364
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1365
done
 
1366
ac_signal=0
 
1367
 
 
1368
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1369
rm -rf conftest* confdefs.h
 
1370
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1371
echo >confdefs.h
 
1372
 
 
1373
# Predefined preprocessor variables.
 
1374
 
 
1375
cat >>confdefs.h <<_ACEOF
 
1376
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1377
_ACEOF
 
1378
 
 
1379
 
 
1380
cat >>confdefs.h <<_ACEOF
 
1381
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1382
_ACEOF
 
1383
 
 
1384
 
 
1385
cat >>confdefs.h <<_ACEOF
 
1386
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1387
_ACEOF
 
1388
 
 
1389
 
 
1390
cat >>confdefs.h <<_ACEOF
 
1391
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1392
_ACEOF
 
1393
 
 
1394
 
 
1395
cat >>confdefs.h <<_ACEOF
 
1396
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1397
_ACEOF
 
1398
 
 
1399
 
 
1400
# Let the site file select an alternate cache file if it wants to.
 
1401
# Prefer explicitly selected file to automatically selected ones.
 
1402
if test -z "$CONFIG_SITE"; then
 
1403
  if test "x$prefix" != xNONE; then
 
1404
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1405
  else
 
1406
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1407
  fi
 
1408
fi
 
1409
for ac_site_file in $CONFIG_SITE; do
 
1410
  if test -r "$ac_site_file"; then
 
1411
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1412
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1413
    sed 's/^/| /' "$ac_site_file" >&5
 
1414
    . "$ac_site_file"
 
1415
  fi
 
1416
done
 
1417
 
 
1418
if test -r "$cache_file"; then
 
1419
  # Some versions of bash will fail to source /dev/null (special
 
1420
  # files actually), so we avoid doing that.
 
1421
  if test -f "$cache_file"; then
 
1422
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1423
echo "$as_me: loading cache $cache_file" >&6;}
 
1424
    case $cache_file in
 
1425
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1426
      *)                      . ./$cache_file;;
 
1427
    esac
 
1428
  fi
 
1429
else
 
1430
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1431
echo "$as_me: creating cache $cache_file" >&6;}
 
1432
  >$cache_file
 
1433
fi
 
1434
 
 
1435
# Check that the precious variables saved in the cache have kept the same
 
1436
# value.
 
1437
ac_cache_corrupted=false
 
1438
for ac_var in `(set) 2>&1 |
 
1439
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1440
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1441
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1442
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1443
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1444
  case $ac_old_set,$ac_new_set in
 
1445
    set,)
 
1446
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1447
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1448
      ac_cache_corrupted=: ;;
 
1449
    ,set)
 
1450
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1451
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1452
      ac_cache_corrupted=: ;;
 
1453
    ,);;
 
1454
    *)
 
1455
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1456
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1457
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1458
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1459
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1460
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1461
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1462
        ac_cache_corrupted=:
 
1463
      fi;;
 
1464
  esac
 
1465
  # Pass precious variables to config.status.
 
1466
  if test "$ac_new_set" = set; then
 
1467
    case $ac_new_val in
 
1468
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1469
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1470
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1471
    esac
 
1472
    case " $ac_configure_args " in
 
1473
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1474
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1475
    esac
 
1476
  fi
 
1477
done
 
1478
if $ac_cache_corrupted; then
 
1479
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1480
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1481
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1482
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1483
   { (exit 1); exit 1; }; }
 
1484
fi
 
1485
 
 
1486
ac_ext=c
 
1487
ac_cpp='$CPP $CPPFLAGS'
 
1488
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1489
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1490
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
am__api_version="1.9"
 
1519
ac_aux_dir=
 
1520
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1521
  if test -f $ac_dir/install-sh; then
 
1522
    ac_aux_dir=$ac_dir
 
1523
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1524
    break
 
1525
  elif test -f $ac_dir/install.sh; then
 
1526
    ac_aux_dir=$ac_dir
 
1527
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1528
    break
 
1529
  elif test -f $ac_dir/shtool; then
 
1530
    ac_aux_dir=$ac_dir
 
1531
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1532
    break
 
1533
  fi
 
1534
done
 
1535
if test -z "$ac_aux_dir"; then
 
1536
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1537
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1538
   { (exit 1); exit 1; }; }
 
1539
fi
 
1540
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1541
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1542
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1543
 
 
1544
# Find a good install program.  We prefer a C program (faster),
 
1545
# so one script is as good as another.  But avoid the broken or
 
1546
# incompatible versions:
 
1547
# SysV /etc/install, /usr/sbin/install
 
1548
# SunOS /usr/etc/install
 
1549
# IRIX /sbin/install
 
1550
# AIX /bin/install
 
1551
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1552
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1553
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1554
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1555
# OS/2's system install, which has a completely different semantic
 
1556
# ./install, which can be erroneously created by make from ./install.sh.
 
1557
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1558
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1559
if test -z "$INSTALL"; then
 
1560
if test "${ac_cv_path_install+set}" = set; then
 
1561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1562
else
 
1563
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1564
for as_dir in $PATH
 
1565
do
 
1566
  IFS=$as_save_IFS
 
1567
  test -z "$as_dir" && as_dir=.
 
1568
  # Account for people who put trailing slashes in PATH elements.
 
1569
case $as_dir/ in
 
1570
  ./ | .// | /cC/* | \
 
1571
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1572
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1573
  /usr/ucb/* ) ;;
 
1574
  *)
 
1575
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1576
    # Don't use installbsd from OSF since it installs stuff as root
 
1577
    # by default.
 
1578
    for ac_prog in ginstall scoinst install; do
 
1579
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1580
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1581
          if test $ac_prog = install &&
 
1582
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1583
            # AIX install.  It has an incompatible calling convention.
 
1584
            :
 
1585
          elif test $ac_prog = install &&
 
1586
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1587
            # program-specific install script used by HP pwplus--don't use.
 
1588
            :
 
1589
          else
 
1590
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1591
            break 3
 
1592
          fi
 
1593
        fi
 
1594
      done
 
1595
    done
 
1596
    ;;
 
1597
esac
 
1598
done
 
1599
 
 
1600
 
 
1601
fi
 
1602
  if test "${ac_cv_path_install+set}" = set; then
 
1603
    INSTALL=$ac_cv_path_install
 
1604
  else
 
1605
    # As a last resort, use the slow shell script.  We don't cache a
 
1606
    # path for INSTALL within a source directory, because that will
 
1607
    # break other packages using the cache if that directory is
 
1608
    # removed, or if the path is relative.
 
1609
    INSTALL=$ac_install_sh
 
1610
  fi
 
1611
fi
 
1612
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1613
echo "${ECHO_T}$INSTALL" >&6
 
1614
 
 
1615
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1616
# It thinks the first close brace ends the variable substitution.
 
1617
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1618
 
 
1619
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1620
 
 
1621
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1622
 
 
1623
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1624
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1625
# Just in case
 
1626
sleep 1
 
1627
echo timestamp > conftest.file
 
1628
# Do `set' in a subshell so we don't clobber the current shell's
 
1629
# arguments.  Must try -L first in case configure is actually a
 
1630
# symlink; some systems play weird games with the mod time of symlinks
 
1631
# (eg FreeBSD returns the mod time of the symlink's containing
 
1632
# directory).
 
1633
if (
 
1634
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1635
   if test "$*" = "X"; then
 
1636
      # -L didn't work.
 
1637
      set X `ls -t $srcdir/configure conftest.file`
 
1638
   fi
 
1639
   rm -f conftest.file
 
1640
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1641
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1642
 
 
1643
      # If neither matched, then we have a broken ls.  This can happen
 
1644
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1645
      # broken ls alias from the environment.  This has actually
 
1646
      # happened.  Such a system could not be considered "sane".
 
1647
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1648
alias in your environment" >&5
 
1649
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1650
alias in your environment" >&2;}
 
1651
   { (exit 1); exit 1; }; }
 
1652
   fi
 
1653
 
 
1654
   test "$2" = conftest.file
 
1655
   )
 
1656
then
 
1657
   # Ok.
 
1658
   :
 
1659
else
 
1660
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1661
Check your system clock" >&5
 
1662
echo "$as_me: error: newly created file is older than distributed files!
 
1663
Check your system clock" >&2;}
 
1664
   { (exit 1); exit 1; }; }
 
1665
fi
 
1666
echo "$as_me:$LINENO: result: yes" >&5
 
1667
echo "${ECHO_T}yes" >&6
 
1668
test "$program_prefix" != NONE &&
 
1669
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1670
# Use a double $ so make ignores it.
 
1671
test "$program_suffix" != NONE &&
 
1672
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1673
# Double any \ or $.  echo might interpret backslashes.
 
1674
# By default was `s,x,x', remove it if useless.
 
1675
cat <<\_ACEOF >conftest.sed
 
1676
s/[\\$]/&&/g;s/;s,x,x,$//
 
1677
_ACEOF
 
1678
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1679
rm conftest.sed
 
1680
 
 
1681
# expand $ac_aux_dir to an absolute path
 
1682
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1683
 
 
1684
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1685
# Use eval to expand $SHELL
 
1686
if eval "$MISSING --run true"; then
 
1687
  am_missing_run="$MISSING --run "
 
1688
else
 
1689
  am_missing_run=
 
1690
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1691
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1692
fi
 
1693
 
 
1694
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1695
  # We used to keeping the `.' as first argument, in order to
 
1696
  # allow $(mkdir_p) to be used without argument.  As in
 
1697
  #   $(mkdir_p) $(somedir)
 
1698
  # where $(somedir) is conditionally defined.  However this is wrong
 
1699
  # for two reasons:
 
1700
  #  1. if the package is installed by a user who cannot write `.'
 
1701
  #     make install will fail,
 
1702
  #  2. the above comment should most certainly read
 
1703
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1704
  #     so it does not work when $(somedir) is undefined and
 
1705
  #     $(DESTDIR) is not.
 
1706
  #  To support the latter case, we have to write
 
1707
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1708
  #  so the `.' trick is pointless.
 
1709
  mkdir_p='mkdir -p --'
 
1710
else
 
1711
  # On NextStep and OpenStep, the `mkdir' command does not
 
1712
  # recognize any option.  It will interpret all options as
 
1713
  # directories to create, and then abort because `.' already
 
1714
  # exists.
 
1715
  for d in ./-p ./--version;
 
1716
  do
 
1717
    test -d $d && rmdir $d
 
1718
  done
 
1719
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1720
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1721
    mkdir_p='$(mkinstalldirs)'
 
1722
  else
 
1723
    mkdir_p='$(install_sh) -d'
 
1724
  fi
 
1725
fi
 
1726
 
 
1727
for ac_prog in gawk mawk nawk awk
 
1728
do
 
1729
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1730
set dummy $ac_prog; ac_word=$2
 
1731
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1732
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1733
if test "${ac_cv_prog_AWK+set}" = set; then
 
1734
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1735
else
 
1736
  if test -n "$AWK"; then
 
1737
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1738
else
 
1739
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1740
for as_dir in $PATH
 
1741
do
 
1742
  IFS=$as_save_IFS
 
1743
  test -z "$as_dir" && as_dir=.
 
1744
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1745
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1746
    ac_cv_prog_AWK="$ac_prog"
 
1747
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1748
    break 2
 
1749
  fi
 
1750
done
 
1751
done
 
1752
 
 
1753
fi
 
1754
fi
 
1755
AWK=$ac_cv_prog_AWK
 
1756
if test -n "$AWK"; then
 
1757
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1758
echo "${ECHO_T}$AWK" >&6
 
1759
else
 
1760
  echo "$as_me:$LINENO: result: no" >&5
 
1761
echo "${ECHO_T}no" >&6
 
1762
fi
 
1763
 
 
1764
  test -n "$AWK" && break
 
1765
done
 
1766
 
 
1767
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1768
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1769
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1770
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1771
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1772
else
 
1773
  cat >conftest.make <<\_ACEOF
 
1774
all:
 
1775
        @echo 'ac_maketemp="$(MAKE)"'
 
1776
_ACEOF
 
1777
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1778
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1779
if test -n "$ac_maketemp"; then
 
1780
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1781
else
 
1782
  eval ac_cv_prog_make_${ac_make}_set=no
 
1783
fi
 
1784
rm -f conftest.make
 
1785
fi
 
1786
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1787
  echo "$as_me:$LINENO: result: yes" >&5
 
1788
echo "${ECHO_T}yes" >&6
 
1789
  SET_MAKE=
 
1790
else
 
1791
  echo "$as_me:$LINENO: result: no" >&5
 
1792
echo "${ECHO_T}no" >&6
 
1793
  SET_MAKE="MAKE=${MAKE-make}"
 
1794
fi
 
1795
 
 
1796
rm -rf .tst 2>/dev/null
 
1797
mkdir .tst 2>/dev/null
 
1798
if test -d .tst; then
 
1799
  am__leading_dot=.
 
1800
else
 
1801
  am__leading_dot=_
 
1802
fi
 
1803
rmdir .tst 2>/dev/null
 
1804
 
 
1805
# test to see if srcdir already configured
 
1806
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1807
   test -f $srcdir/config.status; then
 
1808
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1809
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1810
   { (exit 1); exit 1; }; }
 
1811
fi
 
1812
 
 
1813
# test whether we have cygpath
 
1814
if test -z "$CYGPATH_W"; then
 
1815
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1816
    CYGPATH_W='cygpath -w'
 
1817
  else
 
1818
    CYGPATH_W=echo
 
1819
  fi
 
1820
fi
 
1821
 
 
1822
 
 
1823
# Define the identity of the package.
 
1824
 PACKAGE='umem'
 
1825
 VERSION='1.0.1'
 
1826
 
 
1827
 
 
1828
cat >>confdefs.h <<_ACEOF
 
1829
#define PACKAGE "$PACKAGE"
 
1830
_ACEOF
 
1831
 
 
1832
 
 
1833
cat >>confdefs.h <<_ACEOF
 
1834
#define VERSION "$VERSION"
 
1835
_ACEOF
 
1836
 
 
1837
# Some tools Automake needs.
 
1838
 
 
1839
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1840
 
 
1841
 
 
1842
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1843
 
 
1844
 
 
1845
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1846
 
 
1847
 
 
1848
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1849
 
 
1850
 
 
1851
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1852
 
 
1853
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1854
 
 
1855
# Installed binaries are usually stripped using `strip' when the user
 
1856
# run `make install-strip'.  However `strip' might not be the right
 
1857
# tool to use in cross-compilation environments, therefore Automake
 
1858
# will honor the `STRIP' environment variable to overrule this program.
 
1859
if test "$cross_compiling" != no; then
 
1860
  if test -n "$ac_tool_prefix"; then
 
1861
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1862
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1863
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1864
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1865
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1866
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1867
else
 
1868
  if test -n "$STRIP"; then
 
1869
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1870
else
 
1871
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1872
for as_dir in $PATH
 
1873
do
 
1874
  IFS=$as_save_IFS
 
1875
  test -z "$as_dir" && as_dir=.
 
1876
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1877
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1878
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1879
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1880
    break 2
 
1881
  fi
 
1882
done
 
1883
done
 
1884
 
 
1885
fi
 
1886
fi
 
1887
STRIP=$ac_cv_prog_STRIP
 
1888
if test -n "$STRIP"; then
 
1889
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1890
echo "${ECHO_T}$STRIP" >&6
 
1891
else
 
1892
  echo "$as_me:$LINENO: result: no" >&5
 
1893
echo "${ECHO_T}no" >&6
 
1894
fi
 
1895
 
 
1896
fi
 
1897
if test -z "$ac_cv_prog_STRIP"; then
 
1898
  ac_ct_STRIP=$STRIP
 
1899
  # Extract the first word of "strip", so it can be a program name with args.
 
1900
set dummy strip; ac_word=$2
 
1901
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1902
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1903
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1904
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1905
else
 
1906
  if test -n "$ac_ct_STRIP"; then
 
1907
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1908
else
 
1909
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1910
for as_dir in $PATH
 
1911
do
 
1912
  IFS=$as_save_IFS
 
1913
  test -z "$as_dir" && as_dir=.
 
1914
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1915
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1916
    ac_cv_prog_ac_ct_STRIP="strip"
 
1917
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1918
    break 2
 
1919
  fi
 
1920
done
 
1921
done
 
1922
 
 
1923
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1924
fi
 
1925
fi
 
1926
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1927
if test -n "$ac_ct_STRIP"; then
 
1928
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1929
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1930
else
 
1931
  echo "$as_me:$LINENO: result: no" >&5
 
1932
echo "${ECHO_T}no" >&6
 
1933
fi
 
1934
 
 
1935
  STRIP=$ac_ct_STRIP
 
1936
else
 
1937
  STRIP="$ac_cv_prog_STRIP"
 
1938
fi
 
1939
 
 
1940
fi
 
1941
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1942
 
 
1943
# We need awk for the "check" target.  The system "awk" is bad on
 
1944
# some platforms.
 
1945
# Always define AMTAR for backward compatibility.
 
1946
 
 
1947
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1948
 
 
1949
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1950
 
 
1951
 
 
1952
 
 
1953
 
 
1954
 
 
1955
 
 
1956
ac_ext=c
 
1957
ac_cpp='$CPP $CPPFLAGS'
 
1958
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1959
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1960
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1961
if test -n "$ac_tool_prefix"; then
 
1962
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1963
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1964
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1965
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1966
if test "${ac_cv_prog_CC+set}" = set; then
 
1967
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1968
else
 
1969
  if test -n "$CC"; then
 
1970
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1971
else
 
1972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1973
for as_dir in $PATH
 
1974
do
 
1975
  IFS=$as_save_IFS
 
1976
  test -z "$as_dir" && as_dir=.
 
1977
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1978
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1979
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1980
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1981
    break 2
 
1982
  fi
 
1983
done
 
1984
done
 
1985
 
 
1986
fi
 
1987
fi
 
1988
CC=$ac_cv_prog_CC
 
1989
if test -n "$CC"; then
 
1990
  echo "$as_me:$LINENO: result: $CC" >&5
 
1991
echo "${ECHO_T}$CC" >&6
 
1992
else
 
1993
  echo "$as_me:$LINENO: result: no" >&5
 
1994
echo "${ECHO_T}no" >&6
 
1995
fi
 
1996
 
 
1997
fi
 
1998
if test -z "$ac_cv_prog_CC"; then
 
1999
  ac_ct_CC=$CC
 
2000
  # Extract the first word of "gcc", so it can be a program name with args.
 
2001
set dummy gcc; ac_word=$2
 
2002
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2003
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2004
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2006
else
 
2007
  if test -n "$ac_ct_CC"; then
 
2008
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2009
else
 
2010
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2011
for as_dir in $PATH
 
2012
do
 
2013
  IFS=$as_save_IFS
 
2014
  test -z "$as_dir" && as_dir=.
 
2015
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2016
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2017
    ac_cv_prog_ac_ct_CC="gcc"
 
2018
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2019
    break 2
 
2020
  fi
 
2021
done
 
2022
done
 
2023
 
 
2024
fi
 
2025
fi
 
2026
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2027
if test -n "$ac_ct_CC"; then
 
2028
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2029
echo "${ECHO_T}$ac_ct_CC" >&6
 
2030
else
 
2031
  echo "$as_me:$LINENO: result: no" >&5
 
2032
echo "${ECHO_T}no" >&6
 
2033
fi
 
2034
 
 
2035
  CC=$ac_ct_CC
 
2036
else
 
2037
  CC="$ac_cv_prog_CC"
 
2038
fi
 
2039
 
 
2040
if test -z "$CC"; then
 
2041
  if test -n "$ac_tool_prefix"; then
 
2042
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2043
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2044
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2045
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2046
if test "${ac_cv_prog_CC+set}" = set; then
 
2047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2048
else
 
2049
  if test -n "$CC"; then
 
2050
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2051
else
 
2052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2053
for as_dir in $PATH
 
2054
do
 
2055
  IFS=$as_save_IFS
 
2056
  test -z "$as_dir" && as_dir=.
 
2057
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2058
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2059
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2060
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2061
    break 2
 
2062
  fi
 
2063
done
 
2064
done
 
2065
 
 
2066
fi
 
2067
fi
 
2068
CC=$ac_cv_prog_CC
 
2069
if test -n "$CC"; then
 
2070
  echo "$as_me:$LINENO: result: $CC" >&5
 
2071
echo "${ECHO_T}$CC" >&6
 
2072
else
 
2073
  echo "$as_me:$LINENO: result: no" >&5
 
2074
echo "${ECHO_T}no" >&6
 
2075
fi
 
2076
 
 
2077
fi
 
2078
if test -z "$ac_cv_prog_CC"; then
 
2079
  ac_ct_CC=$CC
 
2080
  # Extract the first word of "cc", so it can be a program name with args.
 
2081
set dummy cc; ac_word=$2
 
2082
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2083
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2084
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2085
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2086
else
 
2087
  if test -n "$ac_ct_CC"; then
 
2088
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2089
else
 
2090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2091
for as_dir in $PATH
 
2092
do
 
2093
  IFS=$as_save_IFS
 
2094
  test -z "$as_dir" && as_dir=.
 
2095
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2096
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2097
    ac_cv_prog_ac_ct_CC="cc"
 
2098
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2099
    break 2
 
2100
  fi
 
2101
done
 
2102
done
 
2103
 
 
2104
fi
 
2105
fi
 
2106
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2107
if test -n "$ac_ct_CC"; then
 
2108
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2109
echo "${ECHO_T}$ac_ct_CC" >&6
 
2110
else
 
2111
  echo "$as_me:$LINENO: result: no" >&5
 
2112
echo "${ECHO_T}no" >&6
 
2113
fi
 
2114
 
 
2115
  CC=$ac_ct_CC
 
2116
else
 
2117
  CC="$ac_cv_prog_CC"
 
2118
fi
 
2119
 
 
2120
fi
 
2121
if test -z "$CC"; then
 
2122
  # Extract the first word of "cc", so it can be a program name with args.
 
2123
set dummy cc; ac_word=$2
 
2124
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2125
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2126
if test "${ac_cv_prog_CC+set}" = set; then
 
2127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2128
else
 
2129
  if test -n "$CC"; then
 
2130
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2131
else
 
2132
  ac_prog_rejected=no
 
2133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2134
for as_dir in $PATH
 
2135
do
 
2136
  IFS=$as_save_IFS
 
2137
  test -z "$as_dir" && as_dir=.
 
2138
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2139
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2140
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2141
       ac_prog_rejected=yes
 
2142
       continue
 
2143
     fi
 
2144
    ac_cv_prog_CC="cc"
 
2145
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2146
    break 2
 
2147
  fi
 
2148
done
 
2149
done
 
2150
 
 
2151
if test $ac_prog_rejected = yes; then
 
2152
  # We found a bogon in the path, so make sure we never use it.
 
2153
  set dummy $ac_cv_prog_CC
 
2154
  shift
 
2155
  if test $# != 0; then
 
2156
    # We chose a different compiler from the bogus one.
 
2157
    # However, it has the same basename, so the bogon will be chosen
 
2158
    # first if we set CC to just the basename; use the full file name.
 
2159
    shift
 
2160
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2161
  fi
 
2162
fi
 
2163
fi
 
2164
fi
 
2165
CC=$ac_cv_prog_CC
 
2166
if test -n "$CC"; then
 
2167
  echo "$as_me:$LINENO: result: $CC" >&5
 
2168
echo "${ECHO_T}$CC" >&6
 
2169
else
 
2170
  echo "$as_me:$LINENO: result: no" >&5
 
2171
echo "${ECHO_T}no" >&6
 
2172
fi
 
2173
 
 
2174
fi
 
2175
if test -z "$CC"; then
 
2176
  if test -n "$ac_tool_prefix"; then
 
2177
  for ac_prog in cl
 
2178
  do
 
2179
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2180
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2181
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2182
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2183
if test "${ac_cv_prog_CC+set}" = set; then
 
2184
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2185
else
 
2186
  if test -n "$CC"; then
 
2187
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2188
else
 
2189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2190
for as_dir in $PATH
 
2191
do
 
2192
  IFS=$as_save_IFS
 
2193
  test -z "$as_dir" && as_dir=.
 
2194
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2195
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2196
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2197
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2198
    break 2
 
2199
  fi
 
2200
done
 
2201
done
 
2202
 
 
2203
fi
 
2204
fi
 
2205
CC=$ac_cv_prog_CC
 
2206
if test -n "$CC"; then
 
2207
  echo "$as_me:$LINENO: result: $CC" >&5
 
2208
echo "${ECHO_T}$CC" >&6
 
2209
else
 
2210
  echo "$as_me:$LINENO: result: no" >&5
 
2211
echo "${ECHO_T}no" >&6
 
2212
fi
 
2213
 
 
2214
    test -n "$CC" && break
 
2215
  done
 
2216
fi
 
2217
if test -z "$CC"; then
 
2218
  ac_ct_CC=$CC
 
2219
  for ac_prog in cl
 
2220
do
 
2221
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2222
set dummy $ac_prog; ac_word=$2
 
2223
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2224
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2225
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2226
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2227
else
 
2228
  if test -n "$ac_ct_CC"; then
 
2229
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2230
else
 
2231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2232
for as_dir in $PATH
 
2233
do
 
2234
  IFS=$as_save_IFS
 
2235
  test -z "$as_dir" && as_dir=.
 
2236
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2237
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2238
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2239
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2240
    break 2
 
2241
  fi
 
2242
done
 
2243
done
 
2244
 
 
2245
fi
 
2246
fi
 
2247
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2248
if test -n "$ac_ct_CC"; then
 
2249
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2250
echo "${ECHO_T}$ac_ct_CC" >&6
 
2251
else
 
2252
  echo "$as_me:$LINENO: result: no" >&5
 
2253
echo "${ECHO_T}no" >&6
 
2254
fi
 
2255
 
 
2256
  test -n "$ac_ct_CC" && break
 
2257
done
 
2258
 
 
2259
  CC=$ac_ct_CC
 
2260
fi
 
2261
 
 
2262
fi
 
2263
 
 
2264
 
 
2265
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2266
See \`config.log' for more details." >&5
 
2267
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2268
See \`config.log' for more details." >&2;}
 
2269
   { (exit 1); exit 1; }; }
 
2270
 
 
2271
# Provide some information about the compiler.
 
2272
echo "$as_me:$LINENO:" \
 
2273
     "checking for C compiler version" >&5
 
2274
ac_compiler=`set X $ac_compile; echo $2`
 
2275
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2276
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2277
  ac_status=$?
 
2278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2279
  (exit $ac_status); }
 
2280
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2281
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2282
  ac_status=$?
 
2283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2284
  (exit $ac_status); }
 
2285
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2286
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2287
  ac_status=$?
 
2288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2289
  (exit $ac_status); }
 
2290
 
 
2291
cat >conftest.$ac_ext <<_ACEOF
 
2292
/* confdefs.h.  */
 
2293
_ACEOF
 
2294
cat confdefs.h >>conftest.$ac_ext
 
2295
cat >>conftest.$ac_ext <<_ACEOF
 
2296
/* end confdefs.h.  */
 
2297
 
 
2298
int
 
2299
main ()
 
2300
{
 
2301
 
 
2302
  ;
 
2303
  return 0;
 
2304
}
 
2305
_ACEOF
 
2306
ac_clean_files_save=$ac_clean_files
 
2307
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2308
# Try to create an executable without -o first, disregard a.out.
 
2309
# It will help us diagnose broken compilers, and finding out an intuition
 
2310
# of exeext.
 
2311
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2312
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2313
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2314
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2315
  (eval $ac_link_default) 2>&5
 
2316
  ac_status=$?
 
2317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2318
  (exit $ac_status); }; then
 
2319
  # Find the output, starting from the most likely.  This scheme is
 
2320
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2321
# resort.
 
2322
 
 
2323
# Be careful to initialize this variable, since it used to be cached.
 
2324
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2325
ac_cv_exeext=
 
2326
# b.out is created by i960 compilers.
 
2327
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2328
do
 
2329
  test -f "$ac_file" || continue
 
2330
  case $ac_file in
 
2331
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2332
        ;;
 
2333
    conftest.$ac_ext )
 
2334
        # This is the source file.
 
2335
        ;;
 
2336
    [ab].out )
 
2337
        # We found the default executable, but exeext='' is most
 
2338
        # certainly right.
 
2339
        break;;
 
2340
    *.* )
 
2341
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2342
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2343
        # but it would be cool to find out if it's true.  Does anybody
 
2344
        # maintain Libtool? --akim.
 
2345
        export ac_cv_exeext
 
2346
        break;;
 
2347
    * )
 
2348
        break;;
 
2349
  esac
 
2350
done
 
2351
else
 
2352
  echo "$as_me: failed program was:" >&5
 
2353
sed 's/^/| /' conftest.$ac_ext >&5
 
2354
 
 
2355
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2356
See \`config.log' for more details." >&5
 
2357
echo "$as_me: error: C compiler cannot create executables
 
2358
See \`config.log' for more details." >&2;}
 
2359
   { (exit 77); exit 77; }; }
 
2360
fi
 
2361
 
 
2362
ac_exeext=$ac_cv_exeext
 
2363
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2364
echo "${ECHO_T}$ac_file" >&6
 
2365
 
 
2366
# Check the compiler produces executables we can run.  If not, either
 
2367
# the compiler is broken, or we cross compile.
 
2368
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2369
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2370
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2371
# If not cross compiling, check that we can run a simple program.
 
2372
if test "$cross_compiling" != yes; then
 
2373
  if { ac_try='./$ac_file'
 
2374
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2375
  (eval $ac_try) 2>&5
 
2376
  ac_status=$?
 
2377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2378
  (exit $ac_status); }; }; then
 
2379
    cross_compiling=no
 
2380
  else
 
2381
    if test "$cross_compiling" = maybe; then
 
2382
        cross_compiling=yes
 
2383
    else
 
2384
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2385
If you meant to cross compile, use \`--host'.
 
2386
See \`config.log' for more details." >&5
 
2387
echo "$as_me: error: cannot run C compiled programs.
 
2388
If you meant to cross compile, use \`--host'.
 
2389
See \`config.log' for more details." >&2;}
 
2390
   { (exit 1); exit 1; }; }
 
2391
    fi
 
2392
  fi
 
2393
fi
 
2394
echo "$as_me:$LINENO: result: yes" >&5
 
2395
echo "${ECHO_T}yes" >&6
 
2396
 
 
2397
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2398
ac_clean_files=$ac_clean_files_save
 
2399
# Check the compiler produces executables we can run.  If not, either
 
2400
# the compiler is broken, or we cross compile.
 
2401
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2402
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2403
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2404
echo "${ECHO_T}$cross_compiling" >&6
 
2405
 
 
2406
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2407
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2408
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2409
  (eval $ac_link) 2>&5
 
2410
  ac_status=$?
 
2411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2412
  (exit $ac_status); }; then
 
2413
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2414
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2415
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2416
# `rm'.
 
2417
for ac_file in conftest.exe conftest conftest.*; do
 
2418
  test -f "$ac_file" || continue
 
2419
  case $ac_file in
 
2420
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2421
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2422
          export ac_cv_exeext
 
2423
          break;;
 
2424
    * ) break;;
 
2425
  esac
 
2426
done
 
2427
else
 
2428
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2429
See \`config.log' for more details." >&5
 
2430
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2431
See \`config.log' for more details." >&2;}
 
2432
   { (exit 1); exit 1; }; }
 
2433
fi
 
2434
 
 
2435
rm -f conftest$ac_cv_exeext
 
2436
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2437
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2438
 
 
2439
rm -f conftest.$ac_ext
 
2440
EXEEXT=$ac_cv_exeext
 
2441
ac_exeext=$EXEEXT
 
2442
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2443
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2444
if test "${ac_cv_objext+set}" = set; then
 
2445
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2446
else
 
2447
  cat >conftest.$ac_ext <<_ACEOF
 
2448
/* confdefs.h.  */
 
2449
_ACEOF
 
2450
cat confdefs.h >>conftest.$ac_ext
 
2451
cat >>conftest.$ac_ext <<_ACEOF
 
2452
/* end confdefs.h.  */
 
2453
 
 
2454
int
 
2455
main ()
 
2456
{
 
2457
 
 
2458
  ;
 
2459
  return 0;
 
2460
}
 
2461
_ACEOF
 
2462
rm -f conftest.o conftest.obj
 
2463
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2464
  (eval $ac_compile) 2>&5
 
2465
  ac_status=$?
 
2466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2467
  (exit $ac_status); }; then
 
2468
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2469
  case $ac_file in
 
2470
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2471
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2472
       break;;
 
2473
  esac
 
2474
done
 
2475
else
 
2476
  echo "$as_me: failed program was:" >&5
 
2477
sed 's/^/| /' conftest.$ac_ext >&5
 
2478
 
 
2479
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2480
See \`config.log' for more details." >&5
 
2481
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2482
See \`config.log' for more details." >&2;}
 
2483
   { (exit 1); exit 1; }; }
 
2484
fi
 
2485
 
 
2486
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2487
fi
 
2488
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2489
echo "${ECHO_T}$ac_cv_objext" >&6
 
2490
OBJEXT=$ac_cv_objext
 
2491
ac_objext=$OBJEXT
 
2492
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2493
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2494
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2496
else
 
2497
  cat >conftest.$ac_ext <<_ACEOF
 
2498
/* confdefs.h.  */
 
2499
_ACEOF
 
2500
cat confdefs.h >>conftest.$ac_ext
 
2501
cat >>conftest.$ac_ext <<_ACEOF
 
2502
/* end confdefs.h.  */
 
2503
 
 
2504
int
 
2505
main ()
 
2506
{
 
2507
#ifndef __GNUC__
 
2508
       choke me
 
2509
#endif
 
2510
 
 
2511
  ;
 
2512
  return 0;
 
2513
}
 
2514
_ACEOF
 
2515
rm -f conftest.$ac_objext
 
2516
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2517
  (eval $ac_compile) 2>conftest.er1
 
2518
  ac_status=$?
 
2519
  grep -v '^ *+' conftest.er1 >conftest.err
 
2520
  rm -f conftest.er1
 
2521
  cat conftest.err >&5
 
2522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2523
  (exit $ac_status); } &&
 
2524
         { ac_try='test -z "$ac_c_werror_flag"
 
2525
                         || test ! -s conftest.err'
 
2526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2527
  (eval $ac_try) 2>&5
 
2528
  ac_status=$?
 
2529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2530
  (exit $ac_status); }; } &&
 
2531
         { ac_try='test -s conftest.$ac_objext'
 
2532
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2533
  (eval $ac_try) 2>&5
 
2534
  ac_status=$?
 
2535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2536
  (exit $ac_status); }; }; then
 
2537
  ac_compiler_gnu=yes
 
2538
else
 
2539
  echo "$as_me: failed program was:" >&5
 
2540
sed 's/^/| /' conftest.$ac_ext >&5
 
2541
 
 
2542
ac_compiler_gnu=no
 
2543
fi
 
2544
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2545
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2546
 
 
2547
fi
 
2548
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2549
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2550
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2551
ac_test_CFLAGS=${CFLAGS+set}
 
2552
ac_save_CFLAGS=$CFLAGS
 
2553
CFLAGS="-g"
 
2554
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2555
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2556
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2557
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2558
else
 
2559
  cat >conftest.$ac_ext <<_ACEOF
 
2560
/* confdefs.h.  */
 
2561
_ACEOF
 
2562
cat confdefs.h >>conftest.$ac_ext
 
2563
cat >>conftest.$ac_ext <<_ACEOF
 
2564
/* end confdefs.h.  */
 
2565
 
 
2566
int
 
2567
main ()
 
2568
{
 
2569
 
 
2570
  ;
 
2571
  return 0;
 
2572
}
 
2573
_ACEOF
 
2574
rm -f conftest.$ac_objext
 
2575
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2576
  (eval $ac_compile) 2>conftest.er1
 
2577
  ac_status=$?
 
2578
  grep -v '^ *+' conftest.er1 >conftest.err
 
2579
  rm -f conftest.er1
 
2580
  cat conftest.err >&5
 
2581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2582
  (exit $ac_status); } &&
 
2583
         { ac_try='test -z "$ac_c_werror_flag"
 
2584
                         || test ! -s conftest.err'
 
2585
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2586
  (eval $ac_try) 2>&5
 
2587
  ac_status=$?
 
2588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2589
  (exit $ac_status); }; } &&
 
2590
         { ac_try='test -s conftest.$ac_objext'
 
2591
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2592
  (eval $ac_try) 2>&5
 
2593
  ac_status=$?
 
2594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2595
  (exit $ac_status); }; }; then
 
2596
  ac_cv_prog_cc_g=yes
 
2597
else
 
2598
  echo "$as_me: failed program was:" >&5
 
2599
sed 's/^/| /' conftest.$ac_ext >&5
 
2600
 
 
2601
ac_cv_prog_cc_g=no
 
2602
fi
 
2603
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2604
fi
 
2605
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2606
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2607
if test "$ac_test_CFLAGS" = set; then
 
2608
  CFLAGS=$ac_save_CFLAGS
 
2609
elif test $ac_cv_prog_cc_g = yes; then
 
2610
  if test "$GCC" = yes; then
 
2611
    CFLAGS="-g -O2"
 
2612
  else
 
2613
    CFLAGS="-g"
 
2614
  fi
 
2615
else
 
2616
  if test "$GCC" = yes; then
 
2617
    CFLAGS="-O2"
 
2618
  else
 
2619
    CFLAGS=
 
2620
  fi
 
2621
fi
 
2622
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2623
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2624
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2625
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2626
else
 
2627
  ac_cv_prog_cc_stdc=no
 
2628
ac_save_CC=$CC
 
2629
cat >conftest.$ac_ext <<_ACEOF
 
2630
/* confdefs.h.  */
 
2631
_ACEOF
 
2632
cat confdefs.h >>conftest.$ac_ext
 
2633
cat >>conftest.$ac_ext <<_ACEOF
 
2634
/* end confdefs.h.  */
 
2635
#include <stdarg.h>
 
2636
#include <stdio.h>
 
2637
#include <sys/types.h>
 
2638
#include <sys/stat.h>
 
2639
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2640
struct buf { int x; };
 
2641
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2642
static char *e (p, i)
 
2643
     char **p;
 
2644
     int i;
 
2645
{
 
2646
  return p[i];
 
2647
}
 
2648
static char *f (char * (*g) (char **, int), char **p, ...)
 
2649
{
 
2650
  char *s;
 
2651
  va_list v;
 
2652
  va_start (v,p);
 
2653
  s = g (p, va_arg (v,int));
 
2654
  va_end (v);
 
2655
  return s;
 
2656
}
 
2657
 
 
2658
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2659
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2660
   These don't provoke an error unfortunately, instead are silently treated
 
2661
   as 'x'.  The following induces an error, until -std1 is added to get
 
2662
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2663
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2664
   that's true only with -std1.  */
 
2665
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2666
 
 
2667
int test (int i, double x);
 
2668
struct s1 {int (*f) (int a);};
 
2669
struct s2 {int (*f) (double a);};
 
2670
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2671
int argc;
 
2672
char **argv;
 
2673
int
 
2674
main ()
 
2675
{
 
2676
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2677
  ;
 
2678
  return 0;
 
2679
}
 
2680
_ACEOF
 
2681
# Don't try gcc -ansi; that turns off useful extensions and
 
2682
# breaks some systems' header files.
 
2683
# AIX                   -qlanglvl=ansi
 
2684
# Ultrix and OSF/1      -std1
 
2685
# HP-UX 10.20 and later -Ae
 
2686
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2687
# SVR4                  -Xc -D__EXTENSIONS__
 
2688
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2689
do
 
2690
  CC="$ac_save_CC $ac_arg"
 
2691
  rm -f conftest.$ac_objext
 
2692
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2693
  (eval $ac_compile) 2>conftest.er1
 
2694
  ac_status=$?
 
2695
  grep -v '^ *+' conftest.er1 >conftest.err
 
2696
  rm -f conftest.er1
 
2697
  cat conftest.err >&5
 
2698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2699
  (exit $ac_status); } &&
 
2700
         { ac_try='test -z "$ac_c_werror_flag"
 
2701
                         || test ! -s conftest.err'
 
2702
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2703
  (eval $ac_try) 2>&5
 
2704
  ac_status=$?
 
2705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2706
  (exit $ac_status); }; } &&
 
2707
         { ac_try='test -s conftest.$ac_objext'
 
2708
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2709
  (eval $ac_try) 2>&5
 
2710
  ac_status=$?
 
2711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2712
  (exit $ac_status); }; }; then
 
2713
  ac_cv_prog_cc_stdc=$ac_arg
 
2714
break
 
2715
else
 
2716
  echo "$as_me: failed program was:" >&5
 
2717
sed 's/^/| /' conftest.$ac_ext >&5
 
2718
 
 
2719
fi
 
2720
rm -f conftest.err conftest.$ac_objext
 
2721
done
 
2722
rm -f conftest.$ac_ext conftest.$ac_objext
 
2723
CC=$ac_save_CC
 
2724
 
 
2725
fi
 
2726
 
 
2727
case "x$ac_cv_prog_cc_stdc" in
 
2728
  x|xno)
 
2729
    echo "$as_me:$LINENO: result: none needed" >&5
 
2730
echo "${ECHO_T}none needed" >&6 ;;
 
2731
  *)
 
2732
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2733
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2734
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2735
esac
 
2736
 
 
2737
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2738
# in C++ we need to declare it.  In case someone uses the same compiler
 
2739
# for both compiling C and C++ we need to have the C++ compiler decide
 
2740
# the declaration of exit, since it's the most demanding environment.
 
2741
cat >conftest.$ac_ext <<_ACEOF
 
2742
#ifndef __cplusplus
 
2743
  choke me
 
2744
#endif
 
2745
_ACEOF
 
2746
rm -f conftest.$ac_objext
 
2747
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2748
  (eval $ac_compile) 2>conftest.er1
 
2749
  ac_status=$?
 
2750
  grep -v '^ *+' conftest.er1 >conftest.err
 
2751
  rm -f conftest.er1
 
2752
  cat conftest.err >&5
 
2753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2754
  (exit $ac_status); } &&
 
2755
         { ac_try='test -z "$ac_c_werror_flag"
 
2756
                         || test ! -s conftest.err'
 
2757
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2758
  (eval $ac_try) 2>&5
 
2759
  ac_status=$?
 
2760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2761
  (exit $ac_status); }; } &&
 
2762
         { ac_try='test -s conftest.$ac_objext'
 
2763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2764
  (eval $ac_try) 2>&5
 
2765
  ac_status=$?
 
2766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2767
  (exit $ac_status); }; }; then
 
2768
  for ac_declaration in \
 
2769
   '' \
 
2770
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2771
   'extern "C" void std::exit (int); using std::exit;' \
 
2772
   'extern "C" void exit (int) throw ();' \
 
2773
   'extern "C" void exit (int);' \
 
2774
   'void exit (int);'
 
2775
do
 
2776
  cat >conftest.$ac_ext <<_ACEOF
 
2777
/* confdefs.h.  */
 
2778
_ACEOF
 
2779
cat confdefs.h >>conftest.$ac_ext
 
2780
cat >>conftest.$ac_ext <<_ACEOF
 
2781
/* end confdefs.h.  */
 
2782
$ac_declaration
 
2783
#include <stdlib.h>
 
2784
int
 
2785
main ()
 
2786
{
 
2787
exit (42);
 
2788
  ;
 
2789
  return 0;
 
2790
}
 
2791
_ACEOF
 
2792
rm -f conftest.$ac_objext
 
2793
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2794
  (eval $ac_compile) 2>conftest.er1
 
2795
  ac_status=$?
 
2796
  grep -v '^ *+' conftest.er1 >conftest.err
 
2797
  rm -f conftest.er1
 
2798
  cat conftest.err >&5
 
2799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2800
  (exit $ac_status); } &&
 
2801
         { ac_try='test -z "$ac_c_werror_flag"
 
2802
                         || test ! -s conftest.err'
 
2803
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2804
  (eval $ac_try) 2>&5
 
2805
  ac_status=$?
 
2806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2807
  (exit $ac_status); }; } &&
 
2808
         { ac_try='test -s conftest.$ac_objext'
 
2809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2810
  (eval $ac_try) 2>&5
 
2811
  ac_status=$?
 
2812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2813
  (exit $ac_status); }; }; then
 
2814
  :
 
2815
else
 
2816
  echo "$as_me: failed program was:" >&5
 
2817
sed 's/^/| /' conftest.$ac_ext >&5
 
2818
 
 
2819
continue
 
2820
fi
 
2821
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2822
  cat >conftest.$ac_ext <<_ACEOF
 
2823
/* confdefs.h.  */
 
2824
_ACEOF
 
2825
cat confdefs.h >>conftest.$ac_ext
 
2826
cat >>conftest.$ac_ext <<_ACEOF
 
2827
/* end confdefs.h.  */
 
2828
$ac_declaration
 
2829
int
 
2830
main ()
 
2831
{
 
2832
exit (42);
 
2833
  ;
 
2834
  return 0;
 
2835
}
 
2836
_ACEOF
 
2837
rm -f conftest.$ac_objext
 
2838
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2839
  (eval $ac_compile) 2>conftest.er1
 
2840
  ac_status=$?
 
2841
  grep -v '^ *+' conftest.er1 >conftest.err
 
2842
  rm -f conftest.er1
 
2843
  cat conftest.err >&5
 
2844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2845
  (exit $ac_status); } &&
 
2846
         { ac_try='test -z "$ac_c_werror_flag"
 
2847
                         || test ! -s conftest.err'
 
2848
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2849
  (eval $ac_try) 2>&5
 
2850
  ac_status=$?
 
2851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2852
  (exit $ac_status); }; } &&
 
2853
         { ac_try='test -s conftest.$ac_objext'
 
2854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2855
  (eval $ac_try) 2>&5
 
2856
  ac_status=$?
 
2857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2858
  (exit $ac_status); }; }; then
 
2859
  break
 
2860
else
 
2861
  echo "$as_me: failed program was:" >&5
 
2862
sed 's/^/| /' conftest.$ac_ext >&5
 
2863
 
 
2864
fi
 
2865
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2866
done
 
2867
rm -f conftest*
 
2868
if test -n "$ac_declaration"; then
 
2869
  echo '#ifdef __cplusplus' >>confdefs.h
 
2870
  echo $ac_declaration      >>confdefs.h
 
2871
  echo '#endif'             >>confdefs.h
 
2872
fi
 
2873
 
 
2874
else
 
2875
  echo "$as_me: failed program was:" >&5
 
2876
sed 's/^/| /' conftest.$ac_ext >&5
 
2877
 
 
2878
fi
 
2879
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2880
ac_ext=c
 
2881
ac_cpp='$CPP $CPPFLAGS'
 
2882
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2883
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2884
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2885
DEPDIR="${am__leading_dot}deps"
 
2886
 
 
2887
          ac_config_commands="$ac_config_commands depfiles"
 
2888
 
 
2889
 
 
2890
am_make=${MAKE-make}
 
2891
cat > confinc << 'END'
 
2892
am__doit:
 
2893
        @echo done
 
2894
.PHONY: am__doit
 
2895
END
 
2896
# If we don't find an include directive, just comment out the code.
 
2897
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2898
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2899
am__include="#"
 
2900
am__quote=
 
2901
_am_result=none
 
2902
# First try GNU make style include.
 
2903
echo "include confinc" > confmf
 
2904
# We grep out `Entering directory' and `Leaving directory'
 
2905
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2906
# In particular we don't look at `^make:' because GNU make might
 
2907
# be invoked under some other name (usually "gmake"), in which
 
2908
# case it prints its new name instead of `make'.
 
2909
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2910
   am__include=include
 
2911
   am__quote=
 
2912
   _am_result=GNU
 
2913
fi
 
2914
# Now try BSD make style include.
 
2915
if test "$am__include" = "#"; then
 
2916
   echo '.include "confinc"' > confmf
 
2917
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2918
      am__include=.include
 
2919
      am__quote="\""
 
2920
      _am_result=BSD
 
2921
   fi
 
2922
fi
 
2923
 
 
2924
 
 
2925
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2926
echo "${ECHO_T}$_am_result" >&6
 
2927
rm -f confinc confmf
 
2928
 
 
2929
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2930
if test "${enable_dependency_tracking+set}" = set; then
 
2931
  enableval="$enable_dependency_tracking"
 
2932
 
 
2933
fi;
 
2934
if test "x$enable_dependency_tracking" != xno; then
 
2935
  am_depcomp="$ac_aux_dir/depcomp"
 
2936
  AMDEPBACKSLASH='\'
 
2937
fi
 
2938
 
 
2939
 
 
2940
if test "x$enable_dependency_tracking" != xno; then
 
2941
  AMDEP_TRUE=
 
2942
  AMDEP_FALSE='#'
 
2943
else
 
2944
  AMDEP_TRUE='#'
 
2945
  AMDEP_FALSE=
 
2946
fi
 
2947
 
 
2948
 
 
2949
 
 
2950
 
 
2951
depcc="$CC"   am_compiler_list=
 
2952
 
 
2953
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2954
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2955
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2957
else
 
2958
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2959
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2960
  # making bogus files that we don't know about and never remove.  For
 
2961
  # instance it was reported that on HP-UX the gcc test will end up
 
2962
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2963
  # in D'.
 
2964
  mkdir conftest.dir
 
2965
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2966
  # using a relative directory.
 
2967
  cp "$am_depcomp" conftest.dir
 
2968
  cd conftest.dir
 
2969
  # We will build objects and dependencies in a subdirectory because
 
2970
  # it helps to detect inapplicable dependency modes.  For instance
 
2971
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
2972
  # side effect of compilation, but ICC will put the dependencies in
 
2973
  # the current directory while Tru64 will put them in the object
 
2974
  # directory.
 
2975
  mkdir sub
 
2976
 
 
2977
  am_cv_CC_dependencies_compiler_type=none
 
2978
  if test "$am_compiler_list" = ""; then
 
2979
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2980
  fi
 
2981
  for depmode in $am_compiler_list; do
 
2982
    # Setup a source with many dependencies, because some compilers
 
2983
    # like to wrap large dependency lists on column 80 (with \), and
 
2984
    # we should not choose a depcomp mode which is confused by this.
 
2985
    #
 
2986
    # We need to recreate these files for each test, as the compiler may
 
2987
    # overwrite some of them when testing with obscure command lines.
 
2988
    # This happens at least with the AIX C compiler.
 
2989
    : > sub/conftest.c
 
2990
    for i in 1 2 3 4 5 6; do
 
2991
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
2992
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
2993
      # Solaris 8's {/usr,}/bin/sh.
 
2994
      touch sub/conftst$i.h
 
2995
    done
 
2996
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
2997
 
 
2998
    case $depmode in
 
2999
    nosideeffect)
 
3000
      # after this tag, mechanisms are not by side-effect, so they'll
 
3001
      # only be used when explicitly requested
 
3002
      if test "x$enable_dependency_tracking" = xyes; then
 
3003
        continue
 
3004
      else
 
3005
        break
 
3006
      fi
 
3007
      ;;
 
3008
    none) break ;;
 
3009
    esac
 
3010
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3011
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3012
    # handle `-M -o', and we need to detect this.
 
3013
    if depmode=$depmode \
 
3014
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3015
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3016
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3017
         >/dev/null 2>conftest.err &&
 
3018
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3019
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3020
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3021
      # icc doesn't choke on unknown options, it will just issue warnings
 
3022
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3023
      # that says an option was ignored or not supported.
 
3024
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3025
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3026
      # The diagnosis changed in icc 8.0:
 
3027
      #   icc: Command line remark: option '-MP' not supported
 
3028
      if (grep 'ignoring option' conftest.err ||
 
3029
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3030
        am_cv_CC_dependencies_compiler_type=$depmode
 
3031
        break
 
3032
      fi
 
3033
    fi
 
3034
  done
 
3035
 
 
3036
  cd ..
 
3037
  rm -rf conftest.dir
 
3038
else
 
3039
  am_cv_CC_dependencies_compiler_type=none
 
3040
fi
 
3041
 
 
3042
fi
 
3043
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3044
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3045
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3046
 
 
3047
 
 
3048
 
 
3049
if
 
3050
  test "x$enable_dependency_tracking" != xno \
 
3051
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3052
  am__fastdepCC_TRUE=
 
3053
  am__fastdepCC_FALSE='#'
 
3054
else
 
3055
  am__fastdepCC_TRUE='#'
 
3056
  am__fastdepCC_FALSE=
 
3057
fi
 
3058
 
 
3059
 
 
3060
# By default we simply use the C compiler to build assembly code.
 
3061
 
 
3062
test "${CCAS+set}" = set || CCAS=$CC
 
3063
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
 
3064
 
 
3065
 
 
3066
 
 
3067
# Check whether --enable-shared or --disable-shared was given.
 
3068
if test "${enable_shared+set}" = set; then
 
3069
  enableval="$enable_shared"
 
3070
  p=${PACKAGE-default}
 
3071
    case $enableval in
 
3072
    yes) enable_shared=yes ;;
 
3073
    no) enable_shared=no ;;
 
3074
    *)
 
3075
      enable_shared=no
 
3076
      # Look at the argument we got.  We use all the common list separators.
 
3077
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3078
      for pkg in $enableval; do
 
3079
        IFS="$lt_save_ifs"
 
3080
        if test "X$pkg" = "X$p"; then
 
3081
          enable_shared=yes
 
3082
        fi
 
3083
      done
 
3084
      IFS="$lt_save_ifs"
 
3085
      ;;
 
3086
    esac
 
3087
else
 
3088
  enable_shared=yes
 
3089
fi;
 
3090
 
 
3091
# Check whether --enable-static or --disable-static was given.
 
3092
if test "${enable_static+set}" = set; then
 
3093
  enableval="$enable_static"
 
3094
  p=${PACKAGE-default}
 
3095
    case $enableval in
 
3096
    yes) enable_static=yes ;;
 
3097
    no) enable_static=no ;;
 
3098
    *)
 
3099
     enable_static=no
 
3100
      # Look at the argument we got.  We use all the common list separators.
 
3101
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3102
      for pkg in $enableval; do
 
3103
        IFS="$lt_save_ifs"
 
3104
        if test "X$pkg" = "X$p"; then
 
3105
          enable_static=yes
 
3106
        fi
 
3107
      done
 
3108
      IFS="$lt_save_ifs"
 
3109
      ;;
 
3110
    esac
 
3111
else
 
3112
  enable_static=yes
 
3113
fi;
 
3114
 
 
3115
# Check whether --enable-fast-install or --disable-fast-install was given.
 
3116
if test "${enable_fast_install+set}" = set; then
 
3117
  enableval="$enable_fast_install"
 
3118
  p=${PACKAGE-default}
 
3119
    case $enableval in
 
3120
    yes) enable_fast_install=yes ;;
 
3121
    no) enable_fast_install=no ;;
 
3122
    *)
 
3123
      enable_fast_install=no
 
3124
      # Look at the argument we got.  We use all the common list separators.
 
3125
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3126
      for pkg in $enableval; do
 
3127
        IFS="$lt_save_ifs"
 
3128
        if test "X$pkg" = "X$p"; then
 
3129
          enable_fast_install=yes
 
3130
        fi
 
3131
      done
 
3132
      IFS="$lt_save_ifs"
 
3133
      ;;
 
3134
    esac
 
3135
else
 
3136
  enable_fast_install=yes
 
3137
fi;
 
3138
 
 
3139
# Make sure we can run config.sub.
 
3140
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
3141
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
3142
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
3143
   { (exit 1); exit 1; }; }
 
3144
 
 
3145
echo "$as_me:$LINENO: checking build system type" >&5
 
3146
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
3147
if test "${ac_cv_build+set}" = set; then
 
3148
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3149
else
 
3150
  ac_cv_build_alias=$build_alias
 
3151
test -z "$ac_cv_build_alias" &&
 
3152
  ac_cv_build_alias=`$ac_config_guess`
 
3153
test -z "$ac_cv_build_alias" &&
 
3154
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3155
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3156
   { (exit 1); exit 1; }; }
 
3157
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
3158
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
3159
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
3160
   { (exit 1); exit 1; }; }
 
3161
 
 
3162
fi
 
3163
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3164
echo "${ECHO_T}$ac_cv_build" >&6
 
3165
build=$ac_cv_build
 
3166
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3167
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3168
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3169
 
 
3170
 
 
3171
echo "$as_me:$LINENO: checking host system type" >&5
 
3172
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
3173
if test "${ac_cv_host+set}" = set; then
 
3174
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3175
else
 
3176
  ac_cv_host_alias=$host_alias
 
3177
test -z "$ac_cv_host_alias" &&
 
3178
  ac_cv_host_alias=$ac_cv_build_alias
 
3179
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
3180
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
3181
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
3182
   { (exit 1); exit 1; }; }
 
3183
 
 
3184
fi
 
3185
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3186
echo "${ECHO_T}$ac_cv_host" >&6
 
3187
host=$ac_cv_host
 
3188
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3189
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3190
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3191
 
 
3192
 
 
3193
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3194
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3195
if test "${lt_cv_path_SED+set}" = set; then
 
3196
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3197
else
 
3198
  # Loop through the user's path and test for sed and gsed.
 
3199
# Then use that list of sed's as ones to test for truncation.
 
3200
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3201
for as_dir in $PATH
 
3202
do
 
3203
  IFS=$as_save_IFS
 
3204
  test -z "$as_dir" && as_dir=.
 
3205
  for lt_ac_prog in sed gsed; do
 
3206
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3207
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3208
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3209
      fi
 
3210
    done
 
3211
  done
 
3212
done
 
3213
IFS=$as_save_IFS
 
3214
lt_ac_max=0
 
3215
lt_ac_count=0
 
3216
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3217
# along with /bin/sed that truncates output.
 
3218
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3219
  test ! -f $lt_ac_sed && continue
 
3220
  cat /dev/null > conftest.in
 
3221
  lt_ac_count=0
 
3222
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3223
  # Check for GNU sed and select it if it is found.
 
3224
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3225
    lt_cv_path_SED=$lt_ac_sed
 
3226
    break
 
3227
  fi
 
3228
  while true; do
 
3229
    cat conftest.in conftest.in >conftest.tmp
 
3230
    mv conftest.tmp conftest.in
 
3231
    cp conftest.in conftest.nl
 
3232
    echo >>conftest.nl
 
3233
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3234
    cmp -s conftest.out conftest.nl || break
 
3235
    # 10000 chars as input seems more than enough
 
3236
    test $lt_ac_count -gt 10 && break
 
3237
    lt_ac_count=`expr $lt_ac_count + 1`
 
3238
    if test $lt_ac_count -gt $lt_ac_max; then
 
3239
      lt_ac_max=$lt_ac_count
 
3240
      lt_cv_path_SED=$lt_ac_sed
 
3241
    fi
 
3242
  done
 
3243
done
 
3244
 
 
3245
fi
 
3246
 
 
3247
SED=$lt_cv_path_SED
 
3248
 
 
3249
echo "$as_me:$LINENO: result: $SED" >&5
 
3250
echo "${ECHO_T}$SED" >&6
 
3251
 
 
3252
echo "$as_me:$LINENO: checking for egrep" >&5
 
3253
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3254
if test "${ac_cv_prog_egrep+set}" = set; then
 
3255
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3256
else
 
3257
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3258
    then ac_cv_prog_egrep='grep -E'
 
3259
    else ac_cv_prog_egrep='egrep'
 
3260
    fi
 
3261
fi
 
3262
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3263
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3264
 EGREP=$ac_cv_prog_egrep
 
3265
 
 
3266
 
 
3267
 
 
3268
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3269
if test "${with_gnu_ld+set}" = set; then
 
3270
  withval="$with_gnu_ld"
 
3271
  test "$withval" = no || with_gnu_ld=yes
 
3272
else
 
3273
  with_gnu_ld=no
 
3274
fi;
 
3275
ac_prog=ld
 
3276
if test "$GCC" = yes; then
 
3277
  # Check if gcc -print-prog-name=ld gives a path.
 
3278
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3279
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
3280
  case $host in
 
3281
  *-*-mingw*)
 
3282
    # gcc leaves a trailing carriage return which upsets mingw
 
3283
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3284
  *)
 
3285
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3286
  esac
 
3287
  case $ac_prog in
 
3288
    # Accept absolute paths.
 
3289
    [\\/]* | ?:[\\/]*)
 
3290
      re_direlt='/[^/][^/]*/\.\./'
 
3291
      # Canonicalize the pathname of ld
 
3292
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3293
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3294
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3295
      done
 
3296
      test -z "$LD" && LD="$ac_prog"
 
3297
      ;;
 
3298
  "")
 
3299
    # If it fails, then pretend we aren't using GCC.
 
3300
    ac_prog=ld
 
3301
    ;;
 
3302
  *)
 
3303
    # If it is relative, then search for the first ld in PATH.
 
3304
    with_gnu_ld=unknown
 
3305
    ;;
 
3306
  esac
 
3307
elif test "$with_gnu_ld" = yes; then
 
3308
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3309
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3310
else
 
3311
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3312
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3313
fi
 
3314
if test "${lt_cv_path_LD+set}" = set; then
 
3315
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3316
else
 
3317
  if test -z "$LD"; then
 
3318
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3319
  for ac_dir in $PATH; do
 
3320
    IFS="$lt_save_ifs"
 
3321
    test -z "$ac_dir" && ac_dir=.
 
3322
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3323
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3324
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3325
      # but apparently some variants of GNU ld only accept -v.
 
3326
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3327
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3328
      *GNU* | *'with BFD'*)
 
3329
        test "$with_gnu_ld" != no && break
 
3330
        ;;
 
3331
      *)
 
3332
        test "$with_gnu_ld" != yes && break
 
3333
        ;;
 
3334
      esac
 
3335
    fi
 
3336
  done
 
3337
  IFS="$lt_save_ifs"
 
3338
else
 
3339
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3340
fi
 
3341
fi
 
3342
 
 
3343
LD="$lt_cv_path_LD"
 
3344
if test -n "$LD"; then
 
3345
  echo "$as_me:$LINENO: result: $LD" >&5
 
3346
echo "${ECHO_T}$LD" >&6
 
3347
else
 
3348
  echo "$as_me:$LINENO: result: no" >&5
 
3349
echo "${ECHO_T}no" >&6
 
3350
fi
 
3351
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3352
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3353
   { (exit 1); exit 1; }; }
 
3354
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3355
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3356
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3357
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3358
else
 
3359
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
3360
case `$LD -v 2>&1 </dev/null` in
 
3361
*GNU* | *'with BFD'*)
 
3362
  lt_cv_prog_gnu_ld=yes
 
3363
  ;;
 
3364
*)
 
3365
  lt_cv_prog_gnu_ld=no
 
3366
  ;;
 
3367
esac
 
3368
fi
 
3369
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3370
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3371
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3372
 
 
3373
 
 
3374
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3375
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3376
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3377
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3378
else
 
3379
  lt_cv_ld_reload_flag='-r'
 
3380
fi
 
3381
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3382
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3383
reload_flag=$lt_cv_ld_reload_flag
 
3384
case $reload_flag in
 
3385
"" | " "*) ;;
 
3386
*) reload_flag=" $reload_flag" ;;
 
3387
esac
 
3388
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3389
case $host_os in
 
3390
  darwin*)
 
3391
    if test "$GCC" = yes; then
 
3392
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
3393
    else
 
3394
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3395
    fi
 
3396
    ;;
 
3397
esac
 
3398
 
 
3399
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3400
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3401
if test "${lt_cv_path_NM+set}" = set; then
 
3402
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3403
else
 
3404
  if test -n "$NM"; then
 
3405
  # Let the user override the test.
 
3406
  lt_cv_path_NM="$NM"
 
3407
else
 
3408
  lt_nm_to_check="${ac_tool_prefix}nm"
 
3409
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
3410
    lt_nm_to_check="$lt_nm_to_check nm"
 
3411
  fi
 
3412
  for lt_tmp_nm in $lt_nm_to_check; do
 
3413
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3414
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
3415
      IFS="$lt_save_ifs"
 
3416
      test -z "$ac_dir" && ac_dir=.
 
3417
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
3418
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3419
        # Check to see if the nm accepts a BSD-compat flag.
 
3420
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3421
        #   nm: unknown option "B" ignored
 
3422
        # Tru64's nm complains that /dev/null is an invalid object file
 
3423
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3424
        */dev/null* | *'Invalid file or object type'*)
 
3425
          lt_cv_path_NM="$tmp_nm -B"
 
3426
          break
 
3427
          ;;
 
3428
        *)
 
3429
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3430
          */dev/null*)
 
3431
            lt_cv_path_NM="$tmp_nm -p"
 
3432
            break
 
3433
            ;;
 
3434
          *)
 
3435
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3436
            continue # so that we can try to find one that supports BSD flags
 
3437
            ;;
 
3438
          esac
 
3439
          ;;
 
3440
        esac
 
3441
      fi
 
3442
    done
 
3443
    IFS="$lt_save_ifs"
 
3444
  done
 
3445
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3446
fi
 
3447
fi
 
3448
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3449
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
3450
NM="$lt_cv_path_NM"
 
3451
 
 
3452
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3453
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3454
LN_S=$as_ln_s
 
3455
if test "$LN_S" = "ln -s"; then
 
3456
  echo "$as_me:$LINENO: result: yes" >&5
 
3457
echo "${ECHO_T}yes" >&6
 
3458
else
 
3459
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3460
echo "${ECHO_T}no, using $LN_S" >&6
 
3461
fi
 
3462
 
 
3463
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3464
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
3465
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3466
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3467
else
 
3468
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3469
lt_cv_file_magic_test_file=
 
3470
lt_cv_deplibs_check_method='unknown'
 
3471
# Need to set the preceding variable on all platforms that support
 
3472
# interlibrary dependencies.
 
3473
# 'none' -- dependencies not supported.
 
3474
# `unknown' -- same as none, but documents that we really don't know.
 
3475
# 'pass_all' -- all dependencies passed with no checks.
 
3476
# 'test_compile' -- check by making test program.
 
3477
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3478
# which responds to the $file_magic_cmd with a given extended regex.
 
3479
# If you have `file' or equivalent on your system and you're not sure
 
3480
# whether `pass_all' will *always* work, you probably want this one.
 
3481
 
 
3482
case $host_os in
 
3483
aix4* | aix5*)
 
3484
  lt_cv_deplibs_check_method=pass_all
 
3485
  ;;
 
3486
 
 
3487
beos*)
 
3488
  lt_cv_deplibs_check_method=pass_all
 
3489
  ;;
 
3490
 
 
3491
bsdi[45]*)
 
3492
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3493
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3494
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3495
  ;;
 
3496
 
 
3497
cygwin*)
 
3498
  # func_win32_libid is a shell function defined in ltmain.sh
 
3499
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3500
  lt_cv_file_magic_cmd='func_win32_libid'
 
3501
  ;;
 
3502
 
 
3503
mingw* | pw32*)
 
3504
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3505
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
3506
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3507
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3508
  ;;
 
3509
 
 
3510
darwin* | rhapsody*)
 
3511
  lt_cv_deplibs_check_method=pass_all
 
3512
  ;;
 
3513
 
 
3514
freebsd* | kfreebsd*-gnu | dragonfly*)
 
3515
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3516
    case $host_cpu in
 
3517
    i*86 )
 
3518
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3519
      # Let's accept both of them until this is cleared up.
 
3520
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
3521
      lt_cv_file_magic_cmd=/usr/bin/file
 
3522
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3523
      ;;
 
3524
    esac
 
3525
  else
 
3526
    lt_cv_deplibs_check_method=pass_all
 
3527
  fi
 
3528
  ;;
 
3529
 
 
3530
gnu*)
 
3531
  lt_cv_deplibs_check_method=pass_all
 
3532
  ;;
 
3533
 
 
3534
hpux10.20* | hpux11*)
 
3535
  lt_cv_file_magic_cmd=/usr/bin/file
 
3536
  case $host_cpu in
 
3537
  ia64*)
 
3538
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
3539
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3540
    ;;
 
3541
  hppa*64*)
 
3542
    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]'
 
3543
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3544
    ;;
 
3545
  *)
 
3546
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3547
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3548
    ;;
 
3549
  esac
 
3550
  ;;
 
3551
 
 
3552
interix3*)
 
3553
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
3554
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
3555
  ;;
 
3556
 
 
3557
irix5* | irix6* | nonstopux*)
 
3558
  case $LD in
 
3559
  *-32|*"-32 ") libmagic=32-bit;;
 
3560
  *-n32|*"-n32 ") libmagic=N32;;
 
3561
  *-64|*"-64 ") libmagic=64-bit;;
 
3562
  *) libmagic=never-match;;
 
3563
  esac
 
3564
  lt_cv_deplibs_check_method=pass_all
 
3565
  ;;
 
3566
 
 
3567
# This must be Linux ELF.
 
3568
linux*)
 
3569
  lt_cv_deplibs_check_method=pass_all
 
3570
  ;;
 
3571
 
 
3572
netbsd*)
 
3573
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3574
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3575
  else
 
3576
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
3577
  fi
 
3578
  ;;
 
3579
 
 
3580
newos6*)
 
3581
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3582
  lt_cv_file_magic_cmd=/usr/bin/file
 
3583
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3584
  ;;
 
3585
 
 
3586
nto-qnx*)
 
3587
  lt_cv_deplibs_check_method=unknown
 
3588
  ;;
 
3589
 
 
3590
openbsd*)
 
3591
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3592
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
3593
  else
 
3594
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3595
  fi
 
3596
  ;;
 
3597
 
 
3598
osf3* | osf4* | osf5*)
 
3599
  lt_cv_deplibs_check_method=pass_all
 
3600
  ;;
 
3601
 
 
3602
solaris*)
 
3603
  lt_cv_deplibs_check_method=pass_all
 
3604
  ;;
 
3605
 
 
3606
sysv4 | sysv4.3*)
 
3607
  case $host_vendor in
 
3608
  motorola)
 
3609
    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]'
 
3610
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3611
    ;;
 
3612
  ncr)
 
3613
    lt_cv_deplibs_check_method=pass_all
 
3614
    ;;
 
3615
  sequent)
 
3616
    lt_cv_file_magic_cmd='/bin/file'
 
3617
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3618
    ;;
 
3619
  sni)
 
3620
    lt_cv_file_magic_cmd='/bin/file'
 
3621
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3622
    lt_cv_file_magic_test_file=/lib/libc.so
 
3623
    ;;
 
3624
  siemens)
 
3625
    lt_cv_deplibs_check_method=pass_all
 
3626
    ;;
 
3627
  pc)
 
3628
    lt_cv_deplibs_check_method=pass_all
 
3629
    ;;
 
3630
  esac
 
3631
  ;;
 
3632
 
 
3633
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3634
  lt_cv_deplibs_check_method=pass_all
 
3635
  ;;
 
3636
esac
 
3637
 
 
3638
fi
 
3639
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3640
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3641
file_magic_cmd=$lt_cv_file_magic_cmd
 
3642
deplibs_check_method=$lt_cv_deplibs_check_method
 
3643
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3644
 
 
3645
 
 
3646
 
 
3647
 
 
3648
# If no C compiler was specified, use CC.
 
3649
LTCC=${LTCC-"$CC"}
 
3650
 
 
3651
# If no C compiler flags were specified, use CFLAGS.
 
3652
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
3653
 
 
3654
# Allow CC to be a program name with arguments.
 
3655
compiler=$CC
 
3656
 
 
3657
 
 
3658
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
3659
if test "${enable_libtool_lock+set}" = set; then
 
3660
  enableval="$enable_libtool_lock"
 
3661
 
 
3662
fi;
 
3663
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
3664
 
 
3665
# Some flags need to be propagated to the compiler or linker for good
 
3666
# libtool support.
 
3667
case $host in
 
3668
ia64-*-hpux*)
 
3669
  # Find out which ABI we are using.
 
3670
  echo 'int i;' > conftest.$ac_ext
 
3671
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3672
  (eval $ac_compile) 2>&5
 
3673
  ac_status=$?
 
3674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3675
  (exit $ac_status); }; then
 
3676
    case `/usr/bin/file conftest.$ac_objext` in
 
3677
    *ELF-32*)
 
3678
      HPUX_IA64_MODE="32"
 
3679
      ;;
 
3680
    *ELF-64*)
 
3681
      HPUX_IA64_MODE="64"
 
3682
      ;;
 
3683
    esac
 
3684
  fi
 
3685
  rm -rf conftest*
 
3686
  ;;
 
3687
*-*-irix6*)
 
3688
  # Find out which ABI we are using.
 
3689
  echo '#line 3689 "configure"' > conftest.$ac_ext
 
3690
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3691
  (eval $ac_compile) 2>&5
 
3692
  ac_status=$?
 
3693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3694
  (exit $ac_status); }; then
 
3695
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3696
    case `/usr/bin/file conftest.$ac_objext` in
 
3697
    *32-bit*)
 
3698
      LD="${LD-ld} -melf32bsmip"
 
3699
      ;;
 
3700
    *N32*)
 
3701
      LD="${LD-ld} -melf32bmipn32"
 
3702
      ;;
 
3703
    *64-bit*)
 
3704
      LD="${LD-ld} -melf64bmip"
 
3705
      ;;
 
3706
    esac
 
3707
   else
 
3708
    case `/usr/bin/file conftest.$ac_objext` in
 
3709
    *32-bit*)
 
3710
      LD="${LD-ld} -32"
 
3711
      ;;
 
3712
    *N32*)
 
3713
      LD="${LD-ld} -n32"
 
3714
      ;;
 
3715
    *64-bit*)
 
3716
      LD="${LD-ld} -64"
 
3717
      ;;
 
3718
    esac
 
3719
   fi
 
3720
  fi
 
3721
  rm -rf conftest*
 
3722
  ;;
 
3723
 
 
3724
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3725
  # Find out which ABI we are using.
 
3726
  echo 'int i;' > conftest.$ac_ext
 
3727
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3728
  (eval $ac_compile) 2>&5
 
3729
  ac_status=$?
 
3730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3731
  (exit $ac_status); }; then
 
3732
    case `/usr/bin/file conftest.o` in
 
3733
    *32-bit*)
 
3734
      case $host in
 
3735
        x86_64-*linux*)
 
3736
          LD="${LD-ld} -m elf_i386"
 
3737
          ;;
 
3738
        ppc64-*linux*|powerpc64-*linux*)
 
3739
          LD="${LD-ld} -m elf32ppclinux"
 
3740
          ;;
 
3741
        s390x-*linux*)
 
3742
          LD="${LD-ld} -m elf_s390"
 
3743
          ;;
 
3744
        sparc64-*linux*)
 
3745
          LD="${LD-ld} -m elf32_sparc"
 
3746
          ;;
 
3747
      esac
 
3748
      ;;
 
3749
    *64-bit*)
 
3750
      case $host in
 
3751
        x86_64-*linux*)
 
3752
          LD="${LD-ld} -m elf_x86_64"
 
3753
          ;;
 
3754
        ppc*-*linux*|powerpc*-*linux*)
 
3755
          LD="${LD-ld} -m elf64ppc"
 
3756
          ;;
 
3757
        s390*-*linux*)
 
3758
          LD="${LD-ld} -m elf64_s390"
 
3759
          ;;
 
3760
        sparc*-*linux*)
 
3761
          LD="${LD-ld} -m elf64_sparc"
 
3762
          ;;
 
3763
      esac
 
3764
      ;;
 
3765
    esac
 
3766
  fi
 
3767
  rm -rf conftest*
 
3768
  ;;
 
3769
 
 
3770
*-*-sco3.2v5*)
 
3771
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3772
  SAVE_CFLAGS="$CFLAGS"
 
3773
  CFLAGS="$CFLAGS -belf"
 
3774
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3775
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
3776
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3777
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3778
else
 
3779
  ac_ext=c
 
3780
ac_cpp='$CPP $CPPFLAGS'
 
3781
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3782
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3783
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3784
 
 
3785
     cat >conftest.$ac_ext <<_ACEOF
 
3786
/* confdefs.h.  */
 
3787
_ACEOF
 
3788
cat confdefs.h >>conftest.$ac_ext
 
3789
cat >>conftest.$ac_ext <<_ACEOF
 
3790
/* end confdefs.h.  */
 
3791
 
 
3792
int
 
3793
main ()
 
3794
{
 
3795
 
 
3796
  ;
 
3797
  return 0;
 
3798
}
 
3799
_ACEOF
 
3800
rm -f conftest.$ac_objext conftest$ac_exeext
 
3801
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3802
  (eval $ac_link) 2>conftest.er1
 
3803
  ac_status=$?
 
3804
  grep -v '^ *+' conftest.er1 >conftest.err
 
3805
  rm -f conftest.er1
 
3806
  cat conftest.err >&5
 
3807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3808
  (exit $ac_status); } &&
 
3809
         { ac_try='test -z "$ac_c_werror_flag"
 
3810
                         || test ! -s conftest.err'
 
3811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3812
  (eval $ac_try) 2>&5
 
3813
  ac_status=$?
 
3814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3815
  (exit $ac_status); }; } &&
 
3816
         { ac_try='test -s conftest$ac_exeext'
 
3817
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3818
  (eval $ac_try) 2>&5
 
3819
  ac_status=$?
 
3820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3821
  (exit $ac_status); }; }; then
 
3822
  lt_cv_cc_needs_belf=yes
 
3823
else
 
3824
  echo "$as_me: failed program was:" >&5
 
3825
sed 's/^/| /' conftest.$ac_ext >&5
 
3826
 
 
3827
lt_cv_cc_needs_belf=no
 
3828
fi
 
3829
rm -f conftest.err conftest.$ac_objext \
 
3830
      conftest$ac_exeext conftest.$ac_ext
 
3831
     ac_ext=c
 
3832
ac_cpp='$CPP $CPPFLAGS'
 
3833
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3834
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3835
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3836
 
 
3837
fi
 
3838
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3839
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
3840
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
3841
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
3842
    CFLAGS="$SAVE_CFLAGS"
 
3843
  fi
 
3844
  ;;
 
3845
sparc*-*solaris*)
 
3846
  # Find out which ABI we are using.
 
3847
  echo 'int i;' > conftest.$ac_ext
 
3848
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3849
  (eval $ac_compile) 2>&5
 
3850
  ac_status=$?
 
3851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3852
  (exit $ac_status); }; then
 
3853
    case `/usr/bin/file conftest.o` in
 
3854
    *64-bit*)
 
3855
      case $lt_cv_prog_gnu_ld in
 
3856
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
3857
      *)    LD="${LD-ld} -64" ;;
 
3858
      esac
 
3859
      ;;
 
3860
    esac
 
3861
  fi
 
3862
  rm -rf conftest*
 
3863
  ;;
 
3864
 
 
3865
 
 
3866
esac
 
3867
 
 
3868
need_locks="$enable_libtool_lock"
 
3869
 
 
3870
 
 
3871
ac_ext=c
 
3872
ac_cpp='$CPP $CPPFLAGS'
 
3873
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3874
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3875
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3876
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3877
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3878
# On Suns, sometimes $CPP names a directory.
 
3879
if test -n "$CPP" && test -d "$CPP"; then
 
3880
  CPP=
 
3881
fi
 
3882
if test -z "$CPP"; then
 
3883
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3884
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3885
else
 
3886
      # Double quotes because CPP needs to be expanded
 
3887
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3888
    do
 
3889
      ac_preproc_ok=false
 
3890
for ac_c_preproc_warn_flag in '' yes
 
3891
do
 
3892
  # Use a header file that comes with gcc, so configuring glibc
 
3893
  # with a fresh cross-compiler works.
 
3894
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3895
  # <limits.h> exists even on freestanding compilers.
 
3896
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3897
  # not just through cpp. "Syntax error" is here to catch this case.
 
3898
  cat >conftest.$ac_ext <<_ACEOF
 
3899
/* confdefs.h.  */
 
3900
_ACEOF
 
3901
cat confdefs.h >>conftest.$ac_ext
 
3902
cat >>conftest.$ac_ext <<_ACEOF
 
3903
/* end confdefs.h.  */
 
3904
#ifdef __STDC__
 
3905
# include <limits.h>
 
3906
#else
 
3907
# include <assert.h>
 
3908
#endif
 
3909
                     Syntax error
 
3910
_ACEOF
 
3911
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3912
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3913
  ac_status=$?
 
3914
  grep -v '^ *+' conftest.er1 >conftest.err
 
3915
  rm -f conftest.er1
 
3916
  cat conftest.err >&5
 
3917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3918
  (exit $ac_status); } >/dev/null; then
 
3919
  if test -s conftest.err; then
 
3920
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3921
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3922
  else
 
3923
    ac_cpp_err=
 
3924
  fi
 
3925
else
 
3926
  ac_cpp_err=yes
 
3927
fi
 
3928
if test -z "$ac_cpp_err"; then
 
3929
  :
 
3930
else
 
3931
  echo "$as_me: failed program was:" >&5
 
3932
sed 's/^/| /' conftest.$ac_ext >&5
 
3933
 
 
3934
  # Broken: fails on valid input.
 
3935
continue
 
3936
fi
 
3937
rm -f conftest.err conftest.$ac_ext
 
3938
 
 
3939
  # OK, works on sane cases.  Now check whether non-existent headers
 
3940
  # can be detected and how.
 
3941
  cat >conftest.$ac_ext <<_ACEOF
 
3942
/* confdefs.h.  */
 
3943
_ACEOF
 
3944
cat confdefs.h >>conftest.$ac_ext
 
3945
cat >>conftest.$ac_ext <<_ACEOF
 
3946
/* end confdefs.h.  */
 
3947
#include <ac_nonexistent.h>
 
3948
_ACEOF
 
3949
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3950
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3951
  ac_status=$?
 
3952
  grep -v '^ *+' conftest.er1 >conftest.err
 
3953
  rm -f conftest.er1
 
3954
  cat conftest.err >&5
 
3955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3956
  (exit $ac_status); } >/dev/null; then
 
3957
  if test -s conftest.err; then
 
3958
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3959
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3960
  else
 
3961
    ac_cpp_err=
 
3962
  fi
 
3963
else
 
3964
  ac_cpp_err=yes
 
3965
fi
 
3966
if test -z "$ac_cpp_err"; then
 
3967
  # Broken: success on invalid input.
 
3968
continue
 
3969
else
 
3970
  echo "$as_me: failed program was:" >&5
 
3971
sed 's/^/| /' conftest.$ac_ext >&5
 
3972
 
 
3973
  # Passes both tests.
 
3974
ac_preproc_ok=:
 
3975
break
 
3976
fi
 
3977
rm -f conftest.err conftest.$ac_ext
 
3978
 
 
3979
done
 
3980
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3981
rm -f conftest.err conftest.$ac_ext
 
3982
if $ac_preproc_ok; then
 
3983
  break
 
3984
fi
 
3985
 
 
3986
    done
 
3987
    ac_cv_prog_CPP=$CPP
 
3988
 
 
3989
fi
 
3990
  CPP=$ac_cv_prog_CPP
 
3991
else
 
3992
  ac_cv_prog_CPP=$CPP
 
3993
fi
 
3994
echo "$as_me:$LINENO: result: $CPP" >&5
 
3995
echo "${ECHO_T}$CPP" >&6
 
3996
ac_preproc_ok=false
 
3997
for ac_c_preproc_warn_flag in '' yes
 
3998
do
 
3999
  # Use a header file that comes with gcc, so configuring glibc
 
4000
  # with a fresh cross-compiler works.
 
4001
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4002
  # <limits.h> exists even on freestanding compilers.
 
4003
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4004
  # not just through cpp. "Syntax error" is here to catch this case.
 
4005
  cat >conftest.$ac_ext <<_ACEOF
 
4006
/* confdefs.h.  */
 
4007
_ACEOF
 
4008
cat confdefs.h >>conftest.$ac_ext
 
4009
cat >>conftest.$ac_ext <<_ACEOF
 
4010
/* end confdefs.h.  */
 
4011
#ifdef __STDC__
 
4012
# include <limits.h>
 
4013
#else
 
4014
# include <assert.h>
 
4015
#endif
 
4016
                     Syntax error
 
4017
_ACEOF
 
4018
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4019
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4020
  ac_status=$?
 
4021
  grep -v '^ *+' conftest.er1 >conftest.err
 
4022
  rm -f conftest.er1
 
4023
  cat conftest.err >&5
 
4024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4025
  (exit $ac_status); } >/dev/null; then
 
4026
  if test -s conftest.err; then
 
4027
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4028
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4029
  else
 
4030
    ac_cpp_err=
 
4031
  fi
 
4032
else
 
4033
  ac_cpp_err=yes
 
4034
fi
 
4035
if test -z "$ac_cpp_err"; then
 
4036
  :
 
4037
else
 
4038
  echo "$as_me: failed program was:" >&5
 
4039
sed 's/^/| /' conftest.$ac_ext >&5
 
4040
 
 
4041
  # Broken: fails on valid input.
 
4042
continue
 
4043
fi
 
4044
rm -f conftest.err conftest.$ac_ext
 
4045
 
 
4046
  # OK, works on sane cases.  Now check whether non-existent headers
 
4047
  # can be detected and how.
 
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
#include <ac_nonexistent.h>
 
4055
_ACEOF
 
4056
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4057
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4058
  ac_status=$?
 
4059
  grep -v '^ *+' conftest.er1 >conftest.err
 
4060
  rm -f conftest.er1
 
4061
  cat conftest.err >&5
 
4062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4063
  (exit $ac_status); } >/dev/null; then
 
4064
  if test -s conftest.err; then
 
4065
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4066
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4067
  else
 
4068
    ac_cpp_err=
 
4069
  fi
 
4070
else
 
4071
  ac_cpp_err=yes
 
4072
fi
 
4073
if test -z "$ac_cpp_err"; then
 
4074
  # Broken: success on invalid input.
 
4075
continue
 
4076
else
 
4077
  echo "$as_me: failed program was:" >&5
 
4078
sed 's/^/| /' conftest.$ac_ext >&5
 
4079
 
 
4080
  # Passes both tests.
 
4081
ac_preproc_ok=:
 
4082
break
 
4083
fi
 
4084
rm -f conftest.err conftest.$ac_ext
 
4085
 
 
4086
done
 
4087
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4088
rm -f conftest.err conftest.$ac_ext
 
4089
if $ac_preproc_ok; then
 
4090
  :
 
4091
else
 
4092
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4093
See \`config.log' for more details." >&5
 
4094
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4095
See \`config.log' for more details." >&2;}
 
4096
   { (exit 1); exit 1; }; }
 
4097
fi
 
4098
 
 
4099
ac_ext=c
 
4100
ac_cpp='$CPP $CPPFLAGS'
 
4101
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4102
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4103
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4104
 
 
4105
 
 
4106
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4107
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4108
if test "${ac_cv_header_stdc+set}" = set; then
 
4109
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4110
else
 
4111
  cat >conftest.$ac_ext <<_ACEOF
 
4112
/* confdefs.h.  */
 
4113
_ACEOF
 
4114
cat confdefs.h >>conftest.$ac_ext
 
4115
cat >>conftest.$ac_ext <<_ACEOF
 
4116
/* end confdefs.h.  */
 
4117
#include <stdlib.h>
 
4118
#include <stdarg.h>
 
4119
#include <string.h>
 
4120
#include <float.h>
 
4121
 
 
4122
int
 
4123
main ()
 
4124
{
 
4125
 
 
4126
  ;
 
4127
  return 0;
 
4128
}
 
4129
_ACEOF
 
4130
rm -f conftest.$ac_objext
 
4131
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4132
  (eval $ac_compile) 2>conftest.er1
 
4133
  ac_status=$?
 
4134
  grep -v '^ *+' conftest.er1 >conftest.err
 
4135
  rm -f conftest.er1
 
4136
  cat conftest.err >&5
 
4137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4138
  (exit $ac_status); } &&
 
4139
         { ac_try='test -z "$ac_c_werror_flag"
 
4140
                         || test ! -s conftest.err'
 
4141
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4142
  (eval $ac_try) 2>&5
 
4143
  ac_status=$?
 
4144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4145
  (exit $ac_status); }; } &&
 
4146
         { ac_try='test -s conftest.$ac_objext'
 
4147
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4148
  (eval $ac_try) 2>&5
 
4149
  ac_status=$?
 
4150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4151
  (exit $ac_status); }; }; then
 
4152
  ac_cv_header_stdc=yes
 
4153
else
 
4154
  echo "$as_me: failed program was:" >&5
 
4155
sed 's/^/| /' conftest.$ac_ext >&5
 
4156
 
 
4157
ac_cv_header_stdc=no
 
4158
fi
 
4159
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4160
 
 
4161
if test $ac_cv_header_stdc = yes; then
 
4162
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4163
  cat >conftest.$ac_ext <<_ACEOF
 
4164
/* confdefs.h.  */
 
4165
_ACEOF
 
4166
cat confdefs.h >>conftest.$ac_ext
 
4167
cat >>conftest.$ac_ext <<_ACEOF
 
4168
/* end confdefs.h.  */
 
4169
#include <string.h>
 
4170
 
 
4171
_ACEOF
 
4172
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4173
  $EGREP "memchr" >/dev/null 2>&1; then
 
4174
  :
 
4175
else
 
4176
  ac_cv_header_stdc=no
 
4177
fi
 
4178
rm -f conftest*
 
4179
 
 
4180
fi
 
4181
 
 
4182
if test $ac_cv_header_stdc = yes; then
 
4183
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4184
  cat >conftest.$ac_ext <<_ACEOF
 
4185
/* confdefs.h.  */
 
4186
_ACEOF
 
4187
cat confdefs.h >>conftest.$ac_ext
 
4188
cat >>conftest.$ac_ext <<_ACEOF
 
4189
/* end confdefs.h.  */
 
4190
#include <stdlib.h>
 
4191
 
 
4192
_ACEOF
 
4193
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4194
  $EGREP "free" >/dev/null 2>&1; then
 
4195
  :
 
4196
else
 
4197
  ac_cv_header_stdc=no
 
4198
fi
 
4199
rm -f conftest*
 
4200
 
 
4201
fi
 
4202
 
 
4203
if test $ac_cv_header_stdc = yes; then
 
4204
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4205
  if test "$cross_compiling" = yes; then
 
4206
  :
 
4207
else
 
4208
  cat >conftest.$ac_ext <<_ACEOF
 
4209
/* confdefs.h.  */
 
4210
_ACEOF
 
4211
cat confdefs.h >>conftest.$ac_ext
 
4212
cat >>conftest.$ac_ext <<_ACEOF
 
4213
/* end confdefs.h.  */
 
4214
#include <ctype.h>
 
4215
#if ((' ' & 0x0FF) == 0x020)
 
4216
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4217
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4218
#else
 
4219
# define ISLOWER(c) \
 
4220
                   (('a' <= (c) && (c) <= 'i') \
 
4221
                     || ('j' <= (c) && (c) <= 'r') \
 
4222
                     || ('s' <= (c) && (c) <= 'z'))
 
4223
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4224
#endif
 
4225
 
 
4226
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4227
int
 
4228
main ()
 
4229
{
 
4230
  int i;
 
4231
  for (i = 0; i < 256; i++)
 
4232
    if (XOR (islower (i), ISLOWER (i))
 
4233
        || toupper (i) != TOUPPER (i))
 
4234
      exit(2);
 
4235
  exit (0);
 
4236
}
 
4237
_ACEOF
 
4238
rm -f conftest$ac_exeext
 
4239
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4240
  (eval $ac_link) 2>&5
 
4241
  ac_status=$?
 
4242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4243
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4245
  (eval $ac_try) 2>&5
 
4246
  ac_status=$?
 
4247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4248
  (exit $ac_status); }; }; then
 
4249
  :
 
4250
else
 
4251
  echo "$as_me: program exited with status $ac_status" >&5
 
4252
echo "$as_me: failed program was:" >&5
 
4253
sed 's/^/| /' conftest.$ac_ext >&5
 
4254
 
 
4255
( exit $ac_status )
 
4256
ac_cv_header_stdc=no
 
4257
fi
 
4258
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4259
fi
 
4260
fi
 
4261
fi
 
4262
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4263
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4264
if test $ac_cv_header_stdc = yes; then
 
4265
 
 
4266
cat >>confdefs.h <<\_ACEOF
 
4267
#define STDC_HEADERS 1
 
4268
_ACEOF
 
4269
 
 
4270
fi
 
4271
 
 
4272
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4273
 
 
4274
 
 
4275
 
 
4276
 
 
4277
 
 
4278
 
 
4279
 
 
4280
 
 
4281
 
 
4282
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4283
                  inttypes.h stdint.h unistd.h
 
4284
do
 
4285
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4286
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4287
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4288
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4289
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4290
else
 
4291
  cat >conftest.$ac_ext <<_ACEOF
 
4292
/* confdefs.h.  */
 
4293
_ACEOF
 
4294
cat confdefs.h >>conftest.$ac_ext
 
4295
cat >>conftest.$ac_ext <<_ACEOF
 
4296
/* end confdefs.h.  */
 
4297
$ac_includes_default
 
4298
 
 
4299
#include <$ac_header>
 
4300
_ACEOF
 
4301
rm -f conftest.$ac_objext
 
4302
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4303
  (eval $ac_compile) 2>conftest.er1
 
4304
  ac_status=$?
 
4305
  grep -v '^ *+' conftest.er1 >conftest.err
 
4306
  rm -f conftest.er1
 
4307
  cat conftest.err >&5
 
4308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4309
  (exit $ac_status); } &&
 
4310
         { ac_try='test -z "$ac_c_werror_flag"
 
4311
                         || test ! -s conftest.err'
 
4312
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4313
  (eval $ac_try) 2>&5
 
4314
  ac_status=$?
 
4315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4316
  (exit $ac_status); }; } &&
 
4317
         { ac_try='test -s conftest.$ac_objext'
 
4318
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4319
  (eval $ac_try) 2>&5
 
4320
  ac_status=$?
 
4321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4322
  (exit $ac_status); }; }; then
 
4323
  eval "$as_ac_Header=yes"
 
4324
else
 
4325
  echo "$as_me: failed program was:" >&5
 
4326
sed 's/^/| /' conftest.$ac_ext >&5
 
4327
 
 
4328
eval "$as_ac_Header=no"
 
4329
fi
 
4330
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4331
fi
 
4332
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4333
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4334
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4335
  cat >>confdefs.h <<_ACEOF
 
4336
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4337
_ACEOF
 
4338
 
 
4339
fi
 
4340
 
 
4341
done
 
4342
 
 
4343
 
 
4344
 
 
4345
for ac_header in dlfcn.h
 
4346
do
 
4347
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4348
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4349
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4350
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4351
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4352
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4353
fi
 
4354
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4355
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4356
else
 
4357
  # Is the header compilable?
 
4358
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4359
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4360
cat >conftest.$ac_ext <<_ACEOF
 
4361
/* confdefs.h.  */
 
4362
_ACEOF
 
4363
cat confdefs.h >>conftest.$ac_ext
 
4364
cat >>conftest.$ac_ext <<_ACEOF
 
4365
/* end confdefs.h.  */
 
4366
$ac_includes_default
 
4367
#include <$ac_header>
 
4368
_ACEOF
 
4369
rm -f conftest.$ac_objext
 
4370
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4371
  (eval $ac_compile) 2>conftest.er1
 
4372
  ac_status=$?
 
4373
  grep -v '^ *+' conftest.er1 >conftest.err
 
4374
  rm -f conftest.er1
 
4375
  cat conftest.err >&5
 
4376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4377
  (exit $ac_status); } &&
 
4378
         { ac_try='test -z "$ac_c_werror_flag"
 
4379
                         || test ! -s conftest.err'
 
4380
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4381
  (eval $ac_try) 2>&5
 
4382
  ac_status=$?
 
4383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4384
  (exit $ac_status); }; } &&
 
4385
         { ac_try='test -s conftest.$ac_objext'
 
4386
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4387
  (eval $ac_try) 2>&5
 
4388
  ac_status=$?
 
4389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4390
  (exit $ac_status); }; }; then
 
4391
  ac_header_compiler=yes
 
4392
else
 
4393
  echo "$as_me: failed program was:" >&5
 
4394
sed 's/^/| /' conftest.$ac_ext >&5
 
4395
 
 
4396
ac_header_compiler=no
 
4397
fi
 
4398
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4399
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4400
echo "${ECHO_T}$ac_header_compiler" >&6
 
4401
 
 
4402
# Is the header present?
 
4403
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4404
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4405
cat >conftest.$ac_ext <<_ACEOF
 
4406
/* confdefs.h.  */
 
4407
_ACEOF
 
4408
cat confdefs.h >>conftest.$ac_ext
 
4409
cat >>conftest.$ac_ext <<_ACEOF
 
4410
/* end confdefs.h.  */
 
4411
#include <$ac_header>
 
4412
_ACEOF
 
4413
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4414
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4415
  ac_status=$?
 
4416
  grep -v '^ *+' conftest.er1 >conftest.err
 
4417
  rm -f conftest.er1
 
4418
  cat conftest.err >&5
 
4419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4420
  (exit $ac_status); } >/dev/null; then
 
4421
  if test -s conftest.err; then
 
4422
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4423
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4424
  else
 
4425
    ac_cpp_err=
 
4426
  fi
 
4427
else
 
4428
  ac_cpp_err=yes
 
4429
fi
 
4430
if test -z "$ac_cpp_err"; then
 
4431
  ac_header_preproc=yes
 
4432
else
 
4433
  echo "$as_me: failed program was:" >&5
 
4434
sed 's/^/| /' conftest.$ac_ext >&5
 
4435
 
 
4436
  ac_header_preproc=no
 
4437
fi
 
4438
rm -f conftest.err conftest.$ac_ext
 
4439
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4440
echo "${ECHO_T}$ac_header_preproc" >&6
 
4441
 
 
4442
# So?  What about this header?
 
4443
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4444
  yes:no: )
 
4445
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4446
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4447
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4448
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4449
    ac_header_preproc=yes
 
4450
    ;;
 
4451
  no:yes:* )
 
4452
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4453
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4454
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4455
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4456
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4457
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4458
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4459
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4460
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4461
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4462
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4463
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4464
    (
 
4465
      cat <<\_ASBOX
 
4466
## ------------------------------- ##
 
4467
## Report this to the umem lists.  ##
 
4468
## ------------------------------- ##
 
4469
_ASBOX
 
4470
    ) |
 
4471
      sed "s/^/$as_me: WARNING:     /" >&2
 
4472
    ;;
 
4473
esac
 
4474
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4475
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4476
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4477
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4478
else
 
4479
  eval "$as_ac_Header=\$ac_header_preproc"
 
4480
fi
 
4481
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4482
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4483
 
 
4484
fi
 
4485
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4486
  cat >>confdefs.h <<_ACEOF
 
4487
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4488
_ACEOF
 
4489
 
 
4490
fi
 
4491
 
 
4492
done
 
4493
 
 
4494
ac_ext=cc
 
4495
ac_cpp='$CXXCPP $CPPFLAGS'
 
4496
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4497
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4498
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4499
if test -n "$ac_tool_prefix"; then
 
4500
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4501
  do
 
4502
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4503
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4504
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4505
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4506
if test "${ac_cv_prog_CXX+set}" = set; then
 
4507
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4508
else
 
4509
  if test -n "$CXX"; then
 
4510
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4511
else
 
4512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4513
for as_dir in $PATH
 
4514
do
 
4515
  IFS=$as_save_IFS
 
4516
  test -z "$as_dir" && as_dir=.
 
4517
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4518
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4519
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4520
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4521
    break 2
 
4522
  fi
 
4523
done
 
4524
done
 
4525
 
 
4526
fi
 
4527
fi
 
4528
CXX=$ac_cv_prog_CXX
 
4529
if test -n "$CXX"; then
 
4530
  echo "$as_me:$LINENO: result: $CXX" >&5
 
4531
echo "${ECHO_T}$CXX" >&6
 
4532
else
 
4533
  echo "$as_me:$LINENO: result: no" >&5
 
4534
echo "${ECHO_T}no" >&6
 
4535
fi
 
4536
 
 
4537
    test -n "$CXX" && break
 
4538
  done
 
4539
fi
 
4540
if test -z "$CXX"; then
 
4541
  ac_ct_CXX=$CXX
 
4542
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4543
do
 
4544
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4545
set dummy $ac_prog; ac_word=$2
 
4546
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4547
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4548
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4549
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4550
else
 
4551
  if test -n "$ac_ct_CXX"; then
 
4552
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4553
else
 
4554
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4555
for as_dir in $PATH
 
4556
do
 
4557
  IFS=$as_save_IFS
 
4558
  test -z "$as_dir" && as_dir=.
 
4559
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4560
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4561
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4562
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4563
    break 2
 
4564
  fi
 
4565
done
 
4566
done
 
4567
 
 
4568
fi
 
4569
fi
 
4570
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4571
if test -n "$ac_ct_CXX"; then
 
4572
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4573
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4574
else
 
4575
  echo "$as_me:$LINENO: result: no" >&5
 
4576
echo "${ECHO_T}no" >&6
 
4577
fi
 
4578
 
 
4579
  test -n "$ac_ct_CXX" && break
 
4580
done
 
4581
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4582
 
 
4583
  CXX=$ac_ct_CXX
 
4584
fi
 
4585
 
 
4586
 
 
4587
# Provide some information about the compiler.
 
4588
echo "$as_me:$LINENO:" \
 
4589
     "checking for C++ compiler version" >&5
 
4590
ac_compiler=`set X $ac_compile; echo $2`
 
4591
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4592
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4593
  ac_status=$?
 
4594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4595
  (exit $ac_status); }
 
4596
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4597
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4598
  ac_status=$?
 
4599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4600
  (exit $ac_status); }
 
4601
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4602
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4603
  ac_status=$?
 
4604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4605
  (exit $ac_status); }
 
4606
 
 
4607
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4608
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4609
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4611
else
 
4612
  cat >conftest.$ac_ext <<_ACEOF
 
4613
/* confdefs.h.  */
 
4614
_ACEOF
 
4615
cat confdefs.h >>conftest.$ac_ext
 
4616
cat >>conftest.$ac_ext <<_ACEOF
 
4617
/* end confdefs.h.  */
 
4618
 
 
4619
int
 
4620
main ()
 
4621
{
 
4622
#ifndef __GNUC__
 
4623
       choke me
 
4624
#endif
 
4625
 
 
4626
  ;
 
4627
  return 0;
 
4628
}
 
4629
_ACEOF
 
4630
rm -f conftest.$ac_objext
 
4631
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4632
  (eval $ac_compile) 2>conftest.er1
 
4633
  ac_status=$?
 
4634
  grep -v '^ *+' conftest.er1 >conftest.err
 
4635
  rm -f conftest.er1
 
4636
  cat conftest.err >&5
 
4637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4638
  (exit $ac_status); } &&
 
4639
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4640
                         || test ! -s conftest.err'
 
4641
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4642
  (eval $ac_try) 2>&5
 
4643
  ac_status=$?
 
4644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4645
  (exit $ac_status); }; } &&
 
4646
         { ac_try='test -s conftest.$ac_objext'
 
4647
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4648
  (eval $ac_try) 2>&5
 
4649
  ac_status=$?
 
4650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4651
  (exit $ac_status); }; }; then
 
4652
  ac_compiler_gnu=yes
 
4653
else
 
4654
  echo "$as_me: failed program was:" >&5
 
4655
sed 's/^/| /' conftest.$ac_ext >&5
 
4656
 
 
4657
ac_compiler_gnu=no
 
4658
fi
 
4659
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4660
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4661
 
 
4662
fi
 
4663
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4664
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4665
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4666
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4667
ac_save_CXXFLAGS=$CXXFLAGS
 
4668
CXXFLAGS="-g"
 
4669
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4670
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4671
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4673
else
 
4674
  cat >conftest.$ac_ext <<_ACEOF
 
4675
/* confdefs.h.  */
 
4676
_ACEOF
 
4677
cat confdefs.h >>conftest.$ac_ext
 
4678
cat >>conftest.$ac_ext <<_ACEOF
 
4679
/* end confdefs.h.  */
 
4680
 
 
4681
int
 
4682
main ()
 
4683
{
 
4684
 
 
4685
  ;
 
4686
  return 0;
 
4687
}
 
4688
_ACEOF
 
4689
rm -f conftest.$ac_objext
 
4690
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4691
  (eval $ac_compile) 2>conftest.er1
 
4692
  ac_status=$?
 
4693
  grep -v '^ *+' conftest.er1 >conftest.err
 
4694
  rm -f conftest.er1
 
4695
  cat conftest.err >&5
 
4696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4697
  (exit $ac_status); } &&
 
4698
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4699
                         || test ! -s conftest.err'
 
4700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4701
  (eval $ac_try) 2>&5
 
4702
  ac_status=$?
 
4703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4704
  (exit $ac_status); }; } &&
 
4705
         { ac_try='test -s conftest.$ac_objext'
 
4706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4707
  (eval $ac_try) 2>&5
 
4708
  ac_status=$?
 
4709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4710
  (exit $ac_status); }; }; then
 
4711
  ac_cv_prog_cxx_g=yes
 
4712
else
 
4713
  echo "$as_me: failed program was:" >&5
 
4714
sed 's/^/| /' conftest.$ac_ext >&5
 
4715
 
 
4716
ac_cv_prog_cxx_g=no
 
4717
fi
 
4718
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4719
fi
 
4720
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4721
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4722
if test "$ac_test_CXXFLAGS" = set; then
 
4723
  CXXFLAGS=$ac_save_CXXFLAGS
 
4724
elif test $ac_cv_prog_cxx_g = yes; then
 
4725
  if test "$GXX" = yes; then
 
4726
    CXXFLAGS="-g -O2"
 
4727
  else
 
4728
    CXXFLAGS="-g"
 
4729
  fi
 
4730
else
 
4731
  if test "$GXX" = yes; then
 
4732
    CXXFLAGS="-O2"
 
4733
  else
 
4734
    CXXFLAGS=
 
4735
  fi
 
4736
fi
 
4737
for ac_declaration in \
 
4738
   '' \
 
4739
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4740
   'extern "C" void std::exit (int); using std::exit;' \
 
4741
   'extern "C" void exit (int) throw ();' \
 
4742
   'extern "C" void exit (int);' \
 
4743
   'void exit (int);'
 
4744
do
 
4745
  cat >conftest.$ac_ext <<_ACEOF
 
4746
/* confdefs.h.  */
 
4747
_ACEOF
 
4748
cat confdefs.h >>conftest.$ac_ext
 
4749
cat >>conftest.$ac_ext <<_ACEOF
 
4750
/* end confdefs.h.  */
 
4751
$ac_declaration
 
4752
#include <stdlib.h>
 
4753
int
 
4754
main ()
 
4755
{
 
4756
exit (42);
 
4757
  ;
 
4758
  return 0;
 
4759
}
 
4760
_ACEOF
 
4761
rm -f conftest.$ac_objext
 
4762
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4763
  (eval $ac_compile) 2>conftest.er1
 
4764
  ac_status=$?
 
4765
  grep -v '^ *+' conftest.er1 >conftest.err
 
4766
  rm -f conftest.er1
 
4767
  cat conftest.err >&5
 
4768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4769
  (exit $ac_status); } &&
 
4770
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4771
                         || test ! -s conftest.err'
 
4772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4773
  (eval $ac_try) 2>&5
 
4774
  ac_status=$?
 
4775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4776
  (exit $ac_status); }; } &&
 
4777
         { ac_try='test -s conftest.$ac_objext'
 
4778
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4779
  (eval $ac_try) 2>&5
 
4780
  ac_status=$?
 
4781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4782
  (exit $ac_status); }; }; then
 
4783
  :
 
4784
else
 
4785
  echo "$as_me: failed program was:" >&5
 
4786
sed 's/^/| /' conftest.$ac_ext >&5
 
4787
 
 
4788
continue
 
4789
fi
 
4790
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4791
  cat >conftest.$ac_ext <<_ACEOF
 
4792
/* confdefs.h.  */
 
4793
_ACEOF
 
4794
cat confdefs.h >>conftest.$ac_ext
 
4795
cat >>conftest.$ac_ext <<_ACEOF
 
4796
/* end confdefs.h.  */
 
4797
$ac_declaration
 
4798
int
 
4799
main ()
 
4800
{
 
4801
exit (42);
 
4802
  ;
 
4803
  return 0;
 
4804
}
 
4805
_ACEOF
 
4806
rm -f conftest.$ac_objext
 
4807
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4808
  (eval $ac_compile) 2>conftest.er1
 
4809
  ac_status=$?
 
4810
  grep -v '^ *+' conftest.er1 >conftest.err
 
4811
  rm -f conftest.er1
 
4812
  cat conftest.err >&5
 
4813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4814
  (exit $ac_status); } &&
 
4815
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4816
                         || test ! -s conftest.err'
 
4817
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4818
  (eval $ac_try) 2>&5
 
4819
  ac_status=$?
 
4820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4821
  (exit $ac_status); }; } &&
 
4822
         { ac_try='test -s conftest.$ac_objext'
 
4823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4824
  (eval $ac_try) 2>&5
 
4825
  ac_status=$?
 
4826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4827
  (exit $ac_status); }; }; then
 
4828
  break
 
4829
else
 
4830
  echo "$as_me: failed program was:" >&5
 
4831
sed 's/^/| /' conftest.$ac_ext >&5
 
4832
 
 
4833
fi
 
4834
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4835
done
 
4836
rm -f conftest*
 
4837
if test -n "$ac_declaration"; then
 
4838
  echo '#ifdef __cplusplus' >>confdefs.h
 
4839
  echo $ac_declaration      >>confdefs.h
 
4840
  echo '#endif'             >>confdefs.h
 
4841
fi
 
4842
 
 
4843
ac_ext=cc
 
4844
ac_cpp='$CXXCPP $CPPFLAGS'
 
4845
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4846
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4847
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4848
 
 
4849
depcc="$CXX"  am_compiler_list=
 
4850
 
 
4851
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4852
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4853
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
4854
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4855
else
 
4856
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4857
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4858
  # making bogus files that we don't know about and never remove.  For
 
4859
  # instance it was reported that on HP-UX the gcc test will end up
 
4860
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4861
  # in D'.
 
4862
  mkdir conftest.dir
 
4863
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4864
  # using a relative directory.
 
4865
  cp "$am_depcomp" conftest.dir
 
4866
  cd conftest.dir
 
4867
  # We will build objects and dependencies in a subdirectory because
 
4868
  # it helps to detect inapplicable dependency modes.  For instance
 
4869
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4870
  # side effect of compilation, but ICC will put the dependencies in
 
4871
  # the current directory while Tru64 will put them in the object
 
4872
  # directory.
 
4873
  mkdir sub
 
4874
 
 
4875
  am_cv_CXX_dependencies_compiler_type=none
 
4876
  if test "$am_compiler_list" = ""; then
 
4877
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4878
  fi
 
4879
  for depmode in $am_compiler_list; do
 
4880
    # Setup a source with many dependencies, because some compilers
 
4881
    # like to wrap large dependency lists on column 80 (with \), and
 
4882
    # we should not choose a depcomp mode which is confused by this.
 
4883
    #
 
4884
    # We need to recreate these files for each test, as the compiler may
 
4885
    # overwrite some of them when testing with obscure command lines.
 
4886
    # This happens at least with the AIX C compiler.
 
4887
    : > sub/conftest.c
 
4888
    for i in 1 2 3 4 5 6; do
 
4889
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4890
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4891
      # Solaris 8's {/usr,}/bin/sh.
 
4892
      touch sub/conftst$i.h
 
4893
    done
 
4894
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4895
 
 
4896
    case $depmode in
 
4897
    nosideeffect)
 
4898
      # after this tag, mechanisms are not by side-effect, so they'll
 
4899
      # only be used when explicitly requested
 
4900
      if test "x$enable_dependency_tracking" = xyes; then
 
4901
        continue
 
4902
      else
 
4903
        break
 
4904
      fi
 
4905
      ;;
 
4906
    none) break ;;
 
4907
    esac
 
4908
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4909
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4910
    # handle `-M -o', and we need to detect this.
 
4911
    if depmode=$depmode \
 
4912
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4913
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4914
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4915
         >/dev/null 2>conftest.err &&
 
4916
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4917
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4918
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4919
      # icc doesn't choke on unknown options, it will just issue warnings
 
4920
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4921
      # that says an option was ignored or not supported.
 
4922
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4923
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4924
      # The diagnosis changed in icc 8.0:
 
4925
      #   icc: Command line remark: option '-MP' not supported
 
4926
      if (grep 'ignoring option' conftest.err ||
 
4927
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4928
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4929
        break
 
4930
      fi
 
4931
    fi
 
4932
  done
 
4933
 
 
4934
  cd ..
 
4935
  rm -rf conftest.dir
 
4936
else
 
4937
  am_cv_CXX_dependencies_compiler_type=none
 
4938
fi
 
4939
 
 
4940
fi
 
4941
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4942
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
4943
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4944
 
 
4945
 
 
4946
 
 
4947
if
 
4948
  test "x$enable_dependency_tracking" != xno \
 
4949
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4950
  am__fastdepCXX_TRUE=
 
4951
  am__fastdepCXX_FALSE='#'
 
4952
else
 
4953
  am__fastdepCXX_TRUE='#'
 
4954
  am__fastdepCXX_FALSE=
 
4955
fi
 
4956
 
 
4957
 
 
4958
 
 
4959
 
 
4960
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
4961
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
4962
    (test "X$CXX" != "Xg++"))) ; then
 
4963
  ac_ext=cc
 
4964
ac_cpp='$CXXCPP $CPPFLAGS'
 
4965
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4966
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4967
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4968
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
4969
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
4970
if test -z "$CXXCPP"; then
 
4971
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
4972
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4973
else
 
4974
      # Double quotes because CXXCPP needs to be expanded
 
4975
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
4976
    do
 
4977
      ac_preproc_ok=false
 
4978
for ac_cxx_preproc_warn_flag in '' yes
 
4979
do
 
4980
  # Use a header file that comes with gcc, so configuring glibc
 
4981
  # with a fresh cross-compiler works.
 
4982
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4983
  # <limits.h> exists even on freestanding compilers.
 
4984
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4985
  # not just through cpp. "Syntax error" is here to catch this case.
 
4986
  cat >conftest.$ac_ext <<_ACEOF
 
4987
/* confdefs.h.  */
 
4988
_ACEOF
 
4989
cat confdefs.h >>conftest.$ac_ext
 
4990
cat >>conftest.$ac_ext <<_ACEOF
 
4991
/* end confdefs.h.  */
 
4992
#ifdef __STDC__
 
4993
# include <limits.h>
 
4994
#else
 
4995
# include <assert.h>
 
4996
#endif
 
4997
                     Syntax error
 
4998
_ACEOF
 
4999
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5000
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5001
  ac_status=$?
 
5002
  grep -v '^ *+' conftest.er1 >conftest.err
 
5003
  rm -f conftest.er1
 
5004
  cat conftest.err >&5
 
5005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5006
  (exit $ac_status); } >/dev/null; then
 
5007
  if test -s conftest.err; then
 
5008
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5009
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5010
  else
 
5011
    ac_cpp_err=
 
5012
  fi
 
5013
else
 
5014
  ac_cpp_err=yes
 
5015
fi
 
5016
if test -z "$ac_cpp_err"; then
 
5017
  :
 
5018
else
 
5019
  echo "$as_me: failed program was:" >&5
 
5020
sed 's/^/| /' conftest.$ac_ext >&5
 
5021
 
 
5022
  # Broken: fails on valid input.
 
5023
continue
 
5024
fi
 
5025
rm -f conftest.err conftest.$ac_ext
 
5026
 
 
5027
  # OK, works on sane cases.  Now check whether non-existent headers
 
5028
  # can be detected and how.
 
5029
  cat >conftest.$ac_ext <<_ACEOF
 
5030
/* confdefs.h.  */
 
5031
_ACEOF
 
5032
cat confdefs.h >>conftest.$ac_ext
 
5033
cat >>conftest.$ac_ext <<_ACEOF
 
5034
/* end confdefs.h.  */
 
5035
#include <ac_nonexistent.h>
 
5036
_ACEOF
 
5037
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5038
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5039
  ac_status=$?
 
5040
  grep -v '^ *+' conftest.er1 >conftest.err
 
5041
  rm -f conftest.er1
 
5042
  cat conftest.err >&5
 
5043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5044
  (exit $ac_status); } >/dev/null; then
 
5045
  if test -s conftest.err; then
 
5046
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5047
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5048
  else
 
5049
    ac_cpp_err=
 
5050
  fi
 
5051
else
 
5052
  ac_cpp_err=yes
 
5053
fi
 
5054
if test -z "$ac_cpp_err"; then
 
5055
  # Broken: success on invalid input.
 
5056
continue
 
5057
else
 
5058
  echo "$as_me: failed program was:" >&5
 
5059
sed 's/^/| /' conftest.$ac_ext >&5
 
5060
 
 
5061
  # Passes both tests.
 
5062
ac_preproc_ok=:
 
5063
break
 
5064
fi
 
5065
rm -f conftest.err conftest.$ac_ext
 
5066
 
 
5067
done
 
5068
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5069
rm -f conftest.err conftest.$ac_ext
 
5070
if $ac_preproc_ok; then
 
5071
  break
 
5072
fi
 
5073
 
 
5074
    done
 
5075
    ac_cv_prog_CXXCPP=$CXXCPP
 
5076
 
 
5077
fi
 
5078
  CXXCPP=$ac_cv_prog_CXXCPP
 
5079
else
 
5080
  ac_cv_prog_CXXCPP=$CXXCPP
 
5081
fi
 
5082
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5083
echo "${ECHO_T}$CXXCPP" >&6
 
5084
ac_preproc_ok=false
 
5085
for ac_cxx_preproc_warn_flag in '' yes
 
5086
do
 
5087
  # Use a header file that comes with gcc, so configuring glibc
 
5088
  # with a fresh cross-compiler works.
 
5089
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5090
  # <limits.h> exists even on freestanding compilers.
 
5091
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5092
  # not just through cpp. "Syntax error" is here to catch this case.
 
5093
  cat >conftest.$ac_ext <<_ACEOF
 
5094
/* confdefs.h.  */
 
5095
_ACEOF
 
5096
cat confdefs.h >>conftest.$ac_ext
 
5097
cat >>conftest.$ac_ext <<_ACEOF
 
5098
/* end confdefs.h.  */
 
5099
#ifdef __STDC__
 
5100
# include <limits.h>
 
5101
#else
 
5102
# include <assert.h>
 
5103
#endif
 
5104
                     Syntax error
 
5105
_ACEOF
 
5106
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5107
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5108
  ac_status=$?
 
5109
  grep -v '^ *+' conftest.er1 >conftest.err
 
5110
  rm -f conftest.er1
 
5111
  cat conftest.err >&5
 
5112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5113
  (exit $ac_status); } >/dev/null; then
 
5114
  if test -s conftest.err; then
 
5115
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5116
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5117
  else
 
5118
    ac_cpp_err=
 
5119
  fi
 
5120
else
 
5121
  ac_cpp_err=yes
 
5122
fi
 
5123
if test -z "$ac_cpp_err"; then
 
5124
  :
 
5125
else
 
5126
  echo "$as_me: failed program was:" >&5
 
5127
sed 's/^/| /' conftest.$ac_ext >&5
 
5128
 
 
5129
  # Broken: fails on valid input.
 
5130
continue
 
5131
fi
 
5132
rm -f conftest.err conftest.$ac_ext
 
5133
 
 
5134
  # OK, works on sane cases.  Now check whether non-existent headers
 
5135
  # can be detected and how.
 
5136
  cat >conftest.$ac_ext <<_ACEOF
 
5137
/* confdefs.h.  */
 
5138
_ACEOF
 
5139
cat confdefs.h >>conftest.$ac_ext
 
5140
cat >>conftest.$ac_ext <<_ACEOF
 
5141
/* end confdefs.h.  */
 
5142
#include <ac_nonexistent.h>
 
5143
_ACEOF
 
5144
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5145
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5146
  ac_status=$?
 
5147
  grep -v '^ *+' conftest.er1 >conftest.err
 
5148
  rm -f conftest.er1
 
5149
  cat conftest.err >&5
 
5150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5151
  (exit $ac_status); } >/dev/null; then
 
5152
  if test -s conftest.err; then
 
5153
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5154
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5155
  else
 
5156
    ac_cpp_err=
 
5157
  fi
 
5158
else
 
5159
  ac_cpp_err=yes
 
5160
fi
 
5161
if test -z "$ac_cpp_err"; then
 
5162
  # Broken: success on invalid input.
 
5163
continue
 
5164
else
 
5165
  echo "$as_me: failed program was:" >&5
 
5166
sed 's/^/| /' conftest.$ac_ext >&5
 
5167
 
 
5168
  # Passes both tests.
 
5169
ac_preproc_ok=:
 
5170
break
 
5171
fi
 
5172
rm -f conftest.err conftest.$ac_ext
 
5173
 
 
5174
done
 
5175
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5176
rm -f conftest.err conftest.$ac_ext
 
5177
if $ac_preproc_ok; then
 
5178
  :
 
5179
else
 
5180
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5181
See \`config.log' for more details." >&5
 
5182
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5183
See \`config.log' for more details." >&2;}
 
5184
   { (exit 1); exit 1; }; }
 
5185
fi
 
5186
 
 
5187
ac_ext=cc
 
5188
ac_cpp='$CXXCPP $CPPFLAGS'
 
5189
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5190
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5191
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5192
 
 
5193
fi
 
5194
 
 
5195
 
 
5196
ac_ext=f
 
5197
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5198
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5199
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5200
if test -n "$ac_tool_prefix"; then
 
5201
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5202
  do
 
5203
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5204
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5205
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5206
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5207
if test "${ac_cv_prog_F77+set}" = set; then
 
5208
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5209
else
 
5210
  if test -n "$F77"; then
 
5211
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5212
else
 
5213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5214
for as_dir in $PATH
 
5215
do
 
5216
  IFS=$as_save_IFS
 
5217
  test -z "$as_dir" && as_dir=.
 
5218
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5219
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5220
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5221
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5222
    break 2
 
5223
  fi
 
5224
done
 
5225
done
 
5226
 
 
5227
fi
 
5228
fi
 
5229
F77=$ac_cv_prog_F77
 
5230
if test -n "$F77"; then
 
5231
  echo "$as_me:$LINENO: result: $F77" >&5
 
5232
echo "${ECHO_T}$F77" >&6
 
5233
else
 
5234
  echo "$as_me:$LINENO: result: no" >&5
 
5235
echo "${ECHO_T}no" >&6
 
5236
fi
 
5237
 
 
5238
    test -n "$F77" && break
 
5239
  done
 
5240
fi
 
5241
if test -z "$F77"; then
 
5242
  ac_ct_F77=$F77
 
5243
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5244
do
 
5245
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5246
set dummy $ac_prog; ac_word=$2
 
5247
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5248
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5249
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5250
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5251
else
 
5252
  if test -n "$ac_ct_F77"; then
 
5253
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5254
else
 
5255
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5256
for as_dir in $PATH
 
5257
do
 
5258
  IFS=$as_save_IFS
 
5259
  test -z "$as_dir" && as_dir=.
 
5260
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5261
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5262
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5263
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5264
    break 2
 
5265
  fi
 
5266
done
 
5267
done
 
5268
 
 
5269
fi
 
5270
fi
 
5271
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5272
if test -n "$ac_ct_F77"; then
 
5273
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5274
echo "${ECHO_T}$ac_ct_F77" >&6
 
5275
else
 
5276
  echo "$as_me:$LINENO: result: no" >&5
 
5277
echo "${ECHO_T}no" >&6
 
5278
fi
 
5279
 
 
5280
  test -n "$ac_ct_F77" && break
 
5281
done
 
5282
 
 
5283
  F77=$ac_ct_F77
 
5284
fi
 
5285
 
 
5286
 
 
5287
# Provide some information about the compiler.
 
5288
echo "$as_me:5288:" \
 
5289
     "checking for Fortran 77 compiler version" >&5
 
5290
ac_compiler=`set X $ac_compile; echo $2`
 
5291
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5292
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5293
  ac_status=$?
 
5294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5295
  (exit $ac_status); }
 
5296
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5297
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5298
  ac_status=$?
 
5299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5300
  (exit $ac_status); }
 
5301
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5302
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5303
  ac_status=$?
 
5304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5305
  (exit $ac_status); }
 
5306
rm -f a.out
 
5307
 
 
5308
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5309
# input file.  (Note that this only needs to work for GNU compilers.)
 
5310
ac_save_ext=$ac_ext
 
5311
ac_ext=F
 
5312
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5313
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
5314
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5315
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5316
else
 
5317
  cat >conftest.$ac_ext <<_ACEOF
 
5318
      program main
 
5319
#ifndef __GNUC__
 
5320
       choke me
 
5321
#endif
 
5322
 
 
5323
      end
 
5324
_ACEOF
 
5325
rm -f conftest.$ac_objext
 
5326
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5327
  (eval $ac_compile) 2>conftest.er1
 
5328
  ac_status=$?
 
5329
  grep -v '^ *+' conftest.er1 >conftest.err
 
5330
  rm -f conftest.er1
 
5331
  cat conftest.err >&5
 
5332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5333
  (exit $ac_status); } &&
 
5334
         { ac_try='test -z "$ac_f77_werror_flag"
 
5335
                         || test ! -s conftest.err'
 
5336
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5337
  (eval $ac_try) 2>&5
 
5338
  ac_status=$?
 
5339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5340
  (exit $ac_status); }; } &&
 
5341
         { ac_try='test -s conftest.$ac_objext'
 
5342
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5343
  (eval $ac_try) 2>&5
 
5344
  ac_status=$?
 
5345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5346
  (exit $ac_status); }; }; then
 
5347
  ac_compiler_gnu=yes
 
5348
else
 
5349
  echo "$as_me: failed program was:" >&5
 
5350
sed 's/^/| /' conftest.$ac_ext >&5
 
5351
 
 
5352
ac_compiler_gnu=no
 
5353
fi
 
5354
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5355
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
5356
 
 
5357
fi
 
5358
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5359
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
5360
ac_ext=$ac_save_ext
 
5361
ac_test_FFLAGS=${FFLAGS+set}
 
5362
ac_save_FFLAGS=$FFLAGS
 
5363
FFLAGS=
 
5364
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5365
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
5366
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5367
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5368
else
 
5369
  FFLAGS=-g
 
5370
cat >conftest.$ac_ext <<_ACEOF
 
5371
      program main
 
5372
 
 
5373
      end
 
5374
_ACEOF
 
5375
rm -f conftest.$ac_objext
 
5376
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5377
  (eval $ac_compile) 2>conftest.er1
 
5378
  ac_status=$?
 
5379
  grep -v '^ *+' conftest.er1 >conftest.err
 
5380
  rm -f conftest.er1
 
5381
  cat conftest.err >&5
 
5382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5383
  (exit $ac_status); } &&
 
5384
         { ac_try='test -z "$ac_f77_werror_flag"
 
5385
                         || test ! -s conftest.err'
 
5386
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5387
  (eval $ac_try) 2>&5
 
5388
  ac_status=$?
 
5389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5390
  (exit $ac_status); }; } &&
 
5391
         { ac_try='test -s conftest.$ac_objext'
 
5392
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5393
  (eval $ac_try) 2>&5
 
5394
  ac_status=$?
 
5395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5396
  (exit $ac_status); }; }; then
 
5397
  ac_cv_prog_f77_g=yes
 
5398
else
 
5399
  echo "$as_me: failed program was:" >&5
 
5400
sed 's/^/| /' conftest.$ac_ext >&5
 
5401
 
 
5402
ac_cv_prog_f77_g=no
 
5403
fi
 
5404
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5405
 
 
5406
fi
 
5407
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5408
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
5409
if test "$ac_test_FFLAGS" = set; then
 
5410
  FFLAGS=$ac_save_FFLAGS
 
5411
elif test $ac_cv_prog_f77_g = yes; then
 
5412
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5413
    FFLAGS="-g -O2"
 
5414
  else
 
5415
    FFLAGS="-g"
 
5416
  fi
 
5417
else
 
5418
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5419
    FFLAGS="-O2"
 
5420
  else
 
5421
    FFLAGS=
 
5422
  fi
 
5423
fi
 
5424
 
 
5425
G77=`test $ac_compiler_gnu = yes && echo yes`
 
5426
ac_ext=c
 
5427
ac_cpp='$CPP $CPPFLAGS'
 
5428
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5429
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5430
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5431
 
 
5432
 
 
5433
 
 
5434
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
5435
 
 
5436
# find the maximum length of command line arguments
 
5437
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5438
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
5439
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5440
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5441
else
 
5442
    i=0
 
5443
  teststring="ABCD"
 
5444
 
 
5445
  case $build_os in
 
5446
  msdosdjgpp*)
 
5447
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5448
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5449
    # during glob expansion).  Even if it were fixed, the result of this
 
5450
    # check would be larger than it should be.
 
5451
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5452
    ;;
 
5453
 
 
5454
  gnu*)
 
5455
    # Under GNU Hurd, this test is not required because there is
 
5456
    # no limit to the length of command line arguments.
 
5457
    # Libtool will interpret -1 as no limit whatsoever
 
5458
    lt_cv_sys_max_cmd_len=-1;
 
5459
    ;;
 
5460
 
 
5461
  cygwin* | mingw*)
 
5462
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5463
    # about 5 minutes as the teststring grows exponentially.
 
5464
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5465
    # you end up with a "frozen" computer, even though with patience
 
5466
    # the test eventually succeeds (with a max line length of 256k).
 
5467
    # Instead, let's just punt: use the minimum linelength reported by
 
5468
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5469
    lt_cv_sys_max_cmd_len=8192;
 
5470
    ;;
 
5471
 
 
5472
  amigaos*)
 
5473
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5474
    # So we just punt and use a minimum line length of 8192.
 
5475
    lt_cv_sys_max_cmd_len=8192;
 
5476
    ;;
 
5477
 
 
5478
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5479
    # This has been around since 386BSD, at least.  Likely further.
 
5480
    if test -x /sbin/sysctl; then
 
5481
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5482
    elif test -x /usr/sbin/sysctl; then
 
5483
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5484
    else
 
5485
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5486
    fi
 
5487
    # And add a safety zone
 
5488
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5489
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5490
    ;;
 
5491
 
 
5492
  interix*)
 
5493
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5494
    lt_cv_sys_max_cmd_len=196608
 
5495
    ;;
 
5496
 
 
5497
  osf*)
 
5498
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5499
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5500
    # nice to cause kernel panics so lets avoid the loop below.
 
5501
    # First set a reasonable default.
 
5502
    lt_cv_sys_max_cmd_len=16384
 
5503
    #
 
5504
    if test -x /sbin/sysconfig; then
 
5505
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5506
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5507
      esac
 
5508
    fi
 
5509
    ;;
 
5510
  sco3.2v5*)
 
5511
    lt_cv_sys_max_cmd_len=102400
 
5512
    ;;
 
5513
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5514
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5515
    if test -n "$kargmax"; then
 
5516
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
5517
    else
 
5518
      lt_cv_sys_max_cmd_len=32768
 
5519
    fi
 
5520
    ;;
 
5521
  *)
 
5522
    # If test is not a shell built-in, we'll probably end up computing a
 
5523
    # maximum length that is only half of the actual maximum length, but
 
5524
    # we can't tell.
 
5525
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5526
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5527
               = "XX$teststring") >/dev/null 2>&1 &&
 
5528
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5529
            lt_cv_sys_max_cmd_len=$new_result &&
 
5530
            test $i != 17 # 1/2 MB should be enough
 
5531
    do
 
5532
      i=`expr $i + 1`
 
5533
      teststring=$teststring$teststring
 
5534
    done
 
5535
    teststring=
 
5536
    # Add a significant safety factor because C++ compilers can tack on massive
 
5537
    # amounts of additional arguments before passing them to the linker.
 
5538
    # It appears as though 1/2 is a usable value.
 
5539
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5540
    ;;
 
5541
  esac
 
5542
 
 
5543
fi
 
5544
 
 
5545
if test -n $lt_cv_sys_max_cmd_len ; then
 
5546
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5547
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
5548
else
 
5549
  echo "$as_me:$LINENO: result: none" >&5
 
5550
echo "${ECHO_T}none" >&6
 
5551
fi
 
5552
 
 
5553
 
 
5554
 
 
5555
 
 
5556
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5557
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5558
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
5559
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5560
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5561
else
 
5562
 
 
5563
# These are sane defaults that work on at least a few old systems.
 
5564
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5565
 
 
5566
# Character class describing NM global symbol codes.
 
5567
symcode='[BCDEGRST]'
 
5568
 
 
5569
# Regexp to match symbols that can be accessed directly from C.
 
5570
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5571
 
 
5572
# Transform an extracted symbol line into a proper C declaration
 
5573
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5574
 
 
5575
# Transform an extracted symbol line into symbol name and symbol address
 
5576
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'"
 
5577
 
 
5578
# Define system-specific variables.
 
5579
case $host_os in
 
5580
aix*)
 
5581
  symcode='[BCDT]'
 
5582
  ;;
 
5583
cygwin* | mingw* | pw32*)
 
5584
  symcode='[ABCDGISTW]'
 
5585
  ;;
 
5586
hpux*) # Its linker distinguishes data from code symbols
 
5587
  if test "$host_cpu" = ia64; then
 
5588
    symcode='[ABCDEGRST]'
 
5589
  fi
 
5590
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5591
  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'"
 
5592
  ;;
 
5593
linux*)
 
5594
  if test "$host_cpu" = ia64; then
 
5595
    symcode='[ABCDGIRSTW]'
 
5596
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5597
    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'"
 
5598
  fi
 
5599
  ;;
 
5600
irix* | nonstopux*)
 
5601
  symcode='[BCDEGRST]'
 
5602
  ;;
 
5603
osf*)
 
5604
  symcode='[BCDEGQRST]'
 
5605
  ;;
 
5606
solaris*)
 
5607
  symcode='[BDRT]'
 
5608
  ;;
 
5609
sco3.2v5*)
 
5610
  symcode='[DT]'
 
5611
  ;;
 
5612
sysv4.2uw2*)
 
5613
  symcode='[DT]'
 
5614
  ;;
 
5615
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5616
  symcode='[ABDT]'
 
5617
  ;;
 
5618
sysv4)
 
5619
  symcode='[DFNSTU]'
 
5620
  ;;
 
5621
esac
 
5622
 
 
5623
# Handle CRLF in mingw tool chain
 
5624
opt_cr=
 
5625
case $build_os in
 
5626
mingw*)
 
5627
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5628
  ;;
 
5629
esac
 
5630
 
 
5631
# If we're using GNU nm, then use its standard symbol codes.
 
5632
case `$NM -V 2>&1` in
 
5633
*GNU* | *'with BFD'*)
 
5634
  symcode='[ABCDGIRSTW]' ;;
 
5635
esac
 
5636
 
 
5637
# Try without a prefix undercore, then with it.
 
5638
for ac_symprfx in "" "_"; do
 
5639
 
 
5640
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5641
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5642
 
 
5643
  # Write the raw and C identifiers.
 
5644
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5645
 
 
5646
  # Check to see that the pipe works correctly.
 
5647
  pipe_works=no
 
5648
 
 
5649
  rm -f conftest*
 
5650
  cat > conftest.$ac_ext <<EOF
 
5651
#ifdef __cplusplus
 
5652
extern "C" {
 
5653
#endif
 
5654
char nm_test_var;
 
5655
void nm_test_func(){}
 
5656
#ifdef __cplusplus
 
5657
}
 
5658
#endif
 
5659
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5660
EOF
 
5661
 
 
5662
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5663
  (eval $ac_compile) 2>&5
 
5664
  ac_status=$?
 
5665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5666
  (exit $ac_status); }; then
 
5667
    # Now try to grab the symbols.
 
5668
    nlist=conftest.nm
 
5669
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5670
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5671
  ac_status=$?
 
5672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5673
  (exit $ac_status); } && test -s "$nlist"; then
 
5674
      # Try sorting and uniquifying the output.
 
5675
      if sort "$nlist" | uniq > "$nlist"T; then
 
5676
        mv -f "$nlist"T "$nlist"
 
5677
      else
 
5678
        rm -f "$nlist"T
 
5679
      fi
 
5680
 
 
5681
      # Make sure that we snagged all the symbols we need.
 
5682
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5683
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5684
          cat <<EOF > conftest.$ac_ext
 
5685
#ifdef __cplusplus
 
5686
extern "C" {
 
5687
#endif
 
5688
 
 
5689
EOF
 
5690
          # Now generate the symbol file.
 
5691
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5692
 
 
5693
          cat <<EOF >> conftest.$ac_ext
 
5694
#if defined (__STDC__) && __STDC__
 
5695
# define lt_ptr_t void *
 
5696
#else
 
5697
# define lt_ptr_t char *
 
5698
# define const
 
5699
#endif
 
5700
 
 
5701
/* The mapping between symbol names and symbols. */
 
5702
const struct {
 
5703
  const char *name;
 
5704
  lt_ptr_t address;
 
5705
}
 
5706
lt_preloaded_symbols[] =
 
5707
{
 
5708
EOF
 
5709
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5710
          cat <<\EOF >> conftest.$ac_ext
 
5711
  {0, (lt_ptr_t) 0}
 
5712
};
 
5713
 
 
5714
#ifdef __cplusplus
 
5715
}
 
5716
#endif
 
5717
EOF
 
5718
          # Now try linking the two files.
 
5719
          mv conftest.$ac_objext conftstm.$ac_objext
 
5720
          lt_save_LIBS="$LIBS"
 
5721
          lt_save_CFLAGS="$CFLAGS"
 
5722
          LIBS="conftstm.$ac_objext"
 
5723
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5724
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5725
  (eval $ac_link) 2>&5
 
5726
  ac_status=$?
 
5727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5728
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5729
            pipe_works=yes
 
5730
          fi
 
5731
          LIBS="$lt_save_LIBS"
 
5732
          CFLAGS="$lt_save_CFLAGS"
 
5733
        else
 
5734
          echo "cannot find nm_test_func in $nlist" >&5
 
5735
        fi
 
5736
      else
 
5737
        echo "cannot find nm_test_var in $nlist" >&5
 
5738
      fi
 
5739
    else
 
5740
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5741
    fi
 
5742
  else
 
5743
    echo "$progname: failed program was:" >&5
 
5744
    cat conftest.$ac_ext >&5
 
5745
  fi
 
5746
  rm -f conftest* conftst*
 
5747
 
 
5748
  # Do not use the global_symbol_pipe unless it works.
 
5749
  if test "$pipe_works" = yes; then
 
5750
    break
 
5751
  else
 
5752
    lt_cv_sys_global_symbol_pipe=
 
5753
  fi
 
5754
done
 
5755
 
 
5756
fi
 
5757
 
 
5758
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5759
  lt_cv_sys_global_symbol_to_cdecl=
 
5760
fi
 
5761
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5762
  echo "$as_me:$LINENO: result: failed" >&5
 
5763
echo "${ECHO_T}failed" >&6
 
5764
else
 
5765
  echo "$as_me:$LINENO: result: ok" >&5
 
5766
echo "${ECHO_T}ok" >&6
 
5767
fi
 
5768
 
 
5769
echo "$as_me:$LINENO: checking for objdir" >&5
 
5770
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5771
if test "${lt_cv_objdir+set}" = set; then
 
5772
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5773
else
 
5774
  rm -f .libs 2>/dev/null
 
5775
mkdir .libs 2>/dev/null
 
5776
if test -d .libs; then
 
5777
  lt_cv_objdir=.libs
 
5778
else
 
5779
  # MS-DOS does not allow filenames that begin with a dot.
 
5780
  lt_cv_objdir=_libs
 
5781
fi
 
5782
rmdir .libs 2>/dev/null
 
5783
fi
 
5784
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5785
echo "${ECHO_T}$lt_cv_objdir" >&6
 
5786
objdir=$lt_cv_objdir
 
5787
 
 
5788
 
 
5789
 
 
5790
 
 
5791
 
 
5792
case $host_os in
 
5793
aix3*)
 
5794
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5795
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5796
  # vanish in a puff of smoke.
 
5797
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5798
    COLLECT_NAMES=
 
5799
    export COLLECT_NAMES
 
5800
  fi
 
5801
  ;;
 
5802
esac
 
5803
 
 
5804
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5805
# metacharacters that are still active within double-quoted strings.
 
5806
Xsed='sed -e 1s/^X//'
 
5807
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5808
 
 
5809
# Same as above, but do not quote variable references.
 
5810
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5811
 
 
5812
# Sed substitution to delay expansion of an escaped shell variable in a
 
5813
# double_quote_subst'ed string.
 
5814
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5815
 
 
5816
# Sed substitution to avoid accidental globbing in evaled expressions
 
5817
no_glob_subst='s/\*/\\\*/g'
 
5818
 
 
5819
# Constants:
 
5820
rm="rm -f"
 
5821
 
 
5822
# Global variables:
 
5823
default_ofile=libtool
 
5824
can_build_shared=yes
 
5825
 
 
5826
# All known linkers require a `.a' archive for static linking (except MSVC,
 
5827
# which needs '.lib').
 
5828
libext=a
 
5829
ltmain="$ac_aux_dir/ltmain.sh"
 
5830
ofile="$default_ofile"
 
5831
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5832
 
 
5833
if test -n "$ac_tool_prefix"; then
 
5834
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5835
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5836
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5837
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5838
if test "${ac_cv_prog_AR+set}" = set; then
 
5839
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5840
else
 
5841
  if test -n "$AR"; then
 
5842
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5843
else
 
5844
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5845
for as_dir in $PATH
 
5846
do
 
5847
  IFS=$as_save_IFS
 
5848
  test -z "$as_dir" && as_dir=.
 
5849
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5850
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5851
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5852
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5853
    break 2
 
5854
  fi
 
5855
done
 
5856
done
 
5857
 
 
5858
fi
 
5859
fi
 
5860
AR=$ac_cv_prog_AR
 
5861
if test -n "$AR"; then
 
5862
  echo "$as_me:$LINENO: result: $AR" >&5
 
5863
echo "${ECHO_T}$AR" >&6
 
5864
else
 
5865
  echo "$as_me:$LINENO: result: no" >&5
 
5866
echo "${ECHO_T}no" >&6
 
5867
fi
 
5868
 
 
5869
fi
 
5870
if test -z "$ac_cv_prog_AR"; then
 
5871
  ac_ct_AR=$AR
 
5872
  # Extract the first word of "ar", so it can be a program name with args.
 
5873
set dummy ar; ac_word=$2
 
5874
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5875
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5876
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5877
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5878
else
 
5879
  if test -n "$ac_ct_AR"; then
 
5880
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5881
else
 
5882
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5883
for as_dir in $PATH
 
5884
do
 
5885
  IFS=$as_save_IFS
 
5886
  test -z "$as_dir" && as_dir=.
 
5887
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5888
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5889
    ac_cv_prog_ac_ct_AR="ar"
 
5890
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5891
    break 2
 
5892
  fi
 
5893
done
 
5894
done
 
5895
 
 
5896
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
5897
fi
 
5898
fi
 
5899
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5900
if test -n "$ac_ct_AR"; then
 
5901
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5902
echo "${ECHO_T}$ac_ct_AR" >&6
 
5903
else
 
5904
  echo "$as_me:$LINENO: result: no" >&5
 
5905
echo "${ECHO_T}no" >&6
 
5906
fi
 
5907
 
 
5908
  AR=$ac_ct_AR
 
5909
else
 
5910
  AR="$ac_cv_prog_AR"
 
5911
fi
 
5912
 
 
5913
if test -n "$ac_tool_prefix"; then
 
5914
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5915
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5916
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5917
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5918
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5919
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5920
else
 
5921
  if test -n "$RANLIB"; then
 
5922
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5923
else
 
5924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5925
for as_dir in $PATH
 
5926
do
 
5927
  IFS=$as_save_IFS
 
5928
  test -z "$as_dir" && as_dir=.
 
5929
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5930
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5931
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5932
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5933
    break 2
 
5934
  fi
 
5935
done
 
5936
done
 
5937
 
 
5938
fi
 
5939
fi
 
5940
RANLIB=$ac_cv_prog_RANLIB
 
5941
if test -n "$RANLIB"; then
 
5942
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5943
echo "${ECHO_T}$RANLIB" >&6
 
5944
else
 
5945
  echo "$as_me:$LINENO: result: no" >&5
 
5946
echo "${ECHO_T}no" >&6
 
5947
fi
 
5948
 
 
5949
fi
 
5950
if test -z "$ac_cv_prog_RANLIB"; then
 
5951
  ac_ct_RANLIB=$RANLIB
 
5952
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5953
set dummy ranlib; ac_word=$2
 
5954
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5955
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5956
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5957
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5958
else
 
5959
  if test -n "$ac_ct_RANLIB"; then
 
5960
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5961
else
 
5962
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5963
for as_dir in $PATH
 
5964
do
 
5965
  IFS=$as_save_IFS
 
5966
  test -z "$as_dir" && as_dir=.
 
5967
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5968
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5969
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5970
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5971
    break 2
 
5972
  fi
 
5973
done
 
5974
done
 
5975
 
 
5976
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5977
fi
 
5978
fi
 
5979
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5980
if test -n "$ac_ct_RANLIB"; then
 
5981
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5982
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5983
else
 
5984
  echo "$as_me:$LINENO: result: no" >&5
 
5985
echo "${ECHO_T}no" >&6
 
5986
fi
 
5987
 
 
5988
  RANLIB=$ac_ct_RANLIB
 
5989
else
 
5990
  RANLIB="$ac_cv_prog_RANLIB"
 
5991
fi
 
5992
 
 
5993
if test -n "$ac_tool_prefix"; then
 
5994
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5995
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5996
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5997
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5998
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5999
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6000
else
 
6001
  if test -n "$STRIP"; then
 
6002
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6003
else
 
6004
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6005
for as_dir in $PATH
 
6006
do
 
6007
  IFS=$as_save_IFS
 
6008
  test -z "$as_dir" && as_dir=.
 
6009
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6010
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6011
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6012
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6013
    break 2
 
6014
  fi
 
6015
done
 
6016
done
 
6017
 
 
6018
fi
 
6019
fi
 
6020
STRIP=$ac_cv_prog_STRIP
 
6021
if test -n "$STRIP"; then
 
6022
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
6023
echo "${ECHO_T}$STRIP" >&6
 
6024
else
 
6025
  echo "$as_me:$LINENO: result: no" >&5
 
6026
echo "${ECHO_T}no" >&6
 
6027
fi
 
6028
 
 
6029
fi
 
6030
if test -z "$ac_cv_prog_STRIP"; then
 
6031
  ac_ct_STRIP=$STRIP
 
6032
  # Extract the first word of "strip", so it can be a program name with args.
 
6033
set dummy strip; ac_word=$2
 
6034
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6035
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6036
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6037
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6038
else
 
6039
  if test -n "$ac_ct_STRIP"; then
 
6040
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6041
else
 
6042
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6043
for as_dir in $PATH
 
6044
do
 
6045
  IFS=$as_save_IFS
 
6046
  test -z "$as_dir" && as_dir=.
 
6047
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6048
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6049
    ac_cv_prog_ac_ct_STRIP="strip"
 
6050
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6051
    break 2
 
6052
  fi
 
6053
done
 
6054
done
 
6055
 
 
6056
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
6057
fi
 
6058
fi
 
6059
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6060
if test -n "$ac_ct_STRIP"; then
 
6061
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6062
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
6063
else
 
6064
  echo "$as_me:$LINENO: result: no" >&5
 
6065
echo "${ECHO_T}no" >&6
 
6066
fi
 
6067
 
 
6068
  STRIP=$ac_ct_STRIP
 
6069
else
 
6070
  STRIP="$ac_cv_prog_STRIP"
 
6071
fi
 
6072
 
 
6073
 
 
6074
old_CC="$CC"
 
6075
old_CFLAGS="$CFLAGS"
 
6076
 
 
6077
# Set sane defaults for various variables
 
6078
test -z "$AR" && AR=ar
 
6079
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6080
test -z "$AS" && AS=as
 
6081
test -z "$CC" && CC=cc
 
6082
test -z "$LTCC" && LTCC=$CC
 
6083
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
6084
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6085
test -z "$LD" && LD=ld
 
6086
test -z "$LN_S" && LN_S="ln -s"
 
6087
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6088
test -z "$NM" && NM=nm
 
6089
test -z "$SED" && SED=sed
 
6090
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6091
test -z "$RANLIB" && RANLIB=:
 
6092
test -z "$STRIP" && STRIP=:
 
6093
test -z "$ac_objext" && ac_objext=o
 
6094
 
 
6095
# Determine commands to create old-style static archives.
 
6096
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6097
old_postinstall_cmds='chmod 644 $oldlib'
 
6098
old_postuninstall_cmds=
 
6099
 
 
6100
if test -n "$RANLIB"; then
 
6101
  case $host_os in
 
6102
  openbsd*)
 
6103
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6104
    ;;
 
6105
  *)
 
6106
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6107
    ;;
 
6108
  esac
 
6109
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6110
fi
 
6111
 
 
6112
for cc_temp in $compiler""; do
 
6113
  case $cc_temp in
 
6114
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6115
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6116
    \-*) ;;
 
6117
    *) break;;
 
6118
  esac
 
6119
done
 
6120
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6121
 
 
6122
 
 
6123
# Only perform the check for file, if the check method requires it
 
6124
case $deplibs_check_method in
 
6125
file_magic*)
 
6126
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6127
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6128
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
6129
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6130
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6131
else
 
6132
  case $MAGIC_CMD in
 
6133
[\\/*] |  ?:[\\/]*)
 
6134
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6135
  ;;
 
6136
*)
 
6137
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6138
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6139
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6140
  for ac_dir in $ac_dummy; do
 
6141
    IFS="$lt_save_ifs"
 
6142
    test -z "$ac_dir" && ac_dir=.
 
6143
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6144
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6145
      if test -n "$file_magic_test_file"; then
 
6146
        case $deplibs_check_method in
 
6147
        "file_magic "*)
 
6148
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6149
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6150
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6151
            $EGREP "$file_magic_regex" > /dev/null; then
 
6152
            :
 
6153
          else
 
6154
            cat <<EOF 1>&2
 
6155
 
 
6156
*** Warning: the command libtool uses to detect shared libraries,
 
6157
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6158
*** The result is that libtool may fail to recognize shared libraries
 
6159
*** as such.  This will affect the creation of libtool libraries that
 
6160
*** depend on shared libraries, but programs linked with such libtool
 
6161
*** libraries will work regardless of this problem.  Nevertheless, you
 
6162
*** may want to report the problem to your system manager and/or to
 
6163
*** bug-libtool@gnu.org
 
6164
 
 
6165
EOF
 
6166
          fi ;;
 
6167
        esac
 
6168
      fi
 
6169
      break
 
6170
    fi
 
6171
  done
 
6172
  IFS="$lt_save_ifs"
 
6173
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6174
  ;;
 
6175
esac
 
6176
fi
 
6177
 
 
6178
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6179
if test -n "$MAGIC_CMD"; then
 
6180
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6181
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6182
else
 
6183
  echo "$as_me:$LINENO: result: no" >&5
 
6184
echo "${ECHO_T}no" >&6
 
6185
fi
 
6186
 
 
6187
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6188
  if test -n "$ac_tool_prefix"; then
 
6189
    echo "$as_me:$LINENO: checking for file" >&5
 
6190
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
6191
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6192
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6193
else
 
6194
  case $MAGIC_CMD in
 
6195
[\\/*] |  ?:[\\/]*)
 
6196
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6197
  ;;
 
6198
*)
 
6199
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6200
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6201
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6202
  for ac_dir in $ac_dummy; do
 
6203
    IFS="$lt_save_ifs"
 
6204
    test -z "$ac_dir" && ac_dir=.
 
6205
    if test -f $ac_dir/file; then
 
6206
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6207
      if test -n "$file_magic_test_file"; then
 
6208
        case $deplibs_check_method in
 
6209
        "file_magic "*)
 
6210
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6211
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6212
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6213
            $EGREP "$file_magic_regex" > /dev/null; then
 
6214
            :
 
6215
          else
 
6216
            cat <<EOF 1>&2
 
6217
 
 
6218
*** Warning: the command libtool uses to detect shared libraries,
 
6219
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6220
*** The result is that libtool may fail to recognize shared libraries
 
6221
*** as such.  This will affect the creation of libtool libraries that
 
6222
*** depend on shared libraries, but programs linked with such libtool
 
6223
*** libraries will work regardless of this problem.  Nevertheless, you
 
6224
*** may want to report the problem to your system manager and/or to
 
6225
*** bug-libtool@gnu.org
 
6226
 
 
6227
EOF
 
6228
          fi ;;
 
6229
        esac
 
6230
      fi
 
6231
      break
 
6232
    fi
 
6233
  done
 
6234
  IFS="$lt_save_ifs"
 
6235
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6236
  ;;
 
6237
esac
 
6238
fi
 
6239
 
 
6240
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6241
if test -n "$MAGIC_CMD"; then
 
6242
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6243
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6244
else
 
6245
  echo "$as_me:$LINENO: result: no" >&5
 
6246
echo "${ECHO_T}no" >&6
 
6247
fi
 
6248
 
 
6249
  else
 
6250
    MAGIC_CMD=:
 
6251
  fi
 
6252
fi
 
6253
 
 
6254
  fi
 
6255
  ;;
 
6256
esac
 
6257
 
 
6258
enable_dlopen=no
 
6259
enable_win32_dll=no
 
6260
 
 
6261
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6262
if test "${enable_libtool_lock+set}" = set; then
 
6263
  enableval="$enable_libtool_lock"
 
6264
 
 
6265
fi;
 
6266
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6267
 
 
6268
 
 
6269
# Check whether --with-pic or --without-pic was given.
 
6270
if test "${with_pic+set}" = set; then
 
6271
  withval="$with_pic"
 
6272
  pic_mode="$withval"
 
6273
else
 
6274
  pic_mode=default
 
6275
fi;
 
6276
test -z "$pic_mode" && pic_mode=default
 
6277
 
 
6278
# Use C for the default configuration in the libtool script
 
6279
tagname=
 
6280
lt_save_CC="$CC"
 
6281
ac_ext=c
 
6282
ac_cpp='$CPP $CPPFLAGS'
 
6283
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6284
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6285
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6286
 
 
6287
 
 
6288
# Source file extension for C test sources.
 
6289
ac_ext=c
 
6290
 
 
6291
# Object file extension for compiled C test sources.
 
6292
objext=o
 
6293
objext=$objext
 
6294
 
 
6295
# Code to be used in simple compile tests
 
6296
lt_simple_compile_test_code="int some_variable = 0;\n"
 
6297
 
 
6298
# Code to be used in simple link tests
 
6299
lt_simple_link_test_code='int main(){return(0);}\n'
 
6300
 
 
6301
 
 
6302
# If no C compiler was specified, use CC.
 
6303
LTCC=${LTCC-"$CC"}
 
6304
 
 
6305
# If no C compiler flags were specified, use CFLAGS.
 
6306
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6307
 
 
6308
# Allow CC to be a program name with arguments.
 
6309
compiler=$CC
 
6310
 
 
6311
 
 
6312
# save warnings/boilerplate of simple test code
 
6313
ac_outfile=conftest.$ac_objext
 
6314
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6315
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6316
_lt_compiler_boilerplate=`cat conftest.err`
 
6317
$rm conftest*
 
6318
 
 
6319
ac_outfile=conftest.$ac_objext
 
6320
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6321
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6322
_lt_linker_boilerplate=`cat conftest.err`
 
6323
$rm conftest*
 
6324
 
 
6325
 
 
6326
 
 
6327
lt_prog_compiler_no_builtin_flag=
 
6328
 
 
6329
if test "$GCC" = yes; then
 
6330
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
6331
 
 
6332
 
 
6333
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6334
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
6335
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
6336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6337
else
 
6338
  lt_cv_prog_compiler_rtti_exceptions=no
 
6339
  ac_outfile=conftest.$ac_objext
 
6340
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6341
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
6342
   # Insert the option either (1) after the last *FLAGS variable, or
 
6343
   # (2) before a word containing "conftest.", or (3) at the end.
 
6344
   # Note that $ac_compile itself does not contain backslashes and begins
 
6345
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6346
   # The option is referenced via a variable to avoid confusing sed.
 
6347
   lt_compile=`echo "$ac_compile" | $SED \
 
6348
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6349
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6350
   -e 's:$: $lt_compiler_flag:'`
 
6351
   (eval echo "\"\$as_me:6351: $lt_compile\"" >&5)
 
6352
   (eval "$lt_compile" 2>conftest.err)
 
6353
   ac_status=$?
 
6354
   cat conftest.err >&5
 
6355
   echo "$as_me:6355: \$? = $ac_status" >&5
 
6356
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6357
     # The compiler can only warn and ignore the option if not recognized
 
6358
     # So say no if there are warnings other than the usual output.
 
6359
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6360
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6361
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
6362
       lt_cv_prog_compiler_rtti_exceptions=yes
 
6363
     fi
 
6364
   fi
 
6365
   $rm conftest*
 
6366
 
 
6367
fi
 
6368
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6369
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
6370
 
 
6371
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
6372
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
6373
else
 
6374
    :
 
6375
fi
 
6376
 
 
6377
fi
 
6378
 
 
6379
lt_prog_compiler_wl=
 
6380
lt_prog_compiler_pic=
 
6381
lt_prog_compiler_static=
 
6382
 
 
6383
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6384
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
6385
 
 
6386
  if test "$GCC" = yes; then
 
6387
    lt_prog_compiler_wl='-Wl,'
 
6388
    lt_prog_compiler_static='-static'
 
6389
 
 
6390
    case $host_os in
 
6391
      aix*)
 
6392
      # All AIX code is PIC.
 
6393
      if test "$host_cpu" = ia64; then
 
6394
        # AIX 5 now supports IA64 processor
 
6395
        lt_prog_compiler_static='-Bstatic'
 
6396
      fi
 
6397
      ;;
 
6398
 
 
6399
    amigaos*)
 
6400
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6401
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6402
      # like `-m68040'.
 
6403
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
6404
      ;;
 
6405
 
 
6406
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6407
      # PIC is the default for these OSes.
 
6408
      ;;
 
6409
 
 
6410
    mingw* | pw32* | os2*)
 
6411
      # This hack is so that the source file can tell whether it is being
 
6412
      # built for inclusion in a dll (and should export symbols for example).
 
6413
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6414
      ;;
 
6415
 
 
6416
    darwin* | rhapsody*)
 
6417
      # PIC is the default on this platform
 
6418
      # Common symbols not allowed in MH_DYLIB files
 
6419
      lt_prog_compiler_pic='-fno-common'
 
6420
      ;;
 
6421
 
 
6422
    interix3*)
 
6423
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
6424
      # Instead, we relocate shared libraries at runtime.
 
6425
      ;;
 
6426
 
 
6427
    msdosdjgpp*)
 
6428
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6429
      # on systems that don't support them.
 
6430
      lt_prog_compiler_can_build_shared=no
 
6431
      enable_shared=no
 
6432
      ;;
 
6433
 
 
6434
    sysv4*MP*)
 
6435
      if test -d /usr/nec; then
 
6436
        lt_prog_compiler_pic=-Kconform_pic
 
6437
      fi
 
6438
      ;;
 
6439
 
 
6440
    hpux*)
 
6441
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6442
      # not for PA HP-UX.
 
6443
      case $host_cpu in
 
6444
      hppa*64*|ia64*)
 
6445
        # +Z the default
 
6446
        ;;
 
6447
      *)
 
6448
        lt_prog_compiler_pic='-fPIC'
 
6449
        ;;
 
6450
      esac
 
6451
      ;;
 
6452
 
 
6453
    *)
 
6454
      lt_prog_compiler_pic='-fPIC'
 
6455
      ;;
 
6456
    esac
 
6457
  else
 
6458
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6459
    case $host_os in
 
6460
    aix*)
 
6461
      lt_prog_compiler_wl='-Wl,'
 
6462
      if test "$host_cpu" = ia64; then
 
6463
        # AIX 5 now supports IA64 processor
 
6464
        lt_prog_compiler_static='-Bstatic'
 
6465
      else
 
6466
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6467
      fi
 
6468
      ;;
 
6469
      darwin*)
 
6470
        # PIC is the default on this platform
 
6471
        # Common symbols not allowed in MH_DYLIB files
 
6472
       case $cc_basename in
 
6473
         xlc*)
 
6474
         lt_prog_compiler_pic='-qnocommon'
 
6475
         lt_prog_compiler_wl='-Wl,'
 
6476
         ;;
 
6477
       esac
 
6478
       ;;
 
6479
 
 
6480
    mingw* | pw32* | os2*)
 
6481
      # This hack is so that the source file can tell whether it is being
 
6482
      # built for inclusion in a dll (and should export symbols for example).
 
6483
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6484
      ;;
 
6485
 
 
6486
    hpux9* | hpux10* | hpux11*)
 
6487
      lt_prog_compiler_wl='-Wl,'
 
6488
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6489
      # not for PA HP-UX.
 
6490
      case $host_cpu in
 
6491
      hppa*64*|ia64*)
 
6492
        # +Z the default
 
6493
        ;;
 
6494
      *)
 
6495
        lt_prog_compiler_pic='+Z'
 
6496
        ;;
 
6497
      esac
 
6498
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6499
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6500
      ;;
 
6501
 
 
6502
    irix5* | irix6* | nonstopux*)
 
6503
      lt_prog_compiler_wl='-Wl,'
 
6504
      # PIC (with -KPIC) is the default.
 
6505
      lt_prog_compiler_static='-non_shared'
 
6506
      ;;
 
6507
 
 
6508
    newsos6)
 
6509
      lt_prog_compiler_pic='-KPIC'
 
6510
      lt_prog_compiler_static='-Bstatic'
 
6511
      ;;
 
6512
 
 
6513
    linux*)
 
6514
      case $cc_basename in
 
6515
      icc* | ecc*)
 
6516
        lt_prog_compiler_wl='-Wl,'
 
6517
        lt_prog_compiler_pic='-KPIC'
 
6518
        lt_prog_compiler_static='-static'
 
6519
        ;;
 
6520
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6521
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6522
        # which looks to be a dead project)
 
6523
        lt_prog_compiler_wl='-Wl,'
 
6524
        lt_prog_compiler_pic='-fpic'
 
6525
        lt_prog_compiler_static='-Bstatic'
 
6526
        ;;
 
6527
      ccc*)
 
6528
        lt_prog_compiler_wl='-Wl,'
 
6529
        # All Alpha code is PIC.
 
6530
        lt_prog_compiler_static='-non_shared'
 
6531
        ;;
 
6532
      esac
 
6533
      ;;
 
6534
 
 
6535
    osf3* | osf4* | osf5*)
 
6536
      lt_prog_compiler_wl='-Wl,'
 
6537
      # All OSF/1 code is PIC.
 
6538
      lt_prog_compiler_static='-non_shared'
 
6539
      ;;
 
6540
 
 
6541
    solaris*)
 
6542
      lt_prog_compiler_pic='-KPIC'
 
6543
      lt_prog_compiler_static='-Bstatic'
 
6544
      case $cc_basename in
 
6545
      f77* | f90* | f95*)
 
6546
        lt_prog_compiler_wl='-Qoption ld ';;
 
6547
      *)
 
6548
        lt_prog_compiler_wl='-Wl,';;
 
6549
      esac
 
6550
      ;;
 
6551
 
 
6552
    sunos4*)
 
6553
      lt_prog_compiler_wl='-Qoption ld '
 
6554
      lt_prog_compiler_pic='-PIC'
 
6555
      lt_prog_compiler_static='-Bstatic'
 
6556
      ;;
 
6557
 
 
6558
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
6559
      lt_prog_compiler_wl='-Wl,'
 
6560
      lt_prog_compiler_pic='-KPIC'
 
6561
      lt_prog_compiler_static='-Bstatic'
 
6562
      ;;
 
6563
 
 
6564
    sysv4*MP*)
 
6565
      if test -d /usr/nec ;then
 
6566
        lt_prog_compiler_pic='-Kconform_pic'
 
6567
        lt_prog_compiler_static='-Bstatic'
 
6568
      fi
 
6569
      ;;
 
6570
 
 
6571
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
6572
      lt_prog_compiler_wl='-Wl,'
 
6573
      lt_prog_compiler_pic='-KPIC'
 
6574
      lt_prog_compiler_static='-Bstatic'
 
6575
      ;;
 
6576
 
 
6577
    unicos*)
 
6578
      lt_prog_compiler_wl='-Wl,'
 
6579
      lt_prog_compiler_can_build_shared=no
 
6580
      ;;
 
6581
 
 
6582
    uts4*)
 
6583
      lt_prog_compiler_pic='-pic'
 
6584
      lt_prog_compiler_static='-Bstatic'
 
6585
      ;;
 
6586
 
 
6587
    *)
 
6588
      lt_prog_compiler_can_build_shared=no
 
6589
      ;;
 
6590
    esac
 
6591
  fi
 
6592
 
 
6593
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6594
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6595
 
 
6596
#
 
6597
# Check to make sure the PIC flag actually works.
 
6598
#
 
6599
if test -n "$lt_prog_compiler_pic"; then
 
6600
 
 
6601
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6602
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6603
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6604
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6605
else
 
6606
  lt_prog_compiler_pic_works=no
 
6607
  ac_outfile=conftest.$ac_objext
 
6608
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6609
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6610
   # Insert the option either (1) after the last *FLAGS variable, or
 
6611
   # (2) before a word containing "conftest.", or (3) at the end.
 
6612
   # Note that $ac_compile itself does not contain backslashes and begins
 
6613
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6614
   # The option is referenced via a variable to avoid confusing sed.
 
6615
   lt_compile=`echo "$ac_compile" | $SED \
 
6616
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6617
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6618
   -e 's:$: $lt_compiler_flag:'`
 
6619
   (eval echo "\"\$as_me:6619: $lt_compile\"" >&5)
 
6620
   (eval "$lt_compile" 2>conftest.err)
 
6621
   ac_status=$?
 
6622
   cat conftest.err >&5
 
6623
   echo "$as_me:6623: \$? = $ac_status" >&5
 
6624
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6625
     # The compiler can only warn and ignore the option if not recognized
 
6626
     # So say no if there are warnings other than the usual output.
 
6627
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6628
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6629
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
6630
       lt_prog_compiler_pic_works=yes
 
6631
     fi
 
6632
   fi
 
6633
   $rm conftest*
 
6634
 
 
6635
fi
 
6636
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6637
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6638
 
 
6639
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6640
    case $lt_prog_compiler_pic in
 
6641
     "" | " "*) ;;
 
6642
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6643
     esac
 
6644
else
 
6645
    lt_prog_compiler_pic=
 
6646
     lt_prog_compiler_can_build_shared=no
 
6647
fi
 
6648
 
 
6649
fi
 
6650
case $host_os in
 
6651
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6652
  *djgpp*)
 
6653
    lt_prog_compiler_pic=
 
6654
    ;;
 
6655
  *)
 
6656
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6657
    ;;
 
6658
esac
 
6659
 
 
6660
#
 
6661
# Check to make sure the static flag actually works.
 
6662
#
 
6663
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
6664
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
6665
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
6666
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6667
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6668
else
 
6669
  lt_prog_compiler_static_works=no
 
6670
   save_LDFLAGS="$LDFLAGS"
 
6671
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
6672
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6673
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6674
     # The linker can only warn and ignore the option if not recognized
 
6675
     # So say no if there are warnings
 
6676
     if test -s conftest.err; then
 
6677
       # Append any errors to the config.log.
 
6678
       cat conftest.err 1>&5
 
6679
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
6680
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6681
       if diff conftest.exp conftest.er2 >/dev/null; then
 
6682
         lt_prog_compiler_static_works=yes
 
6683
       fi
 
6684
     else
 
6685
       lt_prog_compiler_static_works=yes
 
6686
     fi
 
6687
   fi
 
6688
   $rm conftest*
 
6689
   LDFLAGS="$save_LDFLAGS"
 
6690
 
 
6691
fi
 
6692
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6693
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6694
 
 
6695
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6696
    :
 
6697
else
 
6698
    lt_prog_compiler_static=
 
6699
fi
 
6700
 
 
6701
 
 
6702
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6703
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6704
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6705
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6706
else
 
6707
  lt_cv_prog_compiler_c_o=no
 
6708
   $rm -r conftest 2>/dev/null
 
6709
   mkdir conftest
 
6710
   cd conftest
 
6711
   mkdir out
 
6712
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6713
 
 
6714
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6715
   # Insert the option either (1) after the last *FLAGS variable, or
 
6716
   # (2) before a word containing "conftest.", or (3) at the end.
 
6717
   # Note that $ac_compile itself does not contain backslashes and begins
 
6718
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6719
   lt_compile=`echo "$ac_compile" | $SED \
 
6720
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6721
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6722
   -e 's:$: $lt_compiler_flag:'`
 
6723
   (eval echo "\"\$as_me:6723: $lt_compile\"" >&5)
 
6724
   (eval "$lt_compile" 2>out/conftest.err)
 
6725
   ac_status=$?
 
6726
   cat out/conftest.err >&5
 
6727
   echo "$as_me:6727: \$? = $ac_status" >&5
 
6728
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6729
   then
 
6730
     # The compiler can only warn and ignore the option if not recognized
 
6731
     # So say no if there are warnings
 
6732
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
6733
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
6734
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
6735
       lt_cv_prog_compiler_c_o=yes
 
6736
     fi
 
6737
   fi
 
6738
   chmod u+w . 2>&5
 
6739
   $rm conftest*
 
6740
   # SGI C++ compiler will create directory out/ii_files/ for
 
6741
   # template instantiation
 
6742
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6743
   $rm out/* && rmdir out
 
6744
   cd ..
 
6745
   rmdir conftest
 
6746
   $rm conftest*
 
6747
 
 
6748
fi
 
6749
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6750
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6751
 
 
6752
 
 
6753
hard_links="nottested"
 
6754
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
6755
  # do not overwrite the value of need_locks provided by the user
 
6756
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6757
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6758
  hard_links=yes
 
6759
  $rm conftest*
 
6760
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6761
  touch conftest.a
 
6762
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6763
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6764
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6765
echo "${ECHO_T}$hard_links" >&6
 
6766
  if test "$hard_links" = no; then
 
6767
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6768
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6769
    need_locks=warn
 
6770
  fi
 
6771
else
 
6772
  need_locks=no
 
6773
fi
 
6774
 
 
6775
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6776
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6777
 
 
6778
  runpath_var=
 
6779
  allow_undefined_flag=
 
6780
  enable_shared_with_static_runtimes=no
 
6781
  archive_cmds=
 
6782
  archive_expsym_cmds=
 
6783
  old_archive_From_new_cmds=
 
6784
  old_archive_from_expsyms_cmds=
 
6785
  export_dynamic_flag_spec=
 
6786
  whole_archive_flag_spec=
 
6787
  thread_safe_flag_spec=
 
6788
  hardcode_libdir_flag_spec=
 
6789
  hardcode_libdir_flag_spec_ld=
 
6790
  hardcode_libdir_separator=
 
6791
  hardcode_direct=no
 
6792
  hardcode_minus_L=no
 
6793
  hardcode_shlibpath_var=unsupported
 
6794
  link_all_deplibs=unknown
 
6795
  hardcode_automatic=no
 
6796
  module_cmds=
 
6797
  module_expsym_cmds=
 
6798
  always_export_symbols=no
 
6799
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6800
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6801
  # included in the symbol list
 
6802
  include_expsyms=
 
6803
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6804
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6805
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6806
  # as well as any symbol that contains `d'.
 
6807
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6808
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6809
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6810
  # the symbol is explicitly referenced.  Since portable code cannot
 
6811
  # rely on this symbol name, it's probably fine to never include it in
 
6812
  # preloaded symbol tables.
 
6813
  extract_expsyms_cmds=
 
6814
  # Just being paranoid about ensuring that cc_basename is set.
 
6815
  for cc_temp in $compiler""; do
 
6816
  case $cc_temp in
 
6817
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6818
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6819
    \-*) ;;
 
6820
    *) break;;
 
6821
  esac
 
6822
done
 
6823
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6824
 
 
6825
  case $host_os in
 
6826
  cygwin* | mingw* | pw32*)
 
6827
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6828
    # When not using gcc, we currently assume that we are using
 
6829
    # Microsoft Visual C++.
 
6830
    if test "$GCC" != yes; then
 
6831
      with_gnu_ld=no
 
6832
    fi
 
6833
    ;;
 
6834
  interix*)
 
6835
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
6836
    with_gnu_ld=yes
 
6837
    ;;
 
6838
  openbsd*)
 
6839
    with_gnu_ld=no
 
6840
    ;;
 
6841
  esac
 
6842
 
 
6843
  ld_shlibs=yes
 
6844
  if test "$with_gnu_ld" = yes; then
 
6845
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6846
    wlarc='${wl}'
 
6847
 
 
6848
    # Set some defaults for GNU ld with shared library support. These
 
6849
    # are reset later if shared libraries are not supported. Putting them
 
6850
    # here allows them to be overridden if necessary.
 
6851
    runpath_var=LD_RUN_PATH
 
6852
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6853
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
6854
    # ancient GNU ld didn't support --whole-archive et. al.
 
6855
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6856
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6857
      else
 
6858
        whole_archive_flag_spec=
 
6859
    fi
 
6860
    supports_anon_versioning=no
 
6861
    case `$LD -v 2>/dev/null` in
 
6862
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6863
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6864
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6865
      *\ 2.11.*) ;; # other 2.11 versions
 
6866
      *) supports_anon_versioning=yes ;;
 
6867
    esac
 
6868
 
 
6869
    # See if GNU ld supports shared libraries.
 
6870
    case $host_os in
 
6871
    aix3* | aix4* | aix5*)
 
6872
      # On AIX/PPC, the GNU linker is very broken
 
6873
      if test "$host_cpu" != ia64; then
 
6874
        ld_shlibs=no
 
6875
        cat <<EOF 1>&2
 
6876
 
 
6877
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6878
*** to be unable to reliably create shared libraries on AIX.
 
6879
*** Therefore, libtool is disabling shared libraries support.  If you
 
6880
*** really care for shared libraries, you may want to modify your PATH
 
6881
*** so that a non-GNU linker is found, and then restart.
 
6882
 
 
6883
EOF
 
6884
      fi
 
6885
      ;;
 
6886
 
 
6887
    amigaos*)
 
6888
      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)'
 
6889
      hardcode_libdir_flag_spec='-L$libdir'
 
6890
      hardcode_minus_L=yes
 
6891
 
 
6892
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6893
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6894
      # to version 4, is to share data among multiple programs linked
 
6895
      # with the same dynamic library.  Since this doesn't match the
 
6896
      # behavior of shared libraries on other platforms, we can't use
 
6897
      # them.
 
6898
      ld_shlibs=no
 
6899
      ;;
 
6900
 
 
6901
    beos*)
 
6902
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6903
        allow_undefined_flag=unsupported
 
6904
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6905
        # support --undefined.  This deserves some investigation.  FIXME
 
6906
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6907
      else
 
6908
        ld_shlibs=no
 
6909
      fi
 
6910
      ;;
 
6911
 
 
6912
    cygwin* | mingw* | pw32*)
 
6913
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6914
      # as there is no search path for DLLs.
 
6915
      hardcode_libdir_flag_spec='-L$libdir'
 
6916
      allow_undefined_flag=unsupported
 
6917
      always_export_symbols=no
 
6918
      enable_shared_with_static_runtimes=yes
 
6919
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6920
 
 
6921
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6922
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6923
        # If the export-symbols file already is a .def file (1st line
 
6924
        # is EXPORTS), use it as is; otherwise, prepend...
 
6925
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6926
          cp $export_symbols $output_objdir/$soname.def;
 
6927
        else
 
6928
          echo EXPORTS > $output_objdir/$soname.def;
 
6929
          cat $export_symbols >> $output_objdir/$soname.def;
 
6930
        fi~
 
6931
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6932
      else
 
6933
        ld_shlibs=no
 
6934
      fi
 
6935
      ;;
 
6936
 
 
6937
    interix3*)
 
6938
      hardcode_direct=no
 
6939
      hardcode_shlibpath_var=no
 
6940
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6941
      export_dynamic_flag_spec='${wl}-E'
 
6942
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6943
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6944
      # default) and relocated if they conflict, which is a slow very memory
 
6945
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
6946
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6947
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6948
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6949
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6950
      ;;
 
6951
 
 
6952
    linux*)
 
6953
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6954
        tmp_addflag=
 
6955
        case $cc_basename,$host_cpu in
 
6956
        pgcc*)                          # Portland Group C compiler
 
6957
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
6958
          tmp_addflag=' $pic_flag'
 
6959
          ;;
 
6960
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
6961
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
6962
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
6963
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
6964
          tmp_addflag=' -i_dynamic' ;;
 
6965
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
6966
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
6967
        ifc* | ifort*)                  # Intel Fortran compiler
 
6968
          tmp_addflag=' -nofor_main' ;;
 
6969
        esac
 
6970
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6971
 
 
6972
        if test $supports_anon_versioning = yes; then
 
6973
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
6974
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6975
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
6976
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6977
        fi
 
6978
      else
 
6979
        ld_shlibs=no
 
6980
      fi
 
6981
      ;;
 
6982
 
 
6983
    netbsd*)
 
6984
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6985
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6986
        wlarc=
 
6987
      else
 
6988
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6989
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6990
      fi
 
6991
      ;;
 
6992
 
 
6993
    solaris*)
 
6994
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6995
        ld_shlibs=no
 
6996
        cat <<EOF 1>&2
 
6997
 
 
6998
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6999
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7000
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7001
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7002
*** your PATH or compiler configuration so that the native linker is
 
7003
*** used, and then restart.
 
7004
 
 
7005
EOF
 
7006
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7007
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7008
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7009
      else
 
7010
        ld_shlibs=no
 
7011
      fi
 
7012
      ;;
 
7013
 
 
7014
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7015
      case `$LD -v 2>&1` in
 
7016
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
7017
        ld_shlibs=no
 
7018
        cat <<_LT_EOF 1>&2
 
7019
 
 
7020
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7021
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7022
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7023
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7024
*** your PATH or compiler configuration so that the native linker is
 
7025
*** used, and then restart.
 
7026
 
 
7027
_LT_EOF
 
7028
        ;;
 
7029
        *)
 
7030
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7031
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7032
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7033
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7034
          else
 
7035
            ld_shlibs=no
 
7036
          fi
 
7037
        ;;
 
7038
      esac
 
7039
      ;;
 
7040
 
 
7041
    sunos4*)
 
7042
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7043
      wlarc=
 
7044
      hardcode_direct=yes
 
7045
      hardcode_shlibpath_var=no
 
7046
      ;;
 
7047
 
 
7048
    *)
 
7049
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7050
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7051
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7052
      else
 
7053
        ld_shlibs=no
 
7054
      fi
 
7055
      ;;
 
7056
    esac
 
7057
 
 
7058
    if test "$ld_shlibs" = no; then
 
7059
      runpath_var=
 
7060
      hardcode_libdir_flag_spec=
 
7061
      export_dynamic_flag_spec=
 
7062
      whole_archive_flag_spec=
 
7063
    fi
 
7064
  else
 
7065
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7066
    case $host_os in
 
7067
    aix3*)
 
7068
      allow_undefined_flag=unsupported
 
7069
      always_export_symbols=yes
 
7070
      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'
 
7071
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7072
      # are no directories specified by -L.
 
7073
      hardcode_minus_L=yes
 
7074
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
7075
        # Neither direct hardcoding nor static linking is supported with a
 
7076
        # broken collect2.
 
7077
        hardcode_direct=unsupported
 
7078
      fi
 
7079
      ;;
 
7080
 
 
7081
    aix4* | aix5*)
 
7082
      if test "$host_cpu" = ia64; then
 
7083
        # On IA64, the linker does run time linking by default, so we don't
 
7084
        # have to do anything special.
 
7085
        aix_use_runtimelinking=no
 
7086
        exp_sym_flag='-Bexport'
 
7087
        no_entry_flag=""
 
7088
      else
 
7089
        # If we're using GNU nm, then we don't want the "-C" option.
 
7090
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7091
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7092
          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'
 
7093
        else
 
7094
          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'
 
7095
        fi
 
7096
        aix_use_runtimelinking=no
 
7097
 
 
7098
        # Test if we are trying to use run time linking or normal
 
7099
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7100
        # need to do runtime linking.
 
7101
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7102
          for ld_flag in $LDFLAGS; do
 
7103
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7104
            aix_use_runtimelinking=yes
 
7105
            break
 
7106
          fi
 
7107
          done
 
7108
          ;;
 
7109
        esac
 
7110
 
 
7111
        exp_sym_flag='-bexport'
 
7112
        no_entry_flag='-bnoentry'
 
7113
      fi
 
7114
 
 
7115
      # When large executables or shared objects are built, AIX ld can
 
7116
      # have problems creating the table of contents.  If linking a library
 
7117
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7118
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7119
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7120
 
 
7121
      archive_cmds=''
 
7122
      hardcode_direct=yes
 
7123
      hardcode_libdir_separator=':'
 
7124
      link_all_deplibs=yes
 
7125
 
 
7126
      if test "$GCC" = yes; then
 
7127
        case $host_os in aix4.[012]|aix4.[012].*)
 
7128
        # We only want to do this on AIX 4.2 and lower, the check
 
7129
        # below for broken collect2 doesn't work under 4.3+
 
7130
          collect2name=`${CC} -print-prog-name=collect2`
 
7131
          if test -f "$collect2name" && \
 
7132
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7133
          then
 
7134
          # We have reworked collect2
 
7135
          hardcode_direct=yes
 
7136
          else
 
7137
          # We have old collect2
 
7138
          hardcode_direct=unsupported
 
7139
          # It fails to find uninstalled libraries when the uninstalled
 
7140
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7141
          # to unsupported forces relinking
 
7142
          hardcode_minus_L=yes
 
7143
          hardcode_libdir_flag_spec='-L$libdir'
 
7144
          hardcode_libdir_separator=
 
7145
          fi
 
7146
          ;;
 
7147
        esac
 
7148
        shared_flag='-shared'
 
7149
        if test "$aix_use_runtimelinking" = yes; then
 
7150
          shared_flag="$shared_flag "'${wl}-G'
 
7151
        fi
 
7152
      else
 
7153
        # not using gcc
 
7154
        if test "$host_cpu" = ia64; then
 
7155
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7156
        # chokes on -Wl,-G. The following line is correct:
 
7157
          shared_flag='-G'
 
7158
        else
 
7159
          if test "$aix_use_runtimelinking" = yes; then
 
7160
            shared_flag='${wl}-G'
 
7161
          else
 
7162
            shared_flag='${wl}-bM:SRE'
 
7163
          fi
 
7164
        fi
 
7165
      fi
 
7166
 
 
7167
      # It seems that -bexpall does not export symbols beginning with
 
7168
      # underscore (_), so it is better to generate a list of symbols to export.
 
7169
      always_export_symbols=yes
 
7170
      if test "$aix_use_runtimelinking" = yes; then
 
7171
        # Warning - without using the other runtime loading flags (-brtl),
 
7172
        # -berok will link without error, but may produce a broken library.
 
7173
        allow_undefined_flag='-berok'
 
7174
       # Determine the default libpath from the value encoded in an empty executable.
 
7175
       cat >conftest.$ac_ext <<_ACEOF
 
7176
/* confdefs.h.  */
 
7177
_ACEOF
 
7178
cat confdefs.h >>conftest.$ac_ext
 
7179
cat >>conftest.$ac_ext <<_ACEOF
 
7180
/* end confdefs.h.  */
 
7181
 
 
7182
int
 
7183
main ()
 
7184
{
 
7185
 
 
7186
  ;
 
7187
  return 0;
 
7188
}
 
7189
_ACEOF
 
7190
rm -f conftest.$ac_objext conftest$ac_exeext
 
7191
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7192
  (eval $ac_link) 2>conftest.er1
 
7193
  ac_status=$?
 
7194
  grep -v '^ *+' conftest.er1 >conftest.err
 
7195
  rm -f conftest.er1
 
7196
  cat conftest.err >&5
 
7197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7198
  (exit $ac_status); } &&
 
7199
         { ac_try='test -z "$ac_c_werror_flag"
 
7200
                         || test ! -s conftest.err'
 
7201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7202
  (eval $ac_try) 2>&5
 
7203
  ac_status=$?
 
7204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7205
  (exit $ac_status); }; } &&
 
7206
         { ac_try='test -s conftest$ac_exeext'
 
7207
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7208
  (eval $ac_try) 2>&5
 
7209
  ac_status=$?
 
7210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7211
  (exit $ac_status); }; }; then
 
7212
 
 
7213
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7214
}'`
 
7215
# Check for a 64-bit object if we didn't find anything.
 
7216
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; }
 
7217
}'`; fi
 
7218
else
 
7219
  echo "$as_me: failed program was:" >&5
 
7220
sed 's/^/| /' conftest.$ac_ext >&5
 
7221
 
 
7222
fi
 
7223
rm -f conftest.err conftest.$ac_objext \
 
7224
      conftest$ac_exeext conftest.$ac_ext
 
7225
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7226
 
 
7227
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7228
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $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"
 
7229
       else
 
7230
        if test "$host_cpu" = ia64; then
 
7231
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7232
          allow_undefined_flag="-z nodefs"
 
7233
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
7234
        else
 
7235
         # Determine the default libpath from the value encoded in an empty executable.
 
7236
         cat >conftest.$ac_ext <<_ACEOF
 
7237
/* confdefs.h.  */
 
7238
_ACEOF
 
7239
cat confdefs.h >>conftest.$ac_ext
 
7240
cat >>conftest.$ac_ext <<_ACEOF
 
7241
/* end confdefs.h.  */
 
7242
 
 
7243
int
 
7244
main ()
 
7245
{
 
7246
 
 
7247
  ;
 
7248
  return 0;
 
7249
}
 
7250
_ACEOF
 
7251
rm -f conftest.$ac_objext conftest$ac_exeext
 
7252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7253
  (eval $ac_link) 2>conftest.er1
 
7254
  ac_status=$?
 
7255
  grep -v '^ *+' conftest.er1 >conftest.err
 
7256
  rm -f conftest.er1
 
7257
  cat conftest.err >&5
 
7258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7259
  (exit $ac_status); } &&
 
7260
         { ac_try='test -z "$ac_c_werror_flag"
 
7261
                         || test ! -s conftest.err'
 
7262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7263
  (eval $ac_try) 2>&5
 
7264
  ac_status=$?
 
7265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7266
  (exit $ac_status); }; } &&
 
7267
         { ac_try='test -s conftest$ac_exeext'
 
7268
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7269
  (eval $ac_try) 2>&5
 
7270
  ac_status=$?
 
7271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7272
  (exit $ac_status); }; }; then
 
7273
 
 
7274
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7275
}'`
 
7276
# Check for a 64-bit object if we didn't find anything.
 
7277
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; }
 
7278
}'`; fi
 
7279
else
 
7280
  echo "$as_me: failed program was:" >&5
 
7281
sed 's/^/| /' conftest.$ac_ext >&5
 
7282
 
 
7283
fi
 
7284
rm -f conftest.err conftest.$ac_objext \
 
7285
      conftest$ac_exeext conftest.$ac_ext
 
7286
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7287
 
 
7288
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7289
          # Warning - without using the other run time loading flags,
 
7290
          # -berok will link without error, but may produce a broken library.
 
7291
          no_undefined_flag=' ${wl}-bernotok'
 
7292
          allow_undefined_flag=' ${wl}-berok'
 
7293
          # Exported symbols can be pulled into shared objects from archives
 
7294
          whole_archive_flag_spec='$convenience'
 
7295
          archive_cmds_need_lc=yes
 
7296
          # This is similar to how AIX traditionally builds its shared libraries.
 
7297
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
7298
        fi
 
7299
      fi
 
7300
      ;;
 
7301
 
 
7302
    amigaos*)
 
7303
      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)'
 
7304
      hardcode_libdir_flag_spec='-L$libdir'
 
7305
      hardcode_minus_L=yes
 
7306
      # see comment about different semantics on the GNU ld section
 
7307
      ld_shlibs=no
 
7308
      ;;
 
7309
 
 
7310
    bsdi[45]*)
 
7311
      export_dynamic_flag_spec=-rdynamic
 
7312
      ;;
 
7313
 
 
7314
    cygwin* | mingw* | pw32*)
 
7315
      # When not using gcc, we currently assume that we are using
 
7316
      # Microsoft Visual C++.
 
7317
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7318
      # no search path for DLLs.
 
7319
      hardcode_libdir_flag_spec=' '
 
7320
      allow_undefined_flag=unsupported
 
7321
      # Tell ltmain to make .lib files, not .a files.
 
7322
      libext=lib
 
7323
      # Tell ltmain to make .dll files, not .so files.
 
7324
      shrext_cmds=".dll"
 
7325
      # FIXME: Setting linknames here is a bad hack.
 
7326
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7327
      # The linker will automatically build a .lib file if we build a DLL.
 
7328
      old_archive_From_new_cmds='true'
 
7329
      # FIXME: Should let the user specify the lib program.
 
7330
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7331
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7332
      enable_shared_with_static_runtimes=yes
 
7333
      ;;
 
7334
 
 
7335
    darwin* | rhapsody*)
 
7336
      case $host_os in
 
7337
        rhapsody* | darwin1.[012])
 
7338
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
7339
         ;;
 
7340
       *) # Darwin 1.3 on
 
7341
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7342
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7343
         else
 
7344
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7345
             10.[012])
 
7346
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7347
               ;;
 
7348
             10.*)
 
7349
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
7350
               ;;
 
7351
           esac
 
7352
         fi
 
7353
         ;;
 
7354
      esac
 
7355
      archive_cmds_need_lc=no
 
7356
      hardcode_direct=no
 
7357
      hardcode_automatic=yes
 
7358
      hardcode_shlibpath_var=unsupported
 
7359
      whole_archive_flag_spec=''
 
7360
      link_all_deplibs=yes
 
7361
    if test "$GCC" = yes ; then
 
7362
        output_verbose_link_cmd='echo'
 
7363
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7364
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7365
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7366
      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}'
 
7367
      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}'
 
7368
    else
 
7369
      case $cc_basename in
 
7370
        xlc*)
 
7371
         output_verbose_link_cmd='echo'
 
7372
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
7373
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7374
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7375
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7376
          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}'
 
7377
          ;;
 
7378
       *)
 
7379
         ld_shlibs=no
 
7380
          ;;
 
7381
      esac
 
7382
    fi
 
7383
      ;;
 
7384
 
 
7385
    dgux*)
 
7386
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7387
      hardcode_libdir_flag_spec='-L$libdir'
 
7388
      hardcode_shlibpath_var=no
 
7389
      ;;
 
7390
 
 
7391
    freebsd1*)
 
7392
      ld_shlibs=no
 
7393
      ;;
 
7394
 
 
7395
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7396
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7397
    # does not break anything, and helps significantly (at the cost of a little
 
7398
    # extra space).
 
7399
    freebsd2.2*)
 
7400
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7401
      hardcode_libdir_flag_spec='-R$libdir'
 
7402
      hardcode_direct=yes
 
7403
      hardcode_shlibpath_var=no
 
7404
      ;;
 
7405
 
 
7406
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7407
    freebsd2*)
 
7408
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7409
      hardcode_direct=yes
 
7410
      hardcode_minus_L=yes
 
7411
      hardcode_shlibpath_var=no
 
7412
      ;;
 
7413
 
 
7414
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7415
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
7416
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7417
      hardcode_libdir_flag_spec='-R$libdir'
 
7418
      hardcode_direct=yes
 
7419
      hardcode_shlibpath_var=no
 
7420
      ;;
 
7421
 
 
7422
    hpux9*)
 
7423
      if test "$GCC" = yes; then
 
7424
        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'
 
7425
      else
 
7426
        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'
 
7427
      fi
 
7428
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7429
      hardcode_libdir_separator=:
 
7430
      hardcode_direct=yes
 
7431
 
 
7432
      # hardcode_minus_L: Not really in the search PATH,
 
7433
      # but as the default location of the library.
 
7434
      hardcode_minus_L=yes
 
7435
      export_dynamic_flag_spec='${wl}-E'
 
7436
      ;;
 
7437
 
 
7438
    hpux10*)
 
7439
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7440
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7441
      else
 
7442
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7443
      fi
 
7444
      if test "$with_gnu_ld" = no; then
 
7445
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7446
        hardcode_libdir_separator=:
 
7447
 
 
7448
        hardcode_direct=yes
 
7449
        export_dynamic_flag_spec='${wl}-E'
 
7450
 
 
7451
        # hardcode_minus_L: Not really in the search PATH,
 
7452
        # but as the default location of the library.
 
7453
        hardcode_minus_L=yes
 
7454
      fi
 
7455
      ;;
 
7456
 
 
7457
    hpux11*)
 
7458
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7459
        case $host_cpu in
 
7460
        hppa*64*)
 
7461
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7462
          ;;
 
7463
        ia64*)
 
7464
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7465
          ;;
 
7466
        *)
 
7467
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7468
          ;;
 
7469
        esac
 
7470
      else
 
7471
        case $host_cpu in
 
7472
        hppa*64*)
 
7473
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7474
          ;;
 
7475
        ia64*)
 
7476
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7477
          ;;
 
7478
        *)
 
7479
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7480
          ;;
 
7481
        esac
 
7482
      fi
 
7483
      if test "$with_gnu_ld" = no; then
 
7484
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7485
        hardcode_libdir_separator=:
 
7486
 
 
7487
        case $host_cpu in
 
7488
        hppa*64*|ia64*)
 
7489
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
7490
          hardcode_direct=no
 
7491
          hardcode_shlibpath_var=no
 
7492
          ;;
 
7493
        *)
 
7494
          hardcode_direct=yes
 
7495
          export_dynamic_flag_spec='${wl}-E'
 
7496
 
 
7497
          # hardcode_minus_L: Not really in the search PATH,
 
7498
          # but as the default location of the library.
 
7499
          hardcode_minus_L=yes
 
7500
          ;;
 
7501
        esac
 
7502
      fi
 
7503
      ;;
 
7504
 
 
7505
    irix5* | irix6* | nonstopux*)
 
7506
      if test "$GCC" = yes; then
 
7507
        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'
 
7508
      else
 
7509
        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'
 
7510
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
7511
      fi
 
7512
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7513
      hardcode_libdir_separator=:
 
7514
      link_all_deplibs=yes
 
7515
      ;;
 
7516
 
 
7517
    netbsd*)
 
7518
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7519
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7520
      else
 
7521
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7522
      fi
 
7523
      hardcode_libdir_flag_spec='-R$libdir'
 
7524
      hardcode_direct=yes
 
7525
      hardcode_shlibpath_var=no
 
7526
      ;;
 
7527
 
 
7528
    newsos6)
 
7529
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7530
      hardcode_direct=yes
 
7531
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7532
      hardcode_libdir_separator=:
 
7533
      hardcode_shlibpath_var=no
 
7534
      ;;
 
7535
 
 
7536
    openbsd*)
 
7537
      hardcode_direct=yes
 
7538
      hardcode_shlibpath_var=no
 
7539
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7540
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7541
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7542
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7543
        export_dynamic_flag_spec='${wl}-E'
 
7544
      else
 
7545
       case $host_os in
 
7546
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7547
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7548
           hardcode_libdir_flag_spec='-R$libdir'
 
7549
           ;;
 
7550
         *)
 
7551
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7552
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7553
           ;;
 
7554
       esac
 
7555
      fi
 
7556
      ;;
 
7557
 
 
7558
    os2*)
 
7559
      hardcode_libdir_flag_spec='-L$libdir'
 
7560
      hardcode_minus_L=yes
 
7561
      allow_undefined_flag=unsupported
 
7562
      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'
 
7563
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7564
      ;;
 
7565
 
 
7566
    osf3*)
 
7567
      if test "$GCC" = yes; then
 
7568
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7569
        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'
 
7570
      else
 
7571
        allow_undefined_flag=' -expect_unresolved \*'
 
7572
        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'
 
7573
      fi
 
7574
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7575
      hardcode_libdir_separator=:
 
7576
      ;;
 
7577
 
 
7578
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7579
      if test "$GCC" = yes; then
 
7580
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7581
        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'
 
7582
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7583
      else
 
7584
        allow_undefined_flag=' -expect_unresolved \*'
 
7585
        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'
 
7586
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7587
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
7588
 
 
7589
        # Both c and cxx compiler support -rpath directly
 
7590
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7591
      fi
 
7592
      hardcode_libdir_separator=:
 
7593
      ;;
 
7594
 
 
7595
    solaris*)
 
7596
      no_undefined_flag=' -z text'
 
7597
      if test "$GCC" = yes; then
 
7598
        wlarc='${wl}'
 
7599
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7600
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7601
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7602
      else
 
7603
        wlarc=''
 
7604
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7605
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7606
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7607
      fi
 
7608
      hardcode_libdir_flag_spec='-R$libdir'
 
7609
      hardcode_shlibpath_var=no
 
7610
      case $host_os in
 
7611
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7612
      *)
 
7613
        # The compiler driver will combine linker options so we
 
7614
        # cannot just pass the convience library names through
 
7615
        # without $wl, iff we do not link with $LD.
 
7616
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7617
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7618
        case $wlarc in
 
7619
        '')
 
7620
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7621
        *)
 
7622
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
7623
        esac ;;
 
7624
      esac
 
7625
      link_all_deplibs=yes
 
7626
      ;;
 
7627
 
 
7628
    sunos4*)
 
7629
      if test "x$host_vendor" = xsequent; then
 
7630
        # Use $CC to link under sequent, because it throws in some extra .o
 
7631
        # files that make .init and .fini sections work.
 
7632
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7633
      else
 
7634
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7635
      fi
 
7636
      hardcode_libdir_flag_spec='-L$libdir'
 
7637
      hardcode_direct=yes
 
7638
      hardcode_minus_L=yes
 
7639
      hardcode_shlibpath_var=no
 
7640
      ;;
 
7641
 
 
7642
    sysv4)
 
7643
      case $host_vendor in
 
7644
        sni)
 
7645
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7646
          hardcode_direct=yes # is this really true???
 
7647
        ;;
 
7648
        siemens)
 
7649
          ## LD is ld it makes a PLAMLIB
 
7650
          ## CC just makes a GrossModule.
 
7651
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7652
          reload_cmds='$CC -r -o $output$reload_objs'
 
7653
          hardcode_direct=no
 
7654
        ;;
 
7655
        motorola)
 
7656
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7657
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7658
        ;;
 
7659
      esac
 
7660
      runpath_var='LD_RUN_PATH'
 
7661
      hardcode_shlibpath_var=no
 
7662
      ;;
 
7663
 
 
7664
    sysv4.3*)
 
7665
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7666
      hardcode_shlibpath_var=no
 
7667
      export_dynamic_flag_spec='-Bexport'
 
7668
      ;;
 
7669
 
 
7670
    sysv4*MP*)
 
7671
      if test -d /usr/nec; then
 
7672
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7673
        hardcode_shlibpath_var=no
 
7674
        runpath_var=LD_RUN_PATH
 
7675
        hardcode_runpath_var=yes
 
7676
        ld_shlibs=yes
 
7677
      fi
 
7678
      ;;
 
7679
 
 
7680
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
7681
      no_undefined_flag='${wl}-z,text'
 
7682
      archive_cmds_need_lc=no
 
7683
      hardcode_shlibpath_var=no
 
7684
      runpath_var='LD_RUN_PATH'
 
7685
 
 
7686
      if test "$GCC" = yes; then
 
7687
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7688
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7689
      else
 
7690
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7691
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7692
      fi
 
7693
      ;;
 
7694
 
 
7695
    sysv5* | sco3.2v5* | sco5v6*)
 
7696
      # Note: We can NOT use -z defs as we might desire, because we do not
 
7697
      # link with -lc, and that would cause any symbols used from libc to
 
7698
      # always be unresolved, which means just about no library would
 
7699
      # ever link correctly.  If we're not using GNU ld we use -z text
 
7700
      # though, which does catch some bad symbols but isn't as heavy-handed
 
7701
      # as -z defs.
 
7702
      no_undefined_flag='${wl}-z,text'
 
7703
      allow_undefined_flag='${wl}-z,nodefs'
 
7704
      archive_cmds_need_lc=no
 
7705
      hardcode_shlibpath_var=no
 
7706
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
7707
      hardcode_libdir_separator=':'
 
7708
      link_all_deplibs=yes
 
7709
      export_dynamic_flag_spec='${wl}-Bexport'
 
7710
      runpath_var='LD_RUN_PATH'
 
7711
 
 
7712
      if test "$GCC" = yes; then
 
7713
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7714
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7715
      else
 
7716
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7717
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7718
      fi
 
7719
      ;;
 
7720
 
 
7721
    uts4*)
 
7722
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7723
      hardcode_libdir_flag_spec='-L$libdir'
 
7724
      hardcode_shlibpath_var=no
 
7725
      ;;
 
7726
 
 
7727
    *)
 
7728
      ld_shlibs=no
 
7729
      ;;
 
7730
    esac
 
7731
  fi
 
7732
 
 
7733
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7734
echo "${ECHO_T}$ld_shlibs" >&6
 
7735
test "$ld_shlibs" = no && can_build_shared=no
 
7736
 
 
7737
#
 
7738
# Do we need to explicitly link libc?
 
7739
#
 
7740
case "x$archive_cmds_need_lc" in
 
7741
x|xyes)
 
7742
  # Assume -lc should be added
 
7743
  archive_cmds_need_lc=yes
 
7744
 
 
7745
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7746
    case $archive_cmds in
 
7747
    *'~'*)
 
7748
      # FIXME: we may have to deal with multi-command sequences.
 
7749
      ;;
 
7750
    '$CC '*)
 
7751
      # Test whether the compiler implicitly links with -lc since on some
 
7752
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7753
      # to ld, don't add -lc before -lgcc.
 
7754
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7755
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7756
      $rm conftest*
 
7757
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7758
 
 
7759
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7760
  (eval $ac_compile) 2>&5
 
7761
  ac_status=$?
 
7762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7763
  (exit $ac_status); } 2>conftest.err; then
 
7764
        soname=conftest
 
7765
        lib=conftest
 
7766
        libobjs=conftest.$ac_objext
 
7767
        deplibs=
 
7768
        wl=$lt_prog_compiler_wl
 
7769
        pic_flag=$lt_prog_compiler_pic
 
7770
        compiler_flags=-v
 
7771
        linker_flags=-v
 
7772
        verstring=
 
7773
        output_objdir=.
 
7774
        libname=conftest
 
7775
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7776
        allow_undefined_flag=
 
7777
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7778
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7779
  ac_status=$?
 
7780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7781
  (exit $ac_status); }
 
7782
        then
 
7783
          archive_cmds_need_lc=no
 
7784
        else
 
7785
          archive_cmds_need_lc=yes
 
7786
        fi
 
7787
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7788
      else
 
7789
        cat conftest.err 1>&5
 
7790
      fi
 
7791
      $rm conftest*
 
7792
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7793
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7794
      ;;
 
7795
    esac
 
7796
  fi
 
7797
  ;;
 
7798
esac
 
7799
 
 
7800
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7801
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7802
library_names_spec=
 
7803
libname_spec='lib$name'
 
7804
soname_spec=
 
7805
shrext_cmds=".so"
 
7806
postinstall_cmds=
 
7807
postuninstall_cmds=
 
7808
finish_cmds=
 
7809
finish_eval=
 
7810
shlibpath_var=
 
7811
shlibpath_overrides_runpath=unknown
 
7812
version_type=none
 
7813
dynamic_linker="$host_os ld.so"
 
7814
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7815
if test "$GCC" = yes; then
 
7816
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7817
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7818
    # if the path contains ";" then we assume it to be the separator
 
7819
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7820
    # assumed that no part of a normal pathname contains ";" but that should
 
7821
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7822
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7823
  else
 
7824
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7825
  fi
 
7826
else
 
7827
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7828
fi
 
7829
need_lib_prefix=unknown
 
7830
hardcode_into_libs=no
 
7831
 
 
7832
# when you set need_version to no, make sure it does not cause -set_version
 
7833
# flags to be left without arguments
 
7834
need_version=unknown
 
7835
 
 
7836
case $host_os in
 
7837
aix3*)
 
7838
  version_type=linux
 
7839
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7840
  shlibpath_var=LIBPATH
 
7841
 
 
7842
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7843
  soname_spec='${libname}${release}${shared_ext}$major'
 
7844
  ;;
 
7845
 
 
7846
aix4* | aix5*)
 
7847
  version_type=linux
 
7848
  need_lib_prefix=no
 
7849
  need_version=no
 
7850
  hardcode_into_libs=yes
 
7851
  if test "$host_cpu" = ia64; then
 
7852
    # AIX 5 supports IA64
 
7853
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7854
    shlibpath_var=LD_LIBRARY_PATH
 
7855
  else
 
7856
    # With GCC up to 2.95.x, collect2 would create an import file
 
7857
    # for dependence libraries.  The import file would start with
 
7858
    # the line `#! .'.  This would cause the generated library to
 
7859
    # depend on `.', always an invalid library.  This was fixed in
 
7860
    # development snapshots of GCC prior to 3.0.
 
7861
    case $host_os in
 
7862
      aix4 | aix4.[01] | aix4.[01].*)
 
7863
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7864
           echo ' yes '
 
7865
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7866
        :
 
7867
      else
 
7868
        can_build_shared=no
 
7869
      fi
 
7870
      ;;
 
7871
    esac
 
7872
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7873
    # soname into executable. Probably we can add versioning support to
 
7874
    # collect2, so additional links can be useful in future.
 
7875
    if test "$aix_use_runtimelinking" = yes; then
 
7876
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7877
      # instead of lib<name>.a to let people know that these are not
 
7878
      # typical AIX shared libraries.
 
7879
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7880
    else
 
7881
      # We preserve .a as extension for shared libraries through AIX4.2
 
7882
      # and later when we are not doing run time linking.
 
7883
      library_names_spec='${libname}${release}.a $libname.a'
 
7884
      soname_spec='${libname}${release}${shared_ext}$major'
 
7885
    fi
 
7886
    shlibpath_var=LIBPATH
 
7887
  fi
 
7888
  ;;
 
7889
 
 
7890
amigaos*)
 
7891
  library_names_spec='$libname.ixlibrary $libname.a'
 
7892
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7893
  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'
 
7894
  ;;
 
7895
 
 
7896
beos*)
 
7897
  library_names_spec='${libname}${shared_ext}'
 
7898
  dynamic_linker="$host_os ld.so"
 
7899
  shlibpath_var=LIBRARY_PATH
 
7900
  ;;
 
7901
 
 
7902
bsdi[45]*)
 
7903
  version_type=linux
 
7904
  need_version=no
 
7905
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7906
  soname_spec='${libname}${release}${shared_ext}$major'
 
7907
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7908
  shlibpath_var=LD_LIBRARY_PATH
 
7909
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7910
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7911
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7912
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7913
  # libtool to hard-code these into programs
 
7914
  ;;
 
7915
 
 
7916
cygwin* | mingw* | pw32*)
 
7917
  version_type=windows
 
7918
  shrext_cmds=".dll"
 
7919
  need_version=no
 
7920
  need_lib_prefix=no
 
7921
 
 
7922
  case $GCC,$host_os in
 
7923
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7924
    library_names_spec='$libname.dll.a'
 
7925
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7926
    postinstall_cmds='base_file=`basename \${file}`~
 
7927
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7928
      dldir=$destdir/`dirname \$dlpath`~
 
7929
      test -d \$dldir || mkdir -p \$dldir~
 
7930
      $install_prog $dir/$dlname \$dldir/$dlname~
 
7931
      chmod a+x \$dldir/$dlname'
 
7932
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7933
      dlpath=$dir/\$dldll~
 
7934
       $rm \$dlpath'
 
7935
    shlibpath_overrides_runpath=yes
 
7936
 
 
7937
    case $host_os in
 
7938
    cygwin*)
 
7939
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7940
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7941
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7942
      ;;
 
7943
    mingw*)
 
7944
      # MinGW DLLs use traditional 'lib' prefix
 
7945
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7946
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7947
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7948
        # It is most probably a Windows format PATH printed by
 
7949
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7950
        # path with ; separators, and with drive letters. We can handle the
 
7951
        # drive letters (cygwin fileutils understands them), so leave them,
 
7952
        # especially as we might pass files found there to a mingw objdump,
 
7953
        # which wouldn't understand a cygwinified path. Ahh.
 
7954
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7955
      else
 
7956
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7957
      fi
 
7958
      ;;
 
7959
    pw32*)
 
7960
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7961
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7962
      ;;
 
7963
    esac
 
7964
    ;;
 
7965
 
 
7966
  *)
 
7967
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7968
    ;;
 
7969
  esac
 
7970
  dynamic_linker='Win32 ld.exe'
 
7971
  # FIXME: first we should search . and the directory the executable is in
 
7972
  shlibpath_var=PATH
 
7973
  ;;
 
7974
 
 
7975
darwin* | rhapsody*)
 
7976
  dynamic_linker="$host_os dyld"
 
7977
  version_type=darwin
 
7978
  need_lib_prefix=no
 
7979
  need_version=no
 
7980
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7981
  soname_spec='${libname}${release}${major}$shared_ext'
 
7982
  shlibpath_overrides_runpath=yes
 
7983
  shlibpath_var=DYLD_LIBRARY_PATH
 
7984
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
7985
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
7986
  if test "$GCC" = yes; then
 
7987
    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"`
 
7988
  else
 
7989
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
7990
  fi
 
7991
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
7992
  ;;
 
7993
 
 
7994
dgux*)
 
7995
  version_type=linux
 
7996
  need_lib_prefix=no
 
7997
  need_version=no
 
7998
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
7999
  soname_spec='${libname}${release}${shared_ext}$major'
 
8000
  shlibpath_var=LD_LIBRARY_PATH
 
8001
  ;;
 
8002
 
 
8003
freebsd1*)
 
8004
  dynamic_linker=no
 
8005
  ;;
 
8006
 
 
8007
kfreebsd*-gnu)
 
8008
  version_type=linux
 
8009
  need_lib_prefix=no
 
8010
  need_version=no
 
8011
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8012
  soname_spec='${libname}${release}${shared_ext}$major'
 
8013
  shlibpath_var=LD_LIBRARY_PATH
 
8014
  shlibpath_overrides_runpath=no
 
8015
  hardcode_into_libs=yes
 
8016
  dynamic_linker='GNU ld.so'
 
8017
  ;;
 
8018
 
 
8019
freebsd* | dragonfly*)
 
8020
  # DragonFly does not have aout.  When/if they implement a new
 
8021
  # versioning mechanism, adjust this.
 
8022
  if test -x /usr/bin/objformat; then
 
8023
    objformat=`/usr/bin/objformat`
 
8024
  else
 
8025
    case $host_os in
 
8026
    freebsd[123]*) objformat=aout ;;
 
8027
    *) objformat=elf ;;
 
8028
    esac
 
8029
  fi
 
8030
  version_type=freebsd-$objformat
 
8031
  case $version_type in
 
8032
    freebsd-elf*)
 
8033
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8034
      need_version=no
 
8035
      need_lib_prefix=no
 
8036
      ;;
 
8037
    freebsd-*)
 
8038
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8039
      need_version=yes
 
8040
      ;;
 
8041
  esac
 
8042
  shlibpath_var=LD_LIBRARY_PATH
 
8043
  case $host_os in
 
8044
  freebsd2*)
 
8045
    shlibpath_overrides_runpath=yes
 
8046
    ;;
 
8047
  freebsd3.[01]* | freebsdelf3.[01]*)
 
8048
    shlibpath_overrides_runpath=yes
 
8049
    hardcode_into_libs=yes
 
8050
    ;;
 
8051
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8052
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
8053
    shlibpath_overrides_runpath=no
 
8054
    hardcode_into_libs=yes
 
8055
    ;;
 
8056
  freebsd*) # from 4.6 on
 
8057
    shlibpath_overrides_runpath=yes
 
8058
    hardcode_into_libs=yes
 
8059
    ;;
 
8060
  esac
 
8061
  ;;
 
8062
 
 
8063
gnu*)
 
8064
  version_type=linux
 
8065
  need_lib_prefix=no
 
8066
  need_version=no
 
8067
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8068
  soname_spec='${libname}${release}${shared_ext}$major'
 
8069
  shlibpath_var=LD_LIBRARY_PATH
 
8070
  hardcode_into_libs=yes
 
8071
  ;;
 
8072
 
 
8073
hpux9* | hpux10* | hpux11*)
 
8074
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8075
  # link against other versions.
 
8076
  version_type=sunos
 
8077
  need_lib_prefix=no
 
8078
  need_version=no
 
8079
  case $host_cpu in
 
8080
  ia64*)
 
8081
    shrext_cmds='.so'
 
8082
    hardcode_into_libs=yes
 
8083
    dynamic_linker="$host_os dld.so"
 
8084
    shlibpath_var=LD_LIBRARY_PATH
 
8085
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8086
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8087
    soname_spec='${libname}${release}${shared_ext}$major'
 
8088
    if test "X$HPUX_IA64_MODE" = X32; then
 
8089
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8090
    else
 
8091
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8092
    fi
 
8093
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8094
    ;;
 
8095
   hppa*64*)
 
8096
     shrext_cmds='.sl'
 
8097
     hardcode_into_libs=yes
 
8098
     dynamic_linker="$host_os dld.sl"
 
8099
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8100
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8101
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8102
     soname_spec='${libname}${release}${shared_ext}$major'
 
8103
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8104
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8105
     ;;
 
8106
   *)
 
8107
    shrext_cmds='.sl'
 
8108
    dynamic_linker="$host_os dld.sl"
 
8109
    shlibpath_var=SHLIB_PATH
 
8110
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8111
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8112
    soname_spec='${libname}${release}${shared_ext}$major'
 
8113
    ;;
 
8114
  esac
 
8115
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8116
  postinstall_cmds='chmod 555 $lib'
 
8117
  ;;
 
8118
 
 
8119
interix3*)
 
8120
  version_type=linux
 
8121
  need_lib_prefix=no
 
8122
  need_version=no
 
8123
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8124
  soname_spec='${libname}${release}${shared_ext}$major'
 
8125
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
8126
  shlibpath_var=LD_LIBRARY_PATH
 
8127
  shlibpath_overrides_runpath=no
 
8128
  hardcode_into_libs=yes
 
8129
  ;;
 
8130
 
 
8131
irix5* | irix6* | nonstopux*)
 
8132
  case $host_os in
 
8133
    nonstopux*) version_type=nonstopux ;;
 
8134
    *)
 
8135
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8136
                version_type=linux
 
8137
        else
 
8138
                version_type=irix
 
8139
        fi ;;
 
8140
  esac
 
8141
  need_lib_prefix=no
 
8142
  need_version=no
 
8143
  soname_spec='${libname}${release}${shared_ext}$major'
 
8144
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8145
  case $host_os in
 
8146
  irix5* | nonstopux*)
 
8147
    libsuff= shlibsuff=
 
8148
    ;;
 
8149
  *)
 
8150
    case $LD in # libtool.m4 will add one of these switches to LD
 
8151
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8152
      libsuff= shlibsuff= libmagic=32-bit;;
 
8153
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8154
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8155
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8156
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8157
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8158
    esac
 
8159
    ;;
 
8160
  esac
 
8161
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8162
  shlibpath_overrides_runpath=no
 
8163
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8164
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8165
  hardcode_into_libs=yes
 
8166
  ;;
 
8167
 
 
8168
# No shared lib support for Linux oldld, aout, or coff.
 
8169
linux*oldld* | linux*aout* | linux*coff*)
 
8170
  dynamic_linker=no
 
8171
  ;;
 
8172
 
 
8173
# This must be Linux ELF.
 
8174
linux*)
 
8175
  version_type=linux
 
8176
  need_lib_prefix=no
 
8177
  need_version=no
 
8178
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8179
  soname_spec='${libname}${release}${shared_ext}$major'
 
8180
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8181
  shlibpath_var=LD_LIBRARY_PATH
 
8182
  shlibpath_overrides_runpath=no
 
8183
  # This implies no fast_install, which is unacceptable.
 
8184
  # Some rework will be needed to allow for fast_install
 
8185
  # before this can be enabled.
 
8186
  hardcode_into_libs=yes
 
8187
 
 
8188
  # find out which ABI we are using
 
8189
  libsuff=
 
8190
  case "$host_cpu" in
 
8191
  x86_64*|s390x*|powerpc64*)
 
8192
    echo '#line 8192 "configure"' > conftest.$ac_ext
 
8193
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8194
  (eval $ac_compile) 2>&5
 
8195
  ac_status=$?
 
8196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8197
  (exit $ac_status); }; then
 
8198
      case `/usr/bin/file conftest.$ac_objext` in
 
8199
      *64-bit*)
 
8200
        libsuff=64
 
8201
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
8202
        ;;
 
8203
      esac
 
8204
    fi
 
8205
    rm -rf conftest*
 
8206
    ;;
 
8207
  esac
 
8208
 
 
8209
  # Append ld.so.conf contents to the search path
 
8210
  if test -f /etc/ld.so.conf; then
 
8211
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
8212
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
8213
  fi
 
8214
 
 
8215
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8216
  # powerpc, because MkLinux only supported shared libraries with the
 
8217
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8218
  # most powerpc-linux boxes support dynamic linking these days and
 
8219
  # people can always --disable-shared, the test was removed, and we
 
8220
  # assume the GNU/Linux dynamic linker is in use.
 
8221
  dynamic_linker='GNU/Linux ld.so'
 
8222
  ;;
 
8223
 
 
8224
knetbsd*-gnu)
 
8225
  version_type=linux
 
8226
  need_lib_prefix=no
 
8227
  need_version=no
 
8228
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8229
  soname_spec='${libname}${release}${shared_ext}$major'
 
8230
  shlibpath_var=LD_LIBRARY_PATH
 
8231
  shlibpath_overrides_runpath=no
 
8232
  hardcode_into_libs=yes
 
8233
  dynamic_linker='GNU ld.so'
 
8234
  ;;
 
8235
 
 
8236
netbsd*)
 
8237
  version_type=sunos
 
8238
  need_lib_prefix=no
 
8239
  need_version=no
 
8240
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8241
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8242
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8243
    dynamic_linker='NetBSD (a.out) ld.so'
 
8244
  else
 
8245
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8246
    soname_spec='${libname}${release}${shared_ext}$major'
 
8247
    dynamic_linker='NetBSD ld.elf_so'
 
8248
  fi
 
8249
  shlibpath_var=LD_LIBRARY_PATH
 
8250
  shlibpath_overrides_runpath=yes
 
8251
  hardcode_into_libs=yes
 
8252
  ;;
 
8253
 
 
8254
newsos6)
 
8255
  version_type=linux
 
8256
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8257
  shlibpath_var=LD_LIBRARY_PATH
 
8258
  shlibpath_overrides_runpath=yes
 
8259
  ;;
 
8260
 
 
8261
nto-qnx*)
 
8262
  version_type=linux
 
8263
  need_lib_prefix=no
 
8264
  need_version=no
 
8265
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8266
  soname_spec='${libname}${release}${shared_ext}$major'
 
8267
  shlibpath_var=LD_LIBRARY_PATH
 
8268
  shlibpath_overrides_runpath=yes
 
8269
  ;;
 
8270
 
 
8271
openbsd*)
 
8272
  version_type=sunos
 
8273
  sys_lib_dlsearch_path_spec="/usr/lib"
 
8274
  need_lib_prefix=no
 
8275
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8276
  case $host_os in
 
8277
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8278
    *)                         need_version=no  ;;
 
8279
  esac
 
8280
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8281
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8282
  shlibpath_var=LD_LIBRARY_PATH
 
8283
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8284
    case $host_os in
 
8285
      openbsd2.[89] | openbsd2.[89].*)
 
8286
        shlibpath_overrides_runpath=no
 
8287
        ;;
 
8288
      *)
 
8289
        shlibpath_overrides_runpath=yes
 
8290
        ;;
 
8291
      esac
 
8292
  else
 
8293
    shlibpath_overrides_runpath=yes
 
8294
  fi
 
8295
  ;;
 
8296
 
 
8297
os2*)
 
8298
  libname_spec='$name'
 
8299
  shrext_cmds=".dll"
 
8300
  need_lib_prefix=no
 
8301
  library_names_spec='$libname${shared_ext} $libname.a'
 
8302
  dynamic_linker='OS/2 ld.exe'
 
8303
  shlibpath_var=LIBPATH
 
8304
  ;;
 
8305
 
 
8306
osf3* | osf4* | osf5*)
 
8307
  version_type=osf
 
8308
  need_lib_prefix=no
 
8309
  need_version=no
 
8310
  soname_spec='${libname}${release}${shared_ext}$major'
 
8311
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8312
  shlibpath_var=LD_LIBRARY_PATH
 
8313
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8314
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8315
  ;;
 
8316
 
 
8317
solaris*)
 
8318
  version_type=linux
 
8319
  need_lib_prefix=no
 
8320
  need_version=no
 
8321
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8322
  soname_spec='${libname}${release}${shared_ext}$major'
 
8323
  shlibpath_var=LD_LIBRARY_PATH
 
8324
  shlibpath_overrides_runpath=yes
 
8325
  hardcode_into_libs=yes
 
8326
  # ldd complains unless libraries are executable
 
8327
  postinstall_cmds='chmod +x $lib'
 
8328
  ;;
 
8329
 
 
8330
sunos4*)
 
8331
  version_type=sunos
 
8332
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8333
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8334
  shlibpath_var=LD_LIBRARY_PATH
 
8335
  shlibpath_overrides_runpath=yes
 
8336
  if test "$with_gnu_ld" = yes; then
 
8337
    need_lib_prefix=no
 
8338
  fi
 
8339
  need_version=yes
 
8340
  ;;
 
8341
 
 
8342
sysv4 | sysv4.3*)
 
8343
  version_type=linux
 
8344
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8345
  soname_spec='${libname}${release}${shared_ext}$major'
 
8346
  shlibpath_var=LD_LIBRARY_PATH
 
8347
  case $host_vendor in
 
8348
    sni)
 
8349
      shlibpath_overrides_runpath=no
 
8350
      need_lib_prefix=no
 
8351
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8352
      runpath_var=LD_RUN_PATH
 
8353
      ;;
 
8354
    siemens)
 
8355
      need_lib_prefix=no
 
8356
      ;;
 
8357
    motorola)
 
8358
      need_lib_prefix=no
 
8359
      need_version=no
 
8360
      shlibpath_overrides_runpath=no
 
8361
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8362
      ;;
 
8363
  esac
 
8364
  ;;
 
8365
 
 
8366
sysv4*MP*)
 
8367
  if test -d /usr/nec ;then
 
8368
    version_type=linux
 
8369
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8370
    soname_spec='$libname${shared_ext}.$major'
 
8371
    shlibpath_var=LD_LIBRARY_PATH
 
8372
  fi
 
8373
  ;;
 
8374
 
 
8375
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
8376
  version_type=freebsd-elf
 
8377
  need_lib_prefix=no
 
8378
  need_version=no
 
8379
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8380
  soname_spec='${libname}${release}${shared_ext}$major'
 
8381
  shlibpath_var=LD_LIBRARY_PATH
 
8382
  hardcode_into_libs=yes
 
8383
  if test "$with_gnu_ld" = yes; then
 
8384
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
8385
    shlibpath_overrides_runpath=no
 
8386
  else
 
8387
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
8388
    shlibpath_overrides_runpath=yes
 
8389
    case $host_os in
 
8390
      sco3.2v5*)
 
8391
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
8392
        ;;
 
8393
    esac
 
8394
  fi
 
8395
  sys_lib_dlsearch_path_spec='/usr/lib'
 
8396
  ;;
 
8397
 
 
8398
uts4*)
 
8399
  version_type=linux
 
8400
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8401
  soname_spec='${libname}${release}${shared_ext}$major'
 
8402
  shlibpath_var=LD_LIBRARY_PATH
 
8403
  ;;
 
8404
 
 
8405
*)
 
8406
  dynamic_linker=no
 
8407
  ;;
 
8408
esac
 
8409
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8410
echo "${ECHO_T}$dynamic_linker" >&6
 
8411
test "$dynamic_linker" = no && can_build_shared=no
 
8412
 
 
8413
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8414
if test "$GCC" = yes; then
 
8415
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8416
fi
 
8417
 
 
8418
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8419
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
8420
hardcode_action=
 
8421
if test -n "$hardcode_libdir_flag_spec" || \
 
8422
   test -n "$runpath_var" || \
 
8423
   test "X$hardcode_automatic" = "Xyes" ; then
 
8424
 
 
8425
  # We can hardcode non-existant directories.
 
8426
  if test "$hardcode_direct" != no &&
 
8427
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8428
     # have to relink, otherwise we might link with an installed library
 
8429
     # when we should be linking with a yet-to-be-installed one
 
8430
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8431
     test "$hardcode_minus_L" != no; then
 
8432
    # Linking always hardcodes the temporary library directory.
 
8433
    hardcode_action=relink
 
8434
  else
 
8435
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8436
    hardcode_action=immediate
 
8437
  fi
 
8438
else
 
8439
  # We cannot hardcode anything, or else we can only hardcode existing
 
8440
  # directories.
 
8441
  hardcode_action=unsupported
 
8442
fi
 
8443
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8444
echo "${ECHO_T}$hardcode_action" >&6
 
8445
 
 
8446
if test "$hardcode_action" = relink; then
 
8447
  # Fast installation is not supported
 
8448
  enable_fast_install=no
 
8449
elif test "$shlibpath_overrides_runpath" = yes ||
 
8450
     test "$enable_shared" = no; then
 
8451
  # Fast installation is not necessary
 
8452
  enable_fast_install=needless
 
8453
fi
 
8454
 
 
8455
striplib=
 
8456
old_striplib=
 
8457
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8458
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
8459
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
8460
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8461
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8462
  echo "$as_me:$LINENO: result: yes" >&5
 
8463
echo "${ECHO_T}yes" >&6
 
8464
else
 
8465
# FIXME - insert some real tests, host_os isn't really good enough
 
8466
  case $host_os in
 
8467
   darwin*)
 
8468
       if test -n "$STRIP" ; then
 
8469
         striplib="$STRIP -x"
 
8470
         echo "$as_me:$LINENO: result: yes" >&5
 
8471
echo "${ECHO_T}yes" >&6
 
8472
       else
 
8473
  echo "$as_me:$LINENO: result: no" >&5
 
8474
echo "${ECHO_T}no" >&6
 
8475
fi
 
8476
       ;;
 
8477
   *)
 
8478
  echo "$as_me:$LINENO: result: no" >&5
 
8479
echo "${ECHO_T}no" >&6
 
8480
    ;;
 
8481
  esac
 
8482
fi
 
8483
 
 
8484
if test "x$enable_dlopen" != xyes; then
 
8485
  enable_dlopen=unknown
 
8486
  enable_dlopen_self=unknown
 
8487
  enable_dlopen_self_static=unknown
 
8488
else
 
8489
  lt_cv_dlopen=no
 
8490
  lt_cv_dlopen_libs=
 
8491
 
 
8492
  case $host_os in
 
8493
  beos*)
 
8494
    lt_cv_dlopen="load_add_on"
 
8495
    lt_cv_dlopen_libs=
 
8496
    lt_cv_dlopen_self=yes
 
8497
    ;;
 
8498
 
 
8499
  mingw* | pw32*)
 
8500
    lt_cv_dlopen="LoadLibrary"
 
8501
    lt_cv_dlopen_libs=
 
8502
   ;;
 
8503
 
 
8504
  cygwin*)
 
8505
    lt_cv_dlopen="dlopen"
 
8506
    lt_cv_dlopen_libs=
 
8507
   ;;
 
8508
 
 
8509
  darwin*)
 
8510
  # if libdl is installed we need to link against it
 
8511
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8512
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8513
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8514
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8515
else
 
8516
  ac_check_lib_save_LIBS=$LIBS
 
8517
LIBS="-ldl  $LIBS"
 
8518
cat >conftest.$ac_ext <<_ACEOF
 
8519
/* confdefs.h.  */
 
8520
_ACEOF
 
8521
cat confdefs.h >>conftest.$ac_ext
 
8522
cat >>conftest.$ac_ext <<_ACEOF
 
8523
/* end confdefs.h.  */
 
8524
 
 
8525
/* Override any gcc2 internal prototype to avoid an error.  */
 
8526
#ifdef __cplusplus
 
8527
extern "C"
 
8528
#endif
 
8529
/* We use char because int might match the return type of a gcc2
 
8530
   builtin and then its argument prototype would still apply.  */
 
8531
char dlopen ();
 
8532
int
 
8533
main ()
 
8534
{
 
8535
dlopen ();
 
8536
  ;
 
8537
  return 0;
 
8538
}
 
8539
_ACEOF
 
8540
rm -f conftest.$ac_objext conftest$ac_exeext
 
8541
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8542
  (eval $ac_link) 2>conftest.er1
 
8543
  ac_status=$?
 
8544
  grep -v '^ *+' conftest.er1 >conftest.err
 
8545
  rm -f conftest.er1
 
8546
  cat conftest.err >&5
 
8547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8548
  (exit $ac_status); } &&
 
8549
         { ac_try='test -z "$ac_c_werror_flag"
 
8550
                         || test ! -s conftest.err'
 
8551
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8552
  (eval $ac_try) 2>&5
 
8553
  ac_status=$?
 
8554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8555
  (exit $ac_status); }; } &&
 
8556
         { ac_try='test -s conftest$ac_exeext'
 
8557
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8558
  (eval $ac_try) 2>&5
 
8559
  ac_status=$?
 
8560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8561
  (exit $ac_status); }; }; then
 
8562
  ac_cv_lib_dl_dlopen=yes
 
8563
else
 
8564
  echo "$as_me: failed program was:" >&5
 
8565
sed 's/^/| /' conftest.$ac_ext >&5
 
8566
 
 
8567
ac_cv_lib_dl_dlopen=no
 
8568
fi
 
8569
rm -f conftest.err conftest.$ac_objext \
 
8570
      conftest$ac_exeext conftest.$ac_ext
 
8571
LIBS=$ac_check_lib_save_LIBS
 
8572
fi
 
8573
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8574
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8575
if test $ac_cv_lib_dl_dlopen = yes; then
 
8576
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8577
else
 
8578
 
 
8579
    lt_cv_dlopen="dyld"
 
8580
    lt_cv_dlopen_libs=
 
8581
    lt_cv_dlopen_self=yes
 
8582
 
 
8583
fi
 
8584
 
 
8585
   ;;
 
8586
 
 
8587
  *)
 
8588
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8589
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
8590
if test "${ac_cv_func_shl_load+set}" = set; then
 
8591
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8592
else
 
8593
  cat >conftest.$ac_ext <<_ACEOF
 
8594
/* confdefs.h.  */
 
8595
_ACEOF
 
8596
cat confdefs.h >>conftest.$ac_ext
 
8597
cat >>conftest.$ac_ext <<_ACEOF
 
8598
/* end confdefs.h.  */
 
8599
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
8600
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8601
#define shl_load innocuous_shl_load
 
8602
 
 
8603
/* System header to define __stub macros and hopefully few prototypes,
 
8604
    which can conflict with char shl_load (); below.
 
8605
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8606
    <limits.h> exists even on freestanding compilers.  */
 
8607
 
 
8608
#ifdef __STDC__
 
8609
# include <limits.h>
 
8610
#else
 
8611
# include <assert.h>
 
8612
#endif
 
8613
 
 
8614
#undef shl_load
 
8615
 
 
8616
/* Override any gcc2 internal prototype to avoid an error.  */
 
8617
#ifdef __cplusplus
 
8618
extern "C"
 
8619
{
 
8620
#endif
 
8621
/* We use char because int might match the return type of a gcc2
 
8622
   builtin and then its argument prototype would still apply.  */
 
8623
char shl_load ();
 
8624
/* The GNU C library defines this for functions which it implements
 
8625
    to always fail with ENOSYS.  Some functions are actually named
 
8626
    something starting with __ and the normal name is an alias.  */
 
8627
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8628
choke me
 
8629
#else
 
8630
char (*f) () = shl_load;
 
8631
#endif
 
8632
#ifdef __cplusplus
 
8633
}
 
8634
#endif
 
8635
 
 
8636
int
 
8637
main ()
 
8638
{
 
8639
return f != shl_load;
 
8640
  ;
 
8641
  return 0;
 
8642
}
 
8643
_ACEOF
 
8644
rm -f conftest.$ac_objext conftest$ac_exeext
 
8645
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8646
  (eval $ac_link) 2>conftest.er1
 
8647
  ac_status=$?
 
8648
  grep -v '^ *+' conftest.er1 >conftest.err
 
8649
  rm -f conftest.er1
 
8650
  cat conftest.err >&5
 
8651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8652
  (exit $ac_status); } &&
 
8653
         { ac_try='test -z "$ac_c_werror_flag"
 
8654
                         || test ! -s conftest.err'
 
8655
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8656
  (eval $ac_try) 2>&5
 
8657
  ac_status=$?
 
8658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8659
  (exit $ac_status); }; } &&
 
8660
         { ac_try='test -s conftest$ac_exeext'
 
8661
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8662
  (eval $ac_try) 2>&5
 
8663
  ac_status=$?
 
8664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8665
  (exit $ac_status); }; }; then
 
8666
  ac_cv_func_shl_load=yes
 
8667
else
 
8668
  echo "$as_me: failed program was:" >&5
 
8669
sed 's/^/| /' conftest.$ac_ext >&5
 
8670
 
 
8671
ac_cv_func_shl_load=no
 
8672
fi
 
8673
rm -f conftest.err conftest.$ac_objext \
 
8674
      conftest$ac_exeext conftest.$ac_ext
 
8675
fi
 
8676
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8677
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8678
if test $ac_cv_func_shl_load = yes; then
 
8679
  lt_cv_dlopen="shl_load"
 
8680
else
 
8681
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8682
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8683
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8685
else
 
8686
  ac_check_lib_save_LIBS=$LIBS
 
8687
LIBS="-ldld  $LIBS"
 
8688
cat >conftest.$ac_ext <<_ACEOF
 
8689
/* confdefs.h.  */
 
8690
_ACEOF
 
8691
cat confdefs.h >>conftest.$ac_ext
 
8692
cat >>conftest.$ac_ext <<_ACEOF
 
8693
/* end confdefs.h.  */
 
8694
 
 
8695
/* Override any gcc2 internal prototype to avoid an error.  */
 
8696
#ifdef __cplusplus
 
8697
extern "C"
 
8698
#endif
 
8699
/* We use char because int might match the return type of a gcc2
 
8700
   builtin and then its argument prototype would still apply.  */
 
8701
char shl_load ();
 
8702
int
 
8703
main ()
 
8704
{
 
8705
shl_load ();
 
8706
  ;
 
8707
  return 0;
 
8708
}
 
8709
_ACEOF
 
8710
rm -f conftest.$ac_objext conftest$ac_exeext
 
8711
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8712
  (eval $ac_link) 2>conftest.er1
 
8713
  ac_status=$?
 
8714
  grep -v '^ *+' conftest.er1 >conftest.err
 
8715
  rm -f conftest.er1
 
8716
  cat conftest.err >&5
 
8717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8718
  (exit $ac_status); } &&
 
8719
         { ac_try='test -z "$ac_c_werror_flag"
 
8720
                         || test ! -s conftest.err'
 
8721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8722
  (eval $ac_try) 2>&5
 
8723
  ac_status=$?
 
8724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8725
  (exit $ac_status); }; } &&
 
8726
         { ac_try='test -s conftest$ac_exeext'
 
8727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8728
  (eval $ac_try) 2>&5
 
8729
  ac_status=$?
 
8730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8731
  (exit $ac_status); }; }; then
 
8732
  ac_cv_lib_dld_shl_load=yes
 
8733
else
 
8734
  echo "$as_me: failed program was:" >&5
 
8735
sed 's/^/| /' conftest.$ac_ext >&5
 
8736
 
 
8737
ac_cv_lib_dld_shl_load=no
 
8738
fi
 
8739
rm -f conftest.err conftest.$ac_objext \
 
8740
      conftest$ac_exeext conftest.$ac_ext
 
8741
LIBS=$ac_check_lib_save_LIBS
 
8742
fi
 
8743
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8744
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8745
if test $ac_cv_lib_dld_shl_load = yes; then
 
8746
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8747
else
 
8748
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8749
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8750
if test "${ac_cv_func_dlopen+set}" = set; then
 
8751
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8752
else
 
8753
  cat >conftest.$ac_ext <<_ACEOF
 
8754
/* confdefs.h.  */
 
8755
_ACEOF
 
8756
cat confdefs.h >>conftest.$ac_ext
 
8757
cat >>conftest.$ac_ext <<_ACEOF
 
8758
/* end confdefs.h.  */
 
8759
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
8760
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8761
#define dlopen innocuous_dlopen
 
8762
 
 
8763
/* System header to define __stub macros and hopefully few prototypes,
 
8764
    which can conflict with char dlopen (); below.
 
8765
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8766
    <limits.h> exists even on freestanding compilers.  */
 
8767
 
 
8768
#ifdef __STDC__
 
8769
# include <limits.h>
 
8770
#else
 
8771
# include <assert.h>
 
8772
#endif
 
8773
 
 
8774
#undef dlopen
 
8775
 
 
8776
/* Override any gcc2 internal prototype to avoid an error.  */
 
8777
#ifdef __cplusplus
 
8778
extern "C"
 
8779
{
 
8780
#endif
 
8781
/* We use char because int might match the return type of a gcc2
 
8782
   builtin and then its argument prototype would still apply.  */
 
8783
char dlopen ();
 
8784
/* The GNU C library defines this for functions which it implements
 
8785
    to always fail with ENOSYS.  Some functions are actually named
 
8786
    something starting with __ and the normal name is an alias.  */
 
8787
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8788
choke me
 
8789
#else
 
8790
char (*f) () = dlopen;
 
8791
#endif
 
8792
#ifdef __cplusplus
 
8793
}
 
8794
#endif
 
8795
 
 
8796
int
 
8797
main ()
 
8798
{
 
8799
return f != dlopen;
 
8800
  ;
 
8801
  return 0;
 
8802
}
 
8803
_ACEOF
 
8804
rm -f conftest.$ac_objext conftest$ac_exeext
 
8805
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8806
  (eval $ac_link) 2>conftest.er1
 
8807
  ac_status=$?
 
8808
  grep -v '^ *+' conftest.er1 >conftest.err
 
8809
  rm -f conftest.er1
 
8810
  cat conftest.err >&5
 
8811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8812
  (exit $ac_status); } &&
 
8813
         { ac_try='test -z "$ac_c_werror_flag"
 
8814
                         || test ! -s conftest.err'
 
8815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8816
  (eval $ac_try) 2>&5
 
8817
  ac_status=$?
 
8818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8819
  (exit $ac_status); }; } &&
 
8820
         { ac_try='test -s conftest$ac_exeext'
 
8821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8822
  (eval $ac_try) 2>&5
 
8823
  ac_status=$?
 
8824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8825
  (exit $ac_status); }; }; then
 
8826
  ac_cv_func_dlopen=yes
 
8827
else
 
8828
  echo "$as_me: failed program was:" >&5
 
8829
sed 's/^/| /' conftest.$ac_ext >&5
 
8830
 
 
8831
ac_cv_func_dlopen=no
 
8832
fi
 
8833
rm -f conftest.err conftest.$ac_objext \
 
8834
      conftest$ac_exeext conftest.$ac_ext
 
8835
fi
 
8836
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8837
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8838
if test $ac_cv_func_dlopen = yes; then
 
8839
  lt_cv_dlopen="dlopen"
 
8840
else
 
8841
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8842
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8843
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8844
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8845
else
 
8846
  ac_check_lib_save_LIBS=$LIBS
 
8847
LIBS="-ldl  $LIBS"
 
8848
cat >conftest.$ac_ext <<_ACEOF
 
8849
/* confdefs.h.  */
 
8850
_ACEOF
 
8851
cat confdefs.h >>conftest.$ac_ext
 
8852
cat >>conftest.$ac_ext <<_ACEOF
 
8853
/* end confdefs.h.  */
 
8854
 
 
8855
/* Override any gcc2 internal prototype to avoid an error.  */
 
8856
#ifdef __cplusplus
 
8857
extern "C"
 
8858
#endif
 
8859
/* We use char because int might match the return type of a gcc2
 
8860
   builtin and then its argument prototype would still apply.  */
 
8861
char dlopen ();
 
8862
int
 
8863
main ()
 
8864
{
 
8865
dlopen ();
 
8866
  ;
 
8867
  return 0;
 
8868
}
 
8869
_ACEOF
 
8870
rm -f conftest.$ac_objext conftest$ac_exeext
 
8871
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8872
  (eval $ac_link) 2>conftest.er1
 
8873
  ac_status=$?
 
8874
  grep -v '^ *+' conftest.er1 >conftest.err
 
8875
  rm -f conftest.er1
 
8876
  cat conftest.err >&5
 
8877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8878
  (exit $ac_status); } &&
 
8879
         { ac_try='test -z "$ac_c_werror_flag"
 
8880
                         || test ! -s conftest.err'
 
8881
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8882
  (eval $ac_try) 2>&5
 
8883
  ac_status=$?
 
8884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8885
  (exit $ac_status); }; } &&
 
8886
         { ac_try='test -s conftest$ac_exeext'
 
8887
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8888
  (eval $ac_try) 2>&5
 
8889
  ac_status=$?
 
8890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8891
  (exit $ac_status); }; }; then
 
8892
  ac_cv_lib_dl_dlopen=yes
 
8893
else
 
8894
  echo "$as_me: failed program was:" >&5
 
8895
sed 's/^/| /' conftest.$ac_ext >&5
 
8896
 
 
8897
ac_cv_lib_dl_dlopen=no
 
8898
fi
 
8899
rm -f conftest.err conftest.$ac_objext \
 
8900
      conftest$ac_exeext conftest.$ac_ext
 
8901
LIBS=$ac_check_lib_save_LIBS
 
8902
fi
 
8903
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8904
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8905
if test $ac_cv_lib_dl_dlopen = yes; then
 
8906
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8907
else
 
8908
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8909
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8910
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8911
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8912
else
 
8913
  ac_check_lib_save_LIBS=$LIBS
 
8914
LIBS="-lsvld  $LIBS"
 
8915
cat >conftest.$ac_ext <<_ACEOF
 
8916
/* confdefs.h.  */
 
8917
_ACEOF
 
8918
cat confdefs.h >>conftest.$ac_ext
 
8919
cat >>conftest.$ac_ext <<_ACEOF
 
8920
/* end confdefs.h.  */
 
8921
 
 
8922
/* Override any gcc2 internal prototype to avoid an error.  */
 
8923
#ifdef __cplusplus
 
8924
extern "C"
 
8925
#endif
 
8926
/* We use char because int might match the return type of a gcc2
 
8927
   builtin and then its argument prototype would still apply.  */
 
8928
char dlopen ();
 
8929
int
 
8930
main ()
 
8931
{
 
8932
dlopen ();
 
8933
  ;
 
8934
  return 0;
 
8935
}
 
8936
_ACEOF
 
8937
rm -f conftest.$ac_objext conftest$ac_exeext
 
8938
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8939
  (eval $ac_link) 2>conftest.er1
 
8940
  ac_status=$?
 
8941
  grep -v '^ *+' conftest.er1 >conftest.err
 
8942
  rm -f conftest.er1
 
8943
  cat conftest.err >&5
 
8944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8945
  (exit $ac_status); } &&
 
8946
         { ac_try='test -z "$ac_c_werror_flag"
 
8947
                         || test ! -s conftest.err'
 
8948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8949
  (eval $ac_try) 2>&5
 
8950
  ac_status=$?
 
8951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8952
  (exit $ac_status); }; } &&
 
8953
         { ac_try='test -s conftest$ac_exeext'
 
8954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8955
  (eval $ac_try) 2>&5
 
8956
  ac_status=$?
 
8957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8958
  (exit $ac_status); }; }; then
 
8959
  ac_cv_lib_svld_dlopen=yes
 
8960
else
 
8961
  echo "$as_me: failed program was:" >&5
 
8962
sed 's/^/| /' conftest.$ac_ext >&5
 
8963
 
 
8964
ac_cv_lib_svld_dlopen=no
 
8965
fi
 
8966
rm -f conftest.err conftest.$ac_objext \
 
8967
      conftest$ac_exeext conftest.$ac_ext
 
8968
LIBS=$ac_check_lib_save_LIBS
 
8969
fi
 
8970
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8971
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8972
if test $ac_cv_lib_svld_dlopen = yes; then
 
8973
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8974
else
 
8975
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8976
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8977
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
8978
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8979
else
 
8980
  ac_check_lib_save_LIBS=$LIBS
 
8981
LIBS="-ldld  $LIBS"
 
8982
cat >conftest.$ac_ext <<_ACEOF
 
8983
/* confdefs.h.  */
 
8984
_ACEOF
 
8985
cat confdefs.h >>conftest.$ac_ext
 
8986
cat >>conftest.$ac_ext <<_ACEOF
 
8987
/* end confdefs.h.  */
 
8988
 
 
8989
/* Override any gcc2 internal prototype to avoid an error.  */
 
8990
#ifdef __cplusplus
 
8991
extern "C"
 
8992
#endif
 
8993
/* We use char because int might match the return type of a gcc2
 
8994
   builtin and then its argument prototype would still apply.  */
 
8995
char dld_link ();
 
8996
int
 
8997
main ()
 
8998
{
 
8999
dld_link ();
 
9000
  ;
 
9001
  return 0;
 
9002
}
 
9003
_ACEOF
 
9004
rm -f conftest.$ac_objext conftest$ac_exeext
 
9005
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9006
  (eval $ac_link) 2>conftest.er1
 
9007
  ac_status=$?
 
9008
  grep -v '^ *+' conftest.er1 >conftest.err
 
9009
  rm -f conftest.er1
 
9010
  cat conftest.err >&5
 
9011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9012
  (exit $ac_status); } &&
 
9013
         { ac_try='test -z "$ac_c_werror_flag"
 
9014
                         || test ! -s conftest.err'
 
9015
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9016
  (eval $ac_try) 2>&5
 
9017
  ac_status=$?
 
9018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9019
  (exit $ac_status); }; } &&
 
9020
         { ac_try='test -s conftest$ac_exeext'
 
9021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9022
  (eval $ac_try) 2>&5
 
9023
  ac_status=$?
 
9024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9025
  (exit $ac_status); }; }; then
 
9026
  ac_cv_lib_dld_dld_link=yes
 
9027
else
 
9028
  echo "$as_me: failed program was:" >&5
 
9029
sed 's/^/| /' conftest.$ac_ext >&5
 
9030
 
 
9031
ac_cv_lib_dld_dld_link=no
 
9032
fi
 
9033
rm -f conftest.err conftest.$ac_objext \
 
9034
      conftest$ac_exeext conftest.$ac_ext
 
9035
LIBS=$ac_check_lib_save_LIBS
 
9036
fi
 
9037
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9038
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
9039
if test $ac_cv_lib_dld_dld_link = yes; then
 
9040
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9041
fi
 
9042
 
 
9043
 
 
9044
fi
 
9045
 
 
9046
 
 
9047
fi
 
9048
 
 
9049
 
 
9050
fi
 
9051
 
 
9052
 
 
9053
fi
 
9054
 
 
9055
 
 
9056
fi
 
9057
 
 
9058
    ;;
 
9059
  esac
 
9060
 
 
9061
  if test "x$lt_cv_dlopen" != xno; then
 
9062
    enable_dlopen=yes
 
9063
  else
 
9064
    enable_dlopen=no
 
9065
  fi
 
9066
 
 
9067
  case $lt_cv_dlopen in
 
9068
  dlopen)
 
9069
    save_CPPFLAGS="$CPPFLAGS"
 
9070
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9071
 
 
9072
    save_LDFLAGS="$LDFLAGS"
 
9073
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9074
 
 
9075
    save_LIBS="$LIBS"
 
9076
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9077
 
 
9078
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9079
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
9080
if test "${lt_cv_dlopen_self+set}" = set; then
 
9081
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9082
else
 
9083
          if test "$cross_compiling" = yes; then :
 
9084
  lt_cv_dlopen_self=cross
 
9085
else
 
9086
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9087
  lt_status=$lt_dlunknown
 
9088
  cat > conftest.$ac_ext <<EOF
 
9089
#line 9089 "configure"
 
9090
#include "confdefs.h"
 
9091
 
 
9092
#if HAVE_DLFCN_H
 
9093
#include <dlfcn.h>
 
9094
#endif
 
9095
 
 
9096
#include <stdio.h>
 
9097
 
 
9098
#ifdef RTLD_GLOBAL
 
9099
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9100
#else
 
9101
#  ifdef DL_GLOBAL
 
9102
#    define LT_DLGLOBAL         DL_GLOBAL
 
9103
#  else
 
9104
#    define LT_DLGLOBAL         0
 
9105
#  endif
 
9106
#endif
 
9107
 
 
9108
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9109
   find out it does not work in some platform. */
 
9110
#ifndef LT_DLLAZY_OR_NOW
 
9111
#  ifdef RTLD_LAZY
 
9112
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9113
#  else
 
9114
#    ifdef DL_LAZY
 
9115
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9116
#    else
 
9117
#      ifdef RTLD_NOW
 
9118
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9119
#      else
 
9120
#        ifdef DL_NOW
 
9121
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9122
#        else
 
9123
#          define LT_DLLAZY_OR_NOW      0
 
9124
#        endif
 
9125
#      endif
 
9126
#    endif
 
9127
#  endif
 
9128
#endif
 
9129
 
 
9130
#ifdef __cplusplus
 
9131
extern "C" void exit (int);
 
9132
#endif
 
9133
 
 
9134
void fnord() { int i=42;}
 
9135
int main ()
 
9136
{
 
9137
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9138
  int status = $lt_dlunknown;
 
9139
 
 
9140
  if (self)
 
9141
    {
 
9142
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9143
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9144
      /* dlclose (self); */
 
9145
    }
 
9146
  else
 
9147
    puts (dlerror ());
 
9148
 
 
9149
    exit (status);
 
9150
}
 
9151
EOF
 
9152
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9153
  (eval $ac_link) 2>&5
 
9154
  ac_status=$?
 
9155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9156
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9157
    (./conftest; exit; ) >&5 2>/dev/null
 
9158
    lt_status=$?
 
9159
    case x$lt_status in
 
9160
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9161
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9162
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
9163
    esac
 
9164
  else :
 
9165
    # compilation failed
 
9166
    lt_cv_dlopen_self=no
 
9167
  fi
 
9168
fi
 
9169
rm -fr conftest*
 
9170
 
 
9171
 
 
9172
fi
 
9173
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9174
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
9175
 
 
9176
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9177
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
9178
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9179
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
9180
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9181
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9182
else
 
9183
          if test "$cross_compiling" = yes; then :
 
9184
  lt_cv_dlopen_self_static=cross
 
9185
else
 
9186
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9187
  lt_status=$lt_dlunknown
 
9188
  cat > conftest.$ac_ext <<EOF
 
9189
#line 9189 "configure"
 
9190
#include "confdefs.h"
 
9191
 
 
9192
#if HAVE_DLFCN_H
 
9193
#include <dlfcn.h>
 
9194
#endif
 
9195
 
 
9196
#include <stdio.h>
 
9197
 
 
9198
#ifdef RTLD_GLOBAL
 
9199
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9200
#else
 
9201
#  ifdef DL_GLOBAL
 
9202
#    define LT_DLGLOBAL         DL_GLOBAL
 
9203
#  else
 
9204
#    define LT_DLGLOBAL         0
 
9205
#  endif
 
9206
#endif
 
9207
 
 
9208
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9209
   find out it does not work in some platform. */
 
9210
#ifndef LT_DLLAZY_OR_NOW
 
9211
#  ifdef RTLD_LAZY
 
9212
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9213
#  else
 
9214
#    ifdef DL_LAZY
 
9215
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9216
#    else
 
9217
#      ifdef RTLD_NOW
 
9218
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9219
#      else
 
9220
#        ifdef DL_NOW
 
9221
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9222
#        else
 
9223
#          define LT_DLLAZY_OR_NOW      0
 
9224
#        endif
 
9225
#      endif
 
9226
#    endif
 
9227
#  endif
 
9228
#endif
 
9229
 
 
9230
#ifdef __cplusplus
 
9231
extern "C" void exit (int);
 
9232
#endif
 
9233
 
 
9234
void fnord() { int i=42;}
 
9235
int main ()
 
9236
{
 
9237
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9238
  int status = $lt_dlunknown;
 
9239
 
 
9240
  if (self)
 
9241
    {
 
9242
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9243
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9244
      /* dlclose (self); */
 
9245
    }
 
9246
  else
 
9247
    puts (dlerror ());
 
9248
 
 
9249
    exit (status);
 
9250
}
 
9251
EOF
 
9252
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9253
  (eval $ac_link) 2>&5
 
9254
  ac_status=$?
 
9255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9256
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9257
    (./conftest; exit; ) >&5 2>/dev/null
 
9258
    lt_status=$?
 
9259
    case x$lt_status in
 
9260
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
9261
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
9262
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
9263
    esac
 
9264
  else :
 
9265
    # compilation failed
 
9266
    lt_cv_dlopen_self_static=no
 
9267
  fi
 
9268
fi
 
9269
rm -fr conftest*
 
9270
 
 
9271
 
 
9272
fi
 
9273
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9274
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
9275
    fi
 
9276
 
 
9277
    CPPFLAGS="$save_CPPFLAGS"
 
9278
    LDFLAGS="$save_LDFLAGS"
 
9279
    LIBS="$save_LIBS"
 
9280
    ;;
 
9281
  esac
 
9282
 
 
9283
  case $lt_cv_dlopen_self in
 
9284
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
9285
  *) enable_dlopen_self=unknown ;;
 
9286
  esac
 
9287
 
 
9288
  case $lt_cv_dlopen_self_static in
 
9289
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
9290
  *) enable_dlopen_self_static=unknown ;;
 
9291
  esac
 
9292
fi
 
9293
 
 
9294
 
 
9295
# Report which library types will actually be built
 
9296
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9297
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
9298
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9299
echo "${ECHO_T}$can_build_shared" >&6
 
9300
 
 
9301
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9302
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
9303
test "$can_build_shared" = "no" && enable_shared=no
 
9304
 
 
9305
# On AIX, shared libraries and static libraries use the same namespace, and
 
9306
# are all built from PIC.
 
9307
case $host_os in
 
9308
aix3*)
 
9309
  test "$enable_shared" = yes && enable_static=no
 
9310
  if test -n "$RANLIB"; then
 
9311
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9312
    postinstall_cmds='$RANLIB $lib'
 
9313
  fi
 
9314
  ;;
 
9315
 
 
9316
aix4* | aix5*)
 
9317
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9318
    test "$enable_shared" = yes && enable_static=no
 
9319
  fi
 
9320
    ;;
 
9321
esac
 
9322
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9323
echo "${ECHO_T}$enable_shared" >&6
 
9324
 
 
9325
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9326
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
9327
# Make sure either enable_shared or enable_static is yes.
 
9328
test "$enable_shared" = yes || enable_static=yes
 
9329
echo "$as_me:$LINENO: result: $enable_static" >&5
 
9330
echo "${ECHO_T}$enable_static" >&6
 
9331
 
 
9332
# The else clause should only fire when bootstrapping the
 
9333
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9334
# with your package, and you will get complaints that there are
 
9335
# no rules to generate ltmain.sh.
 
9336
if test -f "$ltmain"; then
 
9337
  # See if we are running on zsh, and set the options which allow our commands through
 
9338
  # without removal of \ escapes.
 
9339
  if test -n "${ZSH_VERSION+set}" ; then
 
9340
    setopt NO_GLOB_SUBST
 
9341
  fi
 
9342
  # Now quote all the things that may contain metacharacters while being
 
9343
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9344
  # variables and quote the copies for generation of the libtool script.
 
9345
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
9346
    SED SHELL STRIP \
 
9347
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9348
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9349
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9350
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9351
    lt_cv_sys_global_symbol_to_c_name_address \
 
9352
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9353
    old_postinstall_cmds old_postuninstall_cmds \
 
9354
    compiler \
 
9355
    CC \
 
9356
    LD \
 
9357
    lt_prog_compiler_wl \
 
9358
    lt_prog_compiler_pic \
 
9359
    lt_prog_compiler_static \
 
9360
    lt_prog_compiler_no_builtin_flag \
 
9361
    export_dynamic_flag_spec \
 
9362
    thread_safe_flag_spec \
 
9363
    whole_archive_flag_spec \
 
9364
    enable_shared_with_static_runtimes \
 
9365
    old_archive_cmds \
 
9366
    old_archive_from_new_cmds \
 
9367
    predep_objects \
 
9368
    postdep_objects \
 
9369
    predeps \
 
9370
    postdeps \
 
9371
    compiler_lib_search_path \
 
9372
    archive_cmds \
 
9373
    archive_expsym_cmds \
 
9374
    postinstall_cmds \
 
9375
    postuninstall_cmds \
 
9376
    old_archive_from_expsyms_cmds \
 
9377
    allow_undefined_flag \
 
9378
    no_undefined_flag \
 
9379
    export_symbols_cmds \
 
9380
    hardcode_libdir_flag_spec \
 
9381
    hardcode_libdir_flag_spec_ld \
 
9382
    hardcode_libdir_separator \
 
9383
    hardcode_automatic \
 
9384
    module_cmds \
 
9385
    module_expsym_cmds \
 
9386
    lt_cv_prog_compiler_c_o \
 
9387
    exclude_expsyms \
 
9388
    include_expsyms; do
 
9389
 
 
9390
    case $var in
 
9391
    old_archive_cmds | \
 
9392
    old_archive_from_new_cmds | \
 
9393
    archive_cmds | \
 
9394
    archive_expsym_cmds | \
 
9395
    module_cmds | \
 
9396
    module_expsym_cmds | \
 
9397
    old_archive_from_expsyms_cmds | \
 
9398
    export_symbols_cmds | \
 
9399
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9400
    postinstall_cmds | postuninstall_cmds | \
 
9401
    old_postinstall_cmds | old_postuninstall_cmds | \
 
9402
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9403
      # Double-quote double-evaled strings.
 
9404
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
9405
      ;;
 
9406
    *)
 
9407
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
9408
      ;;
 
9409
    esac
 
9410
  done
 
9411
 
 
9412
  case $lt_echo in
 
9413
  *'\$0 --fallback-echo"')
 
9414
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9415
    ;;
 
9416
  esac
 
9417
 
 
9418
cfgfile="${ofile}T"
 
9419
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9420
  $rm -f "$cfgfile"
 
9421
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9422
echo "$as_me: creating $ofile" >&6;}
 
9423
 
 
9424
  cat <<__EOF__ >> "$cfgfile"
 
9425
#! $SHELL
 
9426
 
 
9427
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9428
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
9429
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
9430
#
 
9431
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9432
# Free Software Foundation, Inc.
 
9433
#
 
9434
# This file is part of GNU Libtool:
 
9435
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
9436
#
 
9437
# This program is free software; you can redistribute it and/or modify
 
9438
# it under the terms of the GNU General Public License as published by
 
9439
# the Free Software Foundation; either version 2 of the License, or
 
9440
# (at your option) any later version.
 
9441
#
 
9442
# This program is distributed in the hope that it will be useful, but
 
9443
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9444
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9445
# General Public License for more details.
 
9446
#
 
9447
# You should have received a copy of the GNU General Public License
 
9448
# along with this program; if not, write to the Free Software
 
9449
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
9450
#
 
9451
# As a special exception to the GNU General Public License, if you
 
9452
# distribute this file as part of a program that contains a
 
9453
# configuration script generated by Autoconf, you may include it under
 
9454
# the same distribution terms that you use for the rest of that program.
 
9455
 
 
9456
# A sed program that does not truncate output.
 
9457
SED=$lt_SED
 
9458
 
 
9459
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
9460
Xsed="$SED -e 1s/^X//"
 
9461
 
 
9462
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
9463
# if CDPATH is set.
 
9464
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
9465
 
 
9466
# The names of the tagged configurations supported by this script.
 
9467
available_tags=
 
9468
 
 
9469
# ### BEGIN LIBTOOL CONFIG
 
9470
 
 
9471
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
9472
 
 
9473
# Shell to use when invoking shell scripts.
 
9474
SHELL=$lt_SHELL
 
9475
 
 
9476
# Whether or not to build shared libraries.
 
9477
build_libtool_libs=$enable_shared
 
9478
 
 
9479
# Whether or not to build static libraries.
 
9480
build_old_libs=$enable_static
 
9481
 
 
9482
# Whether or not to add -lc for building shared libraries.
 
9483
build_libtool_need_lc=$archive_cmds_need_lc
 
9484
 
 
9485
# Whether or not to disallow shared libs when runtime libs are static
 
9486
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
9487
 
 
9488
# Whether or not to optimize for fast installation.
 
9489
fast_install=$enable_fast_install
 
9490
 
 
9491
# The host system.
 
9492
host_alias=$host_alias
 
9493
host=$host
 
9494
host_os=$host_os
 
9495
 
 
9496
# The build system.
 
9497
build_alias=$build_alias
 
9498
build=$build
 
9499
build_os=$build_os
 
9500
 
 
9501
# An echo program that does not interpret backslashes.
 
9502
echo=$lt_echo
 
9503
 
 
9504
# The archiver.
 
9505
AR=$lt_AR
 
9506
AR_FLAGS=$lt_AR_FLAGS
 
9507
 
 
9508
# A C compiler.
 
9509
LTCC=$lt_LTCC
 
9510
 
 
9511
# LTCC compiler flags.
 
9512
LTCFLAGS=$lt_LTCFLAGS
 
9513
 
 
9514
# A language-specific compiler.
 
9515
CC=$lt_compiler
 
9516
 
 
9517
# Is the compiler the GNU C compiler?
 
9518
with_gcc=$GCC
 
9519
 
 
9520
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
9521
gcc_ver=\`gcc -dumpversion\`
 
9522
 
 
9523
# An ERE matcher.
 
9524
EGREP=$lt_EGREP
 
9525
 
 
9526
# The linker used to build libraries.
 
9527
LD=$lt_LD
 
9528
 
 
9529
# Whether we need hard or soft links.
 
9530
LN_S=$lt_LN_S
 
9531
 
 
9532
# A BSD-compatible nm program.
 
9533
NM=$lt_NM
 
9534
 
 
9535
# A symbol stripping program
 
9536
STRIP=$lt_STRIP
 
9537
 
 
9538
# Used to examine libraries when file_magic_cmd begins "file"
 
9539
MAGIC_CMD=$MAGIC_CMD
 
9540
 
 
9541
# Used on cygwin: DLL creation program.
 
9542
DLLTOOL="$DLLTOOL"
 
9543
 
 
9544
# Used on cygwin: object dumper.
 
9545
OBJDUMP="$OBJDUMP"
 
9546
 
 
9547
# Used on cygwin: assembler.
 
9548
AS="$AS"
 
9549
 
 
9550
# The name of the directory that contains temporary libtool files.
 
9551
objdir=$objdir
 
9552
 
 
9553
# How to create reloadable object files.
 
9554
reload_flag=$lt_reload_flag
 
9555
reload_cmds=$lt_reload_cmds
 
9556
 
 
9557
# How to pass a linker flag through the compiler.
 
9558
wl=$lt_lt_prog_compiler_wl
 
9559
 
 
9560
# Object file suffix (normally "o").
 
9561
objext="$ac_objext"
 
9562
 
 
9563
# Old archive suffix (normally "a").
 
9564
libext="$libext"
 
9565
 
 
9566
# Shared library suffix (normally ".so").
 
9567
shrext_cmds='$shrext_cmds'
 
9568
 
 
9569
# Executable file suffix (normally "").
 
9570
exeext="$exeext"
 
9571
 
 
9572
# Additional compiler flags for building library objects.
 
9573
pic_flag=$lt_lt_prog_compiler_pic
 
9574
pic_mode=$pic_mode
 
9575
 
 
9576
# What is the maximum length of a command?
 
9577
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9578
 
 
9579
# Does compiler simultaneously support -c and -o options?
 
9580
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
9581
 
 
9582
# Must we lock files when doing compilation?
 
9583
need_locks=$lt_need_locks
 
9584
 
 
9585
# Do we need the lib prefix for modules?
 
9586
need_lib_prefix=$need_lib_prefix
 
9587
 
 
9588
# Do we need a version for libraries?
 
9589
need_version=$need_version
 
9590
 
 
9591
# Whether dlopen is supported.
 
9592
dlopen_support=$enable_dlopen
 
9593
 
 
9594
# Whether dlopen of programs is supported.
 
9595
dlopen_self=$enable_dlopen_self
 
9596
 
 
9597
# Whether dlopen of statically linked programs is supported.
 
9598
dlopen_self_static=$enable_dlopen_self_static
 
9599
 
 
9600
# Compiler flag to prevent dynamic linking.
 
9601
link_static_flag=$lt_lt_prog_compiler_static
 
9602
 
 
9603
# Compiler flag to turn off builtin functions.
 
9604
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
9605
 
 
9606
# Compiler flag to allow reflexive dlopens.
 
9607
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
9608
 
 
9609
# Compiler flag to generate shared objects directly from archives.
 
9610
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
9611
 
 
9612
# Compiler flag to generate thread-safe objects.
 
9613
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
9614
 
 
9615
# Library versioning type.
 
9616
version_type=$version_type
 
9617
 
 
9618
# Format of library name prefix.
 
9619
libname_spec=$lt_libname_spec
 
9620
 
 
9621
# List of archive names.  First name is the real one, the rest are links.
 
9622
# The last name is the one that the linker finds with -lNAME.
 
9623
library_names_spec=$lt_library_names_spec
 
9624
 
 
9625
# The coded name of the library, if different from the real name.
 
9626
soname_spec=$lt_soname_spec
 
9627
 
 
9628
# Commands used to build and install an old-style archive.
 
9629
RANLIB=$lt_RANLIB
 
9630
old_archive_cmds=$lt_old_archive_cmds
 
9631
old_postinstall_cmds=$lt_old_postinstall_cmds
 
9632
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
9633
 
 
9634
# Create an old-style archive from a shared archive.
 
9635
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
9636
 
 
9637
# Create a temporary old-style archive to link instead of a shared archive.
 
9638
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
9639
 
 
9640
# Commands used to build and install a shared archive.
 
9641
archive_cmds=$lt_archive_cmds
 
9642
archive_expsym_cmds=$lt_archive_expsym_cmds
 
9643
postinstall_cmds=$lt_postinstall_cmds
 
9644
postuninstall_cmds=$lt_postuninstall_cmds
 
9645
 
 
9646
# Commands used to build a loadable module (assumed same as above if empty)
 
9647
module_cmds=$lt_module_cmds
 
9648
module_expsym_cmds=$lt_module_expsym_cmds
 
9649
 
 
9650
# Commands to strip libraries.
 
9651
old_striplib=$lt_old_striplib
 
9652
striplib=$lt_striplib
 
9653
 
 
9654
# Dependencies to place before the objects being linked to create a
 
9655
# shared library.
 
9656
predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
9657
 
 
9658
# Dependencies to place after the objects being linked to create a
 
9659
# shared library.
 
9660
postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
9661
 
 
9662
# Dependencies to place before the objects being linked to create a
 
9663
# shared library.
 
9664
predeps=$lt_predeps
 
9665
 
 
9666
# Dependencies to place after the objects being linked to create a
 
9667
# shared library.
 
9668
postdeps=$lt_postdeps
 
9669
 
 
9670
# The library search path used internally by the compiler when linking
 
9671
# a shared library.
 
9672
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
9673
 
 
9674
# Method to check whether dependent libraries are shared objects.
 
9675
deplibs_check_method=$lt_deplibs_check_method
 
9676
 
 
9677
# Command to use when deplibs_check_method == file_magic.
 
9678
file_magic_cmd=$lt_file_magic_cmd
 
9679
 
 
9680
# Flag that allows shared libraries with undefined symbols to be built.
 
9681
allow_undefined_flag=$lt_allow_undefined_flag
 
9682
 
 
9683
# Flag that forces no undefined symbols.
 
9684
no_undefined_flag=$lt_no_undefined_flag
 
9685
 
 
9686
# Commands used to finish a libtool library installation in a directory.
 
9687
finish_cmds=$lt_finish_cmds
 
9688
 
 
9689
# Same as above, but a single script fragment to be evaled but not shown.
 
9690
finish_eval=$lt_finish_eval
 
9691
 
 
9692
# Take the output of nm and produce a listing of raw symbols and C names.
 
9693
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
9694
 
 
9695
# Transform the output of nm in a proper C declaration
 
9696
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
9697
 
 
9698
# Transform the output of nm in a C name address pair
 
9699
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
9700
 
 
9701
# This is the shared library runtime path variable.
 
9702
runpath_var=$runpath_var
 
9703
 
 
9704
# This is the shared library path variable.
 
9705
shlibpath_var=$shlibpath_var
 
9706
 
 
9707
# Is shlibpath searched before the hard-coded library search path?
 
9708
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
9709
 
 
9710
# How to hardcode a shared library path into an executable.
 
9711
hardcode_action=$hardcode_action
 
9712
 
 
9713
# Whether we should hardcode library paths into libraries.
 
9714
hardcode_into_libs=$hardcode_into_libs
 
9715
 
 
9716
# Flag to hardcode \$libdir into a binary during linking.
 
9717
# This must work even if \$libdir does not exist.
 
9718
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
9719
 
 
9720
# If ld is used when linking, flag to hardcode \$libdir into
 
9721
# a binary during linking. This must work even if \$libdir does
 
9722
# not exist.
 
9723
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
9724
 
 
9725
# Whether we need a single -rpath flag with a separated argument.
 
9726
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
9727
 
 
9728
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
9729
# resulting binary.
 
9730
hardcode_direct=$hardcode_direct
 
9731
 
 
9732
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
9733
# resulting binary.
 
9734
hardcode_minus_L=$hardcode_minus_L
 
9735
 
 
9736
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
9737
# the resulting binary.
 
9738
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
9739
 
 
9740
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
9741
# and all subsequent libraries and executables linked against it.
 
9742
hardcode_automatic=$hardcode_automatic
 
9743
 
 
9744
# Variables whose values should be saved in libtool wrapper scripts and
 
9745
# restored at relink time.
 
9746
variables_saved_for_relink="$variables_saved_for_relink"
 
9747
 
 
9748
# Whether libtool must link a program against all its dependency libraries.
 
9749
link_all_deplibs=$link_all_deplibs
 
9750
 
 
9751
# Compile-time system search path for libraries
 
9752
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
9753
 
 
9754
# Run-time system search path for libraries
 
9755
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
9756
 
 
9757
# Fix the shell variable \$srcfile for the compiler.
 
9758
fix_srcfile_path="$fix_srcfile_path"
 
9759
 
 
9760
# Set to yes if exported symbols are required.
 
9761
always_export_symbols=$always_export_symbols
 
9762
 
 
9763
# The commands to list exported symbols.
 
9764
export_symbols_cmds=$lt_export_symbols_cmds
 
9765
 
 
9766
# The commands to extract the exported symbol list from a shared archive.
 
9767
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
9768
 
 
9769
# Symbols that should not be listed in the preloaded symbols.
 
9770
exclude_expsyms=$lt_exclude_expsyms
 
9771
 
 
9772
# Symbols that must always be exported.
 
9773
include_expsyms=$lt_include_expsyms
 
9774
 
 
9775
# ### END LIBTOOL CONFIG
 
9776
 
 
9777
__EOF__
 
9778
 
 
9779
 
 
9780
  case $host_os in
 
9781
  aix3*)
 
9782
    cat <<\EOF >> "$cfgfile"
 
9783
 
 
9784
# AIX sometimes has problems with the GCC collect2 program.  For some
 
9785
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
9786
# vanish in a puff of smoke.
 
9787
if test "X${COLLECT_NAMES+set}" != Xset; then
 
9788
  COLLECT_NAMES=
 
9789
  export COLLECT_NAMES
 
9790
fi
 
9791
EOF
 
9792
    ;;
 
9793
  esac
 
9794
 
 
9795
  # We use sed instead of cat because bash on DJGPP gets confused if
 
9796
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
9797
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
9798
  # is reportedly fixed, but why not run on old versions too?
 
9799
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
9800
 
 
9801
  mv -f "$cfgfile" "$ofile" || \
 
9802
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
9803
  chmod +x "$ofile"
 
9804
 
 
9805
else
 
9806
  # If there is no Makefile yet, we rely on a make rule to execute
 
9807
  # `config.status --recheck' to rerun these tests and create the
 
9808
  # libtool script then.
 
9809
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
9810
  if test -f "$ltmain_in"; then
 
9811
    test -f Makefile && make "$ltmain"
 
9812
  fi
 
9813
fi
 
9814
 
 
9815
 
 
9816
ac_ext=c
 
9817
ac_cpp='$CPP $CPPFLAGS'
 
9818
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9819
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9820
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9821
 
 
9822
CC="$lt_save_CC"
 
9823
 
 
9824
 
 
9825
# Check whether --with-tags or --without-tags was given.
 
9826
if test "${with_tags+set}" = set; then
 
9827
  withval="$with_tags"
 
9828
  tagnames="$withval"
 
9829
fi;
 
9830
 
 
9831
if test -f "$ltmain" && test -n "$tagnames"; then
 
9832
  if test ! -f "${ofile}"; then
 
9833
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9834
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
9835
  fi
 
9836
 
 
9837
  if test -z "$LTCC"; then
 
9838
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
9839
    if test -z "$LTCC"; then
 
9840
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9841
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9842
    else
 
9843
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9844
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9845
    fi
 
9846
  fi
 
9847
  if test -z "$LTCFLAGS"; then
 
9848
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
9849
  fi
 
9850
 
 
9851
  # Extract list of available tagged configurations in $ofile.
 
9852
  # Note that this assumes the entire list is on one line.
 
9853
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9854
 
 
9855
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9856
  for tagname in $tagnames; do
 
9857
    IFS="$lt_save_ifs"
 
9858
    # Check whether tagname contains only valid characters
 
9859
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9860
    "") ;;
 
9861
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9862
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9863
   { (exit 1); exit 1; }; }
 
9864
        ;;
 
9865
    esac
 
9866
 
 
9867
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9868
    then
 
9869
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9870
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9871
   { (exit 1); exit 1; }; }
 
9872
    fi
 
9873
 
 
9874
    # Update the list of available tags.
 
9875
    if test -n "$tagname"; then
 
9876
      echo appending configuration tag \"$tagname\" to $ofile
 
9877
 
 
9878
      case $tagname in
 
9879
      CXX)
 
9880
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
9881
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
9882
            (test "X$CXX" != "Xg++"))) ; then
 
9883
          ac_ext=cc
 
9884
ac_cpp='$CXXCPP $CPPFLAGS'
 
9885
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9886
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9887
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9888
 
 
9889
 
 
9890
 
 
9891
 
 
9892
archive_cmds_need_lc_CXX=no
 
9893
allow_undefined_flag_CXX=
 
9894
always_export_symbols_CXX=no
 
9895
archive_expsym_cmds_CXX=
 
9896
export_dynamic_flag_spec_CXX=
 
9897
hardcode_direct_CXX=no
 
9898
hardcode_libdir_flag_spec_CXX=
 
9899
hardcode_libdir_flag_spec_ld_CXX=
 
9900
hardcode_libdir_separator_CXX=
 
9901
hardcode_minus_L_CXX=no
 
9902
hardcode_shlibpath_var_CXX=unsupported
 
9903
hardcode_automatic_CXX=no
 
9904
module_cmds_CXX=
 
9905
module_expsym_cmds_CXX=
 
9906
link_all_deplibs_CXX=unknown
 
9907
old_archive_cmds_CXX=$old_archive_cmds
 
9908
no_undefined_flag_CXX=
 
9909
whole_archive_flag_spec_CXX=
 
9910
enable_shared_with_static_runtimes_CXX=no
 
9911
 
 
9912
# Dependencies to place before and after the object being linked:
 
9913
predep_objects_CXX=
 
9914
postdep_objects_CXX=
 
9915
predeps_CXX=
 
9916
postdeps_CXX=
 
9917
compiler_lib_search_path_CXX=
 
9918
 
 
9919
# Source file extension for C++ test sources.
 
9920
ac_ext=cpp
 
9921
 
 
9922
# Object file extension for compiled C++ test sources.
 
9923
objext=o
 
9924
objext_CXX=$objext
 
9925
 
 
9926
# Code to be used in simple compile tests
 
9927
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9928
 
 
9929
# Code to be used in simple link tests
 
9930
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
9931
 
 
9932
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9933
 
 
9934
# If no C compiler was specified, use CC.
 
9935
LTCC=${LTCC-"$CC"}
 
9936
 
 
9937
# If no C compiler flags were specified, use CFLAGS.
 
9938
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
9939
 
 
9940
# Allow CC to be a program name with arguments.
 
9941
compiler=$CC
 
9942
 
 
9943
 
 
9944
# save warnings/boilerplate of simple test code
 
9945
ac_outfile=conftest.$ac_objext
 
9946
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9947
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9948
_lt_compiler_boilerplate=`cat conftest.err`
 
9949
$rm conftest*
 
9950
 
 
9951
ac_outfile=conftest.$ac_objext
 
9952
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
9953
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9954
_lt_linker_boilerplate=`cat conftest.err`
 
9955
$rm conftest*
 
9956
 
 
9957
 
 
9958
# Allow CC to be a program name with arguments.
 
9959
lt_save_CC=$CC
 
9960
lt_save_LD=$LD
 
9961
lt_save_GCC=$GCC
 
9962
GCC=$GXX
 
9963
lt_save_with_gnu_ld=$with_gnu_ld
 
9964
lt_save_path_LD=$lt_cv_path_LD
 
9965
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
9966
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
9967
else
 
9968
  $as_unset lt_cv_prog_gnu_ld
 
9969
fi
 
9970
if test -n "${lt_cv_path_LDCXX+set}"; then
 
9971
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
9972
else
 
9973
  $as_unset lt_cv_path_LD
 
9974
fi
 
9975
test -z "${LDCXX+set}" || LD=$LDCXX
 
9976
CC=${CXX-"c++"}
 
9977
compiler=$CC
 
9978
compiler_CXX=$CC
 
9979
for cc_temp in $compiler""; do
 
9980
  case $cc_temp in
 
9981
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
9982
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
9983
    \-*) ;;
 
9984
    *) break;;
 
9985
  esac
 
9986
done
 
9987
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
9988
 
 
9989
 
 
9990
# We don't want -fno-exception wen compiling C++ code, so set the
 
9991
# no_builtin_flag separately
 
9992
if test "$GXX" = yes; then
 
9993
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
9994
else
 
9995
  lt_prog_compiler_no_builtin_flag_CXX=
 
9996
fi
 
9997
 
 
9998
if test "$GXX" = yes; then
 
9999
  # Set up default GNU C++ configuration
 
10000
 
 
10001
 
 
10002
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
10003
if test "${with_gnu_ld+set}" = set; then
 
10004
  withval="$with_gnu_ld"
 
10005
  test "$withval" = no || with_gnu_ld=yes
 
10006
else
 
10007
  with_gnu_ld=no
 
10008
fi;
 
10009
ac_prog=ld
 
10010
if test "$GCC" = yes; then
 
10011
  # Check if gcc -print-prog-name=ld gives a path.
 
10012
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10013
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
10014
  case $host in
 
10015
  *-*-mingw*)
 
10016
    # gcc leaves a trailing carriage return which upsets mingw
 
10017
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10018
  *)
 
10019
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10020
  esac
 
10021
  case $ac_prog in
 
10022
    # Accept absolute paths.
 
10023
    [\\/]* | ?:[\\/]*)
 
10024
      re_direlt='/[^/][^/]*/\.\./'
 
10025
      # Canonicalize the pathname of ld
 
10026
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10027
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10028
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10029
      done
 
10030
      test -z "$LD" && LD="$ac_prog"
 
10031
      ;;
 
10032
  "")
 
10033
    # If it fails, then pretend we aren't using GCC.
 
10034
    ac_prog=ld
 
10035
    ;;
 
10036
  *)
 
10037
    # If it is relative, then search for the first ld in PATH.
 
10038
    with_gnu_ld=unknown
 
10039
    ;;
 
10040
  esac
 
10041
elif test "$with_gnu_ld" = yes; then
 
10042
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10043
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
10044
else
 
10045
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10046
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
10047
fi
 
10048
if test "${lt_cv_path_LD+set}" = set; then
 
10049
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10050
else
 
10051
  if test -z "$LD"; then
 
10052
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10053
  for ac_dir in $PATH; do
 
10054
    IFS="$lt_save_ifs"
 
10055
    test -z "$ac_dir" && ac_dir=.
 
10056
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10057
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10058
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10059
      # but apparently some variants of GNU ld only accept -v.
 
10060
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10061
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10062
      *GNU* | *'with BFD'*)
 
10063
        test "$with_gnu_ld" != no && break
 
10064
        ;;
 
10065
      *)
 
10066
        test "$with_gnu_ld" != yes && break
 
10067
        ;;
 
10068
      esac
 
10069
    fi
 
10070
  done
 
10071
  IFS="$lt_save_ifs"
 
10072
else
 
10073
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10074
fi
 
10075
fi
 
10076
 
 
10077
LD="$lt_cv_path_LD"
 
10078
if test -n "$LD"; then
 
10079
  echo "$as_me:$LINENO: result: $LD" >&5
 
10080
echo "${ECHO_T}$LD" >&6
 
10081
else
 
10082
  echo "$as_me:$LINENO: result: no" >&5
 
10083
echo "${ECHO_T}no" >&6
 
10084
fi
 
10085
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10086
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10087
   { (exit 1); exit 1; }; }
 
10088
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10089
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
10090
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10091
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10092
else
 
10093
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
10094
case `$LD -v 2>&1 </dev/null` in
 
10095
*GNU* | *'with BFD'*)
 
10096
  lt_cv_prog_gnu_ld=yes
 
10097
  ;;
 
10098
*)
 
10099
  lt_cv_prog_gnu_ld=no
 
10100
  ;;
 
10101
esac
 
10102
fi
 
10103
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10104
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
10105
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10106
 
 
10107
 
 
10108
 
 
10109
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10110
  # archiving commands below assume that GNU ld is being used.
 
10111
  if test "$with_gnu_ld" = yes; then
 
10112
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10113
    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'
 
10114
 
 
10115
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10116
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10117
 
 
10118
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10119
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10120
    #     investigate it a little bit more. (MM)
 
10121
    wlarc='${wl}'
 
10122
 
 
10123
    # ancient GNU ld didn't support --whole-archive et. al.
 
10124
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10125
        grep 'no-whole-archive' > /dev/null; then
 
10126
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10127
    else
 
10128
      whole_archive_flag_spec_CXX=
 
10129
    fi
 
10130
  else
 
10131
    with_gnu_ld=no
 
10132
    wlarc=
 
10133
 
 
10134
    # A generic and very simple default shared library creation
 
10135
    # command for GNU C++ for the case where it uses the native
 
10136
    # linker, instead of GNU ld.  If possible, this setting should
 
10137
    # overridden to take advantage of the native linker features on
 
10138
    # the platform it is being used on.
 
10139
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10140
  fi
 
10141
 
 
10142
  # Commands to make compiler produce verbose output that lists
 
10143
  # what "hidden" libraries, object files and flags are used when
 
10144
  # linking a shared library.
 
10145
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10146
 
 
10147
else
 
10148
  GXX=no
 
10149
  with_gnu_ld=no
 
10150
  wlarc=
 
10151
fi
 
10152
 
 
10153
# PORTME: fill in a description of your system's C++ link characteristics
 
10154
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10155
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10156
ld_shlibs_CXX=yes
 
10157
case $host_os in
 
10158
  aix3*)
 
10159
    # FIXME: insert proper C++ library support
 
10160
    ld_shlibs_CXX=no
 
10161
    ;;
 
10162
  aix4* | aix5*)
 
10163
    if test "$host_cpu" = ia64; then
 
10164
      # On IA64, the linker does run time linking by default, so we don't
 
10165
      # have to do anything special.
 
10166
      aix_use_runtimelinking=no
 
10167
      exp_sym_flag='-Bexport'
 
10168
      no_entry_flag=""
 
10169
    else
 
10170
      aix_use_runtimelinking=no
 
10171
 
 
10172
      # Test if we are trying to use run time linking or normal
 
10173
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10174
      # need to do runtime linking.
 
10175
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10176
        for ld_flag in $LDFLAGS; do
 
10177
          case $ld_flag in
 
10178
          *-brtl*)
 
10179
            aix_use_runtimelinking=yes
 
10180
            break
 
10181
            ;;
 
10182
          esac
 
10183
        done
 
10184
        ;;
 
10185
      esac
 
10186
 
 
10187
      exp_sym_flag='-bexport'
 
10188
      no_entry_flag='-bnoentry'
 
10189
    fi
 
10190
 
 
10191
    # When large executables or shared objects are built, AIX ld can
 
10192
    # have problems creating the table of contents.  If linking a library
 
10193
    # or program results in "error TOC overflow" add -mminimal-toc to
 
10194
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10195
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10196
 
 
10197
    archive_cmds_CXX=''
 
10198
    hardcode_direct_CXX=yes
 
10199
    hardcode_libdir_separator_CXX=':'
 
10200
    link_all_deplibs_CXX=yes
 
10201
 
 
10202
    if test "$GXX" = yes; then
 
10203
      case $host_os in aix4.[012]|aix4.[012].*)
 
10204
      # We only want to do this on AIX 4.2 and lower, the check
 
10205
      # below for broken collect2 doesn't work under 4.3+
 
10206
        collect2name=`${CC} -print-prog-name=collect2`
 
10207
        if test -f "$collect2name" && \
 
10208
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10209
        then
 
10210
          # We have reworked collect2
 
10211
          hardcode_direct_CXX=yes
 
10212
        else
 
10213
          # We have old collect2
 
10214
          hardcode_direct_CXX=unsupported
 
10215
          # It fails to find uninstalled libraries when the uninstalled
 
10216
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10217
          # to unsupported forces relinking
 
10218
          hardcode_minus_L_CXX=yes
 
10219
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10220
          hardcode_libdir_separator_CXX=
 
10221
        fi
 
10222
        ;;
 
10223
      esac
 
10224
      shared_flag='-shared'
 
10225
      if test "$aix_use_runtimelinking" = yes; then
 
10226
        shared_flag="$shared_flag "'${wl}-G'
 
10227
      fi
 
10228
    else
 
10229
      # not using gcc
 
10230
      if test "$host_cpu" = ia64; then
 
10231
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10232
        # chokes on -Wl,-G. The following line is correct:
 
10233
        shared_flag='-G'
 
10234
      else
 
10235
        if test "$aix_use_runtimelinking" = yes; then
 
10236
          shared_flag='${wl}-G'
 
10237
        else
 
10238
          shared_flag='${wl}-bM:SRE'
 
10239
        fi
 
10240
      fi
 
10241
    fi
 
10242
 
 
10243
    # It seems that -bexpall does not export symbols beginning with
 
10244
    # underscore (_), so it is better to generate a list of symbols to export.
 
10245
    always_export_symbols_CXX=yes
 
10246
    if test "$aix_use_runtimelinking" = yes; then
 
10247
      # Warning - without using the other runtime loading flags (-brtl),
 
10248
      # -berok will link without error, but may produce a broken library.
 
10249
      allow_undefined_flag_CXX='-berok'
 
10250
      # Determine the default libpath from the value encoded in an empty executable.
 
10251
      cat >conftest.$ac_ext <<_ACEOF
 
10252
/* confdefs.h.  */
 
10253
_ACEOF
 
10254
cat confdefs.h >>conftest.$ac_ext
 
10255
cat >>conftest.$ac_ext <<_ACEOF
 
10256
/* end confdefs.h.  */
 
10257
 
 
10258
int
 
10259
main ()
 
10260
{
 
10261
 
 
10262
  ;
 
10263
  return 0;
 
10264
}
 
10265
_ACEOF
 
10266
rm -f conftest.$ac_objext conftest$ac_exeext
 
10267
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10268
  (eval $ac_link) 2>conftest.er1
 
10269
  ac_status=$?
 
10270
  grep -v '^ *+' conftest.er1 >conftest.err
 
10271
  rm -f conftest.er1
 
10272
  cat conftest.err >&5
 
10273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10274
  (exit $ac_status); } &&
 
10275
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10276
                         || test ! -s conftest.err'
 
10277
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10278
  (eval $ac_try) 2>&5
 
10279
  ac_status=$?
 
10280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10281
  (exit $ac_status); }; } &&
 
10282
         { ac_try='test -s conftest$ac_exeext'
 
10283
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10284
  (eval $ac_try) 2>&5
 
10285
  ac_status=$?
 
10286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10287
  (exit $ac_status); }; }; then
 
10288
 
 
10289
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10290
}'`
 
10291
# Check for a 64-bit object if we didn't find anything.
 
10292
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; }
 
10293
}'`; fi
 
10294
else
 
10295
  echo "$as_me: failed program was:" >&5
 
10296
sed 's/^/| /' conftest.$ac_ext >&5
 
10297
 
 
10298
fi
 
10299
rm -f conftest.err conftest.$ac_objext \
 
10300
      conftest$ac_exeext conftest.$ac_ext
 
10301
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10302
 
 
10303
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10304
 
 
10305
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $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"
 
10306
     else
 
10307
      if test "$host_cpu" = ia64; then
 
10308
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
10309
        allow_undefined_flag_CXX="-z nodefs"
 
10310
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
10311
      else
 
10312
        # Determine the default libpath from the value encoded in an empty executable.
 
10313
        cat >conftest.$ac_ext <<_ACEOF
 
10314
/* confdefs.h.  */
 
10315
_ACEOF
 
10316
cat confdefs.h >>conftest.$ac_ext
 
10317
cat >>conftest.$ac_ext <<_ACEOF
 
10318
/* end confdefs.h.  */
 
10319
 
 
10320
int
 
10321
main ()
 
10322
{
 
10323
 
 
10324
  ;
 
10325
  return 0;
 
10326
}
 
10327
_ACEOF
 
10328
rm -f conftest.$ac_objext conftest$ac_exeext
 
10329
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10330
  (eval $ac_link) 2>conftest.er1
 
10331
  ac_status=$?
 
10332
  grep -v '^ *+' conftest.er1 >conftest.err
 
10333
  rm -f conftest.er1
 
10334
  cat conftest.err >&5
 
10335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10336
  (exit $ac_status); } &&
 
10337
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10338
                         || test ! -s conftest.err'
 
10339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10340
  (eval $ac_try) 2>&5
 
10341
  ac_status=$?
 
10342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10343
  (exit $ac_status); }; } &&
 
10344
         { ac_try='test -s conftest$ac_exeext'
 
10345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10346
  (eval $ac_try) 2>&5
 
10347
  ac_status=$?
 
10348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10349
  (exit $ac_status); }; }; then
 
10350
 
 
10351
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10352
}'`
 
10353
# Check for a 64-bit object if we didn't find anything.
 
10354
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; }
 
10355
}'`; fi
 
10356
else
 
10357
  echo "$as_me: failed program was:" >&5
 
10358
sed 's/^/| /' conftest.$ac_ext >&5
 
10359
 
 
10360
fi
 
10361
rm -f conftest.err conftest.$ac_objext \
 
10362
      conftest$ac_exeext conftest.$ac_ext
 
10363
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10364
 
 
10365
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10366
        # Warning - without using the other run time loading flags,
 
10367
        # -berok will link without error, but may produce a broken library.
 
10368
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10369
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10370
        # Exported symbols can be pulled into shared objects from archives
 
10371
        whole_archive_flag_spec_CXX='$convenience'
 
10372
        archive_cmds_need_lc_CXX=yes
 
10373
        # This is similar to how AIX traditionally builds its shared libraries.
 
10374
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
10375
      fi
 
10376
    fi
 
10377
    ;;
 
10378
 
 
10379
  beos*)
 
10380
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
10381
      allow_undefined_flag_CXX=unsupported
 
10382
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10383
      # support --undefined.  This deserves some investigation.  FIXME
 
10384
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10385
    else
 
10386
      ld_shlibs_CXX=no
 
10387
    fi
 
10388
    ;;
 
10389
 
 
10390
  chorus*)
 
10391
    case $cc_basename in
 
10392
      *)
 
10393
        # FIXME: insert proper C++ library support
 
10394
        ld_shlibs_CXX=no
 
10395
        ;;
 
10396
    esac
 
10397
    ;;
 
10398
 
 
10399
  cygwin* | mingw* | pw32*)
 
10400
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10401
    # as there is no search path for DLLs.
 
10402
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10403
    allow_undefined_flag_CXX=unsupported
 
10404
    always_export_symbols_CXX=no
 
10405
    enable_shared_with_static_runtimes_CXX=yes
 
10406
 
 
10407
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10408
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10409
      # If the export-symbols file already is a .def file (1st line
 
10410
      # is EXPORTS), use it as is; otherwise, prepend...
 
10411
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10412
        cp $export_symbols $output_objdir/$soname.def;
 
10413
      else
 
10414
        echo EXPORTS > $output_objdir/$soname.def;
 
10415
        cat $export_symbols >> $output_objdir/$soname.def;
 
10416
      fi~
 
10417
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10418
    else
 
10419
      ld_shlibs_CXX=no
 
10420
    fi
 
10421
  ;;
 
10422
      darwin* | rhapsody*)
 
10423
        case $host_os in
 
10424
        rhapsody* | darwin1.[012])
 
10425
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
10426
         ;;
 
10427
       *) # Darwin 1.3 on
 
10428
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10429
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10430
         else
 
10431
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
10432
             10.[012])
 
10433
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10434
               ;;
 
10435
             10.*)
 
10436
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
10437
               ;;
 
10438
           esac
 
10439
         fi
 
10440
         ;;
 
10441
        esac
 
10442
      archive_cmds_need_lc_CXX=no
 
10443
      hardcode_direct_CXX=no
 
10444
      hardcode_automatic_CXX=yes
 
10445
      hardcode_shlibpath_var_CXX=unsupported
 
10446
      whole_archive_flag_spec_CXX=''
 
10447
      link_all_deplibs_CXX=yes
 
10448
 
 
10449
    if test "$GXX" = yes ; then
 
10450
      lt_int_apple_cc_single_mod=no
 
10451
      output_verbose_link_cmd='echo'
 
10452
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
10453
       lt_int_apple_cc_single_mod=yes
 
10454
      fi
 
10455
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10456
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10457
      else
 
10458
          archive_cmds_CXX='$CC -r -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'
 
10459
        fi
 
10460
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10461
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10462
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10463
            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}'
 
10464
          else
 
10465
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
 
10466
          fi
 
10467
            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}'
 
10468
      else
 
10469
      case $cc_basename in
 
10470
        xlc*)
 
10471
         output_verbose_link_cmd='echo'
 
10472
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
10473
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10474
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10475
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10476
          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}'
 
10477
          ;;
 
10478
       *)
 
10479
         ld_shlibs_CXX=no
 
10480
          ;;
 
10481
      esac
 
10482
      fi
 
10483
        ;;
 
10484
 
 
10485
  dgux*)
 
10486
    case $cc_basename in
 
10487
      ec++*)
 
10488
        # FIXME: insert proper C++ library support
 
10489
        ld_shlibs_CXX=no
 
10490
        ;;
 
10491
      ghcx*)
 
10492
        # Green Hills C++ Compiler
 
10493
        # FIXME: insert proper C++ library support
 
10494
        ld_shlibs_CXX=no
 
10495
        ;;
 
10496
      *)
 
10497
        # FIXME: insert proper C++ library support
 
10498
        ld_shlibs_CXX=no
 
10499
        ;;
 
10500
    esac
 
10501
    ;;
 
10502
  freebsd[12]*)
 
10503
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10504
    ld_shlibs_CXX=no
 
10505
    ;;
 
10506
  freebsd-elf*)
 
10507
    archive_cmds_need_lc_CXX=no
 
10508
    ;;
 
10509
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
10510
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10511
    # conventions
 
10512
    ld_shlibs_CXX=yes
 
10513
    ;;
 
10514
  gnu*)
 
10515
    ;;
 
10516
  hpux9*)
 
10517
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10518
    hardcode_libdir_separator_CXX=:
 
10519
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10520
    hardcode_direct_CXX=yes
 
10521
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10522
                                # but as the default
 
10523
                                # location of the library.
 
10524
 
 
10525
    case $cc_basename in
 
10526
    CC*)
 
10527
      # FIXME: insert proper C++ library support
 
10528
      ld_shlibs_CXX=no
 
10529
      ;;
 
10530
    aCC*)
 
10531
      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'
 
10532
      # Commands to make compiler produce verbose output that lists
 
10533
      # what "hidden" libraries, object files and flags are used when
 
10534
      # linking a shared library.
 
10535
      #
 
10536
      # There doesn't appear to be a way to prevent this compiler from
 
10537
      # explicitly linking system object files so we need to strip them
 
10538
      # from the output so that they don't get included in the library
 
10539
      # dependencies.
 
10540
      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'
 
10541
      ;;
 
10542
    *)
 
10543
      if test "$GXX" = yes; then
 
10544
        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'
 
10545
      else
 
10546
        # FIXME: insert proper C++ library support
 
10547
        ld_shlibs_CXX=no
 
10548
      fi
 
10549
      ;;
 
10550
    esac
 
10551
    ;;
 
10552
  hpux10*|hpux11*)
 
10553
    if test $with_gnu_ld = no; then
 
10554
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10555
      hardcode_libdir_separator_CXX=:
 
10556
 
 
10557
      case $host_cpu in
 
10558
      hppa*64*|ia64*)
 
10559
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10560
        ;;
 
10561
      *)
 
10562
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10563
        ;;
 
10564
      esac
 
10565
    fi
 
10566
    case $host_cpu in
 
10567
    hppa*64*|ia64*)
 
10568
      hardcode_direct_CXX=no
 
10569
      hardcode_shlibpath_var_CXX=no
 
10570
      ;;
 
10571
    *)
 
10572
      hardcode_direct_CXX=yes
 
10573
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10574
                                              # but as the default
 
10575
                                              # location of the library.
 
10576
      ;;
 
10577
    esac
 
10578
 
 
10579
    case $cc_basename in
 
10580
      CC*)
 
10581
        # FIXME: insert proper C++ library support
 
10582
        ld_shlibs_CXX=no
 
10583
        ;;
 
10584
      aCC*)
 
10585
        case $host_cpu in
 
10586
        hppa*64*)
 
10587
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10588
          ;;
 
10589
        ia64*)
 
10590
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10591
          ;;
 
10592
        *)
 
10593
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10594
          ;;
 
10595
        esac
 
10596
        # Commands to make compiler produce verbose output that lists
 
10597
        # what "hidden" libraries, object files and flags are used when
 
10598
        # linking a shared library.
 
10599
        #
 
10600
        # There doesn't appear to be a way to prevent this compiler from
 
10601
        # explicitly linking system object files so we need to strip them
 
10602
        # from the output so that they don't get included in the library
 
10603
        # dependencies.
 
10604
        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'
 
10605
        ;;
 
10606
      *)
 
10607
        if test "$GXX" = yes; then
 
10608
          if test $with_gnu_ld = no; then
 
10609
            case $host_cpu in
 
10610
            hppa*64*)
 
10611
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10612
              ;;
 
10613
            ia64*)
 
10614
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10615
              ;;
 
10616
            *)
 
10617
              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'
 
10618
              ;;
 
10619
            esac
 
10620
          fi
 
10621
        else
 
10622
          # FIXME: insert proper C++ library support
 
10623
          ld_shlibs_CXX=no
 
10624
        fi
 
10625
        ;;
 
10626
    esac
 
10627
    ;;
 
10628
  interix3*)
 
10629
    hardcode_direct_CXX=no
 
10630
    hardcode_shlibpath_var_CXX=no
 
10631
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10632
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10633
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
10634
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
10635
    # default) and relocated if they conflict, which is a slow very memory
 
10636
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
10637
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
10638
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
10639
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
10640
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
10641
    ;;
 
10642
  irix5* | irix6*)
 
10643
    case $cc_basename in
 
10644
      CC*)
 
10645
        # SGI C++
 
10646
        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 ${output_objdir}/so_locations -o $lib'
 
10647
 
 
10648
        # Archives containing C++ object files must be created using
 
10649
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
10650
        # necessary to make sure instantiated templates are included
 
10651
        # in the archive.
 
10652
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
10653
        ;;
 
10654
      *)
 
10655
        if test "$GXX" = yes; then
 
10656
          if test "$with_gnu_ld" = no; then
 
10657
            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}${output_objdir}/so_locations -o $lib'
 
10658
          else
 
10659
            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'
 
10660
          fi
 
10661
        fi
 
10662
        link_all_deplibs_CXX=yes
 
10663
        ;;
 
10664
    esac
 
10665
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10666
    hardcode_libdir_separator_CXX=:
 
10667
    ;;
 
10668
  linux*)
 
10669
    case $cc_basename in
 
10670
      KCC*)
 
10671
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10672
 
 
10673
        # KCC will only create a shared library if the output file
 
10674
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10675
        # to its proper name (with version) after linking.
 
10676
        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'
 
10677
        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'
 
10678
        # Commands to make compiler produce verbose output that lists
 
10679
        # what "hidden" libraries, object files and flags are used when
 
10680
        # linking a shared library.
 
10681
        #
 
10682
        # There doesn't appear to be a way to prevent this compiler from
 
10683
        # explicitly linking system object files so we need to strip them
 
10684
        # from the output so that they don't get included in the library
 
10685
        # dependencies.
 
10686
        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'
 
10687
 
 
10688
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
10689
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10690
 
 
10691
        # Archives containing C++ object files must be created using
 
10692
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10693
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10694
        ;;
 
10695
      icpc*)
 
10696
        # Intel C++
 
10697
        with_gnu_ld=yes
 
10698
        # version 8.0 and above of icpc choke on multiply defined symbols
 
10699
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
10700
        # earlier do not add the objects themselves.
 
10701
        case `$CC -V 2>&1` in
 
10702
        *"Version 7."*)
 
10703
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10704
          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'
 
10705
          ;;
 
10706
        *)  # Version 8.0 or newer
 
10707
          tmp_idyn=
 
10708
          case $host_cpu in
 
10709
            ia64*) tmp_idyn=' -i_dynamic';;
 
10710
          esac
 
10711
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10712
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10713
          ;;
 
10714
        esac
 
10715
        archive_cmds_need_lc_CXX=no
 
10716
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10717
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10718
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10719
        ;;
 
10720
      pgCC*)
 
10721
        # Portland Group C++ compiler
 
10722
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
10723
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
10724
 
 
10725
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10726
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10727
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
10728
        ;;
 
10729
      cxx*)
 
10730
        # Compaq C++
 
10731
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10732
        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'
 
10733
 
 
10734
        runpath_var=LD_RUN_PATH
 
10735
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10736
        hardcode_libdir_separator_CXX=:
 
10737
 
 
10738
        # Commands to make compiler produce verbose output that lists
 
10739
        # what "hidden" libraries, object files and flags are used when
 
10740
        # linking a shared library.
 
10741
        #
 
10742
        # There doesn't appear to be a way to prevent this compiler from
 
10743
        # explicitly linking system object files so we need to strip them
 
10744
        # from the output so that they don't get included in the library
 
10745
        # dependencies.
 
10746
        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'
 
10747
        ;;
 
10748
    esac
 
10749
    ;;
 
10750
  lynxos*)
 
10751
    # FIXME: insert proper C++ library support
 
10752
    ld_shlibs_CXX=no
 
10753
    ;;
 
10754
  m88k*)
 
10755
    # FIXME: insert proper C++ library support
 
10756
    ld_shlibs_CXX=no
 
10757
    ;;
 
10758
  mvs*)
 
10759
    case $cc_basename in
 
10760
      cxx*)
 
10761
        # FIXME: insert proper C++ library support
 
10762
        ld_shlibs_CXX=no
 
10763
        ;;
 
10764
      *)
 
10765
        # FIXME: insert proper C++ library support
 
10766
        ld_shlibs_CXX=no
 
10767
        ;;
 
10768
    esac
 
10769
    ;;
 
10770
  netbsd*)
 
10771
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10772
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
10773
      wlarc=
 
10774
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10775
      hardcode_direct_CXX=yes
 
10776
      hardcode_shlibpath_var_CXX=no
 
10777
    fi
 
10778
    # Workaround some broken pre-1.5 toolchains
 
10779
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
10780
    ;;
 
10781
  openbsd2*)
 
10782
    # C++ shared libraries are fairly broken
 
10783
    ld_shlibs_CXX=no
 
10784
    ;;
 
10785
  openbsd*)
 
10786
    hardcode_direct_CXX=yes
 
10787
    hardcode_shlibpath_var_CXX=no
 
10788
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10789
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10790
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10791
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
10792
      export_dynamic_flag_spec_CXX='${wl}-E'
 
10793
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10794
    fi
 
10795
    output_verbose_link_cmd='echo'
 
10796
    ;;
 
10797
  osf3*)
 
10798
    case $cc_basename in
 
10799
      KCC*)
 
10800
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10801
 
 
10802
        # KCC will only create a shared library if the output file
 
10803
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10804
        # to its proper name (with version) after linking.
 
10805
        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'
 
10806
 
 
10807
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10808
        hardcode_libdir_separator_CXX=:
 
10809
 
 
10810
        # Archives containing C++ object files must be created using
 
10811
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10812
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10813
 
 
10814
        ;;
 
10815
      RCC*)
 
10816
        # Rational C++ 2.4.1
 
10817
        # FIXME: insert proper C++ library support
 
10818
        ld_shlibs_CXX=no
 
10819
        ;;
 
10820
      cxx*)
 
10821
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10822
        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 ${output_objdir}/so_locations -o $lib'
 
10823
 
 
10824
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10825
        hardcode_libdir_separator_CXX=:
 
10826
 
 
10827
        # Commands to make compiler produce verbose output that lists
 
10828
        # what "hidden" libraries, object files and flags are used when
 
10829
        # linking a shared library.
 
10830
        #
 
10831
        # There doesn't appear to be a way to prevent this compiler from
 
10832
        # explicitly linking system object files so we need to strip them
 
10833
        # from the output so that they don't get included in the library
 
10834
        # dependencies.
 
10835
        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'
 
10836
        ;;
 
10837
      *)
 
10838
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10839
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10840
          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}${output_objdir}/so_locations -o $lib'
 
10841
 
 
10842
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10843
          hardcode_libdir_separator_CXX=:
 
10844
 
 
10845
          # Commands to make compiler produce verbose output that lists
 
10846
          # what "hidden" libraries, object files and flags are used when
 
10847
          # linking a shared library.
 
10848
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10849
 
 
10850
        else
 
10851
          # FIXME: insert proper C++ library support
 
10852
          ld_shlibs_CXX=no
 
10853
        fi
 
10854
        ;;
 
10855
    esac
 
10856
    ;;
 
10857
  osf4* | osf5*)
 
10858
    case $cc_basename in
 
10859
      KCC*)
 
10860
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10861
 
 
10862
        # KCC will only create a shared library if the output file
 
10863
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10864
        # to its proper name (with version) after linking.
 
10865
        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'
 
10866
 
 
10867
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10868
        hardcode_libdir_separator_CXX=:
 
10869
 
 
10870
        # Archives containing C++ object files must be created using
 
10871
        # the KAI C++ compiler.
 
10872
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
10873
        ;;
 
10874
      RCC*)
 
10875
        # Rational C++ 2.4.1
 
10876
        # FIXME: insert proper C++ library support
 
10877
        ld_shlibs_CXX=no
 
10878
        ;;
 
10879
      cxx*)
 
10880
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
10881
        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 ${output_objdir}/so_locations -o $lib'
 
10882
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
10883
          echo "-hidden">> $lib.exp~
 
10884
          $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 ${output_objdir}/so_locations -o $lib~
 
10885
          $rm $lib.exp'
 
10886
 
 
10887
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10888
        hardcode_libdir_separator_CXX=:
 
10889
 
 
10890
        # Commands to make compiler produce verbose output that lists
 
10891
        # what "hidden" libraries, object files and flags are used when
 
10892
        # linking a shared library.
 
10893
        #
 
10894
        # There doesn't appear to be a way to prevent this compiler from
 
10895
        # explicitly linking system object files so we need to strip them
 
10896
        # from the output so that they don't get included in the library
 
10897
        # dependencies.
 
10898
        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'
 
10899
        ;;
 
10900
      *)
 
10901
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10902
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10903
         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}${output_objdir}/so_locations -o $lib'
 
10904
 
 
10905
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10906
          hardcode_libdir_separator_CXX=:
 
10907
 
 
10908
          # Commands to make compiler produce verbose output that lists
 
10909
          # what "hidden" libraries, object files and flags are used when
 
10910
          # linking a shared library.
 
10911
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10912
 
 
10913
        else
 
10914
          # FIXME: insert proper C++ library support
 
10915
          ld_shlibs_CXX=no
 
10916
        fi
 
10917
        ;;
 
10918
    esac
 
10919
    ;;
 
10920
  psos*)
 
10921
    # FIXME: insert proper C++ library support
 
10922
    ld_shlibs_CXX=no
 
10923
    ;;
 
10924
  sunos4*)
 
10925
    case $cc_basename in
 
10926
      CC*)
 
10927
        # Sun C++ 4.x
 
10928
        # FIXME: insert proper C++ library support
 
10929
        ld_shlibs_CXX=no
 
10930
        ;;
 
10931
      lcc*)
 
10932
        # Lucid
 
10933
        # FIXME: insert proper C++ library support
 
10934
        ld_shlibs_CXX=no
 
10935
        ;;
 
10936
      *)
 
10937
        # FIXME: insert proper C++ library support
 
10938
        ld_shlibs_CXX=no
 
10939
        ;;
 
10940
    esac
 
10941
    ;;
 
10942
  solaris*)
 
10943
    case $cc_basename in
 
10944
      CC*)
 
10945
        # Sun C++ 4.2, 5.x and Centerline C++
 
10946
        archive_cmds_need_lc_CXX=yes
 
10947
        no_undefined_flag_CXX=' -zdefs'
 
10948
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10949
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10950
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10951
 
 
10952
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10953
        hardcode_shlibpath_var_CXX=no
 
10954
        case $host_os in
 
10955
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10956
          *)
 
10957
            # The C++ compiler is used as linker so we must use $wl
 
10958
            # flag to pass the commands to the underlying system
 
10959
            # linker. We must also pass each convience library through
 
10960
            # to the system linker between allextract/defaultextract.
 
10961
            # The C++ compiler will combine linker options so we
 
10962
            # cannot just pass the convience library names through
 
10963
            # without $wl.
 
10964
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10965
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
10966
            ;;
 
10967
        esac
 
10968
        link_all_deplibs_CXX=yes
 
10969
 
 
10970
        output_verbose_link_cmd='echo'
 
10971
 
 
10972
        # Archives containing C++ object files must be created using
 
10973
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10974
        # necessary to make sure instantiated templates are included
 
10975
        # in the archive.
 
10976
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10977
        ;;
 
10978
      gcx*)
 
10979
        # Green Hills C++ Compiler
 
10980
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10981
 
 
10982
        # The C++ compiler must be used to create the archive.
 
10983
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10984
        ;;
 
10985
      *)
 
10986
        # GNU C++ compiler with Solaris linker
 
10987
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10988
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10989
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10990
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10991
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10992
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10993
 
 
10994
            # Commands to make compiler produce verbose output that lists
 
10995
            # what "hidden" libraries, object files and flags are used when
 
10996
            # linking a shared library.
 
10997
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10998
          else
 
10999
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
11000
            # platform.
 
11001
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11002
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11003
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11004
 
 
11005
            # Commands to make compiler produce verbose output that lists
 
11006
            # what "hidden" libraries, object files and flags are used when
 
11007
            # linking a shared library.
 
11008
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11009
          fi
 
11010
 
 
11011
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11012
        fi
 
11013
        ;;
 
11014
    esac
 
11015
    ;;
 
11016
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11017
    no_undefined_flag_CXX='${wl}-z,text'
 
11018
    archive_cmds_need_lc_CXX=no
 
11019
    hardcode_shlibpath_var_CXX=no
 
11020
    runpath_var='LD_RUN_PATH'
 
11021
 
 
11022
    case $cc_basename in
 
11023
      CC*)
 
11024
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11025
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11026
        ;;
 
11027
      *)
 
11028
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11029
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11030
        ;;
 
11031
    esac
 
11032
    ;;
 
11033
  sysv5* | sco3.2v5* | sco5v6*)
 
11034
    # Note: We can NOT use -z defs as we might desire, because we do not
 
11035
    # link with -lc, and that would cause any symbols used from libc to
 
11036
    # always be unresolved, which means just about no library would
 
11037
    # ever link correctly.  If we're not using GNU ld we use -z text
 
11038
    # though, which does catch some bad symbols but isn't as heavy-handed
 
11039
    # as -z defs.
 
11040
    # For security reasons, it is highly recommended that you always
 
11041
    # use absolute paths for naming shared libraries, and exclude the
 
11042
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
11043
    # requires that you compile everything twice, which is a pain.
 
11044
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11045
    # non-empty value in the environment.  Most likely only useful for
 
11046
    # creating official distributions of packages.
 
11047
    # This is a hack until libtool officially supports absolute path
 
11048
    # names for shared libraries.
 
11049
    no_undefined_flag_CXX='${wl}-z,text'
 
11050
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11051
    archive_cmds_need_lc_CXX=no
 
11052
    hardcode_shlibpath_var_CXX=no
 
11053
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11054
    hardcode_libdir_separator_CXX=':'
 
11055
    link_all_deplibs_CXX=yes
 
11056
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11057
    runpath_var='LD_RUN_PATH'
 
11058
 
 
11059
    case $cc_basename in
 
11060
      CC*)
 
11061
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11062
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11063
        ;;
 
11064
      *)
 
11065
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11066
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11067
        ;;
 
11068
    esac
 
11069
    ;;
 
11070
  tandem*)
 
11071
    case $cc_basename in
 
11072
      NCC*)
 
11073
        # NonStop-UX NCC 3.20
 
11074
        # FIXME: insert proper C++ library support
 
11075
        ld_shlibs_CXX=no
 
11076
        ;;
 
11077
      *)
 
11078
        # FIXME: insert proper C++ library support
 
11079
        ld_shlibs_CXX=no
 
11080
        ;;
 
11081
    esac
 
11082
    ;;
 
11083
  vxworks*)
 
11084
    # FIXME: insert proper C++ library support
 
11085
    ld_shlibs_CXX=no
 
11086
    ;;
 
11087
  *)
 
11088
    # FIXME: insert proper C++ library support
 
11089
    ld_shlibs_CXX=no
 
11090
    ;;
 
11091
esac
 
11092
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11093
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11094
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11095
 
 
11096
GCC_CXX="$GXX"
 
11097
LD_CXX="$LD"
 
11098
 
 
11099
 
 
11100
cat > conftest.$ac_ext <<EOF
 
11101
class Foo
 
11102
{
 
11103
public:
 
11104
  Foo (void) { a = 0; }
 
11105
private:
 
11106
  int a;
 
11107
};
 
11108
EOF
 
11109
 
 
11110
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11111
  (eval $ac_compile) 2>&5
 
11112
  ac_status=$?
 
11113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11114
  (exit $ac_status); }; then
 
11115
  # Parse the compiler output and extract the necessary
 
11116
  # objects, libraries and library flags.
 
11117
 
 
11118
  # Sentinel used to keep track of whether or not we are before
 
11119
  # the conftest object file.
 
11120
  pre_test_object_deps_done=no
 
11121
 
 
11122
  # The `*' in the case matches for architectures that use `case' in
 
11123
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11124
  # eval without this substitution.
 
11125
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
11126
 
 
11127
  for p in `eval $output_verbose_link_cmd`; do
 
11128
    case $p in
 
11129
 
 
11130
    -L* | -R* | -l*)
 
11131
       # Some compilers place space between "-{L,R}" and the path.
 
11132
       # Remove the space.
 
11133
       if test $p = "-L" \
 
11134
          || test $p = "-R"; then
 
11135
         prev=$p
 
11136
         continue
 
11137
       else
 
11138
         prev=
 
11139
       fi
 
11140
 
 
11141
       if test "$pre_test_object_deps_done" = no; then
 
11142
         case $p in
 
11143
         -L* | -R*)
 
11144
           # Internal compiler library paths should come after those
 
11145
           # provided the user.  The postdeps already come after the
 
11146
           # user supplied libs so there is no need to process them.
 
11147
           if test -z "$compiler_lib_search_path_CXX"; then
 
11148
             compiler_lib_search_path_CXX="${prev}${p}"
 
11149
           else
 
11150
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11151
           fi
 
11152
           ;;
 
11153
         # The "-l" case would never come before the object being
 
11154
         # linked, so don't bother handling this case.
 
11155
         esac
 
11156
       else
 
11157
         if test -z "$postdeps_CXX"; then
 
11158
           postdeps_CXX="${prev}${p}"
 
11159
         else
 
11160
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11161
         fi
 
11162
       fi
 
11163
       ;;
 
11164
 
 
11165
    *.$objext)
 
11166
       # This assumes that the test object file only shows up
 
11167
       # once in the compiler output.
 
11168
       if test "$p" = "conftest.$objext"; then
 
11169
         pre_test_object_deps_done=yes
 
11170
         continue
 
11171
       fi
 
11172
 
 
11173
       if test "$pre_test_object_deps_done" = no; then
 
11174
         if test -z "$predep_objects_CXX"; then
 
11175
           predep_objects_CXX="$p"
 
11176
         else
 
11177
           predep_objects_CXX="$predep_objects_CXX $p"
 
11178
         fi
 
11179
       else
 
11180
         if test -z "$postdep_objects_CXX"; then
 
11181
           postdep_objects_CXX="$p"
 
11182
         else
 
11183
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11184
         fi
 
11185
       fi
 
11186
       ;;
 
11187
 
 
11188
    *) ;; # Ignore the rest.
 
11189
 
 
11190
    esac
 
11191
  done
 
11192
 
 
11193
  # Clean up.
 
11194
  rm -f a.out a.exe
 
11195
else
 
11196
  echo "libtool.m4: error: problem compiling CXX test program"
 
11197
fi
 
11198
 
 
11199
$rm -f confest.$objext
 
11200
 
 
11201
# PORTME: override above test on systems where it is broken
 
11202
case $host_os in
 
11203
interix3*)
 
11204
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
11205
  # hack all around it, let's just trust "g++" to DTRT.
 
11206
  predep_objects_CXX=
 
11207
  postdep_objects_CXX=
 
11208
  postdeps_CXX=
 
11209
  ;;
 
11210
 
 
11211
solaris*)
 
11212
  case $cc_basename in
 
11213
  CC*)
 
11214
    # Adding this requires a known-good setup of shared libraries for
 
11215
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11216
    # archive will be linked into the output, leading to subtle bugs.
 
11217
    postdeps_CXX='-lCstd -lCrun'
 
11218
    ;;
 
11219
  esac
 
11220
  ;;
 
11221
esac
 
11222
 
 
11223
 
 
11224
case " $postdeps_CXX " in
 
11225
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11226
esac
 
11227
 
 
11228
lt_prog_compiler_wl_CXX=
 
11229
lt_prog_compiler_pic_CXX=
 
11230
lt_prog_compiler_static_CXX=
 
11231
 
 
11232
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11233
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
11234
 
 
11235
  # C++ specific cases for pic, static, wl, etc.
 
11236
  if test "$GXX" = yes; then
 
11237
    lt_prog_compiler_wl_CXX='-Wl,'
 
11238
    lt_prog_compiler_static_CXX='-static'
 
11239
 
 
11240
    case $host_os in
 
11241
    aix*)
 
11242
      # All AIX code is PIC.
 
11243
      if test "$host_cpu" = ia64; then
 
11244
        # AIX 5 now supports IA64 processor
 
11245
        lt_prog_compiler_static_CXX='-Bstatic'
 
11246
      fi
 
11247
      ;;
 
11248
    amigaos*)
 
11249
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11250
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11251
      # like `-m68040'.
 
11252
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11253
      ;;
 
11254
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11255
      # PIC is the default for these OSes.
 
11256
      ;;
 
11257
    mingw* | os2* | pw32*)
 
11258
      # This hack is so that the source file can tell whether it is being
 
11259
      # built for inclusion in a dll (and should export symbols for example).
 
11260
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11261
      ;;
 
11262
    darwin* | rhapsody*)
 
11263
      # PIC is the default on this platform
 
11264
      # Common symbols not allowed in MH_DYLIB files
 
11265
      lt_prog_compiler_pic_CXX='-fno-common'
 
11266
      ;;
 
11267
    *djgpp*)
 
11268
      # DJGPP does not support shared libraries at all
 
11269
      lt_prog_compiler_pic_CXX=
 
11270
      ;;
 
11271
    interix3*)
 
11272
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
11273
      # Instead, we relocate shared libraries at runtime.
 
11274
      ;;
 
11275
    sysv4*MP*)
 
11276
      if test -d /usr/nec; then
 
11277
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
11278
      fi
 
11279
      ;;
 
11280
    hpux*)
 
11281
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
11282
      # not for PA HP-UX.
 
11283
      case $host_cpu in
 
11284
      hppa*64*|ia64*)
 
11285
        ;;
 
11286
      *)
 
11287
        lt_prog_compiler_pic_CXX='-fPIC'
 
11288
        ;;
 
11289
      esac
 
11290
      ;;
 
11291
    *)
 
11292
      lt_prog_compiler_pic_CXX='-fPIC'
 
11293
      ;;
 
11294
    esac
 
11295
  else
 
11296
    case $host_os in
 
11297
      aix4* | aix5*)
 
11298
        # All AIX code is PIC.
 
11299
        if test "$host_cpu" = ia64; then
 
11300
          # AIX 5 now supports IA64 processor
 
11301
          lt_prog_compiler_static_CXX='-Bstatic'
 
11302
        else
 
11303
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
11304
        fi
 
11305
        ;;
 
11306
      chorus*)
 
11307
        case $cc_basename in
 
11308
        cxch68*)
 
11309
          # Green Hills C++ Compiler
 
11310
          # _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"
 
11311
          ;;
 
11312
        esac
 
11313
        ;;
 
11314
       darwin*)
 
11315
         # PIC is the default on this platform
 
11316
         # Common symbols not allowed in MH_DYLIB files
 
11317
         case $cc_basename in
 
11318
           xlc*)
 
11319
           lt_prog_compiler_pic_CXX='-qnocommon'
 
11320
           lt_prog_compiler_wl_CXX='-Wl,'
 
11321
           ;;
 
11322
         esac
 
11323
       ;;
 
11324
      dgux*)
 
11325
        case $cc_basename in
 
11326
          ec++*)
 
11327
            lt_prog_compiler_pic_CXX='-KPIC'
 
11328
            ;;
 
11329
          ghcx*)
 
11330
            # Green Hills C++ Compiler
 
11331
            lt_prog_compiler_pic_CXX='-pic'
 
11332
            ;;
 
11333
          *)
 
11334
            ;;
 
11335
        esac
 
11336
        ;;
 
11337
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
11338
        # FreeBSD uses GNU C++
 
11339
        ;;
 
11340
      hpux9* | hpux10* | hpux11*)
 
11341
        case $cc_basename in
 
11342
          CC*)
 
11343
            lt_prog_compiler_wl_CXX='-Wl,'
 
11344
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11345
            if test "$host_cpu" != ia64; then
 
11346
              lt_prog_compiler_pic_CXX='+Z'
 
11347
            fi
 
11348
            ;;
 
11349
          aCC*)
 
11350
            lt_prog_compiler_wl_CXX='-Wl,'
 
11351
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11352
            case $host_cpu in
 
11353
            hppa*64*|ia64*)
 
11354
              # +Z the default
 
11355
              ;;
 
11356
            *)
 
11357
              lt_prog_compiler_pic_CXX='+Z'
 
11358
              ;;
 
11359
            esac
 
11360
            ;;
 
11361
          *)
 
11362
            ;;
 
11363
        esac
 
11364
        ;;
 
11365
      interix*)
 
11366
        # This is c89, which is MS Visual C++ (no shared libs)
 
11367
        # Anyone wants to do a port?
 
11368
        ;;
 
11369
      irix5* | irix6* | nonstopux*)
 
11370
        case $cc_basename in
 
11371
          CC*)
 
11372
            lt_prog_compiler_wl_CXX='-Wl,'
 
11373
            lt_prog_compiler_static_CXX='-non_shared'
 
11374
            # CC pic flag -KPIC is the default.
 
11375
            ;;
 
11376
          *)
 
11377
            ;;
 
11378
        esac
 
11379
        ;;
 
11380
      linux*)
 
11381
        case $cc_basename in
 
11382
          KCC*)
 
11383
            # KAI C++ Compiler
 
11384
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11385
            lt_prog_compiler_pic_CXX='-fPIC'
 
11386
            ;;
 
11387
          icpc* | ecpc*)
 
11388
            # Intel C++
 
11389
            lt_prog_compiler_wl_CXX='-Wl,'
 
11390
            lt_prog_compiler_pic_CXX='-KPIC'
 
11391
            lt_prog_compiler_static_CXX='-static'
 
11392
            ;;
 
11393
          pgCC*)
 
11394
            # Portland Group C++ compiler.
 
11395
            lt_prog_compiler_wl_CXX='-Wl,'
 
11396
            lt_prog_compiler_pic_CXX='-fpic'
 
11397
            lt_prog_compiler_static_CXX='-Bstatic'
 
11398
            ;;
 
11399
          cxx*)
 
11400
            # Compaq C++
 
11401
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11402
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11403
            lt_prog_compiler_pic_CXX=
 
11404
            lt_prog_compiler_static_CXX='-non_shared'
 
11405
            ;;
 
11406
          *)
 
11407
            ;;
 
11408
        esac
 
11409
        ;;
 
11410
      lynxos*)
 
11411
        ;;
 
11412
      m88k*)
 
11413
        ;;
 
11414
      mvs*)
 
11415
        case $cc_basename in
 
11416
          cxx*)
 
11417
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
11418
            ;;
 
11419
          *)
 
11420
            ;;
 
11421
        esac
 
11422
        ;;
 
11423
      netbsd*)
 
11424
        ;;
 
11425
      osf3* | osf4* | osf5*)
 
11426
        case $cc_basename in
 
11427
          KCC*)
 
11428
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11429
            ;;
 
11430
          RCC*)
 
11431
            # Rational C++ 2.4.1
 
11432
            lt_prog_compiler_pic_CXX='-pic'
 
11433
            ;;
 
11434
          cxx*)
 
11435
            # Digital/Compaq C++
 
11436
            lt_prog_compiler_wl_CXX='-Wl,'
 
11437
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11438
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11439
            lt_prog_compiler_pic_CXX=
 
11440
            lt_prog_compiler_static_CXX='-non_shared'
 
11441
            ;;
 
11442
          *)
 
11443
            ;;
 
11444
        esac
 
11445
        ;;
 
11446
      psos*)
 
11447
        ;;
 
11448
      solaris*)
 
11449
        case $cc_basename in
 
11450
          CC*)
 
11451
            # Sun C++ 4.2, 5.x and Centerline C++
 
11452
            lt_prog_compiler_pic_CXX='-KPIC'
 
11453
            lt_prog_compiler_static_CXX='-Bstatic'
 
11454
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
11455
            ;;
 
11456
          gcx*)
 
11457
            # Green Hills C++ Compiler
 
11458
            lt_prog_compiler_pic_CXX='-PIC'
 
11459
            ;;
 
11460
          *)
 
11461
            ;;
 
11462
        esac
 
11463
        ;;
 
11464
      sunos4*)
 
11465
        case $cc_basename in
 
11466
          CC*)
 
11467
            # Sun C++ 4.x
 
11468
            lt_prog_compiler_pic_CXX='-pic'
 
11469
            lt_prog_compiler_static_CXX='-Bstatic'
 
11470
            ;;
 
11471
          lcc*)
 
11472
            # Lucid
 
11473
            lt_prog_compiler_pic_CXX='-pic'
 
11474
            ;;
 
11475
          *)
 
11476
            ;;
 
11477
        esac
 
11478
        ;;
 
11479
      tandem*)
 
11480
        case $cc_basename in
 
11481
          NCC*)
 
11482
            # NonStop-UX NCC 3.20
 
11483
            lt_prog_compiler_pic_CXX='-KPIC'
 
11484
            ;;
 
11485
          *)
 
11486
            ;;
 
11487
        esac
 
11488
        ;;
 
11489
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
11490
        case $cc_basename in
 
11491
          CC*)
 
11492
            lt_prog_compiler_wl_CXX='-Wl,'
 
11493
            lt_prog_compiler_pic_CXX='-KPIC'
 
11494
            lt_prog_compiler_static_CXX='-Bstatic'
 
11495
            ;;
 
11496
        esac
 
11497
        ;;
 
11498
      vxworks*)
 
11499
        ;;
 
11500
      *)
 
11501
        lt_prog_compiler_can_build_shared_CXX=no
 
11502
        ;;
 
11503
    esac
 
11504
  fi
 
11505
 
 
11506
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11507
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
11508
 
 
11509
#
 
11510
# Check to make sure the PIC flag actually works.
 
11511
#
 
11512
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11513
 
 
11514
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11515
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
11516
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11517
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11518
else
 
11519
  lt_prog_compiler_pic_works_CXX=no
 
11520
  ac_outfile=conftest.$ac_objext
 
11521
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11522
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11523
   # Insert the option either (1) after the last *FLAGS variable, or
 
11524
   # (2) before a word containing "conftest.", or (3) at the end.
 
11525
   # Note that $ac_compile itself does not contain backslashes and begins
 
11526
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11527
   # The option is referenced via a variable to avoid confusing sed.
 
11528
   lt_compile=`echo "$ac_compile" | $SED \
 
11529
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11530
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11531
   -e 's:$: $lt_compiler_flag:'`
 
11532
   (eval echo "\"\$as_me:11532: $lt_compile\"" >&5)
 
11533
   (eval "$lt_compile" 2>conftest.err)
 
11534
   ac_status=$?
 
11535
   cat conftest.err >&5
 
11536
   echo "$as_me:11536: \$? = $ac_status" >&5
 
11537
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11538
     # The compiler can only warn and ignore the option if not recognized
 
11539
     # So say no if there are warnings other than the usual output.
 
11540
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
11541
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11542
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
11543
       lt_prog_compiler_pic_works_CXX=yes
 
11544
     fi
 
11545
   fi
 
11546
   $rm conftest*
 
11547
 
 
11548
fi
 
11549
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11550
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11551
 
 
11552
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11553
    case $lt_prog_compiler_pic_CXX in
 
11554
     "" | " "*) ;;
 
11555
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11556
     esac
 
11557
else
 
11558
    lt_prog_compiler_pic_CXX=
 
11559
     lt_prog_compiler_can_build_shared_CXX=no
 
11560
fi
 
11561
 
 
11562
fi
 
11563
case $host_os in
 
11564
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11565
  *djgpp*)
 
11566
    lt_prog_compiler_pic_CXX=
 
11567
    ;;
 
11568
  *)
 
11569
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11570
    ;;
 
11571
esac
 
11572
 
 
11573
#
 
11574
# Check to make sure the static flag actually works.
 
11575
#
 
11576
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
11577
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
11578
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
11579
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
11580
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11581
else
 
11582
  lt_prog_compiler_static_works_CXX=no
 
11583
   save_LDFLAGS="$LDFLAGS"
 
11584
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
11585
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
11586
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
11587
     # The linker can only warn and ignore the option if not recognized
 
11588
     # So say no if there are warnings
 
11589
     if test -s conftest.err; then
 
11590
       # Append any errors to the config.log.
 
11591
       cat conftest.err 1>&5
 
11592
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
11593
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11594
       if diff conftest.exp conftest.er2 >/dev/null; then
 
11595
         lt_prog_compiler_static_works_CXX=yes
 
11596
       fi
 
11597
     else
 
11598
       lt_prog_compiler_static_works_CXX=yes
 
11599
     fi
 
11600
   fi
 
11601
   $rm conftest*
 
11602
   LDFLAGS="$save_LDFLAGS"
 
11603
 
 
11604
fi
 
11605
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
11606
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
 
11607
 
 
11608
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
11609
    :
 
11610
else
 
11611
    lt_prog_compiler_static_CXX=
 
11612
fi
 
11613
 
 
11614
 
 
11615
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11616
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11617
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11619
else
 
11620
  lt_cv_prog_compiler_c_o_CXX=no
 
11621
   $rm -r conftest 2>/dev/null
 
11622
   mkdir conftest
 
11623
   cd conftest
 
11624
   mkdir out
 
11625
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11626
 
 
11627
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11628
   # Insert the option either (1) after the last *FLAGS variable, or
 
11629
   # (2) before a word containing "conftest.", or (3) at the end.
 
11630
   # Note that $ac_compile itself does not contain backslashes and begins
 
11631
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11632
   lt_compile=`echo "$ac_compile" | $SED \
 
11633
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11634
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11635
   -e 's:$: $lt_compiler_flag:'`
 
11636
   (eval echo "\"\$as_me:11636: $lt_compile\"" >&5)
 
11637
   (eval "$lt_compile" 2>out/conftest.err)
 
11638
   ac_status=$?
 
11639
   cat out/conftest.err >&5
 
11640
   echo "$as_me:11640: \$? = $ac_status" >&5
 
11641
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11642
   then
 
11643
     # The compiler can only warn and ignore the option if not recognized
 
11644
     # So say no if there are warnings
 
11645
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
11646
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
11647
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
11648
       lt_cv_prog_compiler_c_o_CXX=yes
 
11649
     fi
 
11650
   fi
 
11651
   chmod u+w . 2>&5
 
11652
   $rm conftest*
 
11653
   # SGI C++ compiler will create directory out/ii_files/ for
 
11654
   # template instantiation
 
11655
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11656
   $rm out/* && rmdir out
 
11657
   cd ..
 
11658
   rmdir conftest
 
11659
   $rm conftest*
 
11660
 
 
11661
fi
 
11662
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11663
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
11664
 
 
11665
 
 
11666
hard_links="nottested"
 
11667
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
11668
  # do not overwrite the value of need_locks provided by the user
 
11669
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11670
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11671
  hard_links=yes
 
11672
  $rm conftest*
 
11673
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11674
  touch conftest.a
 
11675
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11676
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11677
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11678
echo "${ECHO_T}$hard_links" >&6
 
11679
  if test "$hard_links" = no; then
 
11680
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11681
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11682
    need_locks=warn
 
11683
  fi
 
11684
else
 
11685
  need_locks=no
 
11686
fi
 
11687
 
 
11688
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11689
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11690
 
 
11691
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11692
  case $host_os in
 
11693
  aix4* | aix5*)
 
11694
    # If we're using GNU nm, then we don't want the "-C" option.
 
11695
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11696
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
11697
      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'
 
11698
    else
 
11699
      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'
 
11700
    fi
 
11701
    ;;
 
11702
  pw32*)
 
11703
    export_symbols_cmds_CXX="$ltdll_cmds"
 
11704
  ;;
 
11705
  cygwin* | mingw*)
 
11706
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11707
  ;;
 
11708
  *)
 
11709
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11710
  ;;
 
11711
  esac
 
11712
 
 
11713
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11714
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11715
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11716
 
 
11717
#
 
11718
# Do we need to explicitly link libc?
 
11719
#
 
11720
case "x$archive_cmds_need_lc_CXX" in
 
11721
x|xyes)
 
11722
  # Assume -lc should be added
 
11723
  archive_cmds_need_lc_CXX=yes
 
11724
 
 
11725
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11726
    case $archive_cmds_CXX in
 
11727
    *'~'*)
 
11728
      # FIXME: we may have to deal with multi-command sequences.
 
11729
      ;;
 
11730
    '$CC '*)
 
11731
      # Test whether the compiler implicitly links with -lc since on some
 
11732
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11733
      # to ld, don't add -lc before -lgcc.
 
11734
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11735
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
11736
      $rm conftest*
 
11737
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11738
 
 
11739
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11740
  (eval $ac_compile) 2>&5
 
11741
  ac_status=$?
 
11742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11743
  (exit $ac_status); } 2>conftest.err; then
 
11744
        soname=conftest
 
11745
        lib=conftest
 
11746
        libobjs=conftest.$ac_objext
 
11747
        deplibs=
 
11748
        wl=$lt_prog_compiler_wl_CXX
 
11749
        pic_flag=$lt_prog_compiler_pic_CXX
 
11750
        compiler_flags=-v
 
11751
        linker_flags=-v
 
11752
        verstring=
 
11753
        output_objdir=.
 
11754
        libname=conftest
 
11755
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
11756
        allow_undefined_flag_CXX=
 
11757
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11758
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11759
  ac_status=$?
 
11760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11761
  (exit $ac_status); }
 
11762
        then
 
11763
          archive_cmds_need_lc_CXX=no
 
11764
        else
 
11765
          archive_cmds_need_lc_CXX=yes
 
11766
        fi
 
11767
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
11768
      else
 
11769
        cat conftest.err 1>&5
 
11770
      fi
 
11771
      $rm conftest*
 
11772
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
11773
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
11774
      ;;
 
11775
    esac
 
11776
  fi
 
11777
  ;;
 
11778
esac
 
11779
 
 
11780
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11781
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
11782
library_names_spec=
 
11783
libname_spec='lib$name'
 
11784
soname_spec=
 
11785
shrext_cmds=".so"
 
11786
postinstall_cmds=
 
11787
postuninstall_cmds=
 
11788
finish_cmds=
 
11789
finish_eval=
 
11790
shlibpath_var=
 
11791
shlibpath_overrides_runpath=unknown
 
11792
version_type=none
 
11793
dynamic_linker="$host_os ld.so"
 
11794
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11795
if test "$GCC" = yes; then
 
11796
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11797
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
11798
    # if the path contains ";" then we assume it to be the separator
 
11799
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11800
    # assumed that no part of a normal pathname contains ";" but that should
 
11801
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11802
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11803
  else
 
11804
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11805
  fi
 
11806
else
 
11807
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11808
fi
 
11809
need_lib_prefix=unknown
 
11810
hardcode_into_libs=no
 
11811
 
 
11812
# when you set need_version to no, make sure it does not cause -set_version
 
11813
# flags to be left without arguments
 
11814
need_version=unknown
 
11815
 
 
11816
case $host_os in
 
11817
aix3*)
 
11818
  version_type=linux
 
11819
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11820
  shlibpath_var=LIBPATH
 
11821
 
 
11822
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11823
  soname_spec='${libname}${release}${shared_ext}$major'
 
11824
  ;;
 
11825
 
 
11826
aix4* | aix5*)
 
11827
  version_type=linux
 
11828
  need_lib_prefix=no
 
11829
  need_version=no
 
11830
  hardcode_into_libs=yes
 
11831
  if test "$host_cpu" = ia64; then
 
11832
    # AIX 5 supports IA64
 
11833
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11834
    shlibpath_var=LD_LIBRARY_PATH
 
11835
  else
 
11836
    # With GCC up to 2.95.x, collect2 would create an import file
 
11837
    # for dependence libraries.  The import file would start with
 
11838
    # the line `#! .'.  This would cause the generated library to
 
11839
    # depend on `.', always an invalid library.  This was fixed in
 
11840
    # development snapshots of GCC prior to 3.0.
 
11841
    case $host_os in
 
11842
      aix4 | aix4.[01] | aix4.[01].*)
 
11843
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11844
           echo ' yes '
 
11845
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11846
        :
 
11847
      else
 
11848
        can_build_shared=no
 
11849
      fi
 
11850
      ;;
 
11851
    esac
 
11852
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11853
    # soname into executable. Probably we can add versioning support to
 
11854
    # collect2, so additional links can be useful in future.
 
11855
    if test "$aix_use_runtimelinking" = yes; then
 
11856
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11857
      # instead of lib<name>.a to let people know that these are not
 
11858
      # typical AIX shared libraries.
 
11859
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11860
    else
 
11861
      # We preserve .a as extension for shared libraries through AIX4.2
 
11862
      # and later when we are not doing run time linking.
 
11863
      library_names_spec='${libname}${release}.a $libname.a'
 
11864
      soname_spec='${libname}${release}${shared_ext}$major'
 
11865
    fi
 
11866
    shlibpath_var=LIBPATH
 
11867
  fi
 
11868
  ;;
 
11869
 
 
11870
amigaos*)
 
11871
  library_names_spec='$libname.ixlibrary $libname.a'
 
11872
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11873
  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'
 
11874
  ;;
 
11875
 
 
11876
beos*)
 
11877
  library_names_spec='${libname}${shared_ext}'
 
11878
  dynamic_linker="$host_os ld.so"
 
11879
  shlibpath_var=LIBRARY_PATH
 
11880
  ;;
 
11881
 
 
11882
bsdi[45]*)
 
11883
  version_type=linux
 
11884
  need_version=no
 
11885
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11886
  soname_spec='${libname}${release}${shared_ext}$major'
 
11887
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11888
  shlibpath_var=LD_LIBRARY_PATH
 
11889
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11890
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11891
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11892
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11893
  # libtool to hard-code these into programs
 
11894
  ;;
 
11895
 
 
11896
cygwin* | mingw* | pw32*)
 
11897
  version_type=windows
 
11898
  shrext_cmds=".dll"
 
11899
  need_version=no
 
11900
  need_lib_prefix=no
 
11901
 
 
11902
  case $GCC,$host_os in
 
11903
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11904
    library_names_spec='$libname.dll.a'
 
11905
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11906
    postinstall_cmds='base_file=`basename \${file}`~
 
11907
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11908
      dldir=$destdir/`dirname \$dlpath`~
 
11909
      test -d \$dldir || mkdir -p \$dldir~
 
11910
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11911
      chmod a+x \$dldir/$dlname'
 
11912
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11913
      dlpath=$dir/\$dldll~
 
11914
       $rm \$dlpath'
 
11915
    shlibpath_overrides_runpath=yes
 
11916
 
 
11917
    case $host_os in
 
11918
    cygwin*)
 
11919
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11920
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11921
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11922
      ;;
 
11923
    mingw*)
 
11924
      # MinGW DLLs use traditional 'lib' prefix
 
11925
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11926
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11927
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
11928
        # It is most probably a Windows format PATH printed by
 
11929
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11930
        # path with ; separators, and with drive letters. We can handle the
 
11931
        # drive letters (cygwin fileutils understands them), so leave them,
 
11932
        # especially as we might pass files found there to a mingw objdump,
 
11933
        # which wouldn't understand a cygwinified path. Ahh.
 
11934
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11935
      else
 
11936
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11937
      fi
 
11938
      ;;
 
11939
    pw32*)
 
11940
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11941
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11942
      ;;
 
11943
    esac
 
11944
    ;;
 
11945
 
 
11946
  *)
 
11947
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11948
    ;;
 
11949
  esac
 
11950
  dynamic_linker='Win32 ld.exe'
 
11951
  # FIXME: first we should search . and the directory the executable is in
 
11952
  shlibpath_var=PATH
 
11953
  ;;
 
11954
 
 
11955
darwin* | rhapsody*)
 
11956
  dynamic_linker="$host_os dyld"
 
11957
  version_type=darwin
 
11958
  need_lib_prefix=no
 
11959
  need_version=no
 
11960
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11961
  soname_spec='${libname}${release}${major}$shared_ext'
 
11962
  shlibpath_overrides_runpath=yes
 
11963
  shlibpath_var=DYLD_LIBRARY_PATH
 
11964
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
11965
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11966
  if test "$GCC" = yes; then
 
11967
    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"`
 
11968
  else
 
11969
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11970
  fi
 
11971
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11972
  ;;
 
11973
 
 
11974
dgux*)
 
11975
  version_type=linux
 
11976
  need_lib_prefix=no
 
11977
  need_version=no
 
11978
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11979
  soname_spec='${libname}${release}${shared_ext}$major'
 
11980
  shlibpath_var=LD_LIBRARY_PATH
 
11981
  ;;
 
11982
 
 
11983
freebsd1*)
 
11984
  dynamic_linker=no
 
11985
  ;;
 
11986
 
 
11987
kfreebsd*-gnu)
 
11988
  version_type=linux
 
11989
  need_lib_prefix=no
 
11990
  need_version=no
 
11991
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11992
  soname_spec='${libname}${release}${shared_ext}$major'
 
11993
  shlibpath_var=LD_LIBRARY_PATH
 
11994
  shlibpath_overrides_runpath=no
 
11995
  hardcode_into_libs=yes
 
11996
  dynamic_linker='GNU ld.so'
 
11997
  ;;
 
11998
 
 
11999
freebsd* | dragonfly*)
 
12000
  # DragonFly does not have aout.  When/if they implement a new
 
12001
  # versioning mechanism, adjust this.
 
12002
  if test -x /usr/bin/objformat; then
 
12003
    objformat=`/usr/bin/objformat`
 
12004
  else
 
12005
    case $host_os in
 
12006
    freebsd[123]*) objformat=aout ;;
 
12007
    *) objformat=elf ;;
 
12008
    esac
 
12009
  fi
 
12010
  version_type=freebsd-$objformat
 
12011
  case $version_type in
 
12012
    freebsd-elf*)
 
12013
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12014
      need_version=no
 
12015
      need_lib_prefix=no
 
12016
      ;;
 
12017
    freebsd-*)
 
12018
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12019
      need_version=yes
 
12020
      ;;
 
12021
  esac
 
12022
  shlibpath_var=LD_LIBRARY_PATH
 
12023
  case $host_os in
 
12024
  freebsd2*)
 
12025
    shlibpath_overrides_runpath=yes
 
12026
    ;;
 
12027
  freebsd3.[01]* | freebsdelf3.[01]*)
 
12028
    shlibpath_overrides_runpath=yes
 
12029
    hardcode_into_libs=yes
 
12030
    ;;
 
12031
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12032
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
12033
    shlibpath_overrides_runpath=no
 
12034
    hardcode_into_libs=yes
 
12035
    ;;
 
12036
  freebsd*) # from 4.6 on
 
12037
    shlibpath_overrides_runpath=yes
 
12038
    hardcode_into_libs=yes
 
12039
    ;;
 
12040
  esac
 
12041
  ;;
 
12042
 
 
12043
gnu*)
 
12044
  version_type=linux
 
12045
  need_lib_prefix=no
 
12046
  need_version=no
 
12047
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12048
  soname_spec='${libname}${release}${shared_ext}$major'
 
12049
  shlibpath_var=LD_LIBRARY_PATH
 
12050
  hardcode_into_libs=yes
 
12051
  ;;
 
12052
 
 
12053
hpux9* | hpux10* | hpux11*)
 
12054
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12055
  # link against other versions.
 
12056
  version_type=sunos
 
12057
  need_lib_prefix=no
 
12058
  need_version=no
 
12059
  case $host_cpu in
 
12060
  ia64*)
 
12061
    shrext_cmds='.so'
 
12062
    hardcode_into_libs=yes
 
12063
    dynamic_linker="$host_os dld.so"
 
12064
    shlibpath_var=LD_LIBRARY_PATH
 
12065
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12066
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12067
    soname_spec='${libname}${release}${shared_ext}$major'
 
12068
    if test "X$HPUX_IA64_MODE" = X32; then
 
12069
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12070
    else
 
12071
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12072
    fi
 
12073
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12074
    ;;
 
12075
   hppa*64*)
 
12076
     shrext_cmds='.sl'
 
12077
     hardcode_into_libs=yes
 
12078
     dynamic_linker="$host_os dld.sl"
 
12079
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12080
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12081
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12082
     soname_spec='${libname}${release}${shared_ext}$major'
 
12083
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12084
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12085
     ;;
 
12086
   *)
 
12087
    shrext_cmds='.sl'
 
12088
    dynamic_linker="$host_os dld.sl"
 
12089
    shlibpath_var=SHLIB_PATH
 
12090
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12091
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12092
    soname_spec='${libname}${release}${shared_ext}$major'
 
12093
    ;;
 
12094
  esac
 
12095
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12096
  postinstall_cmds='chmod 555 $lib'
 
12097
  ;;
 
12098
 
 
12099
interix3*)
 
12100
  version_type=linux
 
12101
  need_lib_prefix=no
 
12102
  need_version=no
 
12103
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12104
  soname_spec='${libname}${release}${shared_ext}$major'
 
12105
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
12106
  shlibpath_var=LD_LIBRARY_PATH
 
12107
  shlibpath_overrides_runpath=no
 
12108
  hardcode_into_libs=yes
 
12109
  ;;
 
12110
 
 
12111
irix5* | irix6* | nonstopux*)
 
12112
  case $host_os in
 
12113
    nonstopux*) version_type=nonstopux ;;
 
12114
    *)
 
12115
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12116
                version_type=linux
 
12117
        else
 
12118
                version_type=irix
 
12119
        fi ;;
 
12120
  esac
 
12121
  need_lib_prefix=no
 
12122
  need_version=no
 
12123
  soname_spec='${libname}${release}${shared_ext}$major'
 
12124
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12125
  case $host_os in
 
12126
  irix5* | nonstopux*)
 
12127
    libsuff= shlibsuff=
 
12128
    ;;
 
12129
  *)
 
12130
    case $LD in # libtool.m4 will add one of these switches to LD
 
12131
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12132
      libsuff= shlibsuff= libmagic=32-bit;;
 
12133
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12134
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12135
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12136
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12137
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12138
    esac
 
12139
    ;;
 
12140
  esac
 
12141
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12142
  shlibpath_overrides_runpath=no
 
12143
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12144
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12145
  hardcode_into_libs=yes
 
12146
  ;;
 
12147
 
 
12148
# No shared lib support for Linux oldld, aout, or coff.
 
12149
linux*oldld* | linux*aout* | linux*coff*)
 
12150
  dynamic_linker=no
 
12151
  ;;
 
12152
 
 
12153
# This must be Linux ELF.
 
12154
linux*)
 
12155
  version_type=linux
 
12156
  need_lib_prefix=no
 
12157
  need_version=no
 
12158
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12159
  soname_spec='${libname}${release}${shared_ext}$major'
 
12160
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12161
  shlibpath_var=LD_LIBRARY_PATH
 
12162
  shlibpath_overrides_runpath=no
 
12163
  # This implies no fast_install, which is unacceptable.
 
12164
  # Some rework will be needed to allow for fast_install
 
12165
  # before this can be enabled.
 
12166
  hardcode_into_libs=yes
 
12167
 
 
12168
  # find out which ABI we are using
 
12169
  libsuff=
 
12170
  case "$host_cpu" in
 
12171
  x86_64*|s390x*|powerpc64*)
 
12172
    echo '#line 12172 "configure"' > conftest.$ac_ext
 
12173
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12174
  (eval $ac_compile) 2>&5
 
12175
  ac_status=$?
 
12176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12177
  (exit $ac_status); }; then
 
12178
      case `/usr/bin/file conftest.$ac_objext` in
 
12179
      *64-bit*)
 
12180
        libsuff=64
 
12181
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
12182
        ;;
 
12183
      esac
 
12184
    fi
 
12185
    rm -rf conftest*
 
12186
    ;;
 
12187
  esac
 
12188
 
 
12189
  # Append ld.so.conf contents to the search path
 
12190
  if test -f /etc/ld.so.conf; then
 
12191
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
12192
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
12193
  fi
 
12194
 
 
12195
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12196
  # powerpc, because MkLinux only supported shared libraries with the
 
12197
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12198
  # most powerpc-linux boxes support dynamic linking these days and
 
12199
  # people can always --disable-shared, the test was removed, and we
 
12200
  # assume the GNU/Linux dynamic linker is in use.
 
12201
  dynamic_linker='GNU/Linux ld.so'
 
12202
  ;;
 
12203
 
 
12204
knetbsd*-gnu)
 
12205
  version_type=linux
 
12206
  need_lib_prefix=no
 
12207
  need_version=no
 
12208
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12209
  soname_spec='${libname}${release}${shared_ext}$major'
 
12210
  shlibpath_var=LD_LIBRARY_PATH
 
12211
  shlibpath_overrides_runpath=no
 
12212
  hardcode_into_libs=yes
 
12213
  dynamic_linker='GNU ld.so'
 
12214
  ;;
 
12215
 
 
12216
netbsd*)
 
12217
  version_type=sunos
 
12218
  need_lib_prefix=no
 
12219
  need_version=no
 
12220
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12221
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12222
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12223
    dynamic_linker='NetBSD (a.out) ld.so'
 
12224
  else
 
12225
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12226
    soname_spec='${libname}${release}${shared_ext}$major'
 
12227
    dynamic_linker='NetBSD ld.elf_so'
 
12228
  fi
 
12229
  shlibpath_var=LD_LIBRARY_PATH
 
12230
  shlibpath_overrides_runpath=yes
 
12231
  hardcode_into_libs=yes
 
12232
  ;;
 
12233
 
 
12234
newsos6)
 
12235
  version_type=linux
 
12236
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12237
  shlibpath_var=LD_LIBRARY_PATH
 
12238
  shlibpath_overrides_runpath=yes
 
12239
  ;;
 
12240
 
 
12241
nto-qnx*)
 
12242
  version_type=linux
 
12243
  need_lib_prefix=no
 
12244
  need_version=no
 
12245
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12246
  soname_spec='${libname}${release}${shared_ext}$major'
 
12247
  shlibpath_var=LD_LIBRARY_PATH
 
12248
  shlibpath_overrides_runpath=yes
 
12249
  ;;
 
12250
 
 
12251
openbsd*)
 
12252
  version_type=sunos
 
12253
  sys_lib_dlsearch_path_spec="/usr/lib"
 
12254
  need_lib_prefix=no
 
12255
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12256
  case $host_os in
 
12257
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12258
    *)                         need_version=no  ;;
 
12259
  esac
 
12260
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12261
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12262
  shlibpath_var=LD_LIBRARY_PATH
 
12263
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12264
    case $host_os in
 
12265
      openbsd2.[89] | openbsd2.[89].*)
 
12266
        shlibpath_overrides_runpath=no
 
12267
        ;;
 
12268
      *)
 
12269
        shlibpath_overrides_runpath=yes
 
12270
        ;;
 
12271
      esac
 
12272
  else
 
12273
    shlibpath_overrides_runpath=yes
 
12274
  fi
 
12275
  ;;
 
12276
 
 
12277
os2*)
 
12278
  libname_spec='$name'
 
12279
  shrext_cmds=".dll"
 
12280
  need_lib_prefix=no
 
12281
  library_names_spec='$libname${shared_ext} $libname.a'
 
12282
  dynamic_linker='OS/2 ld.exe'
 
12283
  shlibpath_var=LIBPATH
 
12284
  ;;
 
12285
 
 
12286
osf3* | osf4* | osf5*)
 
12287
  version_type=osf
 
12288
  need_lib_prefix=no
 
12289
  need_version=no
 
12290
  soname_spec='${libname}${release}${shared_ext}$major'
 
12291
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12292
  shlibpath_var=LD_LIBRARY_PATH
 
12293
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12294
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12295
  ;;
 
12296
 
 
12297
solaris*)
 
12298
  version_type=linux
 
12299
  need_lib_prefix=no
 
12300
  need_version=no
 
12301
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12302
  soname_spec='${libname}${release}${shared_ext}$major'
 
12303
  shlibpath_var=LD_LIBRARY_PATH
 
12304
  shlibpath_overrides_runpath=yes
 
12305
  hardcode_into_libs=yes
 
12306
  # ldd complains unless libraries are executable
 
12307
  postinstall_cmds='chmod +x $lib'
 
12308
  ;;
 
12309
 
 
12310
sunos4*)
 
12311
  version_type=sunos
 
12312
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12313
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12314
  shlibpath_var=LD_LIBRARY_PATH
 
12315
  shlibpath_overrides_runpath=yes
 
12316
  if test "$with_gnu_ld" = yes; then
 
12317
    need_lib_prefix=no
 
12318
  fi
 
12319
  need_version=yes
 
12320
  ;;
 
12321
 
 
12322
sysv4 | sysv4.3*)
 
12323
  version_type=linux
 
12324
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12325
  soname_spec='${libname}${release}${shared_ext}$major'
 
12326
  shlibpath_var=LD_LIBRARY_PATH
 
12327
  case $host_vendor in
 
12328
    sni)
 
12329
      shlibpath_overrides_runpath=no
 
12330
      need_lib_prefix=no
 
12331
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12332
      runpath_var=LD_RUN_PATH
 
12333
      ;;
 
12334
    siemens)
 
12335
      need_lib_prefix=no
 
12336
      ;;
 
12337
    motorola)
 
12338
      need_lib_prefix=no
 
12339
      need_version=no
 
12340
      shlibpath_overrides_runpath=no
 
12341
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12342
      ;;
 
12343
  esac
 
12344
  ;;
 
12345
 
 
12346
sysv4*MP*)
 
12347
  if test -d /usr/nec ;then
 
12348
    version_type=linux
 
12349
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12350
    soname_spec='$libname${shared_ext}.$major'
 
12351
    shlibpath_var=LD_LIBRARY_PATH
 
12352
  fi
 
12353
  ;;
 
12354
 
 
12355
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
12356
  version_type=freebsd-elf
 
12357
  need_lib_prefix=no
 
12358
  need_version=no
 
12359
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12360
  soname_spec='${libname}${release}${shared_ext}$major'
 
12361
  shlibpath_var=LD_LIBRARY_PATH
 
12362
  hardcode_into_libs=yes
 
12363
  if test "$with_gnu_ld" = yes; then
 
12364
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
12365
    shlibpath_overrides_runpath=no
 
12366
  else
 
12367
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
12368
    shlibpath_overrides_runpath=yes
 
12369
    case $host_os in
 
12370
      sco3.2v5*)
 
12371
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
12372
        ;;
 
12373
    esac
 
12374
  fi
 
12375
  sys_lib_dlsearch_path_spec='/usr/lib'
 
12376
  ;;
 
12377
 
 
12378
uts4*)
 
12379
  version_type=linux
 
12380
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12381
  soname_spec='${libname}${release}${shared_ext}$major'
 
12382
  shlibpath_var=LD_LIBRARY_PATH
 
12383
  ;;
 
12384
 
 
12385
*)
 
12386
  dynamic_linker=no
 
12387
  ;;
 
12388
esac
 
12389
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12390
echo "${ECHO_T}$dynamic_linker" >&6
 
12391
test "$dynamic_linker" = no && can_build_shared=no
 
12392
 
 
12393
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12394
if test "$GCC" = yes; then
 
12395
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12396
fi
 
12397
 
 
12398
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12399
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
12400
hardcode_action_CXX=
 
12401
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
12402
   test -n "$runpath_var_CXX" || \
 
12403
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
12404
 
 
12405
  # We can hardcode non-existant directories.
 
12406
  if test "$hardcode_direct_CXX" != no &&
 
12407
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12408
     # have to relink, otherwise we might link with an installed library
 
12409
     # when we should be linking with a yet-to-be-installed one
 
12410
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
12411
     test "$hardcode_minus_L_CXX" != no; then
 
12412
    # Linking always hardcodes the temporary library directory.
 
12413
    hardcode_action_CXX=relink
 
12414
  else
 
12415
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12416
    hardcode_action_CXX=immediate
 
12417
  fi
 
12418
else
 
12419
  # We cannot hardcode anything, or else we can only hardcode existing
 
12420
  # directories.
 
12421
  hardcode_action_CXX=unsupported
 
12422
fi
 
12423
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
12424
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
12425
 
 
12426
if test "$hardcode_action_CXX" = relink; then
 
12427
  # Fast installation is not supported
 
12428
  enable_fast_install=no
 
12429
elif test "$shlibpath_overrides_runpath" = yes ||
 
12430
     test "$enable_shared" = no; then
 
12431
  # Fast installation is not necessary
 
12432
  enable_fast_install=needless
 
12433
fi
 
12434
 
 
12435
 
 
12436
# The else clause should only fire when bootstrapping the
 
12437
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
12438
# with your package, and you will get complaints that there are
 
12439
# no rules to generate ltmain.sh.
 
12440
if test -f "$ltmain"; then
 
12441
  # See if we are running on zsh, and set the options which allow our commands through
 
12442
  # without removal of \ escapes.
 
12443
  if test -n "${ZSH_VERSION+set}" ; then
 
12444
    setopt NO_GLOB_SUBST
 
12445
  fi
 
12446
  # Now quote all the things that may contain metacharacters while being
 
12447
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
12448
  # variables and quote the copies for generation of the libtool script.
 
12449
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
12450
    SED SHELL STRIP \
 
12451
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
12452
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
12453
    deplibs_check_method reload_flag reload_cmds need_locks \
 
12454
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
12455
    lt_cv_sys_global_symbol_to_c_name_address \
 
12456
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
12457
    old_postinstall_cmds old_postuninstall_cmds \
 
12458
    compiler_CXX \
 
12459
    CC_CXX \
 
12460
    LD_CXX \
 
12461
    lt_prog_compiler_wl_CXX \
 
12462
    lt_prog_compiler_pic_CXX \
 
12463
    lt_prog_compiler_static_CXX \
 
12464
    lt_prog_compiler_no_builtin_flag_CXX \
 
12465
    export_dynamic_flag_spec_CXX \
 
12466
    thread_safe_flag_spec_CXX \
 
12467
    whole_archive_flag_spec_CXX \
 
12468
    enable_shared_with_static_runtimes_CXX \
 
12469
    old_archive_cmds_CXX \
 
12470
    old_archive_from_new_cmds_CXX \
 
12471
    predep_objects_CXX \
 
12472
    postdep_objects_CXX \
 
12473
    predeps_CXX \
 
12474
    postdeps_CXX \
 
12475
    compiler_lib_search_path_CXX \
 
12476
    archive_cmds_CXX \
 
12477
    archive_expsym_cmds_CXX \
 
12478
    postinstall_cmds_CXX \
 
12479
    postuninstall_cmds_CXX \
 
12480
    old_archive_from_expsyms_cmds_CXX \
 
12481
    allow_undefined_flag_CXX \
 
12482
    no_undefined_flag_CXX \
 
12483
    export_symbols_cmds_CXX \
 
12484
    hardcode_libdir_flag_spec_CXX \
 
12485
    hardcode_libdir_flag_spec_ld_CXX \
 
12486
    hardcode_libdir_separator_CXX \
 
12487
    hardcode_automatic_CXX \
 
12488
    module_cmds_CXX \
 
12489
    module_expsym_cmds_CXX \
 
12490
    lt_cv_prog_compiler_c_o_CXX \
 
12491
    exclude_expsyms_CXX \
 
12492
    include_expsyms_CXX; do
 
12493
 
 
12494
    case $var in
 
12495
    old_archive_cmds_CXX | \
 
12496
    old_archive_from_new_cmds_CXX | \
 
12497
    archive_cmds_CXX | \
 
12498
    archive_expsym_cmds_CXX | \
 
12499
    module_cmds_CXX | \
 
12500
    module_expsym_cmds_CXX | \
 
12501
    old_archive_from_expsyms_cmds_CXX | \
 
12502
    export_symbols_cmds_CXX | \
 
12503
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
12504
    postinstall_cmds | postuninstall_cmds | \
 
12505
    old_postinstall_cmds | old_postuninstall_cmds | \
 
12506
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
12507
      # Double-quote double-evaled strings.
 
12508
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
12509
      ;;
 
12510
    *)
 
12511
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
12512
      ;;
 
12513
    esac
 
12514
  done
 
12515
 
 
12516
  case $lt_echo in
 
12517
  *'\$0 --fallback-echo"')
 
12518
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
12519
    ;;
 
12520
  esac
 
12521
 
 
12522
cfgfile="$ofile"
 
12523
 
 
12524
  cat <<__EOF__ >> "$cfgfile"
 
12525
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
12526
 
 
12527
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12528
 
 
12529
# Shell to use when invoking shell scripts.
 
12530
SHELL=$lt_SHELL
 
12531
 
 
12532
# Whether or not to build shared libraries.
 
12533
build_libtool_libs=$enable_shared
 
12534
 
 
12535
# Whether or not to build static libraries.
 
12536
build_old_libs=$enable_static
 
12537
 
 
12538
# Whether or not to add -lc for building shared libraries.
 
12539
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
12540
 
 
12541
# Whether or not to disallow shared libs when runtime libs are static
 
12542
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
12543
 
 
12544
# Whether or not to optimize for fast installation.
 
12545
fast_install=$enable_fast_install
 
12546
 
 
12547
# The host system.
 
12548
host_alias=$host_alias
 
12549
host=$host
 
12550
host_os=$host_os
 
12551
 
 
12552
# The build system.
 
12553
build_alias=$build_alias
 
12554
build=$build
 
12555
build_os=$build_os
 
12556
 
 
12557
# An echo program that does not interpret backslashes.
 
12558
echo=$lt_echo
 
12559
 
 
12560
# The archiver.
 
12561
AR=$lt_AR
 
12562
AR_FLAGS=$lt_AR_FLAGS
 
12563
 
 
12564
# A C compiler.
 
12565
LTCC=$lt_LTCC
 
12566
 
 
12567
# LTCC compiler flags.
 
12568
LTCFLAGS=$lt_LTCFLAGS
 
12569
 
 
12570
# A language-specific compiler.
 
12571
CC=$lt_compiler_CXX
 
12572
 
 
12573
# Is the compiler the GNU C compiler?
 
12574
with_gcc=$GCC_CXX
 
12575
 
 
12576
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
12577
gcc_ver=\`gcc -dumpversion\`
 
12578
 
 
12579
# An ERE matcher.
 
12580
EGREP=$lt_EGREP
 
12581
 
 
12582
# The linker used to build libraries.
 
12583
LD=$lt_LD_CXX
 
12584
 
 
12585
# Whether we need hard or soft links.
 
12586
LN_S=$lt_LN_S
 
12587
 
 
12588
# A BSD-compatible nm program.
 
12589
NM=$lt_NM
 
12590
 
 
12591
# A symbol stripping program
 
12592
STRIP=$lt_STRIP
 
12593
 
 
12594
# Used to examine libraries when file_magic_cmd begins "file"
 
12595
MAGIC_CMD=$MAGIC_CMD
 
12596
 
 
12597
# Used on cygwin: DLL creation program.
 
12598
DLLTOOL="$DLLTOOL"
 
12599
 
 
12600
# Used on cygwin: object dumper.
 
12601
OBJDUMP="$OBJDUMP"
 
12602
 
 
12603
# Used on cygwin: assembler.
 
12604
AS="$AS"
 
12605
 
 
12606
# The name of the directory that contains temporary libtool files.
 
12607
objdir=$objdir
 
12608
 
 
12609
# How to create reloadable object files.
 
12610
reload_flag=$lt_reload_flag
 
12611
reload_cmds=$lt_reload_cmds
 
12612
 
 
12613
# How to pass a linker flag through the compiler.
 
12614
wl=$lt_lt_prog_compiler_wl_CXX
 
12615
 
 
12616
# Object file suffix (normally "o").
 
12617
objext="$ac_objext"
 
12618
 
 
12619
# Old archive suffix (normally "a").
 
12620
libext="$libext"
 
12621
 
 
12622
# Shared library suffix (normally ".so").
 
12623
shrext_cmds='$shrext_cmds'
 
12624
 
 
12625
# Executable file suffix (normally "").
 
12626
exeext="$exeext"
 
12627
 
 
12628
# Additional compiler flags for building library objects.
 
12629
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
12630
pic_mode=$pic_mode
 
12631
 
 
12632
# What is the maximum length of a command?
 
12633
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12634
 
 
12635
# Does compiler simultaneously support -c and -o options?
 
12636
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
12637
 
 
12638
# Must we lock files when doing compilation?
 
12639
need_locks=$lt_need_locks
 
12640
 
 
12641
# Do we need the lib prefix for modules?
 
12642
need_lib_prefix=$need_lib_prefix
 
12643
 
 
12644
# Do we need a version for libraries?
 
12645
need_version=$need_version
 
12646
 
 
12647
# Whether dlopen is supported.
 
12648
dlopen_support=$enable_dlopen
 
12649
 
 
12650
# Whether dlopen of programs is supported.
 
12651
dlopen_self=$enable_dlopen_self
 
12652
 
 
12653
# Whether dlopen of statically linked programs is supported.
 
12654
dlopen_self_static=$enable_dlopen_self_static
 
12655
 
 
12656
# Compiler flag to prevent dynamic linking.
 
12657
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
12658
 
 
12659
# Compiler flag to turn off builtin functions.
 
12660
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
12661
 
 
12662
# Compiler flag to allow reflexive dlopens.
 
12663
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
12664
 
 
12665
# Compiler flag to generate shared objects directly from archives.
 
12666
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
12667
 
 
12668
# Compiler flag to generate thread-safe objects.
 
12669
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
12670
 
 
12671
# Library versioning type.
 
12672
version_type=$version_type
 
12673
 
 
12674
# Format of library name prefix.
 
12675
libname_spec=$lt_libname_spec
 
12676
 
 
12677
# List of archive names.  First name is the real one, the rest are links.
 
12678
# The last name is the one that the linker finds with -lNAME.
 
12679
library_names_spec=$lt_library_names_spec
 
12680
 
 
12681
# The coded name of the library, if different from the real name.
 
12682
soname_spec=$lt_soname_spec
 
12683
 
 
12684
# Commands used to build and install an old-style archive.
 
12685
RANLIB=$lt_RANLIB
 
12686
old_archive_cmds=$lt_old_archive_cmds_CXX
 
12687
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12688
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12689
 
 
12690
# Create an old-style archive from a shared archive.
 
12691
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
12692
 
 
12693
# Create a temporary old-style archive to link instead of a shared archive.
 
12694
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
12695
 
 
12696
# Commands used to build and install a shared archive.
 
12697
archive_cmds=$lt_archive_cmds_CXX
 
12698
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
12699
postinstall_cmds=$lt_postinstall_cmds
 
12700
postuninstall_cmds=$lt_postuninstall_cmds
 
12701
 
 
12702
# Commands used to build a loadable module (assumed same as above if empty)
 
12703
module_cmds=$lt_module_cmds_CXX
 
12704
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
12705
 
 
12706
# Commands to strip libraries.
 
12707
old_striplib=$lt_old_striplib
 
12708
striplib=$lt_striplib
 
12709
 
 
12710
# Dependencies to place before the objects being linked to create a
 
12711
# shared library.
 
12712
predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
12713
 
 
12714
# Dependencies to place after the objects being linked to create a
 
12715
# shared library.
 
12716
postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
12717
 
 
12718
# Dependencies to place before the objects being linked to create a
 
12719
# shared library.
 
12720
predeps=$lt_predeps_CXX
 
12721
 
 
12722
# Dependencies to place after the objects being linked to create a
 
12723
# shared library.
 
12724
postdeps=$lt_postdeps_CXX
 
12725
 
 
12726
# The library search path used internally by the compiler when linking
 
12727
# a shared library.
 
12728
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
12729
 
 
12730
# Method to check whether dependent libraries are shared objects.
 
12731
deplibs_check_method=$lt_deplibs_check_method
 
12732
 
 
12733
# Command to use when deplibs_check_method == file_magic.
 
12734
file_magic_cmd=$lt_file_magic_cmd
 
12735
 
 
12736
# Flag that allows shared libraries with undefined symbols to be built.
 
12737
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
12738
 
 
12739
# Flag that forces no undefined symbols.
 
12740
no_undefined_flag=$lt_no_undefined_flag_CXX
 
12741
 
 
12742
# Commands used to finish a libtool library installation in a directory.
 
12743
finish_cmds=$lt_finish_cmds
 
12744
 
 
12745
# Same as above, but a single script fragment to be evaled but not shown.
 
12746
finish_eval=$lt_finish_eval
 
12747
 
 
12748
# Take the output of nm and produce a listing of raw symbols and C names.
 
12749
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12750
 
 
12751
# Transform the output of nm in a proper C declaration
 
12752
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12753
 
 
12754
# Transform the output of nm in a C name address pair
 
12755
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12756
 
 
12757
# This is the shared library runtime path variable.
 
12758
runpath_var=$runpath_var
 
12759
 
 
12760
# This is the shared library path variable.
 
12761
shlibpath_var=$shlibpath_var
 
12762
 
 
12763
# Is shlibpath searched before the hard-coded library search path?
 
12764
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12765
 
 
12766
# How to hardcode a shared library path into an executable.
 
12767
hardcode_action=$hardcode_action_CXX
 
12768
 
 
12769
# Whether we should hardcode library paths into libraries.
 
12770
hardcode_into_libs=$hardcode_into_libs
 
12771
 
 
12772
# Flag to hardcode \$libdir into a binary during linking.
 
12773
# This must work even if \$libdir does not exist.
 
12774
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
12775
 
 
12776
# If ld is used when linking, flag to hardcode \$libdir into
 
12777
# a binary during linking. This must work even if \$libdir does
 
12778
# not exist.
 
12779
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
12780
 
 
12781
# Whether we need a single -rpath flag with a separated argument.
 
12782
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
12783
 
 
12784
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
12785
# resulting binary.
 
12786
hardcode_direct=$hardcode_direct_CXX
 
12787
 
 
12788
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
12789
# resulting binary.
 
12790
hardcode_minus_L=$hardcode_minus_L_CXX
 
12791
 
 
12792
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
12793
# the resulting binary.
 
12794
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
12795
 
 
12796
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
12797
# and all subsequent libraries and executables linked against it.
 
12798
hardcode_automatic=$hardcode_automatic_CXX
 
12799
 
 
12800
# Variables whose values should be saved in libtool wrapper scripts and
 
12801
# restored at relink time.
 
12802
variables_saved_for_relink="$variables_saved_for_relink"
 
12803
 
 
12804
# Whether libtool must link a program against all its dependency libraries.
 
12805
link_all_deplibs=$link_all_deplibs_CXX
 
12806
 
 
12807
# Compile-time system search path for libraries
 
12808
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
12809
 
 
12810
# Run-time system search path for libraries
 
12811
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
12812
 
 
12813
# Fix the shell variable \$srcfile for the compiler.
 
12814
fix_srcfile_path="$fix_srcfile_path_CXX"
 
12815
 
 
12816
# Set to yes if exported symbols are required.
 
12817
always_export_symbols=$always_export_symbols_CXX
 
12818
 
 
12819
# The commands to list exported symbols.
 
12820
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
12821
 
 
12822
# The commands to extract the exported symbol list from a shared archive.
 
12823
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
12824
 
 
12825
# Symbols that should not be listed in the preloaded symbols.
 
12826
exclude_expsyms=$lt_exclude_expsyms_CXX
 
12827
 
 
12828
# Symbols that must always be exported.
 
12829
include_expsyms=$lt_include_expsyms_CXX
 
12830
 
 
12831
# ### END LIBTOOL TAG CONFIG: $tagname
 
12832
 
 
12833
__EOF__
 
12834
 
 
12835
 
 
12836
else
 
12837
  # If there is no Makefile yet, we rely on a make rule to execute
 
12838
  # `config.status --recheck' to rerun these tests and create the
 
12839
  # libtool script then.
 
12840
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
12841
  if test -f "$ltmain_in"; then
 
12842
    test -f Makefile && make "$ltmain"
 
12843
  fi
 
12844
fi
 
12845
 
 
12846
 
 
12847
ac_ext=c
 
12848
ac_cpp='$CPP $CPPFLAGS'
 
12849
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12850
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12851
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12852
 
 
12853
CC=$lt_save_CC
 
12854
LDCXX=$LD
 
12855
LD=$lt_save_LD
 
12856
GCC=$lt_save_GCC
 
12857
with_gnu_ldcxx=$with_gnu_ld
 
12858
with_gnu_ld=$lt_save_with_gnu_ld
 
12859
lt_cv_path_LDCXX=$lt_cv_path_LD
 
12860
lt_cv_path_LD=$lt_save_path_LD
 
12861
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
12862
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
12863
 
 
12864
        else
 
12865
          tagname=""
 
12866
        fi
 
12867
        ;;
 
12868
 
 
12869
      F77)
 
12870
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
12871
 
 
12872
ac_ext=f
 
12873
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
12874
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12875
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
12876
 
 
12877
 
 
12878
archive_cmds_need_lc_F77=no
 
12879
allow_undefined_flag_F77=
 
12880
always_export_symbols_F77=no
 
12881
archive_expsym_cmds_F77=
 
12882
export_dynamic_flag_spec_F77=
 
12883
hardcode_direct_F77=no
 
12884
hardcode_libdir_flag_spec_F77=
 
12885
hardcode_libdir_flag_spec_ld_F77=
 
12886
hardcode_libdir_separator_F77=
 
12887
hardcode_minus_L_F77=no
 
12888
hardcode_automatic_F77=no
 
12889
module_cmds_F77=
 
12890
module_expsym_cmds_F77=
 
12891
link_all_deplibs_F77=unknown
 
12892
old_archive_cmds_F77=$old_archive_cmds
 
12893
no_undefined_flag_F77=
 
12894
whole_archive_flag_spec_F77=
 
12895
enable_shared_with_static_runtimes_F77=no
 
12896
 
 
12897
# Source file extension for f77 test sources.
 
12898
ac_ext=f
 
12899
 
 
12900
# Object file extension for compiled f77 test sources.
 
12901
objext=o
 
12902
objext_F77=$objext
 
12903
 
 
12904
# Code to be used in simple compile tests
 
12905
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
12906
 
 
12907
# Code to be used in simple link tests
 
12908
lt_simple_link_test_code="      program t\n      end\n"
 
12909
 
 
12910
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12911
 
 
12912
# If no C compiler was specified, use CC.
 
12913
LTCC=${LTCC-"$CC"}
 
12914
 
 
12915
# If no C compiler flags were specified, use CFLAGS.
 
12916
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
12917
 
 
12918
# Allow CC to be a program name with arguments.
 
12919
compiler=$CC
 
12920
 
 
12921
 
 
12922
# save warnings/boilerplate of simple test code
 
12923
ac_outfile=conftest.$ac_objext
 
12924
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12925
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12926
_lt_compiler_boilerplate=`cat conftest.err`
 
12927
$rm conftest*
 
12928
 
 
12929
ac_outfile=conftest.$ac_objext
 
12930
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
12931
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12932
_lt_linker_boilerplate=`cat conftest.err`
 
12933
$rm conftest*
 
12934
 
 
12935
 
 
12936
# Allow CC to be a program name with arguments.
 
12937
lt_save_CC="$CC"
 
12938
CC=${F77-"f77"}
 
12939
compiler=$CC
 
12940
compiler_F77=$CC
 
12941
for cc_temp in $compiler""; do
 
12942
  case $cc_temp in
 
12943
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12944
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12945
    \-*) ;;
 
12946
    *) break;;
 
12947
  esac
 
12948
done
 
12949
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
12950
 
 
12951
 
 
12952
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
12953
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
12954
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
12955
echo "${ECHO_T}$can_build_shared" >&6
 
12956
 
 
12957
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
12958
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
12959
test "$can_build_shared" = "no" && enable_shared=no
 
12960
 
 
12961
# On AIX, shared libraries and static libraries use the same namespace, and
 
12962
# are all built from PIC.
 
12963
case $host_os in
 
12964
aix3*)
 
12965
  test "$enable_shared" = yes && enable_static=no
 
12966
  if test -n "$RANLIB"; then
 
12967
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12968
    postinstall_cmds='$RANLIB $lib'
 
12969
  fi
 
12970
  ;;
 
12971
aix4* | aix5*)
 
12972
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12973
    test "$enable_shared" = yes && enable_static=no
 
12974
  fi
 
12975
  ;;
 
12976
esac
 
12977
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
12978
echo "${ECHO_T}$enable_shared" >&6
 
12979
 
 
12980
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
12981
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
12982
# Make sure either enable_shared or enable_static is yes.
 
12983
test "$enable_shared" = yes || enable_static=yes
 
12984
echo "$as_me:$LINENO: result: $enable_static" >&5
 
12985
echo "${ECHO_T}$enable_static" >&6
 
12986
 
 
12987
GCC_F77="$G77"
 
12988
LD_F77="$LD"
 
12989
 
 
12990
lt_prog_compiler_wl_F77=
 
12991
lt_prog_compiler_pic_F77=
 
12992
lt_prog_compiler_static_F77=
 
12993
 
 
12994
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12995
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
12996
 
 
12997
  if test "$GCC" = yes; then
 
12998
    lt_prog_compiler_wl_F77='-Wl,'
 
12999
    lt_prog_compiler_static_F77='-static'
 
13000
 
 
13001
    case $host_os in
 
13002
      aix*)
 
13003
      # All AIX code is PIC.
 
13004
      if test "$host_cpu" = ia64; then
 
13005
        # AIX 5 now supports IA64 processor
 
13006
        lt_prog_compiler_static_F77='-Bstatic'
 
13007
      fi
 
13008
      ;;
 
13009
 
 
13010
    amigaos*)
 
13011
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13012
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13013
      # like `-m68040'.
 
13014
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13015
      ;;
 
13016
 
 
13017
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13018
      # PIC is the default for these OSes.
 
13019
      ;;
 
13020
 
 
13021
    mingw* | pw32* | os2*)
 
13022
      # This hack is so that the source file can tell whether it is being
 
13023
      # built for inclusion in a dll (and should export symbols for example).
 
13024
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13025
      ;;
 
13026
 
 
13027
    darwin* | rhapsody*)
 
13028
      # PIC is the default on this platform
 
13029
      # Common symbols not allowed in MH_DYLIB files
 
13030
      lt_prog_compiler_pic_F77='-fno-common'
 
13031
      ;;
 
13032
 
 
13033
    interix3*)
 
13034
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13035
      # Instead, we relocate shared libraries at runtime.
 
13036
      ;;
 
13037
 
 
13038
    msdosdjgpp*)
 
13039
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13040
      # on systems that don't support them.
 
13041
      lt_prog_compiler_can_build_shared_F77=no
 
13042
      enable_shared=no
 
13043
      ;;
 
13044
 
 
13045
    sysv4*MP*)
 
13046
      if test -d /usr/nec; then
 
13047
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13048
      fi
 
13049
      ;;
 
13050
 
 
13051
    hpux*)
 
13052
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13053
      # not for PA HP-UX.
 
13054
      case $host_cpu in
 
13055
      hppa*64*|ia64*)
 
13056
        # +Z the default
 
13057
        ;;
 
13058
      *)
 
13059
        lt_prog_compiler_pic_F77='-fPIC'
 
13060
        ;;
 
13061
      esac
 
13062
      ;;
 
13063
 
 
13064
    *)
 
13065
      lt_prog_compiler_pic_F77='-fPIC'
 
13066
      ;;
 
13067
    esac
 
13068
  else
 
13069
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13070
    case $host_os in
 
13071
    aix*)
 
13072
      lt_prog_compiler_wl_F77='-Wl,'
 
13073
      if test "$host_cpu" = ia64; then
 
13074
        # AIX 5 now supports IA64 processor
 
13075
        lt_prog_compiler_static_F77='-Bstatic'
 
13076
      else
 
13077
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13078
      fi
 
13079
      ;;
 
13080
      darwin*)
 
13081
        # PIC is the default on this platform
 
13082
        # Common symbols not allowed in MH_DYLIB files
 
13083
       case $cc_basename in
 
13084
         xlc*)
 
13085
         lt_prog_compiler_pic_F77='-qnocommon'
 
13086
         lt_prog_compiler_wl_F77='-Wl,'
 
13087
         ;;
 
13088
       esac
 
13089
       ;;
 
13090
 
 
13091
    mingw* | pw32* | os2*)
 
13092
      # This hack is so that the source file can tell whether it is being
 
13093
      # built for inclusion in a dll (and should export symbols for example).
 
13094
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13095
      ;;
 
13096
 
 
13097
    hpux9* | hpux10* | hpux11*)
 
13098
      lt_prog_compiler_wl_F77='-Wl,'
 
13099
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13100
      # not for PA HP-UX.
 
13101
      case $host_cpu in
 
13102
      hppa*64*|ia64*)
 
13103
        # +Z the default
 
13104
        ;;
 
13105
      *)
 
13106
        lt_prog_compiler_pic_F77='+Z'
 
13107
        ;;
 
13108
      esac
 
13109
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13110
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13111
      ;;
 
13112
 
 
13113
    irix5* | irix6* | nonstopux*)
 
13114
      lt_prog_compiler_wl_F77='-Wl,'
 
13115
      # PIC (with -KPIC) is the default.
 
13116
      lt_prog_compiler_static_F77='-non_shared'
 
13117
      ;;
 
13118
 
 
13119
    newsos6)
 
13120
      lt_prog_compiler_pic_F77='-KPIC'
 
13121
      lt_prog_compiler_static_F77='-Bstatic'
 
13122
      ;;
 
13123
 
 
13124
    linux*)
 
13125
      case $cc_basename in
 
13126
      icc* | ecc*)
 
13127
        lt_prog_compiler_wl_F77='-Wl,'
 
13128
        lt_prog_compiler_pic_F77='-KPIC'
 
13129
        lt_prog_compiler_static_F77='-static'
 
13130
        ;;
 
13131
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13132
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13133
        # which looks to be a dead project)
 
13134
        lt_prog_compiler_wl_F77='-Wl,'
 
13135
        lt_prog_compiler_pic_F77='-fpic'
 
13136
        lt_prog_compiler_static_F77='-Bstatic'
 
13137
        ;;
 
13138
      ccc*)
 
13139
        lt_prog_compiler_wl_F77='-Wl,'
 
13140
        # All Alpha code is PIC.
 
13141
        lt_prog_compiler_static_F77='-non_shared'
 
13142
        ;;
 
13143
      esac
 
13144
      ;;
 
13145
 
 
13146
    osf3* | osf4* | osf5*)
 
13147
      lt_prog_compiler_wl_F77='-Wl,'
 
13148
      # All OSF/1 code is PIC.
 
13149
      lt_prog_compiler_static_F77='-non_shared'
 
13150
      ;;
 
13151
 
 
13152
    solaris*)
 
13153
      lt_prog_compiler_pic_F77='-KPIC'
 
13154
      lt_prog_compiler_static_F77='-Bstatic'
 
13155
      case $cc_basename in
 
13156
      f77* | f90* | f95*)
 
13157
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13158
      *)
 
13159
        lt_prog_compiler_wl_F77='-Wl,';;
 
13160
      esac
 
13161
      ;;
 
13162
 
 
13163
    sunos4*)
 
13164
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13165
      lt_prog_compiler_pic_F77='-PIC'
 
13166
      lt_prog_compiler_static_F77='-Bstatic'
 
13167
      ;;
 
13168
 
 
13169
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
13170
      lt_prog_compiler_wl_F77='-Wl,'
 
13171
      lt_prog_compiler_pic_F77='-KPIC'
 
13172
      lt_prog_compiler_static_F77='-Bstatic'
 
13173
      ;;
 
13174
 
 
13175
    sysv4*MP*)
 
13176
      if test -d /usr/nec ;then
 
13177
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13178
        lt_prog_compiler_static_F77='-Bstatic'
 
13179
      fi
 
13180
      ;;
 
13181
 
 
13182
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13183
      lt_prog_compiler_wl_F77='-Wl,'
 
13184
      lt_prog_compiler_pic_F77='-KPIC'
 
13185
      lt_prog_compiler_static_F77='-Bstatic'
 
13186
      ;;
 
13187
 
 
13188
    unicos*)
 
13189
      lt_prog_compiler_wl_F77='-Wl,'
 
13190
      lt_prog_compiler_can_build_shared_F77=no
 
13191
      ;;
 
13192
 
 
13193
    uts4*)
 
13194
      lt_prog_compiler_pic_F77='-pic'
 
13195
      lt_prog_compiler_static_F77='-Bstatic'
 
13196
      ;;
 
13197
 
 
13198
    *)
 
13199
      lt_prog_compiler_can_build_shared_F77=no
 
13200
      ;;
 
13201
    esac
 
13202
  fi
 
13203
 
 
13204
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13205
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13206
 
 
13207
#
 
13208
# Check to make sure the PIC flag actually works.
 
13209
#
 
13210
if test -n "$lt_prog_compiler_pic_F77"; then
 
13211
 
 
13212
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13213
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13214
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13215
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13216
else
 
13217
  lt_prog_compiler_pic_works_F77=no
 
13218
  ac_outfile=conftest.$ac_objext
 
13219
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13220
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13221
   # Insert the option either (1) after the last *FLAGS variable, or
 
13222
   # (2) before a word containing "conftest.", or (3) at the end.
 
13223
   # Note that $ac_compile itself does not contain backslashes and begins
 
13224
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13225
   # The option is referenced via a variable to avoid confusing sed.
 
13226
   lt_compile=`echo "$ac_compile" | $SED \
 
13227
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13228
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13229
   -e 's:$: $lt_compiler_flag:'`
 
13230
   (eval echo "\"\$as_me:13230: $lt_compile\"" >&5)
 
13231
   (eval "$lt_compile" 2>conftest.err)
 
13232
   ac_status=$?
 
13233
   cat conftest.err >&5
 
13234
   echo "$as_me:13234: \$? = $ac_status" >&5
 
13235
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13236
     # The compiler can only warn and ignore the option if not recognized
 
13237
     # So say no if there are warnings other than the usual output.
 
13238
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13239
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13240
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13241
       lt_prog_compiler_pic_works_F77=yes
 
13242
     fi
 
13243
   fi
 
13244
   $rm conftest*
 
13245
 
 
13246
fi
 
13247
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13248
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13249
 
 
13250
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13251
    case $lt_prog_compiler_pic_F77 in
 
13252
     "" | " "*) ;;
 
13253
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13254
     esac
 
13255
else
 
13256
    lt_prog_compiler_pic_F77=
 
13257
     lt_prog_compiler_can_build_shared_F77=no
 
13258
fi
 
13259
 
 
13260
fi
 
13261
case $host_os in
 
13262
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13263
  *djgpp*)
 
13264
    lt_prog_compiler_pic_F77=
 
13265
    ;;
 
13266
  *)
 
13267
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13268
    ;;
 
13269
esac
 
13270
 
 
13271
#
 
13272
# Check to make sure the static flag actually works.
 
13273
#
 
13274
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
13275
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13276
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
13277
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
13278
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13279
else
 
13280
  lt_prog_compiler_static_works_F77=no
 
13281
   save_LDFLAGS="$LDFLAGS"
 
13282
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13283
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13284
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13285
     # The linker can only warn and ignore the option if not recognized
 
13286
     # So say no if there are warnings
 
13287
     if test -s conftest.err; then
 
13288
       # Append any errors to the config.log.
 
13289
       cat conftest.err 1>&5
 
13290
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13291
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13292
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13293
         lt_prog_compiler_static_works_F77=yes
 
13294
       fi
 
13295
     else
 
13296
       lt_prog_compiler_static_works_F77=yes
 
13297
     fi
 
13298
   fi
 
13299
   $rm conftest*
 
13300
   LDFLAGS="$save_LDFLAGS"
 
13301
 
 
13302
fi
 
13303
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
13304
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
 
13305
 
 
13306
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
13307
    :
 
13308
else
 
13309
    lt_prog_compiler_static_F77=
 
13310
fi
 
13311
 
 
13312
 
 
13313
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13314
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13315
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13316
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13317
else
 
13318
  lt_cv_prog_compiler_c_o_F77=no
 
13319
   $rm -r conftest 2>/dev/null
 
13320
   mkdir conftest
 
13321
   cd conftest
 
13322
   mkdir out
 
13323
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13324
 
 
13325
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13326
   # Insert the option either (1) after the last *FLAGS variable, or
 
13327
   # (2) before a word containing "conftest.", or (3) at the end.
 
13328
   # Note that $ac_compile itself does not contain backslashes and begins
 
13329
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13330
   lt_compile=`echo "$ac_compile" | $SED \
 
13331
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13332
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13333
   -e 's:$: $lt_compiler_flag:'`
 
13334
   (eval echo "\"\$as_me:13334: $lt_compile\"" >&5)
 
13335
   (eval "$lt_compile" 2>out/conftest.err)
 
13336
   ac_status=$?
 
13337
   cat out/conftest.err >&5
 
13338
   echo "$as_me:13338: \$? = $ac_status" >&5
 
13339
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13340
   then
 
13341
     # The compiler can only warn and ignore the option if not recognized
 
13342
     # So say no if there are warnings
 
13343
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13344
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13345
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13346
       lt_cv_prog_compiler_c_o_F77=yes
 
13347
     fi
 
13348
   fi
 
13349
   chmod u+w . 2>&5
 
13350
   $rm conftest*
 
13351
   # SGI C++ compiler will create directory out/ii_files/ for
 
13352
   # template instantiation
 
13353
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13354
   $rm out/* && rmdir out
 
13355
   cd ..
 
13356
   rmdir conftest
 
13357
   $rm conftest*
 
13358
 
 
13359
fi
 
13360
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13361
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13362
 
 
13363
 
 
13364
hard_links="nottested"
 
13365
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13366
  # do not overwrite the value of need_locks provided by the user
 
13367
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13368
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13369
  hard_links=yes
 
13370
  $rm conftest*
 
13371
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13372
  touch conftest.a
 
13373
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13374
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13375
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13376
echo "${ECHO_T}$hard_links" >&6
 
13377
  if test "$hard_links" = no; then
 
13378
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13379
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13380
    need_locks=warn
 
13381
  fi
 
13382
else
 
13383
  need_locks=no
 
13384
fi
 
13385
 
 
13386
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13387
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13388
 
 
13389
  runpath_var=
 
13390
  allow_undefined_flag_F77=
 
13391
  enable_shared_with_static_runtimes_F77=no
 
13392
  archive_cmds_F77=
 
13393
  archive_expsym_cmds_F77=
 
13394
  old_archive_From_new_cmds_F77=
 
13395
  old_archive_from_expsyms_cmds_F77=
 
13396
  export_dynamic_flag_spec_F77=
 
13397
  whole_archive_flag_spec_F77=
 
13398
  thread_safe_flag_spec_F77=
 
13399
  hardcode_libdir_flag_spec_F77=
 
13400
  hardcode_libdir_flag_spec_ld_F77=
 
13401
  hardcode_libdir_separator_F77=
 
13402
  hardcode_direct_F77=no
 
13403
  hardcode_minus_L_F77=no
 
13404
  hardcode_shlibpath_var_F77=unsupported
 
13405
  link_all_deplibs_F77=unknown
 
13406
  hardcode_automatic_F77=no
 
13407
  module_cmds_F77=
 
13408
  module_expsym_cmds_F77=
 
13409
  always_export_symbols_F77=no
 
13410
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13411
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13412
  # included in the symbol list
 
13413
  include_expsyms_F77=
 
13414
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13415
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13416
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13417
  # as well as any symbol that contains `d'.
 
13418
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13419
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13420
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13421
  # the symbol is explicitly referenced.  Since portable code cannot
 
13422
  # rely on this symbol name, it's probably fine to never include it in
 
13423
  # preloaded symbol tables.
 
13424
  extract_expsyms_cmds=
 
13425
  # Just being paranoid about ensuring that cc_basename is set.
 
13426
  for cc_temp in $compiler""; do
 
13427
  case $cc_temp in
 
13428
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13429
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13430
    \-*) ;;
 
13431
    *) break;;
 
13432
  esac
 
13433
done
 
13434
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13435
 
 
13436
  case $host_os in
 
13437
  cygwin* | mingw* | pw32*)
 
13438
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13439
    # When not using gcc, we currently assume that we are using
 
13440
    # Microsoft Visual C++.
 
13441
    if test "$GCC" != yes; then
 
13442
      with_gnu_ld=no
 
13443
    fi
 
13444
    ;;
 
13445
  interix*)
 
13446
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
13447
    with_gnu_ld=yes
 
13448
    ;;
 
13449
  openbsd*)
 
13450
    with_gnu_ld=no
 
13451
    ;;
 
13452
  esac
 
13453
 
 
13454
  ld_shlibs_F77=yes
 
13455
  if test "$with_gnu_ld" = yes; then
 
13456
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13457
    wlarc='${wl}'
 
13458
 
 
13459
    # Set some defaults for GNU ld with shared library support. These
 
13460
    # are reset later if shared libraries are not supported. Putting them
 
13461
    # here allows them to be overridden if necessary.
 
13462
    runpath_var=LD_RUN_PATH
 
13463
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13464
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13465
    # ancient GNU ld didn't support --whole-archive et. al.
 
13466
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13467
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13468
      else
 
13469
        whole_archive_flag_spec_F77=
 
13470
    fi
 
13471
    supports_anon_versioning=no
 
13472
    case `$LD -v 2>/dev/null` in
 
13473
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13474
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13475
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13476
      *\ 2.11.*) ;; # other 2.11 versions
 
13477
      *) supports_anon_versioning=yes ;;
 
13478
    esac
 
13479
 
 
13480
    # See if GNU ld supports shared libraries.
 
13481
    case $host_os in
 
13482
    aix3* | aix4* | aix5*)
 
13483
      # On AIX/PPC, the GNU linker is very broken
 
13484
      if test "$host_cpu" != ia64; then
 
13485
        ld_shlibs_F77=no
 
13486
        cat <<EOF 1>&2
 
13487
 
 
13488
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
13489
*** to be unable to reliably create shared libraries on AIX.
 
13490
*** Therefore, libtool is disabling shared libraries support.  If you
 
13491
*** really care for shared libraries, you may want to modify your PATH
 
13492
*** so that a non-GNU linker is found, and then restart.
 
13493
 
 
13494
EOF
 
13495
      fi
 
13496
      ;;
 
13497
 
 
13498
    amigaos*)
 
13499
      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)'
 
13500
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13501
      hardcode_minus_L_F77=yes
 
13502
 
 
13503
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
13504
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
13505
      # to version 4, is to share data among multiple programs linked
 
13506
      # with the same dynamic library.  Since this doesn't match the
 
13507
      # behavior of shared libraries on other platforms, we can't use
 
13508
      # them.
 
13509
      ld_shlibs_F77=no
 
13510
      ;;
 
13511
 
 
13512
    beos*)
 
13513
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13514
        allow_undefined_flag_F77=unsupported
 
13515
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13516
        # support --undefined.  This deserves some investigation.  FIXME
 
13517
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13518
      else
 
13519
        ld_shlibs_F77=no
 
13520
      fi
 
13521
      ;;
 
13522
 
 
13523
    cygwin* | mingw* | pw32*)
 
13524
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
13525
      # as there is no search path for DLLs.
 
13526
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13527
      allow_undefined_flag_F77=unsupported
 
13528
      always_export_symbols_F77=no
 
13529
      enable_shared_with_static_runtimes_F77=yes
 
13530
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13531
 
 
13532
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
13533
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13534
        # If the export-symbols file already is a .def file (1st line
 
13535
        # is EXPORTS), use it as is; otherwise, prepend...
 
13536
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13537
          cp $export_symbols $output_objdir/$soname.def;
 
13538
        else
 
13539
          echo EXPORTS > $output_objdir/$soname.def;
 
13540
          cat $export_symbols >> $output_objdir/$soname.def;
 
13541
        fi~
 
13542
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13543
      else
 
13544
        ld_shlibs_F77=no
 
13545
      fi
 
13546
      ;;
 
13547
 
 
13548
    interix3*)
 
13549
      hardcode_direct_F77=no
 
13550
      hardcode_shlibpath_var_F77=no
 
13551
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13552
      export_dynamic_flag_spec_F77='${wl}-E'
 
13553
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13554
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13555
      # default) and relocated if they conflict, which is a slow very memory
 
13556
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
13557
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13558
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13559
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
13560
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
13561
      ;;
 
13562
 
 
13563
    linux*)
 
13564
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13565
        tmp_addflag=
 
13566
        case $cc_basename,$host_cpu in
 
13567
        pgcc*)                          # Portland Group C compiler
 
13568
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
13569
          tmp_addflag=' $pic_flag'
 
13570
          ;;
 
13571
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
13572
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
13573
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
13574
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
13575
          tmp_addflag=' -i_dynamic' ;;
 
13576
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
13577
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
13578
        ifc* | ifort*)                  # Intel Fortran compiler
 
13579
          tmp_addflag=' -nofor_main' ;;
 
13580
        esac
 
13581
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13582
 
 
13583
        if test $supports_anon_versioning = yes; then
 
13584
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13585
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13586
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
13587
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13588
        fi
 
13589
      else
 
13590
        ld_shlibs_F77=no
 
13591
      fi
 
13592
      ;;
 
13593
 
 
13594
    netbsd*)
 
13595
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13596
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
13597
        wlarc=
 
13598
      else
 
13599
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13600
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13601
      fi
 
13602
      ;;
 
13603
 
 
13604
    solaris*)
 
13605
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
13606
        ld_shlibs_F77=no
 
13607
        cat <<EOF 1>&2
 
13608
 
 
13609
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
13610
*** create shared libraries on Solaris systems.  Therefore, libtool
 
13611
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13612
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
13613
*** your PATH or compiler configuration so that the native linker is
 
13614
*** used, and then restart.
 
13615
 
 
13616
EOF
 
13617
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13618
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13619
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13620
      else
 
13621
        ld_shlibs_F77=no
 
13622
      fi
 
13623
      ;;
 
13624
 
 
13625
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
13626
      case `$LD -v 2>&1` in
 
13627
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
13628
        ld_shlibs_F77=no
 
13629
        cat <<_LT_EOF 1>&2
 
13630
 
 
13631
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
13632
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
13633
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13634
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
13635
*** your PATH or compiler configuration so that the native linker is
 
13636
*** used, and then restart.
 
13637
 
 
13638
_LT_EOF
 
13639
        ;;
 
13640
        *)
 
13641
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13642
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
13643
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
13644
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
13645
          else
 
13646
            ld_shlibs_F77=no
 
13647
          fi
 
13648
        ;;
 
13649
      esac
 
13650
      ;;
 
13651
 
 
13652
    sunos4*)
 
13653
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13654
      wlarc=
 
13655
      hardcode_direct_F77=yes
 
13656
      hardcode_shlibpath_var_F77=no
 
13657
      ;;
 
13658
 
 
13659
    *)
 
13660
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13661
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13662
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13663
      else
 
13664
        ld_shlibs_F77=no
 
13665
      fi
 
13666
      ;;
 
13667
    esac
 
13668
 
 
13669
    if test "$ld_shlibs_F77" = no; then
 
13670
      runpath_var=
 
13671
      hardcode_libdir_flag_spec_F77=
 
13672
      export_dynamic_flag_spec_F77=
 
13673
      whole_archive_flag_spec_F77=
 
13674
    fi
 
13675
  else
 
13676
    # PORTME fill in a description of your system's linker (not GNU ld)
 
13677
    case $host_os in
 
13678
    aix3*)
 
13679
      allow_undefined_flag_F77=unsupported
 
13680
      always_export_symbols_F77=yes
 
13681
      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'
 
13682
      # Note: this linker hardcodes the directories in LIBPATH if there
 
13683
      # are no directories specified by -L.
 
13684
      hardcode_minus_L_F77=yes
 
13685
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
13686
        # Neither direct hardcoding nor static linking is supported with a
 
13687
        # broken collect2.
 
13688
        hardcode_direct_F77=unsupported
 
13689
      fi
 
13690
      ;;
 
13691
 
 
13692
    aix4* | aix5*)
 
13693
      if test "$host_cpu" = ia64; then
 
13694
        # On IA64, the linker does run time linking by default, so we don't
 
13695
        # have to do anything special.
 
13696
        aix_use_runtimelinking=no
 
13697
        exp_sym_flag='-Bexport'
 
13698
        no_entry_flag=""
 
13699
      else
 
13700
        # If we're using GNU nm, then we don't want the "-C" option.
 
13701
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13702
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13703
          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'
 
13704
        else
 
13705
          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'
 
13706
        fi
 
13707
        aix_use_runtimelinking=no
 
13708
 
 
13709
        # Test if we are trying to use run time linking or normal
 
13710
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13711
        # need to do runtime linking.
 
13712
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
13713
          for ld_flag in $LDFLAGS; do
 
13714
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
13715
            aix_use_runtimelinking=yes
 
13716
            break
 
13717
          fi
 
13718
          done
 
13719
          ;;
 
13720
        esac
 
13721
 
 
13722
        exp_sym_flag='-bexport'
 
13723
        no_entry_flag='-bnoentry'
 
13724
      fi
 
13725
 
 
13726
      # When large executables or shared objects are built, AIX ld can
 
13727
      # have problems creating the table of contents.  If linking a library
 
13728
      # or program results in "error TOC overflow" add -mminimal-toc to
 
13729
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13730
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13731
 
 
13732
      archive_cmds_F77=''
 
13733
      hardcode_direct_F77=yes
 
13734
      hardcode_libdir_separator_F77=':'
 
13735
      link_all_deplibs_F77=yes
 
13736
 
 
13737
      if test "$GCC" = yes; then
 
13738
        case $host_os in aix4.[012]|aix4.[012].*)
 
13739
        # We only want to do this on AIX 4.2 and lower, the check
 
13740
        # below for broken collect2 doesn't work under 4.3+
 
13741
          collect2name=`${CC} -print-prog-name=collect2`
 
13742
          if test -f "$collect2name" && \
 
13743
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
13744
          then
 
13745
          # We have reworked collect2
 
13746
          hardcode_direct_F77=yes
 
13747
          else
 
13748
          # We have old collect2
 
13749
          hardcode_direct_F77=unsupported
 
13750
          # It fails to find uninstalled libraries when the uninstalled
 
13751
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
13752
          # to unsupported forces relinking
 
13753
          hardcode_minus_L_F77=yes
 
13754
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13755
          hardcode_libdir_separator_F77=
 
13756
          fi
 
13757
          ;;
 
13758
        esac
 
13759
        shared_flag='-shared'
 
13760
        if test "$aix_use_runtimelinking" = yes; then
 
13761
          shared_flag="$shared_flag "'${wl}-G'
 
13762
        fi
 
13763
      else
 
13764
        # not using gcc
 
13765
        if test "$host_cpu" = ia64; then
 
13766
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13767
        # chokes on -Wl,-G. The following line is correct:
 
13768
          shared_flag='-G'
 
13769
        else
 
13770
          if test "$aix_use_runtimelinking" = yes; then
 
13771
            shared_flag='${wl}-G'
 
13772
          else
 
13773
            shared_flag='${wl}-bM:SRE'
 
13774
          fi
 
13775
        fi
 
13776
      fi
 
13777
 
 
13778
      # It seems that -bexpall does not export symbols beginning with
 
13779
      # underscore (_), so it is better to generate a list of symbols to export.
 
13780
      always_export_symbols_F77=yes
 
13781
      if test "$aix_use_runtimelinking" = yes; then
 
13782
        # Warning - without using the other runtime loading flags (-brtl),
 
13783
        # -berok will link without error, but may produce a broken library.
 
13784
        allow_undefined_flag_F77='-berok'
 
13785
       # Determine the default libpath from the value encoded in an empty executable.
 
13786
       cat >conftest.$ac_ext <<_ACEOF
 
13787
      program main
 
13788
 
 
13789
      end
 
13790
_ACEOF
 
13791
rm -f conftest.$ac_objext conftest$ac_exeext
 
13792
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13793
  (eval $ac_link) 2>conftest.er1
 
13794
  ac_status=$?
 
13795
  grep -v '^ *+' conftest.er1 >conftest.err
 
13796
  rm -f conftest.er1
 
13797
  cat conftest.err >&5
 
13798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13799
  (exit $ac_status); } &&
 
13800
         { ac_try='test -z "$ac_f77_werror_flag"
 
13801
                         || test ! -s conftest.err'
 
13802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13803
  (eval $ac_try) 2>&5
 
13804
  ac_status=$?
 
13805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13806
  (exit $ac_status); }; } &&
 
13807
         { ac_try='test -s conftest$ac_exeext'
 
13808
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13809
  (eval $ac_try) 2>&5
 
13810
  ac_status=$?
 
13811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13812
  (exit $ac_status); }; }; then
 
13813
 
 
13814
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13815
}'`
 
13816
# Check for a 64-bit object if we didn't find anything.
 
13817
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; }
 
13818
}'`; fi
 
13819
else
 
13820
  echo "$as_me: failed program was:" >&5
 
13821
sed 's/^/| /' conftest.$ac_ext >&5
 
13822
 
 
13823
fi
 
13824
rm -f conftest.err conftest.$ac_objext \
 
13825
      conftest$ac_exeext conftest.$ac_ext
 
13826
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13827
 
 
13828
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13829
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $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"
 
13830
       else
 
13831
        if test "$host_cpu" = ia64; then
 
13832
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
13833
          allow_undefined_flag_F77="-z nodefs"
 
13834
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
13835
        else
 
13836
         # Determine the default libpath from the value encoded in an empty executable.
 
13837
         cat >conftest.$ac_ext <<_ACEOF
 
13838
      program main
 
13839
 
 
13840
      end
 
13841
_ACEOF
 
13842
rm -f conftest.$ac_objext conftest$ac_exeext
 
13843
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13844
  (eval $ac_link) 2>conftest.er1
 
13845
  ac_status=$?
 
13846
  grep -v '^ *+' conftest.er1 >conftest.err
 
13847
  rm -f conftest.er1
 
13848
  cat conftest.err >&5
 
13849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13850
  (exit $ac_status); } &&
 
13851
         { ac_try='test -z "$ac_f77_werror_flag"
 
13852
                         || test ! -s conftest.err'
 
13853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13854
  (eval $ac_try) 2>&5
 
13855
  ac_status=$?
 
13856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13857
  (exit $ac_status); }; } &&
 
13858
         { ac_try='test -s conftest$ac_exeext'
 
13859
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13860
  (eval $ac_try) 2>&5
 
13861
  ac_status=$?
 
13862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13863
  (exit $ac_status); }; }; then
 
13864
 
 
13865
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13866
}'`
 
13867
# Check for a 64-bit object if we didn't find anything.
 
13868
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; }
 
13869
}'`; fi
 
13870
else
 
13871
  echo "$as_me: failed program was:" >&5
 
13872
sed 's/^/| /' conftest.$ac_ext >&5
 
13873
 
 
13874
fi
 
13875
rm -f conftest.err conftest.$ac_objext \
 
13876
      conftest$ac_exeext conftest.$ac_ext
 
13877
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13878
 
 
13879
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13880
          # Warning - without using the other run time loading flags,
 
13881
          # -berok will link without error, but may produce a broken library.
 
13882
          no_undefined_flag_F77=' ${wl}-bernotok'
 
13883
          allow_undefined_flag_F77=' ${wl}-berok'
 
13884
          # Exported symbols can be pulled into shared objects from archives
 
13885
          whole_archive_flag_spec_F77='$convenience'
 
13886
          archive_cmds_need_lc_F77=yes
 
13887
          # This is similar to how AIX traditionally builds its shared libraries.
 
13888
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
13889
        fi
 
13890
      fi
 
13891
      ;;
 
13892
 
 
13893
    amigaos*)
 
13894
      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)'
 
13895
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13896
      hardcode_minus_L_F77=yes
 
13897
      # see comment about different semantics on the GNU ld section
 
13898
      ld_shlibs_F77=no
 
13899
      ;;
 
13900
 
 
13901
    bsdi[45]*)
 
13902
      export_dynamic_flag_spec_F77=-rdynamic
 
13903
      ;;
 
13904
 
 
13905
    cygwin* | mingw* | pw32*)
 
13906
      # When not using gcc, we currently assume that we are using
 
13907
      # Microsoft Visual C++.
 
13908
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13909
      # no search path for DLLs.
 
13910
      hardcode_libdir_flag_spec_F77=' '
 
13911
      allow_undefined_flag_F77=unsupported
 
13912
      # Tell ltmain to make .lib files, not .a files.
 
13913
      libext=lib
 
13914
      # Tell ltmain to make .dll files, not .so files.
 
13915
      shrext_cmds=".dll"
 
13916
      # FIXME: Setting linknames here is a bad hack.
 
13917
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
13918
      # The linker will automatically build a .lib file if we build a DLL.
 
13919
      old_archive_From_new_cmds_F77='true'
 
13920
      # FIXME: Should let the user specify the lib program.
 
13921
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
13922
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
13923
      enable_shared_with_static_runtimes_F77=yes
 
13924
      ;;
 
13925
 
 
13926
    darwin* | rhapsody*)
 
13927
      case $host_os in
 
13928
        rhapsody* | darwin1.[012])
 
13929
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
13930
         ;;
 
13931
       *) # Darwin 1.3 on
 
13932
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
13933
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13934
         else
 
13935
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
13936
             10.[012])
 
13937
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13938
               ;;
 
13939
             10.*)
 
13940
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
13941
               ;;
 
13942
           esac
 
13943
         fi
 
13944
         ;;
 
13945
      esac
 
13946
      archive_cmds_need_lc_F77=no
 
13947
      hardcode_direct_F77=no
 
13948
      hardcode_automatic_F77=yes
 
13949
      hardcode_shlibpath_var_F77=unsupported
 
13950
      whole_archive_flag_spec_F77=''
 
13951
      link_all_deplibs_F77=yes
 
13952
    if test "$GCC" = yes ; then
 
13953
        output_verbose_link_cmd='echo'
 
13954
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13955
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13956
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
13957
      archive_expsym_cmds_F77='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}'
 
13958
      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}'
 
13959
    else
 
13960
      case $cc_basename in
 
13961
        xlc*)
 
13962
         output_verbose_link_cmd='echo'
 
13963
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
13964
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13965
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
13966
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13967
          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}'
 
13968
          ;;
 
13969
       *)
 
13970
         ld_shlibs_F77=no
 
13971
          ;;
 
13972
      esac
 
13973
    fi
 
13974
      ;;
 
13975
 
 
13976
    dgux*)
 
13977
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13978
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13979
      hardcode_shlibpath_var_F77=no
 
13980
      ;;
 
13981
 
 
13982
    freebsd1*)
 
13983
      ld_shlibs_F77=no
 
13984
      ;;
 
13985
 
 
13986
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
13987
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
13988
    # does not break anything, and helps significantly (at the cost of a little
 
13989
    # extra space).
 
13990
    freebsd2.2*)
 
13991
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
13992
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13993
      hardcode_direct_F77=yes
 
13994
      hardcode_shlibpath_var_F77=no
 
13995
      ;;
 
13996
 
 
13997
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
13998
    freebsd2*)
 
13999
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14000
      hardcode_direct_F77=yes
 
14001
      hardcode_minus_L_F77=yes
 
14002
      hardcode_shlibpath_var_F77=no
 
14003
      ;;
 
14004
 
 
14005
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14006
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
14007
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14008
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14009
      hardcode_direct_F77=yes
 
14010
      hardcode_shlibpath_var_F77=no
 
14011
      ;;
 
14012
 
 
14013
    hpux9*)
 
14014
      if test "$GCC" = yes; then
 
14015
        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'
 
14016
      else
 
14017
        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'
 
14018
      fi
 
14019
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14020
      hardcode_libdir_separator_F77=:
 
14021
      hardcode_direct_F77=yes
 
14022
 
 
14023
      # hardcode_minus_L: Not really in the search PATH,
 
14024
      # but as the default location of the library.
 
14025
      hardcode_minus_L_F77=yes
 
14026
      export_dynamic_flag_spec_F77='${wl}-E'
 
14027
      ;;
 
14028
 
 
14029
    hpux10*)
 
14030
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14031
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14032
      else
 
14033
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14034
      fi
 
14035
      if test "$with_gnu_ld" = no; then
 
14036
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14037
        hardcode_libdir_separator_F77=:
 
14038
 
 
14039
        hardcode_direct_F77=yes
 
14040
        export_dynamic_flag_spec_F77='${wl}-E'
 
14041
 
 
14042
        # hardcode_minus_L: Not really in the search PATH,
 
14043
        # but as the default location of the library.
 
14044
        hardcode_minus_L_F77=yes
 
14045
      fi
 
14046
      ;;
 
14047
 
 
14048
    hpux11*)
 
14049
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14050
        case $host_cpu in
 
14051
        hppa*64*)
 
14052
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14053
          ;;
 
14054
        ia64*)
 
14055
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14056
          ;;
 
14057
        *)
 
14058
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14059
          ;;
 
14060
        esac
 
14061
      else
 
14062
        case $host_cpu in
 
14063
        hppa*64*)
 
14064
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14065
          ;;
 
14066
        ia64*)
 
14067
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14068
          ;;
 
14069
        *)
 
14070
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14071
          ;;
 
14072
        esac
 
14073
      fi
 
14074
      if test "$with_gnu_ld" = no; then
 
14075
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14076
        hardcode_libdir_separator_F77=:
 
14077
 
 
14078
        case $host_cpu in
 
14079
        hppa*64*|ia64*)
 
14080
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14081
          hardcode_direct_F77=no
 
14082
          hardcode_shlibpath_var_F77=no
 
14083
          ;;
 
14084
        *)
 
14085
          hardcode_direct_F77=yes
 
14086
          export_dynamic_flag_spec_F77='${wl}-E'
 
14087
 
 
14088
          # hardcode_minus_L: Not really in the search PATH,
 
14089
          # but as the default location of the library.
 
14090
          hardcode_minus_L_F77=yes
 
14091
          ;;
 
14092
        esac
 
14093
      fi
 
14094
      ;;
 
14095
 
 
14096
    irix5* | irix6* | nonstopux*)
 
14097
      if test "$GCC" = yes; then
 
14098
        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'
 
14099
      else
 
14100
        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'
 
14101
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14102
      fi
 
14103
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14104
      hardcode_libdir_separator_F77=:
 
14105
      link_all_deplibs_F77=yes
 
14106
      ;;
 
14107
 
 
14108
    netbsd*)
 
14109
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14110
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14111
      else
 
14112
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14113
      fi
 
14114
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14115
      hardcode_direct_F77=yes
 
14116
      hardcode_shlibpath_var_F77=no
 
14117
      ;;
 
14118
 
 
14119
    newsos6)
 
14120
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14121
      hardcode_direct_F77=yes
 
14122
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14123
      hardcode_libdir_separator_F77=:
 
14124
      hardcode_shlibpath_var_F77=no
 
14125
      ;;
 
14126
 
 
14127
    openbsd*)
 
14128
      hardcode_direct_F77=yes
 
14129
      hardcode_shlibpath_var_F77=no
 
14130
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14131
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14132
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
14133
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14134
        export_dynamic_flag_spec_F77='${wl}-E'
 
14135
      else
 
14136
       case $host_os in
 
14137
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14138
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14139
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14140
           ;;
 
14141
         *)
 
14142
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14143
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14144
           ;;
 
14145
       esac
 
14146
      fi
 
14147
      ;;
 
14148
 
 
14149
    os2*)
 
14150
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14151
      hardcode_minus_L_F77=yes
 
14152
      allow_undefined_flag_F77=unsupported
 
14153
      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'
 
14154
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14155
      ;;
 
14156
 
 
14157
    osf3*)
 
14158
      if test "$GCC" = yes; then
 
14159
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14160
        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'
 
14161
      else
 
14162
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14163
        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'
 
14164
      fi
 
14165
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14166
      hardcode_libdir_separator_F77=:
 
14167
      ;;
 
14168
 
 
14169
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14170
      if test "$GCC" = yes; then
 
14171
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14172
        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'
 
14173
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14174
      else
 
14175
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14176
        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'
 
14177
        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~
 
14178
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
14179
 
 
14180
        # Both c and cxx compiler support -rpath directly
 
14181
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14182
      fi
 
14183
      hardcode_libdir_separator_F77=:
 
14184
      ;;
 
14185
 
 
14186
    solaris*)
 
14187
      no_undefined_flag_F77=' -z text'
 
14188
      if test "$GCC" = yes; then
 
14189
        wlarc='${wl}'
 
14190
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14191
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14192
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14193
      else
 
14194
        wlarc=''
 
14195
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14196
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14197
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14198
      fi
 
14199
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14200
      hardcode_shlibpath_var_F77=no
 
14201
      case $host_os in
 
14202
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14203
      *)
 
14204
        # The compiler driver will combine linker options so we
 
14205
        # cannot just pass the convience library names through
 
14206
        # without $wl, iff we do not link with $LD.
 
14207
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14208
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14209
        case $wlarc in
 
14210
        '')
 
14211
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14212
        *)
 
14213
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
14214
        esac ;;
 
14215
      esac
 
14216
      link_all_deplibs_F77=yes
 
14217
      ;;
 
14218
 
 
14219
    sunos4*)
 
14220
      if test "x$host_vendor" = xsequent; then
 
14221
        # Use $CC to link under sequent, because it throws in some extra .o
 
14222
        # files that make .init and .fini sections work.
 
14223
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14224
      else
 
14225
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14226
      fi
 
14227
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14228
      hardcode_direct_F77=yes
 
14229
      hardcode_minus_L_F77=yes
 
14230
      hardcode_shlibpath_var_F77=no
 
14231
      ;;
 
14232
 
 
14233
    sysv4)
 
14234
      case $host_vendor in
 
14235
        sni)
 
14236
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14237
          hardcode_direct_F77=yes # is this really true???
 
14238
        ;;
 
14239
        siemens)
 
14240
          ## LD is ld it makes a PLAMLIB
 
14241
          ## CC just makes a GrossModule.
 
14242
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14243
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14244
          hardcode_direct_F77=no
 
14245
        ;;
 
14246
        motorola)
 
14247
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14248
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14249
        ;;
 
14250
      esac
 
14251
      runpath_var='LD_RUN_PATH'
 
14252
      hardcode_shlibpath_var_F77=no
 
14253
      ;;
 
14254
 
 
14255
    sysv4.3*)
 
14256
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14257
      hardcode_shlibpath_var_F77=no
 
14258
      export_dynamic_flag_spec_F77='-Bexport'
 
14259
      ;;
 
14260
 
 
14261
    sysv4*MP*)
 
14262
      if test -d /usr/nec; then
 
14263
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14264
        hardcode_shlibpath_var_F77=no
 
14265
        runpath_var=LD_RUN_PATH
 
14266
        hardcode_runpath_var=yes
 
14267
        ld_shlibs_F77=yes
 
14268
      fi
 
14269
      ;;
 
14270
 
 
14271
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
14272
      no_undefined_flag_F77='${wl}-z,text'
 
14273
      archive_cmds_need_lc_F77=no
 
14274
      hardcode_shlibpath_var_F77=no
 
14275
      runpath_var='LD_RUN_PATH'
 
14276
 
 
14277
      if test "$GCC" = yes; then
 
14278
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14279
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14280
      else
 
14281
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14282
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14283
      fi
 
14284
      ;;
 
14285
 
 
14286
    sysv5* | sco3.2v5* | sco5v6*)
 
14287
      # Note: We can NOT use -z defs as we might desire, because we do not
 
14288
      # link with -lc, and that would cause any symbols used from libc to
 
14289
      # always be unresolved, which means just about no library would
 
14290
      # ever link correctly.  If we're not using GNU ld we use -z text
 
14291
      # though, which does catch some bad symbols but isn't as heavy-handed
 
14292
      # as -z defs.
 
14293
      no_undefined_flag_F77='${wl}-z,text'
 
14294
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
14295
      archive_cmds_need_lc_F77=no
 
14296
      hardcode_shlibpath_var_F77=no
 
14297
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
14298
      hardcode_libdir_separator_F77=':'
 
14299
      link_all_deplibs_F77=yes
 
14300
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14301
      runpath_var='LD_RUN_PATH'
 
14302
 
 
14303
      if test "$GCC" = yes; then
 
14304
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14305
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14306
      else
 
14307
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14308
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14309
      fi
 
14310
      ;;
 
14311
 
 
14312
    uts4*)
 
14313
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14314
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14315
      hardcode_shlibpath_var_F77=no
 
14316
      ;;
 
14317
 
 
14318
    *)
 
14319
      ld_shlibs_F77=no
 
14320
      ;;
 
14321
    esac
 
14322
  fi
 
14323
 
 
14324
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14325
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14326
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14327
 
 
14328
#
 
14329
# Do we need to explicitly link libc?
 
14330
#
 
14331
case "x$archive_cmds_need_lc_F77" in
 
14332
x|xyes)
 
14333
  # Assume -lc should be added
 
14334
  archive_cmds_need_lc_F77=yes
 
14335
 
 
14336
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14337
    case $archive_cmds_F77 in
 
14338
    *'~'*)
 
14339
      # FIXME: we may have to deal with multi-command sequences.
 
14340
      ;;
 
14341
    '$CC '*)
 
14342
      # Test whether the compiler implicitly links with -lc since on some
 
14343
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14344
      # to ld, don't add -lc before -lgcc.
 
14345
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14346
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14347
      $rm conftest*
 
14348
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14349
 
 
14350
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14351
  (eval $ac_compile) 2>&5
 
14352
  ac_status=$?
 
14353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14354
  (exit $ac_status); } 2>conftest.err; then
 
14355
        soname=conftest
 
14356
        lib=conftest
 
14357
        libobjs=conftest.$ac_objext
 
14358
        deplibs=
 
14359
        wl=$lt_prog_compiler_wl_F77
 
14360
        pic_flag=$lt_prog_compiler_pic_F77
 
14361
        compiler_flags=-v
 
14362
        linker_flags=-v
 
14363
        verstring=
 
14364
        output_objdir=.
 
14365
        libname=conftest
 
14366
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14367
        allow_undefined_flag_F77=
 
14368
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14369
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14370
  ac_status=$?
 
14371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14372
  (exit $ac_status); }
 
14373
        then
 
14374
          archive_cmds_need_lc_F77=no
 
14375
        else
 
14376
          archive_cmds_need_lc_F77=yes
 
14377
        fi
 
14378
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14379
      else
 
14380
        cat conftest.err 1>&5
 
14381
      fi
 
14382
      $rm conftest*
 
14383
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14384
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14385
      ;;
 
14386
    esac
 
14387
  fi
 
14388
  ;;
 
14389
esac
 
14390
 
 
14391
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14392
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14393
library_names_spec=
 
14394
libname_spec='lib$name'
 
14395
soname_spec=
 
14396
shrext_cmds=".so"
 
14397
postinstall_cmds=
 
14398
postuninstall_cmds=
 
14399
finish_cmds=
 
14400
finish_eval=
 
14401
shlibpath_var=
 
14402
shlibpath_overrides_runpath=unknown
 
14403
version_type=none
 
14404
dynamic_linker="$host_os ld.so"
 
14405
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14406
if test "$GCC" = yes; then
 
14407
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14408
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14409
    # if the path contains ";" then we assume it to be the separator
 
14410
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14411
    # assumed that no part of a normal pathname contains ";" but that should
 
14412
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14413
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14414
  else
 
14415
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14416
  fi
 
14417
else
 
14418
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14419
fi
 
14420
need_lib_prefix=unknown
 
14421
hardcode_into_libs=no
 
14422
 
 
14423
# when you set need_version to no, make sure it does not cause -set_version
 
14424
# flags to be left without arguments
 
14425
need_version=unknown
 
14426
 
 
14427
case $host_os in
 
14428
aix3*)
 
14429
  version_type=linux
 
14430
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14431
  shlibpath_var=LIBPATH
 
14432
 
 
14433
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14434
  soname_spec='${libname}${release}${shared_ext}$major'
 
14435
  ;;
 
14436
 
 
14437
aix4* | aix5*)
 
14438
  version_type=linux
 
14439
  need_lib_prefix=no
 
14440
  need_version=no
 
14441
  hardcode_into_libs=yes
 
14442
  if test "$host_cpu" = ia64; then
 
14443
    # AIX 5 supports IA64
 
14444
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14445
    shlibpath_var=LD_LIBRARY_PATH
 
14446
  else
 
14447
    # With GCC up to 2.95.x, collect2 would create an import file
 
14448
    # for dependence libraries.  The import file would start with
 
14449
    # the line `#! .'.  This would cause the generated library to
 
14450
    # depend on `.', always an invalid library.  This was fixed in
 
14451
    # development snapshots of GCC prior to 3.0.
 
14452
    case $host_os in
 
14453
      aix4 | aix4.[01] | aix4.[01].*)
 
14454
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14455
           echo ' yes '
 
14456
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14457
        :
 
14458
      else
 
14459
        can_build_shared=no
 
14460
      fi
 
14461
      ;;
 
14462
    esac
 
14463
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14464
    # soname into executable. Probably we can add versioning support to
 
14465
    # collect2, so additional links can be useful in future.
 
14466
    if test "$aix_use_runtimelinking" = yes; then
 
14467
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14468
      # instead of lib<name>.a to let people know that these are not
 
14469
      # typical AIX shared libraries.
 
14470
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14471
    else
 
14472
      # We preserve .a as extension for shared libraries through AIX4.2
 
14473
      # and later when we are not doing run time linking.
 
14474
      library_names_spec='${libname}${release}.a $libname.a'
 
14475
      soname_spec='${libname}${release}${shared_ext}$major'
 
14476
    fi
 
14477
    shlibpath_var=LIBPATH
 
14478
  fi
 
14479
  ;;
 
14480
 
 
14481
amigaos*)
 
14482
  library_names_spec='$libname.ixlibrary $libname.a'
 
14483
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14484
  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'
 
14485
  ;;
 
14486
 
 
14487
beos*)
 
14488
  library_names_spec='${libname}${shared_ext}'
 
14489
  dynamic_linker="$host_os ld.so"
 
14490
  shlibpath_var=LIBRARY_PATH
 
14491
  ;;
 
14492
 
 
14493
bsdi[45]*)
 
14494
  version_type=linux
 
14495
  need_version=no
 
14496
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14497
  soname_spec='${libname}${release}${shared_ext}$major'
 
14498
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14499
  shlibpath_var=LD_LIBRARY_PATH
 
14500
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14501
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14502
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14503
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14504
  # libtool to hard-code these into programs
 
14505
  ;;
 
14506
 
 
14507
cygwin* | mingw* | pw32*)
 
14508
  version_type=windows
 
14509
  shrext_cmds=".dll"
 
14510
  need_version=no
 
14511
  need_lib_prefix=no
 
14512
 
 
14513
  case $GCC,$host_os in
 
14514
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14515
    library_names_spec='$libname.dll.a'
 
14516
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14517
    postinstall_cmds='base_file=`basename \${file}`~
 
14518
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14519
      dldir=$destdir/`dirname \$dlpath`~
 
14520
      test -d \$dldir || mkdir -p \$dldir~
 
14521
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14522
      chmod a+x \$dldir/$dlname'
 
14523
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14524
      dlpath=$dir/\$dldll~
 
14525
       $rm \$dlpath'
 
14526
    shlibpath_overrides_runpath=yes
 
14527
 
 
14528
    case $host_os in
 
14529
    cygwin*)
 
14530
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14531
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14532
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14533
      ;;
 
14534
    mingw*)
 
14535
      # MinGW DLLs use traditional 'lib' prefix
 
14536
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14537
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14538
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14539
        # It is most probably a Windows format PATH printed by
 
14540
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14541
        # path with ; separators, and with drive letters. We can handle the
 
14542
        # drive letters (cygwin fileutils understands them), so leave them,
 
14543
        # especially as we might pass files found there to a mingw objdump,
 
14544
        # which wouldn't understand a cygwinified path. Ahh.
 
14545
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14546
      else
 
14547
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14548
      fi
 
14549
      ;;
 
14550
    pw32*)
 
14551
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14552
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14553
      ;;
 
14554
    esac
 
14555
    ;;
 
14556
 
 
14557
  *)
 
14558
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14559
    ;;
 
14560
  esac
 
14561
  dynamic_linker='Win32 ld.exe'
 
14562
  # FIXME: first we should search . and the directory the executable is in
 
14563
  shlibpath_var=PATH
 
14564
  ;;
 
14565
 
 
14566
darwin* | rhapsody*)
 
14567
  dynamic_linker="$host_os dyld"
 
14568
  version_type=darwin
 
14569
  need_lib_prefix=no
 
14570
  need_version=no
 
14571
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14572
  soname_spec='${libname}${release}${major}$shared_ext'
 
14573
  shlibpath_overrides_runpath=yes
 
14574
  shlibpath_var=DYLD_LIBRARY_PATH
 
14575
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
14576
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14577
  if test "$GCC" = yes; then
 
14578
    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"`
 
14579
  else
 
14580
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14581
  fi
 
14582
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14583
  ;;
 
14584
 
 
14585
dgux*)
 
14586
  version_type=linux
 
14587
  need_lib_prefix=no
 
14588
  need_version=no
 
14589
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14590
  soname_spec='${libname}${release}${shared_ext}$major'
 
14591
  shlibpath_var=LD_LIBRARY_PATH
 
14592
  ;;
 
14593
 
 
14594
freebsd1*)
 
14595
  dynamic_linker=no
 
14596
  ;;
 
14597
 
 
14598
kfreebsd*-gnu)
 
14599
  version_type=linux
 
14600
  need_lib_prefix=no
 
14601
  need_version=no
 
14602
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14603
  soname_spec='${libname}${release}${shared_ext}$major'
 
14604
  shlibpath_var=LD_LIBRARY_PATH
 
14605
  shlibpath_overrides_runpath=no
 
14606
  hardcode_into_libs=yes
 
14607
  dynamic_linker='GNU ld.so'
 
14608
  ;;
 
14609
 
 
14610
freebsd* | dragonfly*)
 
14611
  # DragonFly does not have aout.  When/if they implement a new
 
14612
  # versioning mechanism, adjust this.
 
14613
  if test -x /usr/bin/objformat; then
 
14614
    objformat=`/usr/bin/objformat`
 
14615
  else
 
14616
    case $host_os in
 
14617
    freebsd[123]*) objformat=aout ;;
 
14618
    *) objformat=elf ;;
 
14619
    esac
 
14620
  fi
 
14621
  version_type=freebsd-$objformat
 
14622
  case $version_type in
 
14623
    freebsd-elf*)
 
14624
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14625
      need_version=no
 
14626
      need_lib_prefix=no
 
14627
      ;;
 
14628
    freebsd-*)
 
14629
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14630
      need_version=yes
 
14631
      ;;
 
14632
  esac
 
14633
  shlibpath_var=LD_LIBRARY_PATH
 
14634
  case $host_os in
 
14635
  freebsd2*)
 
14636
    shlibpath_overrides_runpath=yes
 
14637
    ;;
 
14638
  freebsd3.[01]* | freebsdelf3.[01]*)
 
14639
    shlibpath_overrides_runpath=yes
 
14640
    hardcode_into_libs=yes
 
14641
    ;;
 
14642
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
14643
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
14644
    shlibpath_overrides_runpath=no
 
14645
    hardcode_into_libs=yes
 
14646
    ;;
 
14647
  freebsd*) # from 4.6 on
 
14648
    shlibpath_overrides_runpath=yes
 
14649
    hardcode_into_libs=yes
 
14650
    ;;
 
14651
  esac
 
14652
  ;;
 
14653
 
 
14654
gnu*)
 
14655
  version_type=linux
 
14656
  need_lib_prefix=no
 
14657
  need_version=no
 
14658
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14659
  soname_spec='${libname}${release}${shared_ext}$major'
 
14660
  shlibpath_var=LD_LIBRARY_PATH
 
14661
  hardcode_into_libs=yes
 
14662
  ;;
 
14663
 
 
14664
hpux9* | hpux10* | hpux11*)
 
14665
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14666
  # link against other versions.
 
14667
  version_type=sunos
 
14668
  need_lib_prefix=no
 
14669
  need_version=no
 
14670
  case $host_cpu in
 
14671
  ia64*)
 
14672
    shrext_cmds='.so'
 
14673
    hardcode_into_libs=yes
 
14674
    dynamic_linker="$host_os dld.so"
 
14675
    shlibpath_var=LD_LIBRARY_PATH
 
14676
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14677
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14678
    soname_spec='${libname}${release}${shared_ext}$major'
 
14679
    if test "X$HPUX_IA64_MODE" = X32; then
 
14680
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14681
    else
 
14682
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14683
    fi
 
14684
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14685
    ;;
 
14686
   hppa*64*)
 
14687
     shrext_cmds='.sl'
 
14688
     hardcode_into_libs=yes
 
14689
     dynamic_linker="$host_os dld.sl"
 
14690
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14691
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14692
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14693
     soname_spec='${libname}${release}${shared_ext}$major'
 
14694
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14695
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14696
     ;;
 
14697
   *)
 
14698
    shrext_cmds='.sl'
 
14699
    dynamic_linker="$host_os dld.sl"
 
14700
    shlibpath_var=SHLIB_PATH
 
14701
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14702
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14703
    soname_spec='${libname}${release}${shared_ext}$major'
 
14704
    ;;
 
14705
  esac
 
14706
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14707
  postinstall_cmds='chmod 555 $lib'
 
14708
  ;;
 
14709
 
 
14710
interix3*)
 
14711
  version_type=linux
 
14712
  need_lib_prefix=no
 
14713
  need_version=no
 
14714
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14715
  soname_spec='${libname}${release}${shared_ext}$major'
 
14716
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
14717
  shlibpath_var=LD_LIBRARY_PATH
 
14718
  shlibpath_overrides_runpath=no
 
14719
  hardcode_into_libs=yes
 
14720
  ;;
 
14721
 
 
14722
irix5* | irix6* | nonstopux*)
 
14723
  case $host_os in
 
14724
    nonstopux*) version_type=nonstopux ;;
 
14725
    *)
 
14726
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14727
                version_type=linux
 
14728
        else
 
14729
                version_type=irix
 
14730
        fi ;;
 
14731
  esac
 
14732
  need_lib_prefix=no
 
14733
  need_version=no
 
14734
  soname_spec='${libname}${release}${shared_ext}$major'
 
14735
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14736
  case $host_os in
 
14737
  irix5* | nonstopux*)
 
14738
    libsuff= shlibsuff=
 
14739
    ;;
 
14740
  *)
 
14741
    case $LD in # libtool.m4 will add one of these switches to LD
 
14742
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14743
      libsuff= shlibsuff= libmagic=32-bit;;
 
14744
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14745
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14746
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14747
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14748
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14749
    esac
 
14750
    ;;
 
14751
  esac
 
14752
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14753
  shlibpath_overrides_runpath=no
 
14754
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14755
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14756
  hardcode_into_libs=yes
 
14757
  ;;
 
14758
 
 
14759
# No shared lib support for Linux oldld, aout, or coff.
 
14760
linux*oldld* | linux*aout* | linux*coff*)
 
14761
  dynamic_linker=no
 
14762
  ;;
 
14763
 
 
14764
# This must be Linux ELF.
 
14765
linux*)
 
14766
  version_type=linux
 
14767
  need_lib_prefix=no
 
14768
  need_version=no
 
14769
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14770
  soname_spec='${libname}${release}${shared_ext}$major'
 
14771
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14772
  shlibpath_var=LD_LIBRARY_PATH
 
14773
  shlibpath_overrides_runpath=no
 
14774
  # This implies no fast_install, which is unacceptable.
 
14775
  # Some rework will be needed to allow for fast_install
 
14776
  # before this can be enabled.
 
14777
  hardcode_into_libs=yes
 
14778
 
 
14779
  # find out which ABI we are using
 
14780
  libsuff=
 
14781
  case "$host_cpu" in
 
14782
  x86_64*|s390x*|powerpc64*)
 
14783
    echo '#line 14783 "configure"' > conftest.$ac_ext
 
14784
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14785
  (eval $ac_compile) 2>&5
 
14786
  ac_status=$?
 
14787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14788
  (exit $ac_status); }; then
 
14789
      case `/usr/bin/file conftest.$ac_objext` in
 
14790
      *64-bit*)
 
14791
        libsuff=64
 
14792
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
14793
        ;;
 
14794
      esac
 
14795
    fi
 
14796
    rm -rf conftest*
 
14797
    ;;
 
14798
  esac
 
14799
 
 
14800
  # Append ld.so.conf contents to the search path
 
14801
  if test -f /etc/ld.so.conf; then
 
14802
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
14803
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
14804
  fi
 
14805
 
 
14806
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14807
  # powerpc, because MkLinux only supported shared libraries with the
 
14808
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14809
  # most powerpc-linux boxes support dynamic linking these days and
 
14810
  # people can always --disable-shared, the test was removed, and we
 
14811
  # assume the GNU/Linux dynamic linker is in use.
 
14812
  dynamic_linker='GNU/Linux ld.so'
 
14813
  ;;
 
14814
 
 
14815
knetbsd*-gnu)
 
14816
  version_type=linux
 
14817
  need_lib_prefix=no
 
14818
  need_version=no
 
14819
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14820
  soname_spec='${libname}${release}${shared_ext}$major'
 
14821
  shlibpath_var=LD_LIBRARY_PATH
 
14822
  shlibpath_overrides_runpath=no
 
14823
  hardcode_into_libs=yes
 
14824
  dynamic_linker='GNU ld.so'
 
14825
  ;;
 
14826
 
 
14827
netbsd*)
 
14828
  version_type=sunos
 
14829
  need_lib_prefix=no
 
14830
  need_version=no
 
14831
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14832
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14833
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14834
    dynamic_linker='NetBSD (a.out) ld.so'
 
14835
  else
 
14836
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14837
    soname_spec='${libname}${release}${shared_ext}$major'
 
14838
    dynamic_linker='NetBSD ld.elf_so'
 
14839
  fi
 
14840
  shlibpath_var=LD_LIBRARY_PATH
 
14841
  shlibpath_overrides_runpath=yes
 
14842
  hardcode_into_libs=yes
 
14843
  ;;
 
14844
 
 
14845
newsos6)
 
14846
  version_type=linux
 
14847
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14848
  shlibpath_var=LD_LIBRARY_PATH
 
14849
  shlibpath_overrides_runpath=yes
 
14850
  ;;
 
14851
 
 
14852
nto-qnx*)
 
14853
  version_type=linux
 
14854
  need_lib_prefix=no
 
14855
  need_version=no
 
14856
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14857
  soname_spec='${libname}${release}${shared_ext}$major'
 
14858
  shlibpath_var=LD_LIBRARY_PATH
 
14859
  shlibpath_overrides_runpath=yes
 
14860
  ;;
 
14861
 
 
14862
openbsd*)
 
14863
  version_type=sunos
 
14864
  sys_lib_dlsearch_path_spec="/usr/lib"
 
14865
  need_lib_prefix=no
 
14866
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14867
  case $host_os in
 
14868
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
14869
    *)                         need_version=no  ;;
 
14870
  esac
 
14871
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14872
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14873
  shlibpath_var=LD_LIBRARY_PATH
 
14874
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14875
    case $host_os in
 
14876
      openbsd2.[89] | openbsd2.[89].*)
 
14877
        shlibpath_overrides_runpath=no
 
14878
        ;;
 
14879
      *)
 
14880
        shlibpath_overrides_runpath=yes
 
14881
        ;;
 
14882
      esac
 
14883
  else
 
14884
    shlibpath_overrides_runpath=yes
 
14885
  fi
 
14886
  ;;
 
14887
 
 
14888
os2*)
 
14889
  libname_spec='$name'
 
14890
  shrext_cmds=".dll"
 
14891
  need_lib_prefix=no
 
14892
  library_names_spec='$libname${shared_ext} $libname.a'
 
14893
  dynamic_linker='OS/2 ld.exe'
 
14894
  shlibpath_var=LIBPATH
 
14895
  ;;
 
14896
 
 
14897
osf3* | osf4* | osf5*)
 
14898
  version_type=osf
 
14899
  need_lib_prefix=no
 
14900
  need_version=no
 
14901
  soname_spec='${libname}${release}${shared_ext}$major'
 
14902
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14903
  shlibpath_var=LD_LIBRARY_PATH
 
14904
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14905
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14906
  ;;
 
14907
 
 
14908
solaris*)
 
14909
  version_type=linux
 
14910
  need_lib_prefix=no
 
14911
  need_version=no
 
14912
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14913
  soname_spec='${libname}${release}${shared_ext}$major'
 
14914
  shlibpath_var=LD_LIBRARY_PATH
 
14915
  shlibpath_overrides_runpath=yes
 
14916
  hardcode_into_libs=yes
 
14917
  # ldd complains unless libraries are executable
 
14918
  postinstall_cmds='chmod +x $lib'
 
14919
  ;;
 
14920
 
 
14921
sunos4*)
 
14922
  version_type=sunos
 
14923
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14924
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14925
  shlibpath_var=LD_LIBRARY_PATH
 
14926
  shlibpath_overrides_runpath=yes
 
14927
  if test "$with_gnu_ld" = yes; then
 
14928
    need_lib_prefix=no
 
14929
  fi
 
14930
  need_version=yes
 
14931
  ;;
 
14932
 
 
14933
sysv4 | sysv4.3*)
 
14934
  version_type=linux
 
14935
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14936
  soname_spec='${libname}${release}${shared_ext}$major'
 
14937
  shlibpath_var=LD_LIBRARY_PATH
 
14938
  case $host_vendor in
 
14939
    sni)
 
14940
      shlibpath_overrides_runpath=no
 
14941
      need_lib_prefix=no
 
14942
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14943
      runpath_var=LD_RUN_PATH
 
14944
      ;;
 
14945
    siemens)
 
14946
      need_lib_prefix=no
 
14947
      ;;
 
14948
    motorola)
 
14949
      need_lib_prefix=no
 
14950
      need_version=no
 
14951
      shlibpath_overrides_runpath=no
 
14952
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14953
      ;;
 
14954
  esac
 
14955
  ;;
 
14956
 
 
14957
sysv4*MP*)
 
14958
  if test -d /usr/nec ;then
 
14959
    version_type=linux
 
14960
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14961
    soname_spec='$libname${shared_ext}.$major'
 
14962
    shlibpath_var=LD_LIBRARY_PATH
 
14963
  fi
 
14964
  ;;
 
14965
 
 
14966
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
14967
  version_type=freebsd-elf
 
14968
  need_lib_prefix=no
 
14969
  need_version=no
 
14970
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14971
  soname_spec='${libname}${release}${shared_ext}$major'
 
14972
  shlibpath_var=LD_LIBRARY_PATH
 
14973
  hardcode_into_libs=yes
 
14974
  if test "$with_gnu_ld" = yes; then
 
14975
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
14976
    shlibpath_overrides_runpath=no
 
14977
  else
 
14978
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
14979
    shlibpath_overrides_runpath=yes
 
14980
    case $host_os in
 
14981
      sco3.2v5*)
 
14982
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
14983
        ;;
 
14984
    esac
 
14985
  fi
 
14986
  sys_lib_dlsearch_path_spec='/usr/lib'
 
14987
  ;;
 
14988
 
 
14989
uts4*)
 
14990
  version_type=linux
 
14991
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14992
  soname_spec='${libname}${release}${shared_ext}$major'
 
14993
  shlibpath_var=LD_LIBRARY_PATH
 
14994
  ;;
 
14995
 
 
14996
*)
 
14997
  dynamic_linker=no
 
14998
  ;;
 
14999
esac
 
15000
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15001
echo "${ECHO_T}$dynamic_linker" >&6
 
15002
test "$dynamic_linker" = no && can_build_shared=no
 
15003
 
 
15004
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15005
if test "$GCC" = yes; then
 
15006
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15007
fi
 
15008
 
 
15009
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15010
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
15011
hardcode_action_F77=
 
15012
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15013
   test -n "$runpath_var_F77" || \
 
15014
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
15015
 
 
15016
  # We can hardcode non-existant directories.
 
15017
  if test "$hardcode_direct_F77" != no &&
 
15018
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15019
     # have to relink, otherwise we might link with an installed library
 
15020
     # when we should be linking with a yet-to-be-installed one
 
15021
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15022
     test "$hardcode_minus_L_F77" != no; then
 
15023
    # Linking always hardcodes the temporary library directory.
 
15024
    hardcode_action_F77=relink
 
15025
  else
 
15026
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15027
    hardcode_action_F77=immediate
 
15028
  fi
 
15029
else
 
15030
  # We cannot hardcode anything, or else we can only hardcode existing
 
15031
  # directories.
 
15032
  hardcode_action_F77=unsupported
 
15033
fi
 
15034
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15035
echo "${ECHO_T}$hardcode_action_F77" >&6
 
15036
 
 
15037
if test "$hardcode_action_F77" = relink; then
 
15038
  # Fast installation is not supported
 
15039
  enable_fast_install=no
 
15040
elif test "$shlibpath_overrides_runpath" = yes ||
 
15041
     test "$enable_shared" = no; then
 
15042
  # Fast installation is not necessary
 
15043
  enable_fast_install=needless
 
15044
fi
 
15045
 
 
15046
 
 
15047
# The else clause should only fire when bootstrapping the
 
15048
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15049
# with your package, and you will get complaints that there are
 
15050
# no rules to generate ltmain.sh.
 
15051
if test -f "$ltmain"; then
 
15052
  # See if we are running on zsh, and set the options which allow our commands through
 
15053
  # without removal of \ escapes.
 
15054
  if test -n "${ZSH_VERSION+set}" ; then
 
15055
    setopt NO_GLOB_SUBST
 
15056
  fi
 
15057
  # Now quote all the things that may contain metacharacters while being
 
15058
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15059
  # variables and quote the copies for generation of the libtool script.
 
15060
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
15061
    SED SHELL STRIP \
 
15062
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15063
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15064
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15065
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15066
    lt_cv_sys_global_symbol_to_c_name_address \
 
15067
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15068
    old_postinstall_cmds old_postuninstall_cmds \
 
15069
    compiler_F77 \
 
15070
    CC_F77 \
 
15071
    LD_F77 \
 
15072
    lt_prog_compiler_wl_F77 \
 
15073
    lt_prog_compiler_pic_F77 \
 
15074
    lt_prog_compiler_static_F77 \
 
15075
    lt_prog_compiler_no_builtin_flag_F77 \
 
15076
    export_dynamic_flag_spec_F77 \
 
15077
    thread_safe_flag_spec_F77 \
 
15078
    whole_archive_flag_spec_F77 \
 
15079
    enable_shared_with_static_runtimes_F77 \
 
15080
    old_archive_cmds_F77 \
 
15081
    old_archive_from_new_cmds_F77 \
 
15082
    predep_objects_F77 \
 
15083
    postdep_objects_F77 \
 
15084
    predeps_F77 \
 
15085
    postdeps_F77 \
 
15086
    compiler_lib_search_path_F77 \
 
15087
    archive_cmds_F77 \
 
15088
    archive_expsym_cmds_F77 \
 
15089
    postinstall_cmds_F77 \
 
15090
    postuninstall_cmds_F77 \
 
15091
    old_archive_from_expsyms_cmds_F77 \
 
15092
    allow_undefined_flag_F77 \
 
15093
    no_undefined_flag_F77 \
 
15094
    export_symbols_cmds_F77 \
 
15095
    hardcode_libdir_flag_spec_F77 \
 
15096
    hardcode_libdir_flag_spec_ld_F77 \
 
15097
    hardcode_libdir_separator_F77 \
 
15098
    hardcode_automatic_F77 \
 
15099
    module_cmds_F77 \
 
15100
    module_expsym_cmds_F77 \
 
15101
    lt_cv_prog_compiler_c_o_F77 \
 
15102
    exclude_expsyms_F77 \
 
15103
    include_expsyms_F77; do
 
15104
 
 
15105
    case $var in
 
15106
    old_archive_cmds_F77 | \
 
15107
    old_archive_from_new_cmds_F77 | \
 
15108
    archive_cmds_F77 | \
 
15109
    archive_expsym_cmds_F77 | \
 
15110
    module_cmds_F77 | \
 
15111
    module_expsym_cmds_F77 | \
 
15112
    old_archive_from_expsyms_cmds_F77 | \
 
15113
    export_symbols_cmds_F77 | \
 
15114
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15115
    postinstall_cmds | postuninstall_cmds | \
 
15116
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15117
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15118
      # Double-quote double-evaled strings.
 
15119
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15120
      ;;
 
15121
    *)
 
15122
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15123
      ;;
 
15124
    esac
 
15125
  done
 
15126
 
 
15127
  case $lt_echo in
 
15128
  *'\$0 --fallback-echo"')
 
15129
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15130
    ;;
 
15131
  esac
 
15132
 
 
15133
cfgfile="$ofile"
 
15134
 
 
15135
  cat <<__EOF__ >> "$cfgfile"
 
15136
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15137
 
 
15138
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15139
 
 
15140
# Shell to use when invoking shell scripts.
 
15141
SHELL=$lt_SHELL
 
15142
 
 
15143
# Whether or not to build shared libraries.
 
15144
build_libtool_libs=$enable_shared
 
15145
 
 
15146
# Whether or not to build static libraries.
 
15147
build_old_libs=$enable_static
 
15148
 
 
15149
# Whether or not to add -lc for building shared libraries.
 
15150
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15151
 
 
15152
# Whether or not to disallow shared libs when runtime libs are static
 
15153
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15154
 
 
15155
# Whether or not to optimize for fast installation.
 
15156
fast_install=$enable_fast_install
 
15157
 
 
15158
# The host system.
 
15159
host_alias=$host_alias
 
15160
host=$host
 
15161
host_os=$host_os
 
15162
 
 
15163
# The build system.
 
15164
build_alias=$build_alias
 
15165
build=$build
 
15166
build_os=$build_os
 
15167
 
 
15168
# An echo program that does not interpret backslashes.
 
15169
echo=$lt_echo
 
15170
 
 
15171
# The archiver.
 
15172
AR=$lt_AR
 
15173
AR_FLAGS=$lt_AR_FLAGS
 
15174
 
 
15175
# A C compiler.
 
15176
LTCC=$lt_LTCC
 
15177
 
 
15178
# LTCC compiler flags.
 
15179
LTCFLAGS=$lt_LTCFLAGS
 
15180
 
 
15181
# A language-specific compiler.
 
15182
CC=$lt_compiler_F77
 
15183
 
 
15184
# Is the compiler the GNU C compiler?
 
15185
with_gcc=$GCC_F77
 
15186
 
 
15187
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
15188
gcc_ver=\`gcc -dumpversion\`
 
15189
 
 
15190
# An ERE matcher.
 
15191
EGREP=$lt_EGREP
 
15192
 
 
15193
# The linker used to build libraries.
 
15194
LD=$lt_LD_F77
 
15195
 
 
15196
# Whether we need hard or soft links.
 
15197
LN_S=$lt_LN_S
 
15198
 
 
15199
# A BSD-compatible nm program.
 
15200
NM=$lt_NM
 
15201
 
 
15202
# A symbol stripping program
 
15203
STRIP=$lt_STRIP
 
15204
 
 
15205
# Used to examine libraries when file_magic_cmd begins "file"
 
15206
MAGIC_CMD=$MAGIC_CMD
 
15207
 
 
15208
# Used on cygwin: DLL creation program.
 
15209
DLLTOOL="$DLLTOOL"
 
15210
 
 
15211
# Used on cygwin: object dumper.
 
15212
OBJDUMP="$OBJDUMP"
 
15213
 
 
15214
# Used on cygwin: assembler.
 
15215
AS="$AS"
 
15216
 
 
15217
# The name of the directory that contains temporary libtool files.
 
15218
objdir=$objdir
 
15219
 
 
15220
# How to create reloadable object files.
 
15221
reload_flag=$lt_reload_flag
 
15222
reload_cmds=$lt_reload_cmds
 
15223
 
 
15224
# How to pass a linker flag through the compiler.
 
15225
wl=$lt_lt_prog_compiler_wl_F77
 
15226
 
 
15227
# Object file suffix (normally "o").
 
15228
objext="$ac_objext"
 
15229
 
 
15230
# Old archive suffix (normally "a").
 
15231
libext="$libext"
 
15232
 
 
15233
# Shared library suffix (normally ".so").
 
15234
shrext_cmds='$shrext_cmds'
 
15235
 
 
15236
# Executable file suffix (normally "").
 
15237
exeext="$exeext"
 
15238
 
 
15239
# Additional compiler flags for building library objects.
 
15240
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15241
pic_mode=$pic_mode
 
15242
 
 
15243
# What is the maximum length of a command?
 
15244
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15245
 
 
15246
# Does compiler simultaneously support -c and -o options?
 
15247
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15248
 
 
15249
# Must we lock files when doing compilation?
 
15250
need_locks=$lt_need_locks
 
15251
 
 
15252
# Do we need the lib prefix for modules?
 
15253
need_lib_prefix=$need_lib_prefix
 
15254
 
 
15255
# Do we need a version for libraries?
 
15256
need_version=$need_version
 
15257
 
 
15258
# Whether dlopen is supported.
 
15259
dlopen_support=$enable_dlopen
 
15260
 
 
15261
# Whether dlopen of programs is supported.
 
15262
dlopen_self=$enable_dlopen_self
 
15263
 
 
15264
# Whether dlopen of statically linked programs is supported.
 
15265
dlopen_self_static=$enable_dlopen_self_static
 
15266
 
 
15267
# Compiler flag to prevent dynamic linking.
 
15268
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15269
 
 
15270
# Compiler flag to turn off builtin functions.
 
15271
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15272
 
 
15273
# Compiler flag to allow reflexive dlopens.
 
15274
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15275
 
 
15276
# Compiler flag to generate shared objects directly from archives.
 
15277
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15278
 
 
15279
# Compiler flag to generate thread-safe objects.
 
15280
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15281
 
 
15282
# Library versioning type.
 
15283
version_type=$version_type
 
15284
 
 
15285
# Format of library name prefix.
 
15286
libname_spec=$lt_libname_spec
 
15287
 
 
15288
# List of archive names.  First name is the real one, the rest are links.
 
15289
# The last name is the one that the linker finds with -lNAME.
 
15290
library_names_spec=$lt_library_names_spec
 
15291
 
 
15292
# The coded name of the library, if different from the real name.
 
15293
soname_spec=$lt_soname_spec
 
15294
 
 
15295
# Commands used to build and install an old-style archive.
 
15296
RANLIB=$lt_RANLIB
 
15297
old_archive_cmds=$lt_old_archive_cmds_F77
 
15298
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15299
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15300
 
 
15301
# Create an old-style archive from a shared archive.
 
15302
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15303
 
 
15304
# Create a temporary old-style archive to link instead of a shared archive.
 
15305
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15306
 
 
15307
# Commands used to build and install a shared archive.
 
15308
archive_cmds=$lt_archive_cmds_F77
 
15309
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15310
postinstall_cmds=$lt_postinstall_cmds
 
15311
postuninstall_cmds=$lt_postuninstall_cmds
 
15312
 
 
15313
# Commands used to build a loadable module (assumed same as above if empty)
 
15314
module_cmds=$lt_module_cmds_F77
 
15315
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15316
 
 
15317
# Commands to strip libraries.
 
15318
old_striplib=$lt_old_striplib
 
15319
striplib=$lt_striplib
 
15320
 
 
15321
# Dependencies to place before the objects being linked to create a
 
15322
# shared library.
 
15323
predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
15324
 
 
15325
# Dependencies to place after the objects being linked to create a
 
15326
# shared library.
 
15327
postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
15328
 
 
15329
# Dependencies to place before the objects being linked to create a
 
15330
# shared library.
 
15331
predeps=$lt_predeps_F77
 
15332
 
 
15333
# Dependencies to place after the objects being linked to create a
 
15334
# shared library.
 
15335
postdeps=$lt_postdeps_F77
 
15336
 
 
15337
# The library search path used internally by the compiler when linking
 
15338
# a shared library.
 
15339
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
15340
 
 
15341
# Method to check whether dependent libraries are shared objects.
 
15342
deplibs_check_method=$lt_deplibs_check_method
 
15343
 
 
15344
# Command to use when deplibs_check_method == file_magic.
 
15345
file_magic_cmd=$lt_file_magic_cmd
 
15346
 
 
15347
# Flag that allows shared libraries with undefined symbols to be built.
 
15348
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15349
 
 
15350
# Flag that forces no undefined symbols.
 
15351
no_undefined_flag=$lt_no_undefined_flag_F77
 
15352
 
 
15353
# Commands used to finish a libtool library installation in a directory.
 
15354
finish_cmds=$lt_finish_cmds
 
15355
 
 
15356
# Same as above, but a single script fragment to be evaled but not shown.
 
15357
finish_eval=$lt_finish_eval
 
15358
 
 
15359
# Take the output of nm and produce a listing of raw symbols and C names.
 
15360
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15361
 
 
15362
# Transform the output of nm in a proper C declaration
 
15363
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15364
 
 
15365
# Transform the output of nm in a C name address pair
 
15366
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15367
 
 
15368
# This is the shared library runtime path variable.
 
15369
runpath_var=$runpath_var
 
15370
 
 
15371
# This is the shared library path variable.
 
15372
shlibpath_var=$shlibpath_var
 
15373
 
 
15374
# Is shlibpath searched before the hard-coded library search path?
 
15375
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15376
 
 
15377
# How to hardcode a shared library path into an executable.
 
15378
hardcode_action=$hardcode_action_F77
 
15379
 
 
15380
# Whether we should hardcode library paths into libraries.
 
15381
hardcode_into_libs=$hardcode_into_libs
 
15382
 
 
15383
# Flag to hardcode \$libdir into a binary during linking.
 
15384
# This must work even if \$libdir does not exist.
 
15385
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15386
 
 
15387
# If ld is used when linking, flag to hardcode \$libdir into
 
15388
# a binary during linking. This must work even if \$libdir does
 
15389
# not exist.
 
15390
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15391
 
 
15392
# Whether we need a single -rpath flag with a separated argument.
 
15393
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15394
 
 
15395
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15396
# resulting binary.
 
15397
hardcode_direct=$hardcode_direct_F77
 
15398
 
 
15399
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15400
# resulting binary.
 
15401
hardcode_minus_L=$hardcode_minus_L_F77
 
15402
 
 
15403
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15404
# the resulting binary.
 
15405
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15406
 
 
15407
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15408
# and all subsequent libraries and executables linked against it.
 
15409
hardcode_automatic=$hardcode_automatic_F77
 
15410
 
 
15411
# Variables whose values should be saved in libtool wrapper scripts and
 
15412
# restored at relink time.
 
15413
variables_saved_for_relink="$variables_saved_for_relink"
 
15414
 
 
15415
# Whether libtool must link a program against all its dependency libraries.
 
15416
link_all_deplibs=$link_all_deplibs_F77
 
15417
 
 
15418
# Compile-time system search path for libraries
 
15419
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
15420
 
 
15421
# Run-time system search path for libraries
 
15422
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15423
 
 
15424
# Fix the shell variable \$srcfile for the compiler.
 
15425
fix_srcfile_path="$fix_srcfile_path_F77"
 
15426
 
 
15427
# Set to yes if exported symbols are required.
 
15428
always_export_symbols=$always_export_symbols_F77
 
15429
 
 
15430
# The commands to list exported symbols.
 
15431
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15432
 
 
15433
# The commands to extract the exported symbol list from a shared archive.
 
15434
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15435
 
 
15436
# Symbols that should not be listed in the preloaded symbols.
 
15437
exclude_expsyms=$lt_exclude_expsyms_F77
 
15438
 
 
15439
# Symbols that must always be exported.
 
15440
include_expsyms=$lt_include_expsyms_F77
 
15441
 
 
15442
# ### END LIBTOOL TAG CONFIG: $tagname
 
15443
 
 
15444
__EOF__
 
15445
 
 
15446
 
 
15447
else
 
15448
  # If there is no Makefile yet, we rely on a make rule to execute
 
15449
  # `config.status --recheck' to rerun these tests and create the
 
15450
  # libtool script then.
 
15451
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15452
  if test -f "$ltmain_in"; then
 
15453
    test -f Makefile && make "$ltmain"
 
15454
  fi
 
15455
fi
 
15456
 
 
15457
 
 
15458
ac_ext=c
 
15459
ac_cpp='$CPP $CPPFLAGS'
 
15460
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15461
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15462
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15463
 
 
15464
CC="$lt_save_CC"
 
15465
 
 
15466
        else
 
15467
          tagname=""
 
15468
        fi
 
15469
        ;;
 
15470
 
 
15471
      GCJ)
 
15472
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15473
 
 
15474
 
 
15475
 
 
15476
# Source file extension for Java test sources.
 
15477
ac_ext=java
 
15478
 
 
15479
# Object file extension for compiled Java test sources.
 
15480
objext=o
 
15481
objext_GCJ=$objext
 
15482
 
 
15483
# Code to be used in simple compile tests
 
15484
lt_simple_compile_test_code="class foo {}\n"
 
15485
 
 
15486
# Code to be used in simple link tests
 
15487
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
15488
 
 
15489
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15490
 
 
15491
# If no C compiler was specified, use CC.
 
15492
LTCC=${LTCC-"$CC"}
 
15493
 
 
15494
# If no C compiler flags were specified, use CFLAGS.
 
15495
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
15496
 
 
15497
# Allow CC to be a program name with arguments.
 
15498
compiler=$CC
 
15499
 
 
15500
 
 
15501
# save warnings/boilerplate of simple test code
 
15502
ac_outfile=conftest.$ac_objext
 
15503
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15504
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15505
_lt_compiler_boilerplate=`cat conftest.err`
 
15506
$rm conftest*
 
15507
 
 
15508
ac_outfile=conftest.$ac_objext
 
15509
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15510
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15511
_lt_linker_boilerplate=`cat conftest.err`
 
15512
$rm conftest*
 
15513
 
 
15514
 
 
15515
# Allow CC to be a program name with arguments.
 
15516
lt_save_CC="$CC"
 
15517
CC=${GCJ-"gcj"}
 
15518
compiler=$CC
 
15519
compiler_GCJ=$CC
 
15520
for cc_temp in $compiler""; do
 
15521
  case $cc_temp in
 
15522
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15523
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15524
    \-*) ;;
 
15525
    *) break;;
 
15526
  esac
 
15527
done
 
15528
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15529
 
 
15530
 
 
15531
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15532
archive_cmds_need_lc_GCJ=no
 
15533
 
 
15534
old_archive_cmds_GCJ=$old_archive_cmds
 
15535
 
 
15536
 
 
15537
lt_prog_compiler_no_builtin_flag_GCJ=
 
15538
 
 
15539
if test "$GCC" = yes; then
 
15540
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15541
 
 
15542
 
 
15543
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15544
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
15545
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15546
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15547
else
 
15548
  lt_cv_prog_compiler_rtti_exceptions=no
 
15549
  ac_outfile=conftest.$ac_objext
 
15550
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15551
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
15552
   # Insert the option either (1) after the last *FLAGS variable, or
 
15553
   # (2) before a word containing "conftest.", or (3) at the end.
 
15554
   # Note that $ac_compile itself does not contain backslashes and begins
 
15555
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15556
   # The option is referenced via a variable to avoid confusing sed.
 
15557
   lt_compile=`echo "$ac_compile" | $SED \
 
15558
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15559
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15560
   -e 's:$: $lt_compiler_flag:'`
 
15561
   (eval echo "\"\$as_me:15561: $lt_compile\"" >&5)
 
15562
   (eval "$lt_compile" 2>conftest.err)
 
15563
   ac_status=$?
 
15564
   cat conftest.err >&5
 
15565
   echo "$as_me:15565: \$? = $ac_status" >&5
 
15566
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15567
     # The compiler can only warn and ignore the option if not recognized
 
15568
     # So say no if there are warnings other than the usual output.
 
15569
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15570
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15571
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
15572
       lt_cv_prog_compiler_rtti_exceptions=yes
 
15573
     fi
 
15574
   fi
 
15575
   $rm conftest*
 
15576
 
 
15577
fi
 
15578
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15579
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
15580
 
 
15581
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
15582
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
15583
else
 
15584
    :
 
15585
fi
 
15586
 
 
15587
fi
 
15588
 
 
15589
lt_prog_compiler_wl_GCJ=
 
15590
lt_prog_compiler_pic_GCJ=
 
15591
lt_prog_compiler_static_GCJ=
 
15592
 
 
15593
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15594
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15595
 
 
15596
  if test "$GCC" = yes; then
 
15597
    lt_prog_compiler_wl_GCJ='-Wl,'
 
15598
    lt_prog_compiler_static_GCJ='-static'
 
15599
 
 
15600
    case $host_os in
 
15601
      aix*)
 
15602
      # All AIX code is PIC.
 
15603
      if test "$host_cpu" = ia64; then
 
15604
        # AIX 5 now supports IA64 processor
 
15605
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15606
      fi
 
15607
      ;;
 
15608
 
 
15609
    amigaos*)
 
15610
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15611
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15612
      # like `-m68040'.
 
15613
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
15614
      ;;
 
15615
 
 
15616
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15617
      # PIC is the default for these OSes.
 
15618
      ;;
 
15619
 
 
15620
    mingw* | pw32* | os2*)
 
15621
      # This hack is so that the source file can tell whether it is being
 
15622
      # built for inclusion in a dll (and should export symbols for example).
 
15623
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15624
      ;;
 
15625
 
 
15626
    darwin* | rhapsody*)
 
15627
      # PIC is the default on this platform
 
15628
      # Common symbols not allowed in MH_DYLIB files
 
15629
      lt_prog_compiler_pic_GCJ='-fno-common'
 
15630
      ;;
 
15631
 
 
15632
    interix3*)
 
15633
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
15634
      # Instead, we relocate shared libraries at runtime.
 
15635
      ;;
 
15636
 
 
15637
    msdosdjgpp*)
 
15638
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15639
      # on systems that don't support them.
 
15640
      lt_prog_compiler_can_build_shared_GCJ=no
 
15641
      enable_shared=no
 
15642
      ;;
 
15643
 
 
15644
    sysv4*MP*)
 
15645
      if test -d /usr/nec; then
 
15646
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
15647
      fi
 
15648
      ;;
 
15649
 
 
15650
    hpux*)
 
15651
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15652
      # not for PA HP-UX.
 
15653
      case $host_cpu in
 
15654
      hppa*64*|ia64*)
 
15655
        # +Z the default
 
15656
        ;;
 
15657
      *)
 
15658
        lt_prog_compiler_pic_GCJ='-fPIC'
 
15659
        ;;
 
15660
      esac
 
15661
      ;;
 
15662
 
 
15663
    *)
 
15664
      lt_prog_compiler_pic_GCJ='-fPIC'
 
15665
      ;;
 
15666
    esac
 
15667
  else
 
15668
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15669
    case $host_os in
 
15670
    aix*)
 
15671
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15672
      if test "$host_cpu" = ia64; then
 
15673
        # AIX 5 now supports IA64 processor
 
15674
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15675
      else
 
15676
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
15677
      fi
 
15678
      ;;
 
15679
      darwin*)
 
15680
        # PIC is the default on this platform
 
15681
        # Common symbols not allowed in MH_DYLIB files
 
15682
       case $cc_basename in
 
15683
         xlc*)
 
15684
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
15685
         lt_prog_compiler_wl_GCJ='-Wl,'
 
15686
         ;;
 
15687
       esac
 
15688
       ;;
 
15689
 
 
15690
    mingw* | pw32* | os2*)
 
15691
      # This hack is so that the source file can tell whether it is being
 
15692
      # built for inclusion in a dll (and should export symbols for example).
 
15693
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15694
      ;;
 
15695
 
 
15696
    hpux9* | hpux10* | hpux11*)
 
15697
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15698
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15699
      # not for PA HP-UX.
 
15700
      case $host_cpu in
 
15701
      hppa*64*|ia64*)
 
15702
        # +Z the default
 
15703
        ;;
 
15704
      *)
 
15705
        lt_prog_compiler_pic_GCJ='+Z'
 
15706
        ;;
 
15707
      esac
 
15708
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15709
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
15710
      ;;
 
15711
 
 
15712
    irix5* | irix6* | nonstopux*)
 
15713
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15714
      # PIC (with -KPIC) is the default.
 
15715
      lt_prog_compiler_static_GCJ='-non_shared'
 
15716
      ;;
 
15717
 
 
15718
    newsos6)
 
15719
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15720
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15721
      ;;
 
15722
 
 
15723
    linux*)
 
15724
      case $cc_basename in
 
15725
      icc* | ecc*)
 
15726
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15727
        lt_prog_compiler_pic_GCJ='-KPIC'
 
15728
        lt_prog_compiler_static_GCJ='-static'
 
15729
        ;;
 
15730
      pgcc* | pgf77* | pgf90* | pgf95*)
 
15731
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
15732
        # which looks to be a dead project)
 
15733
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15734
        lt_prog_compiler_pic_GCJ='-fpic'
 
15735
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15736
        ;;
 
15737
      ccc*)
 
15738
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15739
        # All Alpha code is PIC.
 
15740
        lt_prog_compiler_static_GCJ='-non_shared'
 
15741
        ;;
 
15742
      esac
 
15743
      ;;
 
15744
 
 
15745
    osf3* | osf4* | osf5*)
 
15746
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15747
      # All OSF/1 code is PIC.
 
15748
      lt_prog_compiler_static_GCJ='-non_shared'
 
15749
      ;;
 
15750
 
 
15751
    solaris*)
 
15752
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15753
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15754
      case $cc_basename in
 
15755
      f77* | f90* | f95*)
 
15756
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
15757
      *)
 
15758
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
15759
      esac
 
15760
      ;;
 
15761
 
 
15762
    sunos4*)
 
15763
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
15764
      lt_prog_compiler_pic_GCJ='-PIC'
 
15765
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15766
      ;;
 
15767
 
 
15768
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
15769
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15770
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15771
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15772
      ;;
 
15773
 
 
15774
    sysv4*MP*)
 
15775
      if test -d /usr/nec ;then
 
15776
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
15777
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15778
      fi
 
15779
      ;;
 
15780
 
 
15781
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
15782
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15783
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15784
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15785
      ;;
 
15786
 
 
15787
    unicos*)
 
15788
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15789
      lt_prog_compiler_can_build_shared_GCJ=no
 
15790
      ;;
 
15791
 
 
15792
    uts4*)
 
15793
      lt_prog_compiler_pic_GCJ='-pic'
 
15794
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15795
      ;;
 
15796
 
 
15797
    *)
 
15798
      lt_prog_compiler_can_build_shared_GCJ=no
 
15799
      ;;
 
15800
    esac
 
15801
  fi
 
15802
 
 
15803
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
15804
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
15805
 
 
15806
#
 
15807
# Check to make sure the PIC flag actually works.
 
15808
#
 
15809
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
15810
 
 
15811
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
15812
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
15813
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
15814
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15815
else
 
15816
  lt_prog_compiler_pic_works_GCJ=no
 
15817
  ac_outfile=conftest.$ac_objext
 
15818
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15819
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
15820
   # Insert the option either (1) after the last *FLAGS variable, or
 
15821
   # (2) before a word containing "conftest.", or (3) at the end.
 
15822
   # Note that $ac_compile itself does not contain backslashes and begins
 
15823
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15824
   # The option is referenced via a variable to avoid confusing sed.
 
15825
   lt_compile=`echo "$ac_compile" | $SED \
 
15826
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15827
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15828
   -e 's:$: $lt_compiler_flag:'`
 
15829
   (eval echo "\"\$as_me:15829: $lt_compile\"" >&5)
 
15830
   (eval "$lt_compile" 2>conftest.err)
 
15831
   ac_status=$?
 
15832
   cat conftest.err >&5
 
15833
   echo "$as_me:15833: \$? = $ac_status" >&5
 
15834
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15835
     # The compiler can only warn and ignore the option if not recognized
 
15836
     # So say no if there are warnings other than the usual output.
 
15837
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15838
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15839
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
15840
       lt_prog_compiler_pic_works_GCJ=yes
 
15841
     fi
 
15842
   fi
 
15843
   $rm conftest*
 
15844
 
 
15845
fi
 
15846
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
15847
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
15848
 
 
15849
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
15850
    case $lt_prog_compiler_pic_GCJ in
 
15851
     "" | " "*) ;;
 
15852
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
15853
     esac
 
15854
else
 
15855
    lt_prog_compiler_pic_GCJ=
 
15856
     lt_prog_compiler_can_build_shared_GCJ=no
 
15857
fi
 
15858
 
 
15859
fi
 
15860
case $host_os in
 
15861
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15862
  *djgpp*)
 
15863
    lt_prog_compiler_pic_GCJ=
 
15864
    ;;
 
15865
  *)
 
15866
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
15867
    ;;
 
15868
esac
 
15869
 
 
15870
#
 
15871
# Check to make sure the static flag actually works.
 
15872
#
 
15873
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
15874
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
15875
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
15876
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
15877
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15878
else
 
15879
  lt_prog_compiler_static_works_GCJ=no
 
15880
   save_LDFLAGS="$LDFLAGS"
 
15881
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
15882
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
15883
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
15884
     # The linker can only warn and ignore the option if not recognized
 
15885
     # So say no if there are warnings
 
15886
     if test -s conftest.err; then
 
15887
       # Append any errors to the config.log.
 
15888
       cat conftest.err 1>&5
 
15889
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
15890
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15891
       if diff conftest.exp conftest.er2 >/dev/null; then
 
15892
         lt_prog_compiler_static_works_GCJ=yes
 
15893
       fi
 
15894
     else
 
15895
       lt_prog_compiler_static_works_GCJ=yes
 
15896
     fi
 
15897
   fi
 
15898
   $rm conftest*
 
15899
   LDFLAGS="$save_LDFLAGS"
 
15900
 
 
15901
fi
 
15902
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
15903
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
 
15904
 
 
15905
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
15906
    :
 
15907
else
 
15908
    lt_prog_compiler_static_GCJ=
 
15909
fi
 
15910
 
 
15911
 
 
15912
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15913
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15914
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
15915
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15916
else
 
15917
  lt_cv_prog_compiler_c_o_GCJ=no
 
15918
   $rm -r conftest 2>/dev/null
 
15919
   mkdir conftest
 
15920
   cd conftest
 
15921
   mkdir out
 
15922
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15923
 
 
15924
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15925
   # Insert the option either (1) after the last *FLAGS variable, or
 
15926
   # (2) before a word containing "conftest.", or (3) at the end.
 
15927
   # Note that $ac_compile itself does not contain backslashes and begins
 
15928
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15929
   lt_compile=`echo "$ac_compile" | $SED \
 
15930
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15931
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15932
   -e 's:$: $lt_compiler_flag:'`
 
15933
   (eval echo "\"\$as_me:15933: $lt_compile\"" >&5)
 
15934
   (eval "$lt_compile" 2>out/conftest.err)
 
15935
   ac_status=$?
 
15936
   cat out/conftest.err >&5
 
15937
   echo "$as_me:15937: \$? = $ac_status" >&5
 
15938
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15939
   then
 
15940
     # The compiler can only warn and ignore the option if not recognized
 
15941
     # So say no if there are warnings
 
15942
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
15943
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
15944
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
15945
       lt_cv_prog_compiler_c_o_GCJ=yes
 
15946
     fi
 
15947
   fi
 
15948
   chmod u+w . 2>&5
 
15949
   $rm conftest*
 
15950
   # SGI C++ compiler will create directory out/ii_files/ for
 
15951
   # template instantiation
 
15952
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15953
   $rm out/* && rmdir out
 
15954
   cd ..
 
15955
   rmdir conftest
 
15956
   $rm conftest*
 
15957
 
 
15958
fi
 
15959
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
15960
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
15961
 
 
15962
 
 
15963
hard_links="nottested"
 
15964
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
15965
  # do not overwrite the value of need_locks provided by the user
 
15966
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15967
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15968
  hard_links=yes
 
15969
  $rm conftest*
 
15970
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15971
  touch conftest.a
 
15972
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15973
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15974
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15975
echo "${ECHO_T}$hard_links" >&6
 
15976
  if test "$hard_links" = no; then
 
15977
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15978
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15979
    need_locks=warn
 
15980
  fi
 
15981
else
 
15982
  need_locks=no
 
15983
fi
 
15984
 
 
15985
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15986
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15987
 
 
15988
  runpath_var=
 
15989
  allow_undefined_flag_GCJ=
 
15990
  enable_shared_with_static_runtimes_GCJ=no
 
15991
  archive_cmds_GCJ=
 
15992
  archive_expsym_cmds_GCJ=
 
15993
  old_archive_From_new_cmds_GCJ=
 
15994
  old_archive_from_expsyms_cmds_GCJ=
 
15995
  export_dynamic_flag_spec_GCJ=
 
15996
  whole_archive_flag_spec_GCJ=
 
15997
  thread_safe_flag_spec_GCJ=
 
15998
  hardcode_libdir_flag_spec_GCJ=
 
15999
  hardcode_libdir_flag_spec_ld_GCJ=
 
16000
  hardcode_libdir_separator_GCJ=
 
16001
  hardcode_direct_GCJ=no
 
16002
  hardcode_minus_L_GCJ=no
 
16003
  hardcode_shlibpath_var_GCJ=unsupported
 
16004
  link_all_deplibs_GCJ=unknown
 
16005
  hardcode_automatic_GCJ=no
 
16006
  module_cmds_GCJ=
 
16007
  module_expsym_cmds_GCJ=
 
16008
  always_export_symbols_GCJ=no
 
16009
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16010
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16011
  # included in the symbol list
 
16012
  include_expsyms_GCJ=
 
16013
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16014
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16015
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16016
  # as well as any symbol that contains `d'.
 
16017
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16018
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16019
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16020
  # the symbol is explicitly referenced.  Since portable code cannot
 
16021
  # rely on this symbol name, it's probably fine to never include it in
 
16022
  # preloaded symbol tables.
 
16023
  extract_expsyms_cmds=
 
16024
  # Just being paranoid about ensuring that cc_basename is set.
 
16025
  for cc_temp in $compiler""; do
 
16026
  case $cc_temp in
 
16027
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16028
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16029
    \-*) ;;
 
16030
    *) break;;
 
16031
  esac
 
16032
done
 
16033
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16034
 
 
16035
  case $host_os in
 
16036
  cygwin* | mingw* | pw32*)
 
16037
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16038
    # When not using gcc, we currently assume that we are using
 
16039
    # Microsoft Visual C++.
 
16040
    if test "$GCC" != yes; then
 
16041
      with_gnu_ld=no
 
16042
    fi
 
16043
    ;;
 
16044
  interix*)
 
16045
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16046
    with_gnu_ld=yes
 
16047
    ;;
 
16048
  openbsd*)
 
16049
    with_gnu_ld=no
 
16050
    ;;
 
16051
  esac
 
16052
 
 
16053
  ld_shlibs_GCJ=yes
 
16054
  if test "$with_gnu_ld" = yes; then
 
16055
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16056
    wlarc='${wl}'
 
16057
 
 
16058
    # Set some defaults for GNU ld with shared library support. These
 
16059
    # are reset later if shared libraries are not supported. Putting them
 
16060
    # here allows them to be overridden if necessary.
 
16061
    runpath_var=LD_RUN_PATH
 
16062
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16063
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16064
    # ancient GNU ld didn't support --whole-archive et. al.
 
16065
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16066
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16067
      else
 
16068
        whole_archive_flag_spec_GCJ=
 
16069
    fi
 
16070
    supports_anon_versioning=no
 
16071
    case `$LD -v 2>/dev/null` in
 
16072
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16073
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16074
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16075
      *\ 2.11.*) ;; # other 2.11 versions
 
16076
      *) supports_anon_versioning=yes ;;
 
16077
    esac
 
16078
 
 
16079
    # See if GNU ld supports shared libraries.
 
16080
    case $host_os in
 
16081
    aix3* | aix4* | aix5*)
 
16082
      # On AIX/PPC, the GNU linker is very broken
 
16083
      if test "$host_cpu" != ia64; then
 
16084
        ld_shlibs_GCJ=no
 
16085
        cat <<EOF 1>&2
 
16086
 
 
16087
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16088
*** to be unable to reliably create shared libraries on AIX.
 
16089
*** Therefore, libtool is disabling shared libraries support.  If you
 
16090
*** really care for shared libraries, you may want to modify your PATH
 
16091
*** so that a non-GNU linker is found, and then restart.
 
16092
 
 
16093
EOF
 
16094
      fi
 
16095
      ;;
 
16096
 
 
16097
    amigaos*)
 
16098
      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)'
 
16099
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16100
      hardcode_minus_L_GCJ=yes
 
16101
 
 
16102
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16103
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16104
      # to version 4, is to share data among multiple programs linked
 
16105
      # with the same dynamic library.  Since this doesn't match the
 
16106
      # behavior of shared libraries on other platforms, we can't use
 
16107
      # them.
 
16108
      ld_shlibs_GCJ=no
 
16109
      ;;
 
16110
 
 
16111
    beos*)
 
16112
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16113
        allow_undefined_flag_GCJ=unsupported
 
16114
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16115
        # support --undefined.  This deserves some investigation.  FIXME
 
16116
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16117
      else
 
16118
        ld_shlibs_GCJ=no
 
16119
      fi
 
16120
      ;;
 
16121
 
 
16122
    cygwin* | mingw* | pw32*)
 
16123
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16124
      # as there is no search path for DLLs.
 
16125
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16126
      allow_undefined_flag_GCJ=unsupported
 
16127
      always_export_symbols_GCJ=no
 
16128
      enable_shared_with_static_runtimes_GCJ=yes
 
16129
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16130
 
 
16131
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16132
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16133
        # If the export-symbols file already is a .def file (1st line
 
16134
        # is EXPORTS), use it as is; otherwise, prepend...
 
16135
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16136
          cp $export_symbols $output_objdir/$soname.def;
 
16137
        else
 
16138
          echo EXPORTS > $output_objdir/$soname.def;
 
16139
          cat $export_symbols >> $output_objdir/$soname.def;
 
16140
        fi~
 
16141
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16142
      else
 
16143
        ld_shlibs_GCJ=no
 
16144
      fi
 
16145
      ;;
 
16146
 
 
16147
    interix3*)
 
16148
      hardcode_direct_GCJ=no
 
16149
      hardcode_shlibpath_var_GCJ=no
 
16150
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16151
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16152
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16153
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16154
      # default) and relocated if they conflict, which is a slow very memory
 
16155
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16156
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16157
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16158
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
16159
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
16160
      ;;
 
16161
 
 
16162
    linux*)
 
16163
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16164
        tmp_addflag=
 
16165
        case $cc_basename,$host_cpu in
 
16166
        pgcc*)                          # Portland Group C compiler
 
16167
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16168
          tmp_addflag=' $pic_flag'
 
16169
          ;;
 
16170
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16171
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16172
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16173
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16174
          tmp_addflag=' -i_dynamic' ;;
 
16175
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16176
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16177
        ifc* | ifort*)                  # Intel Fortran compiler
 
16178
          tmp_addflag=' -nofor_main' ;;
 
16179
        esac
 
16180
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16181
 
 
16182
        if test $supports_anon_versioning = yes; then
 
16183
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16184
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16185
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16186
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16187
        fi
 
16188
      else
 
16189
        ld_shlibs_GCJ=no
 
16190
      fi
 
16191
      ;;
 
16192
 
 
16193
    netbsd*)
 
16194
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16195
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16196
        wlarc=
 
16197
      else
 
16198
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16199
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16200
      fi
 
16201
      ;;
 
16202
 
 
16203
    solaris*)
 
16204
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16205
        ld_shlibs_GCJ=no
 
16206
        cat <<EOF 1>&2
 
16207
 
 
16208
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16209
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16210
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16211
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16212
*** your PATH or compiler configuration so that the native linker is
 
16213
*** used, and then restart.
 
16214
 
 
16215
EOF
 
16216
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16217
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16218
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16219
      else
 
16220
        ld_shlibs_GCJ=no
 
16221
      fi
 
16222
      ;;
 
16223
 
 
16224
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16225
      case `$LD -v 2>&1` in
 
16226
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
16227
        ld_shlibs_GCJ=no
 
16228
        cat <<_LT_EOF 1>&2
 
16229
 
 
16230
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16231
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16232
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16233
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16234
*** your PATH or compiler configuration so that the native linker is
 
16235
*** used, and then restart.
 
16236
 
 
16237
_LT_EOF
 
16238
        ;;
 
16239
        *)
 
16240
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16241
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16242
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16243
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16244
          else
 
16245
            ld_shlibs_GCJ=no
 
16246
          fi
 
16247
        ;;
 
16248
      esac
 
16249
      ;;
 
16250
 
 
16251
    sunos4*)
 
16252
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16253
      wlarc=
 
16254
      hardcode_direct_GCJ=yes
 
16255
      hardcode_shlibpath_var_GCJ=no
 
16256
      ;;
 
16257
 
 
16258
    *)
 
16259
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16260
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16261
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16262
      else
 
16263
        ld_shlibs_GCJ=no
 
16264
      fi
 
16265
      ;;
 
16266
    esac
 
16267
 
 
16268
    if test "$ld_shlibs_GCJ" = no; then
 
16269
      runpath_var=
 
16270
      hardcode_libdir_flag_spec_GCJ=
 
16271
      export_dynamic_flag_spec_GCJ=
 
16272
      whole_archive_flag_spec_GCJ=
 
16273
    fi
 
16274
  else
 
16275
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16276
    case $host_os in
 
16277
    aix3*)
 
16278
      allow_undefined_flag_GCJ=unsupported
 
16279
      always_export_symbols_GCJ=yes
 
16280
      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'
 
16281
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16282
      # are no directories specified by -L.
 
16283
      hardcode_minus_L_GCJ=yes
 
16284
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
16285
        # Neither direct hardcoding nor static linking is supported with a
 
16286
        # broken collect2.
 
16287
        hardcode_direct_GCJ=unsupported
 
16288
      fi
 
16289
      ;;
 
16290
 
 
16291
    aix4* | aix5*)
 
16292
      if test "$host_cpu" = ia64; then
 
16293
        # On IA64, the linker does run time linking by default, so we don't
 
16294
        # have to do anything special.
 
16295
        aix_use_runtimelinking=no
 
16296
        exp_sym_flag='-Bexport'
 
16297
        no_entry_flag=""
 
16298
      else
 
16299
        # If we're using GNU nm, then we don't want the "-C" option.
 
16300
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16301
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16302
          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'
 
16303
        else
 
16304
          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'
 
16305
        fi
 
16306
        aix_use_runtimelinking=no
 
16307
 
 
16308
        # Test if we are trying to use run time linking or normal
 
16309
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16310
        # need to do runtime linking.
 
16311
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16312
          for ld_flag in $LDFLAGS; do
 
16313
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16314
            aix_use_runtimelinking=yes
 
16315
            break
 
16316
          fi
 
16317
          done
 
16318
          ;;
 
16319
        esac
 
16320
 
 
16321
        exp_sym_flag='-bexport'
 
16322
        no_entry_flag='-bnoentry'
 
16323
      fi
 
16324
 
 
16325
      # When large executables or shared objects are built, AIX ld can
 
16326
      # have problems creating the table of contents.  If linking a library
 
16327
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16328
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16329
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16330
 
 
16331
      archive_cmds_GCJ=''
 
16332
      hardcode_direct_GCJ=yes
 
16333
      hardcode_libdir_separator_GCJ=':'
 
16334
      link_all_deplibs_GCJ=yes
 
16335
 
 
16336
      if test "$GCC" = yes; then
 
16337
        case $host_os in aix4.[012]|aix4.[012].*)
 
16338
        # We only want to do this on AIX 4.2 and lower, the check
 
16339
        # below for broken collect2 doesn't work under 4.3+
 
16340
          collect2name=`${CC} -print-prog-name=collect2`
 
16341
          if test -f "$collect2name" && \
 
16342
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16343
          then
 
16344
          # We have reworked collect2
 
16345
          hardcode_direct_GCJ=yes
 
16346
          else
 
16347
          # We have old collect2
 
16348
          hardcode_direct_GCJ=unsupported
 
16349
          # It fails to find uninstalled libraries when the uninstalled
 
16350
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16351
          # to unsupported forces relinking
 
16352
          hardcode_minus_L_GCJ=yes
 
16353
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16354
          hardcode_libdir_separator_GCJ=
 
16355
          fi
 
16356
          ;;
 
16357
        esac
 
16358
        shared_flag='-shared'
 
16359
        if test "$aix_use_runtimelinking" = yes; then
 
16360
          shared_flag="$shared_flag "'${wl}-G'
 
16361
        fi
 
16362
      else
 
16363
        # not using gcc
 
16364
        if test "$host_cpu" = ia64; then
 
16365
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16366
        # chokes on -Wl,-G. The following line is correct:
 
16367
          shared_flag='-G'
 
16368
        else
 
16369
          if test "$aix_use_runtimelinking" = yes; then
 
16370
            shared_flag='${wl}-G'
 
16371
          else
 
16372
            shared_flag='${wl}-bM:SRE'
 
16373
          fi
 
16374
        fi
 
16375
      fi
 
16376
 
 
16377
      # It seems that -bexpall does not export symbols beginning with
 
16378
      # underscore (_), so it is better to generate a list of symbols to export.
 
16379
      always_export_symbols_GCJ=yes
 
16380
      if test "$aix_use_runtimelinking" = yes; then
 
16381
        # Warning - without using the other runtime loading flags (-brtl),
 
16382
        # -berok will link without error, but may produce a broken library.
 
16383
        allow_undefined_flag_GCJ='-berok'
 
16384
       # Determine the default libpath from the value encoded in an empty executable.
 
16385
       cat >conftest.$ac_ext <<_ACEOF
 
16386
/* confdefs.h.  */
 
16387
_ACEOF
 
16388
cat confdefs.h >>conftest.$ac_ext
 
16389
cat >>conftest.$ac_ext <<_ACEOF
 
16390
/* end confdefs.h.  */
 
16391
 
 
16392
int
 
16393
main ()
 
16394
{
 
16395
 
 
16396
  ;
 
16397
  return 0;
 
16398
}
 
16399
_ACEOF
 
16400
rm -f conftest.$ac_objext conftest$ac_exeext
 
16401
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16402
  (eval $ac_link) 2>conftest.er1
 
16403
  ac_status=$?
 
16404
  grep -v '^ *+' conftest.er1 >conftest.err
 
16405
  rm -f conftest.er1
 
16406
  cat conftest.err >&5
 
16407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16408
  (exit $ac_status); } &&
 
16409
         { ac_try='test -z "$ac_c_werror_flag"
 
16410
                         || test ! -s conftest.err'
 
16411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16412
  (eval $ac_try) 2>&5
 
16413
  ac_status=$?
 
16414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16415
  (exit $ac_status); }; } &&
 
16416
         { ac_try='test -s conftest$ac_exeext'
 
16417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16418
  (eval $ac_try) 2>&5
 
16419
  ac_status=$?
 
16420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16421
  (exit $ac_status); }; }; then
 
16422
 
 
16423
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16424
}'`
 
16425
# Check for a 64-bit object if we didn't find anything.
 
16426
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; }
 
16427
}'`; fi
 
16428
else
 
16429
  echo "$as_me: failed program was:" >&5
 
16430
sed 's/^/| /' conftest.$ac_ext >&5
 
16431
 
 
16432
fi
 
16433
rm -f conftest.err conftest.$ac_objext \
 
16434
      conftest$ac_exeext conftest.$ac_ext
 
16435
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16436
 
 
16437
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16438
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $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"
 
16439
       else
 
16440
        if test "$host_cpu" = ia64; then
 
16441
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16442
          allow_undefined_flag_GCJ="-z nodefs"
 
16443
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
16444
        else
 
16445
         # Determine the default libpath from the value encoded in an empty executable.
 
16446
         cat >conftest.$ac_ext <<_ACEOF
 
16447
/* confdefs.h.  */
 
16448
_ACEOF
 
16449
cat confdefs.h >>conftest.$ac_ext
 
16450
cat >>conftest.$ac_ext <<_ACEOF
 
16451
/* end confdefs.h.  */
 
16452
 
 
16453
int
 
16454
main ()
 
16455
{
 
16456
 
 
16457
  ;
 
16458
  return 0;
 
16459
}
 
16460
_ACEOF
 
16461
rm -f conftest.$ac_objext conftest$ac_exeext
 
16462
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16463
  (eval $ac_link) 2>conftest.er1
 
16464
  ac_status=$?
 
16465
  grep -v '^ *+' conftest.er1 >conftest.err
 
16466
  rm -f conftest.er1
 
16467
  cat conftest.err >&5
 
16468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16469
  (exit $ac_status); } &&
 
16470
         { ac_try='test -z "$ac_c_werror_flag"
 
16471
                         || test ! -s conftest.err'
 
16472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16473
  (eval $ac_try) 2>&5
 
16474
  ac_status=$?
 
16475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16476
  (exit $ac_status); }; } &&
 
16477
         { ac_try='test -s conftest$ac_exeext'
 
16478
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16479
  (eval $ac_try) 2>&5
 
16480
  ac_status=$?
 
16481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16482
  (exit $ac_status); }; }; then
 
16483
 
 
16484
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16485
}'`
 
16486
# Check for a 64-bit object if we didn't find anything.
 
16487
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; }
 
16488
}'`; fi
 
16489
else
 
16490
  echo "$as_me: failed program was:" >&5
 
16491
sed 's/^/| /' conftest.$ac_ext >&5
 
16492
 
 
16493
fi
 
16494
rm -f conftest.err conftest.$ac_objext \
 
16495
      conftest$ac_exeext conftest.$ac_ext
 
16496
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16497
 
 
16498
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16499
          # Warning - without using the other run time loading flags,
 
16500
          # -berok will link without error, but may produce a broken library.
 
16501
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16502
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16503
          # Exported symbols can be pulled into shared objects from archives
 
16504
          whole_archive_flag_spec_GCJ='$convenience'
 
16505
          archive_cmds_need_lc_GCJ=yes
 
16506
          # This is similar to how AIX traditionally builds its shared libraries.
 
16507
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
16508
        fi
 
16509
      fi
 
16510
      ;;
 
16511
 
 
16512
    amigaos*)
 
16513
      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)'
 
16514
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16515
      hardcode_minus_L_GCJ=yes
 
16516
      # see comment about different semantics on the GNU ld section
 
16517
      ld_shlibs_GCJ=no
 
16518
      ;;
 
16519
 
 
16520
    bsdi[45]*)
 
16521
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16522
      ;;
 
16523
 
 
16524
    cygwin* | mingw* | pw32*)
 
16525
      # When not using gcc, we currently assume that we are using
 
16526
      # Microsoft Visual C++.
 
16527
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16528
      # no search path for DLLs.
 
16529
      hardcode_libdir_flag_spec_GCJ=' '
 
16530
      allow_undefined_flag_GCJ=unsupported
 
16531
      # Tell ltmain to make .lib files, not .a files.
 
16532
      libext=lib
 
16533
      # Tell ltmain to make .dll files, not .so files.
 
16534
      shrext_cmds=".dll"
 
16535
      # FIXME: Setting linknames here is a bad hack.
 
16536
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16537
      # The linker will automatically build a .lib file if we build a DLL.
 
16538
      old_archive_From_new_cmds_GCJ='true'
 
16539
      # FIXME: Should let the user specify the lib program.
 
16540
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16541
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
16542
      enable_shared_with_static_runtimes_GCJ=yes
 
16543
      ;;
 
16544
 
 
16545
    darwin* | rhapsody*)
 
16546
      case $host_os in
 
16547
        rhapsody* | darwin1.[012])
 
16548
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16549
         ;;
 
16550
       *) # Darwin 1.3 on
 
16551
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16552
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16553
         else
 
16554
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16555
             10.[012])
 
16556
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16557
               ;;
 
16558
             10.*)
 
16559
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16560
               ;;
 
16561
           esac
 
16562
         fi
 
16563
         ;;
 
16564
      esac
 
16565
      archive_cmds_need_lc_GCJ=no
 
16566
      hardcode_direct_GCJ=no
 
16567
      hardcode_automatic_GCJ=yes
 
16568
      hardcode_shlibpath_var_GCJ=unsupported
 
16569
      whole_archive_flag_spec_GCJ=''
 
16570
      link_all_deplibs_GCJ=yes
 
16571
    if test "$GCC" = yes ; then
 
16572
        output_verbose_link_cmd='echo'
 
16573
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16574
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16575
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16576
      archive_expsym_cmds_GCJ='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}'
 
16577
      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}'
 
16578
    else
 
16579
      case $cc_basename in
 
16580
        xlc*)
 
16581
         output_verbose_link_cmd='echo'
 
16582
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16583
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16584
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16585
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16586
          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}'
 
16587
          ;;
 
16588
       *)
 
16589
         ld_shlibs_GCJ=no
 
16590
          ;;
 
16591
      esac
 
16592
    fi
 
16593
      ;;
 
16594
 
 
16595
    dgux*)
 
16596
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16597
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16598
      hardcode_shlibpath_var_GCJ=no
 
16599
      ;;
 
16600
 
 
16601
    freebsd1*)
 
16602
      ld_shlibs_GCJ=no
 
16603
      ;;
 
16604
 
 
16605
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16606
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16607
    # does not break anything, and helps significantly (at the cost of a little
 
16608
    # extra space).
 
16609
    freebsd2.2*)
 
16610
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16611
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16612
      hardcode_direct_GCJ=yes
 
16613
      hardcode_shlibpath_var_GCJ=no
 
16614
      ;;
 
16615
 
 
16616
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16617
    freebsd2*)
 
16618
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16619
      hardcode_direct_GCJ=yes
 
16620
      hardcode_minus_L_GCJ=yes
 
16621
      hardcode_shlibpath_var_GCJ=no
 
16622
      ;;
 
16623
 
 
16624
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16625
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
16626
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16627
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16628
      hardcode_direct_GCJ=yes
 
16629
      hardcode_shlibpath_var_GCJ=no
 
16630
      ;;
 
16631
 
 
16632
    hpux9*)
 
16633
      if test "$GCC" = yes; then
 
16634
        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'
 
16635
      else
 
16636
        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'
 
16637
      fi
 
16638
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16639
      hardcode_libdir_separator_GCJ=:
 
16640
      hardcode_direct_GCJ=yes
 
16641
 
 
16642
      # hardcode_minus_L: Not really in the search PATH,
 
16643
      # but as the default location of the library.
 
16644
      hardcode_minus_L_GCJ=yes
 
16645
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16646
      ;;
 
16647
 
 
16648
    hpux10*)
 
16649
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16650
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16651
      else
 
16652
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16653
      fi
 
16654
      if test "$with_gnu_ld" = no; then
 
16655
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16656
        hardcode_libdir_separator_GCJ=:
 
16657
 
 
16658
        hardcode_direct_GCJ=yes
 
16659
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16660
 
 
16661
        # hardcode_minus_L: Not really in the search PATH,
 
16662
        # but as the default location of the library.
 
16663
        hardcode_minus_L_GCJ=yes
 
16664
      fi
 
16665
      ;;
 
16666
 
 
16667
    hpux11*)
 
16668
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16669
        case $host_cpu in
 
16670
        hppa*64*)
 
16671
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16672
          ;;
 
16673
        ia64*)
 
16674
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
16675
          ;;
 
16676
        *)
 
16677
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16678
          ;;
 
16679
        esac
 
16680
      else
 
16681
        case $host_cpu in
 
16682
        hppa*64*)
 
16683
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16684
          ;;
 
16685
        ia64*)
 
16686
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
16687
          ;;
 
16688
        *)
 
16689
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16690
          ;;
 
16691
        esac
 
16692
      fi
 
16693
      if test "$with_gnu_ld" = no; then
 
16694
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16695
        hardcode_libdir_separator_GCJ=:
 
16696
 
 
16697
        case $host_cpu in
 
16698
        hppa*64*|ia64*)
 
16699
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
16700
          hardcode_direct_GCJ=no
 
16701
          hardcode_shlibpath_var_GCJ=no
 
16702
          ;;
 
16703
        *)
 
16704
          hardcode_direct_GCJ=yes
 
16705
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
16706
 
 
16707
          # hardcode_minus_L: Not really in the search PATH,
 
16708
          # but as the default location of the library.
 
16709
          hardcode_minus_L_GCJ=yes
 
16710
          ;;
 
16711
        esac
 
16712
      fi
 
16713
      ;;
 
16714
 
 
16715
    irix5* | irix6* | nonstopux*)
 
16716
      if test "$GCC" = yes; then
 
16717
        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'
 
16718
      else
 
16719
        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'
 
16720
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
16721
      fi
 
16722
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16723
      hardcode_libdir_separator_GCJ=:
 
16724
      link_all_deplibs_GCJ=yes
 
16725
      ;;
 
16726
 
 
16727
    netbsd*)
 
16728
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16729
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16730
      else
 
16731
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16732
      fi
 
16733
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16734
      hardcode_direct_GCJ=yes
 
16735
      hardcode_shlibpath_var_GCJ=no
 
16736
      ;;
 
16737
 
 
16738
    newsos6)
 
16739
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16740
      hardcode_direct_GCJ=yes
 
16741
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16742
      hardcode_libdir_separator_GCJ=:
 
16743
      hardcode_shlibpath_var_GCJ=no
 
16744
      ;;
 
16745
 
 
16746
    openbsd*)
 
16747
      hardcode_direct_GCJ=yes
 
16748
      hardcode_shlibpath_var_GCJ=no
 
16749
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16750
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16751
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
16752
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16753
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16754
      else
 
16755
       case $host_os in
 
16756
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16757
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16758
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16759
           ;;
 
16760
         *)
 
16761
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16762
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16763
           ;;
 
16764
       esac
 
16765
      fi
 
16766
      ;;
 
16767
 
 
16768
    os2*)
 
16769
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16770
      hardcode_minus_L_GCJ=yes
 
16771
      allow_undefined_flag_GCJ=unsupported
 
16772
      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'
 
16773
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16774
      ;;
 
16775
 
 
16776
    osf3*)
 
16777
      if test "$GCC" = yes; then
 
16778
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16779
        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'
 
16780
      else
 
16781
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16782
        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'
 
16783
      fi
 
16784
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16785
      hardcode_libdir_separator_GCJ=:
 
16786
      ;;
 
16787
 
 
16788
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16789
      if test "$GCC" = yes; then
 
16790
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16791
        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'
 
16792
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16793
      else
 
16794
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16795
        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'
 
16796
        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~
 
16797
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
16798
 
 
16799
        # Both c and cxx compiler support -rpath directly
 
16800
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
16801
      fi
 
16802
      hardcode_libdir_separator_GCJ=:
 
16803
      ;;
 
16804
 
 
16805
    solaris*)
 
16806
      no_undefined_flag_GCJ=' -z text'
 
16807
      if test "$GCC" = yes; then
 
16808
        wlarc='${wl}'
 
16809
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16810
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16811
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16812
      else
 
16813
        wlarc=''
 
16814
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16815
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16816
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16817
      fi
 
16818
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16819
      hardcode_shlibpath_var_GCJ=no
 
16820
      case $host_os in
 
16821
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16822
      *)
 
16823
        # The compiler driver will combine linker options so we
 
16824
        # cannot just pass the convience library names through
 
16825
        # without $wl, iff we do not link with $LD.
 
16826
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
16827
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16828
        case $wlarc in
 
16829
        '')
 
16830
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16831
        *)
 
16832
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
16833
        esac ;;
 
16834
      esac
 
16835
      link_all_deplibs_GCJ=yes
 
16836
      ;;
 
16837
 
 
16838
    sunos4*)
 
16839
      if test "x$host_vendor" = xsequent; then
 
16840
        # Use $CC to link under sequent, because it throws in some extra .o
 
16841
        # files that make .init and .fini sections work.
 
16842
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16843
      else
 
16844
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16845
      fi
 
16846
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16847
      hardcode_direct_GCJ=yes
 
16848
      hardcode_minus_L_GCJ=yes
 
16849
      hardcode_shlibpath_var_GCJ=no
 
16850
      ;;
 
16851
 
 
16852
    sysv4)
 
16853
      case $host_vendor in
 
16854
        sni)
 
16855
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16856
          hardcode_direct_GCJ=yes # is this really true???
 
16857
        ;;
 
16858
        siemens)
 
16859
          ## LD is ld it makes a PLAMLIB
 
16860
          ## CC just makes a GrossModule.
 
16861
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16862
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
16863
          hardcode_direct_GCJ=no
 
16864
        ;;
 
16865
        motorola)
 
16866
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16867
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
16868
        ;;
 
16869
      esac
 
16870
      runpath_var='LD_RUN_PATH'
 
16871
      hardcode_shlibpath_var_GCJ=no
 
16872
      ;;
 
16873
 
 
16874
    sysv4.3*)
 
16875
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16876
      hardcode_shlibpath_var_GCJ=no
 
16877
      export_dynamic_flag_spec_GCJ='-Bexport'
 
16878
      ;;
 
16879
 
 
16880
    sysv4*MP*)
 
16881
      if test -d /usr/nec; then
 
16882
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16883
        hardcode_shlibpath_var_GCJ=no
 
16884
        runpath_var=LD_RUN_PATH
 
16885
        hardcode_runpath_var=yes
 
16886
        ld_shlibs_GCJ=yes
 
16887
      fi
 
16888
      ;;
 
16889
 
 
16890
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
16891
      no_undefined_flag_GCJ='${wl}-z,text'
 
16892
      archive_cmds_need_lc_GCJ=no
 
16893
      hardcode_shlibpath_var_GCJ=no
 
16894
      runpath_var='LD_RUN_PATH'
 
16895
 
 
16896
      if test "$GCC" = yes; then
 
16897
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16898
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16899
      else
 
16900
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16901
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16902
      fi
 
16903
      ;;
 
16904
 
 
16905
    sysv5* | sco3.2v5* | sco5v6*)
 
16906
      # Note: We can NOT use -z defs as we might desire, because we do not
 
16907
      # link with -lc, and that would cause any symbols used from libc to
 
16908
      # always be unresolved, which means just about no library would
 
16909
      # ever link correctly.  If we're not using GNU ld we use -z text
 
16910
      # though, which does catch some bad symbols but isn't as heavy-handed
 
16911
      # as -z defs.
 
16912
      no_undefined_flag_GCJ='${wl}-z,text'
 
16913
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
16914
      archive_cmds_need_lc_GCJ=no
 
16915
      hardcode_shlibpath_var_GCJ=no
 
16916
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
16917
      hardcode_libdir_separator_GCJ=':'
 
16918
      link_all_deplibs_GCJ=yes
 
16919
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16920
      runpath_var='LD_RUN_PATH'
 
16921
 
 
16922
      if test "$GCC" = yes; then
 
16923
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16924
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16925
      else
 
16926
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16927
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16928
      fi
 
16929
      ;;
 
16930
 
 
16931
    uts4*)
 
16932
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16933
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16934
      hardcode_shlibpath_var_GCJ=no
 
16935
      ;;
 
16936
 
 
16937
    *)
 
16938
      ld_shlibs_GCJ=no
 
16939
      ;;
 
16940
    esac
 
16941
  fi
 
16942
 
 
16943
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
16944
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
16945
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
16946
 
 
16947
#
 
16948
# Do we need to explicitly link libc?
 
16949
#
 
16950
case "x$archive_cmds_need_lc_GCJ" in
 
16951
x|xyes)
 
16952
  # Assume -lc should be added
 
16953
  archive_cmds_need_lc_GCJ=yes
 
16954
 
 
16955
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16956
    case $archive_cmds_GCJ in
 
16957
    *'~'*)
 
16958
      # FIXME: we may have to deal with multi-command sequences.
 
16959
      ;;
 
16960
    '$CC '*)
 
16961
      # Test whether the compiler implicitly links with -lc since on some
 
16962
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16963
      # to ld, don't add -lc before -lgcc.
 
16964
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16965
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16966
      $rm conftest*
 
16967
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16968
 
 
16969
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16970
  (eval $ac_compile) 2>&5
 
16971
  ac_status=$?
 
16972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16973
  (exit $ac_status); } 2>conftest.err; then
 
16974
        soname=conftest
 
16975
        lib=conftest
 
16976
        libobjs=conftest.$ac_objext
 
16977
        deplibs=
 
16978
        wl=$lt_prog_compiler_wl_GCJ
 
16979
        pic_flag=$lt_prog_compiler_pic_GCJ
 
16980
        compiler_flags=-v
 
16981
        linker_flags=-v
 
16982
        verstring=
 
16983
        output_objdir=.
 
16984
        libname=conftest
 
16985
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
16986
        allow_undefined_flag_GCJ=
 
16987
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16988
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16989
  ac_status=$?
 
16990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16991
  (exit $ac_status); }
 
16992
        then
 
16993
          archive_cmds_need_lc_GCJ=no
 
16994
        else
 
16995
          archive_cmds_need_lc_GCJ=yes
 
16996
        fi
 
16997
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
16998
      else
 
16999
        cat conftest.err 1>&5
 
17000
      fi
 
17001
      $rm conftest*
 
17002
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17003
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
17004
      ;;
 
17005
    esac
 
17006
  fi
 
17007
  ;;
 
17008
esac
 
17009
 
 
17010
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17011
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17012
library_names_spec=
 
17013
libname_spec='lib$name'
 
17014
soname_spec=
 
17015
shrext_cmds=".so"
 
17016
postinstall_cmds=
 
17017
postuninstall_cmds=
 
17018
finish_cmds=
 
17019
finish_eval=
 
17020
shlibpath_var=
 
17021
shlibpath_overrides_runpath=unknown
 
17022
version_type=none
 
17023
dynamic_linker="$host_os ld.so"
 
17024
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17025
if test "$GCC" = yes; then
 
17026
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17027
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17028
    # if the path contains ";" then we assume it to be the separator
 
17029
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17030
    # assumed that no part of a normal pathname contains ";" but that should
 
17031
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17032
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17033
  else
 
17034
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17035
  fi
 
17036
else
 
17037
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17038
fi
 
17039
need_lib_prefix=unknown
 
17040
hardcode_into_libs=no
 
17041
 
 
17042
# when you set need_version to no, make sure it does not cause -set_version
 
17043
# flags to be left without arguments
 
17044
need_version=unknown
 
17045
 
 
17046
case $host_os in
 
17047
aix3*)
 
17048
  version_type=linux
 
17049
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17050
  shlibpath_var=LIBPATH
 
17051
 
 
17052
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17053
  soname_spec='${libname}${release}${shared_ext}$major'
 
17054
  ;;
 
17055
 
 
17056
aix4* | aix5*)
 
17057
  version_type=linux
 
17058
  need_lib_prefix=no
 
17059
  need_version=no
 
17060
  hardcode_into_libs=yes
 
17061
  if test "$host_cpu" = ia64; then
 
17062
    # AIX 5 supports IA64
 
17063
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17064
    shlibpath_var=LD_LIBRARY_PATH
 
17065
  else
 
17066
    # With GCC up to 2.95.x, collect2 would create an import file
 
17067
    # for dependence libraries.  The import file would start with
 
17068
    # the line `#! .'.  This would cause the generated library to
 
17069
    # depend on `.', always an invalid library.  This was fixed in
 
17070
    # development snapshots of GCC prior to 3.0.
 
17071
    case $host_os in
 
17072
      aix4 | aix4.[01] | aix4.[01].*)
 
17073
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17074
           echo ' yes '
 
17075
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17076
        :
 
17077
      else
 
17078
        can_build_shared=no
 
17079
      fi
 
17080
      ;;
 
17081
    esac
 
17082
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17083
    # soname into executable. Probably we can add versioning support to
 
17084
    # collect2, so additional links can be useful in future.
 
17085
    if test "$aix_use_runtimelinking" = yes; then
 
17086
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17087
      # instead of lib<name>.a to let people know that these are not
 
17088
      # typical AIX shared libraries.
 
17089
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17090
    else
 
17091
      # We preserve .a as extension for shared libraries through AIX4.2
 
17092
      # and later when we are not doing run time linking.
 
17093
      library_names_spec='${libname}${release}.a $libname.a'
 
17094
      soname_spec='${libname}${release}${shared_ext}$major'
 
17095
    fi
 
17096
    shlibpath_var=LIBPATH
 
17097
  fi
 
17098
  ;;
 
17099
 
 
17100
amigaos*)
 
17101
  library_names_spec='$libname.ixlibrary $libname.a'
 
17102
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17103
  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'
 
17104
  ;;
 
17105
 
 
17106
beos*)
 
17107
  library_names_spec='${libname}${shared_ext}'
 
17108
  dynamic_linker="$host_os ld.so"
 
17109
  shlibpath_var=LIBRARY_PATH
 
17110
  ;;
 
17111
 
 
17112
bsdi[45]*)
 
17113
  version_type=linux
 
17114
  need_version=no
 
17115
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17116
  soname_spec='${libname}${release}${shared_ext}$major'
 
17117
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17118
  shlibpath_var=LD_LIBRARY_PATH
 
17119
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17120
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17121
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17122
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17123
  # libtool to hard-code these into programs
 
17124
  ;;
 
17125
 
 
17126
cygwin* | mingw* | pw32*)
 
17127
  version_type=windows
 
17128
  shrext_cmds=".dll"
 
17129
  need_version=no
 
17130
  need_lib_prefix=no
 
17131
 
 
17132
  case $GCC,$host_os in
 
17133
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17134
    library_names_spec='$libname.dll.a'
 
17135
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17136
    postinstall_cmds='base_file=`basename \${file}`~
 
17137
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17138
      dldir=$destdir/`dirname \$dlpath`~
 
17139
      test -d \$dldir || mkdir -p \$dldir~
 
17140
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17141
      chmod a+x \$dldir/$dlname'
 
17142
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17143
      dlpath=$dir/\$dldll~
 
17144
       $rm \$dlpath'
 
17145
    shlibpath_overrides_runpath=yes
 
17146
 
 
17147
    case $host_os in
 
17148
    cygwin*)
 
17149
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17150
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17151
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17152
      ;;
 
17153
    mingw*)
 
17154
      # MinGW DLLs use traditional 'lib' prefix
 
17155
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17156
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17157
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17158
        # It is most probably a Windows format PATH printed by
 
17159
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17160
        # path with ; separators, and with drive letters. We can handle the
 
17161
        # drive letters (cygwin fileutils understands them), so leave them,
 
17162
        # especially as we might pass files found there to a mingw objdump,
 
17163
        # which wouldn't understand a cygwinified path. Ahh.
 
17164
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17165
      else
 
17166
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17167
      fi
 
17168
      ;;
 
17169
    pw32*)
 
17170
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17171
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17172
      ;;
 
17173
    esac
 
17174
    ;;
 
17175
 
 
17176
  *)
 
17177
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17178
    ;;
 
17179
  esac
 
17180
  dynamic_linker='Win32 ld.exe'
 
17181
  # FIXME: first we should search . and the directory the executable is in
 
17182
  shlibpath_var=PATH
 
17183
  ;;
 
17184
 
 
17185
darwin* | rhapsody*)
 
17186
  dynamic_linker="$host_os dyld"
 
17187
  version_type=darwin
 
17188
  need_lib_prefix=no
 
17189
  need_version=no
 
17190
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17191
  soname_spec='${libname}${release}${major}$shared_ext'
 
17192
  shlibpath_overrides_runpath=yes
 
17193
  shlibpath_var=DYLD_LIBRARY_PATH
 
17194
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
17195
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17196
  if test "$GCC" = yes; then
 
17197
    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"`
 
17198
  else
 
17199
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17200
  fi
 
17201
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17202
  ;;
 
17203
 
 
17204
dgux*)
 
17205
  version_type=linux
 
17206
  need_lib_prefix=no
 
17207
  need_version=no
 
17208
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17209
  soname_spec='${libname}${release}${shared_ext}$major'
 
17210
  shlibpath_var=LD_LIBRARY_PATH
 
17211
  ;;
 
17212
 
 
17213
freebsd1*)
 
17214
  dynamic_linker=no
 
17215
  ;;
 
17216
 
 
17217
kfreebsd*-gnu)
 
17218
  version_type=linux
 
17219
  need_lib_prefix=no
 
17220
  need_version=no
 
17221
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17222
  soname_spec='${libname}${release}${shared_ext}$major'
 
17223
  shlibpath_var=LD_LIBRARY_PATH
 
17224
  shlibpath_overrides_runpath=no
 
17225
  hardcode_into_libs=yes
 
17226
  dynamic_linker='GNU ld.so'
 
17227
  ;;
 
17228
 
 
17229
freebsd* | dragonfly*)
 
17230
  # DragonFly does not have aout.  When/if they implement a new
 
17231
  # versioning mechanism, adjust this.
 
17232
  if test -x /usr/bin/objformat; then
 
17233
    objformat=`/usr/bin/objformat`
 
17234
  else
 
17235
    case $host_os in
 
17236
    freebsd[123]*) objformat=aout ;;
 
17237
    *) objformat=elf ;;
 
17238
    esac
 
17239
  fi
 
17240
  version_type=freebsd-$objformat
 
17241
  case $version_type in
 
17242
    freebsd-elf*)
 
17243
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17244
      need_version=no
 
17245
      need_lib_prefix=no
 
17246
      ;;
 
17247
    freebsd-*)
 
17248
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17249
      need_version=yes
 
17250
      ;;
 
17251
  esac
 
17252
  shlibpath_var=LD_LIBRARY_PATH
 
17253
  case $host_os in
 
17254
  freebsd2*)
 
17255
    shlibpath_overrides_runpath=yes
 
17256
    ;;
 
17257
  freebsd3.[01]* | freebsdelf3.[01]*)
 
17258
    shlibpath_overrides_runpath=yes
 
17259
    hardcode_into_libs=yes
 
17260
    ;;
 
17261
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17262
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
17263
    shlibpath_overrides_runpath=no
 
17264
    hardcode_into_libs=yes
 
17265
    ;;
 
17266
  freebsd*) # from 4.6 on
 
17267
    shlibpath_overrides_runpath=yes
 
17268
    hardcode_into_libs=yes
 
17269
    ;;
 
17270
  esac
 
17271
  ;;
 
17272
 
 
17273
gnu*)
 
17274
  version_type=linux
 
17275
  need_lib_prefix=no
 
17276
  need_version=no
 
17277
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17278
  soname_spec='${libname}${release}${shared_ext}$major'
 
17279
  shlibpath_var=LD_LIBRARY_PATH
 
17280
  hardcode_into_libs=yes
 
17281
  ;;
 
17282
 
 
17283
hpux9* | hpux10* | hpux11*)
 
17284
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17285
  # link against other versions.
 
17286
  version_type=sunos
 
17287
  need_lib_prefix=no
 
17288
  need_version=no
 
17289
  case $host_cpu in
 
17290
  ia64*)
 
17291
    shrext_cmds='.so'
 
17292
    hardcode_into_libs=yes
 
17293
    dynamic_linker="$host_os dld.so"
 
17294
    shlibpath_var=LD_LIBRARY_PATH
 
17295
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17296
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17297
    soname_spec='${libname}${release}${shared_ext}$major'
 
17298
    if test "X$HPUX_IA64_MODE" = X32; then
 
17299
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17300
    else
 
17301
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17302
    fi
 
17303
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17304
    ;;
 
17305
   hppa*64*)
 
17306
     shrext_cmds='.sl'
 
17307
     hardcode_into_libs=yes
 
17308
     dynamic_linker="$host_os dld.sl"
 
17309
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17310
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17311
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17312
     soname_spec='${libname}${release}${shared_ext}$major'
 
17313
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17314
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17315
     ;;
 
17316
   *)
 
17317
    shrext_cmds='.sl'
 
17318
    dynamic_linker="$host_os dld.sl"
 
17319
    shlibpath_var=SHLIB_PATH
 
17320
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17321
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17322
    soname_spec='${libname}${release}${shared_ext}$major'
 
17323
    ;;
 
17324
  esac
 
17325
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17326
  postinstall_cmds='chmod 555 $lib'
 
17327
  ;;
 
17328
 
 
17329
interix3*)
 
17330
  version_type=linux
 
17331
  need_lib_prefix=no
 
17332
  need_version=no
 
17333
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17334
  soname_spec='${libname}${release}${shared_ext}$major'
 
17335
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17336
  shlibpath_var=LD_LIBRARY_PATH
 
17337
  shlibpath_overrides_runpath=no
 
17338
  hardcode_into_libs=yes
 
17339
  ;;
 
17340
 
 
17341
irix5* | irix6* | nonstopux*)
 
17342
  case $host_os in
 
17343
    nonstopux*) version_type=nonstopux ;;
 
17344
    *)
 
17345
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17346
                version_type=linux
 
17347
        else
 
17348
                version_type=irix
 
17349
        fi ;;
 
17350
  esac
 
17351
  need_lib_prefix=no
 
17352
  need_version=no
 
17353
  soname_spec='${libname}${release}${shared_ext}$major'
 
17354
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17355
  case $host_os in
 
17356
  irix5* | nonstopux*)
 
17357
    libsuff= shlibsuff=
 
17358
    ;;
 
17359
  *)
 
17360
    case $LD in # libtool.m4 will add one of these switches to LD
 
17361
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17362
      libsuff= shlibsuff= libmagic=32-bit;;
 
17363
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17364
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17365
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17366
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17367
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17368
    esac
 
17369
    ;;
 
17370
  esac
 
17371
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17372
  shlibpath_overrides_runpath=no
 
17373
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17374
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17375
  hardcode_into_libs=yes
 
17376
  ;;
 
17377
 
 
17378
# No shared lib support for Linux oldld, aout, or coff.
 
17379
linux*oldld* | linux*aout* | linux*coff*)
 
17380
  dynamic_linker=no
 
17381
  ;;
 
17382
 
 
17383
# This must be Linux ELF.
 
17384
linux*)
 
17385
  version_type=linux
 
17386
  need_lib_prefix=no
 
17387
  need_version=no
 
17388
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17389
  soname_spec='${libname}${release}${shared_ext}$major'
 
17390
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17391
  shlibpath_var=LD_LIBRARY_PATH
 
17392
  shlibpath_overrides_runpath=no
 
17393
  # This implies no fast_install, which is unacceptable.
 
17394
  # Some rework will be needed to allow for fast_install
 
17395
  # before this can be enabled.
 
17396
  hardcode_into_libs=yes
 
17397
 
 
17398
  # find out which ABI we are using
 
17399
  libsuff=
 
17400
  case "$host_cpu" in
 
17401
  x86_64*|s390x*|powerpc64*)
 
17402
    echo '#line 17402 "configure"' > conftest.$ac_ext
 
17403
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17404
  (eval $ac_compile) 2>&5
 
17405
  ac_status=$?
 
17406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17407
  (exit $ac_status); }; then
 
17408
      case `/usr/bin/file conftest.$ac_objext` in
 
17409
      *64-bit*)
 
17410
        libsuff=64
 
17411
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
17412
        ;;
 
17413
      esac
 
17414
    fi
 
17415
    rm -rf conftest*
 
17416
    ;;
 
17417
  esac
 
17418
 
 
17419
  # Append ld.so.conf contents to the search path
 
17420
  if test -f /etc/ld.so.conf; then
 
17421
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
17422
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
17423
  fi
 
17424
 
 
17425
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17426
  # powerpc, because MkLinux only supported shared libraries with the
 
17427
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17428
  # most powerpc-linux boxes support dynamic linking these days and
 
17429
  # people can always --disable-shared, the test was removed, and we
 
17430
  # assume the GNU/Linux dynamic linker is in use.
 
17431
  dynamic_linker='GNU/Linux ld.so'
 
17432
  ;;
 
17433
 
 
17434
knetbsd*-gnu)
 
17435
  version_type=linux
 
17436
  need_lib_prefix=no
 
17437
  need_version=no
 
17438
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17439
  soname_spec='${libname}${release}${shared_ext}$major'
 
17440
  shlibpath_var=LD_LIBRARY_PATH
 
17441
  shlibpath_overrides_runpath=no
 
17442
  hardcode_into_libs=yes
 
17443
  dynamic_linker='GNU ld.so'
 
17444
  ;;
 
17445
 
 
17446
netbsd*)
 
17447
  version_type=sunos
 
17448
  need_lib_prefix=no
 
17449
  need_version=no
 
17450
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17451
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17452
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17453
    dynamic_linker='NetBSD (a.out) ld.so'
 
17454
  else
 
17455
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17456
    soname_spec='${libname}${release}${shared_ext}$major'
 
17457
    dynamic_linker='NetBSD ld.elf_so'
 
17458
  fi
 
17459
  shlibpath_var=LD_LIBRARY_PATH
 
17460
  shlibpath_overrides_runpath=yes
 
17461
  hardcode_into_libs=yes
 
17462
  ;;
 
17463
 
 
17464
newsos6)
 
17465
  version_type=linux
 
17466
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17467
  shlibpath_var=LD_LIBRARY_PATH
 
17468
  shlibpath_overrides_runpath=yes
 
17469
  ;;
 
17470
 
 
17471
nto-qnx*)
 
17472
  version_type=linux
 
17473
  need_lib_prefix=no
 
17474
  need_version=no
 
17475
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17476
  soname_spec='${libname}${release}${shared_ext}$major'
 
17477
  shlibpath_var=LD_LIBRARY_PATH
 
17478
  shlibpath_overrides_runpath=yes
 
17479
  ;;
 
17480
 
 
17481
openbsd*)
 
17482
  version_type=sunos
 
17483
  sys_lib_dlsearch_path_spec="/usr/lib"
 
17484
  need_lib_prefix=no
 
17485
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17486
  case $host_os in
 
17487
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17488
    *)                         need_version=no  ;;
 
17489
  esac
 
17490
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17491
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17492
  shlibpath_var=LD_LIBRARY_PATH
 
17493
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17494
    case $host_os in
 
17495
      openbsd2.[89] | openbsd2.[89].*)
 
17496
        shlibpath_overrides_runpath=no
 
17497
        ;;
 
17498
      *)
 
17499
        shlibpath_overrides_runpath=yes
 
17500
        ;;
 
17501
      esac
 
17502
  else
 
17503
    shlibpath_overrides_runpath=yes
 
17504
  fi
 
17505
  ;;
 
17506
 
 
17507
os2*)
 
17508
  libname_spec='$name'
 
17509
  shrext_cmds=".dll"
 
17510
  need_lib_prefix=no
 
17511
  library_names_spec='$libname${shared_ext} $libname.a'
 
17512
  dynamic_linker='OS/2 ld.exe'
 
17513
  shlibpath_var=LIBPATH
 
17514
  ;;
 
17515
 
 
17516
osf3* | osf4* | osf5*)
 
17517
  version_type=osf
 
17518
  need_lib_prefix=no
 
17519
  need_version=no
 
17520
  soname_spec='${libname}${release}${shared_ext}$major'
 
17521
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17522
  shlibpath_var=LD_LIBRARY_PATH
 
17523
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17524
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17525
  ;;
 
17526
 
 
17527
solaris*)
 
17528
  version_type=linux
 
17529
  need_lib_prefix=no
 
17530
  need_version=no
 
17531
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17532
  soname_spec='${libname}${release}${shared_ext}$major'
 
17533
  shlibpath_var=LD_LIBRARY_PATH
 
17534
  shlibpath_overrides_runpath=yes
 
17535
  hardcode_into_libs=yes
 
17536
  # ldd complains unless libraries are executable
 
17537
  postinstall_cmds='chmod +x $lib'
 
17538
  ;;
 
17539
 
 
17540
sunos4*)
 
17541
  version_type=sunos
 
17542
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17543
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17544
  shlibpath_var=LD_LIBRARY_PATH
 
17545
  shlibpath_overrides_runpath=yes
 
17546
  if test "$with_gnu_ld" = yes; then
 
17547
    need_lib_prefix=no
 
17548
  fi
 
17549
  need_version=yes
 
17550
  ;;
 
17551
 
 
17552
sysv4 | sysv4.3*)
 
17553
  version_type=linux
 
17554
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17555
  soname_spec='${libname}${release}${shared_ext}$major'
 
17556
  shlibpath_var=LD_LIBRARY_PATH
 
17557
  case $host_vendor in
 
17558
    sni)
 
17559
      shlibpath_overrides_runpath=no
 
17560
      need_lib_prefix=no
 
17561
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17562
      runpath_var=LD_RUN_PATH
 
17563
      ;;
 
17564
    siemens)
 
17565
      need_lib_prefix=no
 
17566
      ;;
 
17567
    motorola)
 
17568
      need_lib_prefix=no
 
17569
      need_version=no
 
17570
      shlibpath_overrides_runpath=no
 
17571
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17572
      ;;
 
17573
  esac
 
17574
  ;;
 
17575
 
 
17576
sysv4*MP*)
 
17577
  if test -d /usr/nec ;then
 
17578
    version_type=linux
 
17579
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17580
    soname_spec='$libname${shared_ext}.$major'
 
17581
    shlibpath_var=LD_LIBRARY_PATH
 
17582
  fi
 
17583
  ;;
 
17584
 
 
17585
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
17586
  version_type=freebsd-elf
 
17587
  need_lib_prefix=no
 
17588
  need_version=no
 
17589
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17590
  soname_spec='${libname}${release}${shared_ext}$major'
 
17591
  shlibpath_var=LD_LIBRARY_PATH
 
17592
  hardcode_into_libs=yes
 
17593
  if test "$with_gnu_ld" = yes; then
 
17594
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
17595
    shlibpath_overrides_runpath=no
 
17596
  else
 
17597
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
17598
    shlibpath_overrides_runpath=yes
 
17599
    case $host_os in
 
17600
      sco3.2v5*)
 
17601
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
17602
        ;;
 
17603
    esac
 
17604
  fi
 
17605
  sys_lib_dlsearch_path_spec='/usr/lib'
 
17606
  ;;
 
17607
 
 
17608
uts4*)
 
17609
  version_type=linux
 
17610
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17611
  soname_spec='${libname}${release}${shared_ext}$major'
 
17612
  shlibpath_var=LD_LIBRARY_PATH
 
17613
  ;;
 
17614
 
 
17615
*)
 
17616
  dynamic_linker=no
 
17617
  ;;
 
17618
esac
 
17619
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17620
echo "${ECHO_T}$dynamic_linker" >&6
 
17621
test "$dynamic_linker" = no && can_build_shared=no
 
17622
 
 
17623
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17624
if test "$GCC" = yes; then
 
17625
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17626
fi
 
17627
 
 
17628
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17629
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17630
hardcode_action_GCJ=
 
17631
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17632
   test -n "$runpath_var_GCJ" || \
 
17633
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
17634
 
 
17635
  # We can hardcode non-existant directories.
 
17636
  if test "$hardcode_direct_GCJ" != no &&
 
17637
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17638
     # have to relink, otherwise we might link with an installed library
 
17639
     # when we should be linking with a yet-to-be-installed one
 
17640
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17641
     test "$hardcode_minus_L_GCJ" != no; then
 
17642
    # Linking always hardcodes the temporary library directory.
 
17643
    hardcode_action_GCJ=relink
 
17644
  else
 
17645
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17646
    hardcode_action_GCJ=immediate
 
17647
  fi
 
17648
else
 
17649
  # We cannot hardcode anything, or else we can only hardcode existing
 
17650
  # directories.
 
17651
  hardcode_action_GCJ=unsupported
 
17652
fi
 
17653
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17654
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17655
 
 
17656
if test "$hardcode_action_GCJ" = relink; then
 
17657
  # Fast installation is not supported
 
17658
  enable_fast_install=no
 
17659
elif test "$shlibpath_overrides_runpath" = yes ||
 
17660
     test "$enable_shared" = no; then
 
17661
  # Fast installation is not necessary
 
17662
  enable_fast_install=needless
 
17663
fi
 
17664
 
 
17665
 
 
17666
# The else clause should only fire when bootstrapping the
 
17667
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17668
# with your package, and you will get complaints that there are
 
17669
# no rules to generate ltmain.sh.
 
17670
if test -f "$ltmain"; then
 
17671
  # See if we are running on zsh, and set the options which allow our commands through
 
17672
  # without removal of \ escapes.
 
17673
  if test -n "${ZSH_VERSION+set}" ; then
 
17674
    setopt NO_GLOB_SUBST
 
17675
  fi
 
17676
  # Now quote all the things that may contain metacharacters while being
 
17677
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17678
  # variables and quote the copies for generation of the libtool script.
 
17679
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
17680
    SED SHELL STRIP \
 
17681
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17682
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17683
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17684
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17685
    lt_cv_sys_global_symbol_to_c_name_address \
 
17686
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17687
    old_postinstall_cmds old_postuninstall_cmds \
 
17688
    compiler_GCJ \
 
17689
    CC_GCJ \
 
17690
    LD_GCJ \
 
17691
    lt_prog_compiler_wl_GCJ \
 
17692
    lt_prog_compiler_pic_GCJ \
 
17693
    lt_prog_compiler_static_GCJ \
 
17694
    lt_prog_compiler_no_builtin_flag_GCJ \
 
17695
    export_dynamic_flag_spec_GCJ \
 
17696
    thread_safe_flag_spec_GCJ \
 
17697
    whole_archive_flag_spec_GCJ \
 
17698
    enable_shared_with_static_runtimes_GCJ \
 
17699
    old_archive_cmds_GCJ \
 
17700
    old_archive_from_new_cmds_GCJ \
 
17701
    predep_objects_GCJ \
 
17702
    postdep_objects_GCJ \
 
17703
    predeps_GCJ \
 
17704
    postdeps_GCJ \
 
17705
    compiler_lib_search_path_GCJ \
 
17706
    archive_cmds_GCJ \
 
17707
    archive_expsym_cmds_GCJ \
 
17708
    postinstall_cmds_GCJ \
 
17709
    postuninstall_cmds_GCJ \
 
17710
    old_archive_from_expsyms_cmds_GCJ \
 
17711
    allow_undefined_flag_GCJ \
 
17712
    no_undefined_flag_GCJ \
 
17713
    export_symbols_cmds_GCJ \
 
17714
    hardcode_libdir_flag_spec_GCJ \
 
17715
    hardcode_libdir_flag_spec_ld_GCJ \
 
17716
    hardcode_libdir_separator_GCJ \
 
17717
    hardcode_automatic_GCJ \
 
17718
    module_cmds_GCJ \
 
17719
    module_expsym_cmds_GCJ \
 
17720
    lt_cv_prog_compiler_c_o_GCJ \
 
17721
    exclude_expsyms_GCJ \
 
17722
    include_expsyms_GCJ; do
 
17723
 
 
17724
    case $var in
 
17725
    old_archive_cmds_GCJ | \
 
17726
    old_archive_from_new_cmds_GCJ | \
 
17727
    archive_cmds_GCJ | \
 
17728
    archive_expsym_cmds_GCJ | \
 
17729
    module_cmds_GCJ | \
 
17730
    module_expsym_cmds_GCJ | \
 
17731
    old_archive_from_expsyms_cmds_GCJ | \
 
17732
    export_symbols_cmds_GCJ | \
 
17733
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17734
    postinstall_cmds | postuninstall_cmds | \
 
17735
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17736
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17737
      # Double-quote double-evaled strings.
 
17738
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17739
      ;;
 
17740
    *)
 
17741
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17742
      ;;
 
17743
    esac
 
17744
  done
 
17745
 
 
17746
  case $lt_echo in
 
17747
  *'\$0 --fallback-echo"')
 
17748
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17749
    ;;
 
17750
  esac
 
17751
 
 
17752
cfgfile="$ofile"
 
17753
 
 
17754
  cat <<__EOF__ >> "$cfgfile"
 
17755
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17756
 
 
17757
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17758
 
 
17759
# Shell to use when invoking shell scripts.
 
17760
SHELL=$lt_SHELL
 
17761
 
 
17762
# Whether or not to build shared libraries.
 
17763
build_libtool_libs=$enable_shared
 
17764
 
 
17765
# Whether or not to build static libraries.
 
17766
build_old_libs=$enable_static
 
17767
 
 
17768
# Whether or not to add -lc for building shared libraries.
 
17769
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
17770
 
 
17771
# Whether or not to disallow shared libs when runtime libs are static
 
17772
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
17773
 
 
17774
# Whether or not to optimize for fast installation.
 
17775
fast_install=$enable_fast_install
 
17776
 
 
17777
# The host system.
 
17778
host_alias=$host_alias
 
17779
host=$host
 
17780
host_os=$host_os
 
17781
 
 
17782
# The build system.
 
17783
build_alias=$build_alias
 
17784
build=$build
 
17785
build_os=$build_os
 
17786
 
 
17787
# An echo program that does not interpret backslashes.
 
17788
echo=$lt_echo
 
17789
 
 
17790
# The archiver.
 
17791
AR=$lt_AR
 
17792
AR_FLAGS=$lt_AR_FLAGS
 
17793
 
 
17794
# A C compiler.
 
17795
LTCC=$lt_LTCC
 
17796
 
 
17797
# LTCC compiler flags.
 
17798
LTCFLAGS=$lt_LTCFLAGS
 
17799
 
 
17800
# A language-specific compiler.
 
17801
CC=$lt_compiler_GCJ
 
17802
 
 
17803
# Is the compiler the GNU C compiler?
 
17804
with_gcc=$GCC_GCJ
 
17805
 
 
17806
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
17807
gcc_ver=\`gcc -dumpversion\`
 
17808
 
 
17809
# An ERE matcher.
 
17810
EGREP=$lt_EGREP
 
17811
 
 
17812
# The linker used to build libraries.
 
17813
LD=$lt_LD_GCJ
 
17814
 
 
17815
# Whether we need hard or soft links.
 
17816
LN_S=$lt_LN_S
 
17817
 
 
17818
# A BSD-compatible nm program.
 
17819
NM=$lt_NM
 
17820
 
 
17821
# A symbol stripping program
 
17822
STRIP=$lt_STRIP
 
17823
 
 
17824
# Used to examine libraries when file_magic_cmd begins "file"
 
17825
MAGIC_CMD=$MAGIC_CMD
 
17826
 
 
17827
# Used on cygwin: DLL creation program.
 
17828
DLLTOOL="$DLLTOOL"
 
17829
 
 
17830
# Used on cygwin: object dumper.
 
17831
OBJDUMP="$OBJDUMP"
 
17832
 
 
17833
# Used on cygwin: assembler.
 
17834
AS="$AS"
 
17835
 
 
17836
# The name of the directory that contains temporary libtool files.
 
17837
objdir=$objdir
 
17838
 
 
17839
# How to create reloadable object files.
 
17840
reload_flag=$lt_reload_flag
 
17841
reload_cmds=$lt_reload_cmds
 
17842
 
 
17843
# How to pass a linker flag through the compiler.
 
17844
wl=$lt_lt_prog_compiler_wl_GCJ
 
17845
 
 
17846
# Object file suffix (normally "o").
 
17847
objext="$ac_objext"
 
17848
 
 
17849
# Old archive suffix (normally "a").
 
17850
libext="$libext"
 
17851
 
 
17852
# Shared library suffix (normally ".so").
 
17853
shrext_cmds='$shrext_cmds'
 
17854
 
 
17855
# Executable file suffix (normally "").
 
17856
exeext="$exeext"
 
17857
 
 
17858
# Additional compiler flags for building library objects.
 
17859
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
17860
pic_mode=$pic_mode
 
17861
 
 
17862
# What is the maximum length of a command?
 
17863
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17864
 
 
17865
# Does compiler simultaneously support -c and -o options?
 
17866
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
17867
 
 
17868
# Must we lock files when doing compilation?
 
17869
need_locks=$lt_need_locks
 
17870
 
 
17871
# Do we need the lib prefix for modules?
 
17872
need_lib_prefix=$need_lib_prefix
 
17873
 
 
17874
# Do we need a version for libraries?
 
17875
need_version=$need_version
 
17876
 
 
17877
# Whether dlopen is supported.
 
17878
dlopen_support=$enable_dlopen
 
17879
 
 
17880
# Whether dlopen of programs is supported.
 
17881
dlopen_self=$enable_dlopen_self
 
17882
 
 
17883
# Whether dlopen of statically linked programs is supported.
 
17884
dlopen_self_static=$enable_dlopen_self_static
 
17885
 
 
17886
# Compiler flag to prevent dynamic linking.
 
17887
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
17888
 
 
17889
# Compiler flag to turn off builtin functions.
 
17890
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
17891
 
 
17892
# Compiler flag to allow reflexive dlopens.
 
17893
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
17894
 
 
17895
# Compiler flag to generate shared objects directly from archives.
 
17896
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
17897
 
 
17898
# Compiler flag to generate thread-safe objects.
 
17899
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
17900
 
 
17901
# Library versioning type.
 
17902
version_type=$version_type
 
17903
 
 
17904
# Format of library name prefix.
 
17905
libname_spec=$lt_libname_spec
 
17906
 
 
17907
# List of archive names.  First name is the real one, the rest are links.
 
17908
# The last name is the one that the linker finds with -lNAME.
 
17909
library_names_spec=$lt_library_names_spec
 
17910
 
 
17911
# The coded name of the library, if different from the real name.
 
17912
soname_spec=$lt_soname_spec
 
17913
 
 
17914
# Commands used to build and install an old-style archive.
 
17915
RANLIB=$lt_RANLIB
 
17916
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
17917
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17918
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17919
 
 
17920
# Create an old-style archive from a shared archive.
 
17921
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
17922
 
 
17923
# Create a temporary old-style archive to link instead of a shared archive.
 
17924
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
17925
 
 
17926
# Commands used to build and install a shared archive.
 
17927
archive_cmds=$lt_archive_cmds_GCJ
 
17928
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
17929
postinstall_cmds=$lt_postinstall_cmds
 
17930
postuninstall_cmds=$lt_postuninstall_cmds
 
17931
 
 
17932
# Commands used to build a loadable module (assumed same as above if empty)
 
17933
module_cmds=$lt_module_cmds_GCJ
 
17934
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
17935
 
 
17936
# Commands to strip libraries.
 
17937
old_striplib=$lt_old_striplib
 
17938
striplib=$lt_striplib
 
17939
 
 
17940
# Dependencies to place before the objects being linked to create a
 
17941
# shared library.
 
17942
predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
17943
 
 
17944
# Dependencies to place after the objects being linked to create a
 
17945
# shared library.
 
17946
postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
17947
 
 
17948
# Dependencies to place before the objects being linked to create a
 
17949
# shared library.
 
17950
predeps=$lt_predeps_GCJ
 
17951
 
 
17952
# Dependencies to place after the objects being linked to create a
 
17953
# shared library.
 
17954
postdeps=$lt_postdeps_GCJ
 
17955
 
 
17956
# The library search path used internally by the compiler when linking
 
17957
# a shared library.
 
17958
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
17959
 
 
17960
# Method to check whether dependent libraries are shared objects.
 
17961
deplibs_check_method=$lt_deplibs_check_method
 
17962
 
 
17963
# Command to use when deplibs_check_method == file_magic.
 
17964
file_magic_cmd=$lt_file_magic_cmd
 
17965
 
 
17966
# Flag that allows shared libraries with undefined symbols to be built.
 
17967
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
17968
 
 
17969
# Flag that forces no undefined symbols.
 
17970
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
17971
 
 
17972
# Commands used to finish a libtool library installation in a directory.
 
17973
finish_cmds=$lt_finish_cmds
 
17974
 
 
17975
# Same as above, but a single script fragment to be evaled but not shown.
 
17976
finish_eval=$lt_finish_eval
 
17977
 
 
17978
# Take the output of nm and produce a listing of raw symbols and C names.
 
17979
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17980
 
 
17981
# Transform the output of nm in a proper C declaration
 
17982
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17983
 
 
17984
# Transform the output of nm in a C name address pair
 
17985
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17986
 
 
17987
# This is the shared library runtime path variable.
 
17988
runpath_var=$runpath_var
 
17989
 
 
17990
# This is the shared library path variable.
 
17991
shlibpath_var=$shlibpath_var
 
17992
 
 
17993
# Is shlibpath searched before the hard-coded library search path?
 
17994
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17995
 
 
17996
# How to hardcode a shared library path into an executable.
 
17997
hardcode_action=$hardcode_action_GCJ
 
17998
 
 
17999
# Whether we should hardcode library paths into libraries.
 
18000
hardcode_into_libs=$hardcode_into_libs
 
18001
 
 
18002
# Flag to hardcode \$libdir into a binary during linking.
 
18003
# This must work even if \$libdir does not exist.
 
18004
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18005
 
 
18006
# If ld is used when linking, flag to hardcode \$libdir into
 
18007
# a binary during linking. This must work even if \$libdir does
 
18008
# not exist.
 
18009
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18010
 
 
18011
# Whether we need a single -rpath flag with a separated argument.
 
18012
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18013
 
 
18014
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18015
# resulting binary.
 
18016
hardcode_direct=$hardcode_direct_GCJ
 
18017
 
 
18018
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18019
# resulting binary.
 
18020
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18021
 
 
18022
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18023
# the resulting binary.
 
18024
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18025
 
 
18026
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18027
# and all subsequent libraries and executables linked against it.
 
18028
hardcode_automatic=$hardcode_automatic_GCJ
 
18029
 
 
18030
# Variables whose values should be saved in libtool wrapper scripts and
 
18031
# restored at relink time.
 
18032
variables_saved_for_relink="$variables_saved_for_relink"
 
18033
 
 
18034
# Whether libtool must link a program against all its dependency libraries.
 
18035
link_all_deplibs=$link_all_deplibs_GCJ
 
18036
 
 
18037
# Compile-time system search path for libraries
 
18038
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
18039
 
 
18040
# Run-time system search path for libraries
 
18041
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18042
 
 
18043
# Fix the shell variable \$srcfile for the compiler.
 
18044
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18045
 
 
18046
# Set to yes if exported symbols are required.
 
18047
always_export_symbols=$always_export_symbols_GCJ
 
18048
 
 
18049
# The commands to list exported symbols.
 
18050
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18051
 
 
18052
# The commands to extract the exported symbol list from a shared archive.
 
18053
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18054
 
 
18055
# Symbols that should not be listed in the preloaded symbols.
 
18056
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18057
 
 
18058
# Symbols that must always be exported.
 
18059
include_expsyms=$lt_include_expsyms_GCJ
 
18060
 
 
18061
# ### END LIBTOOL TAG CONFIG: $tagname
 
18062
 
 
18063
__EOF__
 
18064
 
 
18065
 
 
18066
else
 
18067
  # If there is no Makefile yet, we rely on a make rule to execute
 
18068
  # `config.status --recheck' to rerun these tests and create the
 
18069
  # libtool script then.
 
18070
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18071
  if test -f "$ltmain_in"; then
 
18072
    test -f Makefile && make "$ltmain"
 
18073
  fi
 
18074
fi
 
18075
 
 
18076
 
 
18077
ac_ext=c
 
18078
ac_cpp='$CPP $CPPFLAGS'
 
18079
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18080
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18081
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18082
 
 
18083
CC="$lt_save_CC"
 
18084
 
 
18085
        else
 
18086
          tagname=""
 
18087
        fi
 
18088
        ;;
 
18089
 
 
18090
      RC)
 
18091
 
 
18092
 
 
18093
 
 
18094
# Source file extension for RC test sources.
 
18095
ac_ext=rc
 
18096
 
 
18097
# Object file extension for compiled RC test sources.
 
18098
objext=o
 
18099
objext_RC=$objext
 
18100
 
 
18101
# Code to be used in simple compile tests
 
18102
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18103
 
 
18104
# Code to be used in simple link tests
 
18105
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18106
 
 
18107
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18108
 
 
18109
# If no C compiler was specified, use CC.
 
18110
LTCC=${LTCC-"$CC"}
 
18111
 
 
18112
# If no C compiler flags were specified, use CFLAGS.
 
18113
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18114
 
 
18115
# Allow CC to be a program name with arguments.
 
18116
compiler=$CC
 
18117
 
 
18118
 
 
18119
# save warnings/boilerplate of simple test code
 
18120
ac_outfile=conftest.$ac_objext
 
18121
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18122
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18123
_lt_compiler_boilerplate=`cat conftest.err`
 
18124
$rm conftest*
 
18125
 
 
18126
ac_outfile=conftest.$ac_objext
 
18127
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18128
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18129
_lt_linker_boilerplate=`cat conftest.err`
 
18130
$rm conftest*
 
18131
 
 
18132
 
 
18133
# Allow CC to be a program name with arguments.
 
18134
lt_save_CC="$CC"
 
18135
CC=${RC-"windres"}
 
18136
compiler=$CC
 
18137
compiler_RC=$CC
 
18138
for cc_temp in $compiler""; do
 
18139
  case $cc_temp in
 
18140
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18141
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18142
    \-*) ;;
 
18143
    *) break;;
 
18144
  esac
 
18145
done
 
18146
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18147
 
 
18148
lt_cv_prog_compiler_c_o_RC=yes
 
18149
 
 
18150
# The else clause should only fire when bootstrapping the
 
18151
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18152
# with your package, and you will get complaints that there are
 
18153
# no rules to generate ltmain.sh.
 
18154
if test -f "$ltmain"; then
 
18155
  # See if we are running on zsh, and set the options which allow our commands through
 
18156
  # without removal of \ escapes.
 
18157
  if test -n "${ZSH_VERSION+set}" ; then
 
18158
    setopt NO_GLOB_SUBST
 
18159
  fi
 
18160
  # Now quote all the things that may contain metacharacters while being
 
18161
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18162
  # variables and quote the copies for generation of the libtool script.
 
18163
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18164
    SED SHELL STRIP \
 
18165
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18166
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18167
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18168
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18169
    lt_cv_sys_global_symbol_to_c_name_address \
 
18170
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18171
    old_postinstall_cmds old_postuninstall_cmds \
 
18172
    compiler_RC \
 
18173
    CC_RC \
 
18174
    LD_RC \
 
18175
    lt_prog_compiler_wl_RC \
 
18176
    lt_prog_compiler_pic_RC \
 
18177
    lt_prog_compiler_static_RC \
 
18178
    lt_prog_compiler_no_builtin_flag_RC \
 
18179
    export_dynamic_flag_spec_RC \
 
18180
    thread_safe_flag_spec_RC \
 
18181
    whole_archive_flag_spec_RC \
 
18182
    enable_shared_with_static_runtimes_RC \
 
18183
    old_archive_cmds_RC \
 
18184
    old_archive_from_new_cmds_RC \
 
18185
    predep_objects_RC \
 
18186
    postdep_objects_RC \
 
18187
    predeps_RC \
 
18188
    postdeps_RC \
 
18189
    compiler_lib_search_path_RC \
 
18190
    archive_cmds_RC \
 
18191
    archive_expsym_cmds_RC \
 
18192
    postinstall_cmds_RC \
 
18193
    postuninstall_cmds_RC \
 
18194
    old_archive_from_expsyms_cmds_RC \
 
18195
    allow_undefined_flag_RC \
 
18196
    no_undefined_flag_RC \
 
18197
    export_symbols_cmds_RC \
 
18198
    hardcode_libdir_flag_spec_RC \
 
18199
    hardcode_libdir_flag_spec_ld_RC \
 
18200
    hardcode_libdir_separator_RC \
 
18201
    hardcode_automatic_RC \
 
18202
    module_cmds_RC \
 
18203
    module_expsym_cmds_RC \
 
18204
    lt_cv_prog_compiler_c_o_RC \
 
18205
    exclude_expsyms_RC \
 
18206
    include_expsyms_RC; do
 
18207
 
 
18208
    case $var in
 
18209
    old_archive_cmds_RC | \
 
18210
    old_archive_from_new_cmds_RC | \
 
18211
    archive_cmds_RC | \
 
18212
    archive_expsym_cmds_RC | \
 
18213
    module_cmds_RC | \
 
18214
    module_expsym_cmds_RC | \
 
18215
    old_archive_from_expsyms_cmds_RC | \
 
18216
    export_symbols_cmds_RC | \
 
18217
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18218
    postinstall_cmds | postuninstall_cmds | \
 
18219
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18220
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18221
      # Double-quote double-evaled strings.
 
18222
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18223
      ;;
 
18224
    *)
 
18225
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18226
      ;;
 
18227
    esac
 
18228
  done
 
18229
 
 
18230
  case $lt_echo in
 
18231
  *'\$0 --fallback-echo"')
 
18232
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18233
    ;;
 
18234
  esac
 
18235
 
 
18236
cfgfile="$ofile"
 
18237
 
 
18238
  cat <<__EOF__ >> "$cfgfile"
 
18239
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18240
 
 
18241
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18242
 
 
18243
# Shell to use when invoking shell scripts.
 
18244
SHELL=$lt_SHELL
 
18245
 
 
18246
# Whether or not to build shared libraries.
 
18247
build_libtool_libs=$enable_shared
 
18248
 
 
18249
# Whether or not to build static libraries.
 
18250
build_old_libs=$enable_static
 
18251
 
 
18252
# Whether or not to add -lc for building shared libraries.
 
18253
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
18254
 
 
18255
# Whether or not to disallow shared libs when runtime libs are static
 
18256
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
18257
 
 
18258
# Whether or not to optimize for fast installation.
 
18259
fast_install=$enable_fast_install
 
18260
 
 
18261
# The host system.
 
18262
host_alias=$host_alias
 
18263
host=$host
 
18264
host_os=$host_os
 
18265
 
 
18266
# The build system.
 
18267
build_alias=$build_alias
 
18268
build=$build
 
18269
build_os=$build_os
 
18270
 
 
18271
# An echo program that does not interpret backslashes.
 
18272
echo=$lt_echo
 
18273
 
 
18274
# The archiver.
 
18275
AR=$lt_AR
 
18276
AR_FLAGS=$lt_AR_FLAGS
 
18277
 
 
18278
# A C compiler.
 
18279
LTCC=$lt_LTCC
 
18280
 
 
18281
# LTCC compiler flags.
 
18282
LTCFLAGS=$lt_LTCFLAGS
 
18283
 
 
18284
# A language-specific compiler.
 
18285
CC=$lt_compiler_RC
 
18286
 
 
18287
# Is the compiler the GNU C compiler?
 
18288
with_gcc=$GCC_RC
 
18289
 
 
18290
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
18291
gcc_ver=\`gcc -dumpversion\`
 
18292
 
 
18293
# An ERE matcher.
 
18294
EGREP=$lt_EGREP
 
18295
 
 
18296
# The linker used to build libraries.
 
18297
LD=$lt_LD_RC
 
18298
 
 
18299
# Whether we need hard or soft links.
 
18300
LN_S=$lt_LN_S
 
18301
 
 
18302
# A BSD-compatible nm program.
 
18303
NM=$lt_NM
 
18304
 
 
18305
# A symbol stripping program
 
18306
STRIP=$lt_STRIP
 
18307
 
 
18308
# Used to examine libraries when file_magic_cmd begins "file"
 
18309
MAGIC_CMD=$MAGIC_CMD
 
18310
 
 
18311
# Used on cygwin: DLL creation program.
 
18312
DLLTOOL="$DLLTOOL"
 
18313
 
 
18314
# Used on cygwin: object dumper.
 
18315
OBJDUMP="$OBJDUMP"
 
18316
 
 
18317
# Used on cygwin: assembler.
 
18318
AS="$AS"
 
18319
 
 
18320
# The name of the directory that contains temporary libtool files.
 
18321
objdir=$objdir
 
18322
 
 
18323
# How to create reloadable object files.
 
18324
reload_flag=$lt_reload_flag
 
18325
reload_cmds=$lt_reload_cmds
 
18326
 
 
18327
# How to pass a linker flag through the compiler.
 
18328
wl=$lt_lt_prog_compiler_wl_RC
 
18329
 
 
18330
# Object file suffix (normally "o").
 
18331
objext="$ac_objext"
 
18332
 
 
18333
# Old archive suffix (normally "a").
 
18334
libext="$libext"
 
18335
 
 
18336
# Shared library suffix (normally ".so").
 
18337
shrext_cmds='$shrext_cmds'
 
18338
 
 
18339
# Executable file suffix (normally "").
 
18340
exeext="$exeext"
 
18341
 
 
18342
# Additional compiler flags for building library objects.
 
18343
pic_flag=$lt_lt_prog_compiler_pic_RC
 
18344
pic_mode=$pic_mode
 
18345
 
 
18346
# What is the maximum length of a command?
 
18347
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18348
 
 
18349
# Does compiler simultaneously support -c and -o options?
 
18350
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
18351
 
 
18352
# Must we lock files when doing compilation?
 
18353
need_locks=$lt_need_locks
 
18354
 
 
18355
# Do we need the lib prefix for modules?
 
18356
need_lib_prefix=$need_lib_prefix
 
18357
 
 
18358
# Do we need a version for libraries?
 
18359
need_version=$need_version
 
18360
 
 
18361
# Whether dlopen is supported.
 
18362
dlopen_support=$enable_dlopen
 
18363
 
 
18364
# Whether dlopen of programs is supported.
 
18365
dlopen_self=$enable_dlopen_self
 
18366
 
 
18367
# Whether dlopen of statically linked programs is supported.
 
18368
dlopen_self_static=$enable_dlopen_self_static
 
18369
 
 
18370
# Compiler flag to prevent dynamic linking.
 
18371
link_static_flag=$lt_lt_prog_compiler_static_RC
 
18372
 
 
18373
# Compiler flag to turn off builtin functions.
 
18374
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
18375
 
 
18376
# Compiler flag to allow reflexive dlopens.
 
18377
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
18378
 
 
18379
# Compiler flag to generate shared objects directly from archives.
 
18380
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
18381
 
 
18382
# Compiler flag to generate thread-safe objects.
 
18383
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
18384
 
 
18385
# Library versioning type.
 
18386
version_type=$version_type
 
18387
 
 
18388
# Format of library name prefix.
 
18389
libname_spec=$lt_libname_spec
 
18390
 
 
18391
# List of archive names.  First name is the real one, the rest are links.
 
18392
# The last name is the one that the linker finds with -lNAME.
 
18393
library_names_spec=$lt_library_names_spec
 
18394
 
 
18395
# The coded name of the library, if different from the real name.
 
18396
soname_spec=$lt_soname_spec
 
18397
 
 
18398
# Commands used to build and install an old-style archive.
 
18399
RANLIB=$lt_RANLIB
 
18400
old_archive_cmds=$lt_old_archive_cmds_RC
 
18401
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18402
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18403
 
 
18404
# Create an old-style archive from a shared archive.
 
18405
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
18406
 
 
18407
# Create a temporary old-style archive to link instead of a shared archive.
 
18408
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
18409
 
 
18410
# Commands used to build and install a shared archive.
 
18411
archive_cmds=$lt_archive_cmds_RC
 
18412
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
18413
postinstall_cmds=$lt_postinstall_cmds
 
18414
postuninstall_cmds=$lt_postuninstall_cmds
 
18415
 
 
18416
# Commands used to build a loadable module (assumed same as above if empty)
 
18417
module_cmds=$lt_module_cmds_RC
 
18418
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
18419
 
 
18420
# Commands to strip libraries.
 
18421
old_striplib=$lt_old_striplib
 
18422
striplib=$lt_striplib
 
18423
 
 
18424
# Dependencies to place before the objects being linked to create a
 
18425
# shared library.
 
18426
predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
18427
 
 
18428
# Dependencies to place after the objects being linked to create a
 
18429
# shared library.
 
18430
postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
18431
 
 
18432
# Dependencies to place before the objects being linked to create a
 
18433
# shared library.
 
18434
predeps=$lt_predeps_RC
 
18435
 
 
18436
# Dependencies to place after the objects being linked to create a
 
18437
# shared library.
 
18438
postdeps=$lt_postdeps_RC
 
18439
 
 
18440
# The library search path used internally by the compiler when linking
 
18441
# a shared library.
 
18442
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
18443
 
 
18444
# Method to check whether dependent libraries are shared objects.
 
18445
deplibs_check_method=$lt_deplibs_check_method
 
18446
 
 
18447
# Command to use when deplibs_check_method == file_magic.
 
18448
file_magic_cmd=$lt_file_magic_cmd
 
18449
 
 
18450
# Flag that allows shared libraries with undefined symbols to be built.
 
18451
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
18452
 
 
18453
# Flag that forces no undefined symbols.
 
18454
no_undefined_flag=$lt_no_undefined_flag_RC
 
18455
 
 
18456
# Commands used to finish a libtool library installation in a directory.
 
18457
finish_cmds=$lt_finish_cmds
 
18458
 
 
18459
# Same as above, but a single script fragment to be evaled but not shown.
 
18460
finish_eval=$lt_finish_eval
 
18461
 
 
18462
# Take the output of nm and produce a listing of raw symbols and C names.
 
18463
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18464
 
 
18465
# Transform the output of nm in a proper C declaration
 
18466
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18467
 
 
18468
# Transform the output of nm in a C name address pair
 
18469
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18470
 
 
18471
# This is the shared library runtime path variable.
 
18472
runpath_var=$runpath_var
 
18473
 
 
18474
# This is the shared library path variable.
 
18475
shlibpath_var=$shlibpath_var
 
18476
 
 
18477
# Is shlibpath searched before the hard-coded library search path?
 
18478
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18479
 
 
18480
# How to hardcode a shared library path into an executable.
 
18481
hardcode_action=$hardcode_action_RC
 
18482
 
 
18483
# Whether we should hardcode library paths into libraries.
 
18484
hardcode_into_libs=$hardcode_into_libs
 
18485
 
 
18486
# Flag to hardcode \$libdir into a binary during linking.
 
18487
# This must work even if \$libdir does not exist.
 
18488
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
18489
 
 
18490
# If ld is used when linking, flag to hardcode \$libdir into
 
18491
# a binary during linking. This must work even if \$libdir does
 
18492
# not exist.
 
18493
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
18494
 
 
18495
# Whether we need a single -rpath flag with a separated argument.
 
18496
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
18497
 
 
18498
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18499
# resulting binary.
 
18500
hardcode_direct=$hardcode_direct_RC
 
18501
 
 
18502
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18503
# resulting binary.
 
18504
hardcode_minus_L=$hardcode_minus_L_RC
 
18505
 
 
18506
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18507
# the resulting binary.
 
18508
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
18509
 
 
18510
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18511
# and all subsequent libraries and executables linked against it.
 
18512
hardcode_automatic=$hardcode_automatic_RC
 
18513
 
 
18514
# Variables whose values should be saved in libtool wrapper scripts and
 
18515
# restored at relink time.
 
18516
variables_saved_for_relink="$variables_saved_for_relink"
 
18517
 
 
18518
# Whether libtool must link a program against all its dependency libraries.
 
18519
link_all_deplibs=$link_all_deplibs_RC
 
18520
 
 
18521
# Compile-time system search path for libraries
 
18522
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
18523
 
 
18524
# Run-time system search path for libraries
 
18525
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18526
 
 
18527
# Fix the shell variable \$srcfile for the compiler.
 
18528
fix_srcfile_path="$fix_srcfile_path_RC"
 
18529
 
 
18530
# Set to yes if exported symbols are required.
 
18531
always_export_symbols=$always_export_symbols_RC
 
18532
 
 
18533
# The commands to list exported symbols.
 
18534
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
18535
 
 
18536
# The commands to extract the exported symbol list from a shared archive.
 
18537
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18538
 
 
18539
# Symbols that should not be listed in the preloaded symbols.
 
18540
exclude_expsyms=$lt_exclude_expsyms_RC
 
18541
 
 
18542
# Symbols that must always be exported.
 
18543
include_expsyms=$lt_include_expsyms_RC
 
18544
 
 
18545
# ### END LIBTOOL TAG CONFIG: $tagname
 
18546
 
 
18547
__EOF__
 
18548
 
 
18549
 
 
18550
else
 
18551
  # If there is no Makefile yet, we rely on a make rule to execute
 
18552
  # `config.status --recheck' to rerun these tests and create the
 
18553
  # libtool script then.
 
18554
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18555
  if test -f "$ltmain_in"; then
 
18556
    test -f Makefile && make "$ltmain"
 
18557
  fi
 
18558
fi
 
18559
 
 
18560
 
 
18561
ac_ext=c
 
18562
ac_cpp='$CPP $CPPFLAGS'
 
18563
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18564
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18565
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18566
 
 
18567
CC="$lt_save_CC"
 
18568
 
 
18569
        ;;
 
18570
 
 
18571
      *)
 
18572
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
18573
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
18574
   { (exit 1); exit 1; }; }
 
18575
        ;;
 
18576
      esac
 
18577
 
 
18578
      # Append the new tag name to the list of available tags.
 
18579
      if test -n "$tagname" ; then
 
18580
      available_tags="$available_tags $tagname"
 
18581
    fi
 
18582
    fi
 
18583
  done
 
18584
  IFS="$lt_save_ifs"
 
18585
 
 
18586
  # Now substitute the updated list of available tags.
 
18587
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
18588
    mv "${ofile}T" "$ofile"
 
18589
    chmod +x "$ofile"
 
18590
  else
 
18591
    rm -f "${ofile}T"
 
18592
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
18593
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
18594
   { (exit 1); exit 1; }; }
 
18595
  fi
 
18596
fi
 
18597
 
 
18598
 
 
18599
 
 
18600
# This can be used to rebuild libtool when needed
 
18601
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
18602
 
 
18603
# Always use our own libtool.
 
18604
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
18605
 
 
18606
# Prevent multiple expansion
 
18607
 
 
18608
 
 
18609
 
 
18610
 
 
18611
 
 
18612
 
 
18613
 
 
18614
 
 
18615
 
 
18616
 
 
18617
 
 
18618
 
 
18619
 
 
18620
 
 
18621
 
 
18622
 
 
18623
 
 
18624
 
 
18625
 
 
18626
 
 
18627
 
 
18628
echo "$as_me:$LINENO: checking for inline" >&5
 
18629
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
18630
if test "${ac_cv_c_inline+set}" = set; then
 
18631
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18632
else
 
18633
  ac_cv_c_inline=no
 
18634
for ac_kw in inline __inline__ __inline; do
 
18635
  cat >conftest.$ac_ext <<_ACEOF
 
18636
/* confdefs.h.  */
 
18637
_ACEOF
 
18638
cat confdefs.h >>conftest.$ac_ext
 
18639
cat >>conftest.$ac_ext <<_ACEOF
 
18640
/* end confdefs.h.  */
 
18641
#ifndef __cplusplus
 
18642
typedef int foo_t;
 
18643
static $ac_kw foo_t static_foo () {return 0; }
 
18644
$ac_kw foo_t foo () {return 0; }
 
18645
#endif
 
18646
 
 
18647
_ACEOF
 
18648
rm -f conftest.$ac_objext
 
18649
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18650
  (eval $ac_compile) 2>conftest.er1
 
18651
  ac_status=$?
 
18652
  grep -v '^ *+' conftest.er1 >conftest.err
 
18653
  rm -f conftest.er1
 
18654
  cat conftest.err >&5
 
18655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18656
  (exit $ac_status); } &&
 
18657
         { ac_try='test -z "$ac_c_werror_flag"
 
18658
                         || test ! -s conftest.err'
 
18659
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18660
  (eval $ac_try) 2>&5
 
18661
  ac_status=$?
 
18662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18663
  (exit $ac_status); }; } &&
 
18664
         { ac_try='test -s conftest.$ac_objext'
 
18665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18666
  (eval $ac_try) 2>&5
 
18667
  ac_status=$?
 
18668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18669
  (exit $ac_status); }; }; then
 
18670
  ac_cv_c_inline=$ac_kw; break
 
18671
else
 
18672
  echo "$as_me: failed program was:" >&5
 
18673
sed 's/^/| /' conftest.$ac_ext >&5
 
18674
 
 
18675
fi
 
18676
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
18677
done
 
18678
 
 
18679
fi
 
18680
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
18681
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
18682
 
 
18683
 
 
18684
case $ac_cv_c_inline in
 
18685
  inline | yes) ;;
 
18686
  *)
 
18687
    case $ac_cv_c_inline in
 
18688
      no) ac_val=;;
 
18689
      *) ac_val=$ac_cv_c_inline;;
 
18690
    esac
 
18691
    cat >>confdefs.h <<_ACEOF
 
18692
#ifndef __cplusplus
 
18693
#define inline $ac_val
 
18694
#endif
 
18695
_ACEOF
 
18696
    ;;
 
18697
esac
 
18698
 
 
18699
 
 
18700
echo "$as_me:$LINENO: checking whether pthread_mutex_t is larger than 24 bytes" >&5
 
18701
echo $ECHO_N "checking whether pthread_mutex_t is larger than 24 bytes... $ECHO_C" >&6
 
18702
if test "$cross_compiling" = yes; then
 
18703
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
18704
See \`config.log' for more details." >&5
 
18705
echo "$as_me: error: cannot run test program while cross compiling
 
18706
See \`config.log' for more details." >&2;}
 
18707
   { (exit 1); exit 1; }; }
 
18708
else
 
18709
  cat >conftest.$ac_ext <<_ACEOF
 
18710
/* confdefs.h.  */
 
18711
_ACEOF
 
18712
cat confdefs.h >>conftest.$ac_ext
 
18713
cat >>conftest.$ac_ext <<_ACEOF
 
18714
/* end confdefs.h.  */
 
18715
 
 
18716
#include <pthread.h>
 
18717
int main(void){return (sizeof(pthread_mutex_t) > 24);}
 
18718
 
 
18719
_ACEOF
 
18720
rm -f conftest$ac_exeext
 
18721
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18722
  (eval $ac_link) 2>&5
 
18723
  ac_status=$?
 
18724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18725
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
18726
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18727
  (eval $ac_try) 2>&5
 
18728
  ac_status=$?
 
18729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18730
  (exit $ac_status); }; }; then
 
18731
  echo "$as_me:$LINENO: result: yes" >&5
 
18732
echo "${ECHO_T}yes" >&6
 
18733
else
 
18734
  echo "$as_me: program exited with status $ac_status" >&5
 
18735
echo "$as_me: failed program was:" >&5
 
18736
sed 's/^/| /' conftest.$ac_ext >&5
 
18737
 
 
18738
( exit $ac_status )
 
18739
 
 
18740
    echo "$as_me:$LINENO: result: no" >&5
 
18741
echo "${ECHO_T}no" >&6
 
18742
 
 
18743
cat >>confdefs.h <<\_ACEOF
 
18744
#define UMEM_PTHREAD_MUTEX_TOO_BIG 1
 
18745
_ACEOF
 
18746
 
 
18747
    { echo "$as_me:$LINENO: WARNING: *** increasing umem cpu cache size to compensate." >&5
 
18748
echo "$as_me: WARNING: *** increasing umem cpu cache size to compensate." >&2;}
 
18749
 
 
18750
 
 
18751
fi
 
18752
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
18753
fi
 
18754
 
 
18755
 
 
18756
 
 
18757
 
 
18758
 
 
18759
 
 
18760
for ac_header in sys/mman.h sys/sysmacros.h sys/time.h malloc.h
 
18761
do
 
18762
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
18763
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
18764
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18765
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
18766
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
18767
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18768
fi
 
18769
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
18770
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
18771
else
 
18772
  # Is the header compilable?
 
18773
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
18774
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
18775
cat >conftest.$ac_ext <<_ACEOF
 
18776
/* confdefs.h.  */
 
18777
_ACEOF
 
18778
cat confdefs.h >>conftest.$ac_ext
 
18779
cat >>conftest.$ac_ext <<_ACEOF
 
18780
/* end confdefs.h.  */
 
18781
$ac_includes_default
 
18782
#include <$ac_header>
 
18783
_ACEOF
 
18784
rm -f conftest.$ac_objext
 
18785
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18786
  (eval $ac_compile) 2>conftest.er1
 
18787
  ac_status=$?
 
18788
  grep -v '^ *+' conftest.er1 >conftest.err
 
18789
  rm -f conftest.er1
 
18790
  cat conftest.err >&5
 
18791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18792
  (exit $ac_status); } &&
 
18793
         { ac_try='test -z "$ac_c_werror_flag"
 
18794
                         || test ! -s conftest.err'
 
18795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18796
  (eval $ac_try) 2>&5
 
18797
  ac_status=$?
 
18798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18799
  (exit $ac_status); }; } &&
 
18800
         { ac_try='test -s conftest.$ac_objext'
 
18801
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18802
  (eval $ac_try) 2>&5
 
18803
  ac_status=$?
 
18804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18805
  (exit $ac_status); }; }; then
 
18806
  ac_header_compiler=yes
 
18807
else
 
18808
  echo "$as_me: failed program was:" >&5
 
18809
sed 's/^/| /' conftest.$ac_ext >&5
 
18810
 
 
18811
ac_header_compiler=no
 
18812
fi
 
18813
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
18814
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
18815
echo "${ECHO_T}$ac_header_compiler" >&6
 
18816
 
 
18817
# Is the header present?
 
18818
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
18819
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
18820
cat >conftest.$ac_ext <<_ACEOF
 
18821
/* confdefs.h.  */
 
18822
_ACEOF
 
18823
cat confdefs.h >>conftest.$ac_ext
 
18824
cat >>conftest.$ac_ext <<_ACEOF
 
18825
/* end confdefs.h.  */
 
18826
#include <$ac_header>
 
18827
_ACEOF
 
18828
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
18829
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
18830
  ac_status=$?
 
18831
  grep -v '^ *+' conftest.er1 >conftest.err
 
18832
  rm -f conftest.er1
 
18833
  cat conftest.err >&5
 
18834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18835
  (exit $ac_status); } >/dev/null; then
 
18836
  if test -s conftest.err; then
 
18837
    ac_cpp_err=$ac_c_preproc_warn_flag
 
18838
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
18839
  else
 
18840
    ac_cpp_err=
 
18841
  fi
 
18842
else
 
18843
  ac_cpp_err=yes
 
18844
fi
 
18845
if test -z "$ac_cpp_err"; then
 
18846
  ac_header_preproc=yes
 
18847
else
 
18848
  echo "$as_me: failed program was:" >&5
 
18849
sed 's/^/| /' conftest.$ac_ext >&5
 
18850
 
 
18851
  ac_header_preproc=no
 
18852
fi
 
18853
rm -f conftest.err conftest.$ac_ext
 
18854
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
18855
echo "${ECHO_T}$ac_header_preproc" >&6
 
18856
 
 
18857
# So?  What about this header?
 
18858
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
18859
  yes:no: )
 
18860
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
18861
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
18862
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
18863
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
18864
    ac_header_preproc=yes
 
18865
    ;;
 
18866
  no:yes:* )
 
18867
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
18868
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
18869
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
18870
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
18871
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
18872
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
18873
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
18874
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
18875
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
18876
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
18877
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
18878
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
18879
    (
 
18880
      cat <<\_ASBOX
 
18881
## ------------------------------- ##
 
18882
## Report this to the umem lists.  ##
 
18883
## ------------------------------- ##
 
18884
_ASBOX
 
18885
    ) |
 
18886
      sed "s/^/$as_me: WARNING:     /" >&2
 
18887
    ;;
 
18888
esac
 
18889
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18890
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
18891
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
18892
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18893
else
 
18894
  eval "$as_ac_Header=\$ac_header_preproc"
 
18895
fi
 
18896
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
18897
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
18898
 
 
18899
fi
 
18900
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
18901
  cat >>confdefs.h <<_ACEOF
 
18902
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
18903
_ACEOF
 
18904
 
 
18905
fi
 
18906
 
 
18907
done
 
18908
 
 
18909
 
 
18910
 
 
18911
 
 
18912
for ac_func in issetugid mallinfo malloc_stats
 
18913
do
 
18914
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18915
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18916
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
18917
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
18918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18919
else
 
18920
  cat >conftest.$ac_ext <<_ACEOF
 
18921
/* confdefs.h.  */
 
18922
_ACEOF
 
18923
cat confdefs.h >>conftest.$ac_ext
 
18924
cat >>conftest.$ac_ext <<_ACEOF
 
18925
/* end confdefs.h.  */
 
18926
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18927
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18928
#define $ac_func innocuous_$ac_func
 
18929
 
 
18930
/* System header to define __stub macros and hopefully few prototypes,
 
18931
    which can conflict with char $ac_func (); below.
 
18932
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18933
    <limits.h> exists even on freestanding compilers.  */
 
18934
 
 
18935
#ifdef __STDC__
 
18936
# include <limits.h>
 
18937
#else
 
18938
# include <assert.h>
 
18939
#endif
 
18940
 
 
18941
#undef $ac_func
 
18942
 
 
18943
/* Override any gcc2 internal prototype to avoid an error.  */
 
18944
#ifdef __cplusplus
 
18945
extern "C"
 
18946
{
 
18947
#endif
 
18948
/* We use char because int might match the return type of a gcc2
 
18949
   builtin and then its argument prototype would still apply.  */
 
18950
char $ac_func ();
 
18951
/* The GNU C library defines this for functions which it implements
 
18952
    to always fail with ENOSYS.  Some functions are actually named
 
18953
    something starting with __ and the normal name is an alias.  */
 
18954
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
18955
choke me
 
18956
#else
 
18957
char (*f) () = $ac_func;
 
18958
#endif
 
18959
#ifdef __cplusplus
 
18960
}
 
18961
#endif
 
18962
 
 
18963
int
 
18964
main ()
 
18965
{
 
18966
return f != $ac_func;
 
18967
  ;
 
18968
  return 0;
 
18969
}
 
18970
_ACEOF
 
18971
rm -f conftest.$ac_objext conftest$ac_exeext
 
18972
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18973
  (eval $ac_link) 2>conftest.er1
 
18974
  ac_status=$?
 
18975
  grep -v '^ *+' conftest.er1 >conftest.err
 
18976
  rm -f conftest.er1
 
18977
  cat conftest.err >&5
 
18978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18979
  (exit $ac_status); } &&
 
18980
         { ac_try='test -z "$ac_c_werror_flag"
 
18981
                         || test ! -s conftest.err'
 
18982
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18983
  (eval $ac_try) 2>&5
 
18984
  ac_status=$?
 
18985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18986
  (exit $ac_status); }; } &&
 
18987
         { ac_try='test -s conftest$ac_exeext'
 
18988
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18989
  (eval $ac_try) 2>&5
 
18990
  ac_status=$?
 
18991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18992
  (exit $ac_status); }; }; then
 
18993
  eval "$as_ac_var=yes"
 
18994
else
 
18995
  echo "$as_me: failed program was:" >&5
 
18996
sed 's/^/| /' conftest.$ac_ext >&5
 
18997
 
 
18998
eval "$as_ac_var=no"
 
18999
fi
 
19000
rm -f conftest.err conftest.$ac_objext \
 
19001
      conftest$ac_exeext conftest.$ac_ext
 
19002
fi
 
19003
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19004
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19005
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19006
  cat >>confdefs.h <<_ACEOF
 
19007
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19008
_ACEOF
 
19009
 
 
19010
fi
 
19011
done
 
19012
 
 
19013
 
 
19014
          ac_config_headers="$ac_config_headers config.h"
 
19015
 
 
19016
                              ac_config_files="$ac_config_files Makefile Doxyfile umem.spec"
 
19017
 
 
19018
 
 
19019
cat >confcache <<\_ACEOF
 
19020
# This file is a shell script that caches the results of configure
 
19021
# tests run on this system so they can be shared between configure
 
19022
# scripts and configure runs, see configure's option --config-cache.
 
19023
# It is not useful on other systems.  If it contains results you don't
 
19024
# want to keep, you may remove or edit it.
 
19025
#
 
19026
# config.status only pays attention to the cache file if you give it
 
19027
# the --recheck option to rerun configure.
 
19028
#
 
19029
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
19030
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
19031
# following values.
 
19032
 
 
19033
_ACEOF
 
19034
 
 
19035
# The following way of writing the cache mishandles newlines in values,
 
19036
# but we know of no workaround that is simple, portable, and efficient.
 
19037
# So, don't put newlines in cache variables' values.
 
19038
# Ultrix sh set writes to stderr and can't be redirected directly,
 
19039
# and sets the high bit in the cache file unless we assign to the vars.
 
19040
{
 
19041
  (set) 2>&1 |
 
19042
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
19043
    *ac_space=\ *)
 
19044
      # `set' does not quote correctly, so add quotes (double-quote
 
19045
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
19046
      sed -n \
 
19047
        "s/'/'\\\\''/g;
 
19048
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
19049
      ;;
 
19050
    *)
 
19051
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
19052
      sed -n \
 
19053
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
19054
      ;;
 
19055
    esac;
 
19056
} |
 
19057
  sed '
 
19058
     t clear
 
19059
     : clear
 
19060
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
19061
     t end
 
19062
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
19063
     : end' >>confcache
 
19064
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
19065
  if test -w $cache_file; then
 
19066
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
19067
    cat confcache >$cache_file
 
19068
  else
 
19069
    echo "not updating unwritable cache $cache_file"
 
19070
  fi
 
19071
fi
 
19072
rm -f confcache
 
19073
 
 
19074
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
19075
# Let make expand exec_prefix.
 
19076
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
19077
 
 
19078
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
19079
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
19080
# trailing colons and then remove the whole line if VPATH becomes empty
 
19081
# (actually we leave an empty line to preserve line numbers).
 
19082
if test "x$srcdir" = x.; then
 
19083
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
19084
s/:*\$(srcdir):*/:/;
 
19085
s/:*\${srcdir}:*/:/;
 
19086
s/:*@srcdir@:*/:/;
 
19087
s/^\([^=]*=[     ]*\):*/\1/;
 
19088
s/:*$//;
 
19089
s/^[^=]*=[       ]*$//;
 
19090
}'
 
19091
fi
 
19092
 
 
19093
DEFS=-DHAVE_CONFIG_H
 
19094
 
 
19095
ac_libobjs=
 
19096
ac_ltlibobjs=
 
19097
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
19098
  # 1. Remove the extension, and $U if already installed.
 
19099
  ac_i=`echo "$ac_i" |
 
19100
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
19101
  # 2. Add them.
 
19102
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
19103
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
19104
done
 
19105
LIBOBJS=$ac_libobjs
 
19106
 
 
19107
LTLIBOBJS=$ac_ltlibobjs
 
19108
 
 
19109
 
 
19110
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
19111
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
19112
Usually this means the macro was only invoked conditionally." >&5
 
19113
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
19114
Usually this means the macro was only invoked conditionally." >&2;}
 
19115
   { (exit 1); exit 1; }; }
 
19116
fi
 
19117
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
19118
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
19119
Usually this means the macro was only invoked conditionally." >&5
 
19120
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
19121
Usually this means the macro was only invoked conditionally." >&2;}
 
19122
   { (exit 1); exit 1; }; }
 
19123
fi
 
19124
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
19125
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
19126
Usually this means the macro was only invoked conditionally." >&5
 
19127
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
19128
Usually this means the macro was only invoked conditionally." >&2;}
 
19129
   { (exit 1); exit 1; }; }
 
19130
fi
 
19131
 
 
19132
: ${CONFIG_STATUS=./config.status}
 
19133
ac_clean_files_save=$ac_clean_files
 
19134
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
19135
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
19136
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
19137
cat >$CONFIG_STATUS <<_ACEOF
 
19138
#! $SHELL
 
19139
# Generated by $as_me.
 
19140
# Run this file to recreate the current configuration.
 
19141
# Compiler output produced by configure, useful for debugging
 
19142
# configure, is in config.log if it exists.
 
19143
 
 
19144
debug=false
 
19145
ac_cs_recheck=false
 
19146
ac_cs_silent=false
 
19147
SHELL=\${CONFIG_SHELL-$SHELL}
 
19148
_ACEOF
 
19149
 
 
19150
cat >>$CONFIG_STATUS <<\_ACEOF
 
19151
## --------------------- ##
 
19152
## M4sh Initialization.  ##
 
19153
## --------------------- ##
 
19154
 
 
19155
# Be Bourne compatible
 
19156
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
19157
  emulate sh
 
19158
  NULLCMD=:
 
19159
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19160
  # is contrary to our usage.  Disable this feature.
 
19161
  alias -g '${1+"$@"}'='"$@"'
 
19162
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
19163
  set -o posix
 
19164
fi
 
19165
DUALCASE=1; export DUALCASE # for MKS sh
 
19166
 
 
19167
# Support unset when possible.
 
19168
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
19169
  as_unset=unset
 
19170
else
 
19171
  as_unset=false
 
19172
fi
 
19173
 
 
19174
 
 
19175
# Work around bugs in pre-3.0 UWIN ksh.
 
19176
$as_unset ENV MAIL MAILPATH
 
19177
PS1='$ '
 
19178
PS2='> '
 
19179
PS4='+ '
 
19180
 
 
19181
# NLS nuisances.
 
19182
for as_var in \
 
19183
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
19184
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
19185
  LC_TELEPHONE LC_TIME
 
19186
do
 
19187
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
19188
    eval $as_var=C; export $as_var
 
19189
  else
 
19190
    $as_unset $as_var
 
19191
  fi
 
19192
done
 
19193
 
 
19194
# Required to use basename.
 
19195
if expr a : '\(a\)' >/dev/null 2>&1; then
 
19196
  as_expr=expr
 
19197
else
 
19198
  as_expr=false
 
19199
fi
 
19200
 
 
19201
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
19202
  as_basename=basename
 
19203
else
 
19204
  as_basename=false
 
19205
fi
 
19206
 
 
19207
 
 
19208
# Name of the executable.
 
19209
as_me=`$as_basename "$0" ||
 
19210
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
19211
         X"$0" : 'X\(//\)$' \| \
 
19212
         X"$0" : 'X\(/\)$' \| \
 
19213
         .     : '\(.\)' 2>/dev/null ||
 
19214
echo X/"$0" |
 
19215
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
19216
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
19217
          /^X\/\(\/\).*/{ s//\1/; q; }
 
19218
          s/.*/./; q'`
 
19219
 
 
19220
 
 
19221
# PATH needs CR, and LINENO needs CR and PATH.
 
19222
# Avoid depending upon Character Ranges.
 
19223
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
19224
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
19225
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
19226
as_cr_digits='0123456789'
 
19227
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
19228
 
 
19229
# The user is always right.
 
19230
if test "${PATH_SEPARATOR+set}" != set; then
 
19231
  echo "#! /bin/sh" >conf$$.sh
 
19232
  echo  "exit 0"   >>conf$$.sh
 
19233
  chmod +x conf$$.sh
 
19234
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
19235
    PATH_SEPARATOR=';'
 
19236
  else
 
19237
    PATH_SEPARATOR=:
 
19238
  fi
 
19239
  rm -f conf$$.sh
 
19240
fi
 
19241
 
 
19242
 
 
19243
  as_lineno_1=$LINENO
 
19244
  as_lineno_2=$LINENO
 
19245
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
19246
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
19247
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
19248
  # Find who we are.  Look in the path if we contain no path at all
 
19249
  # relative or not.
 
19250
  case $0 in
 
19251
    *[\\/]* ) as_myself=$0 ;;
 
19252
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19253
for as_dir in $PATH
 
19254
do
 
19255
  IFS=$as_save_IFS
 
19256
  test -z "$as_dir" && as_dir=.
 
19257
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
19258
done
 
19259
 
 
19260
       ;;
 
19261
  esac
 
19262
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
19263
  # in which case we are not to be found in the path.
 
19264
  if test "x$as_myself" = x; then
 
19265
    as_myself=$0
 
19266
  fi
 
19267
  if test ! -f "$as_myself"; then
 
19268
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
19269
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
19270
   { (exit 1); exit 1; }; }
 
19271
  fi
 
19272
  case $CONFIG_SHELL in
 
19273
  '')
 
19274
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19275
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
19276
do
 
19277
  IFS=$as_save_IFS
 
19278
  test -z "$as_dir" && as_dir=.
 
19279
  for as_base in sh bash ksh sh5; do
 
19280
         case $as_dir in
 
19281
         /*)
 
19282
           if ("$as_dir/$as_base" -c '
 
19283
  as_lineno_1=$LINENO
 
19284
  as_lineno_2=$LINENO
 
19285
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
19286
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
19287
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
19288
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
19289
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
19290
             CONFIG_SHELL=$as_dir/$as_base
 
19291
             export CONFIG_SHELL
 
19292
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
19293
           fi;;
 
19294
         esac
 
19295
       done
 
19296
done
 
19297
;;
 
19298
  esac
 
19299
 
 
19300
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
19301
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
19302
  # line-number line before each line; the second 'sed' does the real
 
19303
  # work.  The second script uses 'N' to pair each line-number line
 
19304
  # with the numbered line, and appends trailing '-' during
 
19305
  # substitution so that $LINENO is not a special case at line end.
 
19306
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
19307
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
19308
  sed '=' <$as_myself |
 
19309
    sed '
 
19310
      N
 
19311
      s,$,-,
 
19312
      : loop
 
19313
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
19314
      t loop
 
19315
      s,-$,,
 
19316
      s,^['$as_cr_digits']*\n,,
 
19317
    ' >$as_me.lineno &&
 
19318
  chmod +x $as_me.lineno ||
 
19319
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
19320
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
19321
   { (exit 1); exit 1; }; }
 
19322
 
 
19323
  # Don't try to exec as it changes $[0], causing all sort of problems
 
19324
  # (the dirname of $[0] is not the place where we might find the
 
19325
  # original and so on.  Autoconf is especially sensible to this).
 
19326
  . ./$as_me.lineno
 
19327
  # Exit status is that of the last command.
 
19328
  exit
 
19329
}
 
19330
 
 
19331
 
 
19332
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
19333
  *c*,-n*) ECHO_N= ECHO_C='
 
19334
' ECHO_T='      ' ;;
 
19335
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
19336
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
19337
esac
 
19338
 
 
19339
if expr a : '\(a\)' >/dev/null 2>&1; then
 
19340
  as_expr=expr
 
19341
else
 
19342
  as_expr=false
 
19343
fi
 
19344
 
 
19345
rm -f conf$$ conf$$.exe conf$$.file
 
19346
echo >conf$$.file
 
19347
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
19348
  # We could just check for DJGPP; but this test a) works b) is more generic
 
19349
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
19350
  if test -f conf$$.exe; then
 
19351
    # Don't use ln at all; we don't have any links
 
19352
    as_ln_s='cp -p'
 
19353
  else
 
19354
    as_ln_s='ln -s'
 
19355
  fi
 
19356
elif ln conf$$.file conf$$ 2>/dev/null; then
 
19357
  as_ln_s=ln
 
19358
else
 
19359
  as_ln_s='cp -p'
 
19360
fi
 
19361
rm -f conf$$ conf$$.exe conf$$.file
 
19362
 
 
19363
if mkdir -p . 2>/dev/null; then
 
19364
  as_mkdir_p=:
 
19365
else
 
19366
  test -d ./-p && rmdir ./-p
 
19367
  as_mkdir_p=false
 
19368
fi
 
19369
 
 
19370
as_executable_p="test -f"
 
19371
 
 
19372
# Sed expression to map a string onto a valid CPP name.
 
19373
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
19374
 
 
19375
# Sed expression to map a string onto a valid variable name.
 
19376
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
19377
 
 
19378
 
 
19379
# IFS
 
19380
# We need space, tab and new line, in precisely that order.
 
19381
as_nl='
 
19382
'
 
19383
IFS="   $as_nl"
 
19384
 
 
19385
# CDPATH.
 
19386
$as_unset CDPATH
 
19387
 
 
19388
exec 6>&1
 
19389
 
 
19390
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
19391
# report actual input values of CONFIG_FILES etc. instead of their
 
19392
# values after options handling.  Logging --version etc. is OK.
 
19393
exec 5>>config.log
 
19394
{
 
19395
  echo
 
19396
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
19397
## Running $as_me. ##
 
19398
_ASBOX
 
19399
} >&5
 
19400
cat >&5 <<_CSEOF
 
19401
 
 
19402
This file was extended by umem $as_me 1.0.1, which was
 
19403
generated by GNU Autoconf 2.59.  Invocation command line was
 
19404
 
 
19405
  CONFIG_FILES    = $CONFIG_FILES
 
19406
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
19407
  CONFIG_LINKS    = $CONFIG_LINKS
 
19408
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
19409
  $ $0 $@
 
19410
 
 
19411
_CSEOF
 
19412
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
19413
echo >&5
 
19414
_ACEOF
 
19415
 
 
19416
# Files that config.status was made for.
 
19417
if test -n "$ac_config_files"; then
 
19418
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
19419
fi
 
19420
 
 
19421
if test -n "$ac_config_headers"; then
 
19422
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
19423
fi
 
19424
 
 
19425
if test -n "$ac_config_links"; then
 
19426
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
19427
fi
 
19428
 
 
19429
if test -n "$ac_config_commands"; then
 
19430
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
19431
fi
 
19432
 
 
19433
cat >>$CONFIG_STATUS <<\_ACEOF
 
19434
 
 
19435
ac_cs_usage="\
 
19436
\`$as_me' instantiates files from templates according to the
 
19437
current configuration.
 
19438
 
 
19439
Usage: $0 [OPTIONS] [FILE]...
 
19440
 
 
19441
  -h, --help       print this help, then exit
 
19442
  -V, --version    print version number, then exit
 
19443
  -q, --quiet      do not print progress messages
 
19444
  -d, --debug      don't remove temporary files
 
19445
      --recheck    update $as_me by reconfiguring in the same conditions
 
19446
  --file=FILE[:TEMPLATE]
 
19447
                   instantiate the configuration file FILE
 
19448
  --header=FILE[:TEMPLATE]
 
19449
                   instantiate the configuration header FILE
 
19450
 
 
19451
Configuration files:
 
19452
$config_files
 
19453
 
 
19454
Configuration headers:
 
19455
$config_headers
 
19456
 
 
19457
Configuration commands:
 
19458
$config_commands
 
19459
 
 
19460
Report bugs to <bug-autoconf@gnu.org>."
 
19461
_ACEOF
 
19462
 
 
19463
cat >>$CONFIG_STATUS <<_ACEOF
 
19464
ac_cs_version="\\
 
19465
umem config.status 1.0.1
 
19466
configured by $0, generated by GNU Autoconf 2.59,
 
19467
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
19468
 
 
19469
Copyright (C) 2003 Free Software Foundation, Inc.
 
19470
This config.status script is free software; the Free Software Foundation
 
19471
gives unlimited permission to copy, distribute and modify it."
 
19472
srcdir=$srcdir
 
19473
INSTALL="$INSTALL"
 
19474
_ACEOF
 
19475
 
 
19476
cat >>$CONFIG_STATUS <<\_ACEOF
 
19477
# If no file are specified by the user, then we need to provide default
 
19478
# value.  By we need to know if files were specified by the user.
 
19479
ac_need_defaults=:
 
19480
while test $# != 0
 
19481
do
 
19482
  case $1 in
 
19483
  --*=*)
 
19484
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
19485
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
19486
    ac_shift=:
 
19487
    ;;
 
19488
  -*)
 
19489
    ac_option=$1
 
19490
    ac_optarg=$2
 
19491
    ac_shift=shift
 
19492
    ;;
 
19493
  *) # This is not an option, so the user has probably given explicit
 
19494
     # arguments.
 
19495
     ac_option=$1
 
19496
     ac_need_defaults=false;;
 
19497
  esac
 
19498
 
 
19499
  case $ac_option in
 
19500
  # Handling of the options.
 
19501
_ACEOF
 
19502
cat >>$CONFIG_STATUS <<\_ACEOF
 
19503
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
19504
    ac_cs_recheck=: ;;
 
19505
  --version | --vers* | -V )
 
19506
    echo "$ac_cs_version"; exit 0 ;;
 
19507
  --he | --h)
 
19508
    # Conflict between --help and --header
 
19509
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
19510
Try \`$0 --help' for more information." >&5
 
19511
echo "$as_me: error: ambiguous option: $1
 
19512
Try \`$0 --help' for more information." >&2;}
 
19513
   { (exit 1); exit 1; }; };;
 
19514
  --help | --hel | -h )
 
19515
    echo "$ac_cs_usage"; exit 0 ;;
 
19516
  --debug | --d* | -d )
 
19517
    debug=: ;;
 
19518
  --file | --fil | --fi | --f )
 
19519
    $ac_shift
 
19520
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
19521
    ac_need_defaults=false;;
 
19522
  --header | --heade | --head | --hea )
 
19523
    $ac_shift
 
19524
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
19525
    ac_need_defaults=false;;
 
19526
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
19527
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
19528
    ac_cs_silent=: ;;
 
19529
 
 
19530
  # This is an error.
 
19531
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
19532
Try \`$0 --help' for more information." >&5
 
19533
echo "$as_me: error: unrecognized option: $1
 
19534
Try \`$0 --help' for more information." >&2;}
 
19535
   { (exit 1); exit 1; }; } ;;
 
19536
 
 
19537
  *) ac_config_targets="$ac_config_targets $1" ;;
 
19538
 
 
19539
  esac
 
19540
  shift
 
19541
done
 
19542
 
 
19543
ac_configure_extra_args=
 
19544
 
 
19545
if $ac_cs_silent; then
 
19546
  exec 6>/dev/null
 
19547
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
19548
fi
 
19549
 
 
19550
_ACEOF
 
19551
cat >>$CONFIG_STATUS <<_ACEOF
 
19552
if \$ac_cs_recheck; then
 
19553
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
19554
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
19555
fi
 
19556
 
 
19557
_ACEOF
 
19558
 
 
19559
cat >>$CONFIG_STATUS <<_ACEOF
 
19560
#
 
19561
# INIT-COMMANDS section.
 
19562
#
 
19563
 
 
19564
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
19565
 
 
19566
_ACEOF
 
19567
 
 
19568
 
 
19569
 
 
19570
cat >>$CONFIG_STATUS <<\_ACEOF
 
19571
for ac_config_target in $ac_config_targets
 
19572
do
 
19573
  case "$ac_config_target" in
 
19574
  # Handling of arguments.
 
19575
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
19576
  "Doxyfile" ) CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
 
19577
  "umem.spec" ) CONFIG_FILES="$CONFIG_FILES umem.spec" ;;
 
19578
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
19579
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
19580
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
19581
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
19582
   { (exit 1); exit 1; }; };;
 
19583
  esac
 
19584
done
 
19585
 
 
19586
# If the user did not use the arguments to specify the items to instantiate,
 
19587
# then the envvar interface is used.  Set only those that are not.
 
19588
# We use the long form for the default assignment because of an extremely
 
19589
# bizarre bug on SunOS 4.1.3.
 
19590
if $ac_need_defaults; then
 
19591
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
19592
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
19593
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
19594
fi
 
19595
 
 
19596
# Have a temporary directory for convenience.  Make it in the build tree
 
19597
# simply because there is no reason to put it here, and in addition,
 
19598
# creating and moving files from /tmp can sometimes cause problems.
 
19599
# Create a temporary directory, and hook for its removal unless debugging.
 
19600
$debug ||
 
19601
{
 
19602
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
19603
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
19604
}
 
19605
 
 
19606
# Create a (secure) tmp directory for tmp files.
 
19607
 
 
19608
{
 
19609
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
19610
  test -n "$tmp" && test -d "$tmp"
 
19611
}  ||
 
19612
{
 
19613
  tmp=./confstat$$-$RANDOM
 
19614
  (umask 077 && mkdir $tmp)
 
19615
} ||
 
19616
{
 
19617
   echo "$me: cannot create a temporary directory in ." >&2
 
19618
   { (exit 1); exit 1; }
 
19619
}
 
19620
 
 
19621
_ACEOF
 
19622
 
 
19623
cat >>$CONFIG_STATUS <<_ACEOF
 
19624
 
 
19625
#
 
19626
# CONFIG_FILES section.
 
19627
#
 
19628
 
 
19629
# No need to generate the scripts if there are no CONFIG_FILES.
 
19630
# This happens for instance when ./config.status config.h
 
19631
if test -n "\$CONFIG_FILES"; then
 
19632
  # Protect against being on the right side of a sed subst in config.status.
 
19633
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
19634
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
19635
s,@SHELL@,$SHELL,;t t
 
19636
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
19637
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
19638
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
19639
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
19640
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
19641
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
19642
s,@exec_prefix@,$exec_prefix,;t t
 
19643
s,@prefix@,$prefix,;t t
 
19644
s,@program_transform_name@,$program_transform_name,;t t
 
19645
s,@bindir@,$bindir,;t t
 
19646
s,@sbindir@,$sbindir,;t t
 
19647
s,@libexecdir@,$libexecdir,;t t
 
19648
s,@datadir@,$datadir,;t t
 
19649
s,@sysconfdir@,$sysconfdir,;t t
 
19650
s,@sharedstatedir@,$sharedstatedir,;t t
 
19651
s,@localstatedir@,$localstatedir,;t t
 
19652
s,@libdir@,$libdir,;t t
 
19653
s,@includedir@,$includedir,;t t
 
19654
s,@oldincludedir@,$oldincludedir,;t t
 
19655
s,@infodir@,$infodir,;t t
 
19656
s,@mandir@,$mandir,;t t
 
19657
s,@build_alias@,$build_alias,;t t
 
19658
s,@host_alias@,$host_alias,;t t
 
19659
s,@target_alias@,$target_alias,;t t
 
19660
s,@DEFS@,$DEFS,;t t
 
19661
s,@ECHO_C@,$ECHO_C,;t t
 
19662
s,@ECHO_N@,$ECHO_N,;t t
 
19663
s,@ECHO_T@,$ECHO_T,;t t
 
19664
s,@LIBS@,$LIBS,;t t
 
19665
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
19666
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
19667
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
19668
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
19669
s,@PACKAGE@,$PACKAGE,;t t
 
19670
s,@VERSION@,$VERSION,;t t
 
19671
s,@ACLOCAL@,$ACLOCAL,;t t
 
19672
s,@AUTOCONF@,$AUTOCONF,;t t
 
19673
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
19674
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
19675
s,@MAKEINFO@,$MAKEINFO,;t t
 
19676
s,@install_sh@,$install_sh,;t t
 
19677
s,@STRIP@,$STRIP,;t t
 
19678
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
19679
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
19680
s,@mkdir_p@,$mkdir_p,;t t
 
19681
s,@AWK@,$AWK,;t t
 
19682
s,@SET_MAKE@,$SET_MAKE,;t t
 
19683
s,@am__leading_dot@,$am__leading_dot,;t t
 
19684
s,@AMTAR@,$AMTAR,;t t
 
19685
s,@am__tar@,$am__tar,;t t
 
19686
s,@am__untar@,$am__untar,;t t
 
19687
s,@CC@,$CC,;t t
 
19688
s,@CFLAGS@,$CFLAGS,;t t
 
19689
s,@LDFLAGS@,$LDFLAGS,;t t
 
19690
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
19691
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
19692
s,@EXEEXT@,$EXEEXT,;t t
 
19693
s,@OBJEXT@,$OBJEXT,;t t
 
19694
s,@DEPDIR@,$DEPDIR,;t t
 
19695
s,@am__include@,$am__include,;t t
 
19696
s,@am__quote@,$am__quote,;t t
 
19697
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
19698
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
19699
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
19700
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
19701
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
19702
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
19703
s,@CCAS@,$CCAS,;t t
 
19704
s,@CCASFLAGS@,$CCASFLAGS,;t t
 
19705
s,@build@,$build,;t t
 
19706
s,@build_cpu@,$build_cpu,;t t
 
19707
s,@build_vendor@,$build_vendor,;t t
 
19708
s,@build_os@,$build_os,;t t
 
19709
s,@host@,$host,;t t
 
19710
s,@host_cpu@,$host_cpu,;t t
 
19711
s,@host_vendor@,$host_vendor,;t t
 
19712
s,@host_os@,$host_os,;t t
 
19713
s,@SED@,$SED,;t t
 
19714
s,@EGREP@,$EGREP,;t t
 
19715
s,@LN_S@,$LN_S,;t t
 
19716
s,@ECHO@,$ECHO,;t t
 
19717
s,@AR@,$AR,;t t
 
19718
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
19719
s,@RANLIB@,$RANLIB,;t t
 
19720
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
19721
s,@CPP@,$CPP,;t t
 
19722
s,@CXX@,$CXX,;t t
 
19723
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
19724
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
19725
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
19726
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
19727
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
19728
s,@CXXCPP@,$CXXCPP,;t t
 
19729
s,@F77@,$F77,;t t
 
19730
s,@FFLAGS@,$FFLAGS,;t t
 
19731
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
19732
s,@LIBTOOL@,$LIBTOOL,;t t
 
19733
s,@LIBOBJS@,$LIBOBJS,;t t
 
19734
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
19735
CEOF
 
19736
 
 
19737
_ACEOF
 
19738
 
 
19739
  cat >>$CONFIG_STATUS <<\_ACEOF
 
19740
  # Split the substitutions into bite-sized pieces for seds with
 
19741
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
19742
  ac_max_sed_lines=48
 
19743
  ac_sed_frag=1 # Number of current file.
 
19744
  ac_beg=1 # First line for current file.
 
19745
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
19746
  ac_more_lines=:
 
19747
  ac_sed_cmds=
 
19748
  while $ac_more_lines; do
 
19749
    if test $ac_beg -gt 1; then
 
19750
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
19751
    else
 
19752
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
19753
    fi
 
19754
    if test ! -s $tmp/subs.frag; then
 
19755
      ac_more_lines=false
 
19756
    else
 
19757
      # The purpose of the label and of the branching condition is to
 
19758
      # speed up the sed processing (if there are no `@' at all, there
 
19759
      # is no need to browse any of the substitutions).
 
19760
      # These are the two extra sed commands mentioned above.
 
19761
      (echo ':t
 
19762
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
19763
      if test -z "$ac_sed_cmds"; then
 
19764
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
19765
      else
 
19766
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
19767
      fi
 
19768
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
19769
      ac_beg=$ac_end
 
19770
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
19771
    fi
 
19772
  done
 
19773
  if test -z "$ac_sed_cmds"; then
 
19774
    ac_sed_cmds=cat
 
19775
  fi
 
19776
fi # test -n "$CONFIG_FILES"
 
19777
 
 
19778
_ACEOF
 
19779
cat >>$CONFIG_STATUS <<\_ACEOF
 
19780
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
19781
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
19782
  case $ac_file in
 
19783
  - | *:- | *:-:* ) # input from stdin
 
19784
        cat >$tmp/stdin
 
19785
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
19786
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
19787
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
19788
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
19789
  * )   ac_file_in=$ac_file.in ;;
 
19790
  esac
 
19791
 
 
19792
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
19793
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
19794
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19795
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
19796
         X"$ac_file" : 'X\(//\)$' \| \
 
19797
         X"$ac_file" : 'X\(/\)' \| \
 
19798
         .     : '\(.\)' 2>/dev/null ||
 
19799
echo X"$ac_file" |
 
19800
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
19801
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
19802
          /^X\(\/\/\)$/{ s//\1/; q; }
 
19803
          /^X\(\/\).*/{ s//\1/; q; }
 
19804
          s/.*/./; q'`
 
19805
  { if $as_mkdir_p; then
 
19806
    mkdir -p "$ac_dir"
 
19807
  else
 
19808
    as_dir="$ac_dir"
 
19809
    as_dirs=
 
19810
    while test ! -d "$as_dir"; do
 
19811
      as_dirs="$as_dir $as_dirs"
 
19812
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
19813
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19814
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
19815
         X"$as_dir" : 'X\(//\)$' \| \
 
19816
         X"$as_dir" : 'X\(/\)' \| \
 
19817
         .     : '\(.\)' 2>/dev/null ||
 
19818
echo X"$as_dir" |
 
19819
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
19820
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
19821
          /^X\(\/\/\)$/{ s//\1/; q; }
 
19822
          /^X\(\/\).*/{ s//\1/; q; }
 
19823
          s/.*/./; q'`
 
19824
    done
 
19825
    test ! -n "$as_dirs" || mkdir $as_dirs
 
19826
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
19827
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
19828
   { (exit 1); exit 1; }; }; }
 
19829
 
 
19830
  ac_builddir=.
 
19831
 
 
19832
if test "$ac_dir" != .; then
 
19833
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
19834
  # A "../" for each directory in $ac_dir_suffix.
 
19835
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
19836
else
 
19837
  ac_dir_suffix= ac_top_builddir=
 
19838
fi
 
19839
 
 
19840
case $srcdir in
 
19841
  .)  # No --srcdir option.  We are building in place.
 
19842
    ac_srcdir=.
 
19843
    if test -z "$ac_top_builddir"; then
 
19844
       ac_top_srcdir=.
 
19845
    else
 
19846
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
19847
    fi ;;
 
19848
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
19849
    ac_srcdir=$srcdir$ac_dir_suffix;
 
19850
    ac_top_srcdir=$srcdir ;;
 
19851
  *) # Relative path.
 
19852
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
19853
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
19854
esac
 
19855
 
 
19856
# Do not use `cd foo && pwd` to compute absolute paths, because
 
19857
# the directories may not exist.
 
19858
case `pwd` in
 
19859
.) ac_abs_builddir="$ac_dir";;
 
19860
*)
 
19861
  case "$ac_dir" in
 
19862
  .) ac_abs_builddir=`pwd`;;
 
19863
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
19864
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
19865
  esac;;
 
19866
esac
 
19867
case $ac_abs_builddir in
 
19868
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
19869
*)
 
19870
  case ${ac_top_builddir}. in
 
19871
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
19872
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
19873
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
19874
  esac;;
 
19875
esac
 
19876
case $ac_abs_builddir in
 
19877
.) ac_abs_srcdir=$ac_srcdir;;
 
19878
*)
 
19879
  case $ac_srcdir in
 
19880
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
19881
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
19882
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
19883
  esac;;
 
19884
esac
 
19885
case $ac_abs_builddir in
 
19886
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
19887
*)
 
19888
  case $ac_top_srcdir in
 
19889
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
19890
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
19891
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
19892
  esac;;
 
19893
esac
 
19894
 
 
19895
 
 
19896
  case $INSTALL in
 
19897
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
19898
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
19899
  esac
 
19900
 
 
19901
  if test x"$ac_file" != x-; then
 
19902
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
19903
echo "$as_me: creating $ac_file" >&6;}
 
19904
    rm -f "$ac_file"
 
19905
  fi
 
19906
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
19907
  # use $as_me), people would be surprised to read:
 
19908
  #    /* config.h.  Generated by config.status.  */
 
19909
  if test x"$ac_file" = x-; then
 
19910
    configure_input=
 
19911
  else
 
19912
    configure_input="$ac_file.  "
 
19913
  fi
 
19914
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
19915
                                     sed 's,.*/,,'` by configure."
 
19916
 
 
19917
  # First look for the input files in the build tree, otherwise in the
 
19918
  # src tree.
 
19919
  ac_file_inputs=`IFS=:
 
19920
    for f in $ac_file_in; do
 
19921
      case $f in
 
19922
      -) echo $tmp/stdin ;;
 
19923
      [\\/$]*)
 
19924
         # Absolute (can't be DOS-style, as IFS=:)
 
19925
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
19926
echo "$as_me: error: cannot find input file: $f" >&2;}
 
19927
   { (exit 1); exit 1; }; }
 
19928
         echo "$f";;
 
19929
      *) # Relative
 
19930
         if test -f "$f"; then
 
19931
           # Build tree
 
19932
           echo "$f"
 
19933
         elif test -f "$srcdir/$f"; then
 
19934
           # Source tree
 
19935
           echo "$srcdir/$f"
 
19936
         else
 
19937
           # /dev/null tree
 
19938
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
19939
echo "$as_me: error: cannot find input file: $f" >&2;}
 
19940
   { (exit 1); exit 1; }; }
 
19941
         fi;;
 
19942
      esac
 
19943
    done` || { (exit 1); exit 1; }
 
19944
_ACEOF
 
19945
cat >>$CONFIG_STATUS <<_ACEOF
 
19946
  sed "$ac_vpsub
 
19947
$extrasub
 
19948
_ACEOF
 
19949
cat >>$CONFIG_STATUS <<\_ACEOF
 
19950
:t
 
19951
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
19952
s,@configure_input@,$configure_input,;t t
 
19953
s,@srcdir@,$ac_srcdir,;t t
 
19954
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
19955
s,@top_srcdir@,$ac_top_srcdir,;t t
 
19956
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
19957
s,@builddir@,$ac_builddir,;t t
 
19958
s,@abs_builddir@,$ac_abs_builddir,;t t
 
19959
s,@top_builddir@,$ac_top_builddir,;t t
 
19960
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
19961
s,@INSTALL@,$ac_INSTALL,;t t
 
19962
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
19963
  rm -f $tmp/stdin
 
19964
  if test x"$ac_file" != x-; then
 
19965
    mv $tmp/out $ac_file
 
19966
  else
 
19967
    cat $tmp/out
 
19968
    rm -f $tmp/out
 
19969
  fi
 
19970
 
 
19971
done
 
19972
_ACEOF
 
19973
cat >>$CONFIG_STATUS <<\_ACEOF
 
19974
 
 
19975
#
 
19976
# CONFIG_HEADER section.
 
19977
#
 
19978
 
 
19979
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
19980
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
19981
#
 
19982
# ac_d sets the value in "#define NAME VALUE" lines.
 
19983
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
19984
ac_dB='[         ].*$,\1#\2'
 
19985
ac_dC=' '
 
19986
ac_dD=',;t'
 
19987
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
19988
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
19989
ac_uB='$,\1#\2define\3'
 
19990
ac_uC=' '
 
19991
ac_uD=',;t'
 
19992
 
 
19993
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
19994
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
19995
  case $ac_file in
 
19996
  - | *:- | *:-:* ) # input from stdin
 
19997
        cat >$tmp/stdin
 
19998
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
19999
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
20000
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
20001
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
20002
  * )   ac_file_in=$ac_file.in ;;
 
20003
  esac
 
20004
 
 
20005
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
20006
echo "$as_me: creating $ac_file" >&6;}
 
20007
 
 
20008
  # First look for the input files in the build tree, otherwise in the
 
20009
  # src tree.
 
20010
  ac_file_inputs=`IFS=:
 
20011
    for f in $ac_file_in; do
 
20012
      case $f in
 
20013
      -) echo $tmp/stdin ;;
 
20014
      [\\/$]*)
 
20015
         # Absolute (can't be DOS-style, as IFS=:)
 
20016
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
20017
echo "$as_me: error: cannot find input file: $f" >&2;}
 
20018
   { (exit 1); exit 1; }; }
 
20019
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
20020
         echo "$f";;
 
20021
      *) # Relative
 
20022
         if test -f "$f"; then
 
20023
           # Build tree
 
20024
           echo "$f"
 
20025
         elif test -f "$srcdir/$f"; then
 
20026
           # Source tree
 
20027
           echo "$srcdir/$f"
 
20028
         else
 
20029
           # /dev/null tree
 
20030
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
20031
echo "$as_me: error: cannot find input file: $f" >&2;}
 
20032
   { (exit 1); exit 1; }; }
 
20033
         fi;;
 
20034
      esac
 
20035
    done` || { (exit 1); exit 1; }
 
20036
  # Remove the trailing spaces.
 
20037
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
20038
 
 
20039
_ACEOF
 
20040
 
 
20041
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
20042
# `conftest.undefs', that substitutes the proper values into
 
20043
# config.h.in to produce config.h.  The first handles `#define'
 
20044
# templates, and the second `#undef' templates.
 
20045
# And first: Protect against being on the right side of a sed subst in
 
20046
# config.status.  Protect against being in an unquoted here document
 
20047
# in config.status.
 
20048
rm -f conftest.defines conftest.undefs
 
20049
# Using a here document instead of a string reduces the quoting nightmare.
 
20050
# Putting comments in sed scripts is not portable.
 
20051
#
 
20052
# `end' is used to avoid that the second main sed command (meant for
 
20053
# 0-ary CPP macros) applies to n-ary macro definitions.
 
20054
# See the Autoconf documentation for `clear'.
 
20055
cat >confdef2sed.sed <<\_ACEOF
 
20056
s/[\\&,]/\\&/g
 
20057
s,[\\$`],\\&,g
 
20058
t clear
 
20059
: clear
 
20060
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
20061
t end
 
20062
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
20063
: end
 
20064
_ACEOF
 
20065
# If some macros were called several times there might be several times
 
20066
# the same #defines, which is useless.  Nevertheless, we may not want to
 
20067
# sort them, since we want the *last* AC-DEFINE to be honored.
 
20068
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
20069
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
20070
rm -f confdef2sed.sed
 
20071
 
 
20072
# This sed command replaces #undef with comments.  This is necessary, for
 
20073
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
20074
# on some systems where configure will not decide to define it.
 
20075
cat >>conftest.undefs <<\_ACEOF
 
20076
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
20077
_ACEOF
 
20078
 
 
20079
# Break up conftest.defines because some shells have a limit on the size
 
20080
# of here documents, and old seds have small limits too (100 cmds).
 
20081
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
20082
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
20083
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
20084
echo '  :' >>$CONFIG_STATUS
 
20085
rm -f conftest.tail
 
20086
while grep . conftest.defines >/dev/null
 
20087
do
 
20088
  # Write a limited-size here document to $tmp/defines.sed.
 
20089
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
20090
  # Speed up: don't consider the non `#define' lines.
 
20091
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
20092
  # Work around the forget-to-reset-the-flag bug.
 
20093
  echo 't clr' >>$CONFIG_STATUS
 
20094
  echo ': clr' >>$CONFIG_STATUS
 
20095
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
20096
  echo 'CEOF
 
20097
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
20098
  rm -f $tmp/in
 
20099
  mv $tmp/out $tmp/in
 
20100
' >>$CONFIG_STATUS
 
20101
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
20102
  rm -f conftest.defines
 
20103
  mv conftest.tail conftest.defines
 
20104
done
 
20105
rm -f conftest.defines
 
20106
echo '  fi # grep' >>$CONFIG_STATUS
 
20107
echo >>$CONFIG_STATUS
 
20108
 
 
20109
# Break up conftest.undefs because some shells have a limit on the size
 
20110
# of here documents, and old seds have small limits too (100 cmds).
 
20111
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
20112
rm -f conftest.tail
 
20113
while grep . conftest.undefs >/dev/null
 
20114
do
 
20115
  # Write a limited-size here document to $tmp/undefs.sed.
 
20116
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
20117
  # Speed up: don't consider the non `#undef'
 
20118
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
20119
  # Work around the forget-to-reset-the-flag bug.
 
20120
  echo 't clr' >>$CONFIG_STATUS
 
20121
  echo ': clr' >>$CONFIG_STATUS
 
20122
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
20123
  echo 'CEOF
 
20124
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
20125
  rm -f $tmp/in
 
20126
  mv $tmp/out $tmp/in
 
20127
' >>$CONFIG_STATUS
 
20128
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
20129
  rm -f conftest.undefs
 
20130
  mv conftest.tail conftest.undefs
 
20131
done
 
20132
rm -f conftest.undefs
 
20133
 
 
20134
cat >>$CONFIG_STATUS <<\_ACEOF
 
20135
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
20136
  # use $as_me), people would be surprised to read:
 
20137
  #    /* config.h.  Generated by config.status.  */
 
20138
  if test x"$ac_file" = x-; then
 
20139
    echo "/* Generated by configure.  */" >$tmp/config.h
 
20140
  else
 
20141
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
20142
  fi
 
20143
  cat $tmp/in >>$tmp/config.h
 
20144
  rm -f $tmp/in
 
20145
  if test x"$ac_file" != x-; then
 
20146
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
20147
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
20148
echo "$as_me: $ac_file is unchanged" >&6;}
 
20149
    else
 
20150
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
20151
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20152
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
20153
         X"$ac_file" : 'X\(//\)$' \| \
 
20154
         X"$ac_file" : 'X\(/\)' \| \
 
20155
         .     : '\(.\)' 2>/dev/null ||
 
20156
echo X"$ac_file" |
 
20157
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20158
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20159
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20160
          /^X\(\/\).*/{ s//\1/; q; }
 
20161
          s/.*/./; q'`
 
20162
      { if $as_mkdir_p; then
 
20163
    mkdir -p "$ac_dir"
 
20164
  else
 
20165
    as_dir="$ac_dir"
 
20166
    as_dirs=
 
20167
    while test ! -d "$as_dir"; do
 
20168
      as_dirs="$as_dir $as_dirs"
 
20169
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
20170
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20171
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
20172
         X"$as_dir" : 'X\(//\)$' \| \
 
20173
         X"$as_dir" : 'X\(/\)' \| \
 
20174
         .     : '\(.\)' 2>/dev/null ||
 
20175
echo X"$as_dir" |
 
20176
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20177
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20178
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20179
          /^X\(\/\).*/{ s//\1/; q; }
 
20180
          s/.*/./; q'`
 
20181
    done
 
20182
    test ! -n "$as_dirs" || mkdir $as_dirs
 
20183
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
20184
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
20185
   { (exit 1); exit 1; }; }; }
 
20186
 
 
20187
      rm -f $ac_file
 
20188
      mv $tmp/config.h $ac_file
 
20189
    fi
 
20190
  else
 
20191
    cat $tmp/config.h
 
20192
    rm -f $tmp/config.h
 
20193
  fi
 
20194
# Compute $ac_file's index in $config_headers.
 
20195
_am_stamp_count=1
 
20196
for _am_header in $config_headers :; do
 
20197
  case $_am_header in
 
20198
    $ac_file | $ac_file:* )
 
20199
      break ;;
 
20200
    * )
 
20201
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
20202
  esac
 
20203
done
 
20204
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
20205
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20206
         X$ac_file : 'X\(//\)[^/]' \| \
 
20207
         X$ac_file : 'X\(//\)$' \| \
 
20208
         X$ac_file : 'X\(/\)' \| \
 
20209
         .     : '\(.\)' 2>/dev/null ||
 
20210
echo X$ac_file |
 
20211
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20212
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20213
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20214
          /^X\(\/\).*/{ s//\1/; q; }
 
20215
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
20216
done
 
20217
_ACEOF
 
20218
cat >>$CONFIG_STATUS <<\_ACEOF
 
20219
 
 
20220
#
 
20221
# CONFIG_COMMANDS section.
 
20222
#
 
20223
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
20224
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
20225
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
20226
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
20227
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20228
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
20229
         X"$ac_dest" : 'X\(//\)$' \| \
 
20230
         X"$ac_dest" : 'X\(/\)' \| \
 
20231
         .     : '\(.\)' 2>/dev/null ||
 
20232
echo X"$ac_dest" |
 
20233
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20234
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20235
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20236
          /^X\(\/\).*/{ s//\1/; q; }
 
20237
          s/.*/./; q'`
 
20238
  { if $as_mkdir_p; then
 
20239
    mkdir -p "$ac_dir"
 
20240
  else
 
20241
    as_dir="$ac_dir"
 
20242
    as_dirs=
 
20243
    while test ! -d "$as_dir"; do
 
20244
      as_dirs="$as_dir $as_dirs"
 
20245
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
20246
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20247
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
20248
         X"$as_dir" : 'X\(//\)$' \| \
 
20249
         X"$as_dir" : 'X\(/\)' \| \
 
20250
         .     : '\(.\)' 2>/dev/null ||
 
20251
echo X"$as_dir" |
 
20252
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20253
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20254
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20255
          /^X\(\/\).*/{ s//\1/; q; }
 
20256
          s/.*/./; q'`
 
20257
    done
 
20258
    test ! -n "$as_dirs" || mkdir $as_dirs
 
20259
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
20260
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
20261
   { (exit 1); exit 1; }; }; }
 
20262
 
 
20263
  ac_builddir=.
 
20264
 
 
20265
if test "$ac_dir" != .; then
 
20266
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
20267
  # A "../" for each directory in $ac_dir_suffix.
 
20268
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
20269
else
 
20270
  ac_dir_suffix= ac_top_builddir=
 
20271
fi
 
20272
 
 
20273
case $srcdir in
 
20274
  .)  # No --srcdir option.  We are building in place.
 
20275
    ac_srcdir=.
 
20276
    if test -z "$ac_top_builddir"; then
 
20277
       ac_top_srcdir=.
 
20278
    else
 
20279
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
20280
    fi ;;
 
20281
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
20282
    ac_srcdir=$srcdir$ac_dir_suffix;
 
20283
    ac_top_srcdir=$srcdir ;;
 
20284
  *) # Relative path.
 
20285
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
20286
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
20287
esac
 
20288
 
 
20289
# Do not use `cd foo && pwd` to compute absolute paths, because
 
20290
# the directories may not exist.
 
20291
case `pwd` in
 
20292
.) ac_abs_builddir="$ac_dir";;
 
20293
*)
 
20294
  case "$ac_dir" in
 
20295
  .) ac_abs_builddir=`pwd`;;
 
20296
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
20297
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
20298
  esac;;
 
20299
esac
 
20300
case $ac_abs_builddir in
 
20301
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
20302
*)
 
20303
  case ${ac_top_builddir}. in
 
20304
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
20305
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
20306
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
20307
  esac;;
 
20308
esac
 
20309
case $ac_abs_builddir in
 
20310
.) ac_abs_srcdir=$ac_srcdir;;
 
20311
*)
 
20312
  case $ac_srcdir in
 
20313
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
20314
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
20315
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
20316
  esac;;
 
20317
esac
 
20318
case $ac_abs_builddir in
 
20319
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
20320
*)
 
20321
  case $ac_top_srcdir in
 
20322
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
20323
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
20324
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
20325
  esac;;
 
20326
esac
 
20327
 
 
20328
 
 
20329
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
20330
echo "$as_me: executing $ac_dest commands" >&6;}
 
20331
  case $ac_dest in
 
20332
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
20333
  # Strip MF so we end up with the name of the file.
 
20334
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
20335
  # Check whether this is an Automake generated Makefile or not.
 
20336
  # We used to match only the files named `Makefile.in', but
 
20337
  # some people rename them; so instead we look at the file content.
 
20338
  # Grep'ing the first line is not enough: some people post-process
 
20339
  # each Makefile.in and add a new line on top of each file to say so.
 
20340
  # So let's grep whole file.
 
20341
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
20342
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
20343
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20344
         X"$mf" : 'X\(//\)[^/]' \| \
 
20345
         X"$mf" : 'X\(//\)$' \| \
 
20346
         X"$mf" : 'X\(/\)' \| \
 
20347
         .     : '\(.\)' 2>/dev/null ||
 
20348
echo X"$mf" |
 
20349
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20350
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20351
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20352
          /^X\(\/\).*/{ s//\1/; q; }
 
20353
          s/.*/./; q'`
 
20354
  else
 
20355
    continue
 
20356
  fi
 
20357
  # Extract the definition of DEPDIR, am__include, and am__quote
 
20358
  # from the Makefile without running `make'.
 
20359
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
20360
  test -z "$DEPDIR" && continue
 
20361
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
20362
  test -z "am__include" && continue
 
20363
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
20364
  # When using ansi2knr, U may be empty or an underscore; expand it
 
20365
  U=`sed -n 's/^U = //p' < "$mf"`
 
20366
  # Find all dependency output files, they are included files with
 
20367
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
20368
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
20369
  # expansion.
 
20370
  for file in `sed -n "
 
20371
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
20372
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
20373
    # Make sure the directory exists.
 
20374
    test -f "$dirpart/$file" && continue
 
20375
    fdir=`(dirname "$file") 2>/dev/null ||
 
20376
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20377
         X"$file" : 'X\(//\)[^/]' \| \
 
20378
         X"$file" : 'X\(//\)$' \| \
 
20379
         X"$file" : 'X\(/\)' \| \
 
20380
         .     : '\(.\)' 2>/dev/null ||
 
20381
echo X"$file" |
 
20382
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20383
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20384
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20385
          /^X\(\/\).*/{ s//\1/; q; }
 
20386
          s/.*/./; q'`
 
20387
    { if $as_mkdir_p; then
 
20388
    mkdir -p $dirpart/$fdir
 
20389
  else
 
20390
    as_dir=$dirpart/$fdir
 
20391
    as_dirs=
 
20392
    while test ! -d "$as_dir"; do
 
20393
      as_dirs="$as_dir $as_dirs"
 
20394
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
20395
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20396
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
20397
         X"$as_dir" : 'X\(//\)$' \| \
 
20398
         X"$as_dir" : 'X\(/\)' \| \
 
20399
         .     : '\(.\)' 2>/dev/null ||
 
20400
echo X"$as_dir" |
 
20401
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20402
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20403
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20404
          /^X\(\/\).*/{ s//\1/; q; }
 
20405
          s/.*/./; q'`
 
20406
    done
 
20407
    test ! -n "$as_dirs" || mkdir $as_dirs
 
20408
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
20409
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
20410
   { (exit 1); exit 1; }; }; }
 
20411
 
 
20412
    # echo "creating $dirpart/$file"
 
20413
    echo '# dummy' > "$dirpart/$file"
 
20414
  done
 
20415
done
 
20416
 ;;
 
20417
  esac
 
20418
done
 
20419
_ACEOF
 
20420
 
 
20421
cat >>$CONFIG_STATUS <<\_ACEOF
 
20422
 
 
20423
{ (exit 0); exit 0; }
 
20424
_ACEOF
 
20425
chmod +x $CONFIG_STATUS
 
20426
ac_clean_files=$ac_clean_files_save
 
20427
 
 
20428
 
 
20429
# configure is writing to config.log, and then calls config.status.
 
20430
# config.status does its own redirection, appending to config.log.
 
20431
# Unfortunately, on DOS this fails, as config.log is still kept open
 
20432
# by configure, so config.status won't be able to write to it; its
 
20433
# output is simply discarded.  So we exec the FD to /dev/null,
 
20434
# effectively closing config.log, so it can be properly (re)opened and
 
20435
# appended to by config.status.  When coming back to configure, we
 
20436
# need to make the FD available again.
 
20437
if test "$no_create" != yes; then
 
20438
  ac_cs_success=:
 
20439
  ac_config_status_args=
 
20440
  test "$silent" = yes &&
 
20441
    ac_config_status_args="$ac_config_status_args --quiet"
 
20442
  exec 5>/dev/null
 
20443
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
20444
  exec 5>>config.log
 
20445
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
20446
  # would make configure fail if this is the last instruction.
 
20447
  $ac_cs_success || { (exit 1); exit 1; }
 
20448
fi
 
20449